**** BEGIN LOGGING AT Wed Nov 12 03:00:00 2014 Nov 12 03:00:12 and stopped, going back to ML, but now looks like here to stay on yosemite Nov 12 03:14:47 "FastMail app for iOS and Android now available" \o/ Nov 12 03:16:10 aww aussie company Nov 12 03:21:51 Do you guys bother using accessors ("getFoo()") for your global variables? I can't decide between Globals.foo and Globals.getFoo(). Nov 12 03:22:13 The former is more readable. But it feels weird going against the "use accessors and mutators" convention. Nov 12 03:22:36 Maybe global holders are an exception to this convention? Nov 12 03:24:19 maybe should be weird using the term global Nov 12 03:24:41 In Android, globals are sometimes really nice. Nov 12 03:24:56 globals in java? Nov 12 03:25:08 its scope based Nov 12 03:25:48 Yeah, but static variables in Java are just global variables. Nov 12 03:25:55 Global to that classloader. Nov 12 03:25:58 and no a "global" doesnt seem nice in limited terms Nov 12 03:26:01 Which is global to the process in Android, I think. Nov 12 03:26:10 no Nov 12 03:26:22 ask ##java Nov 12 03:26:24 What are you disagreeing with? Nov 12 03:26:29 Static variables are global variables. Nov 12 03:26:38 the fact of global Nov 12 03:26:41 If you disagree, please define 'global variable'. Nov 12 03:27:08 cant as it isnt relevant Nov 12 03:27:30 can think of singletons Nov 12 03:27:39 Singletons are globals. Nov 12 03:27:51 but not global, what do you need Nov 12 03:28:05 People dislike the word 'global', but that's exactly what a singleton is. Nov 12 03:28:14 in java? Nov 12 03:28:16 Yeah. Nov 12 03:28:23 prove it Nov 12 03:28:38 goto ##java Nov 12 03:28:56 Let's say that we have Foo, which is a singleton (it has a public static "getInstance" method). Nov 12 03:29:00 its just a single kept instance Nov 12 03:29:16 Each of your classes can access that instance. Nov 12 03:29:21 If it's mutable, each of your classes can mutate it. Nov 12 03:29:26 just give an example of what you need Nov 12 03:29:26 It's a bona fide global variable. Nov 12 03:30:31 whatitis: The word "global" in the term "global variable" simply refers to scope. Nov 12 03:30:34 not trying to discourage you, just the lingo which makes it hard Nov 12 03:30:41 Since your entire app can access that variable, it's global. Nov 12 03:30:42 nope Nov 12 03:31:07 but to make a whole app access it is stupid Nov 12 03:31:17 whatitis: Do you think singletons are stupid, then? Nov 12 03:31:28 based on keeping it around for your ease Nov 12 03:31:39 (I actually do think singletons are bad, but I'm just trying to figure out what you're talking about.) Nov 12 03:31:43 show me proof you need it Nov 12 03:32:04 whatitis: Stuff that shouldn't be subject to the whims of Activity recreation should be global, IMO. Nov 12 03:32:09 exactly, show your case of needing it Nov 12 03:32:36 im not hating, just show what you need Nov 12 03:32:44 whatitis: Who programmed you? Nov 12 03:33:03 what do you need? Nov 12 03:33:36 to think a mobile app should keep everything in memory is wrong Nov 12 03:33:47 Obvsly not everything. Nov 12 03:33:57 yes Nov 12 03:34:12 when he can't find a way to access or pass data between Nov 12 03:34:20 that's when he loves global ;) Nov 12 03:34:23 apps get closed/back pressed/homed all the time Nov 12 03:34:40 what do you need persisted that isnt Nov 12 03:35:16 whatitis: My current app has an in-memory "database" that gets persisted to disk independently of Android-component recreation. Nov 12 03:35:34 shmooz gets it in a way :) Nov 12 03:35:36 If I didn't use globals, my code would be awful. Nov 12 03:35:52 tactical, what is going wrong? Nov 12 03:35:59 You always think something is wrong. Nov 12 03:36:05 doogan doogan doogan Nov 12 03:36:40 inmemory to disk.. Nov 12 03:36:51 what needs saved? Nov 12 03:37:19 is it an orientation change, or back press then reload? Nov 12 03:38:24 data is simple, its reloading that can be tricky Nov 12 03:38:49 TacticalJoke: it is more conventional in OO to keep things at their local scope Nov 12 03:38:52 but you have to be more specific Nov 12 03:39:57 shmooz: The "local scope" of data that needs to be global to the application is "the application". :) Nov 12 03:40:20 So many people get this wrong, BTW. Nov 12 03:40:27 and I say what went wrong in terms of you have a question, and to have a question is fine, but something went wrong to ask it Nov 12 03:40:28 Their main activity has a field that it shouldn't have. Nov 12 03:40:48 MainActivity should have fields *only* that related to, not just the UI, but that particular part of the UI. Nov 12 03:40:51 relate* Nov 12 03:41:13 based on what? Nov 12 03:41:14 whatitis: Nothing went wrong. Nov 12 03:41:45 are you getting results, are they arent corresponding to your activty? Nov 12 03:42:00 &* Nov 12 03:43:41 mainly dont rely on statics. ive done it, but keep everything relative to cycle. save data but get it from polling or checking updated disk if killed restarted Nov 12 03:44:53 I can go on, post if you have an issue, problem, be descriptive Nov 12 03:46:32 a d Nov 12 03:47:44 and best if seperate from ui, and background work use a service with thread, update ui based on binding or checking disk Nov 12 03:49:35 * StingRay_ watches tumble weed go past Nov 12 03:49:45 update iu during ram, let disk operations follow later ;) Nov 12 03:49:49 ui Nov 12 03:50:08 but without some code, and I mean by things go wrong I mean you get unexpected results, be as descriptive as you can Nov 12 03:51:48 stingray stop watching your cgi tubleweeds and help :) ppl hate me but I mean well Nov 12 03:53:48 so far I've only had one case where I had to resort to static global Nov 12 03:54:24 ppl do it, but those dont get it. you dont need static Nov 12 03:54:26 shmooz: Resort to? Nov 12 03:56:32 final yes, static maybe, but you have resources to forgo static in code Nov 12 03:59:23 Eclipse is pretty powerful. I can "remove unused inport" in batches. ;o Nov 12 03:59:26 Just found out. Nov 12 03:59:32 Via the errors/warnings pane. Nov 12 04:00:04 bah most ides let you organize Nov 12 04:01:40 as has ctrl-o or such that refactors and optimizes imports Nov 12 04:02:15 Can it do that for multiple files? Nov 12 04:02:45 In Eclipse, I just "removed unused imports" for 10 files in one go. Nov 12 04:03:02 seems like issue 78377 has been resolved Nov 12 04:03:03 (After messing around creating new subpackages.) Nov 12 04:03:48 The solution is ProGuard? Nov 12 04:04:20 good i was tired of the spam Nov 12 04:05:55 now i just have to find the solution among 122 comments of confusion :P Nov 12 04:07:23 rxjava is working really nice for this thing im working on Nov 12 04:07:39 managing state for mediaplayers in a recyclerview Nov 12 04:07:47 combineLatest <333 Nov 12 04:07:57 issue 78377 lol, hope it ain't my problem Nov 12 04:09:02 and whoever that is you are talking about, sounds like they got a lot of issues ;) Nov 12 04:10:25 JacobTabak combineLatest ftw indeed :) Nov 12 04:11:05 so i guess the solution is #91 its confusing people are saying it worked - no it doesn't work - well did you do it like that - yeah - no - ugh Nov 12 04:11:24 its samsungs fault though, right? (again) Nov 12 04:11:37 g00s_: are you helping to fix AS bugs ? Nov 12 04:11:59 shmooz no, just interested on getting this over with https://code.google.com/p/android/issues/detail?id=78377 Nov 12 04:12:08 so it looks like #115 Nov 12 04:13:39 oh maybe just obfusication fixes the problem Nov 12 04:14:18 JacobTabak i thought about your mvvm approach Nov 12 04:14:33 i decided to make the ViewHolder the presenter. Nov 12 04:14:48 custom ViewGroup is uh the View :) Nov 12 04:15:09 model is one of any network clients in service, all wired up with rxjava ftw ! Nov 12 04:15:31 where do you keep the view references Nov 12 04:15:34 in the viewgroup or viewholder? Nov 12 04:15:45 ViewGroup Nov 12 04:15:55 its a passive View, it needs to be stuffed with things Nov 12 04:15:56 i might do that yet Nov 12 04:16:27 the VH is ths rx subscriber that stuff that view, and unsubs in the onRecycled Nov 12 04:17:15 i understand mvc and mvp, but every time i read mvvm i'm like "wuut" Nov 12 04:17:42 where is onRecycled? in the viewholder? i dont see it in there Nov 12 04:18:24 recyclerView.setRecyclerListener { unhook subscriptions } Nov 12 04:18:51 ah interesting, didnt know about that one Nov 12 04:27:18 I should learn RxJava Nov 12 04:29:49 so, does deleting rows from sqlite free up disk space? Nov 12 04:30:04 you might need to vacuum Nov 12 04:30:31 https://www.sqlite.org/lang_vacuum.html Nov 12 04:31:20 i guess you have to see if the android sqlite binding is doing auto_vacuum=FULL Nov 12 04:32:02 Indeed, thanks Nov 12 04:33:36 * pfn implements irc logging, finally Nov 12 04:33:48 into sqlite, heh Nov 12 04:42:31 https://github.com/pfn/qicr/blob/master/common/src/com/hanhuy/android/irc/MessageLog.scala Nov 12 04:42:32 I wanted to build xmpp Nov 12 04:42:35 how fun... Nov 12 04:42:54 but will wait for kotlin to support annotations ;) Nov 12 04:47:07 gordon_: is there a public todo list for kotlin ? Nov 12 04:49:48 bankai_au: dont know about public todo list. there is ticket for annotation processing in bug tracker Nov 12 04:50:32 with that you can put gradle deps in android project and just enjoy kotlin Nov 12 04:53:58 gordon_ just poking around, it seems you just add a kotlin plugin to your build, and put some .kt files in src/main/kotlin :) Nov 12 04:54:31 but i could be wrong. looked easy anyhow Nov 12 04:55:17 since JakeWharton seems to be messing aorund with it, he's the canary for now Nov 12 04:56:08 gordon_ how far have you gotten with it ? Nov 12 05:01:39 lol http://digg.com/video/this-baby-is-more-metal-than-you Nov 12 05:02:55 g00s_: with what ? Nov 12 05:03:05 gordon_ are you using kotlin ? Nov 12 05:03:08 kotlin on android ? Nov 12 05:03:13 ya Nov 12 05:03:19 I wrote simple xmpp client Nov 12 05:03:25 well Nov 12 05:03:30 2 activities ;) Nov 12 05:03:36 oh and you used kotlin for that ? nice Nov 12 05:03:40 service and broadcast receiver Nov 12 05:03:49 nothing fancy Nov 12 05:03:57 and my code is super ugly :D Nov 12 05:04:23 I'm missing event bus Nov 12 05:04:39 with that I could cut that broadcast receiver Nov 12 05:04:43 and just use service Nov 12 05:04:54 gordon_ use rx + kotlin + behaviorsubject Nov 12 05:05:08 I dont know rx... Nov 12 05:05:23 subjects are easy to understand Nov 12 05:05:29 will take a look Nov 12 05:05:40 a good way to get feet wet Nov 12 05:05:48 intellij gets a little bit slow with kotlin Nov 12 05:06:40 lack of docs... Nov 12 05:06:46 the best thing for that is https://github.com/ReactiveX/RxJava/wiki/Subject ? Nov 12 05:07:48 hello guys Nov 12 05:07:51 quick question Nov 12 05:07:53 gordon_ yeah thats it Nov 12 05:07:54 http://pastebin.com/YCVANZEE Nov 12 05:08:05 g00s_: first I would like to get more familiar with lang Nov 12 05:08:12 something like project euler will fit it ;) Nov 12 05:08:16 i'm trying to have ListView with multi type rows Nov 12 05:08:22 created my own adapter Nov 12 05:08:38 trying to get questions from JSON object. Nov 12 05:08:56 the problem is it'll print the same question over and over Nov 12 05:09:02 g00s_: https://github.com/charafau/kotlin_euler/tree/master/src/main/kotlin Nov 12 05:09:05 for the amount of the questions i have in the json object Nov 12 05:09:07 I got first problem solved :D Nov 12 05:09:14 2nd too but on different branch I guess Nov 12 05:09:45 no I dont :D Nov 12 05:09:48 https://avatars2.githubusercontent.com/u/1143994?v=3&s=400 :D Nov 12 05:09:59 anyone wanna help a noob out ? :( Nov 12 05:10:02 ;) Nov 12 05:10:38 looking for this android figure for long time Nov 12 05:10:42 cannot find it anywhere Nov 12 05:12:58 http://pastebin.com/YCVANZEE Nov 12 05:15:36 i think my problem is much simpler that what im thinking of i just need another opinion plz Nov 12 05:16:07 another opinion ? whats the one you have currently ? Nov 12 05:16:41 the one i have right now is that I'm not updating the questions everytime i go through the loop Nov 12 05:19:28 this is the json objects that im trying to read in Nov 12 05:19:28 http://pastebin.com/F5J1kPHg Nov 12 05:22:49 StingRay_ any idea? Nov 12 05:23:09 oh well I looked but then didnt want to read loads :) sorry Nov 12 05:23:13 bit busy Nov 12 05:23:38 okay :) ty tho Nov 12 05:36:00 what is this error supposed to mean " java.lang.VerifyError: com/pubnub/api/PubnubCore Nov 12 05:37:57 How is it that when I ask a question people tell me to go to android docs, and when I do 99% of the time they don't show examples how the code is used, but I found one doc which did... Why is that? Nov 12 05:38:39 i'm not sure but i don't like your question Nov 12 05:38:49 sounds whiney :) Nov 12 05:39:17 JacobTabak lol you got old quick in this channel Nov 12 05:39:37 jacobtabak it maybe whiney but it nice to know show example code in the docs. I mean I am sure a lot of peopl can agree especially if they're starting out. Nov 12 05:39:46 its nice to show* Nov 12 05:39:57 Demon_Jester: The documentation sucks, for the most part. Nov 12 05:40:07 Yes, we need more examples. Way more. Nov 12 05:40:18 Tacticaljoke I am not sure if sarcasm tbh Nov 12 05:40:20 When I did C#/.NET, practically *everything* had an example. Nov 12 05:40:23 Not sarcasm. Nov 12 05:40:36 tacticaljoke I mostly go on stackoverflow see if I can find help that way. Nov 12 05:40:39 Examples are some of the best documentation. Nov 12 05:40:48 c# docs did which was very helpful for me. Nov 12 05:41:00 um well there is a difference between a javadoc and a page in the documentation about a topic Nov 12 05:41:19 for example a topic page http://developer.android.com/guide/components/fragments.html has tons of code samples and background info Nov 12 05:41:28 Demon_Jester: It's annoying and painful, but I guess it gets easier as you get more experienced with Android. But they should add documentation (especially examples). Nov 12 05:41:30 where the javadoc http://developer.android.com/reference/android/app/Fragment.html not so much Nov 12 05:41:56 and im not sure about other people but when i tell someone to go to the docs Nov 12 05:42:00 i dont just say go to the docs Nov 12 05:42:05 i do :D Nov 12 05:42:08 i will link you a specific page in the documentation and tell you exactly where to look Nov 12 05:42:43 so in developer.android I am looking at reference for code examples, not guides. Nov 12 05:42:59 Some of the guides (e.g., that Fragment one) aren't great. Nov 12 05:43:05 The Fragment one is overly complex. Nov 12 05:43:11 um not sure google is pretty good at getting you where you need to go Nov 12 05:43:17 if you know how to use it Nov 12 05:43:25 Also, the "reference" documentation should link to the "guide" documentation where it can. From what I've seen, it doesn't (or seldom does). Nov 12 05:47:06 JacobTabak hi man :) Nov 12 05:50:09 Demon_Jester if you are coming from c# .net yeah, their docs are pretty good Nov 12 05:50:47 i'm used to the good 'ol days, when you had an example for each method Nov 12 05:51:43 I am not that old to remember that I am only in college, and no I am not taking any programming classes, I like doing this as a hobby. Nov 12 05:52:44 i dont think the google enginers have enough incentive to create good reference material. i remember having to work with a technical writer to do this, because it got put in book form and shipped in a package with CDs. And even though we had a support group that could be called, if they couldn't answer phone calls came right to our desks. Nov 12 05:52:59 can anyone look at my listview problem plz? Nov 12 05:53:05 so unless you wanted to be answering questions on the phone all day, it was in your best intrest to have good docs Nov 12 05:53:13 fizz what is the listview problem Nov 12 05:53:13 http://pastebin.com/YCVANZEE Nov 12 05:53:23 http://pastebin.com/F5J1kPHg Nov 12 05:53:26 the second link Nov 12 05:53:31 is the json object im parsing Nov 12 05:53:54 the problem is my list will have the first question printed over 3 times which is the amount of questions i have Nov 12 05:54:01 :( so basically the question doesn't update Nov 12 05:54:26 just curious why is id 3 skipped? Nov 12 05:54:45 or you are adding the 1st 3 times cause you not ++ though Nov 12 05:54:47 it's associated with a different survey Nov 12 05:55:05 wouldn't i++ do that increment? Nov 12 05:55:18 i have it in for loop Nov 12 05:55:33 for (int i = 0; i < array.length ; i++) Nov 12 05:56:28 yeah so numQuestions = 3 but result ? Nov 12 05:56:34 yeah Nov 12 05:56:39 result is 3 questions too Nov 12 05:56:40 but Nov 12 05:56:45 but Nov 12 05:56:51 it's only the first question Nov 12 05:56:52 three times Nov 12 05:57:23 i mean where do you go though the data $result ? Nov 12 05:57:32 Fizz91: Debugger or Log.d(). Nov 12 05:57:59 Wait, this is multithreaded. Scratch "debugger". Nov 12 05:58:08 yeah Nov 12 05:58:09 fizz91 since you're using int in your for loop with if statements have you considered case/switch statement instead? Nov 12 05:58:13 Have you tried Log.d()? Nov 12 05:58:29 nope haven't tried log.d() Nov 12 05:58:39 Demon_Jester: Also, ListViewItem is basically multiple classes in one. Nov 12 05:58:41 and I go through the data by using the tags Nov 12 05:58:45 json tags Nov 12 05:58:48 Fizz91: Insert Log.d() statements. Nov 12 05:58:50 yeah Nov 12 05:58:50 Check LogCat. Nov 12 05:59:03 logcat says it's okay .. nothing wrong with it Nov 12 05:59:06 :( Nov 12 05:59:29 You're not Log.d()ing. Nov 12 06:00:21 "fuckingcustomadapter" lmao Nov 12 06:00:26 Just print the value of everything relevant. You'll find the defect. Nov 12 06:00:56 how can i print it out to the logs? Nov 12 06:01:00 the values i mean Nov 12 06:01:07 int i = 0; Nov 12 06:01:11 log.d( i); ? Nov 12 06:01:18 Log.d("Fizz91", String.valueOf(whatever)); Nov 12 06:01:29 Then create a filter for Fizz91 in LogCat (to make your life easier). Nov 12 06:01:58 Nice! ty Nov 12 06:03:14 the only thing I can think of is that questions[i] is inside if statement but not in the for loop... But then again I am still new to listview myself. Nov 12 06:03:52 like its not updating in the else if since its hitting if statement first.. idk Nov 12 06:03:54 i'll try it with a case statement and see if that makes any difference Nov 12 06:04:26 well if it's only hitting the first case over and over, it should've at least gave me a different question Nov 12 06:04:34 even though if it was with the same type Nov 12 06:04:38 that's what really blowing my mind Nov 12 06:04:58 Fizz91: int qType = result.getInt(TAG_TYPE); Nov 12 06:05:04 looks strange to me Nov 12 06:05:17 it's problably always the same type Nov 12 06:05:29 this may sound stupid (and probably is :P) instead of questions[i] maybe add questions[1] questions[2] etc... Nov 12 06:05:32 that's why it's 3 times the same value Nov 12 06:05:36 gordon_: Ya. Nov 12 06:05:46 hmmm Nov 12 06:06:07 http://pastebin.com/F5J1kPHg Nov 12 06:06:15 two of the three questions have the same type Nov 12 06:06:17 but one doesn't Nov 12 06:06:30 Fizz91 I think you are missing the point Nov 12 06:06:36 it's not showing me the other question that has the same type as the first question Nov 12 06:06:40 and i tried log.d Nov 12 06:06:52 it printed out the first question over three tiems Nov 12 06:06:53 times * Nov 12 06:06:57 As implied, "result.getInt(TAG_TYPE)" will surely return the same thing every time. Nov 12 06:07:05 oh Nov 12 06:07:06 Why would it vary? Nov 12 06:07:35 well cuz each question has its own type. rating question, multi choice question, and so forth Nov 12 06:07:41 You could've Log.d()ed that. :) Nov 12 06:07:43 Why not try it? Nov 12 06:07:49 Observe for yourself how it's the same value three times. Nov 12 06:08:03 yeah Nov 12 06:08:07 it's the same value three times Nov 12 06:08:10 you're correct TacticalJoke Nov 12 06:08:12 however Nov 12 06:08:14 I'm tired Nov 12 06:08:20 how can I change it to make it update? Nov 12 06:08:22 gordon_ go to sleep Nov 12 06:08:26 with each question Nov 12 06:08:46 StingRay_: I'm tired of people's 'not being able to read' thingy Nov 12 06:08:51 Fizz91 you need to learn about JSON objects and arrays Nov 12 06:09:10 Fizz91 I didn't have irc open this whole time but with the for loop you are wanting to have all 3 questions show up at the same time correct? Nov 12 06:09:15 gordon_ oh :) I'm physically tired and maybe a bit mentally now :) Nov 12 06:09:36 yeah Nov 12 06:09:54 has anyone here used Appium for testing? My gut feeling is that it's the cordova of testing and I hate the idea of it, if anyone has had a good experience please let me know. Nov 12 06:09:55 Fizz91 quite simply the loop and the object are not what you think they are and you dont know what they are doing Nov 12 06:09:56 Fizz91: 3 people are saying you what you need to fix Nov 12 06:09:56 Fizz91: Your code just looks wrong. Nov 12 06:10:00 Everything about it. Nov 12 06:10:23 JacobTabak nice reference :) Nov 12 06:10:36 lol what reference :O Nov 12 06:10:43 cordova Nov 12 06:10:50 well i mean i think thats exactly what it is Nov 12 06:10:57 i think appium was meant to test cordova apps Nov 12 06:10:58 JacobTabak: what are you looking for ? Nov 12 06:11:04 just opinions Nov 12 06:11:06 integration tests ? Nov 12 06:11:17 i'm actually looking for ammo to shoot this idea down Nov 12 06:11:18 I looked for options before Nov 12 06:11:26 espresso would be nice Nov 12 06:11:27 lol, yeah but still, ooooo oooo wait.... yeah Fizz91 your code just looks ... "cordova'd" Nov 12 06:11:28 yea integration/acceptance testing Nov 12 06:11:43 yes i use espresso Nov 12 06:12:00 I dont because of cool lib my company is using :D Nov 12 06:12:10 lol Nov 12 06:12:20 thanks guys anyway :D Nov 12 06:12:29 Fizz91: do you know what is wrong ? Nov 12 06:12:31 imma mess around with log.d and see where that lead me Nov 12 06:12:36 yeah Nov 12 06:12:40 ok Nov 12 06:12:42 good Nov 12 06:12:59 btw Nov 12 06:13:02 use gson Nov 12 06:13:09 create model Nov 12 06:13:39 and it will parse that whole great json array of yours into nice array list Nov 12 06:13:54 also Nov 12 06:13:55 @Override Nov 12 06:13:55 public int getViewTypeCount(){ Nov 12 06:13:55 return 3; Nov 12 06:14:10 reminds me of this Nov 12 06:14:12 http://xkcd.com/221/ Nov 12 06:14:31 lol Nov 12 06:14:48 gordon_ nothing all "that" wrong with it Nov 12 06:15:03 it's just for listView to ask the adapter once I think Nov 12 06:15:05 gordon I am assuming the joke was that dice are 6 not 4? Nov 12 06:15:34 no Nov 12 06:15:45 *joke goes over head* Nov 12 06:15:54 its referenced to debian's random generator bug Nov 12 06:15:58 some time ago Nov 12 06:16:59 http://www.explainxkcd.com/wiki/index.php/221:_Random_Number Nov 12 06:17:44 or maybe not :) Nov 12 06:22:03 oh good, the kotlin-android plugin supports product flavors Nov 12 06:24:41 why wouldnt it ? Nov 12 06:25:23 because it didn't until a few days ago :) Nov 12 06:26:19 so someone is working on it Nov 12 06:26:22 that's good Nov 12 06:26:40 did you notice code completion to be slow with kotlin / Nov 12 06:30:10 still in the research phase Nov 12 06:30:23 not like i know the language yet :D Nov 12 06:30:37 can it complete my project ? XD Nov 12 06:33:04 * g00s_ is looking for low hanging fruit / quick design wins Nov 12 06:34:33 ugh, I want to use sectionindexer with a cursor adapter, but I don't want to iterate the cursor in order to populate the sections šŸ˜¢ Nov 12 06:38:12 hmm, alphabet indexer works with a cursor, I guess I should look at how they do it to see if there is an optimization Nov 12 06:56:46 hat u cursor Nov 12 06:57:50 http://dilbert.com/strips/comic/2001-10-25/ Nov 12 07:01:23 hg su Nov 12 07:01:24 Oops. Nov 12 07:02:03 Wrong colour for the command line. ;| Nov 12 07:45:30 sigh mediaplayer Nov 12 07:45:35 y u so hard to work with Nov 12 07:46:13 never played with it Nov 12 07:47:30 * g00s_ never will \o/ Nov 12 07:47:52 it crashes if you do something in the wrong state Nov 12 07:48:01 the errors just say "can't do that in state 8" Nov 12 07:48:10 there's no mapping of ints to actual human readable states Nov 12 07:48:19 and you can't query the state, you have to keep track of it in your client code Nov 12 07:48:42 O.o sounds terribad Nov 12 07:48:57 and its all native code Nov 12 07:49:04 so you cant easily look at the src or figure otu whats going on Nov 12 07:54:59 deep inside I'm hoping that jetbrains will do great integration with jni Nov 12 07:55:00 in intellij Nov 12 07:55:20 when I just need to sync 28gb of android sources Nov 12 07:55:25 and put it into path ;) Nov 12 07:59:15 Which one is better for app with navigation drawer (DrawerLayout), using multiple activities (each has DrawerLayout) or fragments (replacing fragments within one activity)? Nov 12 07:59:38 fragments Nov 12 07:59:45 you can't animate a drawer close if you're launchign a new activity Nov 12 08:00:47 It doesnt really matter Nov 12 08:00:52 choose what you prefer Nov 12 08:01:05 there are great apps that dont use a fragment at all Nov 12 08:01:11 but how do you handle complicated flow? I mean if I use activities, I can start an activity and the back stack built (e.g. from notification) Nov 12 08:01:21 danijoo that's clearly incorrect for the reason i just said Nov 12 08:01:41 he didn't ask whether he should use fragments or views, he asked if he should use fragments or activities Nov 12 08:01:57 JacobTabak: I know what he asked Nov 12 08:01:58 I used Fragments for the first time recently. I kinda like 'em. :) Nov 12 08:02:22 But I wouldnt call lack of drawer close animation a K.O-criteria ;) Nov 12 08:02:25 I guess I'll despise them one day, but that day is not today, it seems. Nov 12 08:02:46 i would Nov 12 08:03:01 i found nav drawer to be pita; my implementations were all gross (started from the templates) Nov 12 08:03:10 and since lollipop your argument isnt even valid anymore Nov 12 08:03:31 explain please Nov 12 08:04:17 karex you shouldn't use a back stack with a navigation drawer Nov 12 08:04:23 JacobTabak: for example, I have screen A, B, and C. C's parent is B, B's parent is A Nov 12 08:04:29 each view should be considered top level in the navigation drawer Nov 12 08:04:55 karex: you can have backstack with fragments too Nov 12 08:05:00 JacobTabak: when I launch C from notification, it should build A|B|C backstack (based on the guide) Nov 12 08:05:33 that's not correct Nov 12 08:05:49 unless you got to C through A and B first (which you probably didn't, if you opened it from a notification) Nov 12 08:06:10 if you open C from a notification, and hit back, it shoudl close C and take you to where you were before you opened the notification Nov 12 08:06:22 JacobTabak: you clearly didnt read googles design guidelines, did you? :) Nov 12 08:06:55 clearly not Nov 12 08:06:58 JacobTabak: the design guidelines said that Nov 12 08:07:01 link me Nov 12 08:07:54 they say if my activity workflow is A-B-C and the user enters C from outside, back should lead to B and then to A Nov 12 08:08:00 thats not a link Nov 12 08:08:08 one se Nov 12 08:08:09 c Nov 12 08:08:15 my google foo's not that great Nov 12 08:08:39 I think it's "providing up navigation". Nov 12 08:09:18 there you go http://developer.android.com/design/patterns/navigation.html Nov 12 08:09:37 especially that part: http://developer.android.com/design/patterns/navigation.html#into-your-app Nov 12 08:10:04 Maybe one party is talking about "up" while the other is talking about "back". Nov 12 08:10:06 danijoo: thanks for the link, I was searching in my browser history and did not find it :D Nov 12 08:10:28 TacticalJoke: the convention is the same for both since android 4 Nov 12 08:10:39 TacticalJoke: "up" is one form of "back" Nov 12 08:10:53 danijoo: Isn't it the case that, if C is launched from the outside, back should take us out of our app while up should take us to B? Nov 12 08:10:54 the only difference is that up shouldnt close your app one you are at Activity A Nov 12 08:11:10 was it always like this Nov 12 08:11:11 :O Nov 12 08:11:22 JacobTabak: no it changed with android 4.0 release Nov 12 08:11:27 or was it 3.x? Nov 12 08:11:29 not sure Nov 12 08:11:42 thank you for the link and pointing this out Nov 12 08:11:59 TacticalJoke: No they should both take us back to B, but once we are at A, up should do nothing while back should close Nov 12 08:12:33 And when it comes to nagivation drawer, its just the same but up is replaced with drawer open. Nov 12 08:12:40 "The system Back button is used to navigate, in reverse chronological order, through the history of screens the user has recently worked with. It is generally based on the temporal relationships between screens, rather than the app's hierarchy." Nov 12 08:12:55 Isn't that saying otherwise? Nov 12 08:13:45 TacticalJoke: yes but this is for inside of apps Nov 12 08:13:45 That's when navigating between apps Nov 12 08:13:55 Not from app widgets or notifications Nov 12 08:13:59 everytime when you are IN an app, back should work like that Nov 12 08:14:16 but if you enter an app from somewhere, you should always create a proper backstack for inside the app Nov 12 08:14:38 It all depends on how you've reached a screen Nov 12 08:14:41 what if you already had a back stack Nov 12 08:14:46 how do you tell Nov 12 08:14:51 whether you need to fill it in or not Nov 12 08:14:55 JacobTabak: design ;) Nov 12 08:14:56 ugh this is the bad part about a back button :P Nov 12 08:15:17 and the same is for navigation drawer crosslinks. If Activity A has 3 subactivities B1,B2,B3 and each is reachable from navigation drawer, all should lead to A on back press Nov 12 08:15:25 even if I did A -> B1 -> B2 Nov 12 08:26:02 ok i'm not in a position to disagree with you Nov 12 08:26:06 based on my previous error Nov 12 08:26:11 but I don't think that's right Nov 12 08:26:25 JacobTabak: want another link? :p Nov 12 08:26:51 this time i know what documentation you're referring to Nov 12 08:27:18 eh maybe Nov 12 08:27:29 https://developer.android.com/design/patterns/navigation-drawer.html Nov 12 08:27:36 "System Back after cross navigation to lower hierarchy levels" Nov 12 08:28:18 ok yeah so the catch is if theyr'e subactivities Nov 12 08:28:23 but if you have a drawer with 4 top level activities Nov 12 08:28:27 then that's not thec ase Nov 12 08:28:27 yeah sure Nov 12 08:28:48 and even if its subactivities you might dont want that from time to time. Nov 12 08:29:02 i had to change that once because users were complaining Nov 12 08:29:09 I don't understand android:parentActivityName. This article suggests that you have to set it *and* call NavUtils.navigateUpFromSameTask: . But in my testing it's sufficent to set android:parentActivityName; there's no need for the method call. Nov 12 08:29:22 ugh i have this annoying issue in AS Nov 12 08:29:28 when i click on a link in the stack trace it takes me to Nov 12 08:29:40 http://cl.ly/image/1b2u242e1N0t Nov 12 08:29:46 TacticalJoke: its support problem Nov 12 08:29:48 And why would <16 users need to set android:parentActivityName at all? They're already doing the support thing. Nov 12 08:30:10 i think its bc of my java module depending on my android module Nov 12 08:30:11 new roms will use parentActivityName and old api versions need the romutils Nov 12 08:30:51 But in my testing, new versions of Android *do* call NavUtils.navigateUpFromSameTask. Nov 12 08:30:55 Even though they don't need to. Nov 12 08:31:12 TacticalJoke: not sure but i think its then handled internally? Nov 12 08:31:16 It seems to me that if minSdk is 16 then we don't need any code; if it's < 16 then we don't need "parentActivityName". Nov 12 08:31:21 maybe navUtils check version and do some foo Nov 12 08:31:27 Maybe. I'll look. :) Nov 12 08:31:29 so you dont have to fiddle that out Nov 12 08:31:30 no idea.. Nov 12 08:38:18 man Nov 12 08:38:23 as it gets later in the week Nov 12 08:38:32 the lack of sleep really catches up Nov 12 08:38:39 sigh, life is hard Nov 12 08:42:08 life is what you make it Nov 12 08:42:41 nah its like a box of chocolates Nov 12 08:44:01 Hi everyone :) I have a simply question I want to predict if device have a brightness sensor, that it will be enough :)? Nov 12 08:44:18 ravilov tell that to the haitians eating mud cookies Nov 12 08:44:19 if (PM.hasSystemFeature(PackageManager.FEATURE_SENSOR_LIGHT) && mySensorManager != null && LightSensor != null) Nov 12 08:44:43 PackageManager PM= this.getPackageManager(); Nov 12 08:44:45 SensorManager mySensorManager = (SensorManager)mContext.getSystemService(SENSOR_SERVICE); Nov 12 08:44:46 Sensor LightSensor = mySensorManager.getDefaultSensor(Sensor.TYPE_LIGHT); Nov 12 08:44:54 stop barnie_ Nov 12 08:45:05 g00s_, will do Nov 12 08:45:08 barnie_, spamming much? Nov 12 08:48:34 ok sry for that... Nov 12 08:50:41 off with his head ! Nov 12 08:51:08 dance til ur dead Nov 12 08:51:29 anyway yes, that looks like it should be enough Nov 12 08:52:55 g00s_, this? https://www.youtube.com/watch?v=AjXkJvCNekE Nov 12 08:54:10 wut was that O.o Nov 12 08:54:54 wow, you've never seen it before? Nov 12 08:55:25 * capella afraid to look Nov 12 08:55:51 lol i just called my class viewHolster Nov 12 08:56:01 by mistake :) Nov 12 08:56:07 BAM! Punch it up a little Nov 12 08:56:10 Dont change it back! :D Nov 12 08:56:20 http://i.giphy.com/Xs2OF7XaYVoM8.gif Nov 12 08:56:40 I'm going to take credit for that by posting that video :p Nov 12 08:56:45 so what's a good name for a audio/video player app ? Nov 12 08:56:49 I'm not sure exactly how or why but still :p Nov 12 08:56:57 "Audio Player" Nov 12 08:57:03 shmooz, yaavp Nov 12 08:57:05 mediaThingy ! Nov 12 08:57:18 ThatPlayer Nov 12 08:57:31 Google PlayER Nov 12 08:57:37 see how long it lasts :) Nov 12 08:57:41 :D Nov 12 08:57:46 just as I thought, 0 imagination Nov 12 08:57:51 XD Nov 12 08:58:11 shmooz, making yet another audio/video player is just as imaginative as these suggestions ;) Nov 12 08:58:28 we need one Nov 12 08:58:34 yet another one Nov 12 08:58:50 a player for you, a player for you, and you , and a player for you ... Nov 12 08:59:09 right, so it gets to bear a crappy name because of that Nov 12 08:59:21 I plan to bring HBO and Netflix and Plex to their knees Nov 12 08:59:45 * ravilov had no idea shmooz has plans to build a media empire Nov 12 09:00:08 in that case, yes, we totally need another player, none of the existing ones are likely to be *that* cool Nov 12 09:00:24 I was inspired by xbmc Nov 12 09:00:45 but xbmc on android is not android like Nov 12 09:01:21 question, are you desperate to make an android app? just any app? :p Nov 12 09:01:43 no, I have chosen to make this one Nov 12 09:01:52 ok then Nov 12 09:03:58 ok I got a name, but if I told you I'd have to kill you Nov 12 09:04:22 damn this sucks, I'm dying to tell someone Nov 12 09:05:25 I see where this is going Nov 12 09:05:34 beg me Nov 12 09:05:49 create a hype first, execution might or might not follow later Nov 12 09:06:03 ok well the name is PlayM8 Nov 12 09:06:15 cool, now kill me as promised Nov 12 09:06:15 like PlayMate but PlayM8 get it ? Nov 12 09:06:46 but there's a line of kid's toys with that name in europe Nov 12 09:08:04 hm, is PlayMate a PlayBoy tm ? Nov 12 09:08:12 doubt it Nov 12 09:08:12 try it, see how long it lasts Nov 12 09:08:29 the word was around before playboy Nov 12 09:08:42 lies Nov 12 09:08:56 not worried about playboy suing, worried about the kids toys with the name PlayM8 Nov 12 09:10:31 Pl4yM8 :D Nov 12 09:10:57 * ravilov very much dislikes joint audio + video players and prefers to keep two separate apps for those Nov 12 09:11:03 just my ļæ 2 Nov 12 09:11:43 ravilov: it's very little work to add audio Nov 12 09:11:53 doesn't matter Nov 12 09:12:32 I was thinking of adding photo browsing as well Nov 12 09:12:42 with slideshow and effects Nov 12 09:12:47 ..yeah that's just making it worse Nov 12 09:13:12 covering all media Nov 12 09:13:13 if I start a player to play music I want none of my videos to find their way in, and vice versa Nov 12 09:13:35 shmooz: and explosions Nov 12 09:13:45 ravilov: they don't mix, you select like VLC at the top right what you want Nov 12 09:13:49 yeah I just hate the all-in-one solutions Nov 12 09:13:55 me too Nov 12 09:14:00 to be honest Nov 12 09:14:03 it's not all in one yet Nov 12 09:14:10 wait till I add IRC chat to it Nov 12 09:14:29 I think you should add floppy bird Nov 12 09:14:36 a translucent chat app that can go on top your video Nov 12 09:14:36 I predict you'll have ~5 downloads, all of them rating your app with 1-2 stars Nov 12 09:14:46 if you play music 3 times and video 2 times Nov 12 09:14:54 then flappy bird will launch Nov 12 09:15:03 ravilov is reading nate silver; good prediction :) Nov 12 09:15:13 considering that describes 99% of the store :D Nov 12 09:15:21 lol Nov 12 09:15:49 is there up-to-date source of 'music' app for android ? Nov 12 09:15:57 I downloaded one it was out of date Nov 12 09:15:57 yes, google has it Nov 12 09:16:02 second one didnt compile Nov 12 09:16:14 it is not open-source anymore I believe Nov 12 09:16:24 ok... Nov 12 09:16:53 so I need to get my own and make it *super* material Nov 12 09:17:03 put paid and ad version Nov 12 09:17:06 and become rich Nov 12 09:17:35 pretty sure most people are happy with google's closed-source player Nov 12 09:18:09 never used it Nov 12 09:18:20 me neither Nov 12 09:18:28 who is google Nov 12 09:18:28 this will be good Nov 12 09:18:50 dont push google apps Nov 12 09:18:52 trolls these days Nov 12 09:19:08 google is the company that used to make software such as android, later they switched to making hype and vaporware Nov 12 09:19:23 JacobTabak: I was being serious about material design music player :( Nov 12 09:20:11 ravilov, lol Nov 12 09:20:16 i use the google io music player Nov 12 09:20:28 cool Nov 12 09:20:30 so? Nov 12 09:21:23 I use winamp and TuneIn Nov 12 09:21:50 I use my imagination Nov 12 09:24:12 I hum Nov 12 09:28:51 facebook made it's own on screen notifications... Nov 12 09:31:34 the crowd goes silent Nov 12 09:37:03 JacobTabak: what is the conclusion? I was disconnected. Nov 12 09:37:10 wat Nov 12 09:37:17 about back stack? Nov 12 09:37:26 JacobTabak: about fragment vs activity Nov 12 09:37:29 JacobTabak: yes Nov 12 09:37:45 well in my mind Nov 12 09:37:50 the deciding factor is the drawer close animation Nov 12 09:37:59 so, fragments Nov 12 09:38:06 Oh I see Nov 12 09:39:00 those side drawers are going out of style Nov 12 09:39:06 lol man Nov 12 09:39:19 inbox has one so Nov 12 09:39:21 btw, can I build fragment backstack like TaskStackBuilder does? Nov 12 09:39:22 ! Nov 12 09:39:22 hi, is there a way in android studio to import images for all resolutions like it can be done with icons? Nov 12 09:39:23 just like the hamburger Nov 12 09:40:08 the navigation drawer is not ergonomic Nov 12 09:40:40 shmooz: even I am confused with the backstack in Google Play Store :D Nov 12 09:40:58 most people hold their device with their right hand and have to use their thumb, reach all the way to the left side and pull the drawer which stays on the left side of the screen Nov 12 09:41:56 spots: is there any difference between images and icons? Nov 12 09:42:15 spots: I think they are the same -> bitmap images Nov 12 09:42:29 icons are small usually square images like usually 48x48 Nov 12 09:44:38 yes, icons only show the sillouette Nov 12 09:46:52 i'm talking about the image asset dialog btw Nov 12 09:57:40 * ravilov still has trouble figuring out why was that icon dubbed "hamburger" Nov 12 09:57:52 do u at least understand why you're dubbed ravioli Nov 12 09:58:07 What is the material design icon for "save"? Nov 12 09:58:22 http://google.github.io/material-design-icons/ Nov 12 09:58:26 in eclipse where do you put png resources? Nov 12 09:58:34 https://github.com/google/material-design-icons/tags Nov 12 09:58:58 JacobTabak: ah there it is, I was starting to think there wasn't one Nov 12 09:59:03 ta Nov 12 09:59:25 android hamburger: http://everythingburger.files.wordpress.com/2013/11/android.jpg Nov 12 09:59:33 good to know we've worked ourselves into such a corner that it's still a floppy disk Nov 12 09:59:45 ChrisUK, that would depend what are they for Nov 12 10:00:09 what is bigger code smell Nov 12 10:00:31 ravilov: for a listview Nov 12 10:00:44 ChrisUK, that says nothing Nov 12 10:00:51 (I need to do some operation each time when activty stops - every activity in my app extends BaseActivity class) Nov 12 10:00:52 how do you plan to use it? through R.drawable.*? Nov 12 10:01:26 I cant use R Nov 12 10:01:38 have to load explicitly Nov 12 10:01:38 then that is my question Nov 12 10:01:45 then assets/ Nov 12 10:01:45 gordon whats your min API Nov 12 10:01:59 now the problem is, what is bigger code smell when I want to avoid only one child activity -> set protected variable in BaseActivity to false or override always invoked method to be empty ? Nov 12 10:02:05 JacobTabak: 89 Nov 12 10:02:09 JacobTabak: 8 Nov 12 10:02:19 gordon_, @Override Nov 12 10:02:21 is better Nov 12 10:02:30 also, you must be really advanced if you're at 89 already :p Nov 12 10:02:36 :D Nov 12 10:02:51 ravilov: both are code smells Nov 12 10:02:57 dont know which one smells more Nov 12 10:02:58 @Override smells less Nov 12 10:03:12 altering a base class to handle a specific case is always worse Nov 12 10:03:15 what is the purpose of the assets folder? Nov 12 10:03:20 why not just put them in resources Nov 12 10:03:23 ravilov: thanks Nov 12 10:03:23 ChrisUK, um, to hold assets? Nov 12 10:03:43 they are not added to R.java? Nov 12 10:03:45 how can i use android builtin emoji keyboard like sms application? Nov 12 10:03:48 they are just accessed by their file name? Nov 12 10:03:59 ChrisUK, still a beginner, eh? I suggest you read up on resources and how they are to be used, and also on assets Nov 12 10:04:10 ok I will thanks Nov 12 10:04:11 ravilov why are you such a dick Nov 12 10:04:13 :O Nov 12 10:04:18 assets are accessed through AssetManager Nov 12 10:04:23 JacobTabak, why are you so worried about me? Nov 12 10:05:01 Are you allowed to use crashlytics without the report dialog if you publish it on google play? Nov 12 10:05:02 the assets get smushed into the apk and are accessed like files, but they're not actually files Nov 12 10:05:50 when does a nested Fragment know it's "attached" to a parent fragment? is there a callback or a fragment listener I can hook into? Nov 12 10:06:31 how can i use builtin emoji Nov 12 10:07:43 snowpong, http://developer.android.com/reference/android/app/Fragment.html#onAttach%28android.app.Activity%29 Nov 12 10:07:51 is d.android.com really so hard to use? Nov 12 10:08:05 Hi is there any performance difference if I clear a boolean value in SharedPrefs and get a default value when retrieved or set my def value in the prefs? Nov 12 10:08:49 do whatever makes more sense in your case Nov 12 10:09:12 hmm, do is still have to resize assets by hand? Nov 12 10:09:15 byt89 no difference Nov 12 10:09:27 ok ty JacobTabak Nov 12 10:09:30 ravilov: note this was for a nested fragment, not a fragment in activity, but I guess a nested fragment won't be attached before it's parent anyways Nov 12 10:09:51 that callback seems to be the only thing available Nov 12 10:10:07 spots, you never *had* to Nov 12 10:10:28 in fact they say if all you do is just shrink them, don't bother Nov 12 10:10:52 then i only supply the xxhdpi version? Nov 12 10:10:54 since the system can easily do the same thing at runtime Nov 12 10:11:05 how can i enable builtin emoji keyboard in my app Nov 12 10:11:41 i guess imageview does not support vectors Nov 12 10:11:56 farhad2161: Please wait an appropriate time between asking your question (15-30 minutes) Nov 12 10:12:13 And that's handled by the keyboard. Just set an appropriate inputType Nov 12 10:12:32 An sms app would probably use textShortMessage. Nov 12 10:15:48 Hi there. One quick question following by quick answer :) I implemented setDisplayHomeAsUpEnabled(true) in my activity. Now when I press home button I'd like to go to the previousActivity->previousFragment and not to previousActivity->firstFragment. Any ideas? Nov 12 10:15:57 SimonVT, sorry Nov 12 10:15:58 As you might guess I use mainActivity -> multiple fragments, inside those fragments I use new activities if user taps something in action bar Nov 12 10:16:03 ravilov: when I was looking for answers, saw this: http://sourcemaking.com/refactoring/bad-smells-in-code Nov 12 10:16:07 worth checking Nov 12 10:17:59 does a surface get destroyed every time it goes off screen? Nov 12 10:20:17 gordon_, interesting Nov 12 10:32:27 hello Nov 12 10:32:35 my nexus 5 is not available in the launch device chooser. I can see it in ddms and logcat. using eclipse on osx .10 Nov 12 10:35:03 debugging on? Nov 12 10:35:27 it just appeared all by itself Nov 12 10:36:16 is the debugging on? Nov 12 10:37:22 sure Nov 12 10:37:38 seems to be working now Nov 12 10:40:01 looks like it only appears in the chooser if I reconnect the cable while the chooser is open Nov 12 10:41:09 Yeah familiar occurrence on Macs it seems Nov 12 10:52:58 it's called "amazing" Nov 12 11:13:01 looks like you can resize a column in the device grid and the device appears Nov 12 11:13:44 http://stackoverflow.com/questions/26416532/just-upgraded-my-os-x-to-yosemite-android-device-chooser-not-showing-device-w Nov 12 11:17:58 It's possible to use setTextIsSelectable on TextView into ListView ? Nov 12 11:18:01 http://stackoverflow.com/questions/26863784/android-selectable-textview-expandablelistview-and-relativelayout-bug Nov 12 11:19:19 <_flip> wow, thanks for that, Thorn - will give that a try next time Nov 12 11:28:29 Is there a way to tell gradle to build only the aligned debug version of the app when executing from the command line? Nov 12 11:29:44 I'm putting a version up for testers and I just want one apk generated. Nov 12 12:00:18 <_flip> Can someone help me with a RecyclerView adapter? I'm basically following https://developer.android.com/training/material/lists-cards.html but can't get it to work. Nov 12 12:02:15 Just ask your question and see if you get an answer Nov 12 12:04:43 <_flip> i just thought of something to try, one sec :p Nov 12 12:07:42 <_flip> SimonVT, thank you for your invaluable input -it works now Nov 12 12:08:13 lol Nov 12 12:11:09 what is good/acceptable pattern for adding items to a listview "in place"? i need to allow users to add items to the lsit and see it growing. option 1: a field above/below the list with an add button? option 2: open a dialog with the fields? option 3: ? Nov 12 12:11:17 About to answer... but you got it Nov 12 12:11:56 thinking of how i can achieve this layout with listView Nov 12 12:22:36 how to check if brightness sensor is exist on device :)? Nov 12 12:24:13 barnie_, what is the point in asking this again after you already got your answer hours ago? Nov 12 12:24:50 ravilov: maybe he's not okay with the answer Nov 12 12:25:08 that is hardly the channel's problem Nov 12 12:25:21 Let him ask.. maybe someone will give a different answer Nov 12 12:26:25 i think google is the best when it come to short question like this... Nov 12 12:26:51 that is dumb, it was a yes/no question, what other answer could there be? Nov 12 12:37:11 Is it possible to cause Wear default card style notifications to activate full screen with their background image without requiring a tap? Nov 12 12:40:25 ravilov, this must be YES or No question, im right? Nov 12 12:44:27 zaal: do you mean when the notification is pushed to the watch? Nov 12 12:45:32 Yeah, so for example receiving a call seems to launch an activity on the watch and wake it up. But regular notifications only seem to support the card at the bottom of the screen. What i'd like to know is if it's possible to make the default card style notification essentially wake the watch up when it's pushed from the phone. Nov 12 12:46:02 I've been fiddling with WearableExtender with little success, but thought I'd ask Nov 12 12:47:30 Hello friends... just have a little challenge.. i'm trying to set background color to a particular textView in a gridview, so i decided to set the background color from the adapter#getView(). now the problem is... the adapter only set two color type instead of making use of all the color.. here is the code... http://pastebin.com/u1NJ2nTK Nov 12 12:48:06 The color are store inside a String[] Array Nov 12 12:49:23 Line 87 http://pastebin.com/u1NJ2nTK Nov 12 12:55:15 setBackgroundColor takes a color, not a color resource id Nov 12 12:55:37 Resources#getColor first Nov 12 12:56:35 SimonVT: this is how i assign it --> holder.txtCourseCode.setBackgroundColor(colorCode[position]); Nov 12 12:56:53 I can see that Nov 12 12:57:40 alright, let me trying your suggestion.. Nov 12 12:58:07 R.color.something is a resource id, not the actual color Nov 12 12:58:40 SimonVT: but what i thinking here is that the getView#position is recycling... Nov 12 12:58:45 okay Nov 12 13:09:55 SimonVT: recieving error after declaring this --> holder.txtCourseCode.setBackgroundColor(mResource.getColor(colorCode[position])); Nov 12 13:10:30 where colorCode[position] = R.id.dark_blue Nov 12 13:14:02 Mkay? Nov 12 13:14:07 Cool story Nov 12 13:14:46 There are ways to find out what the error is Nov 12 13:15:10 hi Nov 12 13:16:17 logcat is not showing any error regarding that... so right now, i'm restarting the system! Nov 12 13:16:29 sorry, IDE Nov 12 13:16:43 does android provide information on sunrise and sunset? to switch automatically between day/night style of my app Nov 12 13:20:25 it shouldn't be hard to get by hand Nov 12 13:25:11 Everytime I export to android app with eclipse always crash without error message, anyone knows what is wrong? Nov 12 13:26:33 how "ready" is android studio? every once in a while i read it's still 'beta' or 'buggy'. we're currently thinking of switching.. Nov 12 13:26:47 hi guys, im struggling with finding the samsung emulators on their website, anyone has a direct link? Nov 12 13:27:55 i sort of understand what stackFromBottom attribute does, it stacks the listview at the bottom but then when I go through transcriptMode="alwaysScroll" I read that it scrolls to the bottom. Although my list gets scrolled to bottom with just stackFromBottom - is thate xpected behaviour ? Nov 12 13:35:17 Finally I got answer, disable Build Automatically :) Nov 12 13:37:21 how do you upgrade the gradle wrapper for a project? Nov 12 13:40:49 joshkovach: Type "gradle wrapper" Nov 12 13:42:07 it's so simple! Thanks! Nov 12 13:43:38 pangelovski: There are no samsung emulators, just skins and pre-configured resolutions/screen sizes for the android emulator Nov 12 13:43:48 SimonVT: thanks Nov 12 13:43:52 im trying to find the skins Nov 12 13:44:33 SimonVT: thanks... it finally work.... Nov 12 13:44:36 Thanks... Nov 12 13:44:41 I am currently using the Nexus 5 skins. I am using Android Studio and click the the green play button but for some reason my test app is not deployed. Nov 12 13:44:42 It's absolutely pointless to skin the emulator window Nov 12 13:45:02 It does not change how Android looks/works on it Nov 12 13:45:16 but now, i need to set a radius from the adapter#getView Nov 12 13:48:19 Hi! I have an app which calls a camera intent to pick a photo. On devices with less memory it happens, that my activity is destroyed when calling the camera intent and created on return. The problem is, that the app has a connected socket which is closed if the activity is destroyed. What is the best way to hold the socket connection? Nov 12 13:48:20 anyone here familiar with New Relic? Nov 12 13:52:33 hi.. i would like to know if there is a docmentation about best practices with sqlite ? Nov 12 13:53:04 i don't know if creating a class per model is a good idea with android developpement Nov 12 13:53:14 or just using cursors.. Nov 12 13:54:34 i am so unable to get rid of the extra spacing onthe top and bottom of each listview item, any idea what can be done? Nov 12 13:57:45 nvm Nov 12 13:59:06 Does anyone know how to make it so your screen unlocks when pushing a build from Android Studio to the device without having always awake on because I'm using WiFi for connecting to my device. Nov 12 14:03:16 hi gyus, how to i include a module to a aar file, eg i have my main module "app" and a new module called "someAdLib" if a build the aar via 'gradlew aR' it only has a debency to "someAdLib" but not the module itself Nov 12 14:11:37 sorry, my client disconnected. Was there any answer to my socket question? Nov 12 14:14:25 hello everyone! Nov 12 14:15:42 I've got a .so library compiled with Linaro linux cross-compiler. Can I use it inside my Android application? Nov 12 14:19:23 * Muchoz is gonna give IntelliJ 14 a try compared to AS. Nov 12 14:19:47 Free ultimate edition because I'm a student anyway :D Nov 12 14:28:56 This 'customize IDEA' when starting it for the first time is awesome Nov 12 14:32:09 Is this the correct place to ask for some advice/help? Nov 12 14:33:23 Hello friends... please how can i achieve the layout -->https://github.com/gabrielemariotti/cardslib/blob/master/demo/images/demo/native/native_recyclerView.png Nov 12 14:34:42 kot09, yes. Just ask your question and in time people will respond, that's how IRC works. Nov 12 14:35:15 hi gyus, how to i include a module to a aar file, eg i have my main module "app" and a new module called "someAdLib" if a build the aar via 'gradlew aR' it only has a debency to "someAdLib" but not the module itself Nov 12 14:35:16 hackable, you're linking us to a repo that is used for that. Nov 12 14:35:26 You can probably figure it out yourself. Nov 12 14:36:23 somaweb, why not add the module to the gradle dependencies, Nov 12 14:36:43 is there a way to keep the local service running while the activity is destroyed and later created? Nov 12 14:36:47 Muchoz: thanks.. i've been trying to see how they come up with it.. but i'm not getting how they work with the layout... Nov 12 14:36:56 i want to use custom later.... Nov 12 14:37:22 hackable, you're even linking us to a demo. There should be a layout file in there too. Nov 12 14:38:04 i've been trying to study to manual.. but understand how to use the custom layout.. https://github.com/gabrielemariotti/cardslib/blob/master/doc/CARDRECYCLERVIEW.md Nov 12 14:38:29 i'm thinking if there someone who can just put a little light on the information/manual Nov 12 14:41:15 hackable, I'm sorry but that tutorial is quite clear. If you don't understand it, then you should start with something simpler. Nov 12 14:43:18 Muchoz I have done that Nov 12 14:43:24 compile project(':advertiser') Nov 12 14:43:35 but it is only as depency in the aar file Nov 12 14:44:07 somaweb, don't ask me. I'm not very experienced with Gradle. Nov 12 14:44:40 * Muchoz is not gonna use IntelliJ. Nov 12 14:44:53 Muchoz, can we chat privately... Nov 12 14:45:01 hackable, no I'm sorry. Nov 12 14:45:25 the problem is not the code... its the layouts... using custom Nov 12 14:47:18 I have older app and created with Eclipse. If exported it to Android Studio then get so many errors, anyone has solution for this problem? Nov 12 14:47:40 InteliiJ fucked me right in the bum Nov 12 14:48:50 Fuck Nov 12 14:48:54 I hate you Jetbrains Nov 12 14:49:55 why! i love it Nov 12 14:51:54 Muchoz, can we get something done Nov 12 14:52:29 hackable, I said no I don't have the time. Nov 12 14:52:39 And I'm in a bad mood. Nov 12 14:52:54 WoW, Bad mood!.. Nov 12 14:53:04 Hi. Does anybody know how I can get a Thread that's running in the background from an earlier app session? Nov 12 14:53:07 guess what? i've good mood here... wanna buy Nov 12 14:54:30 ahh, serializable. what were they thinking... Nov 12 15:09:10 Does anyone know how an app like Hangouts pushes a full screen notification on Wear, whereas other notifications only appear when tapped? Nov 12 15:12:58 wtf android studio. 'Gradle plugin 0.14.0 requires gradle 2.1 or higher' 'downgrading from 2.2 to 2.1' Nov 12 15:13:01 maths Nov 12 15:19:18 I get error : Error:Frame pixels must be either solid or transparent (not intermediate alphas). - Found at pixel #14 along left edge. Nov 12 15:19:44 Anyknow know what is wrong? Nov 12 15:41:38 Hi all Nov 12 15:42:39 Is it possible to create something like this: users can pay for something in app. But the next day, I want to give the credits back to the user, so that ge got his money back Nov 12 15:45:38 FrancescoV, amazon has this kind of API but is restricted to certain countries Nov 12 15:46:02 they are not related to amazon ecommerce Nov 12 15:46:55 blues-man: thanks for your advice, can you keep all the credits or do they keep some % of it? Nov 12 15:47:31 any payment processor is likely to keep a percentage, plus doing refunds on credit cards is problematic. Do too many and you're going to piss off your processor and get dropped. Nov 12 15:47:47 Not quite sure what you're trying to accomplish there, but I don't think it's going to go well Nov 12 15:48:23 yeah, was thinking the same thing but wasn't sure about it Nov 12 15:48:54 FrancescoV, https://payments.amazon.com/help/81874 Nov 12 15:49:27 blues-man: thanks, will check it out Nov 12 16:14:00 uh, alright now i'm making an IRC app, 1) what the home screen should look like? 2) How the navigation between servers/channels should be? Nov 12 16:14:20 is it good if i used nav bar for both servers/channels? Nov 12 16:14:37 uh, you're the one making it, you decide Nov 12 16:15:09 hmmm Nov 12 16:15:14 alright then. Nov 12 16:15:52 why write yet another irc app? Nov 12 16:16:34 because none are good? Nov 12 16:17:07 none? Nov 12 16:17:10 heh, have fun Nov 12 16:17:12 i personally want a one and none are good, experiencing errors every now and then Nov 12 16:20:05 then contribute to the one that's closest to what you want and fix them Nov 12 16:20:35 man, inbox on android kinda sucks, it never pops notifications in any timely manner Nov 12 16:21:50 oh, have to enable notifications for each label... Nov 12 16:26:48 wow Nov 12 16:26:54 the new google play is awesome Nov 12 16:26:57 it's material Nov 12 16:29:08 so if my app is using serializable for packaging objects in intents, I should change that before I start changing my models, right? Nov 12 16:30:28 joshkovach you should use parcelable; it's faster Nov 12 16:30:34 http://www.parcelabler.com/ Nov 12 16:30:42 ^ a cool tool to generate the code for you Nov 12 16:30:57 lol Nov 12 16:31:27 do you mean the UID in serializable? Nov 12 16:31:28 I also have found the library Parcler https://github.com/johncarl81/parceler which I've had success with in the past Nov 12 16:34:19 ooh, chainsdd has a DateIndexer implementation I can steal Nov 12 16:36:19 dammit, in the new material apps, the navigation bar indicator icon turns to back when nav bar is opened, and to a three lines when closed Nov 12 16:36:26 with some animation Nov 12 16:36:31 how they did this? Nov 12 16:36:36 i can't find such anywhere Nov 12 16:40:18 JacobTabak: are you here maybe ? Nov 12 16:40:24 yea buddy Nov 12 16:40:27 OverCoder, ActionBarDrawerToggle Nov 12 16:40:40 do you still have that blog post about robolectric and unit test ? Nov 12 16:40:47 sorry that I lost it Nov 12 16:40:53 * OverCoder gogles Nov 12 16:40:59 oh Nov 12 16:41:00 googles* Nov 12 16:41:01 found Nov 12 16:41:02 http://blog.blundell-apps.com/android-gradle-app-with-robolectric-junit-tests/ Nov 12 16:41:05 this one ? Nov 12 16:41:15 yeah thats the basis Nov 12 16:41:22 let me try Nov 12 16:41:35 wanted to check learn docker today but ah ;) Nov 12 16:41:41 this will be more useful for me Nov 12 16:48:45 If I'm serializing a class that Implements Serializable, and it has other classes as properties on it that are parcelable.... can I combine that stuff or do they all have to implement Serializable? Nov 12 16:49:00 http://blogs.msdn.com/b/somasegar/archive/2014/11/12/opening-up-visual-studio-and-net-to-every-developer-any-application-net-server-core-open-source-and-cross-platform-visual-studio-community-2013-and-preview-of-visual-studio-2015-and-net-2015.aspx Nov 12 16:49:05 am I dreaming ? Nov 12 16:50:35 oh my Nov 12 16:50:59 http://blogs.msdn.com/b/visualstudioalm/archive/2014/11/12/introducing-visual-studio-s-emulator-for-android.aspx Nov 12 16:51:02 whaaaat Nov 12 16:51:21 ...what Nov 12 16:51:26 @JakeWharton ?? Nov 12 16:52:31 what the hell happened with MS ? Nov 12 16:52:50 next news will be about rewriting it to use linux kernel ? Nov 12 16:52:50 they did buy their way into the day 2 keynote at droidcon nyc Nov 12 16:53:42 well Nov 12 16:53:50 this partially may be because all android developers use macs these days Nov 12 16:53:51 I stay with linux ;) Nov 12 16:53:58 (not all, of course, sorry gordon_ ) Nov 12 16:54:01 I use linux... Nov 12 16:54:08 and hate macs Nov 12 16:54:10 the vast majority of tops devs use macs Nov 12 16:54:14 i mean this is a fact Nov 12 16:54:20 I know I know Nov 12 16:54:27 maybe by making windows-only tools they are trying to win back some devs Nov 12 16:54:34 I used to write c# ;) Nov 12 16:54:40 i mean, its not windows only, but hyper-V etc is only supported on windows Nov 12 16:54:50 https://illumeweb.smdisp.net/collector/Survey.ashx?Name=VS_AndroidForExternalDevs Nov 12 16:54:52 and linux driver ! :D Nov 12 16:55:18 damn Nov 12 16:55:22 gordon_: I think the reason M$ is going with opensource is because of Nadella Nov 12 16:55:28 are they afraid of jetbrains or what ? Nov 12 16:55:31 is there any way to adjust the listview fast scroll section text size? Nov 12 16:55:36 He seems sorta like the anti balmer Nov 12 16:55:39 it's friggin' giant Nov 12 16:56:04 I don't use a mac Nov 12 16:56:05 ... Nov 12 16:56:06 I wait for open source direct Nov 12 16:56:06 x Nov 12 16:56:15 pfn: congratulations ! Nov 12 16:56:19 what are you using Nov 12 16:56:22 whether or not I'm a top dev... Nov 12 16:56:30 windows Nov 12 16:56:35 sorry, you failed Nov 12 16:56:39 but tried Nov 12 16:56:58 then again, apps I've worked on have had millions of installs Nov 12 16:56:59 * pfn shrugs Nov 12 16:57:56 oh~ Nov 12 16:57:57 same Nov 12 16:58:06 doenst matter Nov 12 16:58:09 unless it's fun ;) Nov 12 16:58:28 and I can earn some money to go with gf to cinema and stuff Nov 12 16:58:35 in short -> i wont die Nov 12 16:58:48 meh, chainsdd's dateindexer sucks, too slow Nov 12 16:59:02 and the fast scroll section label is too damn big Nov 12 16:59:39 so, microsoft emulator- no opengl 2 yet, and only compatible with windows 8 for now. Nov 12 17:01:34 is it opensource too? ;) Nov 12 17:01:45 microsoft and opengl Nov 12 17:01:49 isnt it forbidden? Nov 12 17:01:54 :D Nov 12 17:02:04 I like the fact that they were fighting with opengl Nov 12 17:02:13 nd now they are implementing it in IE as webgl Nov 12 17:02:17 gordon_: Microsoft used to push OpenGL on NT Nov 12 17:02:17 i haven't followed this drama Nov 12 17:03:01 anyone using Caldroid? I'm getting some errors trying to run the README example Nov 12 17:03:04 p_l: yeah and paying unreal engine to be windows only Nov 12 17:03:20 I used to like MS Nov 12 17:03:22 used to Nov 12 17:03:28 dark times Nov 12 17:03:30 gordon_: NT6.0 changed things, but partially because of changes to display pipeline, that to this day *no one* implemented an extension for in GL world Nov 12 17:03:41 specifically a "java.lang.NoSuchFieldError: com.caldroid.R$id.calendar_month_year_textview" error Nov 12 17:03:54 gordon_: they paid for OS exclusivity, not necessarily display api exclusivity Nov 12 17:04:16 and port was almost read from what I know Nov 12 17:04:29 whatever Nov 12 17:04:40 Nov 12 17:05:15 gordon_: Unreal Engine used to have a GL driver, then dropped it. Could be from purely economic reasons Nov 12 17:05:35 let's be honest, the real reason to use GL came with Steam for Mac, and later for Linux Nov 12 17:05:57 and now it's there ;) Nov 12 17:06:40 gordon_: and by the time that happened, I think Unreal Engine was already ported to non-DX platforms, and similarly many other engines Nov 12 17:06:52 maybe Nov 12 17:07:11 (because consoles with their need to directly write GPU chip-specific stuff) Nov 12 17:07:15 honestly I believe in Gabe Newell Nov 12 17:07:34 they may push linux gaming Nov 12 17:07:38 hasn't GL always been a bit slower than DirectX too? Nov 12 17:07:41 gordon_: funnily enough, I have a game that uses DirectX... and runs on Linux Nov 12 17:07:44 dinoangelov: not exactly Nov 12 17:07:48 dinoangelov: no Nov 12 17:08:01 p_l: yeah... I know wine stuff ;) Nov 12 17:08:06 that answers my question :) Nov 12 17:08:07 but no dx 10 Nov 12 17:08:34 dinoangelov: rememeber tesselation in directx... 11 ? Nov 12 17:08:39 big hype etc Nov 12 17:09:05 gordon_: now every big game uses it Nov 12 17:09:06 gordon_: no, I'm not really too familiar with them really, it's just a comment from perhaps stuff i've read some time ago Nov 12 17:09:20 gordon_: actually, no wine stuff involved :> Nov 12 17:09:31 thing is... by that time it was already in opengl 3.1? AFAIK Nov 12 17:09:35 p_l: how ? Nov 12 17:09:37 gordon_: it was fun to attach GDB and see DirectX calls Nov 12 17:09:48 LOL Nov 12 17:09:59 gordon_: the company that ported it wrote their own DirectX-on-OpenGL implementation Nov 12 17:10:13 what company btw ? Nov 12 17:10:40 valve made toGl lately Nov 12 17:10:53 Aspyr Nov 12 17:11:26 i think dota2 runs with some sort of "toGL" wrapper or middleware Nov 12 17:11:45 bunch of Valve games use togl Nov 12 17:12:16 also, it's funny that Civ5 was not stripped of symbols :D Nov 12 17:12:24 which is how I could see it was calling DirectX calls Nov 12 17:12:53 dinoangelov: https://www.youtube.com/watch?v=Ny2291cRdOs Nov 12 17:12:54 this Nov 12 17:13:27 it's quite olb Nov 12 17:13:30 *old Nov 12 17:13:38 I should read opegl bible ;) Nov 12 17:14:37 * g00s wakes up to a strange world, open source .NET, VS has an android emu O.o Nov 12 17:16:11 http://blogs.msdn.com/b/visualstudioalm/archive/2014/11/12/introducing-visual-studio-s-emulator-for-android.aspx Nov 12 17:16:47 "Slow. This is the number one complaint weā€™ve heard from Android developers. ā€œThe emulator is painfully slow, it hurts my productivity, and Iā€™ll use a device.ā€ Nov 12 17:17:17 leave it to MS to make better tools that google for their own platform, jesus Nov 12 17:18:46 g00s: actually, the emulator appears to be pretty much same speed grade as KVM/HAXM ones Nov 12 17:18:51 i'll file the bug when MS android emu is faster than google emu Nov 12 17:19:30 it seems that they went with their own implementation because of Hyper-V conflicting with HAXM Nov 12 17:19:32 the accelerometer tab is pretty cool to, does google have that? Nov 12 17:19:42 nope Nov 12 17:20:01 I'd like BT VHCI as well :P Nov 12 17:22:44 im using http://www.brightec.co.uk/blog/custom-android-media-controller and ive added a toolbar to the media_controller.xml layout. in my activity that implements this View, how can i manipulate the toolbar? specifically add action/menu items Nov 12 17:24:58 JacobTabak: before I forget, if possible I would welcome with big pleasure robolectric test samples Nov 12 17:25:09 what specifically? Nov 12 17:25:50 everything I guess Nov 12 17:25:54 yea no Nov 12 17:25:55 lol Nov 12 17:25:59 let me know if you have specific questions :P Nov 12 17:26:03 ok ;) Nov 12 17:26:11 it lacks of examples Nov 12 17:26:12 like Nov 12 17:26:22 opening activity Nov 12 17:26:25 btw Nov 12 17:26:31 that example is there... Nov 12 17:26:37 I did everything like in that tutorial Nov 12 17:26:45 https://github.com/robolectric/deckard-gradle/blob/master/src/test/java/com/example/activity/DeckardActivityRobolectricTest.java Nov 12 17:26:46 and got Nov 12 17:26:48 superClassName is empty! Nov 12 17:27:10 ah, havent checked deckard gradle for tests Nov 12 17:30:35 JacobTabak: any idea? Nov 12 17:30:49 well you said you needed an example Nov 12 17:30:55 you followed the example and still have problems? Nov 12 17:31:01 ues Nov 12 17:31:03 yes Nov 12 17:31:10 I created java gradle module Nov 12 17:31:31 added module to settings.gradle Nov 12 17:31:40 and changed build.gradle of that submodule Nov 12 17:31:49 and got Nov 12 17:31:52 FAILURE: Build failed with an exception. Nov 12 17:31:52 * What went wrong: Nov 12 17:31:52 Execution failed for task ':robolectric-tests:test'. Nov 12 17:31:52 > superClassName is empty! Nov 12 17:31:53 and you don't have robolectric plugin applied, right? Nov 12 17:32:00 no, I dont Nov 12 17:32:11 I craeted new project from start Nov 12 17:32:18 and create submodel for it Nov 12 17:32:25 did you google this btw? Nov 12 17:32:39 the first answer on stackoverflow is the solution, and its also in the deckard gradle example build.gradle file for the java project Nov 12 17:32:59 yes I google but didnt find answer Nov 12 17:33:04 what did you search for / Nov 12 17:33:12 "superClassName is empty!" http://stackoverflow.com/questions/14814837/gradle-test-fails-with-error Nov 12 17:33:54 damn I see that Nov 12 17:34:09 must be because of coding late at night Nov 12 17:35:58 oh it's working Nov 12 17:36:00 thank you ! Nov 12 17:36:12 woohoo Nov 12 17:36:43 I dont even get Stub! exception Nov 12 17:36:54 nice Nov 12 17:37:01 will apply it tomorrow at work Nov 12 17:37:04 bah, who needs a section indexer Nov 12 17:37:14 https://www.youtube.com/watch?v=DJ4X7_ZPfhM Nov 12 17:37:56 pfn: nice Nov 12 17:38:41 just need to add a good filter UI Nov 12 17:38:44 and log management Nov 12 17:38:56 too bad table scan queries are gonna suck Nov 12 17:39:02 I'm getting a CursorWindowAllocationException, normally this would imply either a memory leak or the hundreds of open cursors. Nov 12 17:39:12 I need to make some abstraction at work's app Nov 12 17:39:16 for image loader ;) Nov 12 17:39:20 btw Nov 12 17:39:33 what's the best way to make some cache with db ? Nov 12 17:39:35 the exception message is "Cursor window allocation of 2048 kb failed. # Open Cursors=1 (# cursors opened by this proc=1)", so apperently there is only one cursor available. Any idea what might cause that? Nov 12 17:39:48 some preffered libraries? Nov 12 17:40:25 db caching sucks for blobs... Nov 12 17:40:40 not blobs Nov 12 17:40:48 this is the line that causes the exception. I'M using ORMLite, so the cursor should be properly managed as wellList users = queryBuilder().where().eq(User.USERNAME, username).query(); Nov 12 17:40:50 just models Nov 12 17:41:16 will take a look tomorrow Nov 12 17:41:21 when I will have time Nov 12 17:41:58 too bad android doesn't have builtin bdb Nov 12 17:42:01 that'd be pretty ideal Nov 12 17:43:23 gordon_, I believe a LruCache is commonly used for image caching Nov 12 17:46:37 so not only am I not sure why my app crashes (no way is the user 2mb big, and I can't reproduce it as it only happens very rarely), android studio does not recognize the exception, so I can't catch it either Nov 12 17:51:19 Syzygy_, you have a 2mb window allocation, but your app is otherwise oom Nov 12 17:51:34 is basically what the error is, the user doesn't have to be 2mb to request a 2mb allocation Nov 12 17:51:47 ah, makes sense Nov 12 17:52:14 since there only seems to be one open cursor... I'm not sure how to fix it though. Nov 12 17:53:41 I would rather prevent it from occuring rather than just catching it Nov 12 17:57:35 it's a symptom of a larger problem Nov 12 17:57:40 your app in general is using too much memory Nov 12 17:57:52 take a heapdump, and look at it with MAT Nov 12 17:58:03 look for large blocks of memory and clean them up Nov 12 17:59:04 pfn you might be able to use mvstore in place of bdb Nov 12 17:59:59 see bottom, comparison http://www.h2database.com/html/mvstore.html Nov 12 18:00:16 err, "Similar Projects and Differences to Other Storage Engines" Nov 12 18:00:58 with blobs, there is some trickery optimizing for sqlite - can't remember if they should be 1st or last field in the row Nov 12 18:02:13 "Unlocked Moto G 2014 starts receiving Android 5.0 Lollipop" Nov 12 18:02:33 g00s: they posted that on xda last night Nov 12 18:02:37 *yesterday Nov 12 18:02:43 i still don't see Api 21 samples in my sdk manager Nov 12 18:02:47 wtf is going on Nov 12 18:11:00 hi? Nov 12 18:11:35 i have the same problem shown here http://stackoverflow.com/questions/4888907/android-failure-delivering-result-resultinfowho-null-request-1-result-1-da Nov 12 18:11:54 there's an answer marked correct but i have no idea what they are talking about. Nov 12 18:30:07 g00s, I said built-in, I don't want mvstore Nov 12 18:30:40 because there are no new samples yet... Nov 12 18:30:48 the samples barely change api-to-api version anyway Nov 12 18:30:49 * pfn shrugs Nov 12 18:38:43 in robolectric, is there a huge difference between Robolectric.clickOn() vs. button.performClick() ? Nov 12 18:39:42 pfn who cares if its built-in ? not like scala is built in :) Nov 12 18:40:05 scala is built-in for all intents and purposes Nov 12 18:40:08 you build it, and it's there Nov 12 18:40:18 even your build system is cutsom lol Nov 12 18:40:27 it's a first-class citizen on intellij 14 Nov 12 18:40:32 so it's defacto standard Nov 12 18:40:34 not custom Nov 12 18:40:39 not proprietary Nov 12 18:40:52 lol Nov 12 18:40:55 mvstore is a first cass citizen of awesomeness. and its open so :) Nov 12 18:41:05 but whatever Nov 12 18:41:05 go ahead and use it Nov 12 18:41:09 I don't need mvstore Nov 12 18:41:24 g00s: did you hear MS open sourced .NET? Nov 12 18:41:36 beside, it would be lame if bfb was built in , for the same reason its lame anything is built in Nov 12 18:41:39 *bdb Nov 12 18:41:47 yerah, lets use our built-in apache http client Nov 12 18:42:17 thepoosh i did. ms seems to be changing these days Nov 12 18:42:23 yes Nov 12 18:42:28 and to a good place! Nov 12 18:43:45 thepoosh if they reached 10% market share in mobile i'd drop everything and move to WP dev Nov 12 18:44:07 but they are really struggling there. i wonder if they even gave up Nov 12 18:44:09 god damn it android studio shows no debuggable devices and no logcat output -.- Nov 12 18:44:16 i don't know if they'll ever make it Nov 12 18:44:53 Syzygy_: and adb? Nov 12 18:45:10 does show that my device is connected Nov 12 18:45:14 if anything, i would rather sqlite was not built in. as we know, different phones have different versions of that too. generally compatible, but you don't get to use new features. Nov 12 18:45:22 i tried restarting both adb and and android studio several times already Nov 12 18:45:54 Syzygy_ try the MS Android emulator Nov 12 18:45:58 lol Nov 12 18:46:21 would prefer sticking with the device i have right here Nov 12 18:46:35 Syzygy_: what happens when you run adb devices? Nov 12 18:46:47 it lists my connected device Nov 12 18:46:54 weird Nov 12 18:47:00 are you running OSx? Nov 12 18:47:06 no, windows 8 Nov 12 18:47:30 ah. might have found the issue Nov 12 18:47:34 ? Nov 12 18:47:36 DDMS was somewhere in the background Nov 12 18:47:55 but didn't open correctly because it displayed an error message which didn't show up as an open window Nov 12 18:47:57 that was my next question Nov 12 18:49:24 JakeWharton: In ProcessPhoenix, if I am using the debug with the appended .dev to the package, is there a way to have it auto resolve this, or do I need to create my own intent? Currently I am getting the "Does an activity specify the DEFAULT category?" error. Nov 12 18:49:42 do you specify a default activity? Nov 12 18:49:55 In the manifest, yes. Nov 12 18:50:34 oh, i see what you are saying Nov 12 18:50:53 just use BuildConfig.APPLICATION_ID rather than context.getPackageName() Nov 12 18:51:27 Oh, maybe I have the defaults screwed up, I have an intenet filter with android.intent.action.VIEW, and category default? Is that correct? Nov 12 18:51:46 uh Nov 12 18:52:11 I'll try the BuildConfig way, and if I'm still having issues I'll play around with that. Thanks! Nov 12 18:52:28 i think it should work as-is Nov 12 18:52:49 Ok thanks Nov 12 18:52:53 but maybe not, i didn't try. and it was also like 4am so I don't really remember the specifics of how it finds the activity Nov 12 18:53:04 Haha forsure Nov 12 19:02:06 Anyone have experience with CI with android (gradle)? Nov 12 19:08:33 guys is it java integer.tostring(int) or string.valueof or "" + int Nov 12 19:08:56 first 2 are good Nov 12 19:09:03 the third is ugly Nov 12 19:11:09 usually I take the third :-d Nov 12 19:14:11 well its fast to type and i use it often Nov 12 19:14:21 but in final code i would use string.valueof Nov 12 19:14:27 I usually do Integer.toString() Nov 12 19:15:37 ok thx Nov 12 19:16:04 how would i save an ArrayList to a bundle? Nov 12 19:16:06 do i get a nullpointerEx on any of these if my int was not initialized? Nov 12 19:17:44 bitmap you'd need to implement parcelable on your bitmap Nov 12 19:17:51 hint: that's not the right approach Nov 12 19:18:07 JacobTabak, what's the right approach then? Nov 12 19:18:16 depends on what you're trying to do Nov 12 19:18:19 what are you trying to do? Nov 12 19:18:27 make them available for the class/fragment it is using it Nov 12 19:18:39 eg MainActivity, Application, Singleton Nov 12 19:19:39 XniX23 is he answering for you? Nov 12 19:19:41 i have a fragment that has a list adapter that loads some images from the web. Now i know i could save to card or something once it's loaded, but let's say i dont want to do that Nov 12 19:19:58 XniX23 you should use an HTTP client with caching Nov 12 19:20:01 this should not be your problem Nov 12 19:20:28 guys, i don't get it, in some new applications (google play & ADM are one of them), the navigation bar indicator icon is different, it's 3 long lines (rather than short ones), and when opening the navigation bar, it turns into a back icon, with some special animation Nov 12 19:20:34 how is that? Nov 12 19:20:41 appcompat Nov 12 19:20:46 was just released like 3 weeks ago Nov 12 19:21:00 the appcompat toolbar has that animation built in to the drawer toggle class Nov 12 19:21:16 o Nov 12 19:21:25 JacobTabak, is that possible without external libs? Nov 12 19:21:49 http://developer.android.com/training/efficient-downloads/redundant_redundant.html Nov 12 19:21:55 specifically http://developer.android.com/training/efficient-downloads/redundant_redundant.html#ResponseCache Nov 12 19:22:21 this is Android 4.0+ Nov 12 19:22:23 Hey! Nov 12 19:22:29 if you want it in older versions, use OkHttp Nov 12 19:22:31 I can't get this external library to work with my application: https://github.com/roomorama/Caldroid Nov 12 19:22:32 hey aceus Nov 12 19:22:34 which is a 3rd party lib Nov 12 19:22:37 Im using an ActionbarActivity instead of a FragmentActivity and therefor don't really know how to do use it Nov 12 19:23:00 fragmentactivity is a superclasss of actinobaractivity Nov 12 19:23:03 you should have absolutely no issue Nov 12 19:23:19 ^ Nov 12 19:23:31 hm okey Nov 12 19:23:34 thanks Nov 12 19:23:38 plus, where's the problem? Nov 12 19:24:33 is it nice for an app to be called "Ziggy"? :P Nov 12 19:24:39 What do they mean by: To use in your project, reference the child library project as a library ? Nov 12 19:26:33 Hey guys, I am wanting to experiment with video streams, and I have this webcam of mine I was to stream to my tablet, Would I want to use videoview or imageview for live stream? Nov 12 19:26:43 btw is there a simple way to retain the values in the views, do i have to read them from views in onSaveInstanceState and put them in Bundle? Nov 12 19:29:31 XniX23, you mean in runtime? Nov 12 19:29:39 i don't get you Nov 12 19:30:29 you can do something like EditText obj = (EditText) findViewById(R.id.some_id); and then call something like obj.getText.toString() Nov 12 19:30:34 it differs from view to view Nov 12 19:30:46 if that was you meant anyway Nov 12 19:32:22 OverCoder, yes at runtime. when a user changes rotation, i'd like some data (EditText.getText or smth) save to a bundle, is that the right way to approach this? I mean is it a good practice? is there a simpler way? Nov 12 19:33:16 generally afaik on rotation the layout re-renders and iirc some method like onCreate() gets called Nov 12 19:33:51 OverCoder : "reference the child library project as a library"... Does that mean that i should add the .jar files into the /libs folder? Nov 12 19:34:26 i really don't know what does that mean ._. Nov 12 19:34:31 what are you trying to do? Nov 12 19:34:49 yes but the view gets destroyed, hence the text that was there is rerendered and its empty Nov 12 19:35:07 hmmm Nov 12 19:35:22 it is? Nov 12 19:35:33 I'm just trying to import the calendar to my actionbaractivity that's using fragments Nov 12 19:35:45 i mean, if i normally rotate the screen in my app nothing happens and text doesn't get cleared Nov 12 19:36:02 hmmm let me check Nov 12 19:36:41 aceus, i don't know about those but, if you use some sort of libraries, you should put them in /libs folder and add them to build path Nov 12 19:36:47 otherwise won't work Nov 12 19:36:51 okok Nov 12 19:36:56 i'll try that Nov 12 19:38:18 can somebody tell me why ADT generates actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_STANDARD); on each new project with nav bar? i mean it's deprecated and my ADT is the latest, how odd? Nov 12 19:39:32 OverCoder, oh nice, it gets retained by default Nov 12 19:40:52 alright then, and the problem persists? Nov 12 19:40:59 FragmentTransaction t = getSupportFragmentManager().beginTransaction(); says that getSupportFragmentManager() is undefinded for CalendarFragment Nov 12 19:41:47 hmm Nov 12 19:41:51 let me check aceus Nov 12 19:42:39 Okey. I changed it to FragmentTransaction t = getFragmentManager().beginTransaction(); which removed the error. Nov 12 19:42:54 But I get an exception when starting the application Nov 12 19:43:02 Ill post it on pastebin Nov 12 19:43:08 hi there, I am attempting to just get the code running from the example android developer website for the Displaying Bitmaps in your UI. Eclipse says I do not have any errors, I have placed small sized images into the integer array, but no images show up in the loaded fragments when I run the application. Nov 12 19:43:19 Hey guys, I am wanting to experiment with video streams, and I have this webcam of mine I was to stream to my tablet, Would I want to use videoview or imageview for live stream? Nov 12 19:43:26 I am also not getting any errors. Nov 12 19:43:37 dr4c4n: can you post some code in pastebin Nov 12 19:43:40 aceus, did you add the support libraries into your project? Nov 12 19:43:49 http://pastebin.com/EByxpUrM Nov 12 19:43:55 getFragmentManager() is for >=14 API levels Nov 12 19:44:01 Ok cool Nov 12 19:44:12 is it possible to retain the adapter list? Nov 12 19:44:14 getSupportFragmentManager plx Nov 12 19:44:40 if i have an activity implementing a view that expands framelayout, is there a way to reference a child view of that implemented view from the activity? Nov 12 19:44:42 Yeah, i added library.jar and date4j.jar to /libs folder and then added they to build path Nov 12 19:45:13 so I have no errors in code when using getFragmentManager(), but it gives me that exception Nov 12 19:45:17 http://pastebin.com/EByxpUrM Nov 12 19:45:27 i saw that. Nov 12 19:45:29 yes getting you a url Ashiren (thanks for your help!) Nov 12 19:45:54 Should I add any more classes/jar files? Nov 12 19:46:10 aceus, um, the error is just about a missing class you're trying to use/call/whatever Nov 12 19:46:26 but you should use getSupportFragmentManager() anyway Nov 12 19:46:36 unless you're not looking for backward support Nov 12 19:46:57 hm Nov 12 19:47:16 ok Nov 12 19:47:16 aceus, can you post onCreate() code? Nov 12 19:47:20 yes! Nov 12 19:48:04 good for you Nov 12 19:48:17 CalendarFragment : http://pastebin.com/TVTb42Bf Nov 12 19:48:18 Ashiren, hm? Nov 12 19:48:30 aceus, that's all i need Nov 12 19:48:49 ok, here's main anyway: http://pastebin.com/e1U5YQSs Nov 12 19:49:00 wait min Nov 12 19:49:02 what is CaldroidFragment Nov 12 19:49:02 these are the only classes i have Nov 12 19:49:28 * OverCoder thinks Nov 12 19:49:32 https://github.com/roomorama/Caldroid . Scroll down to Features Nov 12 19:50:20 k Nov 12 19:53:00 Ashiren: http://pastebin.com/5qZUsdGf Nov 12 19:53:56 dr4c4n, it's very bad to post multiple classes into one paste Nov 12 19:54:01 at least IMO Nov 12 19:54:30 OverCoder: Sorry newb, and I didn't know how else to post all of my android code into a pastebin Nov 12 19:54:46 (referring to myself.. ) Nov 12 19:54:54 np Nov 12 19:55:04 i was (maybe still) worse Nov 12 19:55:04 :P Nov 12 19:55:10 dr4c4n: Gists can have multiple parts. Nov 12 19:55:41 flan3002: what is a gist? Nov 12 19:55:53 dr4c4n: wheres ImageDetailActivity loaded? i dont see it anywhere Nov 12 19:56:02 dr4c4n: https://gist.github.com/ Nov 12 19:56:10 besides there isnt in manifest Nov 12 19:57:56 Ashiren: that's what I don't understand, it says on the doc that "The main activity holds the Viewpager and the adapter." but it doesn't specify how / when to create a new ImageDetailActivity Nov 12 19:58:37 I also tried to create a project, and have in the manifest the imageDetailActivity as the "main" in the manifest, and it gave me other errors Nov 12 19:58:56 can you give link to the doc Nov 12 19:59:26 flan3002: thanks. I should use my git on my server, and try to figure out how to get gists working also Nov 12 19:59:41 ashiren : https://developer.android.com/training/displaying-bitmaps/display-bitmap.html#viewpager Nov 12 20:01:07 dr4c4n: the ImageDetailActivity is "main activity" Nov 12 20:01:43 either copy everything from ImageDetailActivity to MainActivity or rename it to MainActivity Nov 12 20:02:28 Ashiren: thanks, how that is presented is kind of confusing Nov 12 20:04:58 hi guys, im using the latest android studio and i currently viewing the AndroidManifest.xml File. Im wondering if there is a visual representation of the xml? Nov 12 20:05:52 AndroidManifest.xml is like configuration file, there is no "design view" Nov 12 20:06:09 unless youre taking about res/layouts/ Nov 12 20:08:50 Ashiren: thank you very much. I was just trying to test out the sample code to try to fix someone else's application which is recording swipe information. Nov 12 20:09:04 Im following a guide for Eclipse, and hes showing both the XML and like a ā€œformā€ view Nov 12 20:09:45 my other code was implementing the viewpager, but only showing 5 out of the 20 images I had actually loaded into an arraylist of integers Nov 12 20:10:10 pangelovski: oh i see. well i dont know android studio to tell that Nov 12 20:10:32 Ashiren: thank you for trying :) Nov 12 20:15:51 hi? Nov 12 20:16:14 fragmeng.getActivity() returns null...is there a way around this? Nov 12 20:16:41 Add it to an Activity Nov 12 20:16:52 pangelovski: It doesn't exist in AS Nov 12 20:17:50 i have a mainactivity and lots of fragments..i add each of those fragments using fragment manager when there's a click on a navbar item for example Nov 12 20:18:07 but the problem is that getactivity sometimes returns null.. Nov 12 20:18:25 something to do with the lifecycle but i dont know how to remedy that. Nov 12 20:18:33 It doesn't return null if the Fragment is added to an Activity. Remember that fragment transactions doesn't happen immediately Nov 12 20:18:47 Between Fragment#onAttach and Fragment#onDetach it will never return null Nov 12 20:20:14 so do i retain a reference to the activity onAttach? Nov 12 20:20:24 Is that bad practice? Nov 12 20:20:47 Yes Nov 12 20:20:56 Only call getActivity between onAttach and onDetach Nov 12 20:22:47 Does oncreateview qualify? Nov 12 20:23:11 That happens between onAttach and onDetach, yes Nov 12 20:23:21 https://developer.android.com/reference/android/app/Fragment.html#Lifecycle Nov 12 20:23:23 what about onViewCreated? Nov 12 20:23:27 All lifecycle methods happen between those two Nov 12 20:23:35 gmg85: https://github.com/xxv/android-lifecycle Nov 12 20:26:11 hi guys, any video tutorial you are aware of to start learning Android Development. I am currently following Lyndas tutorial and it seems outdated Nov 12 20:27:48 hey guys Nov 12 20:28:20 I'm launching a progress dialog inside onPreExecute() and dismissing it onPostExecute(), dialog isnt showing up at all Nov 12 20:28:35 as in, ProgressDialog.show(....) Nov 12 20:30:00 code plx Nov 12 20:30:02 http://stackoverflow.com/questions/17964630/android-onpreexecute-cannot-show-a-progressdialog Nov 12 20:30:12 no nevermind I'll fix it Nov 12 20:30:33 thought it was something specific that asynctask cant do, my bad Nov 12 20:31:36 Also, don't manually manage Dialogs Nov 12 20:31:40 Use DialogFragment Nov 12 20:32:18 why would I go into that while my task is just a small dialog that says "Logging in" Nov 12 20:32:25 dialogFragment seems complicated :\ Nov 12 20:32:37 How do you handle configuration changes? Nov 12 20:33:08 Control of the dialog (deciding when to show, hide, dismiss it) should be done through the API here, not with direct calls on the dialog. Nov 12 20:33:12 I use .dismiss and .show Nov 12 20:33:32 So when the Activity is destroyed you dismiss the dialog, then create a new one in the new Activity and pass it to the AsyncTask? Nov 12 20:33:53 If you don't, your app will crash Nov 12 20:33:57 no, I create a new one in every onPreExecute Nov 12 20:34:05 and I dismiss it on onPostExecute Nov 12 20:34:07 Yeah, obvious issue Nov 12 20:34:18 if it gets interrupted in between those? Nov 12 20:36:08 Put a long Thread#sleep in your doInBackground.. Start the AsyncTask, rotate your device, watch it burn Nov 12 20:36:40 rotating apps is a whooooole other league Nov 12 20:36:45 lol Nov 12 20:37:19 You're probably also keeping a reference to your Activity in your AsyncTask Nov 12 20:37:34 to feed to the new ProgressDialog Nov 12 20:37:36 Don't rely on that ever being what the user is seeing Nov 12 20:37:47 Mostly it is Nov 12 20:37:56 But sometimes it's not (again, configuration changes) Nov 12 20:38:45 when using a spinner in a form, do you use a label or add a 0 entry? Nov 12 20:53:07 I am trying to load a prebuild shared library that I was previously using as a static one. I am loading it with System.loadLibrary before loading my main NDK lib, but I am getting an UnsatisfiedLinkerError in ADB. It doesn't however wsay hat dependency is unsatisfied. How can I find out more info about this? Nov 12 20:55:25 hi, i'm using api level 21 and minSdkVersion = 10. I would that menu appears as old style menu, on bottom. How could i do ? Nov 12 20:57:37 hi! will hammerhead get the update via 'about phone' menu if it's currently on the last dev preview? or do i have to reflash it again? Nov 12 20:57:44 (nexus 5) Nov 12 21:01:28 will need to flash again Nov 12 21:01:51 ok Nov 12 21:05:45 if i add items (Views) to a ListView, is there a way i can populate some of the data only after it loads into the view? Nov 12 21:07:28 asynctask? Nov 12 21:08:06 squirrel: ok, so the View has some type of way to know when it has been loaded? Nov 12 21:09:10 what does 'loaded' exactly mean? Nov 12 21:09:20 hi, i'm using api level 21 and minSdkVersion = 10. I would that menu appears as old style menu, on bottom. How could i do ? Nov 12 21:09:42 well, added to the ListView i suppose is a better way to put it. Nov 12 21:10:27 well, you call notifyChanged or whatever, the next runnable you post will be run after the view is inside of the listview Nov 12 21:11:05 man I'm gonna cry Nov 12 21:11:41 in Android Studio, if you open a file that's already long been closed and gone, it returns your cursor to where it was the last time you opened that file Nov 12 21:12:25 is that a problem? Nov 12 21:12:27 ..even though the file is gone? Nov 12 21:12:40 closed, not literally gone :P Nov 12 21:12:44 squirrel: thanks ! Nov 12 21:12:50 of course not, it's a blessing Nov 12 21:12:59 pretty sure there's an option somewhere that you can disable Nov 12 21:13:09 skrite: ^_^ Nov 12 21:13:10 oh Nov 12 21:13:22 I wanted to open 5 files that I had decided on editing and remove something from them I had put in last night Nov 12 21:13:48 so THAT's what made you want to cry Nov 12 21:13:50 lol Nov 12 21:14:03 tears of joy. Nov 12 21:14:10 do they taste differently? Nov 12 21:14:23 yea man, I dont know HOW people use Eclipse Nov 12 21:14:31 Lars Vogel oughtta be shot Nov 12 21:14:40 Are there any open source media players that support HLS and EIA-608/708 captions on Android? Nov 12 21:14:51 er, eclipse does the same thing? Nov 12 21:14:53 it's like comparing a washing machine to the hadron collider Nov 12 21:14:59 no way man Nov 12 21:15:02 it doesn't Nov 12 21:15:02 yep Nov 12 21:15:08 sure does Nov 12 21:15:16 wait Nov 12 21:15:17 well it was not noticeable to me ever Nov 12 21:15:26 so that's where they went wrong Nov 12 21:15:27 :P Nov 12 21:16:11 mine doesn't but that could be due to my settings (I don't actually want it to remember last position of closed files) Nov 12 21:16:33 what about double Shift? what about hiding the toolbars and when you hide the one that has the essential stuff, the essential stuff cram themselves into the remaining toolbar Nov 12 21:17:08 what about Ctrl F when it finds an instance you scroll through the instances with the arrow keys Nov 12 21:17:23 er Nov 12 21:17:26 what about ctrl G and all of what it does Nov 12 21:17:26 no idea Nov 12 21:17:45 someone take Eclipse to the roof and put it down Nov 12 21:17:48 I'm actually on my phone now... Nov 12 21:17:57 great, I win by default Nov 12 21:18:08 how about a ritualistic sacrifice ? Nov 12 21:18:24 yea I guess it deserves it, it's been around for ages Nov 12 21:18:28 it should be cremated not shot Nov 12 21:18:34 well, cremated after being shot Nov 12 21:19:01 one thing I am missing so far though Nov 12 21:19:05 jump to matching bracket! Nov 12 21:19:39 dude, you are just too spoiled Nov 12 21:20:00 I demand the best! Nov 12 21:20:11 if only AS could write all the code for you too... Nov 12 21:20:17 at work I try to give users the best, with what little shit amount of knowledge I have Nov 12 21:20:21 but I try god damn it Nov 12 21:20:45 look at Apple Nov 12 21:20:52 the best != "does everything for me" Nov 12 21:21:01 correct Nov 12 21:21:08 no one ever said it was that Nov 12 21:21:14 man poor Eclipse Nov 12 21:21:26 kinda going that way :p Nov 12 21:21:30 nope Nov 12 21:21:34 you offer the best, that's it Nov 12 21:21:45 whether people have sped up at what they do because of it or not, that's irrelevant Nov 12 21:21:55 but when you do search, you do it as it should be and as all edge cases can have Nov 12 21:22:01 which orm is most used on android? Nov 12 21:22:07 yessir Nov 12 21:22:13 lol Nov 12 21:22:18 lol breh Nov 12 21:22:29 breh <-- mutation of bro -> brah Nov 12 21:23:10 cause bro, I was a linux evangelist Nov 12 21:23:17 you're a bra Nov 12 21:23:23 I used to do talks about linux on the desktop and how it's awesome and everything Nov 12 21:23:33 I know what it's like to hear what I'm saying Nov 12 21:23:48 but then....I bought a mac! Nov 12 21:24:22 now Im the other kind of fanboy Nov 12 21:25:07 I'm still a linux fanboy, even after being an ios developer, but now I believe we are off the topic of this channel aren't we? Nov 12 21:25:29 you're asking? Nov 12 21:25:48 you can't do that while in the same sentence you are contributing to the offtopicness Nov 12 21:25:56 either get in on it or try to stop it Nov 12 21:28:17 I'm using Linux, I want to be able to run my android apps from intellij onto my phone via usb. Any pointers on how I can do that? Nov 12 21:28:47 why from intellij? use android studio, it's intellij for android Nov 12 21:30:33 Well, I'm actually going to be using phonegap to build an app and testing it on the phone. how would i go about doing that? Nov 12 21:30:53 would i have to copy the .appk file to the phone, or is there another way Nov 12 21:31:02 no phonegap here Nov 12 21:31:07 go to #phonegap Nov 12 21:31:26 isn't phonegap == cordova? Nov 12 21:31:29 they will know Nov 12 21:31:32 yea Nov 12 21:31:41 #1 FAQ I think at phonegap Nov 12 21:31:45 "arent you cordova?" Nov 12 21:31:50 yes yes Nov 12 21:32:05 "well yes phonegap is built on cordova and cordova library is phonegap framework of cordova in apache of phonegap cross platform" Nov 12 21:32:33 this is how I've been explained it Nov 12 21:32:35 NOT a root-related question: any way to enable adb on a non-booting, s-on, bootloader locked verizon htc one m7? Nov 12 21:32:40 cordova is to phonegap what webkit is to chrome Nov 12 21:32:49 just trying to enable adb in a non-standard way to recover some data Nov 12 21:33:02 yochai, got custom recovery? Nov 12 21:33:51 no, 100% stock Nov 12 21:34:21 can't unlock bootloader (verizon) and can't change CID (non-booting system) but want to recover DCIM folder Nov 12 21:35:03 nexus 4 stock rom released?? Nov 12 21:35:05 only headway I've found is trying to reflash the system partition from an OTA update; but apparently HTC uses something called RUUboot to flash their signed ROMs; and the system will not go into RUU Nov 12 21:35:05 yay Nov 12 21:35:05 ugh Nov 12 21:35:10 seriously Nov 12 21:35:38 well anyway, rooted or not, this really is the kind of talk more suited for -root Nov 12 21:35:47 (-root is not just for rooted devices) Nov 12 21:35:52 personally, I'm out of ideas Nov 12 21:36:05 yeah, root didn't respond - waited a few hours Nov 12 21:36:08 but thanks Nov 12 21:36:19 neither did xda-developers, htc-linux-chat, etc Nov 12 21:36:27 tried booting (not flashing!) a custom recovery via fastboot? Nov 12 21:36:41 hm, that could mean there really is nothing you can do Nov 12 21:37:05 (just fyi - fastboot boot recovery.img) Nov 12 21:37:09 well wait - you mean like, "fasboot boot" Nov 12 21:37:15 yes Nov 12 21:37:29 i assumed it won't work if the bootloader is locked/s-on etc Nov 12 21:37:33 I have pretty much zero experience with HTCs so no idea if that would work Nov 12 21:37:49 if that doesn't work, then I'm out Nov 12 21:37:58 in general, on a locked bootloader (e.g. nonrooted as well) would you be able to fastboot boot custom recoveries? that seems unlikely Nov 12 21:38:08 true Nov 12 21:38:14 well, I do appreciate the help! Nov 12 21:38:22 np, good luck Nov 12 21:38:33 any idea where i can talk to someone who knows more about HTC RUU flashing? Thus far, haven't had much luck Nov 12 21:38:45 if XDA is unresponsive, then no Nov 12 21:38:47 i figure if I can get the /system partition back in order, I could get them that way Nov 12 21:38:48 ah Nov 12 21:38:49 ok Nov 12 21:38:51 well thanks! Nov 12 21:38:54 that would be *the* place for such talks Nov 12 21:41:44 well gnight Nov 12 22:03:23 Hello Nov 12 22:03:35 I have an error in eclipse: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'. Nov 12 22:03:56 I have an error in eclipse: error: " Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'. " Nov 12 22:04:33 I have an error in eclipse: error: " Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'. " Nov 12 22:04:49 How would I fix these errors? Nov 12 22:04:59 guys, this is killing me, i can't use android.support.v7.widget.Toolbar, i get Error: "android.support.v7.widget.Toolbar failed to instantiate", i opened it was a NPE Nov 12 22:05:04 what can i do about it Nov 12 22:05:19 Mallot, you need to add the Support Library Nov 12 22:05:36 Mallot1, https://developer.android.com/tools/support-library/setup.html Nov 12 22:09:18 ialreadyknewgurl strikes again Nov 12 22:10:59 Good evening. Could anyone help a newbie with gesture detection, please? Nov 12 22:12:12 OverCoder: Android SDL Content Loader encountered a problem Nov 12 22:14:13 Mallot1, what? Nov 12 22:14:32 DjolaChuleta, learn to google Nov 12 22:14:52 OverCoder: That's the error I got when I clicked the SDK Manager but It opened when I clicked details Nov 12 22:15:24 OverCoder, typical arrogant response. Of course I have googled already. Nov 12 22:15:41 DjolaChuleta, alright then. Nov 12 22:15:41 does array.clonse(9 create GC? Nov 12 22:15:41 sec Nov 12 22:15:54 success, what do you mean? Nov 12 22:17:31 DjolaChuleta: http://developer.android.com/training/gestures/detector.html Nov 12 22:17:50 DjolaChuleta, let me help you Nov 12 22:17:56 Hope that helps man =) Nov 12 22:18:08 at first, do you want to detect a gesture anywhere on the screen or just on a specific view? Nov 12 22:18:38 did you have a specific question DjolaChuleta Nov 12 22:19:06 hey y`all, does anyone know how the grammar file in this links has to really look like ? http://stackoverflow.com/questions/25748113/recognizing-multiple-keywords-using-pocketsphinx (last answer at the very bottom) cant get it to work ;( Nov 12 22:19:09 Thanks for helping out. In reality, I am detecting gestures on the google glass. But it is not view specific. Nov 12 22:19:17 double arr[]; somemethod(arr.clone()); will that causes garbage collection or is that on the stack? Nov 12 22:19:35 DjolaChuleta, Glass? Nov 12 22:19:45 is it even released? Nov 12 22:19:49 No problem man, sorry I never worked with Google Glass Nov 12 22:20:24 OverCoder: I am using an example from https://developers.google.com/glass/develop/gdk/touch Nov 12 22:20:34 o Nov 12 22:20:39 DjolaChuleta i've not seen any glass developers in here Nov 12 22:21:47 I must admit I am not the most adept of android developers, but my attempt here is rather basic. I managed to get gestures detected properly with Android's SDK, but my struggle is with moving over to glass Nov 12 22:22:10 let me search for ya Nov 12 22:22:20 DjolaChuleta I found a googleglass IRC channel for developers :D #googleglass Nov 12 22:23:04 Maybe they will have more information to help you out with Nov 12 22:23:48 Superb tip, Mallot1 Nov 12 22:24:07 Anytime =) Nov 12 22:24:25 hmm ron's review clearly shows the nexus 5 being faster than nexus 6 Nov 12 22:24:32 at loading apps Nov 12 22:24:38 and multitasking Nov 12 22:24:48 slow internal storage i guess Nov 12 22:25:34 guess i'm not getting a nexus 6:( Nov 12 22:25:46 but but it's bigger and NEW, priorities! Nov 12 22:25:57 this video is sad http://arstechnica.com/gadgets/2014/11/nexus-6-review-the-premium-price-still-comes-with-compromises/2/ Nov 12 22:26:25 Hi! Android L supports encryption without a password since it enforce encryption: What is then used to input the KDF scrypt? Just nothing? Nov 12 22:26:34 * OverCoder cries for 1.0f monthes Nov 12 22:26:36 dammit Nov 12 22:26:42 i'm dying to get the Nexus 6 Nov 12 22:26:48 anyone get ota on n5 yet Nov 12 22:42:19 OverCoder It didn't fix the problem Nov 12 22:42:28 idk Nov 12 22:42:43 Alright, thanks anyway man Nov 12 22:44:01 OverCoder, Mallot1, I've found the problem... I was importing the wrong libs (facepalm) Nov 12 22:44:25 * OverCoder facepalms Nov 12 22:44:29 DjolaChuleta: Haha happens to the best of us B) Nov 12 22:44:49 I was importing android.view.GestureDetector when I should have imported import com.google.android.glass.touchpad.*; Nov 12 22:44:49 DjolaChuleta: Good luck! Nov 12 22:45:24 aw if I saw your code I might of seen that Nov 12 22:45:48 When OverCoder mentioned about gestures for views and app level, that got me thinking... :) Nov 12 22:45:56 https://github.com/playgameservices/android-basic-samples/blob/master/BasicSamples/TypeANumber/src/main/java/com/google/example/games/tanc/MainActivity.java Anyone have suggestions for how to write the bottom two functions? saveLocal and loadLocal? Nov 12 22:46:22 Cheers for the support nonetheless. Good to see that there are nice people out there. Nov 12 22:47:23 B) Nov 12 22:47:32 no problem Nov 12 22:51:50 hey this might be a bit out there but does anybody know how to print a selector when an app crashes in objc_msgSend? Nov 12 22:52:46 felgenh3: Try a try catch statement Nov 12 22:53:14 yeah go to an ios channel lol Nov 12 22:53:31 my bad i'm on the wrong channel sorry Nov 12 22:53:44 felgenh3: #iOSDev #iphone-dev #iphone-chat Nov 12 22:54:48 felgenh3: #iOSDev #iphonedev #iphonedev-chat Nov 12 22:55:17 ok i have a mediaplayer and my oncompleted listener is being called before the video is completed. it gets called when the surface texture associated with the mediaplayer gets destroyed. Nov 12 22:55:25 wtf. Nov 12 22:55:28 y u do this. Nov 12 22:56:17 guys Nov 12 22:56:26 how can i be the "owner" of a channel? Nov 12 22:56:38 finally man, finally Nov 12 22:56:44 5.0 is finally here Nov 12 22:56:51 did you get your OTA Nov 12 22:57:16 Afzal: same here :) Nov 12 22:57:43 but no OTA, i flashed it directly Nov 12 22:57:50 JacobTabak, I'm not sure if L-Preview builds are getting an OTA. Will probably spend all night tonight flashing today :( Nov 12 22:57:59 yeah thats why i stayed away from the lpreview after the first Nov 12 22:58:00 Afzal: they dont Nov 12 22:58:06 not worth backing everything up Nov 12 22:58:07 makes sense tbh Nov 12 22:58:25 but flashing the official release over the preview is two terminal commands Nov 12 22:58:35 and then you will receive new OTAs again Nov 12 22:58:41 if VS2015 makes the emulator run on my laptop without VT-x i swear i'll start coding got .NET too Nov 12 22:58:42 danijoo, oh you didn't clear data? Nov 12 22:58:46 hehe Nov 12 22:58:53 Afzal: like to live dangerous :p Nov 12 22:59:02 fot* Nov 12 22:59:08 for* Nov 12 22:59:16 cliffreich, from the emulator video I saw. It's okay but it's not as good as genymotion. Looking forward to the accelerometer stuff in it though Nov 12 22:59:33 good night everyone Nov 12 22:59:37 Afzal: about reproducing this toolbar error, did you see my post on google issue page? Nov 12 22:59:44 danijoo, haha. I would, I do it for all release builds but eh, might as well just flash the thing Nov 12 22:59:53 which one? Nov 12 23:00:18 I posted an example project with a unit test that will force a crash on samsung 4.2.2 devices Nov 12 23:00:33 https://code.google.com/p/android/issues/detail?id=78377#c120 Nov 12 23:01:23 danijoo, interesting. So does it crash on touch in the actual app too? Nov 12 23:01:30 yep Nov 12 23:01:37 it happens on touch event Nov 12 23:01:54 but stacktrace points to onCreate which cuases some confusion Nov 12 23:01:59 well shit. I guess I need to test with that then. :/ Ugh, there's also another bug with SwitchCompat in the compact lib Nov 12 23:02:16 It doesn't draw the thumb drawable on some 4.2.2 devices, not all of them though Nov 12 23:02:20 Afzal: just write a small unit test and do a click in it. Nov 12 23:02:29 yeah I already read about that Nov 12 23:02:41 theres also an error that you cant create popupmenus on samsung Nov 12 23:03:01 will do in a bit. Interestingly, those devices (with the SwitchCompat) problem are the same devices that don't give any errors on NoSuchMethod for transitions Nov 12 23:03:53 for lollipop transitions Nov 12 23:04:21 ^^ Nov 12 23:04:25 those samsungs... -_- Nov 12 23:05:05 how long is the first 5.0 boot supposed to be? i'm waiting got half an hour for it to boot, already... Nov 12 23:05:14 it just plays that animation Nov 12 23:05:17 mkozjak: nexus 5? Nov 12 23:05:21 yeah Nov 12 23:05:30 mh Nov 12 23:05:36 it took me about 10 mins i guess Nov 12 23:05:45 prly depends on how much data you have Nov 12 23:05:47 and apps Nov 12 23:06:01 ^ Nov 12 23:06:08 almost nothing. didn't it erase everything before flashing? (adb) Nov 12 23:06:10 it has to encrypt everything, run dex2oat Nov 12 23:06:25 and do those ART compilations i think Nov 12 23:06:32 thats dex2oat i think Nov 12 23:06:35 oh ok Nov 12 23:06:58 Are there any open source media players that support HLS and EIA-608/708 closed captions on Android? Nov 12 23:10:37 speaking of mediaplayers, oh god we need a new mediaplayer API Nov 12 23:10:43 hopefully thats next year Nov 12 23:12:12 Yah, hard to find closed caption support to cover these FCC regulations. Nov 12 23:14:22 I have two activities in my app. The first I establish a connection to game services, then I switch to the second and back to the first. When I switch back to the first I am no longer connected to game services. Is there a way to switch back without losing the connection? Nov 12 23:14:55 if you connect in onStart() and disconnect in onStop() Nov 12 23:15:05 in both activities Nov 12 23:15:32 if it works anything like i expect (not speaking from experience) Nov 12 23:15:56 onStop() of the first activity is called after the onStart() of the second Nov 12 23:15:58 or use fragments to keep it bound Nov 12 23:16:43 JacobTabak: the connection is slower than the rest of the code.. Nov 12 23:16:54 danijoo: I'll look into fragments, are they like activities? Nov 12 23:16:59 gopirate: wait for the connection then Oo Nov 12 23:17:01 gopirate: no Nov 12 23:17:38 gopirate the connect callback will be fired immediately if you don't disconnect Nov 12 23:17:58 any way to check if a bundle is null besides b.toString().equals(ā€œ{[]}ā€) Nov 12 23:18:06 err not null but empty Nov 12 23:18:32 bundle.isEmpty()? Nov 12 23:18:58 ha.. must have passed that up on the docs... Nov 12 23:19:03 thx JacobTabak Nov 12 23:22:49 I donā€™t have a 7inch or 10-inch tablet to make my screenshots with is it ok just to do them in Photoshop? I know its works on both screen sizes. Only problem is I wouldnā€™t know what resolution to make them? Nov 12 23:24:36 where should i put assets folder in android studio? Nov 12 23:24:44 under mian/ or under main/res/ ? Nov 12 23:24:50 samB__: Just load up your layout file with sample data, and use the screen capture tool Nov 12 23:25:09 samB__ if you haven't designed your app for tablets, ie, different layouts, then don't bother uploading screenshots Nov 12 23:25:41 success: http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Project-Structure Nov 12 23:26:29 yiati: Thanks that does sound like a good option Nov 12 23:27:06 JacobTabak: My testers confirmed that it did work perfectly just didnā€™t think to ask them for all the screenshots in advance Nov 12 23:27:55 i guess what I'm saying is that a tablet user is more likely to download your app if the phone screenshots look good than if the tablet screenshots if the app doesn't have tablet-specific layouts Nov 12 23:29:31 ah I see what you mean JacobTabak , on tablets there is no specific layout the buttons just move closer to the edges of the screen and everything gets a little more spaced out. Nov 12 23:30:07 yea, so if it looks weird/too much whitespace, its better not to upload tablet screenshots Nov 12 23:32:00 ^ Nov 12 23:32:59 cmon ota Nov 12 23:33:05 i dont have time to goof around with backing everything up Nov 12 23:33:51 remove the -w flag from the flash-all script and the userdata.img file from the zip ... no-wipe upgrade. beats ota Nov 12 23:34:32 no shit? Nov 12 23:34:34 is this real? Nov 12 23:37:24 Thanks for the advice guys :) Nov 12 23:37:30 Now onto the icon! Nov 12 23:37:51 http://jgilfelt.github.io/AndroidAssetStudio/icons-launcher.html#foreground.space.trim=1&foreground.space.pad=0&foreColor=E8EAF6%2C0&crop=0&backgroundShape=square&backColor=3F51B5%2C100&effects=none&elevate=0 Nov 12 23:38:51 i just want to play a short .wav sound, isnt there just a soundclip.play function? Nov 12 23:38:57 mediaplayer Nov 12 23:39:15 mediaplayer.create(xxxx) mediaplayer.start() Nov 12 23:50:29 how can I tell which method is holding up the UI? I canā€™t navigate anywhere but I can update the UI using runnables.. Nov 13 00:08:52 u mean UI lag? Nov 13 00:09:00 use method profiling tricknology Nov 13 00:11:58 wtf is this E/MediaPlayerServiceļ¹• setVideoSurfaceTexture failed: -19 Nov 13 00:14:35 trying to use buttonBarStyle with listDivider in the LinearLayout, but the divider is not the full height of the layout Nov 13 00:16:20 hmmm, looks like google stopped selling the Nexus 7 Nov 13 00:17:00 not lag JacobTabak, the UI is frozen, like itā€™s waiting for something to complete. screen has dimmed but I canā€™t push the buttons or go back, but I get haptic feedback on the back button Nov 13 00:17:12 is your debugger attached Nov 13 00:17:19 and at a breakpoint Nov 13 00:19:06 lol negative Nov 13 00:19:25 buut i think it just fixed itself.. idfk haha Nov 13 00:19:26 sweet.. Nov 13 00:27:07 god, android plugin 0.14.2 changes so much crap again Nov 13 00:41:09 Hello Nov 13 00:41:36 I accidently removed Android 5.0 from my build path. How would I add it back? Nov 13 00:41:49 add it in the sdk manager... Nov 13 00:44:02 pfn: I already installed the package but I removed it from my build path. Where would I go to add it back Nov 13 00:44:11 install the package Nov 13 00:44:18 wtf does it mean to "remove it from your build path" Nov 13 00:44:22 there's no such thing Nov 13 00:44:23 The on;y option is to delete package Nov 13 00:45:51 anyone ever notice that if you send messages through to a Handler too fast that the messages can come through out of order? Nov 13 00:46:06 no threads, no async tasks Nov 13 00:46:45 you using Eclipse? Nov 13 00:46:49 Mallot1 Nov 13 00:47:09 pfn: Right click your Android Private Libraries goto the Build Path option and you will see it Nov 13 00:47:12 right click project.. build path.. Java Build Path Nov 13 00:47:40 Google APIs, add 5.0 Nov 13 00:47:53 or go to Android, select your target Nov 13 00:49:19 trickology: I only have Android Dependencies and Android Private Libraries Nov 13 00:51:16 Am I connected Nov 13 00:51:21 nevermind Nov 13 00:53:40 tricknology: I only have Android Dependencies and Android Private Libraries Nov 13 00:56:45 I have those but also Google APIs [Android 3.0] Nov 13 00:56:59 go to the Android section in the same build path window Nov 13 00:57:10 Project build target.. is anything selected? Nov 13 00:57:21 maybe you want 5.0 selected Nov 13 00:58:16 time to go home.. late haha Nov 13 00:58:24 maybe see you guys online at home Nov 13 00:58:26 thanks man Nov 13 00:58:28 I'll try it Nov 13 00:58:44 I couldn't find the Google API's Nov 13 00:59:13 well.. thatā€™s what mine says because I use Google APIs Nov 13 00:59:17 I downloaded them in the SDK manager Nov 13 00:59:26 if its not there maybe you didnā€™t download it Nov 13 00:59:51 which Google API the Android 5.0 one Nov 13 01:00:04 which is your favorite? android studio or eclipse? Nov 13 01:00:08 heh no my project target is Android APO 3.0 Nov 13 01:00:23 btu you probably want Android 5.0, Android Opern Source Project, 5.0, 21 Nov 13 01:00:29 oh so I would get the 5.0 one? Nov 13 01:00:36 if you want to target 5.0... Nov 13 01:00:47 yeah thats what I thoug. I accidently removed it from the build path Nov 13 01:00:51 like I target 3.0ā€¦ it still works on 5.0 Nov 13 01:00:57 I just uninstalled and am reinstalling it right now Nov 13 01:01:03 heh that will work Nov 13 01:01:07 etudor: Eclipse Nov 13 01:01:20 if you don;t see it in your project target IDK where to look Nov 13 01:01:27 etudor: At least until Android Studio matures Nov 13 01:02:02 etudor: I use Eclipse but it can be frustrating sometimes, it does stupid stuff but I like it > AS or Intellij, mainly because Iā€™ve been using it for years and switching to a new IDE would be time consuming with the learning curve Nov 13 01:02:08 ^& Nov 13 01:02:45 :) Nov 13 01:03:44 i just started android development about a month ago and i use android studio Nov 13 01:03:55 then stick with it Nov 13 01:04:04 it will be official release soon Nov 13 01:04:31 i just love the java autocomplete ide Nov 13 01:05:17 etudor: my favourites are the new IJ 13 shortcuts : Collection.for Nov 13 01:05:24 also 'fori' Nov 13 01:05:53 yeah eyah code completion, blah blah Nov 13 01:05:54 what are those? please give me a link Nov 13 01:05:57 only thing Iā€™m jelly of Nov 13 01:05:59 and Gradle Nov 13 01:06:19 and if I sit for a few minutes Iā€™m sure Iā€™ll think of more.. Nov 13 01:06:58 i have been a php developer so far and used sublime text, poor autocomplete in php language Nov 13 01:07:41 what AS or IntelliJ canā€™t do, to my knowlege is run an Apache server from the same IDE Nov 13 01:07:56 etudor: they are called "code templates" -- you should see them under settings somewhere Nov 13 01:08:06 later Nov 13 01:08:28 oh, yees, code templates :D Nov 13 01:09:01 i only use 'for' and 'fori', but there's a few others Nov 13 01:09:53 i don't use them so often :( Nov 13 01:10:18 you'll probably enjoy multi-cursor, that was taken from sublime Nov 13 01:10:56 i just can't remember the shortcut to multi select same word Nov 13 01:11:04 in sublime was ctrl d Nov 13 01:11:42 check out IDEA's/AS's "history for selection" feature for git, if you haven't seen it yet Nov 13 01:12:02 shows a list of changes affecting only the text you have selected Nov 13 01:12:19 freakin' awesome feature :) Nov 13 01:12:36 is that new? i haven't seen it, but man that'd be helpful Nov 13 01:12:45 it's been around a while. dunno when it was added Nov 13 01:12:52 it's like git blame on steroids Nov 13 01:13:32 niiice Nov 13 01:14:43 what theme do you use? Nov 13 01:15:24 darkula theme overall, with a dark solarized editor theme Nov 13 01:16:29 and font? Nov 13 01:16:50 whatever's default Nov 13 01:17:01 I don't really care about font :) Nov 13 01:20:20 comic sans Nov 13 01:22:16 With some exceptions ;) Nov 13 01:23:49 Hello I have an error: Nov 13 01:24:17 nice story Nov 13 01:24:24 error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'. Nov 13 01:24:32 bankai_au: Thanks Nov 13 01:24:45 also Nov 13 01:25:08 error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'. Nov 13 01:25:31 Does anyone know how to fix this? Nov 13 01:27:20 Mallot1: https://developer.android.com/tools/support-library/setup.html Nov 13 01:28:35 bankai_au: I have those installed Nov 13 01:29:12 you need to read further down the page than the first 1/3 Nov 13 01:34:08 Mallot1: if you use Android studio in your build.gradle add Mallot1 Nov 13 01:34:14 compile 'com.android.support:appcompat-v7:20.0.0' Nov 13 01:34:32 to your dependencies Nov 13 01:34:39 it magically works for me Nov 13 01:35:58 etudor: Thanks, I'm using Eclipse but that information will come in handy though in the future Nov 13 01:41:54 weird, searchview doesn't show up for me if I use the compat tags and class Nov 13 01:42:15 it only shows up if I use the native attrs and class Nov 13 01:42:29 even though my activity extends action bar activity... Nov 13 01:46:21 I guess I need to version check it, annoying Nov 13 01:57:32 the sharedpreferences of a application can be accessed by another application? i want to save a username and password and don't really know where Nov 13 02:29:23 aww yea got me some lollipops Nov 13 02:40:55 JacobTab_: suck it! Nov 13 02:51:17 #lazywebs any way sneaky way to check if a request has a cached response in retrofit before I make it? Nov 13 02:54:20 Hi everyone, I'm trying to connect to a server on android using XMPP(smack4.0.5) It is SSL/TLS enabled and requires a secure connection. The certificate has been signed by Comodo. When I attempt to connect I get a connection timeout. Yet when I disable the security on both sides the connection works flawlessly. Help? Nov 13 02:56:07 have you tried connecting to the server w/ a different type of client Nov 13 02:56:16 conncetion timeout kind of sounds like server misconfiguration Nov 13 02:57:15 I have, but I was using the server to server port for that Nov 13 02:57:36 that seems to work flawlessly as well but it's only secured with a secret key Nov 13 02:59:23 security is essential because this'll be used as an extension to a banking app **** ENDING LOGGING AT Thu Nov 13 03:00:00 2014