**** BEGIN LOGGING AT Tue Oct 28 03:00:00 2014 Oct 28 03:00:01 I guess one solution is to implement toString in that class. Oct 28 03:00:53 ? Oct 28 03:01:01 but it's already a String Oct 28 03:01:30 A pritisak is a String? Oct 28 03:01:43 nope Oct 28 03:01:46 oh Oct 28 03:01:48 I see Oct 28 03:01:50 thanks :) Oct 28 03:02:17 alexa: for (pritisak current : list) { textView.append(pritisak.toString()); } // or some such Oct 28 03:02:20 That's just an idea. Oct 28 03:02:27 Oops. Oct 28 03:02:30 public String toString() { return "Vreme " + vreme......} Oct 28 03:02:31 "current.toString()" Oct 28 03:02:44 alexa: BTW, in Java, class names should use PascalCase. Oct 28 03:03:07 Hello... Does anyone know if Android L changed the way to add routes for openvpn? i have the exact source code and it is able to tunnel default gateway prior to Android L, but in the latest Android L image, I can establish the connection but can't seem to add route. Anyway has experienced this and/or know what's the problem? many thanks Oct 28 03:03:17 PascalCase is something like mixed Cases? Oct 28 03:03:25 It's NamingLikeThis. Oct 28 03:03:31 ok Oct 28 03:03:34 thanks! Oct 28 03:03:38 Method names useThisStyle, but class names UseThisStyle. Oct 28 03:03:53 Sticking to conventions makes code a quadrillion times easier to read. :) Oct 28 03:04:07 ok Oct 28 03:07:02 dck28 not sure if it was you, but somebody was here a few weeks ago desperate about openvpn & L not working Oct 28 03:07:12 God, this is crazy: http://stackoverflow.com/questions/16534369/avoid-button-multiple-rapid-clicks Oct 28 03:07:16 there was an issue in the defect tracker Oct 28 03:09:10 Cannot make a static reference to the non-static method toString() from the type pritisak Oct 28 03:09:31 as an answer to : for (pritisak current : list) { textView.append(pritisak.toString()); } Oct 28 03:09:47 hey g00s... Yeah I noticed but the default OpenVPN for Android works nicely now.. and they seems to have "fixed" the problem in the last image... I managed to build the src in PIE and got the connection to connect successfully... only thing is missing is the routing.. none of the traffic is being tunneled through... Oct 28 03:09:48 It's current.toString. Oct 28 03:09:53 Nice copy-pasta. lol Oct 28 03:09:57 then I added "static" to toString Oct 28 03:10:00 ok Oct 28 03:10:01 moment Oct 28 03:10:09 No need to use the word 'static' here. Oct 28 03:10:19 which makes me think maybe i'm missing some permission, but i've gone through OpenVPN's source and i couldn't seem to find out what's missing... Oct 28 03:11:14 and yeah.. that might not be me a few weeks ago but i'm in the same boat about the desperate part :( Oct 28 03:12:13 error, again Oct 28 03:12:28 it's same story Oct 28 03:12:46 java.lang.ArrayStoreException: Object cannot be stored in an array of type java.lang.String[] Oct 28 03:12:58 My suggestion didn't involve using arrays at all. Oct 28 03:12:59 it said "pritisak", not Object Oct 28 03:13:09 you saw my code Oct 28 03:13:13 Why do you want an array? You said you're simply appending to a TextView. Oct 28 03:13:30 oh God, sorry, I didn't commented previous "bad" code Oct 28 03:13:32 moment Oct 28 03:15:23 alexa: perhaps you should focus on learning the basics of java before launching into android Oct 28 03:15:30 TacticalJoke, it works!!!!! Oct 28 03:15:50 bankai_au, I'm studying medicine school. Oct 28 03:16:04 I need one simple program Oct 28 03:16:24 when I get more free time, I'll learn the basics Oct 28 03:16:35 I hope your apps won't be controlling my life-support machine. :D Oct 28 03:16:35 the thing is, you never get to learn it all Oct 28 03:17:01 TacticalJoke, don't worry, I'll be physician not engineer Oct 28 03:17:11 :p Oct 28 03:17:14 :) Oct 28 03:17:52 Which branch of medicine are you going into? Just being nosy. Oct 28 03:18:05 the one being replaced by Watson Oct 28 03:18:44 Hmm, I need to read more about Watson. Oct 28 03:18:46 TacticalJoke, I'd like to work in some laboratory experimenting with biochemistry and genetics Oct 28 03:18:51 Cool. Oct 28 03:18:59 but who knows Oct 28 03:19:10 Medicine is a great field. Oct 28 03:19:15 TacticalJoke watson has a web service / API Oct 28 03:19:19 I know and I love it Oct 28 03:20:36 this was a good story about doctors http://www.theatlantic.com/magazine/archive/2014/11/doctors-tell-all-and-its-bad/380785 Oct 28 03:21:07 after a while, everyone seems to become callous ; juggling too many patients, making too many errors Oct 28 03:21:34 i for one can't wait until i can ask Watson a question and skip the whole medical establishment :) Oct 28 03:21:50 This is weird: the following issue gets High priority, while the one about JVM testing gets only Medium?! https://code.google.com/p/android/issues/detail?id=77936 Oct 28 03:22:05 That issue is about a dialog showing twice in Android Studio when it should show only once. Wow. Oct 28 03:22:13 That's more important than JVM unit testing. Oct 28 03:22:33 ok TacticalJoke i can see you aren't going to let this go :) i have a hunch ... this is one of those things "it is what it is" Oct 28 03:22:46 time to move on to the next quirk Oct 28 03:22:52 there is no shortage of them Oct 28 03:34:25 Guys, I've already made the application for testing how the graph works Oct 28 03:34:29 :) Oct 28 03:34:50 now I created the app just to check that DB thing works well Oct 28 03:35:05 Next time I'll have to bind that all together :) Oct 28 03:35:44 that means: All data that is loaded to the list, has to be represented on graph Oct 28 03:40:40 God, those apps that use a toast to say "Click back again to exit" are annoying. Oct 28 03:42:02 There's a bug about the click-button-twice thing, but it has almost no activity: https://code.google.com/p/android/issues/detail?id=20073 Oct 28 03:43:00 TacticalJoke if its that important to you, debounce it Oct 28 03:43:15 if you are using rxjava, use .debounce() Oct 28 03:44:18 I'm wondering whether it's a bug in Android. It's not important in my current app, but I'm not sure whether it'll be important in future stuff. Oct 28 03:45:31 well, considering all these events go on a queue ... probably Oct 28 03:49:49 Google Keep suffers seriously from this. Every ActionBar icon can be tapped multiple times, creating multiple resultant dialogs/activities. Oct 28 03:49:57 At least on 4.1 Oct 28 03:49:58 . Oct 28 03:51:41 It is better than having a don't do things I am loading flag. Oct 28 03:51:53 That just makes things break when things break. Oct 28 03:58:52 hi all anyone following ART Oct 28 03:59:30 whoever: is it going somewhere? Oct 28 03:59:38 will this meamn that .apk will as soon as 4.5 be compiled not implied, and comfiled on each app launch Oct 28 04:00:06 it's compiled once, at app installation Oct 28 04:00:15 Leeds: it looks like they are still pussy footing around with it Oct 28 04:00:19 er, 4.5? Oct 28 04:00:20 I love the idea of AOT compilation in Android. Oct 28 04:00:25 also on OS upgrade Oct 28 04:00:40 wish world's most advanced operating system wouldn't get kernel panic when lauching android's emulator Oct 28 04:00:53 TacticalJoke until you realize that every time you deplot your app , gotta wait a few more seconds :) Oct 28 04:00:53 whoever: well, they're doing a major OS release to - at least - 10s of millions of users with it, next week Oct 28 04:00:56 JesusFreke: yes but now all you have to do is select download not install and you can easily get the .apk source Oct 28 04:00:58 I panic when I accidentally run the emulator. Oct 28 04:01:11 g00s: True. That sucks. Oct 28 04:01:19 whoever: nothing has changed with the apk format Oct 28 04:01:27 TacticalJoke: on linux, i dont Oct 28 04:01:57 (well, not technically true, but whatever :p) Oct 28 04:02:12 accidentally runing the emulator is like accidentally starting your favorite browser to see one webpage, but realizing its restoring state of 200 tabs Oct 28 04:02:21 lol Oct 28 04:02:24 the apk contains a dex file as per usual Oct 28 04:02:27 JakeWharton: but i am wondering if it will, because if you have even server url info or other info that you may need for your app, you don't want them to have assess to Dos you Oct 28 04:02:41 wut Oct 28 04:02:54 whoever: nothing in your apk is secret Oct 28 04:03:03 you should assume that everything in there is public Oct 28 04:03:48 and, uh, if you're doing network traffic... anyone of a mind to do so can snoop that off their own router. Oct 28 04:03:50 JesusFreke: .apks are only obsuficated AFAIk and if you can follow a method, what data type is sent to it, you can then fairly easily figure out what is going on Oct 28 04:04:22 I should probably stop storing diary entries in my APKs. Oct 28 04:04:25 whoever: yes. Oct 28 04:04:30 it doesn't mather if the method was connect() and now its fed(), bob() , mary()X Oct 28 04:04:44 right. and art doesn't change that Oct 28 04:04:46 note to self: assume everything in apk is being read by JesusFreke Oct 28 04:05:01 because it's still the same apk, regardless of whether it's being executed by dalvik or art Oct 28 04:05:18 JesusFreke: so I assume you can see what i am thinking ART will do or become Oct 28 04:05:23 JesusFreke downloads all aps from google play and read apks Oct 28 04:06:23 i am hoping that ART is just a test for some new compile, that will accept the apk and then compile it before it hits the store or somethin Oct 28 04:06:34 i know wishfull thinking Oct 28 04:07:01 why? that would be terrible? Oct 28 04:07:09 ignore that last question mark Oct 28 04:07:09 I think the compiler needs to know which device we're running. Oct 28 04:07:11 i can understand why google picked java but it is horrible for security Oct 28 04:07:13 whoever: the whole point of compiling on device is that it can do device-specific optimizations? Oct 28 04:07:18 lol Oct 28 04:07:24 credibility of argument ruined Oct 28 04:07:39 java, the language, has nothing to do with security Oct 28 04:07:50 err, ignore that last question mark as well. (You're a bad influence, Jake! :p) Oct 28 04:08:08 I read them in a Valley Girl accent. Oct 28 04:08:15 you can write poorly secure code, sure. but you can do that in any language. Oct 28 04:08:25 the overall security of the system isn't a function of the language in which apps are written either Oct 28 04:08:35 JakeWharton: i think he's assuming java is easier to decompile. which it isn't, really. Oct 28 04:08:39 I suspect he means the "security" of his code. Oct 28 04:08:41 JakeWharton: someone just read about java's bugs in servlets ;) Oct 28 04:08:51 in the sense that.. yeah. disassembly/decompilation. Oct 28 04:08:53 JakeWharton: your right , i am only looking at it from a secrity aspect Oct 28 04:09:32 go look at some of the more advanced disassembly tools like hexrays or ida. Java isn't that special. Oct 28 04:10:07 and is there any talk that google will address this security hole Oct 28 04:10:33 whoever: write everything in ndk ;) Oct 28 04:10:40 even that won't make a difference Oct 28 04:10:44 any binary you ship can't be trusted Oct 28 04:10:58 dragorn: ya but the others still make it a bit more difficult than just obsufication Oct 28 04:11:15 whoever: not really. Go look into hexrays and ida and some modern decompiling tools Oct 28 04:11:15 JakeWharton: that was a joke ;) Oct 28 04:11:34 i don't need deobfuscation, i can just sit on the wire and intercept traffic Oct 28 04:12:40 so things that were previously Action Views go straight into the toolbar with addView() ? Oct 28 04:12:52 JakeWharton: jake in the middle? ;) Oct 28 04:12:53 dragorn: err, so at the end of the day , if you want to secure , don't offer the app :-) ? Oct 28 04:13:44 much like if you don't want a virus, use sneaker net B-) Oct 28 04:16:35 if you use sneaker net, you can get ebola Oct 28 04:18:04 What it do, #android-dev Oct 28 04:18:42 It do what it do. Oct 28 04:19:14 ProGuard gets a bad rap in this IRC channel. Can anyone tell me why? Just a short summary. Oct 28 04:19:21 Is it because maintaining the exception list is annoying? Oct 28 04:19:48 dagger doesn't seem to play nicely with it (until dagger 2?) Oct 28 04:19:53 and it's often pushed on users without them needed it Oct 28 04:20:34 or it's used as a catch-all for people who just want to throw a bunch of dependencies in their app and have ProGuard save their ass from the dex method limit Oct 28 04:21:08 Would you guys just not recommend using it at all? Oct 28 04:21:18 no. it should just be used with purpose. Oct 28 04:21:23 Okay. Oct 28 04:21:52 I have code that I consider proprietary or my 'secret sauce' so I would obfuscate. Oct 28 04:22:01 I'm getting ready to release my first Android app, and I don't know whether to use ProGuard or not. Oct 28 04:22:04 I have to include this massive library and I know I only need a subset of it so I strip unused classes. Oct 28 04:22:05 things like that Oct 28 04:22:09 Okay. Oct 28 04:29:00 Oh, gawd, the ProGuard website has a "Quality" section described as "a discussion of the (excellent) quality of ProGuard's code". Oct 28 04:29:25 do action views make sense any more with Toolbar? Oct 28 04:33:07 also, should i just keep toolbar.addView() ... or should I create a container, add all the children to it, and then toolbar.addView(container) / Oct 28 04:33:21 Is "Send e-mail to developer" (in Google Play) the recommended way for users to report bugs? Oct 28 04:40:59 Can I link to a BitBucket forum page for bug reports for my app in my app's description on Google Play? Oct 28 04:50:28 What is the best way for an instance of a class extending ApplicationContext being past into a class extending fragment? Oct 28 04:52:45 Nivag: Do you mean "extending Application"? Oct 28 04:53:56 TacticalJoke: public class TestPageHeader extends Fragment Oct 28 04:55:52 do you really need the applicationcontext over the context? Oct 28 04:56:09 myFragment.getActivity() will give you the context you need 999 times out of 1000 Oct 28 04:57:03 if you *really* need ApplicationContext, you can get it with myFragment.getActivity ().getApplicationContext() Oct 28 05:03:03 TacticalJoke: Dude, let me know when your app is up Oct 28 05:04:11 explodes make sure when you get TacticalJoke 's app, to press the buttons as fast as you can Oct 28 05:04:16 Okay, but it's gonna suck. Oct 28 05:04:20 g00s: Har har. Oct 28 05:04:31 g00s: Yes Oct 28 05:04:32 Nivag, I have a static method in my Application class that looks like this: public static MyApplication get(Context context) { return ((MyApplication) context.getApplicationContext()) } Oct 28 05:04:38 explodes: Thanks! You've simplified things for me siginificantly! Oct 28 05:04:39 This first app is basically "Hello, world". But I might release it because some people might actually enjoy it. Oct 28 05:04:56 if you want an instance of your custom application class, best to only cast in one place Oct 28 05:05:14 JacobTabak: Is that better than just going static all the way? Just wondering. Oct 28 05:05:24 I just have static fields, and I return those in static accessors. Oct 28 05:05:30 eeeeeeep! Oct 28 05:05:53 I am so used to passing things in via constructors... Oct 28 05:06:12 Dont pass around context Oct 28 05:06:22 ? Oct 28 05:06:25 You'll create a whole lot of unnecessary memory leaks Oct 28 05:06:36 Sorry, dont *STORE* context in a local field Oct 28 05:06:42 You can pass it around all you want Oct 28 05:06:50 there shouldn't be a need to store it Oct 28 05:07:10 getActivity() is wonderful for fragments, getContext() is great for views Oct 28 05:07:44 that's is misleading advice Oct 28 05:07:53 How's that? Oct 28 05:07:56 This is what I do: http://pastebin.com/RpMskbzr Oct 28 05:07:59 where do you think getContext() gets its context from? Oct 28 05:08:11 A local field that is properly released Oct 28 05:08:13 Oops. Totally botched the end. Oct 28 05:08:22 * Nivag is 'listening' carefully Oct 28 05:08:41 where "properly released" means normal GC... Oct 28 05:08:50 the same GC that would happen if you stored it in a field Oct 28 05:09:25 Eh, true. Oct 28 05:09:38 you are right to warn people Oct 28 05:09:45 but we can't go too far Oct 28 05:09:55 If you do store context in a field you just need to make sure you're not creating cyclical references* Oct 28 05:09:59 JacobTabak: Isn't it easier to do it that way? I'm confused about why we'd call context.getApplicationContext in such cases. Oct 28 05:10:21 yeah. or somehow leaking it into a static field / singleton Oct 28 05:11:15 I guess that's for cases where we need the actual MyApplication instance. Oct 28 05:15:59 The preparing-for-release guide states "Your application must be signed with a cryptographic key whose validity period ends after 22 October 2033". Why that date? Seems kinda soon. Oct 28 05:16:41 Set it to 50 years from now Oct 28 05:17:05 dont lose that file also Oct 28 05:18:36 TacticalJoke geneally a good idea to have a separate key for each app; just FYI Oct 28 05:18:56 maybe hello world won't be sold for millions, but your next one ;) Oct 28 05:19:17 :D Oct 28 05:19:28 hsi hello world app might be the next diamond app, or whatever it was called Oct 28 05:20:16 also don't use your personal google account Oct 28 05:20:20 Yeah. Oct 28 05:20:31 I made a developer account with a new GMail address and a new Google Wallet thingy. Oct 28 05:20:49 I'm surprised I could make a new Google Wallet account. I already had one. Oct 28 05:22:10 Where do people display EULAs? Google recommends including one to protect yourself. Oct 28 05:22:29 I just wanna say "If you do anything stupid, it's not my fault". Oct 28 05:24:13 Hmm. Maybe "EULA" isn't the right term. Oct 28 05:24:19 More like "legal disclaimer". Oct 28 05:24:54 TacticalJoke: 20 years as soon? think about what we were doing 20 years ago... Oct 28 05:25:27 I guess we'll have flying cars by then. Oct 28 05:25:48 people can barely 'drive' cars, do you really want them flying them ? Oct 28 05:25:52 :D Oct 28 05:25:57 I hope we will have android unit testing ;) Oct 28 05:26:17 haha Oct 28 05:27:16 20 years from now, AI will probably have already killed everyone Oct 28 05:27:38 give or take 203 years Oct 28 05:27:43 2-3 Oct 28 05:27:46 g00s g00s g00s Oct 28 05:28:37 what if AI will get null pointer ? Oct 28 05:29:28 will "one billion dollars mistake" becoe "one billion dollars miracle" then ? Oct 28 05:30:59 The AI will learn not to give rise to a NullPointerException ever again. Oct 28 05:31:34 try { process(); } catch (Exception e) { increaseUnderstanding(e); } Oct 28 05:31:52 so AI will catch and swallow errors ;) Oct 28 05:32:04 JakeWharton isn't going to like that Oct 28 05:32:26 want to prevent AI from taking over the world? just create a thread uncaught exception handler that swallows errors. Oct 28 05:32:56 (I could've used "Throwable", I guess.) Oct 28 05:33:12 :D Oct 28 05:36:24 It'd be fun if an IllegalArgumentException prevented robots from taking over the world. Oct 28 05:36:47 not really sure i like the menu covering the overflow icon Oct 28 05:36:55 g00s: Yeah, I don't like that. Oct 28 05:37:08 Is there a way to (easily) stop that when porting to Material Design? Oct 28 05:37:25 you reminded me of this Oct 28 05:37:26 http://www.youtube.com/watch?v=E3418SeWZfQ&list=PLkZB4w9QmQ_P5ekRzGPr9CoNLTVzHJGxs&index=7 Oct 28 05:37:33 TacticalJoke no idea Oct 28 05:37:51 hmm, trying to figure out how to load a txt file from a java module (gradle) Oct 28 05:37:57 for a test Oct 28 05:38:34 in gradle? Oct 28 05:38:42 like the build file? Oct 28 05:38:44 no Oct 28 05:38:52 i just have default gradle project structure Oct 28 05:39:05 test/java and test/resources right? Oct 28 05:39:10 src/test/* Oct 28 05:39:22 put the text file in src/test/resources/ Oct 28 05:39:42 and then getClass().getClassLoader().getResourceAsStream("filename.txt") ? Oct 28 05:39:48 yeah, or Guava Oct 28 05:40:08 the thing i just wrote didnt seem to work, so i'm googlings Oct 28 05:40:13 hmm Oct 28 05:40:14 what does guava give me, i have it loaded already Oct 28 05:40:37 String contents = Resources.charStream("filename.txt", UTF_8).read() Oct 28 05:40:52 nice Oct 28 05:40:55 shall try Oct 28 05:41:09 using "filename.txt" will only work if it's in the same package Oct 28 05:41:21 if it's in the root of src/test/resources you'll need an absolute path ("/filename.txt") Oct 28 05:41:59 Ok Oct 28 05:42:03 i see, that must be the issue Oct 28 05:42:05 I'm in a catch-22 Oct 28 05:42:38 I figured out how to set up user authentication on my server. Oct 28 05:43:25 hello Oct 28 05:43:43 can some1 complete my app Oct 28 05:44:05 I am really stuck here though: in order for anything to work I need user authorization. Oct 28 05:44:28 But I am afraid that user authorization will drive away the very users I need Oct 28 05:45:07 Any thoughts on this? Oct 28 05:45:58 aren't you being dramatic Oct 28 05:46:02 loekfef: yes, how much do you pay? :) Oct 28 05:46:03 you have your app deployed and it works fine Oct 28 05:46:17 so obviously *something* works without authorization Oct 28 05:46:34 also, look how many users have facebook accounts, i dont think authorization drove their users away Oct 28 05:46:46 login with facebook ;) Oct 28 05:46:52 you have an advantage, you dont need to authorize users until they need a feature that requires auth Oct 28 05:47:15 So there's a slight problem with that. Oct 28 05:47:24 i got muny Oct 28 05:47:25 oh, wait.. Oct 28 05:47:44 Well, ok, so here's the problem Oct 28 05:48:01 identify users by stealing their credit card no. Oct 28 05:48:08 sounds legit Oct 28 05:48:19 I'm just thinking about puzzle data Oct 28 05:48:24 and multiple devices Oct 28 05:48:38 although this isn't a big problem -- 913 users, 923 devices Oct 28 05:48:53 dont waste your time on edge cases Oct 28 05:48:58 its' dum Oct 28 05:49:02 1/5 stars Oct 28 05:49:04 wait until you have a problem to fix it Oct 28 05:49:50 maybe i can separate this Oct 28 05:49:55 Agamemnus you should work on your next app Oct 28 05:50:13 on my app Oct 28 05:50:18 i want to do this first.. Oct 28 05:50:18 he doesnt know java lol Oct 28 05:50:19 :P Oct 28 05:50:23 loekfef: I'll complete yours if you complete mine Oct 28 05:50:24 (trolol~) Oct 28 05:51:01 who doesnt know java ??> Oct 28 05:51:12 U Oct 28 05:51:28 java earlyman lang Oct 28 05:52:19 earlyman must fend for himself ! Oct 28 05:52:27 JacobTabak Oct 28 05:52:34 what do you think of this strategy Oct 28 05:52:42 Bear with me... Oct 28 05:53:11 Gems for money, or getting other players to activate a short code of yours Oct 28 05:53:27 trade the gems for puzzle packs, trade money for puzzle packs Oct 28 05:53:31 EarlyMan gets the worm! Oct 28 05:53:42 import java.io BufferedReader inp = new BufferedReader (new InputStreamReader(System.in)); Oct 28 05:53:42 int T= Integer.parseInt(inp.readLine()); String s= inp.readLine(); Oct 28 05:53:47 btw, I think I need to add a pre-build task for test resources. I have one for test classes. My test using these resources works fine from the CLI but doesn't work in intellij Oct 28 05:53:51 so much trash just to " INPUT A " Oct 28 05:53:52 once you start getting gems or do the iap stuff, that's where the authentication requirement kicks in Oct 28 05:54:08 and java is not Java Oct 28 05:54:17 SimonVT you around ? Oct 28 05:54:21 in terms of game synchronization, query the server when the user logs in, and synchronize Oct 28 05:54:40 i think that should work. Thoughts? Oct 28 05:54:55 (only synchronize if they have an ID) Oct 28 05:55:09 (IE: if they already gave authorization) Oct 28 05:55:31 JacobTabak: that's an intellij 13 problem Oct 28 05:55:37 long been fixed in 14 Oct 28 05:56:04 isn't that something Oct 28 05:56:19 why am I using 13? Oct 28 05:56:35 because you either enjoy living in the past or you're using AS Oct 28 05:56:42 loekfef: what is your incomplete app ? Oct 28 05:56:51 dictionary Oct 28 05:56:59 14 just became available? Oct 28 05:57:12 it is working full a-z Oct 28 05:57:14 i don't think it's proper released yet Oct 28 05:57:19 i've been using the EAP for 4-5 months Oct 28 05:57:23 ah, does this remove the requirement to build test classes first? Oct 28 05:57:28 dont know how to add buttons where and background image Oct 28 05:57:36 the first release candidate was last week Oct 28 05:57:49 \o/ exciting Oct 28 05:57:54 hopefully it doesnt break everything Oct 28 05:58:13 no it's amazing Oct 28 05:58:36 what's the biggest difference Oct 28 05:59:08 i have no idea Oct 28 05:59:17 i've used it for 5 months seeing tiny improvements Oct 28 05:59:24 it all blurs together Oct 28 05:59:32 i'll hop on the 15 EAP as soon as it starts Oct 28 06:00:11 it has cool debug symbols inline Oct 28 06:00:22 EAP = Early Access to Pain :) Oct 28 06:00:41 i lost 1.6 chips in poker Oct 28 06:01:02 loekfef whats the square root of -1 ? Oct 28 06:01:13 i've only had an EAP not do what i wanted twice Oct 28 06:01:13 in 5 min Oct 28 06:01:20 and that was back in the 12 EAP days Oct 28 06:01:28 go ask SimonVT Oct 28 06:01:31 debug symbols inline Oct 28 06:01:34 this sounds good Oct 28 06:01:38 14 is still EAP Oct 28 06:01:45 JakeWharton, Hello, you never mentioned why you build with maven instead of gradle? Oct 28 06:01:50 unless i missed your answer Oct 28 06:01:51 (: Oct 28 06:02:14 in the past AS has been based on EAPs, not sure if thats still the case Oct 28 06:02:30 it was based on 13 EAPs because that's when they forked Oct 28 06:02:49 kevel: it's easier sometimes Oct 28 06:03:02 ide integration is better Oct 28 06:03:19 Ah ok, was just wondering Oct 28 06:03:37 better support for java-only libs too, eh? Oct 28 06:03:37 after seeing a lot of the square libraries littered with maven poms :p Oct 28 06:04:24 for simple java modules it's easier to manage Oct 28 06:04:24 I wish i had the time to learn how to build using maven Oct 28 06:04:45 and push them to the main maven repo Oct 28 06:04:49 ;( Oct 28 06:04:57 you can do it w/ gradle Oct 28 06:06:23 hmm I should look into that Oct 28 06:06:48 Whenever I read "Gradle", I hear it in that French Android dev's voice (I think his name is Xavier). Oct 28 06:06:51 Cannot un-hear. Oct 28 06:06:54 https://github.com/chrisbanes/gradle-mvn-push Oct 28 06:07:19 JacobTabak, ta Oct 28 06:07:51 its a bit old and probably not up to date Oct 28 06:08:00 u need a sonatype account Oct 28 06:08:05 which requires someone to manually approve it Oct 28 06:08:09 the process is so painful Oct 28 06:08:13 :| Oct 28 06:08:33 speaking of painful Oct 28 06:08:33 We are nearly in 2015 Oct 28 06:08:42 http://developer.android.com/google/auth/http-auth.html Oct 28 06:08:43 and they need someone to manually approve account creation? Oct 28 06:08:44 heres another thing: http://andydyer.org/blog/2014/10/05/hosting-android-dependencies-on-github/ Oct 28 06:08:57 you can host your projects on github Oct 28 06:09:05 I'm wondering wheter I should use the Java auth thing, or HTTP oauth. which needs an iframe. Oct 28 06:09:13 JacobTabak: you can but... Oct 28 06:09:23 isnt it slow ? Oct 28 06:09:50 not sure Oct 28 06:10:18 JacobTabak, you check out that guys beard in your previous link? Oct 28 06:10:23 of course Oct 28 06:10:26 Holy shi Oct 28 06:10:33 That guy knows whats up Oct 28 06:11:53 kevel: "Android and Ruby on Rails developer. Beer & coffee snob" Oct 28 06:12:05 dont know why he has android not iphone ;) Oct 28 06:12:20 lol Oct 28 06:12:22 with breard like that Oct 28 06:12:32 Oct 28 06:15:20 oh boy, Error running test: Jre expected but jdk found Oct 28 06:15:39 o.O Oct 28 06:16:40 Hi I am trying to get the http://robobinding.github.io/ bindings to work on android studio. At first I just tried using it without AspectJ it started yelling that annotation processing was not configured Oct 28 06:16:51 how to Oct 28 06:17:29 make my dictionary text file passworded Oct 28 06:17:52 Agamemnus that to auth with your own sever ? Oct 28 06:18:09 cause cant you kinda do it any way you want since you control it ? Oct 28 06:18:38 StingRay_ takes the bait Oct 28 06:18:51 bait ? Oct 28 06:18:51 no he will just show off users that it has all online user progress and top scores features and get 5 star Oct 28 06:19:23 Er Oct 28 06:19:24 StingRay_ rushing in where angels fear to tred Oct 28 06:19:32 *tread :) Oct 28 06:19:42 ugh, can't stand g00s anymore, putting him on ignore again Oct 28 06:19:58 g00s SimonVT's pet Oct 28 06:20:14 I don't understand your question Oct 28 06:20:45 There are like 3 ways of getting a token Oct 28 06:20:46 yeah but, i'm also a gremlin so ... cute only sometimes Oct 28 06:20:52 one, the link I just have Oct 28 06:21:00 two, a Javascript API I'm looking into right now Oct 28 06:21:13 Agamemnus I mean what are you "auth" with ? Oct 28 06:21:18 three, an HTTP API that sends a whole page that you need to create as a separate popup Oct 28 06:21:20 If you're a mogwai, I'll adopt you. Oct 28 06:21:53 The control flow (should be) like this: Oct 28 06:22:08 Agamemnus STOP…. what service are you attempting to login to ? Oct 28 06:22:11 User gives app permission to access email, contacts, and ID (I only need the ID) Oct 28 06:22:15 it really is a simple question Oct 28 06:22:17 I'm trying to explain Oct 28 06:22:33 give me a moment... Oct 28 06:22:49 Then the user gets a token via a request to Google Play Services Oct 28 06:23:03 Then the user sends this token to the server via POST (AJAX) Oct 28 06:23:16 Then the server sends the token to Google Play Services Oct 28 06:23:28 i'm hungry, and its after midnight Oct 28 06:23:29 Then it gets another token and sends THAT token, and a specific URL Oct 28 06:23:49 Googl Play Services returns some data. Like, the user ID Oct 28 06:24:11 If the user ID matches what the user sent in the first place (in the POST / AJAX above), the user is authenticated on the server. Oct 28 06:24:31 I went through all these steps manually but now I'm integrating them into the actual code. Oct 28 06:25:05 and this is just to use google play games services ? Oct 28 06:25:18 or for you to keep logins on your server ? Oct 28 06:25:27 or for auth with only your server ? Oct 28 06:25:28 It's so that my server can log in a user Oct 28 06:25:40 in my server Oct 28 06:25:41 I mean Oct 28 06:25:54 so what with the google play stuff there ? Oct 28 06:25:55 So that the server knows that user with google play ID 1337 is who he says he is Oct 28 06:26:19 does that make sense? Oct 28 06:26:34 Otherwise I can just say "hi, I'm player 1337, please give me access" Oct 28 06:27:04 And I figured out the mechanism Oct 28 06:27:25 well I have no idea what the point is…but was a good story :) Oct 28 06:27:59 But, to answer some of your other questions, I can actually store the second token indefinitely.. or until the user revokes it ._. Oct 28 06:28:30 Ok so has someone gotten roboguice to work with android studio? Oct 28 06:28:53 I have android studio v 0.8.6. Oct 28 06:28:54 well for example Oct 28 06:29:12 I'm going with a point system Oct 28 06:29:34 points from $, points from getting other users to install... so i need to store the points somewhere Oct 28 06:30:00 then the points are used to buy packs Oct 28 06:30:16 and everyone lived happily ever after... Oct 28 06:30:40 use google games api Oct 28 06:30:55 they have easy scores things Oct 28 06:32:03 it isn't scores though it is like in game currency Oct 28 06:32:22 it uses numbers though right ? lol Oct 28 06:32:31 btc Oct 28 06:32:53 well Oct 28 06:33:08 if i go with that, I might as well just code everything in the client Oct 28 06:33:23 well no, u use android + tools Oct 28 06:33:31 something that you seem to want to avoid :) Oct 28 06:33:39 by client I mean the app Oct 28 06:33:40 and wonder why you run into problems and confusion Oct 28 06:33:44 I know what you mean Oct 28 06:33:53 app = clientside + phone + cloud Oct 28 06:34:06 + my server in Texas Oct 28 06:34:25 I'm sure I could put it all in the cloud though Oct 28 06:34:39 put in some java code in a virtual google cloud server etcetc Oct 28 06:38:39 itissid: Roboguice operates 100% at runtime Oct 28 06:38:50 you shouldn't have to do anything to make it work with Android Studio Oct 28 06:44:22 i think this tool i used to free memory used up all my memory Oct 28 06:44:27 funny how these things work Oct 28 06:44:47 free memory is wasted memory Oct 28 06:45:03 said windows vista developers Oct 28 06:45:30 when you have 10mb free memory, gotta dredge more up from someplace, usually inactive Oct 28 06:47:57 JakeWharton: So I have been treating the gradle build system like a black box. I guess its time to know the unknown Oct 28 06:48:01 3:00 AM! Oct 28 06:48:25 * g00s doesn't understand why iosched SessionBrowseActivity adds a spinner view to the toolbar, but its actually a LinearLayout with only the spinner Oct 28 06:49:09 why would they put it on a LL as as the only child :| Oct 28 06:49:47 and orientation = vertical too, this is strange Oct 28 06:49:54 what does it matter? Oct 28 06:50:15 i figure they did it for some important reason Oct 28 06:50:21 which eludes me Oct 28 06:50:48 probably just leftover cruft Oct 28 06:51:02 you hold that app in way too high regard Oct 28 06:51:23 JakeWharton: is it possible to send "" value with retrofit ? Oct 28 06:51:30 as what? the body? Oct 28 06:51:32 or the value will always be omited Oct 28 06:51:35 as parameter Oct 28 06:51:41 query parameter? Oct 28 06:51:51 multipart POST Oct 28 06:52:00 did you try it? Oct 28 06:52:47 guy who's sitting next to me tried but having problems Oct 28 06:53:02 what type is the method parameter for that part? Oct 28 06:53:06 also, hi guy next to gordon_ Oct 28 06:53:12 :) Oct 28 06:53:25 is he gordon (sans underscore)? Oct 28 06:53:37 no he's not.. Oct 28 06:53:42 ah it's PUT Oct 28 06:53:46 wait I will check it ;) Oct 28 06:57:24 SimonVT are you around ? Oct 28 06:57:44 Had/Having a problem with drawer Oct 28 07:00:42 StingRay_ ever get that t-mobile issue fixed ? Oct 28 07:01:10 no, there are a few things I could try, but all I need is a t-mobile tech to look at server logs Oct 28 07:01:20 and I could, but thats just a bit hard to get done Oct 28 07:01:38 g00s I still try something new every day btw Oct 28 07:01:59 but it is shooting in the dark at a black object thats the size of a pin head Oct 28 07:02:37 gotta get that working Oct 28 07:02:53 it's not just me though Oct 28 07:03:13 there are many 3rd party apps that suddenly stopped Oct 28 07:03:20 do you need some kind of API key ? Oct 28 07:03:23 it is a format/spec issue on the message Oct 28 07:03:29 thats my guess Oct 28 07:03:42 maybe need to pass some special token ? Oct 28 07:03:43 JakeWharton: http://pastebin.com/fKx2U74w Oct 28 07:04:14 g00s could also be the case, some special auth from the phone, but again, no docs, reference or info Oct 28 07:04:25 so, dark room, black object again :( Oct 28 07:04:36 dam it's soooo depressing when you make me talk about it lol Oct 28 07:04:43 gordon_: and what do you get on the server? Oct 28 07:05:03 ya, nobody is going to care about the beautiful theme if it doesn't work Oct 28 07:05:24 my dictionary works Oct 28 07:05:29 how to add theme Oct 28 07:05:34 and nice buttons Oct 28 07:05:37 well, t-mobile…everyone else is ok :) Oct 28 07:05:57 StingRay_ tmo is pretty big ;) Oct 28 07:06:13 JakeWharton: It seems that even though I have followed the http://robobinding.github.io/RoboBinding/getting_started.html#_android_studio the annotation processing does not seem to be kicking in Oct 28 07:06:30 g00s I know!!! stop making me feel crap!!! Oct 28 07:06:32 :) Oct 28 07:06:37 this isn't like a little carrier in estonia Oct 28 07:06:52 ah only t-mob US though Oct 28 07:06:53 I was able to get the Annotation Processing Settings working for the build Oct 28 07:06:53 Oct 28 07:06:58 estonia t-mob works Oct 28 07:07:47 interesting Oct 28 07:09:11 StingRay_ have you tried calling t-mo for support? i remember 2 people here used to work for them :) Oct 28 07:09:20 2 of my users did Oct 28 07:09:28 with me on the line to them Oct 28 07:09:38 attempting to get to a server tech or something Oct 28 07:09:41 no joy Oct 28 07:10:21 it would appear the people that could tell me the problem in a few seconds do not have phones that you can call :) Oct 28 07:11:01 StingRay_: pm me the problem, I can't look at it until tomorrow night tho Oct 28 07:13:16 Do I need https://github.com/excilys/androidannotations/wiki? Oct 28 07:16:01 JakeWharton: parameter is omited on server in json Oct 28 07:26:47 Hii all i had installed Android ndk and made one program compiled it with ndk-build now i need to make it run over Android emulator but i searched and i got i need APK file, how to make APK file now?? Oct 28 07:26:53 What else i need Oct 28 07:27:31 https://code.google.com/p/android/issues/detail?id=63084 - interesting issue still not solved Oct 28 07:27:44 WHen there are multiple external storages how do you get the secondary (sdcard) paths? Oct 28 07:28:00 just posted this in #android but figured I'll ask here too, maybe someone has some insight Oct 28 07:28:03 hi, I have an issue with Google Now. it seems its volume is linked to the ringer/notification volume instead of media volume which would make more sense. that means it is too loud when I set the ringer volume to my desired level. is there any solution to this, other than complaining to Google? thanks. Oct 28 07:45:27 In Android i need to use WebRTC (audio/video part), what is the best way ? Oct 28 07:46:05 cordova Oct 28 07:49:34 I cant believe cordova is the best answer to any question that is "whats the best way to.." :) on Android at least Oct 28 07:51:21 what is cordova? Oct 28 07:51:45 some odd web tech :) Oct 28 07:51:57 actually I claim ignorance as I really dont know Oct 28 07:52:16 could be amazing for all I know, just never seen examples of anything that is Oct 28 07:52:29 I just googled for it Oct 28 07:52:31 My god Oct 28 07:53:24 It all seems to stem from the mistaken idea that "web technologies" are a good thing. Oct 28 07:56:32 next time do your google *before* you ask :p Oct 28 07:56:56 nobody has any clue about my question? Oct 28 08:23:14 StingRay_: Was the best answer Xamarin ? Oct 28 08:29:06 why would you want to use something web-like (webrtc) on android anyway? Oct 28 08:37:11 Hello, I am a beginner, I want to build a webservice, I am using mongodb in the backend. How do i do transactions between that and android? Could anyone suggest list of things I need to study to get there? Oct 28 08:37:25 Sophomore: HTTP Oct 28 08:38:00 ggVGc, I have used api's before. But never made them. I want to make one this time Oct 28 08:38:28 say I have a db which has collections of author info, I want to get jsons of them. How do I get to this? Oct 28 08:41:11 Sophomore: well, you need to understand HTTP Oct 28 08:41:31 that's the most important part of writing a web services Oct 28 08:41:40 eh, web service* Oct 28 08:41:42 ggVGc, aha, I see. Oct 28 08:42:33 Sophomore: initially you can just store data in variables in your app, or in simple files. Then when you have the web communication working, you can start looking at storing your data in a database Oct 28 08:43:29 Sophomore: you could just throw yourself into some framework, and try to make it work, and probably get some result. But you won't have much idea of what is happening, unless you take some time to actually understand the HTTP protocol, or what a database actually does or how it works. Oct 28 08:43:59 the HTTP protocol is not difficult, but surprisingly many web developers don't really know it Oct 28 08:44:04 but use APIs that use it Oct 28 08:44:21 ggVGc, I see why. I'll learn HTTP protocols deep down Oct 28 08:45:27 ggVGc: thank you :) I now have a clue where to start this journey. Oct 28 08:48:08 Sophomore: there is not much deepness in it, but just make sure you know what GET and POST requests etc. are, and what headers are common, and how a HTTP request is usually structured. It's a plain text protocol, and it's what the whole internet is built upon. It's enough if you spend a few days reading on wikipedia and googling a bit about it Oct 28 08:49:08 Sophomore: if you just start using a library that does the HTTP for you, it's easy to get problems with your network communication, that are hard to solve since you don't understand completely what the library is actually doing. Oct 28 08:50:05 ggVGc: I embrace abstractions, but I always love to know what's going deep down. I'll go through HTTP as you said. BTW what would you suggest I learn after HTTP? Oct 28 08:50:29 so Oct 28 08:50:53 i add this .nomedia empty file to my external storage, still using mediastore i can access all the images on my external storage. any idea why Oct 28 08:50:56 ? Oct 28 08:51:20 he shouldn't have to if the library does what it should. the lib should take care of pen Oct 28 08:51:24 Sophomore: you should learn how to do simple HTTP communication in a language you are comfortable with. Since you want to make an android client, maybe it's best to do that in Java, so you only have one language both for server and client. Oct 28 08:51:27 ignore Oct 28 08:52:14 ggVGc: I'm more comfortable with python than Java Oct 28 08:53:29 Sophomore: then start implementing your web service in python, and make a simple text based client that mimicks what you want your app to do. When that is set up, you can start looking at storing data in a database from your web service(I don't have a specific database of choice to recommend, that's up to you). Oct 28 08:54:14 Sophomore: at the end, when you have your web service running, using a databse, and it does most of what you want it to do, then you start writing the android app, and make it communicate with your service. Oct 28 08:54:34 but detailed knowledge of http headers is not required. just what functions to set get and post client side, what functions to read them server side and probably json encode and decode both sides. almost no httpprotocol knowledge required. Oct 28 08:54:38 ggVGc, that sounds perfect.. Oct 28 08:55:29 Sophomore: some databases are better than others, and some APIs are cleaner, but for you anyone will be okay as long as it feels comfortable for you to learn with, and has bindings in your language of choice(python probably) Oct 28 08:55:29 initially can I do this on my local host? Oct 28 08:55:33 yes Oct 28 08:56:16 just make your web service listen for HTTP requests on localhost, and respond accordingly. There are great libraries for it in python, but as I said it's good to have a basic understanding of what is happening. In the end it's just text Oct 28 08:56:17 okie, thanks ggVGc and rgr|android :) Oct 28 08:57:09 Sophomore: btw, python has simplehttpserver. Do NOT use that. Oct 28 08:57:37 ah? Oct 28 08:58:06 I actually came across this -> http://python-eve.org/ Oct 28 08:58:08 Sophomore: simplehttpserver is a quick way to set up a server in python, but it's very crappy, and not flexible, and will cause you trouble Oct 28 08:58:56 I'll keep that in mind. I'm so thankful you brought this up early :) Oct 28 08:59:20 Sophomore: never heard of it, but if it seems suitable for you, then go ahead and try it. The important part is just to focus on each thing in the order of importance. I.e don't spend time on databse stuff before you have a working HTTP api set up. Don't write a client until you have a basic web service doing what you want. Oct 28 08:59:25 but yeah, you get the drift Oct 28 08:59:59 the best way to learn about the guts is to start from scratch Oct 28 09:00:16 also, this is hardly android-dev related by now Oct 28 09:00:24 I see what you mean. Oct 28 09:00:38 ravilov, :) sorry for that. Oct 28 09:57:40 hi! can someone point me to the code on blender repository where the 'Roughness' is computed for the Glossy Shader? Oct 28 09:57:59 no there XD Oct 28 09:59:03 HunterD are you talking about the 3d app ? Oct 28 09:59:29 I wanted to post this on blender developers, my bad. yes, the 3d app :) Oct 28 10:00:13 well FYI the glossy shader with either be 2d bump/dot3 or dot3 normal calculation at light/shade time Oct 28 10:00:19 just generic really Oct 28 10:00:33 does anyone here tried to play with the instagram API with android ? is there any way to avoid asking user their passwords, and use the "instagram app" to handle autantication / authorisation ? Oct 28 10:04:43 http://abc7.com/news/p/367110/ Oct 28 10:12:07 hey guys I have an ImageView within a RelativeLayout that is marked with a tag...how do I get a reference to that ImageView??? ImageView imgHome = (ImageView) view.findViewWithTag("10").findViewById(R.id.hometeamimg); Oct 28 10:12:19 that's what I would think would work but it returns null Oct 28 10:15:19 MartialLaw why not use ID ? Oct 28 10:15:24 oh and tag is an "object" Oct 28 10:16:23 ok some I'm working with a calendar and i'm trying to get a reference to each cell..and the only way, I can see, to do that is to mark each cell with a tag so I can get a reference to it later Oct 28 10:16:55 MartialLaw well, normal use would be an adapter, that powers the views Oct 28 10:17:05 so then the reference is the index Oct 28 10:17:12 hm ok Oct 28 10:17:19 getItem(index) etc Oct 28 10:17:28 same as with listViews Oct 28 10:17:35 gridViews etc Oct 28 11:15:05 Hi! How can I get both the Gyro and Accelerometer data inside a sensorChanged method? I have registered a listener for both the accelerometer and gyro, but how is it sent in the SensorEvent object? Oct 28 11:16:04 I have a "SearchView" in a Layout, and I want, when the user click on it, to make the "edition area" on the top of the device, is it possible ? Oct 28 11:25:45 lemonxah, you around? Oct 28 11:48:10 I hate how it seems there's no way to avoid using support fragments Oct 28 11:58:02 http://www.google.com/design/spec/components/buttons.html#buttons-usage also this third one is just fucked up Oct 28 11:59:13 "to prevent too many layers of dimension" fucking designers Oct 28 11:59:19 useless pieces of shit Oct 28 12:00:01 just ignore it and do what works :P Oct 28 12:05:45 sure, but since there is such guidelines, most people will just fuck up their apps with these idiotic patterns Oct 28 12:06:03 ... who the hell would think that a piece of text would happen to be a button? -.- Oct 28 12:06:58 this kind of things make me want to do something that doesn't have anything to do with any kind of technology Oct 28 12:07:32 http://i1.kym-cdn.com/photos/images/facebook/000/126/314/3cd8a33a.png Oct 28 12:07:35 It is apparent from the colour Oct 28 12:07:39 you'll get used to it Oct 28 12:07:45 marrrk, no, it's not Oct 28 12:07:57 in google's own things it's THE SAME COLOUR AS EVERY OTHER TEXT Oct 28 12:08:10 You are right Oct 28 12:08:16 the ones on the bottom are a bit stupid. Oct 28 12:08:35 They should have done it like in iOS where the stuff that is pressable is blue and normal text is black. Oct 28 12:09:14 I think it is the screamed bit here. The fact that it is all caps. Oct 28 12:09:30 Yeah, actually that's it. So there you go. Oct 28 12:09:46 this fucking flat trend is just facepalm-worthy Oct 28 12:10:23 even the material design pages look really boring Oct 28 12:10:30 This is the first time that android doesn't look like shit Oct 28 12:10:44 I liked holo dark Oct 28 12:11:03 holo light is o Oct 28 12:11:04 op Oct 28 12:11:28 Holo wasn't nice. If only they dropped Roboto now. Oct 28 12:11:41 opinions, whatever Oct 28 12:11:45 flat is crap Oct 28 12:12:10 and I will always complain about buttons that don't make themselves clear that they're buttons... it will make the users confused Oct 28 12:13:34 I like it. Oct 28 12:14:02 it makes the buttons harder to find since most people don't read what's on the screen anyway Oct 28 12:15:08 http://material-design.storage.googleapis.com/images/components-dialogs-usage-stackedfullwidthbuttonsa_large_mdpi.png -.- is even worse, I don't think I could consistently hit the one that I would want to hit Oct 28 12:15:20 The thing is Oct 28 12:15:24 it forces you to make your stuff clear Oct 28 12:15:40 Nobody will see this screen and think: "What can I do now?" Oct 28 12:15:56 I did, the first time I used L preview Oct 28 12:16:00 obviously NO THANKS is not part of the explanation about permissions Oct 28 12:16:22 Yeah, but I guess you figured it out pretty quickly. Oct 28 12:16:38 after puking all over my phone and ranting about it in public Oct 28 12:16:48 but it's still disgustipating Oct 28 12:17:35 it should have some sort of clear and visible click area to be viewed as a button Oct 28 12:17:36 When I see this: http://i.stack.imgur.com/sBZmT.png I'm all for form over function. Oct 28 12:17:45 otherwise there's no way to know where you can press Oct 28 12:18:09 just forget about pre ICS already -.- Oct 28 12:18:38 http://i.stack.imgur.com/N6mKx.png was clear and easy to figure out Oct 28 12:19:22 There is so much unnecessary stuff like the blue line. Tufte would not approve. Oct 28 12:20:05 tufte? Oct 28 12:20:25 You might know him by the name Ted or Ed or Eddybaby. Oct 28 12:20:31 Zharf: Yeah but it's ugly as fuck Oct 28 12:20:36 never heard Oct 28 12:21:07 Mrdarknezz, no it's not :p - and even if it is, in your opinion, it still makes instantly clear what's a button and what's not Oct 28 12:21:31 But the aesthetics do play a non negligible role. Oct 28 12:21:56 that's beside the point Oct 28 12:22:48 No, it's not. You could equally say: How am I supposed to know I can click on that box down there, it is not bevelled. Or "the font is not all Caps". It's a different paradigm. Oct 28 12:23:46 it's clearly surrounded area that puts focus on it though Oct 28 12:23:57 I don't see any difference in text between upper case and lower case letters Oct 28 12:24:01 marrrk, that is the pretties UI android has ever had Oct 28 12:24:05 Zharf, o/ Oct 28 12:24:17 ravilov: What is? Oct 28 12:24:24 I like the all caps stuff to indicate that it's a button Oct 28 12:24:30 marrrk, http://i.stack.imgur.com/sBZmT.png Oct 28 12:24:45 everything after that is just... meh Oct 28 12:24:59 Hi! Oct 28 12:25:19 I can't read haskell without spending like a minute per character because it gives different semantics to things based on if they start with an upper case letter or not Oct 28 12:25:31 I just finish coding my game, now I want to publish on google play, so I followed https://developers.google.com/games/services/console/testpub steps Oct 28 12:25:43 but I don't see where can I upload my .apk file Oct 28 12:25:47 ravilov: Is it though? Oct 28 12:25:55 most certainly Oct 28 12:26:10 Or is it much rather like this: http://i.imgur.com/W2n1a.png Oct 28 12:26:30 <3 this ^^ Oct 28 12:26:34 marrrk, how is that even related? Oct 28 12:27:23 Is it okey to use UncaughtExceptionHandler for my activities and send crash informations without showing the user a crapy ANR dialog? Oct 28 12:27:27 Not exactly sure, I think the Windows one is the Android's one's uncle. Oct 28 12:27:59 any idea? :( Oct 28 12:28:02 to me, pre-and-including-2.2 look is the prettiest ever, it was visually pleasing, android had a "personality" back then. everything after that is... I don't even know what to call it. web-like? copying other platforms? visual experiments that don't last? Oct 28 12:28:20 marrrk, that would make sense since windows 8 fucked itself up with flat crap too ;) Oct 28 12:28:26 * napster likes material design Oct 28 12:29:05 napster, it has some good aspects, but I'm really annoyed by the non-button-like button Oct 28 12:29:09 * napster likes Yosemite too. ;) Oct 28 12:29:18 aha Oct 28 12:29:20 napster just became irrelevant :p Oct 28 12:29:38 atleast don't kick me from the channel :D Oct 28 12:32:00 marrrk, http://i.imgur.com/CJQpBBx.png wasn't bad at the time either, what you posted is just an abomination as a consequence of letting users mess with it too much :p Oct 28 12:32:13 (a screenshot from one of my VMs, btw) Oct 28 12:33:06 25 KB free. :) that image is sized more than that. :) Oct 28 12:33:43 ... Oct 28 12:33:46 can't read? Oct 28 12:34:04 :p Oct 28 12:34:37 kids today, don't even know what they're talking about :p Oct 28 12:35:12 hello Oct 28 12:35:47 i’m following the basic tutorial, and i’m using ICS as my baseline OS Oct 28 12:36:02 good for you Oct 28 12:36:18 but i don’t know how to add the ActionBarActivity to my project Oct 28 12:36:27 i read it’s in support Oct 28 12:36:28 Just use activity Oct 28 12:36:41 ok Oct 28 12:36:43 thanks Oct 28 12:36:49 np Oct 28 12:37:09 ravilov: why’s that good? i was using gingerbread, but i was advised against it. Oct 28 12:37:38 80%+ of devices are now ICS + post ICS. Oct 28 12:37:39 hm, clearly you don't understand the meaning of my statement Oct 28 12:38:10 napster: seems that way for me too Oct 28 12:38:10 it's okay Oct 28 12:40:16 * ravilov still wonders where's this sudden influx of noobs coming from Oct 28 12:41:26 I thought n00b are pretty much welcomed here. Oct 28 12:42:36 they are not unwelcome, but there are much better places to seek information Oct 28 12:42:49 like? Oct 28 12:43:02 Sorry ravilov, I'm herding them Oct 28 12:43:05 the whole rest of the internet? Oct 28 12:43:11 VnM, what's your plan? Oct 28 12:43:30 That would be telling Oct 28 12:43:32 ravilov, I would to disagree with yours opinion on android pre 2.2 visual candy being at its prime Oct 28 12:43:56 VnM, yeah, was worth a shot Oct 28 12:44:02 ravilov, i never liked the whole holo feel, material is leading in a better direction (not exactly the right direction) Oct 28 12:44:08 kevel, beauty is in the eye of the beholder, they say Oct 28 12:44:16 pre 2.2 was very bloated imo Oct 28 12:44:33 ravilov, true, thats why im voicing my opinion as you did yours Oct 28 12:44:36 material is nothing but a webified UI, just like win8.1 - it won't last Oct 28 12:44:49 ^ Oct 28 12:45:00 it does Oct 28 12:45:07 i wont even argue with that Oct 28 12:45:13 but its better than holo Oct 28 12:45:21 hi Oct 28 12:45:33 what is the best way to get context inside a OnRefreshListener ? Oct 28 12:45:48 Google just needs to find something that makes more sense Oct 28 12:46:07 When you look at an iOS / Mac design element you can tell straight away Oct 28 12:46:11 HEY, ITS IOS/MAC Oct 28 12:46:17 2.2 and pre was something that was uniquely android's, perhaps it wasn't the prettiest out there but it was very pleasing nevertheless Oct 28 12:46:20 android you can't really do that Oct 28 12:46:26 because its always changing in some way Oct 28 12:46:34 and people always do weird theming Oct 28 12:46:54 ravilov, now what if they continued along 2.2 and refactored for candy? Oct 28 12:47:11 probably would mess it up some other way Oct 28 12:47:24 google is known for messing things up Oct 28 12:47:41 I have an onItemSelectedListener for a Spinner. However, the onItemSelected method is not only called when selected an item but also during onCreate. How can I prevent the method from being called in onCreate? Oct 28 12:47:42 Square should write the next google UI design Oct 28 12:47:54 as they seem to be fixing most android library issues with their own solutions Oct 28 12:47:54 :p Oct 28 12:48:26 don't think square does design Oct 28 12:48:35 don't think so either Oct 28 12:48:42 ravilov, how old are you if i may ask? Oct 28 12:48:49 you may Oct 28 12:48:55 sweet Oct 28 12:48:58 HOW OLD ARE U Oct 28 12:48:58 he might not answer Oct 28 12:49:03 there Oct 28 12:49:08 happy now? you asked Oct 28 12:49:09 :p Oct 28 12:49:12 so he's older than 25 Oct 28 12:49:16 what is the best way to get context inside a OnRefreshListener ? Oct 28 12:49:21 im guessing between 28-35 Oct 28 12:49:26 what's it matter? Oct 28 12:49:59 equal respect and attitude to all, unless they prove to deserve otherwise Oct 28 12:50:01 ravilov, different age groups are exposed to different ui designs through technology while growing up Oct 28 12:50:10 and this influences which designs you prefer etc Oct 28 12:50:38 well as far as android goes, there have only ever been a few designs Oct 28 12:51:03 sure, android Oct 28 12:51:14 are you saying my preference for 2.2-pre is influenced by my childhood past? :p Oct 28 12:51:15 but windows also, mac, ios Oct 28 12:51:19 blackberry Oct 28 12:51:28 ravilov, somewhat yes Oct 28 12:51:34 not in its entirety Oct 28 12:51:54 * ravilov waits for further psychoanalysis :p Oct 28 12:52:08 now tell me, how does this make you feel? Oct 28 12:52:10 ;) Oct 28 12:52:22 better question would be Oct 28 12:52:28 what do you see in this random blot of ink? Oct 28 12:52:48 Show us on the doll where the mobile OS touched you ravilov Oct 28 12:52:52 Did you know that trained psychologists are not meant to ask "how does that make you feel" Oct 28 12:53:06 VnM, I...I..can't Oct 28 12:53:08 as it aggravates people more than it should Oct 28 12:53:18 kevel, didn't know that Oct 28 12:53:33 aggrevates? how? -.- Oct 28 12:53:46 Zharf, you must really really love that emote :p Oct 28 12:53:49 but then I always find human behaviour and reactions weird Oct 28 12:53:49 Well if I'm depressed and I go sit talking to someone, and they ask Oct 28 12:53:53 How does this make you feel? Oct 28 12:53:55 me, I don't even know what's it supposed to mean Oct 28 12:53:59 Its like, well im here talking to you Oct 28 12:54:09 how the **** do you think it makes me feel Oct 28 12:54:38 ravilov, it's reminiscent of that bash.org quote Oct 28 12:54:42 Zharf, it's pretty simple now that I think about it - professionals aren't ever supposed to ask that, they are supposed to deduct that from your behavior and reactions Oct 28 12:55:10 I don't know what quote you're referring to Oct 28 12:55:18 but I do know you're seriously overdoing it Oct 28 12:55:42 http://bash.org/?63048 Oct 28 12:56:02 um ok Oct 28 12:56:05 ravilov, I don't have logic behind my emote uses Oct 28 12:56:16 then you should probably not use them Oct 28 12:56:19 just like I don't have emotions Oct 28 12:56:30 you are clearly broken Oct 28 12:56:32 go talk to kevel Oct 28 12:56:38 no, he's full of shit Oct 28 12:56:43 :p Oct 28 12:57:03 aren't we all? how else would you dispose of all the junk from your body? Oct 28 12:57:32 too literal ravilov , too literal Oct 28 12:57:40 Is it a good practice to use UncaughtExceptionHandler for all my activity threads and send crash informations without showing the user an ANR dialog? Oct 28 12:58:34 napster, exceptions have nothing to do with ANR, perhaps you were thinking of FC? Oct 28 12:59:03 yes Oct 28 12:59:05 sorry Oct 28 12:59:30 now I see why you think/hope noobs are welcome here :p Oct 28 12:59:56 :) Oct 28 13:01:03 if you ask me, there is no problem with that approach so long as you plug any obvious holes, it would be quite dumb sending a crash report because of an embarrassing NPE you should've caught ages ago while developing Oct 28 13:01:28 in other words, you can deploy that strategy once your app is mature and robust enough Oct 28 13:01:44 ok Oct 28 13:02:00 but definitely at least make a toast informing the user what happened Oct 28 13:02:07 that is, when google has come up with a couple of new redesigns of their guidelines and you'll have to rewrite everything anyway Oct 28 13:02:24 ok Oct 28 13:02:53 Zharf, you want some cheese with that whine? truth is, whatever google decides to come up with needn't affect you at all, whatsoever Oct 28 13:02:55 perhaps a dialog asking if he/she really wants to send the information Oct 28 13:03:16 if you want, you can ignore this new fad that is Material altogether, I know I will Oct 28 13:03:18 ravilov, I know :p Oct 28 13:03:56 napster, that is not much different than the standard FC dialog (which also provides the "report" button) Oct 28 13:04:17 I wonder how many people in this channel are active users Oct 28 13:04:25 about 2% Oct 28 13:04:49 ok Oct 28 13:05:26 I keep getting this Oct 28 13:05:27 https://www.dropbox.com/s/q14zygmqw0ei5xo/Screenshot%202014-10-28%2015.04.53.png?dl=0 Oct 28 13:05:28 I tend to hang around in development forums of whatever I'm doing at the time and hardly ever end up asking anything Oct 28 13:05:33 Im still at that AS migration :\ Oct 28 13:05:53 Zharf, that is true, you have a different thing going :p Oct 28 13:06:52 Odaym add compile 'com.google.android.gms:play-services:4.0+' to your app's build.gradle Oct 28 13:07:06 am I even sure that it's 4 that I have? Oct 28 13:07:09 Odaym, that's sure a heck of a way to spend your vacation Oct 28 13:07:28 :) ^^ Oct 28 13:07:44 I just added those numbers for google play services because I remember it being something with 4, and for support library because the error said its version shouldnt be lower than the target SDK Oct 28 13:07:55 how do I find out which numbers exactly should go there Oct 28 13:08:12 brute force :p Oct 28 13:08:18 try every combination possible Oct 28 13:08:20 the plus sign at the end represents the latest version I think . Oct 28 13:08:31 the build.gradle at the root of the project or the one of hosting dir? Oct 28 13:08:33 kik Oct 28 13:08:35 lol* Oct 28 13:09:13 * Zharf has com.google.android.gms:play-services:6.1.11 in his test project thingie Oct 28 13:09:43 there's an error you get if you use gps 4+ while publishing Oct 28 13:09:52 that you need to use something earlier than 5 Oct 28 13:10:04 for some fucking reason Oct 28 13:10:30 lol ravilov yea vacation for a young guy is not really vacation, just spending time as I would normally do Oct 28 13:11:06 I do have that line inside the build.gradle, napster; that's the problematic line Oct 28 13:11:20 you wouldn't have seen those errors if it werent for that line Oct 28 13:11:32 and support lib and play services and all comes magically comes magically from mavencentral Oct 28 13:11:46 yep, that's how I added them with AS, from that dialog Oct 28 13:11:48 thats right ^^ Oct 28 13:11:56 Odaym, let me guess, you are also single :p Oct 28 13:11:57 but they come as 0.0 versions Oct 28 13:12:04 haha no i have a fiance Oct 28 13:12:20 i’m a little unclear on the minSdkVersion and targetSdkVersion attributes Oct 28 13:12:49 what is unclear that isn't covered in detail by the offical docs? Oct 28 13:12:49 a minSdkVersion of 14 – does this mean ICS+? Oct 28 13:12:57 ok, let's try all possible combinations Oct 28 13:13:11 scruz, yes Oct 28 13:13:24 ravilov: thanks. Oct 28 13:13:32 http://en.wikipedia.org/wiki/Android_version_history#Version_history_by_API_level Oct 28 13:15:48 none are working, how the fuck do you find out which version you have! Oct 28 13:15:54 isn't it the revision number? Oct 28 13:25:40 bitch please, this is how you find out which version you should include http://gradleplease.appspot.com/ Oct 28 13:28:14 lol, this reminds me, I've seen someone today with a nick OriginalFire, wonder if they have something to do with Chainfire :p Oct 28 13:29:17 getting a weird error. says ImageView cannot be cast to TextView... Just checked everything, nowhere does it say this particular view is an ImageView. hm Oct 28 13:29:42 pretty sure it also says where this happens Oct 28 13:30:40 MartialLaw, did you clean your project after adding/moving elements in your layout Oct 28 13:30:44 yep i see it... here it is.... daytext = (TextView) row.findViewById(R.id.gc_tx); Oct 28 13:31:11 clearly whatever you have under R.id.gc_tx is an ImageView, or the system believes so Oct 28 13:31:15 cleaning the project can definitely help Oct 28 13:31:36 yeah let me clean it. i'm looking at the xml now it's certainly a textview Oct 28 13:32:16 pretty sure cleaning will help, next time just do that first :p Oct 28 13:32:37 there we go.. thnx, always forget that will usually solve funky problems like this Oct 28 13:32:57 yeah Oct 28 13:33:02 it's always easier to ask first, eh? :p Oct 28 13:34:45 Odaym, lol what is this? some gradle/maven/whatever package search tool or something? Oct 28 13:35:00 ravilov: yeah guess so Oct 28 13:35:18 well I looked at it and there was the latest versions of what you needed to include, but its far from conclusive..pretty weak Oct 28 13:35:38 this post says I have to have Google Repository and Android support repository though, http://stackoverflow.com/questions/16624827/android-studio-with-google-play-services Oct 28 13:35:46 I didnt know that, thought you'd only need google play services Oct 28 13:37:00 Hello all Oct 28 13:38:14 ok, google play services compiles now Oct 28 13:39:01 so does support Oct 28 13:39:02 great shit Oct 28 13:39:05 upvote that man Oct 28 13:41:25 hi ! Hi have this "AutoCompleteTextView" that is kind of the bottom of my view. When editing it, there's a scrolling so the edittext is just above the virtual keyboard, and suggestion are above the edittext. Is it possible to make it scroll "more" in order to have the edittext on top of the screen, and the hints below the edittext ? Oct 28 13:42:10 How can I set the keyboard in my activity on top of everything else without shrinking the activity view. I use adjustPan, but that only works if the activity is not scrollable. Oct 28 13:47:00 I have a gridview and table adaptor Oct 28 13:47:25 I only want to show 2 rows at a time and be able to slide left and right to load the other items, can anyone point me in the correct direction? Oct 28 13:48:13 viewPager ? Oct 28 13:49:14 StingRay_ sorry I am fairly new to this, do I add the gridView to the viewPager? Oct 28 13:49:31 I dont know, I did not design your layout Oct 28 13:49:39 Well Oct 28 13:49:47 not using XML Oct 28 13:52:08 guys, is there some kind of JavaDoc for Android Gradle plugin? Oct 28 13:52:33 Any ideas wrt my question? adjustResize also has no effect. Oct 28 13:52:56 hi Oct 28 13:53:30 http://pastebin.com/sVsurctc i am trying put the textview over image,in eclipse appears correct, but when i run is not in center, anybody can hel pe? Oct 28 13:57:02 Hello, i published my application in play store yesterday and after 18 hours, the status changed to "Published", but when i try go to url i see "page not found" :(, someone can help-me ? Oct 28 13:57:20 t0th_-_ http://pastebin.com/GNkiQLtS Oct 28 13:58:56 upmauro post the playstore link Oct 28 13:59:22 is it possible to add the Support Library to an API 14 application? Oct 28 13:59:35 okay, this really is annoying... I have one paid app, which is out-of-date with all sorts of play store policies... haven't sold a copy in, oh, a couple of years Oct 28 14:00:00 but I can't just unpublish it, without *first* bringing up to policy, adding promo graphics, etc. etc. Oct 28 14:00:24 StingRay_, https://play.google.com/store/apps/details?id=br.com.webrota.msn.app Oct 28 14:01:10 upmauro any region restrictions ? Oct 28 14:01:23 StingRay_, not Oct 28 14:01:33 let me check, again Oct 28 14:02:39 StingRay_, yes, just brazil, how google check region from user ? IP ? Oct 28 14:06:39 hey, all Oct 28 14:07:10 can I use f-droid projects for my own purpose, which means can I monetize them? Oct 28 14:11:29 shadej if only the projects has the type of license listed eh ? Oct 28 14:11:33 leaked receiver? https://gist.github.com/znwabudike/45d0003fc94dc0f7c6d2 Oct 28 14:13:23 StingRay_: I dont fully understand license issues. but what if for example it is MIT license? Oct 28 14:14:14 MIT license is cool, just have a link to it somewhere Oct 28 14:15:12 MIT license is open source Oct 28 14:15:28 shadej: https://tldrlegal.com Oct 28 14:15:30 tricknology_: what is the link I add? Oct 28 14:15:41 i really don't understand these threads concepts. I guess will have to learn c/c++ for that. Oct 28 14:15:49 JuiceSSH: am on that link. Oct 28 14:16:09 http://opensource.org/licenses/MIT Oct 28 14:16:25 or you can put that in the app Oct 28 14:16:30 or in your source.. whatever Oct 28 14:16:42 just credit the person who wrote the code Oct 28 14:16:46 shadej: So you need to include the LICENSE and COPYRIGHT files from the project/library you are using, and display them in your app Oct 28 14:17:24 I have a legal section of my app that contains a list of libraries used and links to their licenses Oct 28 14:17:47 tricknology_: give the link to your app please. Oct 28 14:18:08 JuiceSSH: okay, thanks. but how will google check if I did not include any them? Oct 28 14:18:09 if you post your code to github, use the license files there so that you can let other people know that you’ve used the code. Sometimes, like with Apache, you need it in the header of the code that uses the lib Oct 28 14:18:14 shadej: From our app: https://www.dropbox.com/s/qrjp98j2fpn11ki/licenses_view.png Oct 28 14:18:17 I can’t, NDA Oct 28 14:18:36 Yeah, taht is prefect Oct 28 14:19:01 is that toolbar custom? Oct 28 14:19:02 Clicking on the view license button shows the contents of the library's full license Oct 28 14:19:12 tricknology_: nope, standard appcompat-v7 actionbar Oct 28 14:19:25 on the third part of the basic android tutorial, and i’m a bit stuck. apparently Eclipse generates a bunch of files when you create a new Activity, but I’m using IDEA and the cli. Oct 28 14:19:25 hm Oct 28 14:20:03 should sill be in /gen/ Oct 28 14:20:33 JuiceSSH do you have translucent flags + any kind of drawer in use ? Oct 28 14:20:40 okay great, JuiceSSH but who is going to check that? Oct 28 14:21:00 Why do I have to copy zipalign to ${android.build.tools.dir}/zipalign myself with the lateste update? Oct 28 14:21:07 I seem to have a setFitsSystemWindows problem Oct 28 14:21:21 Google broken again the build system? Oct 28 14:21:25 shadej: If you don't include it, then you risk your app being taken down if anybody reports it Oct 28 14:21:41 eg, the owner of the library you are using and violating their license Oct 28 14:21:45 or a random unhappy user Oct 28 14:21:51 JuiceSSH: got you thanks. Oct 28 14:22:13 StingRay_: Yeah, fitsSystemWindows can be a pain Oct 28 14:22:32 We use translucent on kitkat, but not on lollipop Oct 28 14:22:45 (only as kitkat doesn't allow you to just set a colour) Oct 28 14:25:07 what sort of value is this 0x01 ? Hex ? Oct 28 14:25:21 yes Oct 28 14:25:33 in decimal what is it ? 1 ? Oct 28 14:25:36 yes Oct 28 14:25:40 thanks :D Oct 28 14:25:46 :D Oct 28 14:25:52 byte b = 0x01 Oct 28 14:25:58 I think you can do that.. Oct 28 14:30:18 I'm curious regarding something Oct 28 14:31:15 In this piece of code http://pastie.org/9680864 - does the onCreateLoader get executed in a different thread ? the CursorLoader object creation happens on a different thread ? the query() call behind the scenees in cursorloader happens in a different thread ? which one ? Oct 28 14:33:55 you just simply check the docs for every class involved - bingo, there's your answer Oct 28 14:34:11 hm Oct 28 14:34:13 for example: CursorLoader - " This class implements the Loader protocol in a standard way for querying cursors, building on AsyncTaskLoader to perform the cursor query on a background thread so that it does not block the application's UI." Oct 28 14:36:09 can someone explain the logic of DrawerLayout.setDrawerShadow(wtf,wtf) Oct 28 14:36:31 no dimension ? just drawable and gravity ? Oct 28 14:37:41 ravilov: cool :D Although I was wondering something. Does the job on the new thread start after everything is completed on the main thread or it can happen simaltaneously? Oct 28 14:38:59 int resId, int gravity - resId is the drawable resource ID, gravity is one of the android.view.Gravity.* constants Oct 28 14:39:48 shmoon_, why would a thread wait for anything? threads are fully concurrent by definition Oct 28 14:40:02 this is all beginner stuff really... Oct 28 14:40:08 ravilov wanting to use drawable, gravity… but that still doesnt explain the logic of size Oct 28 14:40:14 not even android related, more like basic java Oct 28 14:40:21 0why does this get called soooo many times in a second? Oct 28 14:40:23 https://gist.github.com/znwabudike/45d0003fc94dc0f7c6d2 Oct 28 14:40:46 StingRay_, yes there's the drawable variant too, I guess the dimensions are the drawable's intrinsic dimensions? Oct 28 14:41:10 There is elevation but it's only added in API 21 https://developer.android.com/reference/android/view/View.html#setElevation(float) Oct 28 14:41:52 ie. if you use Gravity.BOTTOM then the drawable is stretched to cover the width of the view while the height is the drawable's intrinsic height Oct 28 14:41:56 just guessing though Oct 28 14:42:56 tricknology_, seems more appropriate for -root Oct 28 14:43:37 this is not a rooted device, ravilov, and it’s only coming up when my app is open Oct 28 14:43:56 thanks ravilov - i really need to do some c/c++ coding sometime soon I guess to understand pointers, threads, processes, etc. Oct 28 14:44:13 i come from a web dev background where I never cared about theselow level stuff Oct 28 14:44:22 probably only pointers, schmoon_ Oct 28 14:44:56 otherwise C++ and Java are syntactically similar Oct 28 14:45:07 I see Oct 28 14:45:28 well I made it Oct 28 14:45:34 no more Eclipse Oct 28 14:45:38 Has anyone had any luck playing video from internal storage? I haven't found a decent solution on SO. Oct 28 14:45:41 congrats Oct 28 14:45:50 thanks Oct 28 14:45:56 tricknology_, -root has nothing to do with being rooted Oct 28 14:46:02 How is it on the other side Odaym? Oct 28 14:46:16 if it's your app then... well, you're the one who's supposed to know about it :p Oct 28 14:46:22 so far so good Oct 28 14:46:30 much lighter experience Oct 28 14:47:14 let's see how long it'll last Oct 28 14:47:32 I give it until the next time you'll have to create an XML layout :p Oct 28 14:47:50 oh no I moved to AS, I didnt go with the IDE-less solution Oct 28 14:47:59 ah Oct 28 14:48:05 psh, that's far less impressive Oct 28 14:48:10 but moving to AS was hard, this was like my 4th try Oct 28 14:48:14 cause of the libs Oct 28 14:48:34 I was about to welcome you Odaym but thanks that you clarified Oct 28 14:48:45 you are Looney man Oct 28 14:48:55 what's the default value of layout_width and layout_height, fill_parent? Oct 28 14:48:55 are you sure it was worth it? Oct 28 14:48:58 :-P Oct 28 14:48:58 still waiting to see how long it'll last :p Oct 28 14:49:06 what does StingRay_ use? Oct 28 14:49:12 you mean Odaym's AS ? ? Oct 28 14:49:13 Illustrator probably :p Oct 28 14:49:20 haha Oct 28 14:49:24 wiky, there is no default value Oct 28 14:49:29 man AS is just very slick and fast Oct 28 14:49:31 feels pro Oct 28 14:49:35 meh Oct 28 14:50:00 if I ever have to goto IDE, it would be eclipse Oct 28 14:51:15 http://pastie.org/private/hhhetx8arqan3oilp1pjg <== I need to have tree items in a row, and two rows per page, the second page should only have three items, can anyone see what I am doing wrong? Oct 28 14:51:37 currently getting 4 items per page Oct 28 14:52:27 I presume the gridview is the wrong thing to use Oct 28 14:52:59 Odaym, like I said, let's see what happens when the "new toy" hype is gone and the beta-related bugs start pouring in ;) Oct 28 14:52:59 I am actually not even using the gridview in this example Oct 28 14:53:17 with my humble needs, I dont think I will ever run into any of those beta bugs Oct 28 14:53:24 you'd be surprised Oct 28 14:53:35 any help will be awesome Oct 28 14:53:38 it'll be all like "but I only wanted to do this trivial thing! how??" Oct 28 14:54:13 liquid-silence, what do you mean you're not using the gridview? then what's this? "GridView gridView = new GridView(this);" Oct 28 14:54:16 Odaym dont listen to ravilov ….he is old and gumpy…embrace the new and shiny, it's fun! Oct 28 14:54:19 grumpy* Oct 28 14:54:29 yeah but its not added to the view ravilov Oct 28 14:54:36 not its not used on the display Oct 28 14:55:02 definitely Oct 28 14:55:17 liquid-silence, hm, so that's why there's such a copious amount of code to read... ie. too much Oct 28 14:55:22 I'm trying to initialize a SupportMapFragment in code, but no matter what I try, getMap() always returns null. Any idea how I could get that to work? Oct 28 14:55:30 StingRay_, I guess we'll see :p Oct 28 14:55:31 there are 9 images, I want to show 6 and then swipe for the next two Oct 28 14:55:45 ravilov because I am not an android developer Oct 28 14:55:54 ravilov well I switched and if it gets to such and issue I would switch it IJ Oct 28 14:56:01 I just got handed very crap code and trying to fix it Oct 28 14:56:24 don't start thinking of the code as very crap :P Oct 28 14:56:35 well mine is not much better Oct 28 14:56:35 :( Oct 28 14:56:41 exactly Oct 28 14:56:48 embrace your ignorance bro Oct 28 14:56:54 haha jk Oct 28 14:57:46 oh well thanks anyway guys Oct 28 15:01:23 Does someone know how I can initialize a SupportMapFragment in code? I'm kind of stuck on this right now D: Oct 28 15:03:28 waht are you tryign to do? Oct 28 15:04:02 trying to add a map fragment to another fragment Oct 28 15:04:09 maybe use newInstance() Oct 28 15:04:28 already using that Oct 28 15:04:37 can you pastebin code>? Oct 28 15:04:49 hi Oct 28 15:04:58 sure, give me a second Oct 28 15:04:59 anybody uses https://github.com/PomepuyN/BlurEffectForAndroidDesign with gridview? Oct 28 15:05:52 gawd Oct 28 15:06:04 Lloir, so maany ppls Oct 28 15:06:35 anyone into android wearable's dev here? :) Oct 28 15:08:13 wearable's dev Oct 28 15:08:19 that is not going to become a new title, no, sorry Oct 28 15:08:24 tricknology_, http://pastebin.com/PAzCLKkk Oct 28 15:08:25 Nah, wearables ftl Oct 28 15:08:42 i'm trying to pair (bluetooth) with another device using the action "android.bluetooth.device.action.PAIRING_REQUEST" but, after entering the pin on the local device, nothing happens. Oct 28 15:08:54 yea you should use BLE Oct 28 15:08:58 it will fix that problem :P Oct 28 15:09:13 if the device is BLE, which most wearables are, no? Oct 28 15:09:38 I doubt that they need pairing, yea of course theyre ble Oct 28 15:09:51 but whyu not have the user pair it themselves? save you some troubles Oct 28 15:10:13 connecting is intantaneous Oct 28 15:10:18 much easier Oct 28 15:10:23 it's not BLE Oct 28 15:10:34 yea I figured, otherwise you wouldnt be using what you're using Oct 28 15:10:46 ShotokanZH was the one asking about wearables, not bitkiller Oct 28 15:11:01 yay imma there Oct 28 15:11:04 wow..he. sorry Oct 28 15:12:23 Syzygy, I haven’t used the mapFragments yet but the final GoogleMap looks strange to me Oct 28 15:12:57 can you go a bit more into detail as to what you think is strange? Oct 28 15:13:35 well you have a final value you are tryign to reassign when you reinflate your layout, no? Oct 28 15:13:58 it's final because i do some stuff in an annonymous listener later on Oct 28 15:14:04 final is for vars that cannot later be changed Oct 28 15:14:37 i believe the value is thrown out and recreated on reinflation, doubt that is the issue Oct 28 15:15:08 since it crashes even on first inflation Oct 28 15:15:26 but I just went ahead and put it as a field variable instead, let's see if that works Oct 28 15:16:08 brb, coffee Oct 28 15:18:51 back Oct 28 15:19:58 well, guess my android stuido is broken right now, I've been trying to test the changes since before you went away and it still hasn't pushed it on my emulator or my phone Oct 28 15:21:41 :/ Oct 28 15:21:45 check this though.. Oct 28 15:21:46 http://stackoverflow.com/questions/16978190/add-google-maps-api-v2-in-a-fragment Oct 28 15:22:05 I’m not sure you need to explicitly call onCreateView() Oct 28 15:24:04 here is a better example: http://stackoverflow.com/questions/13733299/initialize-mapfragment-programmatically-with-maps-api-v2 Oct 28 15:24:10 my first implementation looked mostly like that, but it crashes when I try to open the fragment again Oct 28 15:24:31 check their call to super() Oct 28 15:24:36 in the 2nd link Oct 28 15:25:35 so maybe change mapFragment.onCreateView(..) to super.onCreateView(inflater, (ViewGroup)view.findViewById(R.id.mapContainer), savedInstanceState); Oct 28 15:25:48 had that open as well, but that would require me to chain inheritance (extend my base fragment and then extend the supportmapfragment) Oct 28 15:26:02 anyway, how can i pair programmatically, without using reflection? Oct 28 15:26:10 I kind of want to avoid that, although that option seems more and more attractive to me by now Oct 28 15:26:15 ah. Sorry man, I haven’t dont any maps stuff since V1 :/ Oct 28 15:26:43 heh, it’s all abotu the area under the curve Oct 28 15:27:29 right now a more pressing issue for me is that my android studio isn't pushing to my devices -.- Oct 28 15:31:09 starting to hate fragments Oct 28 15:31:58 dont be a bandwagoner Oct 28 15:32:27 well , answering my own question, createBond is publicly available in api leve 19 Oct 28 15:32:35 Fragments are fine so long as you never ever rotate the screen. Oct 28 15:33:23 JacobTabak, I'm starting to hate them due to my own experiences with them :> Oct 28 15:34:02 also my android L emulator is listed as api 1... nice Oct 28 15:34:23 How do I get customized overflow menu? Basically multiple buttons in a row. Something like. http://i.imgur.com/MSjvnL6.jpg Oct 28 15:35:06 trc, vertical linear layout with horizontal linear layouts as clickable elements? Oct 28 15:35:08 ugh, how do I get the physical screen size in pixels, all the apis return the screensize minus decoration Oct 28 15:35:15 except for Display.getRealSize, but that's like stupid new Oct 28 15:35:39 api17+ Oct 28 15:36:39 I could use Configuration, but that's pretty hacky... Oct 28 15:37:03 Syzygy: I can out layout inside menu items? Or just make complete new layout component and pop it up instead of menu Oct 28 15:37:18 pfn, you could put the app into fullscreen for a short while (e.g. during loading) Oct 28 15:37:22 hello Oct 28 15:37:33 anyone here use intellij? Oct 28 15:37:39 Display display = getWindowManager().getDefaultDisplay(); Oct 28 15:37:39 int width = display.getWidth(); Oct 28 15:37:39 int height = display.getHeight(); Oct 28 15:37:40 Syzygy, yeah, that's a pretty crappy solution, too Oct 28 15:37:49 beo6, that is adjusted for decoration Oct 28 15:37:58 trc, I was thinking of a completely new layout, but I believe you can change the layout of the menu as well Oct 28 15:38:22 pfn, not saying it's good, just saying it's a solution :> Oct 28 15:38:22 I have an ArrayAdapter connected to a ListView. the problem is that i add items to the adapter with adapter.add(text) but the problem is that in the view i only see the first element Oct 28 15:39:03 pfn, another bad one is figuring out the device and checking the resolution on the web :> Oct 28 15:39:19 Hey, does anyone here use Amazon SNS for push notifications? Oct 28 15:39:46 heh, api14-16 you can reflectively get Display.getRawWH Oct 28 15:39:55 then for api17 have to use getRealSize Oct 28 15:40:18 pfn: you mean with the onscreen buttons? Oct 28 15:41:22 there is also http://developer.android.com/reference/android/util/DisplayMetrics.html Oct 28 15:41:27 can someone explain what this: http://developer.android.com/reference/android/graphics/drawable/Drawable.ConstantState.html is used for? Oct 28 15:41:35 jimmyff we do Oct 28 15:41:52 there's one problem though Oct 28 15:42:09 the source of the project as it was on Eclipse is much different than how it's become on Android studio Oct 28 15:42:27 so the repo should contain something completely different now Oct 28 15:42:40 well the structure not the source Oct 28 15:43:41 beo6, also adjusted for decoration Oct 28 15:45:13 pfn: for me it sounds like the real display resolution. If not the documentation is wrong. Oct 28 15:45:29 beo6, read the docs for getMetrics Oct 28 15:46:57 pfn use metrics and assume explicit dp for nav and sys Oct 28 15:47:11 StingRay_, yeah, also a hack Oct 28 15:47:12 yeah, getting display resolution is awful Oct 28 15:47:19 I'll just reflectively get rawsize for 14-16 Oct 28 15:47:21 ok. you are right. sorry. i will be silent now. :) Oct 28 15:47:22 but then again, it's usually a rather useless information anyway Oct 28 15:47:35 since 99.9% you actually need visible area Oct 28 15:48:15 in this case, I need native resolution Oct 28 15:48:34 yeah, that's an utter and total mess as you've noticed :) Oct 28 15:49:11 just use the api that works and use another for older devices Oct 28 15:50:58 osipovas great, could I ask you a couple of questions about it? I'm about to implement it for a dating app. Would I have a each user set up as a topic? When I want to send to that specific user (eg: they recieve a new message) then I'd publish a summary to that topic? Oct 28 15:51:21 https://gist.github.com/pfn/03202e024ecb234a9db9 Oct 28 15:51:23 Syzygy, is there a DDMS in AS? Oct 28 15:51:24 well, that's annoying Oct 28 15:51:35 check that you didn’t lose your adb connection Oct 28 15:52:00 tricknology_, there is. and restarting AS fixed the issue so whatever Oct 28 15:52:25 probably your adb connection. next time try adb kill-server Oct 28 15:52:33 adb start-server.. from terminal or console Oct 28 15:52:43 new issue. map.moveCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(location.getLatitude(), location.getLongitude()), 15)); used to work, doesn't work now Oct 28 15:53:07 no NPE? Oct 28 15:53:14 the whole thing is within a onMyLocationChangeListener, it's getting called Oct 28 15:53:16 if i connect an Arraylist to an ListView adapter, and I add items to that adapter, the Arrraylist should be filled with the new items i added right? Oct 28 15:53:29 ufk no Oct 28 15:53:36 oh wait Oct 28 15:53:42 no, i dont think so Oct 28 15:53:45 what does "Connect" mean? Oct 28 15:53:57 also, that sounds like someone is going to be in a world of pain after 1 week Oct 28 15:54:04 so how can i retrieve the data from the adapter ? Oct 28 15:54:09 use BaseAdapter and control your own datastructure. Oct 28 15:54:11 Syzygy http://code.google.com/p/gmaps-api-issues/issues/detail?id=5353 Oct 28 15:54:19 tricknology_, yeah, I guess the simplest solution was to extend SupportMapFragment, even though I'll probably have to do it a bit differently than i'm doing right now Oct 28 15:54:23 that is, extend BaseAdapter. Oct 28 15:54:51 go that from here: http://stackoverflow.com/questions/17909767/googlemap-movecamera-or-animatecamera-according-to-latlngbounds-is-not-accurate Oct 28 15:54:52 jimmyff not sure this is the right channel for that discussion; you could try that; we don't use pubsub Oct 28 15:55:11 “”There is a bug with animateCamera and LatLngBounds” Oct 28 15:55:25 tricknology_, my issue is that it's not moving at all Oct 28 15:55:33 osipovas ah okay, what are you using it for then? marketing etc? Oct 28 15:55:49 oops, hate reversed logic, heh Oct 28 15:56:04 * StingRay_ is giving up on tinted nav/stat bars with drawer…ugh!! Annoyed ! Oct 28 15:56:18 try this? http://stackoverflow.com/questions/13692579/movecamera-with-cameraupdatefactory-newlatlngbounds-crashes Oct 28 15:56:28 no crash Oct 28 15:56:43 onLocationChanged() is being called? Oct 28 15:56:46 yes Oct 28 15:57:27 “I found after much experimentation that I needed to implement a combination of this answer and Daniele's above. Sometimes the map had not been loaded yet, sometimes layout had not completed yet. I couldn't move the camera as desired until BOTH of those happened” Oct 28 15:58:00 maybe implement some isLoaded flag Oct 28 15:58:30 and a condition to wait until lodaded to fire the camera change Oct 28 15:58:44 I’m a fan of callbacks and Handlers Oct 28 16:03:58 i'm using eclipse... it's constantly stuck at 0% android sdk content loader Oct 28 16:09:01 note to self: don't name an activity "class" Oct 28 16:12:44 hello everyone, what is easier to compile app android on the Eclipse ADT Bundle or Android Studio, anyone knows? Oct 28 16:13:23 it's all easy Oct 28 16:13:27 1 button press Vs 1 button press Oct 28 16:14:17 tricknology_, ok, so apperently I'm back to my original issue where I can't switch to another fragment and back because "Binary XML file line #1: Duplicate id...blablabla" Oct 28 16:14:25 the easiness of complication shouldn't be a factor in order to choose between those two IDE Oct 28 16:14:34 *complication Oct 28 16:14:39 compilation Oct 28 16:14:44 lol, can't write it correctly Oct 28 16:15:15 supposedly this happens when you have a fragment in a fragment Oct 28 16:15:18 but that's not a case Oct 28 16:15:19 OK, I will go to Eclipse if all easy :) Oct 28 16:15:27 http://stackoverflow.com/questions/24013375/maps-in-fragmentillegalargumentexception-binary-xml-file-line-7-duplicate-id Syzygy Oct 28 16:16:04 this one says to use mapView Oct 28 16:16:05 http://stackoverflow.com/questions/24731531/error-inflating-class-fragment-caused-by-duplicate-id-0x7f06003e-with-anot Oct 28 16:16:17 your problem is that you have a fragment within a fragment Oct 28 16:16:21 probably using the same xml Oct 28 16:17:01 tricknology_, I don't though. Oct 28 16:17:23 eh, do some googling on SO i guess, there are a few things that can cause that from what I can see Oct 28 16:17:32 http://stackoverflow.com/questions/20919048/android-android-view-inflateexception-binary-xml-file-line-8-error-inflatin Oct 28 16:18:01 I have an activitiy that has a 2 buttons, each one changes replaces a displayed fragment Oct 28 16:18:28 will a spinner in the action bar replace the activity title or sit next to it? Oct 28 16:18:33 presumably the issue is that my fragment is defined in XML, but I'm sticking to the official documentation for now Oct 28 16:20:04 yeah, it seems you are inflating the same xml Oct 28 16:20:27 you may be able to get rid of the xml and construct your fiews programatically, then no conflict Oct 28 16:20:34 views* Oct 28 16:20:40 that's exactly what I tried to do earlier Oct 28 16:20:50 hahah, the viscious cycle Oct 28 16:21:02 deviate from the tuts a little bit and everythign crumbles Oct 28 16:21:11 I'm not even deviating Oct 28 16:21:19 at least not really Oct 28 16:21:20 so the tut is broken? Oct 28 16:21:36 heh, you are a little bit Oct 28 16:21:46 I'm following them to the point functionally, but the tuts don't show how to switch out that fragment Oct 28 16:21:55 and that is the issue Oct 28 16:22:22 but why even have a MapFragment when it's virtually unuseable Oct 28 16:22:50 getActivity().getFragmentManager().beginTransaction().remove(myFragment).commit(); Oct 28 16:22:59 then add your other fragment Oct 28 16:23:45 replace should remove it and then add the other one Oct 28 16:24:15 sure that works too Oct 28 16:24:42 Anyone created custom Spans? I did one that adds some extra graphics on top (around) the text, but when I apply that span, the text can no longer be line-broken. Oct 28 16:24:51 but i'm already doing that. Oct 28 16:24:53 Is there some magic to apply to make that work? Oct 28 16:26:15 Syzygy: thi sis of Apr22, probably fixed by now but.. Oct 28 16:26:16 https://code.google.com/p/android/issues/detail?id=68856 Oct 28 16:26:17 in LineearLayout how can I configure the items to show up horizontally and not vertically? in google i found android:orientation but for some reason that property doesn't exist Oct 28 16:26:48 maybe post code, there is a lot you could be doing? Oct 28 16:27:45 I'll after I've tried this Oct 28 16:29:54 explicitly removing the fragment doesn't work either Oct 28 16:30:36 I'll go back to my simpler originall version before i started walking in circles 2 hours ago though Oct 28 16:31:24 Is this a custom bottom sheet or an appcompat widget for an intent chooser? https://lh3.googleusercontent.com/-LrwgHjqzTaY/VE_DY0UAteI/AAAAAAAAYcQ/obikP9FSHhs/w614-h1090-no/Screenshot_2014-10-28-12-25-02.png Oct 28 16:31:38 :( Oct 28 16:32:07 Syzygy use my fragment switcher lib ya n00b Oct 28 16:32:17 https://github.com/jacobtabak/Fragment-Switcher :D Oct 28 16:33:13 tricknology_, http://pastebin.com/aA8tdptr Oct 28 16:33:22 that's the current version, didn't yet revert any changes Oct 28 16:33:36 JacobTabka could probably help a lot more than I can lol Oct 28 16:33:46 He’s kind of a G Oct 28 16:33:47 that includes the activity, as well as the fragment that fucks up Oct 28 16:34:51 JacobTabak, we're already using so many libraries and stuff, we've hit the dex limit a few times already Oct 28 16:35:00 Syzygy just take the source Oct 28 16:35:02 its 1 class Oct 28 16:35:22 its a viewpager without the touchlistener Oct 28 16:36:03 and offscreen fragments Oct 28 16:38:19 Syzygy i can help you in about 2 hrs fi you're still around Oct 28 16:38:30 sure Oct 28 16:38:33 with what you have, not syaing you should use my stupid dingleberry Oct 28 16:40:29 I would prefer not having to rely on libraries for stuff that should be standard for this OS... as in switching between fragments -.- Oct 28 16:40:39 that's why i made the lib lol Oct 28 16:40:47 well you can do it w/o a lib if you're not concerned about saving instance state Oct 28 16:41:33 I'm not... I'm concerned about it not crashing when I go back to it Oct 28 16:41:37 O.o Oct 28 16:41:48 what's the difference between a library API and one in the OS? Oct 28 16:42:07 why "should" smething be in the OS? so it gets harder to update and you have to deal with old versions? :P Oct 28 16:42:14 you misunderstand Oct 28 16:42:31 Mavrik there is no android-provided API for switching between fragments and retaining their state Oct 28 16:43:05 except for viewpager, which has a lot of extra unwanted functionality like offscreen fragments, and touchlisteners Oct 28 16:43:29 I know :) Oct 28 16:43:40 just wondering why Syzygy wants your lib to be in the OS :) Oct 28 16:44:26 ok i just think you're nitpicking Oct 28 16:44:38 i'm sure he'd be fine if it was in the support lib or the os, he was complaining that there isn't one Oct 28 16:44:44 I never said that. but as far as I'm aware switching between fragments (as in fragment transactions like replace) is part of normal and intended fragment behavior Oct 28 16:44:45 anyoen ever had issues with devices randomly backing out of the activity? Oct 28 16:47:41 no, that doesnt happen :O Oct 28 16:53:37 Just spent about 8 hours writing DAO stuff. THere is no way there aren't at least a million bugs... Oct 28 16:56:02 tricknology_, the good news is that by changing back to my version I had at the start of the day I managed to restore the map camera features Oct 28 16:58:18 JacobTabak, I’ve had two complaints about it but I can’t reproduce it. Oct 28 16:58:43 I think i might have to sign them up on testfairy and log their activity events, onCreate, onResume, onKeyPressed, etc Oct 28 17:00:07 extending BaseAdapter, in getView i have convertView = LayoutInflater.from(context) Oct 28 17:00:07 .inflate(R.layout.ingredient_item,parent,false); and i get a NullPointerException java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object android.content.Context.getSystemService(java.lang.String)' on a null object reference. any ideas? Oct 28 17:00:34 hi Oct 28 17:00:48 ufk: don't paste in here, please Oct 28 17:01:03 sorry :) Oct 28 17:01:50 fun fact. when I change screen orientation I can switch back to the fragment without issues. maybe I have to reset the fragment manager everytime i switch fragments or something like that Oct 28 17:02:18 onCreate is being called again Oct 28 17:02:22 when you switch orientations Oct 28 17:03:35 yeah, so I'm trying to redo the relevant part of onCreate in my onClickListener Oct 28 17:06:58 Syzygy I'm a noob but I'm sure that sentence made no "android" sense to me :) Oct 28 17:07:22 http://android-developers.blogspot.com/2014/10/material-design-on-android-checklist.html Oct 28 17:08:41 StingRay_, during onCreate something happens to the the state of my fragmentmanager that makes stuff work that doesn't work a second time afterwards. I assume the fragment manager gets cleared and recreated Oct 28 17:11:22 Syzygy erm…what ? Oct 28 17:11:56 right now I have an activity that displays a fragment Oct 28 17:12:03 fragmentManager is boud to an activity though ? so not sure what can happen in onCreate :) Oct 28 17:12:18 bound* Oct 28 17:12:28 when i change the fragment and change back to it, the app crashes Oct 28 17:12:45 ok, why ? Oct 28 17:12:58 or rather, "maybe you should fix that" :) Oct 28 17:13:13 because Binary XML file line #7: Duplicate id 0x7f07015c, tag null, or parent id 0x0 with another fragment for com.google.android.gms.maps.SupportMapFragment Oct 28 17:13:46 ok so you are attempting to next a fragment there that maybe already is there Oct 28 17:13:50 I have not yet found a way to fix that and get maps working (at least not as they're implemented in the official maps documentation) Oct 28 17:13:52 hence the same id's ? Oct 28 17:14:06 I can not remove that fragment though Oct 28 17:14:16 is there a known issue with flattening a Parcelable that was once unflattened? i.e. passing a Parcelable from activity A to activity B and from activity B to activity C? Oct 28 17:14:36 Syzygy well if you can't remove it, dont add another...simples Oct 28 17:15:02 can't, don't, won't etc Oct 28 17:15:30 app review sites are any good thing? i need some download at least for feedback Oct 28 17:16:03 android dev world is harder than i thought Oct 28 17:16:14 Syzygy at the end of the day, you have an XML id to a view, that is being attached to the view tree when it already exists… dont do that if you dont want it to crash Oct 28 17:16:18 well thats my thoughts :) Oct 28 17:16:35 cliffreich what app ? Oct 28 17:17:24 StingRay_, I'm calling functions to replace and remove it without any effect. Oct 28 17:17:36 but ... maybe show() works. Oct 28 17:17:45 might as well try Oct 28 17:18:02 StingRay_ i uploaded an app called Ubik but i have like 10 downloads with no feedback. not a great app but I need to improve my dev knowledge Oct 28 17:18:20 some review but not great dev feedback Oct 28 17:18:52 and as my first app i think android world is hard Oct 28 17:19:14 :( Oct 28 17:19:34 well yeah… 1,000's of apps added daily Oct 28 17:20:42 meh, what about iOS... might learn objective C Oct 28 17:21:08 Hey Everybody Oct 28 17:22:37 hey Oct 28 17:23:12 StingRay_, I guess that helped me actually fix my problem. thanks a lot. Oct 28 17:23:24 Syzygy no prob, congrats Oct 28 17:23:48 * StingRay_ hopes that wasnt sarcasm from Syzygy lol Oct 28 17:24:19 StingRay_, o/ Oct 28 17:24:56 Has anybody here worked with the Square library Retrofit, and tried to access a resource protected with OAuth 1.0? Oct 28 17:25:34 nah, it's mostly fixed thanks to you saying that I should not show another fragment... I didn't know that show(frag) and hide(frag) existed since libraries I used before said I should replace Oct 28 17:25:34 just ask Sheikh Oct 28 17:25:52 (and in those cases replacing makes sense and works Oct 28 17:27:07 cliffreich, I am having troubles accessing a Magento API (that uses OAut1.0) using Retrofit from my App. I am using SignPost to sign my requests Oct 28 17:28:33 what troubles? Oct 28 17:31:31 any ideas why in ListView i see only the first item? do i need to set how many items are visible or something? Oct 28 17:32:13 SheikhAman: https://gist.github.com/f2prateek/0deb2d7ddea43e21d39b Oct 28 17:32:22 uses the signpost library Oct 28 17:32:32 ufk, either.. you only have 1 item in your list or your adpater is reporting an incorrect size. Oct 28 17:32:42 heh Oct 28 17:32:56 ufk like alexfu says, probably getCount is returning maybe….1 ? Oct 28 17:33:36 http://stackoverflow.com/questions/26614353/listview-with-baselayout-shows-only-the-first-item Oct 28 17:33:40 can anyone please take a look/ Oct 28 17:34:09 StingRay_ tying to get a hold of someone i think used to work at tmo Oct 28 17:34:36 g00s heh, just this second took another shot in the dark with another version lol Oct 28 17:34:45 f2prateek, seeing your code now.. Oct 28 17:34:47 ufk, your updateIngredients is a big no-no Oct 28 17:34:51 changed some header fields in the request :) Oct 28 17:35:00 I am also drafting a StackOverflow question with more details Oct 28 17:35:04 StingRay_ he was actually an android dev there, so perhaps doesn't even have contacts - and he may not even remember me Oct 28 17:35:19 alexfu, really? Oct 28 17:35:21 cliffreich, The server returns HTTP500 while the same thing works from a REST Client in Firefox Oct 28 17:35:41 g00s well any help greatly appreciated as … like I say, I'm in the dark Oct 28 17:35:58 ufk, you're re-assigning the reference to your list. which may be causing your issue. Oct 28 17:36:16 StingRay_ also, if you see jasta in here, he used to work with cretin45 Oct 28 17:36:24 oh cretin45 is here thefuck Oct 28 17:36:47 alexfu, oh i saw it in an example, i don't use this function, i use the function add() that i created Oct 28 17:37:41 ufk, then who calls updateIngredients? you should post the client code that uses that adapter Oct 28 17:38:24 f2prateek, I am using exactly what you have put there Oct 28 17:38:41 StingRay_ just sent pm, canonly keep fingers crossed now ;) Oct 28 17:38:46 Written by a developer named "Patrik kerfeldt" Oct 28 17:39:52 alexfu, updated main post with client code Oct 28 17:40:22 hi again! ;) Can somebody advice me, how can I import libs from $ANDROID_SDK/sources/ ? :) Maybe I whould add something to manifest or build.xml to make ant to not cry that there is no such package? It somewhy do not work to just import things from there (excluding adroid.* namespace, although, but probably it imports in another way) :-/ Oct 28 17:41:48 mva, Android Studio! I wish I could help, but I myself know very less about it Oct 28 17:43:17 g00s I'm about to set out on the RecyclerView conversion :) Oct 28 17:43:28 i'll sit that one out Oct 28 17:43:32 StingRay_, All the best! :) Oct 28 17:44:25 RecyclerView looks promising, but seems to be at a level of abstraction where you need a lot of tweaking for things like multiple click listener; and the docs are pretty flimsy. i'm not even sure its finished :) Oct 28 17:45:06 reading back through blogs when it was introduced, the reoccurring theme is "hopefully google will add this" Oct 28 17:45:16 godspeed StingRay_ :) Oct 28 17:45:38 ufk, there must be something funny going on. if i were you, I would step through the debugger Oct 28 17:45:51 thank you i will do that Oct 28 17:46:16 g00s well my listViews and adapters can't get more complicated, and I think I do lots of things that Recycler will help with…well layout manager or whatever it is Oct 28 17:46:35 StingRay_ ok great . i think its going to get more complicated :) Oct 28 17:46:39 lol Oct 28 17:47:09 g00s did you find some easy reading intro's to it ? or is it simple enough ? Oct 28 17:47:31 just googled for example. from google, not much info Oct 28 17:47:42 StingRay_ maybe instead try twoway-view Oct 28 17:48:11 lucas rocha Oct 28 17:49:32 hang on you were the one telling me to take out libs Oct 28 17:49:38 now you want me to add more ? Oct 28 17:51:37 StingRay_ you gotta decide whats important Oct 28 17:51:49 when i saw your dependencies, it blew me away Oct 28 17:52:09 so then yeah, maybe stick to listview :) Oct 28 17:52:22 Before I go writing one.. does anyone know of an app that logs keypresses and displays them in a scrollview. Oct 28 17:52:23 ? Oct 28 17:53:42 ok StingRay_ today could be your lucky day Oct 28 17:53:48 pm Oct 28 18:00:54 lucas rocha is god. Oct 28 18:01:59 its too hard to port an android app to iOS? Oct 28 18:02:09 depends on if you know objective C or not Oct 28 18:02:21 it is pretty different than Android Oct 28 18:02:35 and you’ll need a mac to legally sign apps Oct 28 18:03:02 there is somethign in the TOS about compiling the apps on a mac Oct 28 18:03:08 my brother has a mac, i can code itt with OSX in vmware for now i think Oct 28 18:03:17 yeah, no problem Oct 28 18:03:32 just to build/sign for production Oct 28 18:03:45 maybe you can temviewer into his, lol Oct 28 18:04:54 yeah, i better do that heh. vmware and OSX without VT-X is a nightmare Oct 28 18:05:35 I never messed with it.. well I did try once but my computer was such a piece that It couldn’t run the VM with OSX in it very well. super slow Oct 28 18:05:38 so I got a mac Oct 28 18:06:10 there are libs like retrofit and okhttp for iOS? Oct 28 18:06:16 yes Oct 28 18:06:23 oh nice Oct 28 18:07:27 cliffreich, I think there are, not sure Oct 28 18:07:37 checked something called RFNetworkxxx? Oct 28 18:08:19 cliffreich like AFNetworking :) Oct 28 18:08:45 is it possible to implement a pinch zoom in a layout (gridlayout to be exact) Oct 28 18:08:46 ? Oct 28 18:08:55 cliffreich also consider a cheap mac-mini Oct 28 18:09:25 then this weekend will be iOS only. maybe ill increase my 11 android downloads by then Oct 28 18:09:26 heheh Oct 28 18:10:46 Oh yes, AFNetworking :P Oct 28 18:10:48 g00s ill do that. i cant believe that acer didnt activate VT-X for my i7 laptop Oct 28 18:11:17 i think i can exchange my ipad for that Oct 28 18:11:30 cliffreich no bios utility ? Oct 28 18:12:04 yes i modified the bios and unlocked intel menu... but still intel utility nor virtualbox detect vt-x Oct 28 18:12:43 whis is why i hate PCs Oct 28 18:15:27 hi guy Oct 28 18:15:29 guys* Oct 28 18:15:43 Alina-malina, What a rhyming name! :D Oct 28 18:15:46 Hey TonySoprano9099 Oct 28 18:16:02 SheikhAman what is the best way to know if an app is minimized ? Oct 28 18:16:16 i know there isnt a direct way for this... but rather work arounds Oct 28 18:16:21 Is there a standard that describes attaching a geographical location to text messages? Oct 28 18:16:27 What's the format? Oct 28 18:16:56 TonySoprano9099, a hack, to get the list of package names of running apps in a service, and see if the app you're trying to check is on the top or not Oct 28 18:17:32 looks a good approach... do you have any baked code ? or a link Oct 28 18:18:51 TonySoprano9099: what are you trying to do? Oct 28 18:19:35 dubai? Oct 28 18:19:37 lol Oct 28 18:19:58 JesusFreke, whenever the user minimizes the app (presses home button, or the back several times... I want to run a background thread to sync Oct 28 18:20:01 im subclassing EditText and overriding onselectionchanged Oct 28 18:20:08 there is an easy callback on ios Oct 28 18:20:18 but not a one in android Oct 28 18:20:22 getting random callbacks with OnSelectionChanged with selection start and end at 0,0 Oct 28 18:20:23 TonySoprano9099: you're talking about your own application, right? Oct 28 18:20:25 anyone get that? Oct 28 18:20:42 JesusFreke yes Oct 28 18:21:32 TonySoprano9099: look at Activity.onPause :) Oct 28 18:22:03 "onPause() is where you deal with the user leaving your activity. Most importantly, any changes made by the user should at this point be committed " Oct 28 18:22:06 (http://developer.android.com/reference/android/app/Activity.html) Oct 28 18:22:17 JesusFreke, u suggest putting a counter ? Oct 28 18:22:30 inside onResume and onPause ? Oct 28 18:22:39 Alina-malina, Dubai, Who Dubai? :D Oct 28 18:22:53 SheikhAman, dubai Oct 28 18:22:54 Alina-malina, might be qatar Oct 28 18:23:05 lol Oct 28 18:23:15 TonySoprano9099, TonySoprano9099 is my favorite character:) Oct 28 18:23:35 he probably has golden androids:) Oct 28 18:23:51 TonySoprano9099, Nope, no baked code, sorry, Did something similar a few years ago but didn't like the approach Oct 28 18:23:55 too bad he's dead. Oct 28 18:24:04 Alina-malina, Dubai it is, okay then! :) Oct 28 18:24:07 SheikhAman the think is, there is a no correct approach Oct 28 18:24:30 TonySoprano9099, in your base activity, in it's onPause, start your background task Oct 28 18:24:54 TonySoprano9099, meaning, whenever the user leaves your Launcher activity using back button, means he/she is exiting the app Oct 28 18:25:07 sadly, no such thing for the Home button I guess Oct 28 18:25:19 guys, whenever I move from the activity... is the onResume of the next activity called before the onPause of the current activity Oct 28 18:25:25 :-/ yes i agree Oct 28 18:25:27 eh Oct 28 18:25:43 SheikhAman, doesnt work,, as i need to implement the same for homebutton Oct 28 18:25:55 best approach is to use counter flags i guess Oct 28 18:26:05 ++ inside onresume and -- inside onpause Oct 28 18:26:16 if count is 0 > exiting Oct 28 18:27:10 yes, kind of a hack Oct 28 18:27:51 Alina-malina, I have always confused between Katar or Qatar, and Kuwait or Quwait :P Oct 28 18:27:58 okay Oct 28 18:28:02 i'll try to implement Oct 28 18:28:15 Great, all the best1 Oct 28 18:28:32 Why there isn't a gravity attr in FrameLayout? Instead I have to apply layout_gravity to each child. Oct 28 18:29:16 csst0111: "FrameLayout is designed to block out an area on the screen to display a single item. " Oct 28 18:29:19 thats why Oct 28 18:30:27 csst0111, danijoo is correct. Oct 28 18:30:44 whatever you put in FrameLayout one after the another, starts appearing on top of the previous child Oct 28 18:30:51 you can add multiple items, but that not what its for Oct 28 18:30:52 correct Oct 28 18:32:04 hi Oct 28 18:32:10 ho Oct 28 18:32:17 i use getFilesDir() to put an image, i am on airdroid, how i can search this imagem? Oct 28 18:33:14 define "search" Oct 28 18:33:48 search like google search? Oct 28 18:33:58 or search like get that file with an identifier Oct 28 18:34:08 find Oct 28 18:34:27 i dont find /data/data/my.app.com/image.png Oct 28 18:35:18 are you sure you create it? Oct 28 18:36:08 yes Oct 28 18:36:14 show the code Oct 28 18:36:24 how i can search this directory? Oct 28 18:36:31 i need see if file is there Oct 28 18:36:41 ohh Oct 28 18:36:45 i got it Oct 28 18:36:55 you need to have root to browse this directory Oct 28 18:37:06 then adb to the devices Oct 28 18:37:20 and do 'cd /data/data/my.app.com' Oct 28 18:37:28 then you can list files with 'ls' Oct 28 18:39:18 when I do an AlertDialog.Builder.setItems(items, new DialogInterface.OnClickListener() {, how can I get the identifier for those items so I can set the gravity? Oct 28 18:40:05 for AlertDialog.Builder.setMessage I would do getResources().getIdentifier("message", "id", "android"); Oct 28 18:41:22 how to connect to my device with adb? Oct 28 18:41:30 I need help, i published my application 24 hours ago, the status has changed to "Published", but when i try open link, https://play.google.com/store/apps/details?id=br.com.webrota.msn.app ... not work ... someone can help-me ? Oct 28 18:41:52 upmauro: whats the name of your app? Oct 28 18:42:09 danijoo, "WebRota Messenger" Oct 28 18:42:12 Hello, I'm new to android development and I would like to create an application for my smartphone which is in version 4.0.3. Do I need to install with the sdkmanager the 4.0.3 sdk or can I create 4.0.3 application with the 5.0 sdk ? Oct 28 18:42:27 mh . you are right. its not there Oct 28 18:42:36 neither by id nor by name. might take some additional time. Oct 28 18:43:08 Dunkel__: you can create 4.0.3 apps with the 5.0 if you set minSDK to 14 Oct 28 18:43:28 danijoo: Thanks. I will try :). Oct 28 18:44:53 danijoo, :(, ok i will wait, but the status of app has changed to "Publish", this is strange, thanks for your assistance Oct 28 18:45:14 upmauro: it can still take up to 48 h i thin, Oct 28 18:46:58 upmauro, status is set to published the moment you send it to google Oct 28 18:48:48 Quacked, in my situation not, the previous status was "Waiting publish" Oct 28 18:49:24 sorry my english, i try do my best hehehe Oct 28 18:50:19 Hi all, I was wondering if you could help me out with a strange problem. I have two fragments in a ViewPager -- one with a TextureView previewing the camera and the other with a TextureView for video playback. When the SurfaceTexture for the video becomes available but there is not yet a video set to play on it, this TextureView shows the camera preview. What is this wizardry? Is there something I can do to prevent this? Oct 28 18:52:08 Okay guys, off to sleep now.. bubye! Oct 28 18:55:43 how do i record my 4.3 device screen.. that screencast app doesnt work Oct 28 18:56:43 is there an attr for card background ? Oct 28 18:57:56 google fit API is available now :D Oct 28 18:58:37 is there something better that ListView for creating multi-column lists? This thing seems so buggy' Oct 28 18:59:01 Gridview ? Oct 28 18:59:10 LV isn't buggy, but it is a hassle Oct 28 18:59:16 does anyone know how i can get the language-code from the country-code? i get the country-code from object of class address but i need to get language. i could manually compare the given country-code with all possible countrycodes and set the language according to it, but i`d like to avoid this Oct 28 18:59:30 it is a freakin pain Oct 28 18:59:46 For the most part it works but under certain conditions it sucks Oct 28 19:00:20 the whole checkbox things seems messed up, I get inconsistent results depending on how many items are in the list Oct 28 19:00:27 RecyclerView is coming out with the support library, it's supposed to strip away the UI assumptions that ListView had and handle animations much better Oct 28 19:00:38 lll Oct 28 19:01:25 @troh v21? Oct 28 19:02:01 addo, http://developer.android.com/reference/java/util/Locale.html check this, you have getISO3Country() and getISO3Language() Oct 28 19:02:04 2.1?| Oct 28 19:02:07 osp sorry addo, wrong nick Oct 28 19:02:14 adkins, http://developer.android.com/reference/java/util/Locale.html check this, you have getISO3Country() and getISO3Language() Oct 28 19:02:24 Not AppCompat, support v7 https://developer.android.com/reference/android/support/v7/widget/RecyclerView.html Oct 28 19:02:25 upmauro: thank you but i think i tried it all Oct 28 19:02:44 oh look the spambot is back Oct 28 19:02:58 who Oct 28 19:03:20 u spam pm Oct 28 19:03:52 atkins, share your problem, what's happen ? Oct 28 19:07:39 upmauro: i have a address object and get several informations like country-code, unfortunately not the language code from that address. Address-class has the function getlocale() which gives me the Locale for that address, Oct 28 19:07:40 but unfortunately it always returns the locale from the device. It doesnt really do what api docs say..... Oct 28 19:08:43 i tried to get all possible values from locale and from address but language-codes are always empty or the language-code from the locale on my device Oct 28 19:09:24 i found this: http://code.google.com/p/android/issues/detail?id=21282 Oct 28 19:09:44 and the answer is: work with address.getCountryName() or address.getCountryCode(). Oct 28 19:10:16 humm .. i don't know, let my find Oct 28 19:14:20 Hello Oct 28 19:15:17 I have a layout where I want to display textview's conditionally.. Is it bad to put them all in the layout and show/hiden them using visibility gone/visible? Oct 28 19:15:18 adkins, if you create a new locale by language, if you try getISO3Country(), the result is wrong ? Oct 28 19:15:48 hide* Oct 28 19:16:04 adkins, maybe one way is http://developer.android.com/reference/java/util/Locale.html#setDefault(java.util.Locale) Oct 28 19:16:12 try set default and get again Oct 28 19:16:20 what you think about ? Oct 28 19:16:39 upmauro: just to clarify 1. create locale for germany with countryCode "de" 2. use the function getISO3Country() on this locale object? Oct 28 19:17:17 adkins, yes! Oct 28 19:17:21 hang on Oct 28 19:18:16 anyone? :) I'm on my phone's wifi and it's about to run out of battery Oct 28 19:18:54 @jaagr it's not bad Oct 28 19:19:09 jaagr, i not see problems in your solution Oct 28 19:19:30 ok thanks then I will go with that! Oct 28 19:22:16 upmauro: it does return "eng" ......but Locale takes either language OR language and country OR language and country and variant ....as parameter. so i dont expect it to work... Oct 28 19:23:22 upmauro: i`m checking your link..... Oct 28 19:24:37 would some dev give me suggestion on my first app... i won't promote my app here so only pm Oct 28 19:25:00 is it possible to use ActionMenuView by itself without the toolbar? Oct 28 19:25:18 not sure how we're supposed to inflate the menu into it Oct 28 19:25:58 g00s i think that when you set a toolbar as your actionbar the the actionmenuview will work as it was the actonbar Oct 28 19:25:58 hi Oct 28 19:26:07 anybody uses picasso to download image? Oct 28 19:26:11 i do Oct 28 19:26:17 i do Oct 28 19:26:21 everyone does Oct 28 19:26:44 i am spartacus Oct 28 19:27:00 how i can download the image? Oct 28 19:27:09 something like setactionbar/setsupportactionbar Oct 28 19:27:10 only download to a directpory Oct 28 19:27:21 eh, we don't really have a good way to do that Oct 28 19:27:36 if I create a class that will be accessable by all Activities, and instantiate that class in one activity, do all the activities have access to that class? Oct 28 19:27:39 cliffreich yeah, i just want to use ActionMenuView to put some actions in a listview item Oct 28 19:27:41 could use the target, get the bitmap, then write to disk. not saying it's the best way to do it. but it would work Oct 28 19:27:42 let me try to add it today and sneak it into the 2.4 release that's happening soon Oct 28 19:28:19 i even filed an issue for it a while ago: https://github.com/square/picasso/issues/506 Oct 28 19:29:56 meh, why do i have to keep attaching the sources to AS, keeps on forgetting it Oct 28 19:33:26 i mean, if i create a User class, can i pass that object between Activities or do i create some kind of global that can be read from every Activity? Oct 28 19:35:18 skrite: parcelable Oct 28 19:35:58 ? Oct 28 19:38:34 Hi. I'm wondering if it would be possible for a app to change it's layout from an external source at runtime? Oct 28 19:39:03 oh dammit Oct 28 19:39:06 oh damn Oct 28 19:39:09 sky3737: broadcast yeah Oct 28 19:39:17 my app had an error on the last update today Oct 28 19:39:31 cliffreich, damn :/ Oct 28 19:40:27 oh craaap Oct 28 19:40:54 cliffreich, u fixed it after words ? Oct 28 19:41:02 danijoo: woukd Oct 28 19:41:04 danijoo: thanks ! Oct 28 19:41:29 sky3737: Read on broadcastreceiver Oct 28 19:41:51 im doing it Oct 28 19:42:17 danijoo: ok Oct 28 19:42:19 is there any way to obscure secret api keys Oct 28 19:42:24 safe way Oct 28 19:42:59 aha ! menuInflater.inflate(R.menu.your_menu, actionMenuView.getMenu()) Oct 28 19:43:10 cliffreich: no Oct 28 19:43:43 you can make it harder, but not save Oct 28 19:43:49 danijoo then any way that uses encryption? Oct 28 19:44:11 my app failed when tried to decrypt using AES on some phones Oct 28 19:44:17 :( Oct 28 19:44:52 what a nightmare Oct 28 19:45:19 you cant secure an api and make it impossible to use it Oct 28 19:45:39 yes i know that... but as my last attempt failed Oct 28 19:45:47 i need any way Oct 28 19:45:55 even weak Oct 28 19:46:04 like xor strings Oct 28 19:46:06 use ssl and maybe client side certificates Oct 28 19:46:16 and some encription on the key Oct 28 19:46:33 obfuscation* Oct 28 19:46:51 i think i just need the obfuscation Oct 28 19:46:55 put it hardcoded into java and so some string operations on it or sth like that ;) Oct 28 19:47:02 it doesnt really matter. Oct 28 19:47:19 if someone wants your key he can decode java and use it Oct 28 19:47:28 danjioo: I'm trying to completely change the layout of the app. Think: loading the xml from a web service and then setting the layout. Oct 28 19:47:45 sky3737: possible but lot of work Oct 28 19:48:29 you can load that xml like any other file, pass it to xml parser and build a layout on it/inflate it Oct 28 19:49:14 The methods you need for that would be LayoutInflater.inflate(XmlPullParser, ViewGroup) Oct 28 19:49:18 does Google hold a master key that can decrypt any android device? Oct 28 19:49:38 jab416171: heaven knows :p Oct 28 19:50:03 but i dont think so Oct 28 19:50:06 check asop Oct 28 19:50:10 aosp Oct 28 19:56:11 So it seems that DialogFragment.show and Activity.startActivity are asynchronous. This means that we have to worry about race conditions every time we use these methods. Is that right? Oct 28 19:56:44 For example, if a button's click shows a dialog or activity, the user could press the button really quickly and get the dialog/activity to display multiple times. Oct 28 19:56:54 yes Oct 28 19:57:33 What's the best way to handle the DialogFragment thing? The best I can think of is a boolean field "alreadyShowing" (or something) in a synchronized method. Oct 28 19:57:55 I guess the Activity situation can be handled with singleInstance (or whatever it's called). Oct 28 19:57:58 it is implicitly synchronized since it will only ever be accessed on the main thread Oct 28 19:58:11 Oh, that's true. Oct 28 19:59:03 Why did Google choose to make these asynchronous? It increases code complexity. :/ Oct 28 19:59:25 And their asynchronous nature doesn't seem to be documented at all. Oct 28 19:59:31 because they are slow Oct 28 19:59:52 danijoo: Ok. I'm trying to make an app which will control multiple programs on a server. And they all have a different interface. I realize I could add all the layouts at compile time but that would require me to update the app each time a new program is added. Is there maybe a better way to do this? Oct 28 20:00:40 What do well-behaved apps do here? Just not worry about it and assume the user isn't gonna click quickly? Or do they do the boolean-field thing. Oct 28 20:01:32 I notice that Google Keep does *not* deal with this situation. But Calendar seems to. Oct 28 20:01:50 In Google Keep, if I tap the action icons very quickly, I can get the "enter notes" activity to display multiple times. Oct 28 20:01:55 sky3737: sorry thats too weird for me :P Oct 28 20:02:03 TacticalJoke generally, you have to program very defensively on android Oct 28 20:02:23 when you are going to handle an event, have to make sure about the assumed state, checking nulls, etc Oct 28 20:02:57 so yeah, see if thatfragment is already added, dialog is showing, whatever Oct 28 20:03:47 TacticalJoke sometimes, you need 2 events to happen and you don't know which will happen first Oct 28 20:03:51 Okay. And the best Activity solution is to use launchMode:singleInstance, I guess. Oct 28 20:04:15 for example, you bind to a service in an activity.onStart(). but you just got a result from another activity Oct 28 20:04:30 what happens first: ServiceConnection.onConnect() or onActivityResult() ? Oct 28 20:05:00 I see. Oct 28 20:05:44 This stuff scares me, because I've been traumatised by race conditions (but I guess mainly stale data) in the past. Oct 28 20:05:45 even if you determine this empirically, you can't assume this queued order of events will be the same across devices , etc Oct 28 20:05:56 Right. Oct 28 20:07:20 I guess I can test for this with a few Thread.sleeps or whatever. Oct 28 20:08:05 in some cases, you can use RxJava to help. but still, you often have to 'escape the monad' Oct 28 20:08:05 Danjooo Oct 28 20:08:15 Tnx :) Oct 28 20:10:20 Is it the case that basically all UI stuff in Android runs asynchronously? Oct 28 20:10:38 I did Project (right click) -> Android Tools -> Rename Application Package but the package name changed just in androidmanifest.xml and not in .java files Oct 28 20:10:44 TacticalJoke: exactly the opposite Oct 28 20:11:42 danijoo: I assume that DialogFragment.show and Activity.startActivity were synchronous, but I recently discovered that they're not. So I'm wondering what else is asynchronous. Oct 28 20:11:45 assumed* Oct 28 20:12:37 views are usually synchron Oct 28 20:14:25 Any good way to get code test coverage? (Using strictly AndroidTestCase, not using instrumentation tests, if this helps) Oct 28 20:14:30 Is any of this documented anywhere? Oct 28 20:14:37 Or is this one of those "inside knowledge" things? ;| Oct 28 20:14:49 yes, my new moto x is here! Oct 28 20:16:25 Okay, setting an Activity's launchMode to singleTop seems to fix the Activity-launch race condition. Oct 28 20:16:33 oh damn i want to kill myself, i was promoting my app and it had an init fail i didnt notice Oct 28 20:16:39 So I'm guessing we should generally be using singleTop for sub-Activities? Oct 28 20:17:13 having "activity launch race conditions" makes me think something is terrible wrong with your overall code desing Oct 28 20:17:28 very good, pfn, I heard that's about as good as an Android phone gets, these days Oct 28 20:18:00 marrrk, had to replace my old moto x :( Oct 28 20:18:54 danijoo: I have an ActionBar with action buttons. One of these buttons launches a secondary Activity. Right now, it's possible for the user to tap this button really quickly and get the Activity to launch more than once (which is not intended behaviour). Oct 28 20:19:09 I note that this is also possible in Google Keep. Oct 28 20:19:13 pfn: what did you do it? Oct 28 20:19:17 But setting that Activity's launchMode to singleTop seems to fix it. Oct 28 20:19:40 yes because it then reuses the first launch Oct 28 20:19:43 marrrk, I broke it... Oct 28 20:19:47 Right. Oct 28 20:19:50 whats the problem with multiple activities? Oct 28 20:20:02 or disable the button after click Oct 28 20:20:03 I did Project (right click) -> Android Tools -> Rename Application Package but the package name changed just in androidmanifest.xml and not in .java files Oct 28 20:20:15 danijoo: My second Activity is basically "modal" in use. I don't want the user to press "Submit" twice, basically. Oct 28 20:20:25 It's not the end of the world if it happens, but it doesn't look good. Oct 28 20:20:31 Like, there's no data loss. It just looks like a bug. Oct 28 20:21:36 pfn: I am just trying to use slick with android, have you ever tried that? (It's probably overkill but it seems like a good way to learn about it) Oct 28 20:21:43 It's also very easy to reproduce this if the device is lagging. I don't want my apps looking like an amateur made them. :D Oct 28 20:21:55 marrrk, not a good fit for android, sqlite doesn't have a jdbc driver... Oct 28 20:22:19 So is there any issue with the general rule "all secondary Activities should have launchMode:singleTop"? Oct 28 20:22:50 problem is if you have 1 activity for showing diferent models Oct 28 20:25:03 and user opens model A in that activity and then model B, the B intent is sent to the activity showing A without its onCreate being called Oct 28 20:25:10 so it might end in user clicking B and A is shown Oct 28 20:26:02 Hmm. But how does the user open model B if that activity is already showing? Oct 28 20:26:12 Or I guess it's not showing yet but about to show... Oct 28 20:26:30 it is possible if you have a workflow where you can go from A to B Oct 28 20:26:40 or from A to submenu X and to B from X Oct 28 20:27:38 for example lets assume you have a music app with artists and songs. You click on a song, you klick on "show all songs of this artists" Oct 28 20:27:50 and then click on another song of that artist Oct 28 20:28:12 this wouldnt result in a new song activity but send a new intent to the old song activity when you have singleTop Oct 28 20:28:32 Okay. Isn't that desirable, though? I'd expect the second click to be ignored, I think. Oct 28 20:28:41 Assuming we're talking full-screen Activities. Oct 28 20:29:02 yes but you are breaking the backstack with that Oct 28 20:29:37 if user now presses back from the song activity, the back route will not be song - artist - song - whatever Oct 28 20:29:57 it will be song-artist-whatever, because the song activity moved from its old position in the backstack to the top Oct 28 20:30:20 What would be the solution to this problem? Oct 28 20:30:26 not using singleTop :) Oct 28 20:30:32 Okay. lol Oct 28 20:30:35 ^^' Oct 28 20:30:42 But then the secondary activity shows twice. It looks bad to me. Hmm. Oct 28 20:31:09 And what happens if the user clicks the "up to parent" button? Does the other instance of the second activity still exist? Oct 28 20:31:50 up to parent is something completly different. Oct 28 20:32:31 if you really want to adress your problem (i would just leave it), you could make a boolean, set it to true when button is pressed and ignore a second press depending on that boolean Oct 28 20:32:49 are there some virtual machines around with android studio and everything downloaded and installed? The install process is a complete pain in the behind, I have used three hours now, and still have not been able to code one single line yet Oct 28 20:32:51 set the boolean back to its old state if the activity is resumed for example Oct 28 20:33:14 Spiff_no, its ok... once all is set.. ull start in no time Oct 28 20:33:21 danijoo: Isn't that simply worse than setting launchMode:singleTop? Oct 28 20:33:31 Like, same behaviour with extra code complexity. Oct 28 20:33:48 as i said. it depends on your workflow if singleTop breaks stuff or not Oct 28 20:34:08 Okay. Oct 28 20:34:12 TonySoprano9099: but it cant be like this, its just me, right? for others starting from scratch its way faster? Oct 28 20:34:20 nahh Oct 28 20:34:24 PITA for all i guess Oct 28 20:34:27 same was for eclipse.. Oct 28 20:34:36 specially if u live in a country where the connection is slow Oct 28 20:35:18 I have been searching, downloading $hit left and right, configuring, signing up for cr@ap, downloading more, blah blah blah.. Im almost shooting my goddmamn computer.. Oct 28 20:35:21 someone please kill me. my app wasnt working and i was promoting it Oct 28 20:35:27 I have 20 mbit... Oct 28 20:36:02 So what happens if the user presses a button, spawns two Activities, and presses the "up to parent" button on one of the spawned Activity? Does the other Activity get finished, or does it hang around? Oct 28 20:36:41 why not have a complete package, with ide and simulator, like Apple Xcode? the android project is copying iOS anyway, why not the dev-env as well?? *sigh* Oct 28 20:39:19 Spiff_no: Where are you getting stuck? Oct 28 20:39:44 Im now registring for the genymotion shit Oct 28 20:39:47 It should be this simple: 1. Install the JDK. 2. Install the Android SDK. 3. Install Android Studio, and point it to the Android SDK. (IIRC.) Oct 28 20:40:04 Why are you wanting to use GenyMotion? Oct 28 20:40:19 TacticalJoke: no, it should be this simple: 1. Install Android Studio. 2 Run Android Studio Oct 28 20:40:31 TacticalJoke: the built in simulator does not work Oct 28 20:40:40 android studio is not the official suggested ide Oct 28 20:40:44 dont forget that Oct 28 20:40:48 cliffreich whats the name ? Oct 28 20:40:51 did u fix it ? Oct 28 20:41:03 something that sounds like a throat disease is missing on my computer... Oct 28 20:41:13 Spiff_no: I agree that it should be that simple. (You and I were using "should" differently.) Oct 28 20:41:14 ill send you the name on pm and then kill me pls Oct 28 20:41:15 HARXM or whattahell its called.. Oct 28 20:41:21 do general users understand if I put a setting for 'Action bar theme' Dark/Light, separate from the listview theme? Oct 28 20:41:24 Spiff_no: Are you that guy from Reddit? Oct 28 20:41:33 Spiff_no: For a start, you should be using devices primarily, not the emulator. Oct 28 20:41:43 I know, I dont have a device yet... Oct 28 20:41:44 The emulator is slow, and it sucks. Oct 28 20:41:52 Spiff_no: use genymotion. Oct 28 20:41:55 emulator sucks Oct 28 20:42:00 Spiff_no: It's HAXM on Windows, KVM on GNU/Linux. Oct 28 20:42:08 Im getting my first device tomorrow, the stores are closed right now.. Oct 28 20:42:15 Just wait till tomorrow. Oct 28 20:42:18 That's my advice. Oct 28 20:42:39 Though I haven't tried GenyMotion. Oct 28 20:42:43 Genymotion* Oct 28 20:42:45 I mean do I call it Action Bar? or something like Title Bar ? Oct 28 20:42:48 lol, well, I cant wait, I have to try to port my app to android.. Oct 28 20:43:07 IMO, coding for Android without having an Android device is kind of insane. Oct 28 20:43:27 TacticalJoke: you should try it :) Oct 28 20:43:29 It's like writing Windows apps with only WINE, or something. (Okay, maybe it's not exactly the same, but it's not miles different.) Oct 28 20:43:35 genymotion is faster then real devices Oct 28 20:43:38 Yeah, I probably will. Oct 28 20:43:43 ok, but at least it gives me some feeling for how it works.. Oct 28 20:43:46 I'm doing the HAXM thing so far. It's less painfully slow. Oct 28 20:44:06 Spiff_no: So are you that guy from /r/androiddev? Oct 28 20:44:17 Just curious. Seeing how good my ability to pinpoint people is. Oct 28 20:44:18 nop, sorry, Im not.. Oct 28 20:44:21 Okay. lol Oct 28 20:44:38 Im three hours into my android adventure.. Oct 28 20:44:51 Have you ever even used an Android device? Just wondering. Oct 28 20:44:57 nop Oct 28 20:44:58 lol Oct 28 20:45:14 or.. Oct 28 20:45:18 Are you surprised that Android development is hard given that you don't have, and haven't used, an Android device? Oct 28 20:45:19 Spiff_no: get ready for hairloss Oct 28 20:45:42 I had a Sony Ericsson way back when android was version 2.0.1 Oct 28 20:45:45 TacticalJoke lol Oct 28 20:45:48 Just wait till tomorrow. Running emulators is a secondary thing, not a primary thing. Oct 28 20:46:11 TacticalJoke: I wanted to get my feet wet starting to port my code.. Oct 28 20:46:17 And one day makes a difference? Oct 28 20:46:42 yupp, Im having an OCD, when I start, I have to start right there and then Oct 28 20:46:56 It's like one of those movies. "He has 24 hours to port his app to Android." "But I don't even have an Android device yet!" "You'll find a way." Oct 28 20:47:41 I cant sleep before I have tried to run some crap on something, let it be a simulator, I dont care.. Oct 28 20:48:57 The error you made was starting this task before getting a device. Oct 28 20:49:21 Spiff_no: download genymotion, press run, emulator set up Oct 28 20:49:32 Though I welcome comments about how badly Android development tools suck, because I probably share 99% of them. Oct 28 20:49:46 agree with* Oct 28 20:49:46 TacticalJoke: did you release it yet? Oct 28 20:49:51 Release what? Oct 28 20:49:54 the problem is: I have a pretty successful ios app, an have made a web version for it for the "other" platforms... but now I got hate-mail and death threats from droidfans, demanding a android version as well Oct 28 20:50:22 TacticalJoke: your sleeper hold on the Hulk Oct 28 20:50:24 Spiff_no: link? Oct 28 20:50:30 TacticalJoke: Your app, durr Oct 28 20:50:35 pfn: https://github.com/pulsation/slick-android-example Oct 28 20:50:55 Not yet. Why? Oct 28 20:51:03 Wondrin' Oct 28 20:51:37 BTW, to answer my own question: If the user starts two activities from a button click and then presses the up-to-parent button, both activities get destroyed. Oct 28 20:51:39 danijoo: its for the norwegian market, so you would not have any use of it.. its for hailing taxis.. Oct 28 20:51:55 hello, i want to write widget to 1 tap run few programs and set GPS and volume, this is easy or hard? Oct 28 20:52:05 Spiff_no: I doubt you got death threats. Oct 28 20:52:35 explodes: If it's not awful, I might link it here. Oct 28 20:52:43 I'll definitely show the Reddit client to you guys. Oct 28 20:52:49 The first one is not the Reddit client, though. Oct 28 20:53:11 TacticalJoke: will it be better then reddit is fun? Oct 28 20:53:18 That has ads, right? Oct 28 20:53:21 If so, almost certainly. Oct 28 20:53:24 TacticalJoke: well, I guess they don't mean it, but they call me a lot of things because I just prioritise iOS, and two actually said devs like me should not be allowed to live... Oct 28 20:53:28 bot for gold users Oct 28 20:53:39 I'll try to make it the "best" Android Reddit client. It'll be ad-free, too. Oct 28 20:53:44 TacticalJoke: you find weirdos everywhere Oct 28 20:53:51 Spiff_no: Damn. lol Oct 28 20:53:59 im gold redditor so i dont have ads in the app i think Oct 28 20:54:04 Okay. Oct 28 20:54:11 at least i think its because of that lol Oct 28 20:54:31 isheep die one wrote.. lol Oct 28 20:54:38 IMO, ads ruin any Reddit app. Especially if the user has a small screen. Oct 28 20:54:42 well the max sentence in Norway is only 21 yrs, so maybe not that surprising.. Oct 28 20:54:44 even for murder Oct 28 20:55:35 hehe, you think its worth killing isheep when only going to jail for 21 years? Oct 28 20:55:35 lol Oct 28 20:55:42 TacticalJoke: thats why i payed for it Oct 28 20:55:47 In most cases, ads in an app are like graffiti over a work of art. Oct 28 20:56:01 Depending on the app. :D Oct 28 20:56:09 hmmm.. genymotion is not that slow :) Oct 28 20:57:01 Hi all. I have a question about exporting an .apk in Eclipse. Every time I do the export wizard, my custom AndroidManifest.xml is overwritten which breaks my app by removing some of the newer tags i've added for activities. Oct 28 20:57:02 I am confused as to the best place to initialize variables for a fragment, in the constructor or in the onCreateView method. I plan to create several fragments (about 20) in advance, passing in an instance of a class to the constructor which will be used to extract specific values to be displayed, and in this use case, memory usage is not an issue. Oct 28 20:57:04 However, in general and for the future, where memory might be an issue: what is the best practice? Oct 28 20:57:18 Spiff_no: actually people get problems with developing games in it because its faster then real devices :) Oct 28 20:57:31 Nivag: I don't think you should ever use a constructor when onCreate is available. Oct 28 20:57:34 so dont do benchmarks in it;) Oct 28 20:57:50 Nivag: I seem to remember Dianne Hackborne (?) saying some such thing. Oct 28 20:58:13 Googling "android oncreate vs constructor" might bring it up. Oct 28 20:58:14 danijoo: ok.. well, Im going to get a device tomorrow, but its nice to try the ide.. Oct 28 20:58:36 good luck Oct 28 20:59:16 Nivag: you want to use a static factory method for creating Fragments, with a no-arg constructor Oct 28 20:59:23 TacticalJoke: So I should just use the constructor to pass in the class instance and extract the details in the onCreateView method? Oct 28 20:59:54 and if you pass in parameters, put them in a Bundle and set that on the Fragment using Fragment#setArguments() Oct 28 21:00:01 then parse those in Fragment#onCreate() Oct 28 21:00:08 I agree with what doogan said. That seems to be the way to do this in Android. Oct 28 21:01:21 this is related to restoring Fragment state after the Activity has been killed Oct 28 21:01:57 you could look at implementing Parcelable on your model as well for ease of bundling Oct 28 21:02:02 (blah) Oct 28 21:02:34 Nivag: This is how I do it for my DialogFragments: http://pastebin.com/q6DEVuT3 Oct 28 21:02:50 Most people use "newInstance" rather than "create" for the factory method's name. Oct 28 21:03:43 Hmm... Thanks! I will RTFM and get back... Don't hold your breath! :-) (partly, as I'm going to grab more coffee!) Oct 28 21:04:04 Mmm coffee Oct 28 21:05:55 Anyone have an idea of why eclipse would be overwriting my androidmanifest.xml every time I try to export? Oct 28 21:06:12 liuwenhao: gradle? Oct 28 21:08:26 Yeah Oct 28 21:08:37 what settings are overwritten? Oct 28 21:08:56 gradle will overwrite things like min/maxSDK, versionCode.. Oct 28 21:09:04 depending on what is set in gradle Oct 28 21:09:05 Does anyone know where the checkbox went for "Hardware keyboard connected" in the new AVD? Oct 28 21:09:23 in the manifest file, all of my newer tags get overwritten when i export to .apk Oct 28 21:09:30 which breaks navigation in my app Oct 28 21:09:31 I cant type with my kyboard in theemulator and it is annoying :P Oct 28 21:09:34 oh. well that shouldnt be the case.. Oct 28 21:09:38 try rebuilding Oct 28 21:09:57 what API should I choose for the minimum SDK? Oct 28 21:10:11 Ugh. It's possible for the user to click a context-menu item multiple times! Even context-menu handlers are run asynchronously?! That's crazy. Oct 28 21:10:27 they get overwritten when I clean the project as well Oct 28 21:10:44 I have a "Delete" context-menu item. If I call Thread.sleep in the handler and click "Delete" loads of times really quickly, I can make my app crash where it tries to delete an item multiple times. Oct 28 21:11:19 How are we supposed to handle that? Oct 28 21:11:21 It's like a broken design. Oct 28 21:11:32 genii: This mug of coffee is mine, Mine, MINE, I tell you!!! ;-) Oct 28 21:12:35 I found my problem. I was changing the manifest in bin, not in root. Oct 28 21:12:50 I didn't realize that it would overwrite in bin Oct 28 21:13:43 liuwenhao: The most common errors I have are the PEBKAC ones! :-( Oct 28 21:13:46 So the user can open a context menu and click a menu item twice before the context menu is killed. I don't see how I can even address that. Oct 28 21:14:43 haha, same here Nivag. I just started with Android a few days ago Oct 28 21:15:21 Wait, this might be a 4.0 bug. Oct 28 21:15:24 Can't reproduce in 4.1. Oct 28 21:15:30 God, Android is so full of horrible little bugs. Oct 28 21:15:51 TacticalJoke: you must show me your code some day Oct 28 21:16:01 i never experienced those item click issues Oct 28 21:16:15 iuwenhao: I have been programming for over 40 years, the one constant is that I keep finding new ways of proving how stupid I am! :-) Oct 28 21:16:22 This is just showing a context menu (yeah, I know that's old) enabling the user to delete an item from a list. Oct 28 21:16:40 On 4.0, the user can click "Delete" twice leading to a NullPointerException where my app tries to remove an already-removed item. Oct 28 21:16:55 On 4.1, it seems that the user can click "Delete" only once before the context menu is closed. Oct 28 21:17:37 danijoo: Do you have Google Keep? Oct 28 21:17:49 Because (at least on 4.1) Google Keep has the "spawn multiple activities" bug/whatever. Oct 28 21:17:56 Very easy to reproduce. Oct 28 21:18:31 yeah i mean i never had any problems with that in my apps Oct 28 21:18:35 like crashes Oct 28 21:19:19 (If you're curious, open Google Keep and click the top-left icon {I think it's "Create note"} as quickly as you can. Here, I get the activity spawning more than once, which is clearly not intended behaviour.) Oct 28 21:19:35 yeah but you mentions crashes :) Oct 28 21:19:54 The crash is only because my app assumes that Android isn't insane, and it tries to delete an item from a list. :) Oct 28 21:20:10 listAdapter.remove(position); Oct 28 21:20:41 If there is one item in the list and that gets called twice, I get an exception (probably not an NPE, now that I think of it). Oct 28 21:21:05 Maybe an OutOfBoundsException, or something. Oct 28 21:21:12 do you check if it's there before you remove it ? Oct 28 21:21:34 check for the size before removing one item. easy ;) Oct 28 21:21:46 But that doesn't really make sense. Oct 28 21:21:58 TacticalJoke: the first condition to check for if file or position exists Oct 28 21:22:02 Then I'm just checking whether the list has at least one item -- I'm not checking whether the item to be deleted is the one the user clicked on. Oct 28 21:22:13 shmooz: I disagree, in this case. Oct 28 21:22:23 or if you're receiving null on probing the file Oct 28 21:22:24 In this case, my app *has* to assume that the "position" item is the one the user clicked on. Oct 28 21:22:36 Anyway, this appears to be fixed on 4.1. Oct 28 21:22:51 he can still multi click it, but it won't multi act on it Oct 28 21:23:19 (If all I do is check that the list has at least one item, there's still a bug -- the user can sometimes delete an item they hadn't clicked on. All the "if has more than 0 items" check would do is prevent a crash.) Oct 28 21:23:30 It's a bandaid. Oct 28 21:23:42 shmooz: It will multi-act. Oct 28 21:23:52 Until there is one item left. Then it will arbitrarily not multi-act. Oct 28 21:24:09 TacticalJoke: check for the id then Oct 28 21:24:33 Well, as I say, this appears to be fixed in Android. Oct 28 21:24:39 TacticalJoke: haven't seen your code, but if it's a problem for you, you could use locking to get arond it Oct 28 21:26:34 I think locking can't solve problems like this, because the issue is that, in 4.0, the menu-item-click code can be called multiple times. It'd require a lock in Android code rather than application code. Oct 28 21:27:25 i get it's an android bug, you've mentioned it about 50 times in the last 24 hours, but locking will fix your delete problem Oct 28 21:27:33 Nope, it won't. Oct 28 21:27:37 Locking will not fix it. It'll still happen. Oct 28 21:27:45 I just tried. Oct 28 21:27:51 well i agree that i wouldnt expect the menu handler to be async Oct 28 21:28:19 but its easy to work arround this Oct 28 21:29:00 danijoo: I guess the only solution is to check for the ID, as you say. But that's code complexity that really is not merited for something so simple. Oct 28 21:29:51 To take that to extreme, imagine if everything were asynchronous. Every statement would be guarded with a cumulative "if (x && y && z && ...)" statement. Oct 28 21:30:47 to be honest id have done it with an idea from the start Oct 28 21:30:55 but maybe im too long in the android world ;) Oct 28 21:31:18 danijoo: I think it's reasonable to assume that a context-menu-click event handler is synchronous. Oct 28 21:31:27 i agree Oct 28 21:31:30 i thought they are Oct 28 21:32:31 Apparently not in 4.0. Oct 28 21:32:46 Or at least on my old Sony Xperia U on 4.0. Oct 28 21:35:56 marrrk, yeah, i haven't looked at that Oct 28 21:36:28 I'm almost certain this isn't happening on 4.1. Even with Thread.sleep(10000) I can't reproduce it. Oct 28 21:38:34 The code is still async at some level, though. I can click another menu item and see it being clicked after Thread.sleep has returned. However, the click is ignored. Oct 28 21:38:45 (I can see the "click highlight", I mean.) Oct 28 21:40:05 I think the handler will just call onOptionsItemSelected on main thread and go on.. Oct 28 21:40:19 if you are really interested in whats behind it why dont you look into the source? Oct 28 21:50:36 TacticalJoke: I just made some research on that topic and the general idea is to do what i said: http://stackoverflow.com/questions/17854328/how-to-prevent-double-click-on-refresh-button Oct 28 21:51:31 boolean to disable the menu button and enable it again after the operation Oct 28 21:52:32 Sure, that's expected and everything when using AsyncTasks. But not with context menus. Oct 28 21:52:43 If we had to do that with context menus, code would get out of hand very quickly. Oct 28 21:52:46 but you could do the same on them too Oct 28 21:52:59 TacticalJoke: in most cases it doesnt matter if a button is clicked twice Oct 28 21:53:11 yours is one of those cases where it does, so you should implement it Oct 28 21:53:46 if the button is only for stuff like basic menu sorting, open a dialog or replaceing fragments, a user can click it 100000 times and you wont see a diference Oct 28 21:55:05 I guess the only things I need to worry about are DialogFragment.show and Activity.startActivity. Oct 28 21:55:15 Everything else, I think, would be a bug in Android. Oct 28 21:55:23 Though I'm looking right now. Inserting Thread.sleep everywhere. Oct 28 21:55:32 yeah. for stuff like your listview delete thing you can still do it by id :) Oct 28 21:55:39 haha Oct 28 21:55:55 Just never take things for granted in android ^^' Oct 28 21:56:17 Hmm. Would that work, though? My Adapter subclass just returns -1 in getItemId. Oct 28 21:56:25 I'd have to actually implement getItemId, I guess. Oct 28 21:56:40 TacticalJoke: oh. well.. this is your fault then ;) Oct 28 21:56:58 if i dont need ids, i usually let it return the item position Oct 28 21:57:51 It seems that ID == position basically always here. Oct 28 21:58:01 There's no other ID I can think of for simple lists. Oct 28 21:58:12 yeah i think thats what everybody does if its not a databse backuped list with ids Oct 28 21:58:14 Unless we're just counting up like a database does. Oct 28 21:58:18 Right. Oct 28 21:58:41 So the bug would still be present when using ID. :D Oct 28 21:58:46 Unless we just count up. Oct 28 21:59:07 Oct 28 21:59:20 you could write the object into a variable outside of adapter on click Oct 28 21:59:26 I'm glad to report that action-bar buttons do not have this race condition on 4.0. Oct 28 21:59:37 and when the menu item is clicked delete the item that matches to that variable Oct 28 21:59:56 (The click handler is finished before it's re-entered.) Oct 28 22:00:27 I need help, published my application with "alpha" status, 48 hours ago, the google changed status to "Published" and gave a url https://play.google.com/store/apps/details?id=br.com.webrota.msn.app ... but don't work ... someone can help-me ? Oct 28 22:00:56 upmauro: last time you didnt said u published as alpha... Oct 28 22:01:10 apps wont show up in store when flagged as alpha or beta Oct 28 22:01:23 only for users in the alpha or beta list Oct 28 22:01:29 huuuuum ... Oct 28 22:01:38 danijoo, thanks alot Oct 28 22:02:16 if you want to see it in store as an alpha tester, you have to create a google group for alpha testers, join this group and add this group to the app Oct 28 22:02:44 its under APK->ALPHA TESTING -> manage list of testers Oct 28 22:02:45 Is there a better way of handling the DialogFragment.show x 2 race condition than simply checking the tag? Oct 28 22:02:59 (in the box above "upload new apk to alpha") Oct 28 22:03:03 The Activity.startActivity x 2 one can be handled (in some cases, anyway) with launchMode:singleTop. Oct 28 22:04:06 TacticalJoke: again the boolean. You see why android is called the framework of boilerplate ^^ Oct 28 22:04:13 as danijoo has said, maybe many times. set/use a flag of some sort Oct 28 22:04:46 you shouldnt use findByTag for stuff like that because its incredible slow Oct 28 22:05:31 Oh. Was about to link to this, which uses findFragmentByTag: http://www.jorgecoca.com/android-quick-tip-avoid-opening-multiple-dialogs-when-tapping-an-element/ Oct 28 22:06:03 TacticalJoke: think of the system holding a Hashmap with all fragments Oct 28 22:06:11 Of all apps? Oct 28 22:06:16 your app Oct 28 22:06:19 dunno why this is so hard, think it was you tactical checking a convertview 3 times for null in a getView method. so how is doing this worse? Oct 28 22:06:19 Okay. :) Oct 28 22:06:25 everytime you call findFragmentByTag it has to iterate over that list Oct 28 22:06:38 whatitis: The fact that you thought that code was bad shows your lack of experience with programming. Sorry. Oct 28 22:06:41 same for findViewById and stuff like that Oct 28 22:06:58 youll just stay stubborn Oct 28 22:07:14 danijoo: Okay. Fair point. Oct 28 22:07:54 i think findViewById is even worse Oct 28 22:08:05 because it has to iterate over nested views ^^ Oct 28 22:08:06 Yeah, I cache that in Adapter.getView subclasses. Oct 28 22:08:20 I think ArrayAdapter doesn't cache that. Could be wrong, though. Oct 28 22:09:02 cache what? Oct 28 22:09:17 The result(s) of findViewById. The "ViewHolder" thing, I mean. Oct 28 22:09:29 When overriding BaseAdapter.getView. Oct 28 22:09:36 oh yeah. thats what viewholders are for Oct 28 22:09:51 (which is a concept google should built into adapters) Oct 28 22:10:04 its not a thing, its a pattern, as you should keep logic out as much as possible Oct 28 22:10:08 Is it built into RecyclerView? I haven't checked. Oct 28 22:10:17 didnt look at it Oct 28 22:10:32 but in generall every adapter without viewholder is bad style Oct 28 22:10:40 which is why it should be built in Oct 28 22:10:58 it's built in to RecyclerView, yes Oct 28 22:11:01 K. Oct 28 22:11:04 sweet Oct 28 22:11:11 should look into it .. Oct 28 22:11:33 would you guys upload the private key file used for signing a package to a public repo, if the entire project is open/public anyway? Oct 28 22:11:46 B0BBY: no Oct 28 22:12:13 so then the devs responsible for cutting a release are the only ones with the access to the key? Oct 28 22:12:34 would some nice dev make a little vid of my app? i want to make a vid and gif but the apps for that aren't working (rooted phone) and phone is 4.3 :( Oct 28 22:12:40 yeah publish the key and your google account password -- why not ? Oct 28 22:12:54 B0BBY: if you do that, people can build valid looking versions of your app Oct 28 22:12:59 with malicious stuff in it Oct 28 22:13:11 and make apk that update/override your apk Oct 28 22:13:13 with evil stuff Oct 28 22:13:56 Hi guys. I've run into a wall with something.. I got an ongoing music-player style notification with 3 button (prev, pauseplay, next). When clicking the notification the app is loaded - this works fine. If a button is clicked, nothing happens. The button click event should have called a method in my app. I have spent the last couple of days trying to figure out how I should set it up - unsuccessfully. Oct 28 22:14:41 danijoo: yeah, I hear that. I was thinking of the project as more of a open source, use it for yourself. copy it and modify it. Oct 28 22:14:47 danijoo: but users can Oct 28 22:14:48 just because you show everybody whats inside of your house, you shouldnt let them make copy of your keys :) Oct 28 22:14:59 but users should create their own private keys to sign their version. Oct 28 22:15:06 B0BBY: correct Oct 28 22:15:26 so then that makes the job of storing/backing up the private key even more cumbersome, lol. :) Oct 28 22:15:28 or use them unsigned if its for private use Oct 28 22:15:45 I was just thinking push it all to bitbucket and done. Oct 28 22:15:58 I use setAction on the intents in stead of addAction which I saw in a StackOverflow question which stopped the click event from opening my app. But how do I combine the notification, broadcastreceiver and manifest to make it work? Oct 28 22:16:07 danijoo do you know any way to make a vid from a 4.3? i tried popular apps and didnt work. also i can't run an emulator because my laptop doesn't support VT-X Oct 28 22:16:36 cliffreich: I do screen recording on genymotion Oct 28 22:17:14 yeah i have genymotion but it will run slow too as no VT-X Oct 28 22:17:16 now to tackle encrypting using 256bit key for AES on android. Oct 28 22:17:28 I'll try to update to 4.4 with CM Oct 28 22:17:31 I hear default is set to 128bit only. in java and on android. Oct 28 22:17:33 hope i dont fuck my phone again Oct 28 22:17:34 cliffreich: arent there apps for recorind on real devices? Oct 28 22:17:48 yes, but they crash on my 4.3 CM Oct 28 22:17:55 rooted ofc Oct 28 22:17:56 hm Oct 28 22:18:37 I heard the app "Rec." to be recommended often Oct 28 22:18:53 ok ill try it ty Oct 28 22:19:33 of if you can get any hands on an android 4.4 devices: those have screen recording over adb Oct 28 22:19:54 of = or Oct 28 22:20:17 yes ill try to update to 4.4... it's a nightly build for S3 but may work Oct 28 22:22:01 * cliffreich have 1 test phone and it's a S3 Oct 28 22:22:19 danijoo: How would I do that boolean-flag thing? onResume isn't called when the DialogFragment is closed. Oct 28 22:22:36 if I have android L preview build on my nexus 5, do I have to downgrade to the official build to receive the official android lollipop upgrade? Oct 28 22:22:48 yes, or reflash it yourself Oct 28 22:22:49 nvm, i should ask that on #android-root Oct 28 22:22:55 JakeWharton: ty Oct 28 22:22:56 damn it - there's a getCurrentItem() for viewpager :/ Oct 28 22:23:08 indeed there is Oct 28 22:23:22 csst0111: thats bad? ^^ Oct 28 22:24:04 nope - I was trying to keep a reference to the current page Oct 28 22:24:14 csst0111: never do that Oct 28 22:24:24 because it must be recycleable Oct 28 22:24:40 csst0111: you can find the fragment by its tag if you need it Oct 28 22:24:52 or by getCurrentItem() ^^ Oct 28 22:25:26 yes, now I know. Better late than never. Thnx danijoo Oct 28 22:25:33 TacticalJoke: mh. Oct 28 22:26:30 you could put it into onPause(), you can be sure this is called when fragment is already shown so the user cant click on it again at this point Oct 28 22:26:36 or in the fragments dismiis Oct 28 22:26:48 Okay, but I need to unset the variable after the dialog has closed. Oct 28 22:27:01 I live dangerous and expect my users to not push my buttons like monkeyrunner :p Oct 28 22:27:10 lol Oct 28 22:27:10 tactical, what scope is your dialogfragment, on close of it can reset flag, or add an interface to it that whatever implements will get called Oct 28 22:27:14 That's probably wise, really. Oct 28 22:27:48 whatitis: It's being shown with DialogFragment.show(getSupportFragmentManager(), ...). Oct 28 22:28:10 i have some boolean flags for data download and selectors... but i work with them in onSave onRestore an onCreate or my app will go crazy :) Oct 28 22:28:24 so they are in there all the time Oct 28 22:28:56 TacticalJoke: you can set it to true after the button is clicked, and back to false from the dialog when the dialog gets dismissed Oct 28 22:29:55 but I think you make life difficult for yourself Oct 28 22:30:11 nobody accedently double clicks on touchscreens ;) Oct 28 22:30:29 false Oct 28 22:30:38 also if the main thread is blocked input events will be queued Oct 28 22:32:11 I am making an app that has a lot of activities with list views. Each list view has a lot of strings. Is there a way of making these strings searchable without using SQLite, or should I suck it up and learn how to use SQLite with Android? Oct 28 22:32:30 So how should we deal with this scenario. I guess unsetting the flag on dialog-button click works, but it's so messy. Oct 28 22:32:31 suck it up Oct 28 22:33:15 TacticalJoke: you asked that like 20 times this evening and never got another answer then flags.. ^^ Oct 28 22:33:18 Do you know any good resources for getting started with SQLite? I'm kind of lost as of where to start. Oct 28 22:33:39 do I need to know MySQL? Oct 28 22:33:43 google sqlite tutorial Oct 28 22:33:58 if you know MySQL, you know sqlite, and vice versa Oct 28 22:34:10 that's not quite true Oct 28 22:34:11 sqlite is just a stripped of version of mysql Oct 28 22:34:14 liuwenhao there are many ways to approach that problem Oct 28 22:34:17 tactical, give your fragment a interface that whom ever uses the fragment must implement Oct 28 22:35:14 whatitis: Yeah, that's neater. Oct 28 22:37:23 JakeWharton: Could I ask how you handle this scenario, in general? Just curious. Oct 28 22:37:33 i don't use multiple activities or dialogs Oct 28 22:39:14 This works and is neat, but might be slower than a flag which is messy: http://www.jorgecoca.com/android-quick-tip-avoid-opening-multiple-dialogs-when-tapping-an-element/ Oct 28 22:40:05 the latest version of Butter Knife debouces clicks per frame so you never have to worry about two clicks in a single frame Oct 28 22:40:12 that means you can simply call setEnabled(false) and move on Oct 28 22:41:30 @JacobTab_ any ideas? SQLite seems like the most straightforward; I just haven't used it yet. Oct 28 22:41:46 liuwenhao its just strings? not structured data? Oct 28 22:41:53 and how many strings are you talking? Oct 28 22:42:20 and are they reused from one set, or seperate Oct 28 22:42:57 and do you need to delete/add or is a constant length list? Oct 28 22:44:15 Just strings. Each activity uses it's own strings that won't be used elsewhere in the app, but I want them to be searchable from the MainActivity Oct 28 22:44:38 how many strings Oct 28 22:44:58 Maybe 50-60 at most per activity. Oct 28 22:45:16 really no harm in using flat .txt file raw resources Oct 28 22:45:18 where are they coming from? iterating a list is pretty fast simple with that few Oct 28 22:45:33 or r.arrays Oct 28 22:45:37 in your app's resources Oct 28 22:47:04 yeah for that small number just load them into memory and use them Oct 28 22:47:07 no need for db Oct 28 22:47:26 Okay. So I would make a .txt for each activity with the strings that are in currently; and then implement search in the MainActivity -- correct? I'm very new but I think I understand Oct 28 22:47:29 http://developer.android.com/guide/topics/resources/string-resource.html#StringArray Oct 28 22:48:31 where are the strings coming from to begin with Oct 28 22:49:06 yea, the question is : is the list of strings immutable, or can strings be added/removed Oct 28 22:49:17 I am making a phrasebook app. For example String[] iAmFromAmerica = { "我来自美国。 Wǒ láizì měiguó" }; Oct 28 22:49:17 if immutable, use resources, otherwise, use flat files Oct 28 22:49:26 they will never be changed once they are there Oct 28 22:49:36 k there's your answer then Oct 28 22:49:44 Thank you very much Oct 28 22:50:15 Dumb question - do they need to be in separate .txt files per activity? Oct 28 22:50:25 check out the documentation i sent you Oct 28 22:50:31 Okay I will do that right now, thank you Oct 28 22:50:32 it will be in a .xml file Oct 28 22:50:39 and no, you can have one xml file for all the string arrays Oct 28 22:51:02 Wow, that's awesome. Definitely easier than learning SQL Oct 28 22:51:40 yes, you can load it by calling getResources().getStringArray(R.array.my_strings), then you can convert that to a Java List and use collection operators on it for searching, etc Oct 28 22:57:01 oh well 4.4 deleted all my contacts but seems like it'll work to record the video with adb Oct 28 23:02:55 It blows my mind that the documentation for Activity.startActivity and for DialogFragment.show don't mention that these methods run asynchronously. Many people (especially those coming from desktop programming) will not expect this at all. Oct 28 23:03:49 so fix it Oct 28 23:04:05 How do I fix it? Oct 28 23:04:16 change the javadoc, submit a patch Oct 28 23:04:23 It blows my mind how you can sit on that topic for 3 hours.. Oct 28 23:04:38 danijoo: Does it blow your mind that I want my apps to work and have few (or even zero) bugs? Oct 28 23:04:56 no but they dont get better from mentioning it over and over again :) Oct 28 23:04:58 This isn't just a small topic. It affects probably every app I'll ever make. Oct 28 23:09:46 any way to catch the home or menu keypress? Oct 28 23:10:47 tricknology: listen for key presses Oct 28 23:10:56 theres a KeyEvent.KEYCODE_HOME Oct 28 23:11:45 never tested it though Oct 28 23:12:16 hmmm I am listening to keyup.. maybe wrong one Oct 28 23:12:35 and i strongly recommend to not do anything on them because they are the gtfo-buttons for the user ;) Oct 28 23:14:11 tricknology: seems like your app has to be registered as launcher app to support this Oct 28 23:14:40 That makes sense. Oct 28 23:14:48 And I'm glad that is the case. Oct 28 23:14:58 see http://stackoverflow.com/questions/5547818/can-i-override-the-home-button-in-my-application Oct 28 23:19:48 does latlng coem out as 72.3424 or 72341240E-8? Oct 28 23:20:13 Is the example here broken? It doesn't call FragmentTransaction.commit. http://developer.android.com/reference/android/app/DialogFragment.html#BasicDialog (Scroll down a tiny bit.) Oct 28 23:21:48 TacticalJoke: where? Oct 28 23:22:05 i see a commit Oct 28 23:22:17 The code after "An example showDialog() method on the Activity could be:". Oct 28 23:22:39 you dont need a commit if you show it as a dialog Oct 28 23:22:59 ooh Oct 28 23:23:01 i see Oct 28 23:23:14 I was thinking of after ft.remove and ft.addToBackStack. Oct 28 23:23:18 yep. I think its missing a commit :) Oct 28 23:23:29 K. Thanks for confirming. :) Oct 28 23:23:56 danijoo, I saw this. I want to make a diagonstic tool to test if any random keys are firing. So I want to disable the functionality of all the buttons, overriding them completely. User can exit using the exit button I’ve added. Oct 28 23:25:05 tricknology: for example to test if my home key is broken and constantly fires? Oct 28 23:26:56 hi Oct 28 23:27:51 is there a way to get allocation tracker output in a text file? Oct 28 23:30:09 TacticalJoke: seems like its no bug Oct 28 23:30:44 public int show (FragmentTransaction transaction, String tag) - Display the dialog, adding the fragment using an existing transaction and then committing the transaction. Oct 28 23:31:47 Ah, okay. I missed that. :) Oct 28 23:32:01 learned something new on that too. ;) Oct 28 23:32:11 time to go to sleep now Oct 28 23:32:17 *wink* Oct 28 23:32:17 K. Thanks for the assistance! Oct 28 23:33:52 Hey Guys, I am working on an app which communicate with a online apache server. In the Mysql-Database is very sensible data from thausands of users. Do you know a smart and safe way to work with that data? I want, that the user can login to app via. the mysql data. Oct 28 23:36:14 hello, I am trying to connect my phone to my linux computer, but when I do, it is not shown as plugged in, it charges though Oct 28 23:36:28 I have USB debugging enabled, and not sure what to do Oct 28 23:36:40 had the problem, too. Oct 28 23:36:49 installed windows ;) Oct 28 23:37:00 damnit Oct 28 23:37:08 it can work with linux Oct 28 23:37:11 I have windows on my laptop but im on a roll and my codes on my desktop... Oct 28 23:37:16 but I tried it 2 days Oct 28 23:37:27 no luck Oct 28 23:37:34 sinistersnare: first check with lsusb that it got detected Oct 28 23:38:03 after 2 days i saw one connected device named ??? Oct 28 23:38:25 it was the mobile phone, but maybe my adroid system is to old 2.1 Oct 28 23:38:27 also, put in /etc/udev/rules.d/51-android.conf this line: SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4ee2", MODE="0666" Oct 28 23:38:52 (though I will warn that this line was tested with nexus device) Oct 28 23:39:57 p_l, how can i check lusb? Oct 28 23:40:07 run, as root, 'lsusb' Oct 28 23:40:11 ah libusb-devel Oct 28 23:40:13 i dont have it Oct 28 23:40:50 p_l, isnt found Oct 28 23:41:27 if it's not shown in lsusb, then it means that your device never registered on USB bus Oct 28 23:41:33 might be faulty cable Oct 28 23:42:07 hmm ill try to find another Oct 28 23:43:31 generally, if you don't see the device in lsusb, then it means the OS has not seen it at all Oct 28 23:43:43 p_l, its charging, but still not showing Oct 28 23:43:43 sometimes system logs can show some more (like errors on USB bus) Oct 28 23:43:52 where are those? Oct 28 23:44:30 in /var/log/syslog (on debian/ubuntu as well as on gentoo), /var/log/messages iirc on RedHat derivatives Oct 28 23:44:53 dmesg is probably a better resource for checking USB errors Oct 28 23:45:10 sinistersnare: if it's the cable that came with your phone, it may be data only. Oct 28 23:45:24 sinistersnare: if you go to settings->battery and it says "charging: ac", it's definitely power only Oct 28 23:45:32 ergh. it may be *power only* not data Oct 28 23:46:04 says Charging USB Oct 28 23:46:42 I suppose that's inconclusive. plug it in and out a few times, run dmesg, and look for USB events towards the end of hte flood of output Oct 28 23:47:27 dragorn / p_l : unable to enumerate USB device on port 4 Oct 28 23:47:48 new high-speed USB device number 4 using ehci_hcd too Oct 28 23:47:56 yup. So something is whacked with your USB - either your port or your cable Oct 28 23:47:59 probably the cable Oct 28 23:48:04 its definitely the port, i hate this port Oct 28 23:48:07 :) Oct 28 23:48:14 didnt know a port could only 'sort of work' Oct 28 23:48:38 well, that was stupid, should always check another port :( Oct 28 23:48:48 time to tape over that port ;P Oct 28 23:48:55 yeah... i have 2 in the front Oct 28 23:49:00 and dont want to reach around my huge tower Oct 28 23:49:09 its like the biggest mid-tower case ever Oct 28 23:49:12 could be as simple as a mis-plugged jumper line Oct 28 23:49:32 if you felt like opening your tower, check the d+ and d- lines on your front usb ports (if they're labeled) Oct 28 23:49:42 ill write that down for later :) Oct 28 23:50:24 i imagine if they were swapped it would consistently fail but probably know you plugged something in, otherwise they might just not be plugged in solidly. Or there's a crapton of noise in your case and it's swamping the signals; that's less likely for usb2 rates. Oct 28 23:50:48 alright that sounds good Oct 28 23:52:22 its been a long time since ive done android-dev... where can i find the device manager to use it? Oct 28 23:55:15 oh ok Oct 28 23:57:28 danijoo, yes exactly. client has a problem with ther app exiting for no reason. I watched it on TestFairy. Seems like their F8888888 buttons are broken or something. CS thinks it’s the app. It is definitely not the app since we have ~40k other people who are using it just fine. She probably dropped it and is calling us for support :P Oct 29 00:02:01 thanks so much dragorn and p_l !!! now time to get it to work! UI overhaul woohoo :) Oct 29 00:02:26 Yaaay time for LA traffic. Oct 29 00:14:14 http://s6.pikabu.ru/post_img/2014/10/28/6/1414488862_948243293.jpg Oct 29 00:20:21 heh Oct 29 00:24:03 Hey Guys Oct 29 00:24:09 I'm having trouble understanding the instructions in the "README-android.txt" file could someone please explain in other words what I am supposed to do? I have the SDK, NDK, and Eclipse setup already. Oct 29 00:24:27 "README-android.txt for SDL2 Oct 29 00:24:31 which instruction? Oct 29 00:24:38 Here's the instructions I'm having trouble with: http://pastebin.com/ypdvEEVA I'm confused on which files to move, rename, etc. Oct 29 00:24:50 Thanks Oct 29 00:25:45 beyond me Oct 29 00:27:12 JakeWharton: In light of the discussion earlier about Activity.startActivity and DialogFragment.show being asynchronous -- I wanted to ask whether basic code that replaces a fragment (e.g., ) also suffers from this "if the user clicks quickly, it'll run twice" issue. Oct 29 00:27:32 sure. it'll enqueue two fragment transactions Oct 29 00:27:58 How do I avoid that? I'm new to fragments, so I'm not sure. Oct 29 00:29:32 Is not calling addToBackStack enough to avoid this? Oct 29 00:32:50 When I try to open Android Studio on Mac, it says "The application Android Studio.app is not opened anymore." (Translation) I can't delete the file because it says Android Studio is open but it isn't. Oct 29 00:32:53 Any help? Oct 29 00:33:48 Let's just log out and in, brb Oct 29 00:42:05 hey my ex messed around with my phone a few months back and now i tried factory resetting and now i'm stuck without a launcher, and a play store that doesn't work Oct 29 00:42:11 anyone know what to do now? Oct 29 00:42:16 I'm trying to write code to make an HTTPS POST request, when a self-signed certificate is being used. However, I'm looking at the request in Fiddler and it says that it's making an HTTP request to the address, not an HTTPS request. Could someone look over the code? 1.1.1.1:443 HTTP/1.1 Oct 29 00:42:26 Oops, http://pastebin.com/h4eGm2Mm Oct 29 00:42:27 KaylieG see #android Oct 29 00:42:40 i just came from there, someone recommended asking here Oct 29 00:42:53 KaylieG: That person gave you poor advice Oct 29 00:42:58 KaylieG ahh, try #android-root maybe Oct 29 00:43:09 KaylieG, maslen and yeah, this is just for development questions Oct 29 00:44:19 KaylieG: no, they really didn't recommend coming here Oct 29 00:45:30 maslen HTTP/1.1 doesn't imply that you're not using HTTPS Oct 29 00:45:35 someone linked this channel Oct 29 00:45:39 don't worry about it Oct 29 00:45:42 you won't get help here though Oct 29 00:46:08 i know, it's been made abundantly clear lol Oct 29 00:46:17 KaylieG lol! Oct 29 00:48:04 KaylieG: Is this why he or she is your Oct 29 00:48:07 ex? Oct 29 00:48:26 no lol not because he messed with my phone Oct 29 00:48:36 he made it faster Oct 29 00:48:54 i have a pretty good guess at whats going on here Oct 29 00:49:29 Anyone used Otto to talk from a service to Activity? I've implemented the extended Bus, but can't seem to get it working. The extended Bus is pretty straight forward. I am on a Wear device, using WearableListenerService. I wouldn't think that would make a difference though. Oct 29 00:49:45 mattblang_ are you running in the same process? Oct 29 00:50:06 both your service and activity are on wear? never done that with otto Oct 29 00:50:20 i wouldn't though Oct 29 00:50:43 i mean, i wouldn't assume it would just work Oct 29 00:50:43 JacobTab_: Agreed. I was looking at the "Protocol" tab in Fiddler, which differentiates between HTTP and HTTPS. Oct 29 00:50:48 JacobTab_ Well, I have a service listening for updates on the Data API. I need to spawn a notification, and send the data to my activity in case it is opened. Oct 29 00:50:54 In this case, it was making an HTTP request Oct 29 00:51:27 well, no clue if that will work - you could always fall back to a broadcast receiver Oct 29 00:51:30 JacobTab_ I guess I'll just have to use Broadcasts Oct 29 00:51:46 JacobTab_ yeah, I think I will. bleh Oct 29 00:51:58 i want my name back Oct 29 00:52:22 JacobTab_ /nick JacobTab ? Oct 29 00:52:34 i upgraded textual i think it broke something Oct 29 00:53:02 JacobTab_ lol, I just tried to do it but realized that my work computer still has me logged in Oct 29 00:55:12 maslen y u still use Oct 29 00:55:15 defaulthttpclient? Oct 29 00:57:33 and why do you need this Oct 29 00:57:34 registry.register(new Scheme("http", PlainSocketFactory.getSocketFactory(), 80)); Oct 29 00:58:02 i don't see how you could make an http request to an https url Oct 29 00:58:08 http://www.androidpolice.com/2014/10/28/android-5-0-lollipop-feature-spotlight-carriers-can-now-have-google-play-install-their-crapware-automatically-which-is-good-maybe/ Oct 29 00:58:22 carriers have to take advantage of that though Oct 29 00:59:23 JacobTab_: I was working off someobdy elses code Oct 29 01:00:00 So while I have a basic understanding of the HTTPS Scheme, I have no clue what's occurring in this exact code. Oct 29 01:00:07 mattblang_ for the case you described you don't need a broadcast receiver or otto Oct 29 01:00:13 line by line. Overall, I do understand what's happening Oct 29 01:00:16 you can pass the data via a pendingintent payload in your notification Oct 29 01:00:36 maslen when you request an https:// url, you either get an https connection or an exception Oct 29 01:00:50 "Ohhhh nice of you Google, thank you for making my crapware optional" said no carrier. Ever. Oct 29 01:00:51 :D Oct 29 01:01:51 heh ya Oct 29 01:02:02 JacobTab_: Fiddler's log is outputting: "21:01:35:7479 [Fiddler] No HTTPS request was received from () new client socket, port 37038." Oct 29 01:04:37 If I want to create a "wizard" thing -- a bunch of screens (e.g., 1, 2, 3, finish) with 'next' and 'prev' navigation -- is it a good idea to use fragments? Oct 29 01:05:05 why can't i mock a facebook session this is so wtf Oct 29 01:05:35 when(mock(Session.class).isOpened()).thenReturn(true); Oct 29 01:05:39 this gives me an NPE Oct 29 01:05:50 and that's a contrived example Oct 29 01:09:08 JacobTab_ oh man, of course. because the notification is passed a PendingIntent. Can I get this using getIntent in my Activity? Oct 29 01:09:25 the pendingintent launches your activity Oct 29 01:09:43 a pendingintent wraps a regular intent Oct 29 01:09:49 that intent can have extras, etc Oct 29 01:10:09 JacobTab_ right, so in Activity I can call getIntent and getStringExtra to grab stuff I put in form the Service when launching the notification? Oct 29 01:10:27 yes Oct 29 01:13:29 JacobTab_: doReturn(true).when(mock).isOpened() Oct 29 01:13:36 tried this also -.- Oct 29 01:13:39 your version still invokes the method when creating the mock Oct 29 01:13:53 trying again though Oct 29 01:15:06 yea it's still calling through to the actual method Oct 29 01:15:18 and crashing when it hit's a null lock Oct 29 01:15:20 hits* Oct 29 01:15:37 it shouldn't Oct 29 01:16:10 http://cl.ly/image/0o2N440v0w2I Oct 29 01:16:12 i know, right? Oct 29 01:17:41 but i do <3 the inline values Oct 29 01:20:22 what version of mockito? Oct 29 01:20:27 are you in the JVM or on Android? Oct 29 01:20:42 1.9.5, android, with dexmaker Oct 29 01:20:49 anyone know a good sample of OCR to work with (im not used to NDK or librarys yet) Oct 29 01:21:18 and i'm able to mock other things no problem Oct 29 01:21:26 this is the first time i've run into an issue Oct 29 01:22:17 i can accomplish my goal by using a normal session, then spying on it Oct 29 01:22:24 but i want to understand what the problem is here Oct 29 01:22:52 that shouldn't happen Oct 29 01:23:01 what value does when() return? Oct 29 01:23:10 let's see Oct 29 01:23:15 or rather, on what instance is isOpened invoke Oct 29 01:23:22 i've also never used mockito on Android Oct 29 01:24:31 ah, interesting Oct 29 01:24:41 JacobTab_ thanks a lot for pointing that out to me man. that just saved me a lot of time. fyi, had to add FLAG_UPDATE_CURRENT to the PendingIntent Oct 29 01:25:04 Method threw 'org.mockito.exceptions.misusing.UnfinishedStubbingException' exception. Oct 29 01:25:09 hm Oct 29 01:25:30 mSession = Method threw 'org.mockito.exceptions.misusing.WrongTypeOfReturnValue' exception. Cannot evaluate Session_Proxy.toString() Oct 29 01:25:37 that's what i meant to paste Oct 29 01:25:52 that's in my variables window Oct 29 01:26:04 so weird Oct 29 01:26:11 mattblang_ glad to hear it Oct 29 01:26:48 oh. Oct 29 01:26:54 JakeWharton isOpen() is a final method. derp Oct 29 01:27:03 well screw you facebook Oct 29 01:27:47 i hate it when i have to write code to get my tests to work, a facebook session wrapper... Oct 29 01:28:34 of course, i checked if the class was final Oct 29 01:28:41 didn't think to look to see if the method was final! Oct 29 01:29:11 i wonder how other people test apps with fb sessions Oct 29 01:29:44 Nobody tests Oct 29 01:29:47 That's how Oct 29 01:30:03 :) Oct 29 01:38:45 Anyone here an Android developer? Oct 29 01:41:26 Mallot1: A developer for Android or a developer *of* Android? Oct 29 01:42:09 TacticalJoke either Oct 29 01:42:35 wat do u think m8 Oct 29 01:42:44 B) Oct 29 01:43:36 Can someone help me with these instructions? I'm trying to setup SDL2 with Android but I don't understand the instructions: http://pastebin.com/y938YLdx Oct 29 01:43:38 Thanks Oct 29 01:45:01 where did you get those instructions? Oct 29 01:45:08 they seem outdated Oct 29 01:45:18 are you an android developer? Oct 29 01:45:28 what IDE are you using Oct 29 01:45:34 JacobTab_: SDL2 Android project template Oct 29 01:45:48 for what IDE/build system? Oct 29 01:45:53 eclipse/ant? Oct 29 01:46:22 JacobTab_: This is my first Android App so yes and no B), Eclipse with the Android SDK and NDK installed Oct 29 01:47:18 do you know what this means? Edit /jni/src/Android.mk to include your source files Oct 29 01:48:07 http://www.kandroid.org/ndk/docs/ANDROID-MK.html Oct 29 01:48:08 I believe would be the project I'm creating so "game/jni/src/Android.mk" Oct 29 01:48:23 yes - do you know what it means to include your source files? Oct 29 01:48:48 (if not, check out that link) Oct 29 01:49:01 Yes I am a C++ developer Oct 29 01:49:31 ok, so what part of the instructions is unclear Oct 29 01:49:38 But I normally link everything in the Code::Blocks IDE so I never done stuff this way before Oct 29 01:50:01 #2 unspecified pronoun Oct 29 01:50:43 I don't know if they mean the template or my project folder when they saymove this SDL directory Oct 29 01:50:57 The wording is confusing me Oct 29 01:51:13 i imagine "this" means the directory you found the instructions in Oct 29 01:51:17 I've been developing with SDL2 and C++ for a while Oct 29 01:51:35 Alright, I'll try it Oct 29 01:51:35 so, the template Oct 29 01:51:43 they wouldn't ask you to move your projct around Oct 29 01:52:31 yeah, there's the problem, My project doesn't have a jni folder or the files they're asking me to edit Oct 29 01:53:28 you need to make the jni folder Oct 29 01:53:40 and the directory where that doc was in probably contained a src folder Oct 29 01:53:56 android apps don't typically have ndk components Oct 29 01:54:01 so the project structure for it doesn't exist by default Oct 29 01:56:22 JacobTab_: Cool, Now I'm on step 3 Oct 29 01:56:58 I never exspected to get confused with 4 step instructions xD Oct 29 01:58:41 word of warning, few people use eclipse and few develop ndk in here Oct 29 01:59:14 aw man, JacobTab_: What do people use? Oct 29 01:59:56 IntelliJ/Android Studio for android java development Oct 29 02:00:25 there are some NDK samples for android studio, but i bet the documentation is better overall for eclipse right now Oct 29 02:00:49 JacobTab_: I have that, I was trying to see if maybe it will work in Eclispe. I have been trying to get this to work flipping from Eclipse and Android Studio/ Mac and Windows Oct 29 02:17:47 i wonder why reddit doesnt like my app Oct 29 02:17:51 its too ugly? Oct 29 02:18:33 hi Oct 29 02:18:39 at least they dont like or dislike it Oct 29 02:19:12 quick question is it possible to create an app that causes the samsung gear fit to vibrate on touching the screen (inside the app) or something similiar Oct 29 02:20:01 I have a samsung gear fit now and a samsung galaxy s4, I want to mess with connectivity between the two (proprietary? ) devices? Oct 29 02:20:54 cliffreich whats your app Oct 29 02:20:56 is it bad Oct 29 02:22:13 no answers to my question? (is trying to be patient) Oct 29 02:22:20 cliffreich: What's the thread? Oct 29 02:23:34 im trying to figure out a simple OCR setup so i can enhance it and call it But anyone know good videos to learn how the hek to build and what these mean ? https://github.com/rmtheis/tess-two Oct 29 02:25:56 build is where im a lil lost but i did DL the NDK and such and brew instal ant lol Oct 29 02:26:39 TacticalJoke http://www.reddit.com/r/androiddev/comments/2kmo90/being_learning_android_for_around_2_months_and/ Oct 29 02:27:35 cliffreich: The problem is that is just one screen. It's hard to get much of a feel of your app from it. Oct 29 02:27:44 I want to develop an app that talks to my gear fit. Pls anyone with knowledge on whether this is possible for anyone let me know! thanks.. Oct 29 02:28:06 It looks nice, though. Congrats. Oct 29 02:28:10 cd /tess-two ndk-build android update project --path . ant release Oct 29 02:28:31 i can do the ndk-build and maybe ant release but not sure where i need to get android update command Oct 29 02:28:38 thanks! 2nd nice comment about it Oct 29 02:29:00 using mac-osx Oct 29 02:29:00 If you showed every screen, it might get more activity on Reddit. As it is, though, your Reddit thread will fail. Oct 29 02:29:06 Simply because one screen is unremarkable. Oct 29 02:29:33 The only way that screen would get upvoted is if it contained a good-looking female, or a cat, or something. Oct 29 02:29:44 Or a celeb. Oct 29 02:29:51 (Or a combination of the above.) Oct 29 02:30:09 ok ill make a larger gif. i had to update to 4.4 CM nigthly build to record a video as i only have a S3 Oct 29 02:30:13 Or it was a teaser for an upcoming Android . Okay, I'll stop. Oct 29 02:30:22 No, it's not the size of the image. Oct 29 02:30:27 I can't tell whether you're trolling. lol Oct 29 02:31:05 cliffreich: Do you think that /r/androiddev is really gonna upvote a post about someone's app when that post contains *one* screenshot of the app? Oct 29 02:31:37 Wait, I take all this back. Oct 29 02:31:59 It's an animated GIF. My computer was lagging so badly owing to about 300 tabs in Google Chrome. Sorry. Oct 29 02:32:17 oops, my poor buddy at orbital sciences :( Oct 29 02:35:20 JacobTab_ TacticalJoke yes maybe... but i can't post on /r/Android as i'm not a great redditor Oct 29 02:35:51 How about /r/androidapps? Developers post there. Though they usually expect a Google Play link. Oct 29 02:37:18 oh ill be right there Oct 29 02:39:48 cliffreich did you post a link to your app ? Oct 29 02:39:48 also thanks to this room and stackoverflow i made it in that short time :) I'm kinda obsessive when i have a project Oct 29 02:40:20 just posted it... i had another post with google play link only and 1 comment only Oct 29 02:40:21 can someone please help me. Oct 29 02:40:47 RedEyedGirl: I'm not sure how many people have done "wearable" development. Oct 29 02:40:50 I just want to know how to make an app that's going to make my gear fit vibrate on command. Oct 29 02:40:56 RedEyedGirl: Have you tried googling? Oct 29 02:41:17 I don't even need to know how to do it i just need to know if it's possible and how to get developing Ie where to find the right documentation and sdk tools. I downloaded the accesories SDK Oct 29 02:41:24 how do i add SDKS to my eclipse environment Oct 29 02:41:24 e.g., "android make device vibrate [stackoverflow]" (the part in square brackets is optional). Oct 29 02:42:07 how do I add the downloaded sdk to the eclipse adt bundle 0_0 Oct 29 02:42:11 it's a zip file/s Oct 29 02:42:45 there are no guides on this 0_0 Oct 29 02:43:00 There are a looooooot of guides on this Oct 29 02:43:41 But the problem with Gear Fit is that you'd have to use some Samsung APIs Oct 29 02:45:21 I've been receiving an increasing number of HTTP 502's being returned from gcm lately. Anyone else notice this? Oct 29 02:47:44 I also don't think I can open an actual support case with Google on this, either Oct 29 02:49:06 yes i know that i downloaded it from the samsung site i downloaded the accesories api i just don't know how to put it inside eclipse so that eclipse will recognize it and i can make the calls to that api Oct 29 02:49:25 i'm using eclipse with the adt bundle and it doesn't tell me in the guide what folder to put the sdk Oct 29 02:49:33 it just says to download it and it assumes i know exactly where the files go Oct 29 02:50:35 As someone trying to learn to be a developer I have these problems alot and when I ask questions I'm mis understood as having incompetency when really I just don't know. Oct 29 02:51:03 if somewhere on the internet it said "put the sdk files in THIS exact folder" I wouldn't have any problems. :S Oct 29 02:53:50 "put the sdk files in THIS exact folder" Oct 29 02:53:56 tada ! Oct 29 02:54:22 cliffreich i dont see a link for yoru app Oct 29 02:54:46 oh i see it on reddit Oct 29 02:55:01 your gif is broken Oct 29 02:55:02 /r/androidapps ? Oct 29 02:55:05 you should delete your redditpost Oct 29 02:55:20 https://play.google.com/store/apps/details?id=com.javierarias.ubika Oct 29 02:55:50 damn that looks pretty nice Oct 29 02:55:55 it's broken? Oct 29 02:56:08 damn ill check right now Oct 29 02:56:22 https://lh6.ggpht.com/aQb18qpyWy1jK885cFurqX4Xq29Csn_Lhp2VxaNj7ZPFMwz-K-VT1ToTTPF11HEsf_I=h900-rw this is too crowded Oct 29 02:56:31 not crowded... but Oct 29 02:56:58 its overwhelming Oct 29 02:57:09 i gotta go i figured it out Oct 29 02:57:23 i just made it crash :O Oct 29 02:58:05 yea i cant do anything without it crashing cliffreich Oct 29 02:58:45 also the drawer doesnt seem to do anything other than change the title Oct 29 02:58:52 good thing cliffreich isn't making antares rockets Oct 29 02:59:02 (from the home screen) Oct 29 02:59:06 too soon g00s Oct 29 02:59:23 isn't changing the content? Oct 29 02:59:39 each link on the home screen crashes the app Oct 29 02:59:46 and the drawer doesnt do anything other than change the title on the home screen **** ENDING LOGGING AT Wed Oct 29 03:00:00 2014