**** BEGIN LOGGING AT Fri Feb 06 02:59:59 2015 Feb 06 03:05:05 These unit tests are still passing when they shouldn't be. Using AS 1.1 Beta 4. Feb 06 03:06:24 JakeWharton: Are you able to get any tests to fail? Feb 06 03:06:38 haven't tried Feb 06 03:06:54 did you verify the fix made it into the beta? Feb 06 03:07:01 future release != next release Feb 06 03:07:42 Yeah: http://tools.android.com/recent/androidstudio11beta4released Feb 06 03:10:36 TacticalJoke, whoa, didn't know about that Ctrl+space in find thing. Feb 06 03:10:40 The weird thing is that I don't recall updating to Beta 4, and when I opened Android Studio just now it was on Beta 4. Feb 06 03:10:49 There's no new update in any update channel. Feb 06 03:16:07 I'm about to design an android app Feb 06 03:16:26 And I was wondering if anyone could give some big picture advice on how to get different sections communicating with each other Feb 06 03:17:02 I'm trying to choose fragments vs activities, how to lay things out, and stuff Feb 06 03:18:22 The best approach depends on the specifics. Feb 06 03:18:46 I will have a main page with some icons at the top Feb 06 03:18:58 I will hop between different views, and sorting of output based on buttons at the bottom Feb 06 03:19:07 I will switch entirely to a submission or a settings section Feb 06 03:20:35 TheKarlBrown: It's a bit topic. Event buses used to be a good way for this kind of communication but it looks like Rx is slowly gaining in that area Feb 06 03:20:40 s/bit/big Feb 06 03:21:29 Can you link me some examples or explain further? Feb 06 03:22:04 deuteros__: an event bus is still a useful pattern Feb 06 03:25:02 God, reddit needs a Preview button for comments. Feb 06 03:25:30 deuteros__: have some example code I could look at? Feb 06 03:28:54 TheKarlBrown, d.android.com is a good place to start :) Feb 06 03:29:16 LOL Feb 06 03:29:24 I'm a bit father in the process than that Feb 06 03:29:56 I'm trying to decide how I pass current selections between fragments Feb 06 03:30:12 and when to fragment vs when to activity Feb 06 03:30:15 and if there are good alternatives Feb 06 03:30:16 Is anyone able to get JVM unit tests to fail in an Android module in AS 1.1 Beta 4? Not sure whether there's something wrong with my AS setup, since they said this is working now. Feb 06 03:30:57 pass an ID in the Bundle for setArguments on a fragment Feb 06 03:31:07 I personally have been using one activity that hosts various fragments, but I don't know that that's the best approach. for passing data between fragments/activities, research Bundles and Intents Feb 06 03:32:46 so you arent switching activities ever? regardless of the situation? Feb 06 03:34:19 I wonder how that stacks up with asynctask Feb 06 03:35:58 ladies! Feb 06 03:36:11 dont suppose anyone here has done anything with rtpstream Feb 06 03:43:21 TheKarlBrown, I haven't had the need to Feb 06 03:43:44 this place has kinda gone to shit now, hasnt it Feb 06 03:49:27 ron_frown: That's what you call a hasty generalisation. Feb 06 03:49:44 ron_frown, has it? Feb 06 03:50:18 since I used to hang out in this bitch Feb 06 03:50:19 yeah Feb 06 03:50:32 none of the google team it seems Feb 06 03:50:59 The Google team doesn't know anything anyway... Feb 06 03:51:02 g00s where are the regulars Feb 06 03:51:15 "this place has kinda gone to shit now"... "I used to hang out in this bitch" Feb 06 03:51:15 oh man diane probably stopped hanging out here because of me Feb 06 03:51:53 I don't think Dianne ever hung out here, did she? Feb 06 03:52:05 yes she sure did Feb 06 03:52:29 leeds a nick I actually recognize Feb 06 03:53:20 Btw, hi, I'm new :) so, I dunno anything really about this channel. Seems like it has quite a history. Feb 06 03:53:44 android has done this to me Feb 06 03:54:16 ron_frown: in my logs, I see her here once, in 2009... not sure I'd call that "hanging out" :) Feb 06 03:54:27 justJanne: Please, tell us about your history with alcohol. Feb 06 03:54:29 Oops, wrong channel. Feb 06 03:54:40 I am also new. you gonna ask me that question too? xP Feb 06 03:54:41 lots of people quoting her, quite rightly... Feb 06 03:55:13 TacticalJoke: do I know you? :o Feb 06 03:55:58 anyone know of a good windows hex editor that is like HexFiend? Feb 06 03:55:58 oh yeah, what you talking about bro? Old elementary school buds gettin it together with android Feb 06 03:55:59 Just kidding. Sounded like the "My name is , and I am an alcoholic" thing. :D Feb 06 03:56:01 been too log? Feb 06 03:56:05 long* Feb 06 03:56:20 I want to switch between LE and BE, as well as highlight bytes and see their int value Feb 06 03:56:28 HxD doesnt do that.. Feb 06 03:56:38 Sigh. I've been waiting for months for JVM-unit-testing support in AS, and they finally "fix" it and everything and it doesn't work. God dammit. Feb 06 03:57:25 i'm og Feb 06 03:57:44 TacticalJoke welcome to android Feb 06 03:57:51 at least you guys have android studio Feb 06 03:58:14 somepeople will never know the nightmare of crappy eclipse Feb 06 03:58:19 <--- Elipse 5 lyfe Feb 06 03:58:20 No, we program on punchhole cards and use plankalkül, if at all. Feb 06 03:58:35 FORTRAN.. yummy Feb 06 03:58:48 In certain ways, I prefer Eclipse + ADT to Android Studio. Feb 06 03:58:52 Though I prefer the latter overall. Feb 06 03:58:55 someone suggested to me yesterday that I should setup a clone of my dev environment for a junior guy, so he could learn how I work... I said that wasn't a great idea, since vim+ant :D Feb 06 03:59:02 technically plankalkül can't be represented on punchcards... Feb 06 03:59:26 just kill yourself now leeds Feb 06 03:59:30 I know, I read the manual of the Z22 recently. Feb 06 03:59:33 One of you guys has to be trying unit testing in AS 1.1 Beta 4. If so, let me know whether any tests fail! Feb 06 04:00:00 While drinking with a guy who us a professor at my university and worked at Intel before. Comp arithmetics. Feb 06 04:00:03 lets put things this way Feb 06 04:00:14 I did java for years and years Feb 06 04:00:19 left java for other languages Feb 06 04:00:22 TacticalJoke: there is a bugreport, and a proposed fix for that. Feb 06 04:00:22 did some android dev Feb 06 04:00:29 got stuck back into java land Feb 06 04:00:35 quit a very high paying job to just be done with it Feb 06 04:00:36 justJanne: They claim it's fixed in Beta 4, but from what I can see it's not. Feb 06 04:00:46 ron_frown: if android would just do Java 8, we could do so much more stuff. Feb 06 04:00:53 meh Feb 06 04:00:58 ron_frown: You could use Kotlin now. Feb 06 04:00:59 its all very half assed attempts Feb 06 04:01:08 with my coworkers I couldnt Feb 06 04:01:10 It's Java++. Feb 06 04:01:12 I wanna do lambdas and closures, with map and linear folds. Feb 06 04:01:14 Or maybe Java += 5. Feb 06 04:01:53 And I wanna use DrRackets simple testing in Java. Feb 06 04:02:10 j8 would be so nice... Feb 06 04:02:15 maybe in 2020 Feb 06 04:02:23 my boss was like lets convert from .net apps to doing shit in java Feb 06 04:02:33 so I moved our architecture over, and yes it was hugely shitty Feb 06 04:02:39 We recently learned how to do java-like name spacing and inheritance in racket. That was amazing. Feb 06 04:02:46 so he asks me to helps setup his workstation Feb 06 04:02:58 and then he hits gradle sync Feb 06 04:03:10 literally nothing else running and machine was completely unusable whilst syncing Feb 06 04:03:16 well, thats java for you =) Feb 06 04:03:17 lol Feb 06 04:03:32 That's not java, that's just shitty code. Feb 06 04:03:45 Java is having enums without extensibility. Feb 06 04:03:57 (Thanks to interfaces with defaults they do, now) Feb 06 04:04:25 so, semi-topic... we did all see https://www.youtube.com/watch?v=vnVuqfXohxc a few times, right? :D Feb 06 04:04:28 Or having a language where no value types exist, and therefore int and Integer are seperate Feb 06 04:04:37 So I was reading about GCM a little bit during my telecom management class earlier tonight and it sounded like GCM needs it's own server, independent of my backend server, to run? I thought that my server would just make requests to Google's server and THAT would send GCM messages to devices? Feb 06 04:04:38 To be fair, they'll probably support Java 8 in 2018. Feb 06 04:05:07 Hmm, 2018 is only three years away. We appear to live in the future. Feb 06 04:05:56 hey ron_frown Feb 06 04:06:02 yo Feb 06 04:06:11 Until then, I'll probably have written a precompiler for Android-studio simple java, or ass-java Feb 06 04:06:29 justJanne: Have you checked out Kotlin? Feb 06 04:06:32 quit my job g00s Feb 06 04:06:41 if you are doing searches can in be in a fragment or does it have to be in an activity Feb 06 04:06:41 ron_frown d'oh ! Feb 06 04:06:42 they moved my badass software to java Feb 06 04:06:47 I really, emotionally, hate the fragment life cycle and the Google APIs Feb 06 04:06:52 I tried to keep open mind Feb 06 04:06:56 but reality set in Feb 06 04:07:00 ron_frown maybe you could have used kotlin :) Feb 06 04:07:07 no Feb 06 04:07:08 I couldnt ahve Feb 06 04:07:15 I work totally retarded people Feb 06 04:07:18 I wish they'd picked a better name than "Kotlin". Feb 06 04:07:27 there is one other guy that I'd consider to be a software engineer Feb 06 04:07:28 AwesomeLang Feb 06 04:07:38 TacticalJoke lke 'go' :) Feb 06 04:08:22 Like I want to use the search widgit, can I use it with fragments? Feb 06 04:08:24 ron_frown wat, dianne used to be here ? Feb 06 04:08:35 i bet she wanted to beat your ass :) Feb 06 04:09:51 yeah Feb 06 04:09:52 srs Feb 06 04:09:54 g00s: approximately once Feb 06 04:10:46 lots of people used to hang out here Feb 06 04:10:53 whats his face the UI guy Feb 06 04:11:16 romain Feb 06 04:12:05 Is there a way to undo an Android Studio update? Feb 06 04:12:05 ron_frown did you see glass team gets reboot ? Feb 06 04:12:08 yeah romain Feb 06 04:12:22 I heard glass was getting changed up Feb 06 04:12:25 but I odnt know anything Feb 06 04:12:37 ron_frown also that ms thing, hololens or whatever, looked cool. wonder if it works as well in real life Feb 06 04:12:40 all my augmented reality research went out the windows Feb 06 04:13:58 i just installed this little MS app on my lumia, called office lense - which lets you take a picture of a whiteboard, piece of paper, etc ... and it flattens it out Feb 06 04:14:23 it flattens it out? Feb 06 04:14:28 pretty cool, i tried it on a few things. the XP guys would have gone nuts with this 10 years ago :) Feb 06 04:14:37 ron_frown adjusts perspective Feb 06 04:14:46 cool Feb 06 04:14:52 hows work going Feb 06 04:15:01 you end up getting that work you were looking into with kestrel shit Feb 06 04:17:01 does android studio recover changes if it crashes? Feb 06 04:17:06 unsaved changes at that Feb 06 04:17:11 not that I've seen Feb 06 04:17:25 damn... mine just froze up Feb 06 04:17:30 Changes to what? Feb 06 04:17:33 code Feb 06 04:17:37 Yeah, it should. Feb 06 04:17:41 It auto-saves often. Feb 06 04:17:52 that makes me feel a bit better about killing the process Feb 06 04:18:09 It auto-saves when you compile, for example. Feb 06 04:18:12 When you Alt+Tab. Feb 06 04:18:31 ah, ok, I have been tabbing out a lot to read stuff Feb 06 04:18:35 so thats reassuring Feb 06 04:18:48 Do you use version control, BTW? Feb 06 04:18:53 Git Feb 06 04:18:58 hosted on separate machine Feb 06 04:19:12 Okay. I guess you might be able to tell whether it saved enough from "git diff". Feb 06 04:19:12 to be specific, I use gitlab to manage the SSH and web UI, etc. Feb 06 04:19:28 except it only saves the changes when i vcs commit Feb 06 04:19:31 :/ Feb 06 04:19:43 it saved the changes, i just loaded it back up Feb 06 04:20:09 You can also Ctrl+S (on Windows, anyway) to manually save everything. Feb 06 04:20:17 I do that often, even though IntelliJ auto-saves a lot. Feb 06 04:20:32 I also enabled the "dirty file" mark. Feb 06 04:21:24 I just created a new Tabbed Activity with Android Studio, and right off the bat I'm getting an null pointer exception on this section of code "final ActionBar actionBar = getSupportActionBar(); actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS); " Any ideas what that's about? Feb 06 04:22:36 t0astt: your initial understand is correct, anything can make requests to google's gcm requests. I test GCM with curl. Feb 06 04:23:11 Settings > Editor > Editor Tabs > Mark modified tabs with asterisk Feb 06 04:24:06 My grammar was pretty terrible on my previous line, sorry about that Feb 06 04:25:39 <_genuser_> interesting. calling ProgressDialog twice back to back doesn't show the new one. just hangs up on the first one. Feb 06 04:27:23 Does Google just not test anything? The bugs they have are insane. Feb 06 04:28:27 what's the equivalent of eclipse F5 in AS? Feb 06 04:29:27 What does F5 do again? Feb 06 04:29:44 refresh all project files from what they are on disk Feb 06 04:29:50 which is the easiest way to use an external editor Feb 06 04:29:59 Doesn't IntelliJ do that by default? Feb 06 04:30:10 maybe, i'm just starting to use AS Feb 06 04:30:15 that'd be handy Feb 06 04:30:15 At least when coming back into the window. Feb 06 04:30:16 In Eclipse, you never need to refresh anything. In AS, you need to. All the freaking time. Feb 06 04:30:26 there's a right click option and 'sync', dunno the shortcut Feb 06 04:30:31 i always had to F5 in eclipse to pick up changes Feb 06 04:30:34 ok thanks Feb 06 04:30:43 I don't need to manually refresh stuff in Android Studio ever, even when externally edited. Feb 06 04:30:47 gradle seems ok so far...maybe i haven't used it enough Feb 06 04:30:57 myke: You can configure Eclipse to use the "OS hooks", it monitors the file system and you never have to refresh Feb 06 04:31:08 deuteros__: Did you say the opposite of what you meant? Feb 06 04:31:26 in eclipse, about the only times i need to manually refresh are when i add/remove files in the project outside the ide and when i change files on disk in a way it can't really be aware of. (like scping a file to the box from within a terminal inside eclipse.) Feb 06 04:31:33 With AS, I touch my build.gradle, AS KNOWS the file is modified and it still waits for me to manually sync. WTH Feb 06 04:32:14 i do nearly all my coding/editing completely outside eclipse and as with a standalone editor Feb 06 04:32:27 myke: AS should auto-refresh in those cases. Feb 06 04:32:35 TacticalJoke: awesome Feb 06 04:32:40 as should eclipse. at least on windows and osx. Feb 06 04:32:45 I do that all day long and it does. Feb 06 04:32:57 this would be all on linux so maybe i have to enable it like deuteros__ said Feb 06 04:33:23 it may be just some suck part of the linux vfs stuff that eclipse never added. Feb 06 04:33:37 or it may be off by default or something on linux. Feb 06 04:33:47 hitting F5 wasn't really a problem just didn't know if AS needed manual sync as well Feb 06 04:34:33 Should I update that bug and say that unit testing still isn't working in AS? Feb 06 04:40:24 deuteros__ it ised to be that AS automatically did a sync, but it caused some issue Feb 06 04:40:29 This looks interesting: "Separate test task (performanceTest)": https://android-review.googlesource.com/#/c/129220/ Feb 06 04:40:44 its obviously much more heavyweight than eclipse doing f5-type sync Feb 06 04:42:19 but unfortunately, even at AS 1.1.0 i'm *still* having problems with the IDE not being on the same page as gradle, or reality. Like i have to build to find errors, or this dam gradle DSL thing i keep running into , AS is oblivious to generated code Feb 06 04:42:50 command line build is fine, but my generated code is red-lined in the IDE as missing Feb 06 04:42:53 I hate having to manually build to find errors. Feb 06 04:43:10 Eclipse was simply better here. Feb 06 04:43:15 Ctrl+S --> instant errors everywhere. Feb 06 04:43:22 Or Ctrl+Shift+S, I guess. Feb 06 04:43:31 this thing: variant.registerJavaGeneratingTask(ragelTask, variantDir) <-- works 50% of the time Feb 06 04:44:02 but i can't reproduce the problem easily, it just stops working. code is there, everything is fine, IDE is oblivious Feb 06 04:45:02 I'm at a total loss on how to do this viewpager activity with the hangouts-style tabs :P Feb 06 04:50:29 should I do my navigation bars at the top and bottom (when application) with the action bar or as parts of the main activitys layout? Feb 06 04:52:26 im reading that I should use drawerlayouts on the main activity Feb 06 04:59:39 I love when Android Studio complains about imports that work correctly. Feb 06 05:01:17 "Are you sure you want to import org.android.annotations.Nullable? It seems to work just fine" Feb 06 05:07:36 I want an array adapter to render a bunch of models into a listview Feb 06 05:07:46 how to plumb the data in the model into the listview? Feb 06 05:10:07 n Feb 06 05:10:08 nm Feb 06 05:15:20 I love when it tries to get me to import com.myname.R lol Feb 06 05:15:25 Like.... WHAT?! Feb 06 05:18:18 t0astt: That's needed in subpackages. Feb 06 05:18:28 SO this might be a stupid question, but my main activity has a drawerlayout and a toolbar and a container where fragments get placed into. Is it possible for instead of a fragment to get placed into the container, an activity gets placed into the container? Feb 06 05:18:58 TacticalJoke: In response to the import com.myname.R thing? Or my activity in the container? Feb 06 05:19:29 The import thing. Feb 06 05:19:35 Oh ok Feb 06 05:20:59 t0astt no, thats not possible Feb 06 05:22:08 Hmm. So how could I go about getting a viewpager in that framelayout (the container) and be able to swipe between fragments there? I need to make sure that the sliding drawer and toolbar that are present in my main activity are present in the new activity Feb 06 05:22:33 I used this example to get the viewpager activity working Feb 06 05:22:33 http://www.javacodegeeks.com/2013/04/android-tutorial-using-the-viewpager.html Feb 06 06:03:05 huh, everytime i go to rxjava wiki it seems like there is less there, i could swear there was a section on grouped observables Feb 06 06:08:23 it's moving to reactivex Feb 06 06:13:02 Is there a way to use the toolbar with lower app compatibilities? Feb 06 06:13:21 Lower than what? Feb 06 06:13:31 21 Feb 06 06:13:44 I wanted to use it in a layout Feb 06 06:13:52 But Studio got angry at me :3 Feb 06 06:13:53 http://android-developers.blogspot.co.uk/2014/10/appcompat-v21-material-design-for-pre.html Feb 06 06:14:06 Which talks about this: http://developer.android.com/reference/android/support/v7/widget/Toolbar.html Feb 06 06:14:25 (Among other things.) Feb 06 06:15:28 ugh it still says my view requires 21 :[ Feb 06 06:15:56 Then you're doing something wrong. Feb 06 06:16:09 hmmmm Feb 06 06:17:12 OMG I DID IT Feb 06 06:17:16 *hugs magic internet man* Feb 06 06:19:22 So are the support librarys less efficient? Feb 06 06:21:09 I doubt it. I've seen support-library code that's more or less a copy-paste of the original. Feb 06 06:21:54 Personally, I use the support lib wherever possible (e.g., for Fragments), because then I get consistent behaviour on various Android versions. Feb 06 06:23:15 s/lib/libs/ Feb 06 06:23:40 Interdasting Feb 06 06:43:04 Hmm. My Android Studio EXE is showing that it was last modified on 2015/02/03. Feb 06 06:43:24 3rd February. Feb 06 06:43:35 And yet it claims to be Beta 4. Feb 06 06:43:45 (And I didn't update to Beta 4.) Feb 06 06:43:47 Weird. Feb 06 06:44:30 But the .vmoptions files are showing the right date (today). Feb 06 06:45:38 Can someone verify whether this is fixed in Beta 4? https://code.google.com/p/android/issues/detail?id=131080 Feb 06 06:45:42 If so, my installation is just broken. Feb 06 06:47:40 I have a question regarding intent Feb 06 06:47:58 I am trying to call a activity when i select an item from list Feb 06 06:48:14 I tried creating an intent but didnt worked Feb 06 06:48:28 need some help on this Feb 06 06:48:40 post your code Feb 06 06:48:41 startActivity(new Intent(this, MyActivity.class)) Feb 06 06:50:03 If I uninstall Android Studio, I hope I don't lose all my settings. (I'm guessing not, but you never know.) Feb 06 06:50:33 public class DisplayMessageActivity extends Activity { Feb 06 06:50:40 this is my activity Feb 06 06:50:43 Use pastebin. Feb 06 06:50:49 And post more than one line. :D Feb 06 06:52:45 /* Feb 06 06:52:45 * Copyright (C) 2013 The Android Open Source Project Feb 06 06:52:45 * Feb 06 06:52:45 * Licensed under the Apache License, Version 2.0 (the "License"); Feb 06 06:52:46 * you may not use this file except in compliance with the License. Feb 06 06:53:01 * You may obtain a copy of the License at Feb 06 06:53:01 * Feb 06 06:53:01 * http://www.apache.org/licenses/LICENSE-2.0 Feb 06 06:53:01 * Feb 06 06:53:01 * Unless required by applicable law or agreed to in writing, software Feb 06 06:53:01 /* Feb 06 06:53:02 * Copyright (C) 2013 The Android Open Source Project Feb 06 06:53:02 * Feb 06 06:53:03 * Licensed under the Apache License, Version 2.0 (the "License"); Feb 06 06:53:03 * you may not use this file except in compliance with the License. Feb 06 06:53:03 TacticalJoke: export your settings to google drive or somewhere, then import them in the new install Feb 06 06:53:04 * You may obtain a copy of the License at Feb 06 06:53:04 * Feb 06 06:53:05 * http://www.apache.org/licenses/LICENSE-2.0 Feb 06 06:53:05 * Feb 06 06:53:09 oh dear Feb 06 06:53:27 public class DeviceScanActivity extends ListActivity { Feb 06 06:53:27 private LeDeviceListAdapter mLeDeviceListAdapter; Feb 06 06:53:27 private BluetoothAdapter mBluetoothAdapter; Feb 06 06:53:27 private boolean mScanning; Feb 06 06:53:27 You missed the "use pastebin" part. Feb 06 06:53:27 private Handler mHandler; Feb 06 06:53:28 private static final int REQUEST_ENABLE_BT = 1; Feb 06 06:53:28 // Stops scanning after 10 seconds. Feb 06 06:53:29 private static final long SCAN_PERIOD = 10000; Feb 06 06:53:30 @Override Feb 06 06:53:30 public void onCreate(Bundle savedInstanceState) { Feb 06 06:53:42 sorry guys Feb 06 06:53:57 TacticalJoke: export your settings to google drive or somewhere, then import them in the new install Feb 06 06:58:08 Thanks. Feb 06 06:59:37 Personally, I have my IDEA/Eclipse settings saved to google drive and importing them is the first thing I do after a new install Feb 06 07:00:18 i change so few from the defaults i don't bother to save anything Feb 06 07:00:27 :D Feb 06 07:01:46 My main changes are keyboard-shortcut-related. Feb 06 07:02:03 Same, a few keybindings altered, but I try not to customize too much either Feb 06 07:05:57 Hoping that the bug really is fixed. Let's see... Feb 06 07:06:06 It takes forever to reinstall AS. Feb 06 07:07:13 ugh my android studio is bugged it wont find setSupportActionBar Feb 06 07:07:38 I strongly doubt it's an AS bug Feb 06 07:07:41 I guess you're not subclassing ActionBarActivity. Feb 06 07:07:44 TheKarlBrown maybe you don't have the support libs in your deps Feb 06 07:07:52 I do Feb 06 07:07:54 I just added them Feb 06 07:07:59 or yeah, TacticalJoke Feb 06 07:08:09 compile "com.android.support:appcompat-v7:21.0.+" Feb 06 07:09:12 TacticalJoke Feb 06 07:09:16 Just Feb 06 07:09:18 Jesus dude Feb 06 07:09:47 TacticalJoke is no joke Feb 06 07:10:31 It's a common mistake. :) Feb 06 07:11:02 gaganchd2000: Y'all need to learn how to use pastebin. Feb 06 07:11:30 You can't tell TacticalJoke that this is no joke, come on Feb 06 07:12:20 I shouldn't have picked this username. It doesn't sound serious enough. (It's my old chess username.) Feb 06 07:12:55 How about TacticalSeriousStatement? Feb 06 07:12:57 Yes i have learnt how to use pastebin Feb 06 07:13:26 Now I have to decide if I do it standalone and do specific clicks or I do the action bar hmmmmm Feb 06 07:14:32 StrategicSeriousness Feb 06 07:17:41 oh man, i was thinking about this years ago, now apple got a patent http://appleinsider.com/articles/15/02/05/apples-indoor-traffic-concept-would-estimate-wait-times-at-the-airport-grocery-store-dmv-more Feb 06 07:18:29 Ok guys should I keep the action bar methods like createoptionsmenu and and onOptionsSelection and do 3 options bar or make them all independent toolbars? Feb 06 07:18:47 tool bars as action bars* Feb 06 07:19:05 What do you mean by "three options bars"? Feb 06 07:19:33 Sounds like a bunch of cool places to hang out and drink coffee. Feb 06 07:19:55 one doesn't drink coffe in an action bar Feb 06 07:19:56 3 action bars Feb 06 07:20:27 I'm going to have 1 top and 2 bottom that go across multiple activities, one continually at top for most of the time and mainly inflated Feb 06 07:20:31 Toolbar is the new thing. It's recommended by Google. Feb 06 07:21:02 but I mean Feb 06 07:21:09 It's kinda weird, though, because (as far as I can tell) there is no way to show the default 'up' icon on it without calling setSupportActionBar. Feb 06 07:21:19 Unless you want to include the image manually. Feb 06 07:21:37 Why would they leave that out? Bizarre. Feb 06 07:22:22 Like, I wanna use Toolbar without the lame ActionBar API. But then I have to manually include an 'up' image. Feb 06 07:23:06 My question is clearly not being conveyed properly :3 Feb 06 07:23:42 TheKarlBrown: Is it even possible to do that with ActionBar? Feb 06 07:24:15 Ok then I'm going to set lots of onClicks to toolbars in my onCreate then Feb 06 07:24:18 probably the move Feb 06 07:37:02 Ugh. All that time reinstalling Android Studio for nothing. Feb 06 07:37:06 Tests still don't fail. Feb 06 07:37:06 i have a fragment at the bottom of my screen.This fragment has a search view and items below it. The items can be filtered by typing in the search view. The problem is that the keyboard covers all the items when typing.Any ideas on how i can allow the user to type while seeing what items get filtered? Feb 06 07:39:39 i have a fragment at the bottom of my screen.This fragment has a search view and items below it. The items can be filtered by typing in the search view. The problem is that the keyboard covers all the items when typing.Any ideas on how i can allow the user to type while seeing what items get filtered? Feb 06 07:42:19 TacticalJoke oh my - it was laughable they screwed that up to begin with Feb 06 07:42:23 doesn't the keyboard push out all the above layout when it pops up, gmg85 ? Feb 06 07:43:37 Odaym: the only thing that's visible is my searchview,not the stuff below it Feb 06 07:43:48 see configChanges property in Manifest Feb 06 07:43:59 something like this http://stackoverflow.com/questions/10872001/android-layout-got-messed-up-when-soft-keyboard-is-shown Feb 06 07:44:32 you can make the keyboard push up the layout so there is room for everybody Feb 06 07:45:23 g00s: Yeah. Ridiculous. Feb 06 07:45:24 Odaym: at least that guy is lucky they can see part of the items they are searching for..my child fragment is not that tall so it gets covered up quite easily Feb 06 07:45:38 there is no luck involved! Feb 06 07:45:41 let me try the activity options in that solution see if it helps Feb 06 07:46:12 aye...no luck....just code :) Feb 06 08:03:57 mornings Feb 06 08:04:50 This just seems misguided: http://www.reddit.com/r/androiddev/comments/2uxatg/intermediateadvanced_android_book/ Feb 06 08:05:00 Basically "I want to learn Android programming without doing Android programming. What is the best way?". Feb 06 08:06:12 LOL Feb 06 08:06:51 man they are all like that there, it's sickening Feb 06 08:06:53 i find books complete crap Feb 06 08:06:55 just get up and fucking do it Feb 06 08:07:09 no ctrl+f function and you don't learn jack shit without doing it Feb 06 08:08:31 Yeah, Android is way too fast-moving for books. And books are too slow to digest. Feb 06 08:09:25 besides - as a long time java programmer - i found the tutorials on the official site quite good Feb 06 08:09:44 good explanations most of the time Feb 06 08:09:51 Meh. Everyone learns differently. Feb 06 08:09:56 It does worry me that we may be heading towards a book-less future, though. I've always liked books. Feb 06 08:09:57 What works for you might not work for someone else. Feb 06 08:10:24 yeah i like books aswell Feb 06 08:10:33 but sadly don't find the time to read a lot Feb 06 08:10:38 Same here. Feb 06 08:10:48 i just think programming is not a good match with books Feb 06 08:10:53 I used to love reading philosophy books. Feb 06 08:10:56 But I never have the time now. Feb 06 08:11:14 on vacation i go through 1 or 2 books a week Feb 06 08:11:24 lying on the beach Feb 06 08:12:14 in my day-to-day life i don't find the time and when i do have time to do nothing i prefer videogames for some mind-numbing fun :p Feb 06 08:14:03 Almost all of my free time is spent making this reddit app. It's kinda stressful. Feb 06 08:16:49 I've always found it hard to balance programming and other stuff, really. It's some kind of obsession. Feb 06 08:17:23 That's how you know you are good at something Feb 06 08:17:25 Even if I'm out at the park in the sunshine I'm thinking about some bug or feature. Feb 06 08:17:34 You are consumed by the search for knowledge it creates in you Feb 06 08:17:51 /r/androiddev is terrible :) Feb 06 08:20:41 So much of reddit is awful now. Feb 06 08:20:53 the bible is roughly 1900 pages, how can one guy write 3000 pages on android ? Feb 06 08:21:00 i have to call bs Feb 06 08:21:06 yeah, androiddev is terrible :) Feb 06 08:21:18 i call bs on the bible Feb 06 08:21:21 "Please someone, how do I make this totally complicated process with 10 lines and 1 tutorial?" Feb 06 08:21:28 My favourite subreddits now are ones like /r/trashy. Feb 06 08:21:30 "Without knowing anything about programming, computers or life." Feb 06 08:21:38 its just a collection of stupid bullshit written down by misogynist stoners Feb 06 08:21:48 Mavrik: And the reply is like "No worries, just read these 27 books". Feb 06 08:22:54 g00s, larger font? :p Feb 06 08:23:16 oh yeah, the early ones had like 10 words per page Feb 06 08:23:24 ok maybe 100 Feb 06 08:23:44 took 2 stone boards just for the 10 commandments Feb 06 08:25:10 http://developer.android.com/guide/topics/ui/layout/gridview.html how can i set bitmaps dynamically according to this example ? Feb 06 08:25:13 to be fair i hate all religions Feb 06 08:25:24 The worst posts are the "Okay, guys, here's how I got started in Android development" ones, full of inaccuracies and yet upvoted to the skies. Feb 06 08:26:11 And the inevitable "Wow, thanks. I've been wanting to get into Android programming for years. Now I can!" replies. Feb 06 08:26:42 Nope, you can't. If you couldn't get into it after years, some clueless post on reddit is not going to help. Feb 06 08:27:10 it's just the kick I needed! if this retard can, then I can too! Feb 06 08:27:14 Okay, the testing thing put me in a bad mood. Feb 06 08:27:15 sci-fi, what do you mean dynamically? Feb 06 08:27:24 lol ravilov Feb 06 08:27:24 ravilov lol Feb 06 08:28:01 Mavrik:getting bitmaps from contact list Feb 06 08:28:50 i try this but getting null pointer :D http://paste.ubuntu.com/10087849/ Feb 06 08:29:46 TacticalJoke i like that story 'As1.1b4' Feb 06 08:29:57 lol Feb 06 08:30:30 The post with no replies or upvotes? Feb 06 08:30:39 Actually, I guess it got upvotes and downvotes. Feb 06 08:33:54 sci-fi: http://imgur.com/jacoj :P Feb 06 08:34:26 in an autocompletelistview, i want to have a custom list item as a footer, how can i do that ? basically I am using the places API and I need to show powered by google logo in the end of the dropdown. Feb 06 08:35:33 :G Feb 06 08:35:44 My Gradle cache is huge. 1.47GB despite downloading very few dependencies in the time I've had it. Feb 06 08:36:31 TacticalJoke i nuke mine time to time, never saw it get that big though Feb 06 08:36:54 i think AS and gradle cache in separate locations Feb 06 08:37:15 i've noticed building with AS and it grabs everything again, for some reason Feb 06 08:37:35 shmoon_: There is no widget named AutoCompleteListView. Feb 06 08:38:07 * surf2b1 still uses ANT :/ Feb 06 08:38:16 O.o Feb 06 08:38:25 Call the exterminators? Feb 06 08:38:47 Application Not Terminating Feb 06 08:42:42 g00s... is there a way to stop AS from grabbing everything on each build? it takes forever sometimes Feb 06 08:42:55 This subreddit isn't too bad: http://www.reddit.com/r/changemyview/ Feb 06 08:43:02 MartialLaw i don't know :( Feb 06 08:47:21 ok, anyone how has an idea how to enable 'connect as camera (PTP)' on android 2.3 devices? Feb 06 08:48:38 option simply doesn't exist in settings, and all I get with 'debugging connected' is a "?????????[null]"-device in android studio d: Feb 06 08:49:27 android 2.3? maybe ravioli can help Feb 06 08:49:32 lewellyn: Are you a Mercurialist? ;o Feb 06 08:49:38 Troffel, Android 2.3 did not have PTP capability. Feb 06 08:50:42 then I can't figure out how I am supposed to debug on the device >_<" Feb 06 08:50:55 Troffel: what OS are you on? Feb 06 08:51:02 Ubuntu Feb 06 08:51:12 Odaym is it ok in BLE - after calling beginReliableWrite, to do other ops, or does everything between begin/endReliable write have to be writes ? Feb 06 08:51:35 TacticalJoke: i'm an everythingist Feb 06 08:51:52 seeing that ??????? is a typical symptom of a permissions issue - where it can see there's a device there, but it can't communicate with it enough to get the serial number Feb 06 08:52:23 Troffel, did you even whitelist it in udev? Feb 06 08:52:30 ye, the device has different forms of connection. charge/storage/..etc but none lets it communicate Feb 06 08:52:30 Troffel, does your dmesg say it's connected? Feb 06 08:52:34 DId you enabled USB debugging? Feb 06 08:52:55 never had to whitelist, so no :o . I did enable usb debugging :P Feb 06 08:53:21 pull up a shell, run "adb kill-server && sudo adb devices" and see if you get the device serial up Feb 06 08:54:19 does anyone know how to evenly space toolbar items Feb 06 08:55:20 Leeds, List of devices attached Feb 06 08:55:20 ???????????? no permissions Feb 06 08:55:22 TheKarlBrown: They don't do that by default? Feb 06 08:55:33 No they are all side aligned to the right Feb 06 08:55:38 oh Ive never used reliable, I read about it and I liked it for a while as it would solve the issue of having to lose some of what I write, but I never really got around to using it; only writeChracteristic Feb 06 08:55:39 with tons of space on the top Feb 06 08:55:44 and bottom Feb 06 08:56:12 Troffel: that's not great... Feb 06 08:56:19 They right-align by default. You can't center them or left-align them without making a custom design for it Feb 06 08:56:46 Leeds, I know.. Never had this happen on any other device before d: Feb 06 08:56:49 Odaym can't find shit on it from the android side Feb 06 08:59:11 Odaym you are lucky, i guess you never needed to write more than 20 byte chunks ? Feb 06 08:59:29 The style attributes I try to apply are ignored in the XML :[ Feb 06 08:59:47 from what i gather, if you needed to write to multiple chars, or a single char (say 21 bytes) - the latter case would be 2 writes within a reliablewrite block Feb 06 09:01:09 Leeds, found the issue. It ran without any problem on a different machine. Apparently I'm missing custom HTC drivers... Feb 06 09:01:25 (sometimes I envy IOS devs) Feb 06 09:01:27 nope... no drivers on Linux Feb 06 09:02:09 also, no iOS on Linux Feb 06 09:02:15 Troffel how do I make a custom design Feb 06 09:02:37 or would it be easier to expand my menu items with a different tool Feb 06 09:02:45 errr container Feb 06 09:04:21 TheKarlBrown, lookup 'custom actionbar' something Feb 06 09:05:00 not more than 20, yes Feb 06 09:05:18 you can extend the actionbar class and then implement your own design I think Feb 06 09:05:48 So you'd recommend customizing the toolbar class? Feb 06 09:07:01 On Lollipop, how can you get the default android.widget.Toolbar? Feb 06 09:07:21 I'm early enough in the coding that I can choose between actionbar, toolbar, or an alternative Feb 06 09:07:23 cool http://www.biztechafrica.com/article/ugandan-innovators-use-smartphones-detect-malaria/9580/#.VNP0GZ3Tm1s Feb 06 09:08:21 Toolbar is recommended now. Feb 06 09:08:52 the device was designed with BLE in mind, BLE allows 20 at a time Feb 06 09:08:57 not by chance Feb 06 09:08:59 surf2b1: you add it in your XML like any other ViewGroup Feb 06 09:09:24 surf2b1: imean autocompletetextview Feb 06 09:09:37 MartialLaw: I don't want to add it to my view. I want to just extend Activity and get the Toolbar. I know the ActionBar is really the Toolbar on 21+ Feb 06 09:10:22 TacticalJoke: It will be interesting to see what happens when the majority is on 21+ since appcompat-v7 doesn't use the native Toolbar.. Feb 06 09:10:34 yo, I have a camera intent that saves to internal storage in my app, but it seems I cant open it for some reason Feb 06 09:10:50 why cant I open files in my apps internal storage Feb 06 09:10:58 I feel like I must have missed something Feb 06 09:11:47 lootic, does the app have permission to do it? Feb 06 09:12:02 surf2b1: i think you have to and then make a reference to it in code and grab it thru setSupportActionBar(toolbar) and then do what you want through that... If you don't make a toolbar then I believe it is just the regular ActionBar so in that case nothing has changed.. I think Feb 06 09:13:07 MartialLaw: I can get it by going through the rootview but there has to be a better way then this ugly mess I just wrote: http://pastebin.com/SrLzwWTc Feb 06 09:13:10 what permission do I need to add to write and read from internal storage? Feb 06 09:13:26 I thought I always was allowed to do that Feb 06 09:14:16 You don't need any permissions for internal storage. Feb 06 09:14:47 MartialLaw: not using appcompat. Feb 06 09:14:49 ^ yeah Feb 06 09:15:06 I should add that I try to open it from native, Im using cocos2dx and it seems to use pure c to open the file Feb 06 09:15:19 I save it with android though Feb 06 09:16:37 i'm not quite sure what you are asking. you want to get the toolbar yeah? I'm fairly sure if you did not put a toolbar in your XML then it will be the ActionBar. in which case use the ActionBar... I am also developing on L and I have yet to use the ToolBar so I just add what I need in my ActionBar as usual. Feb 06 09:16:50 if I push an update that requires a higher API level than previous versions. Does older devices who already have the app offer to update? Feb 06 09:18:41 MartialLaw are you talking to me? Feb 06 09:18:59 import here.is.your.R; I am meant to reference my resource identifier here, do you guys know how I do that Feb 06 09:18:59 MartialLaw: Yeah, I normally just use the ActionBar too. I want to change the color of the ActionBar. I can do that already but I thought, why not use toolbar.setBackgroundColor(int) instead (which worked great once I got the view). Feb 06 09:19:29 surf2b1: so what's the issue, the messiness of the code? Feb 06 09:20:09 MartialLaw: yeah. It would be nice if I could just do findViewById(android.R.id.some_toolbar_id) Feb 06 09:22:22 I think you are doing more work then is needed. Just use one or the other. If you want to use toolbar then add it to your XML but it sounds like you don't want to do that for some reason. So just use the ActionBar. I think the findViewById for the toolbar will only work if you have it in XML... Again though I think you are doing more then is need Feb 06 09:22:23 ed and I'm not sure why you want to do it that way. Feb 06 09:27:20 MartialLaw: yeah, it was just a thought. Have you ever dynamically changed the ActionBar background color? Feb 06 09:29:11 you could through getActionBar().setBackgroundDrawable(...get reference to color through drawable...) Feb 06 09:29:31 getActionBar().setBackgroundDrawable(new ColorDrawable(Color.parseColor("#0000ff"))); Feb 06 09:29:36 something like that should work Feb 06 09:32:32 For the Amazon store does anyone have any tips regarding keywords and how many I should enter? Feb 06 09:34:38 hey guys, pre-lollipop, how people do to have a kiosk mode app? Feb 06 09:43:40 Do you need an action bar or toolbar? can't you just use a tablayout at the top? Feb 06 09:44:31 hi Feb 06 09:44:47 No one needs action bar Feb 06 09:45:04 but you dont say that Feb 06 09:45:07 it is a standard Feb 06 09:45:24 you let your uses have their stupid action bar! Feb 06 09:46:23 I guess. It seems aesthetically unappealing, and its hard to get it styled (automatic spacing, right aligned) Feb 06 09:47:10 If you are only going to have one activity and a bunch of fragments going off it, I don't see the point Feb 06 09:48:30 as with all HIG its just guidelines, if your app suffers from following the guidelines then dont Feb 06 09:48:36 but consistency is good Feb 06 09:48:55 so dont break the HIG if you dont think it will benefit the end user noticably Feb 06 09:49:20 I'm asking for a reason to not just implement swiping between fragments via images at the top Feb 06 09:49:31 implemented via a menu Feb 06 09:49:56 I just made a toolbar and it cannot be stylized which makes evenly separating items impossible and big screens look terrible Feb 06 09:50:10 oh, I thought you wanted to rid the actionbar Feb 06 09:50:20 toolbar is the new actionbar Feb 06 09:50:29 same difference Feb 06 09:50:31 is it lollipop? Feb 06 09:50:50 No I'm using a appcompat for it Feb 06 09:51:32 I'm just looking for a good solution to the toolbar throwing all my icons to the right side and making extra space on top of them Feb 06 09:51:46 mhm Feb 06 09:52:22 I thought the Toolbar was supposed to be a "smart" component, meaning you cant really make it do what you want Feb 06 09:52:43 I mean you can stack them Feb 06 09:52:56 use a ....view ;) Feb 06 09:53:01 maybe you want to make a new component that looks and feels like the toolbar but has the traits you want Feb 06 09:53:08 Yeah stingray which one lol Feb 06 09:53:19 any ViewGroup Feb 06 09:53:21 pick one Feb 06 09:53:31 LinearLayout then Feb 06 09:53:38 they ya go :) Feb 06 09:54:04 MartialLaw: So, you are right; you really don't need the Toolbar. It was driving me crazy though so I dug through the source and there really isn't an easy way to get it. Here is some hackery to get it: http://pastebin.com/XywfBQ2i Feb 06 09:55:23 anyone use libgdx and mind looking at a g3db for me ? not sure wtf is going on with it Feb 06 09:58:12 Wouldn't a linear layout filled with buttons be resource inefficent though StingRay_ ? and hard to style Feb 06 09:58:23 or space evenly Feb 06 09:58:36 As long as performance isnt an issue I dont care Feb 06 09:59:15 no,no and no Feb 06 10:00:58 Hello, anyone else has problem with changing Locale in Configuration on Lollipop ? Feb 06 10:00:59 Well then why is android going from tabhost to actionbar to toolbar at all? Feb 06 10:01:19 Sorry If I'm asking stupid questions I'm trying to figure this all out Feb 06 10:01:30 all of those are views Feb 06 10:01:33 I can change app locale settings in all previous versions, but lollipop doesn't work. Feb 06 10:01:39 If everything is done better for a good top bar with icons by just linear layouts Feb 06 10:01:52 if you want lots done for you and additional crap that you will never use, they are good choices :) Feb 06 10:02:28 So the pro is its automated, the con is its very distinctly defined and a lot of "crap ill never use" Feb 06 10:03:04 well, everything is a view, so why not use the simplest for what you need :) Feb 06 10:03:13 You hurt my head Feb 06 10:03:50 Are you saying that people online get complicated premade layouts then edit their methods to do what they want Feb 06 10:03:58 instead of making them from the ground up with linear? Feb 06 10:04:05 errr views Feb 06 10:04:06 not layouts Feb 06 10:04:53 people do what they want...just most only think of using what is served Feb 06 10:05:00 rather than just using something really basic Feb 06 10:05:04 imho neways Feb 06 10:10:52 you can achieve anything with at least 10 layout..choices Feb 06 10:11:34 like a calculator, you can have Relative layout with 1 element centerInParent and all the rest being toEnd, toStart, above, below of it Feb 06 10:11:43 or you can use a linearlayout which has a grid inside it Feb 06 10:23:33 Wait you cannot inflate a menu into a linearlayout tho Feb 06 10:25:09 Right. Feb 06 10:25:34 so sick of working for SA companies Feb 06 10:25:44 SA? Feb 06 10:25:54 i will sommer leave and go to the states or somewhere i am sure there will be some android jobs there Feb 06 10:25:56 south africa Feb 06 10:26:24 politics and shitting on the little guy is all we get .. meh Feb 06 10:28:39 well then I do need more than linear lulz Feb 06 10:29:43 Of course you do. Toolbar and ActionBar exist for a reason. Feb 06 10:30:48 Note that Toolbar is a ViewGroup: you can add child Views to it. Feb 06 10:31:15 I've just been frustrated trying to adjust the style of the toolbar Feb 06 10:34:29 I haven't delved into Toolbar yet. Will do soon, though. Feb 06 10:42:58 Can someone please try to reproduce this: https://code.google.com/p/android/issues/detail?id=131080 Feb 06 10:43:04 Bendowski is not seeing the bug but I am. Feb 06 10:45:17 TacticalJoke, that's marked as fixed in AS 1.1b4 Feb 06 10:45:22 or whatever the latest canaryis Feb 06 10:45:44 TacticalJoke, http://tools.android.com/recent/androidstudio11beta4released Feb 06 10:46:01 Yeah. It's just that I'm still having the issue with Beta 4. Feb 06 10:46:30 The dialog is at the bottom. Feb 06 10:51:49 Ive spent 3 hours at least trying to fucking align these toolbar icons evenly Feb 06 10:51:51 im about to say fuck it Feb 06 10:53:08 huh. Feb 06 10:54:18 I need to space the icons in the toolbar evenely Feb 06 10:54:21 not right aligned Feb 06 10:54:23 im losing my mind Feb 06 10:57:35 https://ux.stackexchange.com/questions/50921/android-pattern-of-left-aligning-in-action-bar Feb 06 10:57:37 This right here Feb 06 10:58:30 That looks like shitty UX Feb 06 10:59:10 Hey there! Feb 06 10:59:13 I just want it centered *cries* Feb 06 11:00:00 I've an ImageView like this: https://gist.github.com/anonymous/46d4a30d4aa1e5e3f619 Feb 06 11:00:36 this drawable, ic_simple, is available as mdpi, hdpi, xhdpi and xxhdpi. but for some reason android is using a low quality image and scaling it up Feb 06 11:00:51 is there a way to force it to use a high quality image and scale it down? Feb 06 11:01:14 what can I do? Feb 06 11:01:31 It's gone from FUTURE RELEASE to ASSIGNED: https://code.google.com/p/android/issues/detail?id=131080 Hope other people can test it so that we can figure out what's going on. Feb 06 11:08:30 OH MY GOD I DID IT Feb 06 11:08:34 *dances* Feb 06 11:08:58 https://gist.github.com/dodgex/7bc81fd2cbb70a8d5117#file-splittoolbar-java - worth 5 hours Feb 06 11:44:17 Which HttpClient is Retroit using by default? Feb 06 11:52:37 platzhirsch, check the source Feb 06 11:59:14 oh darn Feb 06 12:06:40 Hi everyone, I've a problem with syncadapter onPerformSync is not called, even if I try to sync immediately Feb 06 12:11:55 How can I detect when my Fragment is swiped back into view in my View Pager? Is there something built in, or do need to define an Interface? Feb 06 12:12:23 ViewPager.OnPageChangeListener Feb 06 12:17:18 Depends on your adapter. The built in adapters call setUserVisibleHint Feb 06 12:33:51 SimonVT: can I listen for that in my fragment? Feb 06 12:34:39 oh I should override it Feb 06 12:34:46 brain is not with it this morning Feb 06 12:34:50 thanks chaps Feb 06 12:35:04 ... it's not even morning Feb 06 12:35:13 this will not be a productive day Feb 06 12:59:41 hey guys… my webview is not displaying html5 audio and video players correctly… what could it be? Feb 06 13:05:11 is it possible to send "delayed" push notification ? (without GCM) Feb 06 13:05:34 some action may lock my apps for a certain amount of time, i would like to notify the user when it's unlocked Feb 06 13:05:45 what keyword should i look into ? Feb 06 13:06:02 luist have you set its javascript enabled Feb 06 13:08:36 or it could be some other web setting Feb 06 13:12:30 Any OkHttp user? Feb 06 13:14:03 I am trying to use a loop to add Views into a LinearLayout Feb 06 13:14:27 Any idea why OkHttp would send File as a POST parameter instead inside a $_FILE (in php) ? Feb 06 13:14:27 when I do that all my view are created : View mtv =inflater.inflate(R.layout.cartetournee_item, layoutDays); Feb 06 13:15:18 But with that only the first view is created : View mtv =inflater.inflate(R.layout.cartetournee_item, null); layoutDays.addView(mtv); Feb 06 13:16:28 why ? I cant customize the View "mtv" Feb 06 13:20:47 How long are review times on the amazon store? Feb 06 13:23:23 Levite: i think so.. these are the settings im using: http://paste.ofcode.org/XxqUeu78wUHXcF2Mjucsxc Feb 06 13:24:22 Interesting, scala.js is no longer considered experimental Feb 06 13:24:42 some day, I'll take their work and write a scala.dx Feb 06 13:24:52 compile straight to dex Feb 06 13:25:45 How I can access getSupportActionBar() from class that extends Fragment ? Feb 06 13:25:59 getActivity Feb 06 13:28:26 getActivity().getSupportActionBar() - cannot found symbol getSupportActionBar(). I made imports from ActionBar and ActionBarActivity Feb 06 13:28:37 mTR_: How do you know that only the first view is created in the second case? In any case, you could customise the view in the first case. Feb 06 13:31:03 TacticalJoke: Because on the second case there is only one item on my LinearLayout, and in the first case there is 5. Feb 06 13:31:43 TacticalJoke: And when i try to customize with first case, only the first item is customize, other are virgin Feb 06 13:32:11 Narzew, cast to ActionBarActivity Feb 06 13:32:17 Can you post code? Feb 06 13:32:41 TacticalJoke: sure, gimme a sec Feb 06 13:33:25 I actually change ActionBarTitle from MainActivity, before I return Fragment view. But I also want to change ActionBar title from fragment Feb 06 13:38:32 TacticalJoke: here is my onCreate code : http://paste.ofcode.org/37ZLYswyKZCLAjChz4tuLwN Feb 06 13:38:58 TacticalJoke: my activity XML : http://paste.ofcode.org/Yqc9dXNCDQnFhkYTtTCjG5 Feb 06 13:39:11 TacticalJoke: and the customized item XML : http://paste.ofcode.org/wWiCpnqBjbDgNRVdcx5n6q Feb 06 13:40:22 compile straight to dex -- :) yes please Feb 06 13:40:54 lemonxah, it'll be a long while before I'd even start working on it Feb 06 13:41:06 yeah i understand but it would be cool Feb 06 13:41:15 but it would also fix the requirement of Java 8 for Scala 2.12 Feb 06 13:43:52 im sending a bitmap to webservice using that way - byte[] ba = bao.toByteArray(); String data = Base64.encodeToString(ba, Base64.NO_WRAP); Feb 06 13:43:55 but i get an error Feb 06 13:44:06 my image is null on the server side Feb 06 13:44:18 TacticalJoke: and here is a screen of the result, as you can see only the first item has text : http://pbrd.co/1zflCGz Feb 06 13:44:24 what could be problem ? my side or in web ? Feb 06 13:45:07 mTR_: LayoutInflater#inflate returns layoutDays.. findViewById returns the first view it encounters with that id (which is always the same) Feb 06 13:52:05 SimonVT: But i have only one item "cartetournee_item", that i want to customize and add to my linearLayout Feb 06 13:52:44 with different data for each iteration Feb 06 13:53:04 The inflate method you're calling inflates the layout into the root view, and returns the root view Feb 06 13:53:18 When you call findViewById on the root view, it will return the first view it finds with that id Feb 06 13:53:23 In your case, that will always be the same view Feb 06 13:53:51 What you need to do is have it return the inflated view. You do that by not attaching the inflated view to the root view Feb 06 13:54:01 Look at what other LayoutInflater#inflate methods there are Feb 06 13:58:08 yeaaaaaaaaaaaaaaaaaaaaaaaaaah Feb 06 13:58:23 i did mtv = inflater.inflate(R.layout.cartetournee_item, layoutDays, false); Feb 06 13:58:30 then layoutDays.addView(mtv); Feb 06 13:58:38 and it fucking works Feb 06 13:58:43 thanks SimonVT Feb 06 13:59:42 Anyone know if it's possible to let ADB not only push an app to a device, but also automatically overwrite an existing version of the same app on the device? Feb 06 14:00:02 adb install -r. Feb 06 14:00:02 (one app is from appstore, the other is a development version) Feb 06 14:00:05 read your docs. Feb 06 14:00:05 adb install -r Feb 06 14:00:15 I think I found the issue: https://code.google.com/p/android/issues/detail?id=131080 Feb 06 14:00:24 must be same signing cert Feb 06 14:00:39 that simple?, I saw it but didn't realise it would overwrite the dialog on the device Feb 06 14:00:50 thanks Mavrik and pfn , sorry for the silly question d: Feb 06 14:07:01 Tactical, seems like the gradle plugin is acting wonky. Have you noticed the same issues? Feb 06 14:07:47 Figured out Feb 06 14:07:56 I've not seen any wonkiness apart from this. Feb 06 14:08:03 is there a good way to set spacing (margin/padding/itemspacing) on a listview's items? Feb 06 14:08:15 aside from adding extra container views Feb 06 14:08:45 Can't you set the padding of each item in the item XML, shekibobo? Feb 06 14:09:06 I solved that problem some time ago but forgot Feb 06 14:09:12 add padding to the item layout... shekibobo Feb 06 14:09:27 yeah, I'm more thinking about having each item have margins around the outside so it's not touching the edges of the listview Feb 06 14:09:33 why would you need a new container Feb 06 14:09:51 You can easily do that with padding, shekibobo. Feb 06 14:09:57 margin may or may not work Feb 06 14:10:52 Yello, is there a call support for Googles dev support? Feb 06 14:10:58 their email support allows for 72h waiting time Feb 06 14:11:10 72h is pretty intense Feb 06 14:11:28 I really doubt it Feb 06 14:11:51 adding padding to the list item adds padding *inside* the item. I want spacing *outside* the item. Or am I misunderstanding you? Feb 06 14:12:41 padding inside and space outside can visually look the same Feb 06 14:13:06 :/ Feb 06 14:13:13 what is this.. we release our app to android Feb 06 14:13:17 and it get ssuspended immediately Feb 06 14:13:23 not if the list item is a cardview Feb 06 14:13:30 releasing all our promo advertisement and everything for an andorid verison, and then it gets plucked away on wrong grounds Feb 06 14:13:34 and now an appeal takes 72h Feb 06 14:13:36 while the promo is running Feb 06 14:13:43 frustrating Feb 06 14:13:46 for copyright? Feb 06 14:13:50 why did it get suspended? Feb 06 14:14:01 for "deceptive beahviour" Feb 06 14:14:03 whatever that means? Feb 06 14:14:10 you should change that then Feb 06 14:14:13 there is nothing deceptive about it Feb 06 14:14:22 we are the only ones offering an app like this Feb 06 14:14:53 it infringes on no copyrights or trademarks either whatsoever Feb 06 14:15:47 deceptive behavior means it's doing something other than what you described... Feb 06 14:16:01 it doesnt Feb 06 14:16:03 it's a community app Feb 06 14:16:05 weird grounds for suspension on an automatic basis Feb 06 14:16:18 good luck Feb 06 14:16:20 annoying Feb 06 14:16:21 thanks Feb 06 14:16:29 hopyfully i can find a number or something Feb 06 14:16:34 so they dont close on me now over the weekend too Feb 06 14:16:39 either than, or the auto code analysis detected some form of malware Feb 06 14:16:39 promo was supposed to be up for the weekend Feb 06 14:16:41 annoying Feb 06 14:16:42 so with OkHttp, if you're sending a file as addPart in the MultipartBuilder, it would send the file as a part of a $_POST part Feb 06 14:17:18 until you send it as addFormDataPart, it won't send the file in $_FILES array, which will screw the whole logic up Feb 06 14:17:28 yeah no contains absolutely no malware whatsoever Feb 06 14:18:40 could it be for sending HTTP requests somewhere? Feb 06 14:18:49 i know all that stuff is automated Feb 06 14:18:58 it only requests our servers Feb 06 14:19:07 and maybe youtube.com once or twice Feb 06 14:19:22 to fetch a video or two linked to by a user Feb 06 14:20:56 i remember calling the google support before though Feb 06 14:21:03 back when their google wallet was Merchant Feb 06 14:21:11 can't seem to find that number any where though Feb 06 14:22:20 Wow, you could contact Google! great! :D Feb 06 14:22:56 hello, do you know how to remove programmaticly /data/data/app.package/app_webview dir? I would like to remove all content created after consuming HTML in a WebView but the method clearCache(true) invalidates only cache, not the content itself and the db App enlarge its size Feb 06 14:23:26 adb uninstall app.package would do that kinda promatically ^^ Feb 06 14:23:50 programmatically * Feb 06 14:24:41 danijoo_, lol Feb 06 14:25:28 anyway, is it possible to clear Web Data content by API? Feb 06 14:27:54 http://www.google.com/contact/ Feb 06 14:27:55 gotcha Feb 06 14:28:00 telephone: +1 650 253 0000 Feb 06 14:28:02 and the hunt begins Feb 06 14:28:07 the number could not be longer Feb 06 14:28:32 telephone: +ourdollarreserves Feb 06 14:30:56 playstoregate Feb 06 14:32:08 dayum, their phone roboti s faster than the scatman Feb 06 14:32:15 calling random contact number because of android. lol... ^^ Feb 06 14:32:20 xD Feb 06 14:32:34 best way to not get reinstantiated Feb 06 14:33:00 Press 2: <2> Wow! You're in luck! We have 24 hours phone support for the Play Store! Feb 06 14:33:02 yay! Feb 06 14:33:21 unfortuntly with a 48h queue :D Feb 06 14:34:18 this isn't leading anywhere Feb 06 14:34:24 im walkig in circles on the phone with this robot Feb 06 14:34:38 what did you expect? ^^ Feb 06 14:34:44 el dorado :( Feb 06 14:34:50 seems to only be customer support Feb 06 14:34:51 not dev support Feb 06 14:34:55 rip Feb 06 14:35:56 My logcat window is not showing the filter options anymore Feb 06 14:36:08 any idea... how... to fix this? Android Studio 1.0 Feb 06 14:36:09 Bantalon: are you important? Feb 06 14:36:16 yes Feb 06 14:36:30 lol Feb 06 14:36:34 Bantalon, would be curious to see the description of your app Feb 06 14:36:40 restarting it, nvm Feb 06 14:36:44 im going to keep this robot busy if i dont get through Feb 06 14:37:03 is it a free hotline Feb 06 14:37:04 ? Feb 06 14:37:07 no Feb 06 14:37:10 this is costing me a fortune Feb 06 14:37:14 im not even from the us Feb 06 14:37:19 are you important enough that people who aren't already your users - like Android users, say - would have heard of your app? Feb 06 14:37:23 so you are paying google to not give a fuck atm ^^ Feb 06 14:37:28 Leeds: yeah Feb 06 14:37:35 danijoo_: haha Feb 06 14:37:42 your app being? Feb 06 14:37:44 now, getting a specialist Feb 06 14:37:49 will see if they have a dev number Feb 06 14:37:57 there is no dev number. Feb 06 14:38:09 Bantalon, there is no support like this for app takedowns Feb 06 14:38:16 you can only write a mail and wait Feb 06 14:38:37 Bantalon, would be curious to see the description of your app Feb 06 14:38:43 listen to adq, he's already over all of that Feb 06 14:40:45 I guess it's a secret Feb 06 14:41:25 aye Feb 06 14:41:26 email it is Feb 06 14:41:44 adq: the description is just pretty descriptive with a few stars and whatnot Feb 06 14:41:53 is there something in particular that can cause it to be taken down? Feb 06 14:41:56 that's your point of view Feb 06 14:42:00 this is why i ask for reading it myself Feb 06 14:42:01 it's really nothing special Feb 06 14:42:09 nothing special, but enought to get suspension Feb 06 14:42:13 enough* Feb 06 14:42:33 is there something in particular that can cause it to be taken down? <- many things Feb 06 14:42:39 adq: aye i'll just wait and see what theysay Feb 06 14:42:43 and get a definite answer as to why they suspended it Feb 06 14:42:48 jsut sucks that i can't get a hold of them before the weekend Feb 06 14:42:51 then i will stop waiting for reading your description Feb 06 14:42:54 since we got a promo for it running and all Feb 06 14:42:58 you're unlikely to get a definite answer unless you're important Feb 06 14:43:18 adq: thanks for the help though Feb 06 14:43:25 you're not welcome lol Feb 06 14:43:29 i did not do anything Feb 06 14:43:29 what you will get is another generic description of what rule you've broken, and a warning that further arguing might result in your account being banned Feb 06 14:43:29 evil Feb 06 14:43:41 you offered help Feb 06 14:43:44 and i appreciate that :) Feb 06 14:44:00 if you could give us any information at all, we might be able to help Feb 06 14:44:00 the fact you don't want to show your desc is highly suspicious for me Feb 06 14:44:02 Leeds: then i hsall bring out the bat Feb 06 14:44:10 if you refuse to give any information, bugger it Feb 06 14:44:44 the fact you don't want to show your desc is highly suspicious for me << this Feb 06 14:44:51 adq: i can't get the description since the app is blocked Feb 06 14:45:21 ok, for your next app, think to write down elsewhere your description than on the store itself Feb 06 14:45:22 and you can't tell us what the app is or what it does, because? Feb 06 14:45:25 danijoo_: it was a small description Feb 06 14:45:29 9-10 sentences Feb 06 14:45:34 just describing the app and contained 1-2 stars Feb 06 14:45:40 how can the desc be suspicious but not the app? Feb 06 14:45:46 there are *at least* 2 Google people in this channel right now, whether they're awake/listening or not Feb 06 14:45:59 but you're making it really really hard to even try to help Feb 06 14:46:18 what does 1-2 stars mean, for example? Feb 06 14:46:34 ★ ★ ★ Feb 06 14:46:35 Bantalon, for example the description "this is a messanger app like whatsapp and facebook messenger" would be a reasion to ban the app Feb 06 14:46:36 like those Feb 06 14:46:48 ★ ★ ★ GET THE APP NOW! ★ ★ ★ The brand new community app for bla bla Feb 06 14:46:49 presumably if you're important, and people have heard of you, your app has a name Feb 06 14:47:05 is blabla your community? Feb 06 14:47:11 yeah Feb 06 14:47:14 danijoo_ is right on his illustrative example Feb 06 14:47:18 okay Feb 06 14:47:21 just citing another brand can lead you to big troubles Feb 06 14:47:25 or another app Feb 06 14:47:34 and this falls directly into "deceptive" thinigs Feb 06 14:47:35 or forgetting a TM on android :D Feb 06 14:47:39 I see, yeah the app is for games and whatnot Feb 06 14:47:41 that might be the problem Feb 06 14:47:53 also if you build an app which is in fact scrapping a website Feb 06 14:47:54 eh releasing the app again will just result in it being taken down again then Feb 06 14:47:58 this falls under another policy Feb 06 14:47:59 Bantalon: what is bla bla? Feb 06 14:48:05 will see what they say and hopefully it can be resolved Feb 06 14:48:16 if it's the official app for something, I don't see why it would be a secret Feb 06 14:48:17 it odesn't infringe on any trademarks and is just a community for games Feb 06 14:48:25 Does CardView draw it's own background behind the card in some way? I can't seem to get it to be anything other than white, despite my listview having transparent bg, and parent view having tiled pattern bg Feb 06 14:48:33 insisting on releasing something not compliant to the policies (as unfair they can be sometimes) would make your account at risk Feb 06 14:48:40 yeah Feb 06 14:48:43 after few suspensions, you can lose your account Feb 06 14:48:44 were there, for example, any games named in the description? or any game logos/cover images in the screenshots? Feb 06 14:48:44 so id hope to be able to resolve it with them Feb 06 14:48:50 assuming they don't have robots answering the emails Feb 06 14:48:51 it can even have ripples on other stuff linked to google Feb 06 14:49:00 Bantalon, community for games: If your app shows screenshots where one of those games is visible, this can also cause take downs Feb 06 14:49:02 guessing what the issue is and releasing the app up again Feb 06 14:49:03 would be dangerous Feb 06 14:49:08 I wonder if Bantalon is just ignoring me now Feb 06 14:49:28 Bantalon, you're not going to resolve that with them, there are too many stories with the appeal procedure pointing that fact Feb 06 14:49:29 Leeds, no. he just ignores everyone that wants to know what its exactly about ^^ Feb 06 14:49:30 Bantalon: your mother smells of elderberries Feb 06 14:49:32 you're not really communicating Feb 06 14:49:35 they just inform you Feb 06 14:49:43 Leeds: sorry, no no specific game names did i write in the desc Feb 06 14:49:51 danijoo_: it shows no images of other games besides the ones the users upload themselves Feb 06 14:49:53 Bantalon: what's the fucking app/site called? Feb 06 14:49:59 Leeds: its not out Feb 06 14:50:13 yet you claim you're important enough that non-users would have heard of you? Feb 06 14:50:22 so its an app for a community that does not exist? :D Feb 06 14:50:26 YES Feb 06 14:50:40 danijoo_: a famous community that doesn't exist Feb 06 14:50:46 its a secret underground community Feb 06 14:50:50 for the elite Feb 06 14:50:51 Leeds, i have some of those too ^^ Feb 06 14:50:54 lol Feb 06 14:51:08 you need an invite and a tuxido to enter Feb 06 14:51:12 this becomes too much troll for me. im afk ^^ Feb 06 14:51:16 :) Feb 06 14:51:34 hahahahaha Feb 06 14:51:46 Leeds: just saw your message Feb 06 14:51:46 15:49 Leeds: Bantalon: your mother smells of elderberries Feb 06 14:52:00 looks like it has been forged Feb 06 14:52:03 idk why Feb 06 14:52:48 ok, so not ignoring me Feb 06 14:52:55 it's nothing major Feb 06 14:52:58 i'll just wait and see their response Feb 06 14:53:01 Bantalon: is it a famous enough name that people who aren't already users would have heard of it? Feb 06 14:53:04 because hsooting and missing could be a bit more dangerous now than good Feb 06 14:53:11 whatever reason they pulled it down now hopefully they'll say what it was Feb 06 14:53:28 and i can fix that and resubmit, or some other solution Feb 06 14:53:57 Leeds: no it's nothing famous yet Feb 06 14:54:04 ..yet hopefully Feb 06 14:54:24 in other words, it's nothing that anyone except you should give a shit about? Feb 06 14:54:35 well, me and my users Feb 06 14:54:40 which will download the app Feb 06 14:54:46 but you don't have any users Feb 06 14:54:53 not yet I don't Feb 06 14:54:58 so, nobody except you Feb 06 14:55:03 yeah :( Feb 06 14:55:46 aye will jstu wait until next week for an email response Feb 06 14:55:54 much more assuring to get a definitive answer to what was/is wrong Feb 06 14:56:15 tedious that there is absolutely no phone support whatsoever Feb 06 14:56:25 Any idea how I sign a debug apk to get around INSTALL_PARSE_FAILED_NO_CERTIFICATES ? Feb 06 14:56:27 strange too, might need to get in touch with their support before 72h Feb 06 14:56:48 If you would post description and stuff here, we would most likely be able to show you whats wrong Feb 06 14:57:06 Troffel, the same way you would sign a non-debug apl Feb 06 14:57:09 apk* Feb 06 14:57:13 Bantalon: you are one of hundreds of thousands of developers. you paid $25 (presumably) to get access to Google's distribution system. you don't get priority support unless you're important - and you're not Feb 06 14:57:36 Leeds: i know Feb 06 14:57:40 just saying a phone support would be nice Feb 06 14:57:41 so chill out Feb 06 14:57:46 no need to make it 100% exclusive to important people Feb 06 14:57:49 like many other companies used to back in the day Feb 06 14:57:56 1million downloads will still mean not important enough ^^ Feb 06 14:57:56 72h for basic inquiry seems a bit long Feb 06 14:58:07 danijoo_, was hoping there was a quick way around having to do that, thanks ! Feb 06 14:58:27 Troffel, it should apply a debug sign automagically Feb 06 14:58:39 you shouldnt need to do this by hand Feb 06 14:58:50 hmm Feb 06 14:59:15 or did you somehow modify the apk by hand Feb 06 14:59:28 thats would result in no sign Feb 06 14:59:39 Troffel: does your .android folder not have a debug.keystore somehow? Feb 06 14:59:58 Ankhwatcher, if it does not have one, android autogenerates a new one Feb 06 15:00:45 ye ok, seems i messed up something. works now anyway Feb 06 15:00:51 generated a new one Feb 06 15:02:53 Can skipping frames cause my Log messages not to be printed? Feb 06 15:03:43 no Feb 06 15:04:07 danijoo_: Thanks. Now I am even more desperate. :D I'll eat my monitor. :D Feb 06 15:04:36 nevertheless skipping frames is bad and you should feel bad for it ! Feb 06 15:04:55 danijoo_: I did already. I know. :) Thanks again. Feb 06 15:07:55 did anyone happen to see my question about cardview? might have gotten drowned out in all the app store chatter Feb 06 15:08:42 When I try to run 'install -r' to overwrite the playstore app with a developer version, why do I get INSTALL_FAILED_DUPLICATE_PERMISSION ? Seems it should just overwrite it?.. Again, sorry if this is a stupid question d: Feb 06 15:08:59 I know I can just uninstall first, but wondering if this was possible Feb 06 15:10:09 because the play store version is certified with your certificate while the debug version is signed with a debug certificate Feb 06 15:10:23 not matching certificates => you have to uninstall first Feb 06 15:11:48 Troffel: do you have a permission in your manifest for push notifications? Feb 06 15:13:21 ah ok danijoo_ , thanks. shekibobo why is that relevant to this? Feb 06 15:13:48 Troffel: probably not now that I think about it Feb 06 15:14:08 but you might want to consider adding a suffix to your debug build package name Feb 06 15:14:14 that way you can install them side-by-side Feb 06 15:14:53 or replace your debug certificate with the real one Feb 06 15:15:21 or that. Either way, im just messing around with a script to ease testing. Feb 06 15:16:56 hey guys… my webview is not displaying javascript stuff, even tho i’m using setJavaScriptEnabled(true); can anyone help me? Feb 06 15:19:25 what should be my minimum RAM requirement for developing android Apps using Android Studio(maybe Eclipse) on a Linux or Windows machine? Feb 06 15:20:24 the requirements for the IDE Weimar1919 Feb 06 15:24:23 my bad...ty...although i believe it would be significantly higher in day-to-day dev right? I'm looking for a new laptop thats why I ask Feb 06 15:24:29 Weimar1919, 4GB i would say Feb 06 15:24:59 cause it quickly ending up eating 2G just for AS, and since you've got your OS, browser and other stuff Feb 06 15:25:07 Hello oo Feb 06 15:25:08 you clearly need 4GB to avoid swapping Feb 06 15:25:13 if its a new one, any laptop should do it Feb 06 15:25:17 but to feel confortable, you need far more Feb 06 15:25:23 Please how can i zip and unzip file in java... Feb 06 15:25:38 thank you then! Feb 06 15:25:40 search for a lib hackable Feb 06 15:26:05 no one is going to explain you how to read and write a file with huffman-like compression here Feb 06 15:34:40 so all the examples of cardview I see use RecyclerView.. There shouldn't be anything wrong with using it in a ListView, right? Are there any known bugs with that? Feb 06 15:37:00 shekibobo: Nope Feb 06 15:37:05 It's a simple view Feb 06 15:37:19 You can use it where you want to use any viwe Feb 06 15:37:21 view Feb 06 15:38:13 The Android dev team even said it's a very simple extension of FrameLayout that honestly would not take more than a couple seconds to implement by yourself if you felt like it, but it's there for convenience Feb 06 15:38:41 CardView is basically just a FrameLayout Feb 06 15:40:59 for whatever reason, the view behind the cardview in my listview has a white background that I can't seem to change Feb 06 15:41:31 for grokking, https://github.com/android/platform_frameworks_support/blob/master/v7/cardview/src/android/support/v7/widget/CardView.java Feb 06 15:41:44 hierarchy viewer shows ListView -> FrameLayout(the problem) -> FrameLayout(the cardview) Feb 06 15:42:41 I've tried setting android:background on the cardview, but that seems to do nothing Feb 06 15:43:01 quit Feb 06 15:43:03 card_view:cardBackgroundColor will only change the card's background Feb 06 16:02:06 is that a correct json format ? http://paste.ubuntu.com/10093884/ i created json with gson and next i created JSONObject from org.json it added too many \ Feb 06 16:03:54 Those are Java quote-escape characters. Where are you seeing this output? Feb 06 16:04:00 (I'm guessing in the debugger or something.) Feb 06 16:04:01 Does java/Android have a localized distance formatter? Feb 06 16:05:10 TacticalJoke: this is what i do http://paste.ubuntu.com/10093928/ Feb 06 16:05:18 Actually, I take that back. My brain isn't working after hours programming. Feb 06 16:05:36 if i print cont and img it is normal json Feb 06 16:06:06 if i print contactDatas(json object) it puts escape chars Feb 06 16:13:43 * pfn headscratches about hexchat's ignore Feb 06 16:13:49 everytime I restart it keeps clearing my ignore list, pos Feb 06 16:17:09 If I have a bunch of objects (let's just say they have an X and Y position, and bounding box), how would I implement collision detection? I have a List keeping track of them, and I have a way to get all of them at a certain position in the game field... but bounceback is a bit of an issue. Feb 06 16:18:59 simple math? Feb 06 16:19:17 It's the code that's the problem. I was thinking of dividing the velocities evenly and so on and so forth. Feb 06 16:19:38 But... Feb 06 16:20:04 Each object would have interactions with all the others in the list, instead of just one of them being handled. Feb 06 16:22:04 will the world end if I use retained fragments with addToBackStack()? Feb 06 16:22:05 seems not Feb 06 16:23:00 The world has already ended. Feb 06 16:26:20 Xenoth, this is not related to android, but usually, it's when two bounding boxes are interesting with each other Feb 06 16:26:27 erff Feb 06 16:26:30 intersecting* Feb 06 16:27:06 it could be also the perimeter of a circle intersecting with a rectangle box, or two circles, or two rectangle boxes etc Feb 06 16:31:49 so apparently setting the layout_margin on a CardView puts the margin on the card view, but not it's parent framelayout (because apparently a cardview is actually 2 framelayouts) Feb 06 16:33:41 and there's no way to target the parent framelayout's attributes from the xml.... Feb 06 16:45:59 can someone explain me this declaration 629 public void More ...setAdapter(T adapter) { Feb 06 16:54:23 nvm got it Feb 06 17:19:13 hi folks Feb 06 17:21:06 My issue is getting fixed :D https://android-review.googlesource.com/#/c/129540/ Feb 06 17:21:16 It's everyone's issue Feb 06 17:21:26 True. I meant "the one I keep talking about". Feb 06 17:22:03 Your lack of community sense is appalling! Feb 06 17:22:20 haha Feb 06 17:22:28 :) Feb 06 17:22:34 Though it doesn't affect you non-Windows people. :) Feb 06 17:22:46 I saw that. Nice investigation on the issie Feb 06 17:22:59 how can we implement real time tracking of location via gps? what do we use xmpp or SIP or something else ?? Feb 06 17:23:04 Thanks. I was worried I was gonna annoy them with all my comments. Feb 06 17:24:43 Better to over communicate than under. Ambiguous bug reports are much more annoying. Feb 06 17:25:42 My "favorite" Picasso bugs are like "My images don't load. How do I fix?" Feb 06 17:26:10 Yeah, it's almost desirable to flood them with info, just so they can pick out what's important. Feb 06 17:28:15 I hope people start unit testing en masse now. So many people just don't bother on Android. Feb 06 17:32:00 hey guys, does anybody here know where the xposed devs hang out? Feb 06 17:33:08 #android-root ? Feb 06 17:37:15 This is interesting: "warn about unit tests and jack.": https://android-review.googlesource.com/#/c/129183/ Feb 06 17:37:28 can anyone tell me of a really CHEAP no plan android phone that would support BLE that i can try to convince my boss to buy for me? Feb 06 17:37:30 At least JVM testing is a first-class citizen in their world now. Feb 06 17:38:02 i just need an anroid phone that supports BT 4.0+, i dont need data or phone service Feb 06 17:38:13 I440r: http://www.motorola.com/us/consumers/shop-all-mobile-phones/Moto-E-pdp/moto-e.html Feb 06 17:39:23 yiati yea that looks like it would work for me if i can get him to fork over some cash Feb 06 17:39:41 It's super cheap for an unlocked phone Feb 06 17:40:13 yea Feb 06 17:41:55 Hey, lasserix. Did you hear about the JVM-unit-testing thing? Feb 06 17:42:09 now i just hasz to pluck up the courage to ask him to spend $$$ lol Feb 06 17:43:47 TacitcalJoke: This? -> http://tools.android.com/tech-docs/unit-testing-support Feb 06 17:43:51 Yeah. Feb 06 17:44:30 When was that published? Feb 06 17:45:09 f--ck apple seriousily this apple id sh..t Feb 06 17:45:21 Yesterday, I think. Feb 06 17:45:44 It was updated today (the "Method... not mocked" part). Feb 06 17:45:48 I440r: I would ask your boss for a Nexus 5 Feb 06 17:45:59 why a nexus 5 Feb 06 17:46:12 it's nicer than Moto E Feb 06 17:46:13 does the nexus 5 have BLE? Feb 06 17:46:18 yes Feb 06 17:46:18 is it CHEAPER Feb 06 17:46:23 no Feb 06 17:46:27 no sale Feb 06 17:46:37 but it's still cheap Feb 06 17:46:39 cheaper with no plan required == win Feb 06 17:46:46 I too would ask for the Nexus 5 first Feb 06 17:47:02 can get with no plan? Feb 06 17:47:05 Then if he says no, the Moto E will look like a steal Feb 06 17:47:12 of course it's a nexus phone Feb 06 17:47:51 and available from bestbuy :) Feb 06 17:48:04 if only their page didnt take 4 minutes+ to load in Feb 06 17:48:12 how much is it at bb ? Feb 06 17:48:22 dont know yet Feb 06 17:48:29 our NOTwork here sucks Feb 06 17:48:30 Can you get it unlocked at bestbuy? Feb 06 17:48:33 https://play.google.com/store/devices/details/Nexus_5_16GB_Black?id=nexus_5_black_16gb&hl=en Feb 06 17:48:50 no idea. that would be a requirement of course Feb 06 17:49:03 350 on google play, Moto E is 130. Both of those are no contract Feb 06 17:49:48 $350 ? Feb 06 17:49:50 I am trying to run an activity by intent Feb 06 17:49:51 he wont go for that Feb 06 17:50:08 but app crashes every time this intent is called Feb 06 17:50:15 TacticalJoke, they should have called the gradle junit, gunit Feb 06 17:50:22 getting him to spend the $120 will be a push Feb 06 17:50:23 yiati: haha Feb 06 17:50:28 i am using google example code Feb 06 17:50:37 gaganchd2000: Can you post the code to pastebin? Feb 06 17:50:42 (Try not to post it in here again. :D) Feb 06 17:50:49 hahaha sure Feb 06 17:51:02 google example code is often broken Feb 06 17:51:16 the recycler view example is broken Feb 06 17:51:19 Maybe Go-Lang's unit-testing framework could be called G-Unit. Feb 06 17:51:35 TacticalJoke: have you tried it yet? Feb 06 17:51:40 Go? Feb 06 17:51:48 oh the testing Feb 06 17:52:04 Oh. Kind of. It doesn't work on Windows from AS right now. (I've done it at the command line, though.) Feb 06 17:52:12 I'm guessing it'll be working tomorrow. Feb 06 17:52:12 http://pastebin.com/B3ueHV3b Feb 06 17:52:15 s/guessing/hoping/ Feb 06 17:52:25 that google nexus 5 page, when i click on the buy now it fast forwards me to a section of the page that has zero content :/ Feb 06 17:53:00 TacticalJoke t doesn't work on Windows from AS right now. (I've done it at the command line, though.) Feb 06 17:53:00 [23:22] I'm guessing it'll Feb 06 17:53:07 google should have dropped the price of Nexus 5 to under $300 by now Feb 06 17:53:11 gaganchd2000: Starting an activity is asynchronous. What you're doing looks kinda weird. Feb 06 17:53:19 You're starting an activity and then immediately doing other stuff? Feb 06 17:53:21 I440r, patience my young padawan, let the bytes flow (through the slow network) Feb 06 17:53:26 mani really hate apple Feb 06 17:53:36 i want what i want when i want what i want :P Feb 06 17:53:58 i think my ad blocker is blocking just that part of the page Feb 06 17:56:12 lasserix: Did you end up checking out Kotlin? Feb 06 17:56:25 I440r: maybe you can score a second hand Nexus 5 from ebay or amazon Feb 06 17:56:42 TacticalJoke: nah just started new job Feb 06 17:56:44 We are out of inventory. Please check back soon. <-- well i wont get one from google lol Feb 06 17:57:00 im not sure i would trust ANY phone from CL but amazon maybe Feb 06 17:57:00 Kotlin is good programming language. Is best programming language. Feb 06 17:57:11 I always think that, for some reason. I imagine a strong Russian accent. Feb 06 17:57:49 amazon marked up the nexuz to $500 wtf Feb 06 17:57:53 I440r: Can anything, or anyone, be trusted on CL? Feb 06 17:58:14 TacticalJoke, how much do you like to gamble :) Feb 06 17:58:15 The Russians have taken over, we lost the war Feb 06 17:58:15 AS is already russian Feb 06 17:58:39 The Internet has taught me that CL is where people get robbed/murdered. Feb 06 17:59:03 Or deceived in some life-changing way. Feb 06 17:59:31 TacticalJoke, which was my point. i would trust a second hand phone from amazon but not cl Feb 06 18:00:06 shmooz: Are you gonna switch to AS? :D Feb 06 18:01:00 what about ebay ? Feb 06 18:01:20 Wow n6 is 650! Feb 06 18:01:23 Shouldn't the guy be buying top-quality stuff for you developers? Feb 06 18:01:25 never! Feb 06 18:01:25 I'm no pinko sellout Feb 06 18:01:41 when I see you guys stop whining about it I'll think about it Feb 06 18:02:18 sorry got disconnected Feb 06 18:02:21 http://pastebin.com/B3ueHV3b Feb 06 18:02:35 gaganchd2000: Why are you doing stuff after startActivity()? Feb 06 18:02:53 Activity.startActivity returns immediately. Feb 06 18:03:20 this will call the third_activity Feb 06 18:03:37 i saw this as example on youtube Feb 06 18:03:54 bad example Feb 06 18:04:13 Unless this is from a service or something Feb 06 18:04:39 Wow, Android Studio feels way quicker when you disable all those crazy plugins. Feb 06 18:04:50 which crazy plugins? Feb 06 18:05:04 Things like the CVS plugin. Feb 06 18:05:09 Or that weird Commander tool window. Feb 06 18:05:10 TacticalJoke: I've already been using AS since it's first release at Google I/O until version 0.8x, and then after an update it stopped working and I didn't want to do a full reinstall Feb 06 18:06:01 Feels faster or is faster? Feb 06 18:06:09 ok so what i have done is used a sample code of google for BLE gat servies and then created a new blank activity by right click. Now i want to call this activity when an item is choosen in list Feb 06 18:06:09 Feels. Possibly is. Feb 06 18:06:29 when getting lollipop incorporated with appcompat, should the themes.xml AppTheme for v21 inherit from the appcompt or from material? Feb 06 18:06:44 for that i am calling startactivity Feb 06 18:06:45 gaganchd2000: You didn't answer what I said. Why would you call startActivity and then do stuff afterwards? It looks bizarre. Feb 06 18:07:25 right now i have it inheriting from appcompat (so special themes.xml for v21), but I am not seeing the new error treatments for my edit texts Feb 06 18:07:37 yes i am just trying to initiate a activity.. in debuggin i saw this method is triggered when we select a item in list Feb 06 18:08:16 gaganchd2000: Why don't you put the code below startActivity() above it? Feb 06 18:08:17 so i placed start activity here so that when ever this method is triggerd it initiates my third_activity Feb 06 18:08:58 ok let me try this.. Feb 06 18:09:28 It was a rhetorical question. I was just trying to determine whether you believe that startActivity() is blocking (or something). Feb 06 18:13:22 I'm guessing there'll be an AS Beta 5 tonight or tomorrow. Feb 06 18:13:30 Or maybe they'll just go crazy and release. Feb 06 18:13:44 I'm stuck on a weird problem. basically I am using AutoCompleteTextView. Now whenever something is typed the dropdown shows up. But I want to add a timeout. basically i want the filtering logic to get executed (specified in the adapter) after a specified amount of time, basically add a timeout, how can I do that ? Feb 06 18:13:50 Ok I am new to this android studio so took it literally Feb 06 18:15:15 problem is AutoCompleteTextView has an internal textwatcher that executes the filter as soon as something is typed Feb 06 18:16:23 can you tell me where to call activity when item is selected from list Feb 06 18:16:37 i mean which method is called Feb 06 18:16:38 ? Feb 06 18:16:59 let me paste my code Feb 06 18:17:03 I don't know what you're doing. Feb 06 18:17:13 Can you talk in detail about the problem? Feb 06 18:17:35 i used google example code for BLE services. Feb 06 18:18:05 what code does is it scan any BLE devices and then display on list Feb 06 18:18:21 What exception message are you getting? And when are you getting it/ Feb 06 18:19:05 question on Iab - is there no way to get all unowned sku details without having a list of skus beforehand? Feb 06 18:20:25 My View pager's views aren't filling up the ViewPager ,which is set to match_parent/match_parent, which takes up the whole screen Feb 06 18:20:48 so when i select a charcterstics then it should go to third_screen Feb 06 18:21:14 this is what i am trying to implement Feb 06 18:25:35 exit Feb 06 18:26:16 o_O Feb 06 18:26:21 gaganchd2000: Nobody can help with such little info. Feb 06 18:26:35 At the very least, you should be talking about the exact exception you're seeing. Feb 06 18:27:11 yehh i understand ... may be i should do more self learning Feb 06 18:27:36 little knowledge is dangerous thing Feb 06 18:27:39 :P Feb 06 18:28:47 :D Feb 06 18:29:55 explodes: you need more detail if you want to debug that Feb 06 18:30:03 reddit is down a lot lately. I think they're just showing off their new "we're down" page. Feb 06 18:31:46 lol TacticalJoke Feb 06 18:34:47 TacticalJoke: you should have a fallback server for when it goes down so people can still use your app Feb 06 18:35:22 I'm sure they have plenty of redundent servers at Reddit Feb 06 18:35:32 Maybe I can just show them a cat video from YouTube or something. Feb 06 18:36:43 or redirect them to TMZ Feb 06 18:37:01 that's kindof how I see Reddit Feb 06 18:37:19 airheaded gossip Feb 06 18:37:32 TacticalJoke: what is your reddit app called? Feb 06 18:37:46 I can't reveal yet. Sorry. lol Feb 06 18:37:55 ah not released yet. np Feb 06 18:37:57 Just because I like the name so much that I don't want it to be copied. Feb 06 18:37:59 shmooz: isn't that just the internet as a whole? :) Feb 06 18:38:09 Even though the likelihood is probably around 0.06%. Feb 06 18:38:19 is it RedditNow :) Feb 06 18:38:21 haha Feb 06 18:38:28 RedditLater? Feb 06 18:38:28 Bluedit Feb 06 18:38:29 JesusFreke: if you follow the sheep yes Feb 06 18:38:31 :) Feb 06 18:38:37 We're not even allowed names like that. Feb 06 18:38:52 Gotta be "" or " for reddit". Feb 06 18:38:59 really? I use reddit is fun Feb 06 18:39:15 ah okay Feb 06 18:39:18 Yeah. Not sure about 'reddit is fun', but a lot of those apps are gonna have to change names at some point. Feb 06 18:39:27 I had some good names but I forgot, I think it was Redditor Feb 06 18:39:31 Not only will Google be onto them, but reddit will, too. Feb 06 18:39:32 and RedEyez Feb 06 18:39:47 The guys from reddit told me they're gonna clamp down sometime. Feb 06 18:40:14 ooh I like redEyez Feb 06 18:41:40 figured out what left justified means when it comes to bytes Feb 06 18:41:50 if you have the ascii value 1 in little endian it is 31 00 00 00 Feb 06 18:42:32 tricknology: :) Feb 06 18:42:50 ugh as a side project i am trying to reverse engineer samsungs BLE protocol Feb 06 18:42:54 tricknology: are you doing ASM ? Feb 06 18:43:07 not fun at all, i have 0 knowledge and just doint it so i can write my own custom app Feb 06 18:43:32 jareddlc: g00s knows a lot about bluetooth here Feb 06 18:43:47 yeah he's been very helpful Feb 06 18:44:02 no, stuff with tiff images Feb 06 18:54:49 Hi Feb 06 18:55:42 What is the recommended corners radius for my app icon? Feb 06 18:56:27 display metrics widthPixels is returning 1794 instead of 1920(nexus 5), but it is getting the height right (1080) Feb 06 18:57:31 as suggested i added some to my manifest but it didnt work Feb 06 19:02:53 hello people peoples Feb 06 19:04:02 oops. Feb 06 19:04:16 x-chat doesn't like it when you put an invalid time stamp format in... Feb 06 19:04:27 MalekAlrwily: Corner radius is an iOS concept, and Android encourages creative app icons Feb 06 19:04:45 corner radius for app icons* is an iOS concept Feb 06 19:04:46 :o Feb 06 19:04:54 * hesperaux is amused by the undertones in that statement Feb 06 19:04:58 xchat.. so many memories Feb 06 19:05:05 Ashiren, :D you version'd me. aww Feb 06 19:05:17 * hesperaux still likes x-chat, even on doze Feb 06 19:05:25 also use HexChat [solved] Feb 06 19:05:33 :o is that a fork? Feb 06 19:05:36 use weechat Feb 06 19:05:41 :D Feb 06 19:05:41 eeyup Feb 06 19:05:51 hmm, that sounds interesting. lookin that up Feb 06 19:05:57 +1 for weechat Feb 06 19:06:02 or irssi Feb 06 19:06:09 lol for cli I use irssi Feb 06 19:06:10 what makes xchat bad :P ? Feb 06 19:06:16 weechat Feb 06 19:06:23 troffel, maybe just that it's outdated? Feb 06 19:06:24 + tmux Feb 06 19:06:34 best irc client Feb 06 19:06:38 irssi if you have free time, weechat if you have a life Feb 06 19:06:48 :D Feb 06 19:06:51 i never had time to config irssi to be useful, so I just use it in a pinch Feb 06 19:07:04 ^ hence weechat Feb 06 19:07:11 android forces me to work with guis all the time but I miss vim Feb 06 19:07:12 pre-config'd? hmm Feb 06 19:07:20 * hesperaux prefers nano to vim Feb 06 19:07:20 MooGoo, yes + tmux for super powers Feb 06 19:07:34 Hi, all. anyone willing with Google IP violations? Feb 06 19:07:36 hesperaux: yep it has really nice intuitive defaults Feb 06 19:07:43 MooGoo: forces? Feb 06 19:08:00 ? Feb 06 19:08:35 hesperaux, I have no idea about what the IRC flavour of the month is :D Feb 06 19:08:53 tmux + weechat + pidcat = android cli heaven Feb 06 19:09:02 Why are my wearable notification backgrounds not showing. I'm just getting a solid color. Feb 06 19:09:05 i used to use modded mircs. Invision...that is nostalgia for me Feb 06 19:09:12 is there any way to determie which part of an app violated IP so that google removed my app? Feb 06 19:09:37 yiati: Google android apps icons is rounded Feb 06 19:09:37 IP as in intellectual property? Feb 06 19:09:43 so if I have different types of viewholders in a recyclerview Feb 06 19:09:53 and I implement getItemViewType Feb 06 19:10:25 then in onBindViewHolder, it should be the right type of view, right? Feb 06 19:10:37 MalekAlrwily: some of them are yes, but none of them follow a consistent rounded corner like iOS app icons. They are made more to fit the material you are mimicking Feb 06 19:10:38 yes hes. I own and dev app for 13 years without complains recently they just file IP notice and no explanation. Feb 06 19:11:20 yiati: oh Feb 06 19:11:52 SadDev2015, that sucks. I don't know...are you using open source libs or freeware without including the license or mentioning the libraries in the app? Feb 06 19:12:46 The ip notice bots on Android have been kicked into high gear recently and this has happened to a lot of people. Could be images or assets, could be anything Feb 06 19:12:53 Free with in app purchase, Official documentation can be found here http://www.mediamonkey.com/forum/viewtopic.php?f=26&t=79107 Feb 06 19:14:55 @hes: this is not something we take lightly we are serious and mature company. Feb 06 19:16:27 I'm reading the forum post - this looks like a real pain Feb 06 19:17:52 Yeah, you can't imagine 7 developers (including me) live from company products and Android app was heavilly developed adn maintained. Feb 06 19:19:08 @hes: I'm not sure you can see it for yourself while one is still up due teh appeal https://play.google.com/store/apps/details?id=com.ventismedia.android.mediamonkeybeta Feb 06 19:19:20 hello Feb 06 19:19:40 * SadDev2015 greets John67 Feb 06 19:20:22 SadDev2015, that's a 404 Feb 06 19:20:46 this makes me pretty nervous for the app i'm developing Feb 06 19:21:03 I didn't even know they had bots that run around looking for this stuff Feb 06 19:21:22 @hes: try this "play.google.com/store/apps/details?id=com.ventismedia.android.mediamonkeybeta" Feb 06 19:21:34 Retested Link works Feb 06 19:22:05 still 404 Feb 06 19:22:09 Hey guys, Ive seen the new SnackBar around but see no documentation to use it Feb 06 19:22:23 Is it available for use yet? Feb 06 19:22:47 SadDev2015, don't think I can help you anyway - I don't have experience with this. I've still never published to Play Feb 06 19:22:50 HES: This one? http://www.mediamonkey.com/forum/viewtopic.php?f=21&t=68820&sd=d Feb 06 19:23:27 @hes: What are you developing if not secret. Feb 06 19:23:48 it's a sort of diary app Feb 06 19:24:02 hesperaux, why never? developing for $work only? Feb 06 19:24:32 pfn, cuz i'm still learning as I go. This is my first app - it's a side hobby thing, but I was hoping to make a little bit of money on it Feb 06 19:24:46 @hes: Hope you make good one I've not found one that suitsmy needs. Feb 06 19:24:52 ok it's my second app - the first one wasn't published though Feb 06 19:25:27 Anyone ever worked with Snackbar over toast? Feb 06 19:25:31 the first app I made was for my senior design project in college. it's riddled with bugs xD Feb 06 19:25:34 I don't understand why google uses bots for rejecting apps, that's pretty terrible, every rejection should have an immediate appeal hotline Feb 06 19:25:45 pfn, agreed Feb 06 19:25:54 this type of issue should not be automated Feb 06 19:26:03 Te that to them Feb 06 19:26:12 tell me where to sign the petition Feb 06 19:26:17 correct, it needs a human process, perhaps a community process Feb 06 19:26:42 Google: automate ALL THE THINGS. Feb 06 19:27:11 I had an app rejected once, fortunately, someone here was able to help me out Feb 06 19:27:16 google would still have to suspend the app during the investigation Feb 06 19:27:23 but now all the googlers are gone Feb 06 19:27:26 and who would pay these humans to do a good job? Feb 06 19:27:32 if they want to do the warnings auto, ok, but it shouldn't shut down your app in 7 days automatically Feb 06 19:27:50 * SadDev2015 agree with jonez Feb 06 19:27:59 were you given any idea *why* your app was yanked? Feb 06 19:28:03 I just signed http://www.change.org/p/google-inc-provide-android-developers-with-one-on-one-communication-to-help-identify-and-resolve-policy-violations-prior-to-automated-and-irreversible-suspensions Feb 06 19:28:35 SadDev2015: the link is locked Feb 06 19:28:57 awesome. I'm signing this Feb 06 19:29:43 * SadDev2015 was sorry, but wonders any issue with the link? Feb 06 19:30:07 SadDev2015: the link u send is locked Feb 06 19:30:22 SadDev2015: Web Page Blocked! Feb 06 19:31:30 Ok. Feb 06 19:32:04 so android doesn't provide video and image framework? do I really need to use ffmpeg? Feb 06 19:32:27 @John: any experience with IP{ auto notification to find out? Feb 06 19:32:41 gdrc: no and yes. Feb 06 19:33:01 that's sad Feb 06 19:33:07 gdrc: if you reside only on formats that device supports than NO Feb 06 19:33:30 If you want to support vider range of formats than YES. Feb 06 19:33:38 i have to create and merge videos (mp4) Feb 06 19:34:37 Hmmm..... I think that you need it as you need encoder that will merge two files, Feb 06 19:35:20 why must i register a billing address Feb 06 19:35:22 such bs Feb 06 19:36:03 @gdrc: merge in what way as output to screen or as MP4 file Feb 06 19:36:17 mp4 Feb 06 19:37:03 Lass: have you tried apple store account? Most people here can't register there due the billing :) Feb 06 19:37:31 signed Feb 06 19:37:48 gdrc, ffmpeg if you're working with unsupported formats, sure Feb 06 19:38:44 oh, use ffmpeg Feb 06 19:38:47 not that hard, in that case Feb 06 19:38:54 I still wonder, is there a good build of jna for android? Feb 06 19:38:57 * pfn hasn't looked in a while Feb 06 19:39:22 @Gdrc: I think you need FFMPEG, think that there was few changes to API 4.x+ where you can use native encoder if embed in device. Feb 06 19:39:44 thanks guys Feb 06 19:39:51 pfn: Not that I know. Feb 06 19:40:07 Hello, I'm writing a custom view, I'd like that view to match_parent, how do i get the width of the screen so I could set the size of the view? Feb 06 19:40:10 GDRC: No problem. Feb 06 19:40:58 Viran: Think Android.system Feb 06 19:41:11 android.system? lolwut Feb 06 19:42:09 SadDev2015: How exactly? isn't the available width should be in widthMeasureSpec ? Feb 06 19:42:53 when i use displaymetrics to get the width, it returns 1794 instead of 1980. i can see now it has done this to scale to an aspect ratio of 16:10 instead of my device's native 1920x1080(nexus 5), how do i disable this scaling? Feb 06 19:43:21 i want to reset it to 16:9(1920x1080) Feb 06 19:44:15 also when i make a canvas view to draw on, it is drawing on the scaled width of 1794 Feb 06 19:44:56 SadDev2015, this IP issue upsets me greatly. Feb 06 19:45:38 Hmmm. be back Feb 06 19:48:22 Viran: See imersive mode if you want to get full screen https://developer.android.com/training/system-ui/immersive.html Feb 06 19:52:34 hes: re IP Most of my personal like you I just sideload. Feb 06 19:53:21 hes: meant ... my personal custom made/requested apps ... Feb 06 19:53:41 Just bought my IAP from amazon for testing purposes but they seem to be giving it for free? — https://dl.dropboxusercontent.com/u/8176796/Screen%20Shot%202015-02-06%20at%2019.51.46.png Feb 06 19:53:48 Should I be worried? Feb 06 19:55:43 I just released it so I’m not sure if something has gone wrong Feb 06 19:56:05 i cant find anything about disabling scaling. should i just use the scaled aspet ratio from displaymetrics for rendring my game then? Feb 06 19:57:07 nj: if you want 16:9 full screen you need to start immersive and than you will be scalled correctly. Feb 06 19:57:24 immersive? Feb 06 19:57:29 or use like you pointed. Feb 06 19:57:45 Imersive mode see my link above. Feb 06 19:58:27 ahh thanks Feb 06 19:58:43 NJ: NP Feb 06 20:00:52 * SadDev2015 has gone in smoke thank you all Feb 06 20:01:19 It just subtracted the IAP cost with a promotion deduction even though amazon have not mentioned anything to me about this? Feb 06 20:01:33 do most devices scale the display to 16:10? Feb 06 20:01:47 i mean 16:9 ones Feb 06 20:02:11 i thought of 16:9 as standard because 1920x1080 is it Feb 06 20:03:56 Most devices scale it to whatever the devices aspect ratio is which isn't necessary 16:9 Feb 06 20:04:13 the new nexus 9 and 6 are both 4:3 Feb 06 20:04:17 im on a nexus 5 which is 1920x1080 Feb 06 20:04:33 necessarily* Feb 06 20:04:39 Okay Feb 06 20:04:42 my app forces landscape mode and the display is scaled to 1794 x 1080 Feb 06 20:04:46 for some reason Feb 06 20:05:28 What's "the display" Feb 06 20:06:03 Is there a good way to set ImageViews' resource in a way that only uses a scaled image so that memory is saved? Feb 06 20:06:08 what is returned in display metrics and the canvas draws accoriding to this too (eg if i set coordinate to draw to 1790 it goes to the edge Feb 06 20:06:23 explodes: Use Picasso Feb 06 20:06:27 I am using picasso.fit() to make it work, but picasso is loading the resource too late, the pages in my ViewPager show up white Feb 06 20:06:38 app = (VersesApplication)getActivity().getApplicationContext(); cant cast, how can i solve this Feb 06 20:06:41 (until the resource is loaded) Feb 06 20:07:20 explodes: that's basically correct behavior. fit() needs to have a known size to load into. Feb 06 20:07:45 eh, the size *could* be known alread Feb 06 20:07:51 njcomsec: Software buttons take up space Feb 06 20:07:59 explodes: set a placeholder resource, or a black background or something? or if you know the size, I think you can explicitly set a size in the load request builder Feb 06 20:08:13 groxx: kk Feb 06 20:08:59 explodes: looks like it might be resize/resizeDimen. Feb 06 20:09:42 groxx Excellent. thank you Feb 06 20:11:50 i am aware of the button space. the side panels are not really the effect i was describing Feb 06 20:12:45 groxx: that is excellent, thank you. Feb 06 20:13:09 Is there a good way to defer executing code until views are laid out (on an activity in particular) Feb 06 20:13:32 the old pattern i've used before seems archaic Feb 06 20:13:36 back Feb 06 20:13:38 eh... depends. possibly the closest to your question is to add a view tree observer. Feb 06 20:13:45 njcomsec, no, you're talking about the display size that is exactly 1920 - softkeys Feb 06 20:13:54 njcomsec, if you're not, you might want to ask the actual question. Feb 06 20:14:08 and Android apps aren't scaled. Feb 06 20:14:18 groxx: i just need the wait until i have the width and height of my ViewPager Feb 06 20:14:18 not in a way iOS apps are. Feb 06 20:14:38 what do you mean ask the actual question? Feb 06 20:15:34 njcomsec, you said that softkeys taking up app space aren't the effect you're describing. What is causing you issues then? Feb 06 20:15:56 To answer your question, no, no devices scale the display. The nexus 5 doesn't either, it's display is always 1920x1080px Feb 06 20:16:04 explodes: ah. personally I add a layout observer and wait for the first pass. it's not guaranteed to be the final size, but with some layouts it's correct. Feb 06 20:16:10 That says nothing about how much space is available to your app tho Feb 06 20:16:21 groxx kk, that's what i was thinking. thanks Feb 06 20:16:34 explodes: I'd be interested in finding a better option, but not sure what it would be. I'm sadly not very well versed in views. Feb 06 20:17:21 explodes, you attach a onGlobalLayoutListener to your viewtree Feb 06 20:17:38 explodes, that is, you say topLevelView.getViewTreeObserver().addOnGlobalLayoutListener(); Feb 06 20:17:48 im trying to import an existing database in the project and use it as the database. but it doesnt work, i have created the asset folder and copy it, but it cant access the database . i dont get why it doesnt work http://pastebin.com/i7yLfEdp Feb 06 20:17:53 that listener will be called immediately after layout and you'll have everything measured and populated Feb 06 20:17:58 (don't forget to remove it) Feb 06 20:18:32 Mavrik: removing the listener is only in API 16 Feb 06 20:18:36 john67, because you're doing something beyond horrible Feb 06 20:18:41 as a fallback, I have to do a boolean check I guess? Feb 06 20:18:43 explodes: ^ and watch out for second+ passes, and e.g. rotation changing sizes. Feb 06 20:18:45 john67, why the heck are you hardcoding the path Feb 06 20:18:53 explodes, it's not API 16 it's just a typo Feb 06 20:19:01 :U Feb 06 20:19:01 explodes: there's a deprecated removeGlobalOnLayout or whatever, yeah, just a typo. Feb 06 20:19:02 explodes, it's removeGlobalOnLayoutListener before that :D Feb 06 20:19:24 There's also View#OnLayoutChangeListener Feb 06 20:19:29 that too Feb 06 20:19:30 Oh. haha: removeGlobalOnLayoutListener Feb 06 20:19:53 depending on what do you want to do is you can also use onSizeChanged Feb 06 20:19:59 :'( that java doesn't have open classes (even locally, like Kotlin) Feb 06 20:20:29 john67: john67: http://developer.android.com/reference/android/content/Context.html#getDatabasePath(java.lang.String) Feb 06 20:21:14 groxx: Mavrik SimonVT: damn, you guys, this works perfectly,. Feb 06 20:21:26 low-mem, smooth, beautiful Feb 06 20:21:27 <3 Feb 06 20:22:17 mhm, I usually use patterns like "getHeight() == 0 : attach layout listener else: do it now" Feb 06 20:22:31 I wonder if there's a better way of handling the case of "check if layout is done and do it after if not" Feb 06 20:22:50 Yea, I'll write up a quick util that uses OnGlobalLayoutListener Feb 06 20:22:57 it'd be smart to check 0's first. Feb 06 20:23:27 hi Feb 06 20:24:00 i've been trying to use adb with my android phone but i can't make it works Feb 06 20:24:33 i've set debugging usb mode 'on' and tried with both udev rules and adb_usb.ini Feb 06 20:24:46 but adb can never detect my phone Feb 06 20:25:01 RageYL: if you type 'adb devices' does it show anything? Feb 06 20:25:08 it show empty list Feb 06 20:25:11 hey there! got a question: how do i know when my MenuItems are inflated in the SupportActionbar? if i use findViewById() in onCreate() or in onCreateOptionsMenu i get a nullpointer. i want to save my MenuItems in a list as early as possible so i can modify them later. any suggestions? Feb 06 20:25:31 RageYL: does your phone have multiple connection modes? like camera, MTP, etc? Feb 06 20:25:35 Saabzero, well, you do inflate them manually. Feb 06 20:25:42 after you inflate them, put them into the list. Feb 06 20:25:53 groxx, it has charge, mtp, ptp Feb 06 20:25:57 it's currently on MTP Feb 06 20:25:57 Mavrik: so by manually you mean programmatically? Feb 06 20:26:23 RageYL: try them all :) I forget which works and why, or maybe it's even device-specific. Feb 06 20:26:35 lol ok ^^ Feb 06 20:26:44 RageYL, if you're on linux you can of course see dmesg output Feb 06 20:26:49 and see if your device is even recognised Feb 06 20:26:54 before you waste time with everything else. Feb 06 20:27:13 yep my device is recognize (i've seen it throught dmesg) but i do no show anything else useful Feb 06 20:27:55 just to be sure: if i'm root a single adb_usb.ini should be enough ? Feb 06 20:28:43 groxx, you're right !!! Feb 06 20:28:57 i must use 'send images' mode Feb 06 20:29:00 but why :P Feb 06 20:29:18 RageYL: sweet. yeah, no clue :) Feb 06 20:29:27 it's certainly frustrating though Feb 06 20:30:47 Mavrik: then how can i do ? Feb 06 20:39:37 Mavrik: when do you think is "after you inflate them"? - when i add them to the list in onCreateOptionsMenu they are all null - also if i add them after calling super.onCreateOptionsMenu(). Is there an activity method call after onCreateOptionsMenu? Feb 06 20:41:09 Saabzero, what do you mean they're all null? You're inflating menu items in onCreateOptionsMenu Feb 06 20:41:14 what exactly are you doing? Feb 06 20:44:54 if u got a chromecast u can get $6 in google play credits for free - > https://cast.google.com/chromecast/offers/ Feb 06 20:49:18 two months ago, i ordered a chromecast via google play... after more than two weeks and still having not the product in my hand, the status were reporting like I have been received it which was not true, so I lost more time on contacting the support (only by phone....) to few days after finally tell me: the product has been lost OR stolen Feb 06 20:49:52 so I have to inform them that I did not receive my stuff so they can tell me: ohhh it's normal, your product has been lost or stolen... Feb 06 20:50:07 i had then to wait 15days to get refunded, etc.. Feb 06 20:50:08 is there a correct way to give a cardview a statelist color background? Feb 06 20:50:09 not happy lol. Feb 06 20:50:21 I bought a chromecast elsewhere for cheaper after that. Feb 06 20:50:27 (arrived in 2 days) Feb 06 20:52:14 shekibobo, you can just make a selector drawable and set that as the background Feb 06 20:52:17 you are right it is not scaling. i was confused because the displaymetrics was deducting the side panel but not the top panel and the deduction happend to be about 16:10 by concidence Feb 06 20:52:30 yep Feb 06 20:52:32 adq next time, buy from amazon :) Feb 06 20:52:49 yiati: doesn't seem to work. this does, though: http://stackoverflow.com/a/25856823/447934 Feb 06 20:53:00 g00s, this is the "elsewhere" Feb 06 20:53:13 worst is.. it was for a birthday gift of someone i know Feb 06 20:53:22 so I never got it in time for her lol Feb 06 20:53:39 adq just tell her google, she'll understand Feb 06 20:53:44 lol Feb 06 20:53:55 I realized she's almost never using it though :) Feb 06 20:54:02 hehelol Feb 06 20:54:38 now, this is cool http://www.gizmag.com/paragon-induction-cooktop/35972/ Feb 06 20:54:40 I think under the hood, it's a transporter mistake Feb 06 20:54:46 like dhl, fedex, ups or another Feb 06 20:54:48 induction cooker connects to iphone Feb 06 20:54:48 i still dont get why the database isnt created , http://pastebin.com/yCMDQ2mY Feb 06 20:54:52 but it's not my problem Feb 06 20:55:16 shekibobo: Right I thought I remember it working with regular selector drawables, you just have to set it on the foreground property instead of background Feb 06 20:55:50 yeah, it's not great, but it'll do for now Feb 06 20:55:51 any* selector drawable Feb 06 20:56:00 why is it not great Feb 06 20:56:03 though if anyone wants that to work, start this issue https://code.google.com/p/android/issues/detail?id=78198 Feb 06 20:56:21 because foreground is drawn over the view instead of as the background Feb 06 20:56:46 s/start/star Feb 06 21:01:13 How do you get multiple build variants on the same device with an android service? Feb 06 21:01:32 john67: db path is data/data/com.package.name/databases Feb 06 21:02:06 @jaynewstrom have you done this? Feb 06 21:02:19 jaynewstrom: Feb 06 21:02:32 john67: are you trying to copy a database you put in asessts or whatever? Feb 06 21:02:44 lasserix: yeah Feb 06 21:03:32 what's the error? also you can use this: https://github.com/jgilfelt/android-sqlite-asset-helper Feb 06 21:05:07 lasserix: i have tried with the path, i got null , which means the bdd isnt creatdd Feb 06 21:05:15 created Feb 06 21:05:19 john67: so you DBPATH would be data/data/packagename/databases/Verses.db Feb 06 21:05:31 It also helps to use an unlocked device when testing dbs so you can get familiar with what's going where Feb 06 21:05:53 john67: but your source db isn't in /databases it should either be a raw or an asesst Feb 06 21:06:02 yep Feb 06 21:06:14 Is there any call of an activity which is issued after onCreateOptionsMenu? Feb 06 21:06:58 john67: so it looks like you're trying to copy from a non-existing database: but step thru with debugger and see where the problem is (or use that library) Feb 06 21:07:48 Saabzero, onDestroy() Feb 06 21:07:52 * Mavrik slaps lasserix. Feb 06 21:08:01 Don't teach people to frigging hardcode paths that can change. Feb 06 21:08:09 And which are readily available in context. Feb 06 21:08:20 if i open a listPreference in PreferenceFragment and change orientation without canceling or choosing a value, it cant be opened again after orientation change. How do i avoid that? Feb 06 21:08:32 getDatabasePath("database.db") Feb 06 21:08:48 ^ Feb 06 21:08:49 yiati: thats probably too late :P Feb 06 21:08:56 Saabzero: for what Feb 06 21:09:07 Saabzero, you still didn't explain what you're trying to do really. Feb 06 21:11:10 yiati: Mavrik: i have basically this problem: http://stackoverflow.com/questions/13544355/oncreateoptionsmenu-called-after-onresume-on-jb-4-2 Feb 06 21:11:30 lasserix: the bd is in the assets, but i have a folder called verses instead of databases, if i understand what u mean i should rename the folder databases? Feb 06 21:11:40 hi Feb 06 21:11:56 I need some flat icons for my menu. do you guys know any good website? Feb 06 21:12:23 yeah Feb 06 21:12:37 Peyam, there's material icons page Feb 06 21:12:42 john67: yeah databases are created in /packagename/databases/ i believe i think without .db exentsion but i don't remember Feb 06 21:12:52 Saabzero, so you're trying to set an action view in the actionbar? Feb 06 21:12:54 Peyam: there is also a plugin for AS to auto import material design icons Feb 06 21:12:55 Mavrik, hit me with the link? Feb 06 21:13:07 where? im new to AS Feb 06 21:13:27 I used to download them manually and put them inside the drawable Feb 06 21:13:36 Mavrik: i am trying to access the View of a MenuItem to give them an initial property when the activity starts Feb 06 21:13:47 ah, I see Feb 06 21:13:58 but onCreateOptionsMenu is called after onCreate and onResume Feb 06 21:14:00 Saabzero, the view being the drop-down menu? Feb 06 21:14:17 Saabzero, and also, the question, why aren't you setting it in onCreateOptionsMenu itself? Feb 06 21:14:41 Mavrik: the view is also null in onCreateOptionsMenu... Feb 06 21:15:02 Mavrik: if i use menu.findItem with the id or findViewById, both give me null Feb 06 21:15:22 Mavrik if i use postDelayed it works fine, but i think that's a really ugly solution Feb 06 21:16:08 john67 no. folder names are irrelevant. Put it in the assets directory and it doesn't matter what the path within there is. Feb 06 21:16:49 john67, you can debug where Android believes the asset folder is versus where you are intentionally placing it Feb 06 21:16:52 that may be wrong Feb 06 21:16:55 Mavrik: i have 2 MenuItems, one of which i want to darken a bit - because it is inactive - initially Feb 06 21:17:20 Saabzero, um, I do that by setting color filter Feb 06 21:17:30 Saabzero, and works perfectly in onCreateOptionsMenu Feb 06 21:17:52 yiati: oki, i have it in asserts Feb 06 21:18:03 Saabzero, get drawable form menuitem, setcolorfilter on it Feb 06 21:18:15 menuitem must be available after you inflate it Feb 06 21:18:18 by calling inflate. Feb 06 21:18:19 assets Feb 06 21:19:17 Cool Feb 06 21:20:36 Mavrik: really? - maybe i'm doing it wrong... could you have a short look at that snippet? http://pastebin.com/r10RVTWc Feb 06 21:21:36 um, yeah, of course that doesn't work, menu items aren't views per se Feb 06 21:21:43 at least not with IDs as you look at them Feb 06 21:21:57 Can I define an attributeset in xml to use for a custom view when invoking the simple Context context constructor? Feb 06 21:22:15 Saabzero, you have to call menu.findItem() Feb 06 21:22:27 Saabzero, and then you get a MenuItem not a View Feb 06 21:22:43 Saabzero, and that menuitem has an Icon Feb 06 21:23:08 Mavrik: ah, i see now... i'm dumb :D Feb 06 21:23:20 Mavrik: will try now, thank you *very* much! Feb 06 21:23:37 Saabzero, so if you do MenuItem.getIcon().setAlpha(128) Feb 06 21:23:42 it'll be quite darkened Feb 06 21:27:01 are there any good guides for getting started with butterknife/dagger/flow/mortar? Feb 06 21:27:21 other guides besides their respective intros, I mean Feb 06 21:28:57 Saabzero can also call invalidateOptionsMenu any time Feb 06 21:29:14 Can noone help me on this? if i open a listPreference in PreferenceFragment and change orientation without canceling or choosing a value, it cant be opened again after orientation change. Probably its in the back or something.... Feb 06 21:29:22 hi Feb 06 21:29:23 drinfernoo there is an app, u2020 i think Feb 06 21:29:49 Can someone say me how i can make screenshots with my app? With which method i can make screenshots? I need this in my app Feb 06 21:31:34 okay, i know it. Feb 06 21:34:23 I got a problem uploading an APK, it's for an upgrade, it's saying "can't use it, versioncode 1 alreay exist"... but my manifest got versioncode 8 ... Feb 06 21:34:26 any idea why ?* Feb 06 21:34:54 drinfernoo: butterknife is also super simple. The intro page is everything you need to know Feb 06 21:35:58 blusky, well, your manifest in the apk probably doesn't. Feb 06 21:36:07 blusky, are you changing the version code in XML instead of build.gradle? Feb 06 21:36:20 does android studio use different manifest in debug or release mod ? Feb 06 21:36:30 Mavrik: yup, in the manifest Feb 06 21:36:33 i shouldn't? Feb 06 21:36:37 build.gradle overrides the manifest Feb 06 21:36:44 oh Feb 06 21:36:45 blusky, those values get overwritten by values from build.gradle configuration at build time. Feb 06 21:36:48 ok Feb 06 21:37:09 I bought my IAP from amazon for testing purposes but they seem to be giving it for free? — https://dl.dropboxusercontent.com/u/8176796/Screen%20Shot%202015-02-06%20at%2019.51.46.png Feb 06 21:37:18 Has this happened to anyone else? Feb 06 21:37:19 so you've said Feb 06 21:37:57 has receiving free items ever happened to me? yep college campus always gives out free pizza Feb 06 21:38:46 <_genuser_> dang piano. I think I hut my pinkie muscle from the palm joint towards the tip by practicing too hard. Feb 06 21:38:53 Mavrik: great, working fine now :-) (first release since I use android studio) Feb 06 21:39:06 <_genuser_> i know nobody cares in #android-dev about that, but it's kinda annoying typing too long Feb 06 21:39:44 _genuser_, well that's what you get for not playing the hammer: http://i.imgur.com/dT57rIR.gif Feb 06 21:40:16 yiati lasserix cant step into the class with a debugger in question, very weird, bcos i call the Sqlite Class is called in a different class with is called in the Application class Feb 06 21:40:29 <_genuser_> Mavrik: lol, that's pretty awesome. you could be like oh I'm in the xyz symphony. and I play the hammer... Feb 06 21:41:02 how do i get the action bar @ the bottom Feb 06 21:41:05 what is it called Feb 06 21:41:07 hmm... how do I get around the "too many views" thing? cause I'd like to eventually display a 17x8 grid of numbers.... Feb 06 21:41:10 john67 log to console Feb 06 21:41:28 <_genuser_> Mavrik: I watched one too many valentina lisitsa videos and thought I need to improve my overall muscle strengh so I can play crap faster and more nuanced. Feb 06 21:41:32 DragonPunch, split action bar? :) Feb 06 21:41:42 <_genuser_> Mavrik: few days later, my hand is like ouch Feb 06 21:42:02 newbQ, make a custom view that renders all the numbers exactly like you want it. Feb 06 21:42:27 Mavrik: Is there a turorial for that somewhere? Feb 06 21:43:07 yeah, look for custom view tutorial Feb 06 21:43:17 john you use step into Feb 06 21:43:21 basically you just override View and there's a draw(Canvas canvas) method Feb 06 21:43:24 and you draw on that canvas. Feb 06 21:43:28 and measure Feb 06 21:43:29 and then you just add that view class to XML Feb 06 21:43:32 don't forget onmasure Feb 06 21:43:46 newbQ: https://thenewcircle.com/s/post/1663/tutorial_enhancing_android_ui_with_custom_views_dave_smith_video Feb 06 21:43:51 onMasseuse Feb 06 21:43:56 lasserix, onMeasure isn't always needed Feb 06 21:43:56 mm Feb 06 21:44:08 especially if you do one-off stuff Feb 06 21:44:39 yiati: log to console? u talking about using Log.v ? Feb 06 21:44:49 mavrik: i need a action bar on the bottom of my app like Facebook has Feb 06 21:45:02 thanks guys Feb 06 21:45:20 john67, Log.v, Log.d, Log.e, System.out.println(), doesn't matter. What are you trying to figure out? Feb 06 21:45:55 DragonPunch, NOOOOO no actionbar down by the system buttons! Feb 06 21:45:58 DragonPunch, there is no bottom actionbar in android. Feb 06 21:46:02 That's like android 101 Feb 06 21:46:05 yiati: if the assert is being found, and why isnt the db isnt created Feb 06 21:46:22 DragonPunch, also putting action bars right next to home and back on-screen buttons is shitty UX, people will keep accidentally closing your app Feb 06 21:46:24 john67: Are you sure the db isn't created? Feb 06 21:46:40 DragonPunch, so if you want to really force that on your users, you'll have to do it on your own Feb 06 21:46:54 yiati: yeah , i have check on the device , there isnt no db, Feb 06 21:47:02 oh i see. i forgot google phones have that little annoying thing on their app Feb 06 21:47:21 john67, What are you calling to create the db? Feb 06 21:47:32 and where are you calling it? Feb 06 21:48:32 DragonPunch, most devices have that now Feb 06 21:48:35 except for samsung crap Feb 06 21:48:43 yeah im using samsung. Feb 06 21:49:04 Mavrik: Works like a charm now. Thank you very much! Feb 06 21:49:05 yiati: http://pastebin.com/RJngyZTr Feb 06 21:49:05 Action bar should go on bottom. why put the main context menu where it forces the user to cover the screen anytime they use it? Feb 06 21:49:15 Saabzero, glad to help :) Feb 06 21:49:24 lasserix: thank you Feb 06 21:49:26 yiati: im calling the class in the Application class Feb 06 21:49:30 lasserix, because more used buttons are on the bottom. Feb 06 21:49:57 i hate how i have to reach up to create a new conversation i just think its dumb Feb 06 21:50:14 DragonPunch, Material uses a FAB for that Feb 06 21:50:24 Which is right under your thumb Feb 06 21:50:38 john67: Use SqliteOpenHelper, http://developer.android.com/reference/android/database/sqlite/SQLiteOpenHelper.html Feb 06 21:50:54 I can never really decide if I like top or bottom action bars. bottom certainly has advantages for "I can actually reach this on my phablet" reasons... Feb 06 21:50:56 I'm getting "class not found errors" trying to include CirclePageIndicator w/ : compile ('com.viewpagerindicator:library:2.4.1') Feb 06 21:51:09 my view element is correct: but that class does not get found Feb 06 21:51:22 groxx, top is annoying on phablets, but most actionbar functionality isn't really commonly used Feb 06 21:51:26 mavrik: i think fabs are meh. Feb 06 21:51:43 Mavrik: yeah, I almost never touch the actionbar (and I hate the code for it, maybe that biases me unfairly though) Feb 06 21:52:15 drawers are nice because I don't need to reach up + having a frickin back button = most parts of most apps are in the bottom two-thirds. Feb 06 21:52:36 I don't really bump the back/home buttons accidentally though Feb 06 21:52:58 my wife does all the time, but I'm always like ლ(ಠ益ಠლ) Feb 06 21:53:09 yiati: im using the SQLiteOpenHelper, Feb 06 21:53:54 does the back button go away when you open a google phone Feb 06 21:54:01 groxx, yeah, but that's mostly beacuse we moved all the common functionality outside the action bars Feb 06 21:54:02 or is it always there or something Feb 06 21:54:11 groxx, no more "new message" buttons in upper right Feb 06 21:54:21 that especially sucked on tablets Feb 06 21:54:52 to be fair, the action-bar has a "split" mode that sometimes puts stuff at the bottom. it's so ludicrously unpredictable though :| Feb 06 21:55:13 yeah, that's a bit annoying Feb 06 21:55:29 but then again, that really goes against the softkeys Feb 06 21:55:33 Mavrik: since I think I'm catching up in the middle of this conversation: "we" = "app developers in general", or whatever app you work on? (since I don't know) Feb 06 21:55:53 WOW Does anyone have a working example of jake wharton's ViewPageIndicator library? I cannot get the files included correctly in my project, whether it is with gradle or a .zip. Feb 06 21:55:59 groxx, well, my company Feb 06 21:56:08 groxx, most of google apps and other modern apps as well :) Feb 06 21:56:20 explodes, I'm using it in multiple cases Feb 06 21:56:22 that too :) Feb 06 21:56:30 john67: Okay nothing in that pastebin is useful for debugging this Feb 06 21:57:07 Mavrik: what company? I'm still hugely playing who's-who-catch-up in this room :) Feb 06 21:57:07 explodes, what is causing you issues exactly? Feb 06 21:57:18 Class not found; I can't get it into my project correctly Feb 06 21:57:27 groxx, some rather small EU thing, ask me again in few weeks :) Feb 06 21:57:34 ha, sure :) Feb 06 21:57:51 explodes, um, you just add the gradle dependency... mind pasting that? Feb 06 21:57:58 I'll assume it's bitcoin-related until then. Feb 06 21:58:11 ehehehe Feb 06 21:58:11 im going to force this bottom action bar on the user. Feb 06 21:58:13 Mavrik: nevermind, using this shady version worked: compile 'fr.avianey.com.viewpagerindicator:library:2.4.1@aar' Feb 06 21:58:44 Mavrik: using "compile 'com.viewpagerindicator:library:2.4.1'" was failing Feb 06 21:59:04 explodes, ah yeah, because it's in apklib not aar format Feb 06 21:59:11 JakeWharton didn't update that :) Feb 06 21:59:25 if i have a viewpager/tabs how do I get the action bar icons to change on swipe? Feb 06 21:59:26 so I guess avianey did the update, he also had AAR packages for Facebook SDK and whatnot Feb 06 21:59:35 Anybody have a clue why Logs are still showing up in Release mode? I'm using 'proguard-android-optimize.txt and have -assumenosideeffects class android.util.Log ( declared Feb 06 21:59:35 Mavrik: I see. Feb 06 21:59:37 DragonPunch, you invalidate the menu Feb 06 21:59:50 and minifyEnabled true Feb 06 21:59:54 DragonPunch, and use onPrepareOptionsMenu instead of onCreateOptionsMenu Feb 06 22:00:07 MikeWallaceDev: what's the full -assumenosideeffects line? Feb 06 22:00:20 mavrik: well im not using your standard action bar here. Feb 06 22:00:21 -assumenosideeffects class android.util.Log { Feb 06 22:00:21 public static boolean isLoggable(java.lang.String, int); Feb 06 22:00:21 public static int v(...); Feb 06 22:00:21 public static int i(...); Feb 06 22:00:21 public static int w(...); Feb 06 22:00:22 public static int d(...); Feb 06 22:00:24 public static int e(...); Feb 06 22:00:26 } Feb 06 22:00:45 im thinking of making the action bar a part of the view pager. Feb 06 22:00:55 oooh, that worked! Cool :D I thought it was going to print garbage characters Feb 06 22:00:59 is it possible to determine width/height value defined in xml during view's constructor execution? Feb 06 22:01:15 MikeWallaceDev: yeah, though next time pastebin if not 1/2 lines :) Feb 06 22:01:27 lasserix, afaik you only get that in onMeasure Feb 06 22:01:30 lasserix, you'll get it in the attributes Feb 06 22:01:46 * MikeWallaceDev says stupid answer Feb 06 22:01:49 ugh Feb 06 22:01:53 ? Feb 06 22:01:58 does anyone have an Idea what could cause the bug shown here: https://drive.google.com/file/d/0B-n0Kpvc8EEna254bXg1dE5vbUU/view?usp=sharing Feb 06 22:01:58 but it's possible it's in attributes, android theme stuff is fscked Feb 06 22:01:59 how? Feb 06 22:02:02 groxx, hey, you asked :P Feb 06 22:02:12 attributes.get...? Feb 06 22:02:18 Seems to occur on every dialogfragment for me.. Feb 06 22:02:30 danijoo_, is that an emulator? O. Feb 06 22:02:30 o Feb 06 22:02:39 no no, attributes was a bad answer, you'll only get "match_parent" not an actual size Feb 06 22:02:45 no its a real device on lollipop (nexus 5) Feb 06 22:02:52 interestingly it works on genymotion Feb 06 22:03:03 k Feb 06 22:03:17 lasserix, best place to get it is onSize Feb 06 22:03:28 that's pretty much only called once Feb 06 22:03:43 on the google play developer console, should you be able to see the bounce rate? ppl who download the app/people who see the listing? I feel like you should but can’t find it Feb 06 22:03:50 whats best callback to determine where to place stuff, like text for a custom view? onLayout? Feb 06 22:04:17 lasserix, yeah, onLayout is meant for you to position children and other stuff Feb 06 22:04:17 to draw the text? Feb 06 22:04:23 or place a TextView? Feb 06 22:04:27 lasserix, you get final computed view size and position there Feb 06 22:04:31 yeah Feb 06 22:04:32 okay Feb 06 22:04:37 so precomputing that stuff there makes sense Feb 06 22:05:59 i have an edit text at the bottom of my app and when i click it my keyboard pushes the view of my app up so that it can make space for the keyboard. i wan there to be a little more margin when the keyboard comes, like it is overlapping a little of my edit text box. Feb 06 22:06:12 so groxx , any idea? Feb 06 22:06:54 MikeWallaceDev: none yet :\ looks fine to me (though I use the public static *** d(...) variant. don't think it makes a difference though.) Feb 06 22:07:31 so, *** instead of int? Feb 06 22:08:08 Like this : public static *** i(...); ? Feb 06 22:11:12 yes MikeWallaceDev, i think so Feb 06 22:11:24 yeah, I'm trying it now... Feb 06 22:11:30 at least in an old project (6 months ago), this is what I found in a proguard file Feb 06 22:11:32 how can I download sources as well with gradle? Feb 06 22:11:48 MikeWallaceDev, also have that too: public static boolean isLoggable(java.lang.String, int); Feb 06 22:12:03 oops, nothing you have it too Feb 06 22:12:21 yeah :) Feb 06 22:12:40 hungry backspace is cool plugin Feb 06 22:13:34 a plug-in for what? Feb 06 22:14:46 Is there a channel for asking for help about android-studio ? Feb 06 22:15:17 I would say that this is the place R4md4c Feb 06 22:16:51 so I changed int to *** , but just for d and i, as a test. And now they all stopped showing up! Weird. Thanks groxx and adq Feb 06 22:17:35 MikeWallaceDev: intellij Feb 06 22:17:39 Ok, I'm trying to create a command line launcher via Tools->Create Command-line launcher and then I try to execute the launcher, I get always get an error http://pastebin.com/sVk4QfhY Feb 06 22:17:45 MikeWallaceDev: /as Feb 06 22:17:48 maybe the removal of isloggable does this side effect Feb 06 22:17:51 like nothing isloggable Feb 06 22:17:56 I'm running ArchLinux Feb 06 22:18:10 (if you forgot to remove this line) Feb 06 22:18:39 adq, nope, just changed int to *** for two of the 5 methods. weird. Feb 06 22:19:00 MikeWallaceDev: weird. guess I need to read the proguard docs more, I would have thought that didn't matter :\ Feb 06 22:19:00 proguard is a #@{!!"' Feb 06 22:19:04 you can spend days on it Feb 06 22:19:20 ¯\_(ツ)_/¯ Feb 06 22:19:28 well, as long as it's working... Feb 06 22:19:40 yeah, magical fix or no, I guess it's fixed Feb 06 22:20:39 maybe something was cached... Feb 06 22:21:24 hey, here's a question : How can I make a backtick on Linux? Like with Alt-number Feb 06 22:21:42 apparently it's Alt=96 but I can't make it work Feb 06 22:21:53 Alt-96 Feb 06 22:22:04 MikeWallaceDev, try right-alt Feb 06 22:22:06 rather than left Feb 06 22:22:12 I did :) Feb 06 22:24:28 R4md4c, looks like the file was not found Feb 06 22:24:42 * pfn shrugs Feb 06 22:24:44 * pfn no use linux Feb 06 22:24:47 try alt-096? Feb 06 22:24:54 ok, forget the backtick thing.... Feb 06 22:25:02 I tried that too :) Feb 06 22:25:42 Thing is, I have an extension that uses the backtick key to activate itself. It wasn't configurable before, now it is. Feb 06 22:27:15 yiati: Well, I've discovered where the issue when I opened the script code, there was a variable called RUN_PATH which pointed to the wrong original executable path http://pastebin.com/3fh7b4XY . But that should not happen when the file is generated. Feb 06 22:27:41 Not sure if it was a bug or there is something wrong in my configuration Feb 06 22:27:41 MikeWallaceDev: http://lordmatt.co.uk/item/1229/ ? Feb 06 22:27:49 R4md4c, is bin_file a script? Is it executable? Feb 06 22:28:25 MikeClassic: bin_file ? Feb 06 22:29:00 The problem is that there is no script called bin/android studio.sh in the Android Studio directory Feb 06 22:29:26 R4md4c, "os.execv(bin_file, [bin_file] + args)" from your pastebin Feb 06 22:30:29 – Feb 06 22:30:41 hmm, any body see a back tick there? Feb 06 22:30:56 I'm trying your thing yiati , thanks Feb 06 22:31:39 MikeWallaceDev: Well, If you saw the source code of the script in my second paste, bin_file is assigned in this line "bin_dir, bin_file = os.path.split(RUN_PATH)," and since the RUN_PATH is wrong then bin_file does not exist Feb 06 22:32:41 I could fix that easily, but I'm not sure if I would report that as a bug or not Feb 06 22:34:58 don't you need to escape your path? -> /android\ studio.sh Feb 06 22:40:27 I spent 3 hours of my live trying to understand why a command in shell was ok and why given with Runtime.getRuntime().exec() wasn't: double-quotes bug. fuck Feb 06 22:42:21 gdrc, I hear ya man. I spent DAYS trying to figure out why I couldn't compiile AOSP.... -> Using grep with colored output. Feb 06 22:42:54 Only found it because it appeared while trying something else. I was going to give up on AOSP! Feb 06 22:43:35 MikeWallaceDev: That is not the problem, the problem is that there is no file named "android studio.sh" in the Android Studio bin directory Feb 06 22:44:12 err... ok. Feb 06 22:45:39 http://stackoverflow.com/questions/28375828/dismiss-listpreference-dialog-in-preferencefragment-and-restore-its-state-at-ori come on guys. You know how to handle this ;) Feb 06 22:49:01 yiati: lasserix havent found the error, tired will continue tomorrow thnx again Feb 06 22:49:30 john67: goodluck Feb 06 22:49:32 Mavrik: thnx too Feb 06 22:49:36 use the debugger! Feb 06 22:49:36 john67: (thumbsup) Feb 06 22:49:39 you can step into Feb 06 22:49:54 lasserix: i have use setp into, but it didnt get me where i want Feb 06 22:50:05 umm Feb 06 22:50:17 put a breakpoint in each of the check open copy methods Feb 06 22:50:28 then step thru and verify paths are correct, nothing is null Feb 06 22:50:40 or use a different tutorial for copying ;p Feb 06 22:51:30 lasserix: i have done that, but it doesnt , there re some thing wrong some where will try to figure out tomorrow Feb 06 22:51:44 I'll be there Feb 06 22:51:50 I won't be square Feb 06 22:51:55 i will be Feb 06 22:52:07 ^ pulled a rabbit out of my magic hat Feb 06 22:52:18 I have a View with a fixed height that I'd like to position below a GridView, but the GridView keeps taking up the whole size of the screen. Any ideas? Feb 06 22:54:06 cobar, look into RelativeLayout Feb 06 22:55:05 MikeWallaceDev: that's what I'm using, the View has a height of 30dp and is set to display below the Grid, the Grid has a height of match_parent Feb 06 22:55:29 in the layout preview, it displays properly, but in my app the GridView takes over the entire space of the parent Feb 06 22:56:27 try marking the gridview as on top of the view as well. Feb 06 22:59:33 MikeWallaceDev: you mean by setting it to layout_above the view? Just tried that and I get a circular dependency exception Feb 06 23:00:16 yeah, sometimes it's circular, sometimes it's not... Feb 06 23:00:28 paste your layout Feb 06 23:00:31 MikeWallaceDev: ok think I got it. I had to put the View above the Grid in my XML and then specify that the Grid is above the View Feb 06 23:00:59 apparently whichever view appears first in the layout has priority for a relative layout Feb 06 23:02:20 cobar: set the view to _alignParentBottom="true", and the grid to _above="view" Feb 06 23:05:30 How do i determine a custom view has been set to WRAP_CONTENT in its class? Feb 06 23:05:51 ATTRIBUTES!! :D Feb 06 23:06:05 groxx: that's what I have, it's working now Feb 06 23:06:06 This time that's the right answer :) Feb 06 23:07:03 how ? Feb 06 23:07:53 nm Feb 06 23:08:46 lasserix, you'll get lots of information by looking at the View class Feb 06 23:08:47 https://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/core/java/android/view/View.java Feb 06 23:11:16 Agamemnus have you looked at react native yet :P Feb 06 23:11:34 MikeWallaceDev: ooo ahhh Feb 06 23:11:43 Right now I'm looking at my game screen. Feb 06 23:11:47 And tapping buttons. Feb 06 23:11:53 And nothing is happening. Feb 06 23:11:58 :D Feb 06 23:12:16 Agamemnus, your game is broken. Feb 06 23:12:32 either my game or my phone Feb 06 23:12:34 that's my professional opinion Feb 06 23:12:49 when I turn on my phone, and go to google play, I get "background data disabled" Feb 06 23:13:09 if I clear running programs and try again, it works Feb 06 23:13:33 Has anyone had this happen to them? This is on my brand new note 4. Feb 06 23:13:48 my professional opinion agrees with MikeWallaceDev professional opinion :D Feb 06 23:13:53 I think it is related to my game's issue Feb 06 23:14:00 but may be totally unrelated Feb 06 23:14:23 I professionally agree with g00s Feb 06 23:15:08 Sorry Agamemnus , hasn't happened to me Feb 06 23:17:38 i see Feb 06 23:19:56 i made a post Feb 06 23:19:57 i guess Feb 06 23:19:59 goddamn Feb 06 23:20:01 no root Feb 06 23:20:04 $350+ Feb 06 23:20:06 annd Feb 06 23:20:10 now it is dying? Feb 06 23:20:19 like a month and a half after I bought it Feb 06 23:20:35 oh, and not to mention that it wants to kill my sd card Feb 06 23:20:41 the return key is not punctuation Feb 06 23:21:00 Sorry. Feb 06 23:22:58 hey Feb 06 23:23:17 hahaha Feb 06 23:23:30 http://pastebin.com/WDEDAm6e why am I getting 11 errors because of this code? Feb 06 23:23:56 Arnas: dunno. what are the errors? Feb 06 23:24:41 groxx, Error:(41, 30) error: expected; Error:(41, 31) error: illegal start of type; Error:(41, 34) error: ')' expected etc. Feb 06 23:24:57 button.setOnClickListener(new View.OnClickListener() { <- line 41 Feb 06 23:26:33 any ideas? Feb 06 23:27:51 Oh hey! I actually had a Java question! Feb 06 23:28:04 Arnas: bad syntax Feb 06 23:28:22 Agamemnus, like where? Feb 06 23:28:28 I don't know Feb 06 23:28:29 let me see Feb 06 23:28:58 ok Feb 06 23:29:01 first thing Feb 06 23:29:11 this will avoid people cursing at you Feb 06 23:29:32 if (firstName.getText().toString().length() == 0) firstName.setError("First name is required!"); Feb 06 23:29:50 This should be either in one line, or have brackets. Don't use a multi-line IF statement without brackets. Feb 06 23:29:56 Arnas: I'm going to have to guess that you have that entire chunk of code somewhere it doesn't belong, it looks fine to me. Feb 06 23:29:57 Agamemnus: isEmpty? Feb 06 23:30:19 isEmpty? Feb 06 23:30:26 groxx, it's in MainActivity.java Feb 06 23:30:28 firstName.isEmpty() Feb 06 23:30:34 a call to http://maps.google.com/maps/api/geocode/json?&latlng=%f,%f will also return image information for that location. Is there an API call to also get that picture information? Feb 06 23:30:39 toString.isEmpty() Feb 06 23:30:48 oh, I see -- not my code actually Feb 06 23:31:06 i have a different problem. Didn't get to it yet. Feb 06 23:31:36 Arnas: the error is because somehow you wrote invalid java in there. what's above it? Feb 06 23:31:37 groxx, http://pastebin.com/nEzUHc3E this is the whole MainActivity.java Feb 06 23:32:29 Arnas: yeah, it's not in the right place. move it into onCreate. Feb 06 23:33:05 and add brackets! Feb 06 23:33:16 groxx, hm, why? Feb 06 23:33:49 Arnas: because that's in the class definition. you can't have that code in a class definition, it doesn't make any sense in Java. Feb 06 23:34:13 Okay, so I noticed a dozen errors in my query receiver code Feb 06 23:34:21 they are all roughly the same. Let me put it up. Feb 06 23:34:47 groxx, now I get Error:(16, 9) error: cannot find symbol class Button Feb 06 23:35:04 Arnas, Import the button class Feb 06 23:35:34 Arnas: import button. and take the time to learn Java, or you're going to keep running into problems like this. Feb 06 23:37:15 groxx, cool, it worked Feb 06 23:37:24 groxx, well, I've been learning java for the past 3 days Feb 06 23:37:35 http://pastebin.com/3XRPYbu4 Feb 06 23:37:52 groxx, but I still don't really get it why I had to move this code to onCreate Feb 06 23:38:04 It's trying to access GooglePlayQuery. Feb 06 23:38:08 But GooglePlayQuery isn't defined. Feb 06 23:38:11 I'm very confused. Feb 06 23:38:27 It actually works fine if I run it manually, but in production it breaks I guess Feb 06 23:38:52 I don't understand how it can be undefined. Feb 06 23:38:52 Arnas: mostly because: findViewById is an instance method, not a static method. and then you're trying to .setOnClickListener in the class definition - broadly speaking, you can't "run code" like that in the class definition. there's special syntax for doing that. Feb 06 23:38:56 Arnas, inside classes the only thing you can do at the top level is declare variables and functions. You cannot call functions Feb 06 23:39:36 groxx, yiati oh, I see Feb 06 23:40:24 groxx, the code didn't work tho :( Feb 06 23:40:44 oh, it did Feb 06 23:40:47 nvm Feb 06 23:40:55 Ok guys, help *me* now... :) Feb 06 23:41:33 Arnas: you probably also want to use something like TextUtils.isEmpty(firstName.getText()), it'll handle no-text and spaces. Feb 06 23:41:52 groxx, okay, thanks Feb 06 23:42:06 I don't see any possible way how GooglePlayQuery can be undefined (null pointer) within QueryReceiver. What am I missing? Feb 06 23:43:32 Agamemnus: is it GooglePlayQuery that's null? or is it cordova? Feb 06 23:43:38 Agamemnus: it looks like the NPE is coming from this line: " Activity activity = GooglePlayQuery.cordova.getActivity ();" Feb 06 23:43:57 groxx, btw, should I create my own method and put that code into it or should I keep it in onCreate? Feb 06 23:44:06 Yes Feb 06 23:44:10 it's fine in onCreate Feb 06 23:44:23 I think it is GooglePlayQuery, but I am not sure. Feb 06 23:44:26 Agamemnus: probably cordova is null, I assume GPQ is a class (so it can't be null) Feb 06 23:44:56 The new ART NPEs will be nice Feb 06 23:45:05 they will instantly clear up issues like this Feb 06 23:45:11 find where cordova is set. whatever the reason, it's not happening before your code runs (or it's in a different thread) Feb 06 23:45:17 I thought there was a column number there.. Feb 06 23:45:34 groxx, TextUtils.isEmpty doesn't handle spaces Feb 06 23:46:16 Arnas: ah, you're right. looks like it's just null or .length == 0, which I think is safe for getText on an EditText. Feb 06 23:46:20 Why isn't there a column number?? Feb 06 23:46:49 Oh yeah, it can't be cordova that's null. Feb 06 23:47:03 Agamemnus: you don't get column numbers for runtime errors, afaik. just compiler. Feb 06 23:47:05 Check out line 90. Feb 06 23:47:37 That cordova there isn't null, so I don't see how the one on 99 can be. Feb 06 23:47:52 Can it? It's using runOnUiThread (new Runnable () { Feb 06 23:47:58 line 99 runs later, who knows how much later. Feb 06 23:48:13 Actually wait a second Feb 06 23:48:37 Why am I using GooglePlayQuery.cordova when cordova is available Feb 06 23:49:47 anyway that is the wrong paste Feb 06 23:49:50 messed up Feb 06 23:50:01 I have a new version, but same question (to myself) applies Feb 06 23:50:44 ^ also, beware static values like that. since any thread could be changing it at any time, it's hard to be certain it'll be available. (obviously you _can_ be, it's just harder.) Feb 06 23:52:25 all right I think I see what's happening Feb 06 23:53:06 the QueryReceiver's onReceive must run before the GooglePlayQuery's initialize function. Feb 06 23:53:07 well that was easier than i thought Feb 06 23:53:09 Messed up! Feb 06 23:53:22 got adb on my remote server accessing the phone plugged into my local laptop Feb 06 23:54:57 I just want to facedesk right now. Feb 06 23:55:15 I read in Scientific American that magnets can temporarily make you a savant. Feb 06 23:55:38 And so can hitting your head against something. (sometimes). Feb 06 23:55:56 Agamemnus, I've heard that trauma can do it Feb 06 23:56:10 dunno about magnets. heh. Feb 07 00:02:25 anyone got a podcast recomendation? Feb 07 00:02:57 android-developers backstage ? Feb 07 00:05:56 What's the best way to take Nth character from EditText? Feb 07 00:06:05 What a mess! Feb 07 00:06:35 myEditText.getText().charAt(N) ? Feb 07 00:07:32 Cordova is dead. Feb 07 00:08:00 Almost every thing I ask on Stack Overflow regarding Cordova is either downvoted by a$$hats or ignored. Feb 07 00:08:03 :( Feb 07 00:13:13 i think i did this some months ago, but now i can't make it work: two apps connected (using bluetooth rfcomm) to my pc Feb 07 00:14:21 when one is connected, the other logs "RFCOMM_CreateConnection...already opened state..." Feb 07 00:14:24 Agamemnus each JS framework has a half life of 2 days Feb 07 00:20:23 promises promises Feb 07 00:21:18 lasserix: I'll second csst0111's recommendation. useful info. Feb 07 00:21:35 this is podcast? Feb 07 00:21:48 this is sparta ! Feb 07 00:22:00 lasserix: otherwise, I've been watching tons of devoxx presentations, since about half of them are free. Feb 07 00:22:21 lasserix: yeah, for a podcast Feb 07 00:24:43 Alright, so I'm done dealing with AsyncHTTP. It's annoying as hell. I'm going to use OkHTTP now, because it seems better (and I think a lot of you recommended it to me). On there front page, they have a "Post to a server" example. Should I make a separate class to house that method so I can just pass it parameters easily? Feb 07 00:25:21 well you should probably use retrofit so you don’t even need to interact with the HTTP client Feb 07 00:25:48 Hmm? I've never heard of retrofit before. Feb 07 00:26:11 Ok wow, that looks interesting. Feb 07 00:28:25 okay so Feb 07 00:28:38 auto complete is ccovering up my edit text thats on the bottom, anyone know how to fix this Feb 07 00:30:55 gav_asm_kodas.setError("%s", (Integer.toString(kontrol_sk % 11))); <- why do I get error: "Error:(45, 38) error: no suitable method found for setError(String,String) Feb 07 00:30:56 method TextView.setError(CharSequence,Drawable) is not applicable Feb 07 00:30:56 (actual argument String cannot be converted to Drawable by method invocation conversion) Feb 07 00:30:56 method TextView.setError(CharSequence) is not applicable Feb 07 00:30:56 (actual and formal argument lists differ in length) Feb 07 00:31:07 whoops, sorry Feb 07 00:31:07 Pastebin :) Feb 07 00:31:38 http://pastebin.com/gUPDUxkd Feb 07 00:31:53 why do I get that error? Feb 07 00:32:35 f2prateek: So if I use retrofit, I can essentially avoid using OkHTTP as well as gson? Feb 07 00:33:08 no, you should still use them, but retrofit will talk to them for you Feb 07 00:33:38 okay Feb 07 00:33:39 well.. Feb 07 00:33:46 anyone know the edittext/auto complete issue Feb 07 00:33:53 my autocomplete is covering my edit text field :) Feb 07 00:33:56 :(** Feb 07 00:35:44 nevrmind :) Feb 07 00:35:46 fixed it :D Feb 07 00:36:26 The ol Android Emotional Rollercoaster Feb 07 00:36:45 Have a good weekend, gents Feb 07 00:43:13 I messed up repo. I did a ^C when it was doing "repo init". can I do a repo reinit or something like that? Feb 07 00:44:33 just delete the directory and init again Feb 07 00:45:24 Retrofit seems so confusing. I'm having trouble following it with this: http://blog.robinchutaux.com/blog/a-smart-way-to-use-retrofit/ Feb 07 00:45:25 JesusFreke: but its saying errors like this. File "/home/codebam/git/.repo/repo/main.py", line 506, in Feb 07 00:46:12 codebam: yes.. delete the directory and init again. Feb 07 00:46:48 JesusFreke: the /git/.repo/ ? Feb 07 00:46:57 whatever directory you're init'ing Feb 07 00:47:21 JesusFreke: it was the first init. I think I messed up the sources Feb 07 00:47:36 it wasnt just any old init Feb 07 00:47:47 repo doesn't store any state, except in the directory that you're init'ing. Feb 07 00:48:14 if you delete that, you've completely removed the state from your first, aborted init. Feb 07 00:48:18 JesusFreke: well. it says I need a manifest url -u when I try to init in a new directory Feb 07 00:48:33 what is the repo command you're using? Feb 07 00:49:00 oh man. where's TacticalJoke when we need him. http://tools.android.com/recent/androidstudio11betaavailable Feb 07 00:49:19 JesusFreke: "repo init" Feb 07 00:49:33 codebam: well, the error message pretty much sums it up Feb 07 00:50:20 I just want to make a repo to pull a cm patch. I dont want to pull the whole repo Feb 07 00:50:54 why do you think "repo init" without a url would work? It's not like it can read your mind and figure out what repo you're trying to clone :) Feb 07 00:51:10 you should be able to cherry pick a commit Feb 07 00:51:20 JesusFreke: possibly because 'git init' works fine? Feb 07 00:51:29 http://sprunge.us/LUTe Feb 07 00:51:52 codebam: link doesn't work Feb 07 00:51:54 thats for the command repo start fix-nav-ripple AOSPA/android_frameworks_base | sprunge Feb 07 00:51:57 repo is kinda weird imo. it works once you figure it out, but I've had to do that by trial and error, haven't been able to find any good documentation on it :\ Feb 07 00:52:10 just a sec. ill do |& Feb 07 00:52:57 codebam: if you really don't want to pull down all the sources, then what I would do would be to repo init, and then manually edit the manifests.xml file, removing/commenting out any projects you don't want Feb 07 00:53:00 and then do the repo sync Feb 07 00:53:19 repo init with the url to whatever repo you're trying to make the change to, of course. Feb 07 00:53:44 the manifests file will be in .repo/manifests.xml after you run the repo init command Feb 07 00:53:59 or .repo/manifest.xml. I can't recall if it's plural Feb 07 00:54:53 another option would be to git clone the specific git repository that you're interested in. But that makes submitting a change to gerrit difficult Feb 07 00:55:24 it can be done, but I don't recall how. Some special git path on the gerrit server that you can push to, in order to create a new review client, or something Feb 07 00:56:04 I couldnt get sprunge to record my terminal. so youre going to have to cat this. or itll look weird. http://sprunge.us/FaZd Feb 07 00:57:54 so. can someone tell me how to fix these errors. because they are definitely because I did that ^C Feb 07 00:57:56 codebam: I'm not sure what part of "delete the directory and try again" you're not understanding :) Feb 07 00:58:42 JesusFreke: what are you talking about? Feb 07 00:58:58 "JesusFreke: just delete the directory and init again" Feb 07 00:59:11 where is the dictionary? Feb 07 00:59:39 probably on your bookshelf? or maybe dictionary.com? Feb 07 00:59:43 codebam: looks like /home/codebam/git/ Feb 07 00:59:45 * JesusFreke scratches his head Feb 07 01:00:03 toss the whole thing. it's not initialized properly, and it's not too likely to self-repair Feb 07 01:00:09 groxx: can I delete that. will it prompt? Feb 07 01:00:22 anyone doing entirely command line based dev? what's the best way to handle debugging from the command line? Feb 07 01:00:40 groxx: my entire git. or my git/repo? Feb 07 01:01:09 codebam: find the .repo directory. and then delete the directory containing the .repo directory Feb 07 01:01:09 myke, why don't you want to debug from Android Studio? Feb 07 01:01:24 myke: you can try jdb. it'll likely be painful :) Feb 07 01:01:27 JesusFreke: ah okay thank you Feb 07 01:02:44 slidercrank: can i run as debugging with an apk installed from another place, or does as have to be in sync with everything? Feb 07 01:03:22 I don't know Feb 07 01:03:25 my laptop is ancient and slow so i'm using a fast remote server for dev Feb 07 01:03:52 adb so far is working great from the remote server Feb 07 01:04:01 myke: http://stackoverflow.com/a/21194360/16295 ? (not the accepted answer, it's worthless) Feb 07 01:04:16 otherwise GDB does all things, pretty much. Feb 07 01:04:54 rlwrap looks cool Feb 07 01:04:56 ok thanks Feb 07 01:05:32 yeah, anything without readline is a PITA. Feb 07 01:06:29 I deleted the .repo completely. did an init again, and this command still wont work. repo start fix-nav-ripple AOSPA/android_frameworks_base Feb 07 01:06:42 you have to sync first Feb 07 01:06:48 repo sync? Feb 07 01:06:53 yes Feb 07 01:07:00 that will download all the sources Feb 07 01:07:06 might take a while Feb 07 01:07:20 okay. thanks Feb 07 01:07:34 if you have a lot of internets, I'll recommend -j8 or more with sync, btw Feb 07 01:07:48 otherwise a good chunk of time is spent on git operations when it could be downloading Feb 07 01:08:06 it's a bit hard to stop it while it's going though, unless you -j1 Feb 07 01:08:12 heh, yeah Feb 07 01:08:29 you have to do the ctrl+c! ctrl+c! ctrl+c! mash Feb 07 01:08:40 so... what am I supposed to put for -u ? Feb 07 01:08:47 and even then it keeps going D: Feb 07 01:09:08 I usually resort to pgrep + xargs + kill in a super-shady combination because it's such a pain Feb 07 01:09:11 codebam: repo sync -u? Feb 07 01:09:20 no. repo init -u Feb 07 01:09:25 it wont init without it Feb 07 01:09:34 I thought you already init'd Feb 07 01:09:41 I thought so too :p Feb 07 01:09:52 the repository you are cloning should have some documentation on the url to use Feb 07 01:10:21 JesusFreke: so use the cm patch url, or the aospa url? Feb 07 01:10:57 are you wanting to clone CM? or AOSP? Feb 07 01:11:10 I'm not even sure why you would need to ask that Feb 07 01:11:42 I think I'm done hand-holding for now though. I'm off to do other things :) Feb 07 01:12:42 JesusFreke: Im trying to upload a patch that cm already fixed to pa Feb 07 01:15:01 codebam: then you probably need to download PA's source, apply the patch however, and push it to PA Feb 07 01:15:24 Hello everyone. Im working on the layout for a homework and am stuck because I want to have a linear layout containing a relative layout, and a linear layout ocupiying 60% and 40% of the total height respectively. I have failed misserably and I'd really appreciate if someone could give me a hand by taking a look at my layout xml code and giving me a hint as to what might be wrong with it.... Feb 07 01:15:26 ...The code is at http://pastebin.com/JDyGcJdu. TIA! Feb 07 01:15:32 groxx: hmm. okay. thanks Feb 07 01:15:37 JesusFreke: thanks btw Feb 07 01:17:31 nimbiotics: not entirely sure what's not working, but: "weightSum" is unnecessary, and remove all the "xmlns" attributes from everything except the outer-most linearlayout Feb 07 01:17:42 Anyone do iOS stuff in here? how do I convert [formatter setTimeZone:[NSTimeZone timeZoneForSecondsFromGMT:3600*self.timezone.intValue]]; into android / java? Feb 07 01:18:18 lasserix: http://developer.android.com/reference/java/util/Calendar.html#setTimeZone%28java.util.TimeZone%29 Feb 07 01:19:48 how do i get the local time zone? Feb 07 01:20:29 I think calendars have the local timezone by default? dunno. call getTimeZone and see what you get (unless you're in GMT) Feb 07 01:25:43 groxx: Thanks a lot for your input. As executed your seuggestions, nothing changed. What is not working is that I would expect to see my relative and linear layouts to ocupay 60% and 50% of the height of the screen, yet what Im getting more like 40%, 25% and 35% respectively. Here is the corrected xml code: http://pastebin.com/LhjUFXYA Feb 07 01:26:10 groxx: ***"I executed ..." Feb 07 01:26:48 groxx: ** and im expecting the percentages to be 60% and 50% Feb 07 01:27:03 groxx: dammit 60 and 40 percent Feb 07 01:27:14 too long on the keyboard Feb 07 01:29:32 nimbiotics: off-hand, I forget how layout_height + weight work together. but generally when you size things by weight, you set the "ignored" width/height to 0dp. in your case, layout_height="0dp". might magically fix things, not sure - let me know if not, I'll look more closely Feb 07 01:32:45 groxx any more hints? Feb 07 01:32:46 groxx: that did the trick! BTW this has happened to me before and what you told me doesnt seem to be in the documentation, but the again, Im just the noob in the block. Thanks a million!! Feb 07 01:37:56 lasserix: does it not return your current timezone? Feb 07 01:38:24 lasserix: otherwise, the TimeZone docs say getDefault() returns the current zone: http://developer.android.com/reference/java/util/TimeZone.html Feb 07 01:45:30 i had an infinite loop in my game :( Feb 07 01:45:56 nimbiotics: since this is class-related, I assume you're new to all this, so fwiw there's a lot of good info starter info for android the tutorials and samples on the developer.android.com site. once you need something more than that + the documentation, try watching some of the Google I/O presentations, they have a lot of tips that unfortunately aren't in Feb 07 01:45:56 the docs :\ Feb 07 01:46:19 also Feb 07 01:46:31 some fun facts Feb 07 01:46:35 groxx: Thanks again! Feb 07 01:46:43 god damn it Feb 07 01:46:45 if your words have "ri" in them, like "safari" Feb 07 01:46:51 what flags an app in app store as being incomaptible with my device Feb 07 01:46:53 you'll be ranked under rhode island Feb 07 01:46:54 so fuckijng infuriating Feb 07 01:47:28 ron_frown: could be anything. is this an app you control, or just annoyed you can't download something? Feb 07 01:47:40 I am extremely annoyed I cant download something Feb 07 01:47:51 because I've downloaded apk through alternative means before and it installs and runs just fine Feb 07 01:47:59 appstore is just being a horse banging skank Feb 07 01:48:22 much more likely that it's the submitter :) e.g. it can be region, language, telecom, etc restricted. Feb 07 01:48:35 none of those things Feb 07 01:48:56 Iv'e installed on a different phone on same network in same area Feb 07 01:49:17 also if you're downloading the apk from random sources, I'd _very much_ recommend being very careful / decompiling and checking it out yourself. the majority I've seen modify apps to add a metric fuck-ton of adware to everything. Feb 07 01:49:25 no I know Feb 07 01:49:31 thats why I am pissed I dont want to do that right now Feb 07 01:50:16 cpu architecture? gpu architecture? camera (front and/or back difference)? Feb 07 01:50:32 if you've installed it on a different device, how about pulling it from that device and installing the pulled apk Feb 07 01:50:44 ron_frown: well, anything under this fwiw: http://developer.android.com/guide/topics/manifest/uses-feature-element.html Feb 07 01:50:45 and good point Leeds Feb 07 01:50:57 I dont have those devices any longer Feb 07 01:51:17 (I have never gotten that deep into Android dev, so forgive my ignorance.) Regarding push notifications / GCM, is there any reason that an app couldn't implement an equally effective (efficient I should say) notification system? Or is it there a limitation? (I've heard rumors that GCM works with the carriers to provide network level notifications, so there's no persistent connection, keeping the network active.) Feb 07 01:51:43 in my experience that is infact not the case Feb 07 01:51:51 at least a long time ago Feb 07 01:52:17 IanWizard-Cloud: not really. it's _hard_, and GCM has done the hard part for you, and because you'll be opening another connection it's marginally less efficient than using GCM, but it's possible. Feb 07 01:52:18 they would keep sockets open and not send as long as possible with long wakelocks Feb 07 01:52:23 I will say Feb 07 01:52:31 IanWizard-Cloud: e.g. last I saw, Facebook uses MQTT instead Feb 07 01:52:31 imo gcm sucks shit in the play services format Feb 07 01:52:44 (or maybe in addition to gcm) Feb 07 01:54:01 IanWizard-Cloud: i haven't heard those rumors, but I'm not in those rumor-mills. it's possible, but tbh I don't think it's really necessary. Feb 07 01:56:22 hello ppl. Feb 07 01:56:26 groxx: I've got a ton of stuff running, and I'm at the point I'd rather just write a quick server to handle notifications everywhere for me, for everything. (Yes, I know, I could use pushd, or similar, but I figured I might as well roll my own.) And, though I don't intend to use it on Android much, I thought I'd ask. Feb 07 01:56:36 TY for the feedback :) Feb 07 01:57:57 nice! Feb 07 01:58:02 found a way around it Feb 07 01:58:46 IanWizard-Cloud: I haven't used it personally, just looked at it semi-seriously for work, but I'd _probably_ recommend looking at mqtt, unless you can find a hosted thing you'd prefer. it's intentionally mobile-friendly and has pretty broad support. Feb 07 01:59:47 groxx: I'll look at it, thx. Feb 07 02:11:18 <_genuser_> lol @ "today on twitter". why are you spamming my inbox twitter? Feb 07 02:11:46 _genuser_: it must feel lonely. have you been neglecting twitter? Feb 07 02:12:54 <_genuser_> pretty much. I signed up ages ago. never tweet much. Feb 07 02:14:33 whats the display density of the galaxy sIII> Feb 07 02:14:34 I just don't twitter right. I follow only a handful of people, and I read everything that comes through my stream. Feb 07 02:15:04 lasserix: http://www.gsmarena.com/samsung_i9300_galaxy_s_iii-4238.php Feb 07 02:15:14 <_genuser_> groxx: Oh I follow 0 people. I saw it and thought, I can haz twitterz? signed up, tweeted a few, then left it alone. Feb 07 02:15:17 306 is xh? Feb 07 02:15:39 lasserix: http://developer.android.com/guide/practices/screens_support.html Feb 07 02:15:52 thank you groxx bot Feb 07 02:16:03 :) Feb 07 02:16:05 <_genuser_> lol Feb 07 02:16:22 gsmarena is pretty fantastic if you haven't used it before. Feb 07 02:16:28 as a reference, that is Feb 07 02:16:51 <_genuser_> my pinkie is hurting on and off. too much focus on ring-finger/pinkie practice on the piano. Feb 07 02:17:14 i have an EditText with android:digits="0123456789.+-Ee" i will use it for scientific number input (a.b or a.bEc). problem is when i enter "E" or "e" it dont accept it Feb 07 02:17:19 https://leaksource.files.wordpress.com/2015/01/citizenfour.mp4 Feb 07 02:17:36 <_genuser_> you're adding a "digit" "e".... Feb 07 02:17:38 _genuser_: so you're not going to be playing this? http://www.rockpapershotgun.com/2015/01/27/mecha-trigger-free-game/ Feb 07 02:17:58 i tried an external keyboard, still it reject "E" or "e" but accept ".", "+" , "-" and all then digits Feb 07 02:18:21 * external keyboard also. Feb 07 02:18:49 <_genuser_> groxx: it's actually pretty cool. I might play it. It's just when I crack my knuckles or wash my hands and press on the pinkie it's a little sore. Feb 07 02:18:58 _genuser_, yes, for exponent Feb 07 02:19:14 kuldeepdhaka: there may very well be an easier option, but personally I extend UesrnameFilterGeneric and override isAllowed. pretty simple, behaves rationally: http://androidxref.com/5.0.0_r2/xref/frameworks/base/core/java/android/text/LoginFilter.java Feb 07 02:20:04 good evening Feb 07 02:20:18 has android had success using the google sheets api from android? Feb 07 02:21:06 for reasons I may never understand, LoginFilter's constructor is package scoped, but UsernameFilterGeneric's is public. ¯\_(ツ)_/¯ Feb 07 02:23:18 <_genuser_> kuldeepdhaka: I thought that he non-digit char might be throwing you off. but the documentation doesn't anything about it necessarily being a digit. but it might be implied. Feb 07 02:24:21 _genuser_, "." or "-" or "+" is not a digit. but still accepted. so should actually work Feb 07 02:25:06 <_genuser_> kuldeepdhaka: understood. since it can be a sign or decimal indicator for a numeric value, it might have been an exception. Feb 07 02:25:13 * are not digits Feb 07 02:25:40 <_genuser_> groxx: I like the music for the mech wars youtube vid. Feb 07 02:25:56 <_genuser_> groxx: I'd kinda like to play it with joysticks. Feb 07 02:26:09 _genuser_, maybe, the same case applies for hex. and their is no way to tell the radix so it should not work for hex Feb 07 02:26:38 <_genuser_> kuldeepdhaka: who knows. I had a thought, I mentioned it to you incase it was helpful. It wasn't. sorry. Feb 07 02:27:30 _genuser_, dont be sorry. you are helping me think broad. :) Feb 07 02:28:03 <_genuser_> kuldeepdhaka: :) Feb 07 02:42:10 <_genuser_> groxx: alright so intentservice, that's the new thing. gotta add a new feature to my app. Feb 07 02:44:03 _genuser_: which app? can't imagine that's a highly-desired feature in most :) Feb 07 02:45:10 I need to visit a URL (HTTP REQUEST), and not beable to view the response. Please advise :) Feb 07 02:45:17 <_genuser_> groxx: this app takes a picture using the camera and then mangles it up in a binary file with other information and sends it to the db. Feb 07 02:45:42 Basically a web browser with an address bar and no window to view anything Feb 07 02:45:54 <_genuser_> groxx: well, I was doing that in the main thread after taking the picture, which takes a while. What I'd like to do is hand off the work to a "task worker" so user can continue taking more pictures of the location. Feb 07 02:46:18 _genuser_: ah. yeah, that may be the perfect scenario for intent service Feb 07 02:46:54 <_genuser_> groxx: additionally, I'll build a small cache of those pictures, so if a picture thumbnail exists I don't have to retrieve it from the db. just load it from cache in teh gridview. Feb 07 02:47:44 <_genuser_> you should see the mangled up picasso RequestHandler I wrote to get all that working. Feb 07 02:48:02 _genuser_: released Picasso 2.5 which lets you return a stream Feb 07 02:48:10 all the resizing crap will be taken care of automatically Feb 07 02:48:39 <_genuser_> JakeWharton: ohh, awesome. Thanks for all your hardwork towards all the open projects. I really appreciate it. :) Feb 07 02:48:54 <_genuser_> and I assume, me not creating those bitmaps will affect the performance positively. Feb 07 02:49:22 <_genuser_> nice, I see v2.5.0 on teh main site. downloading now. Feb 07 02:50:48 and i just deployed the new javadoc Feb 07 02:52:16 <_genuser_> very nice. thanks again. I just pulled it into my project and the existing code compiles. I'll go update my RequestHandler now. **** ENDING LOGGING AT Sat Feb 07 02:59:59 2015