**** BEGIN LOGGING AT Tue Jan 12 02:59:59 2016 Jan 12 03:14:57 Having trouble handling Map marker cluster management using map-utils android library Jan 12 03:18:11 when my activity is paused... after resuming the app doesnt automatically cluster markers, can anybody help Jan 12 03:18:38 they become non interactive too Jan 12 03:54:47 how am i supposed to get users' credentials from a play store purchase to authenticate against my own API? purchase receipts don't seem to have any user information in them; I don't see any in the docs. What am I missing? Jan 12 03:56:22 Do I have to query Google api for transaction information after getting the transaction ID? Jan 12 04:25:35 in android, what is the actual difference between drawable and layout? Jan 12 04:26:15 from the project i've saw, drawable seem to be defined the same xml way as layout Jan 12 04:26:35 and how does one decide what to put as drawable and layout? Jan 12 04:27:00 a PNG is a drawable Jan 12 04:27:19 a layout is like an XML file which shows where the drawables should be laid out on the screen Jan 12 04:31:00 pfn: sorry I'm bad at answering. I wanted to use TypedViews provided by android-sbt plugin, but when I looked at source, there are bunch of implicits, so I just need to import TR class and then findView() function will be available Jan 12 04:31:14 I might commit to write some wiki page to github project Jan 12 04:31:20 since that's what is missing Jan 12 04:38:10 thanks Ologn i guess its' the project i'm seeing that is not well organized Jan 12 04:38:29 so normally do we only put PNG files within res/drawable directory? Jan 12 04:38:39 and define fragments or layouts within /layout? Jan 12 04:38:42 beaglebagel, that's where they generally go Jan 12 04:39:30 the project i see have both xmls and PNGs lying around /drawable so was puzzled Jan 12 04:39:31 i see Jan 12 04:40:19 beaglebagel, yes layouts and fragment layouts go in layout Jan 12 04:41:39 ok, what abour colors? does android provide color definition files? or do people usually write their own? Jan 12 04:43:00 beaglebagel, there are some default colors but you can name your own as well Jan 12 04:49:06 thank you Ologn, one last question.. what is the recommended directory structure? /activity /fragment /model /utils ? etc... Jan 12 04:49:37 guessing that'd vary depending on the project but at least for a template to start with... Jan 12 04:50:22 beaglebagel, look at Google's Android sample files, they are a guidepost Jan 12 04:52:13 is there any library to or way i can add irc chat into my android app Jan 12 04:52:29 ok thank you Jan 12 04:52:46 dgmurdockiii, yes Jan 12 04:52:55 what is it Jan 12 04:55:07 Ologn, how? Jan 12 04:55:34 Ologn, i have enbede mibbit in my abb but its very cluncky Jan 12 04:55:40 app* Jan 12 04:55:46 dgmurdockiii, I did an app with this once http://moepii.sourceforge.net/ Jan 12 04:56:11 dgmurdockiii, there may be other Java libraries that do IRC - but I know that one works, because I used it Jan 12 04:56:21 ok Jan 12 05:01:05 gordon_, correct Jan 12 05:02:14 gordon_, and thanks if you get a chance to Jan 12 05:09:40 beaglebagel, sometimes it makes sense to have an XML drawable Jan 12 05:09:43 beaglebagel, http://developer.android.com/guide/topics/resources/drawable-resource.html Jan 12 05:10:44 beaglebagel, state lists, level lists, transition drawables, xml bitmaps etc. Jan 12 05:11:16 beaglebagel, this page explains layouts and drawables well - http://developer.android.com/guide/topics/resources/available-resources.html Jan 12 05:11:23 It links to all the info Jan 12 05:11:55 But usually, drawables are PNGs, JPGs and that sort of thing Jan 12 05:17:32 http://m.androidcentral.com/motorola-enables-bootloader-unlocks-verizon-moto-x-2014 Jan 12 05:17:34 wow Jan 12 05:22:43 hi! what display server does android use? I'm reading a wikipedia article on a linux software called mir and trying to figure out why they didn't just copy over the exact thing android uses. but I have trouble finding what android uses exactly. what does android have in place of the "X" and "mir" things? is it called "android display server" or what? Jan 12 05:27:11 How can I scale an ImageView's src while keeping the background the same size? Jan 12 05:29:38 svetlana, https://source.android.com/devices/graphics/index.html Jan 12 05:30:14 thank you, Ologn Jan 12 05:31:27 svetlana, mir is a Canonical NIH project, they have a lot of them Jan 12 05:32:19 yes, I know. I'm trying to make myself vaguely aware of the key points behind that project. this is because they're going to push it to linux desktops now without me even knowing what the point of the change is at this point. Jan 12 05:35:31 svetlana, this paper was written in 1991 and speaks nothing of Android, but explains how these decisions are made - http://dreamsongs.com/WIB.html . Particularly section 2.1. Jan 12 05:36:59 OLogn, thanks will take look at the link Jan 12 05:37:23 in android, is it just the best practice to leave every member variables as public? with NO getter/setter Jan 12 05:37:34 beaglebagel, no Jan 12 05:38:10 beaglebagel, I generally set my variables to private unless I need to expand them to protected, or if needed, public Jan 12 05:38:29 hm.. i see, so many different examples and it's confusing Jan 12 05:38:44 some people just have it package private or public and access/set them directly Jan 12 05:38:58 beaglebagel, examples with too much stuff over-exposed to public are just wrong and bad code Jan 12 05:39:04 i saw one blog post discussing about the performance impact of calling getter/setter Jan 12 05:39:11 i see Jan 12 05:39:26 Ologn: okay, thank you Jan 12 05:42:32 beaglebagel, in most situations that is not the case. Also, Android is a moving target in many senses, and performance hits in 2012 are completely different now Jan 12 05:46:13 got into android recently, what happened on 2012? Jan 12 05:47:09 thanks for the clarification Jan 12 05:49:02 beaglebagel, 2012 is the first year Android had a common OS for tablets and phones (technically it came out in 2011, but almost no one had one then) Jan 12 05:52:26 guys i have a view which, on a long press, is firing off a runnable in the views class. What is the best way to notify the activity of the long press event from the runnables run() method? Jan 12 05:53:21 orbyt_, a sendBroadcast() ? Jan 12 05:56:16 uh no Jan 12 05:56:39 Pass a reference of the activity to the view? Jan 12 05:58:42 CedricBeust: im using the custom view in XML only. I know if I was doing it in code I could pass a reference in the constructor, but how would that be done if using the view in xml? Jan 12 05:59:07 Event bus is another option. Rx as well. Jan 12 05:59:37 Yea my first thought was Rx and i actually posted a SO question on it but didnt get any good answers Jan 12 05:59:52 i have practically no Rx experience Jan 12 06:00:10 so wanted to try it out cause it seemed like a good use case for it Jan 12 06:00:18 Look into event buses then Jan 12 06:01:39 Will do. Im still curious though, how could you pass a reference to the activity if im using the view via xml? Jan 12 06:02:55 Injecting it with Dagger would be one way to do it (although you would probably just need to inject an interface reflecting the callback, no need to expose the whole activity) Jan 12 06:03:25 but personally, as soon as I feel the need to start passing callbacks around, it's a clear sign that Rx should be used Jan 12 06:04:25 I think ill look closer at doing it in Rx because i really need start trying to use it haha. Alright thanks @ Ologn & CedricBeust. Jan 12 06:05:02 Orbitrix: Something to whet your appetite: http://beust.com/weblog/2015/03/23/android-rx-and-kotlin-a-case-study/ It's mostly in Kotlin but the examples should be clear enough Jan 12 06:05:38 im assuming that was for me Jan 12 06:05:51 oh yes sorry, darn you autocomplete Jan 12 06:06:35 yea funnily enough ive used reactive programming when working with Meteor.js, but for some reason RxJava just hasnt clicked yet, and the lack of material doesnt help. Will give that a read though. Jan 12 06:10:06 orbyt_ ben christensen is writing a RxJava animal book for oreilly Jan 12 06:11:16 i had to dial my rxjava back a few notches , too much garbage Jan 12 06:11:31 garbage? Jan 12 06:11:43 objects, garbage collection, etc Jan 12 06:11:50 oh Jan 12 06:12:24 each time you onNext some type T, it creates a Notification Jan 12 06:13:08 but in my case, it was a high-frequency path Jan 12 06:18:17 turning "show layout bounds" on in dev settings actually causes my layouts to .. layout differently Jan 12 06:18:28 turning it off, the side effect stays Jan 12 06:18:38 amazing Jan 12 06:19:06 (specifically, views that are Gone are shown) Jan 12 06:27:01 CedricBeust: I was reading that article you linked and you noted that with Kotlin you can bind resources with an import statement. If you have auto-import/optimize imports on in AS, is it auto-imported? Jan 12 06:27:49 mmh not sure about that, these symbols are synthetic. Lot has changed in that area too, you should try it yourself Jan 12 06:29:07 mmk Jan 12 09:07:28 How would I create an activity with a card a the top (with a background behind the card) and a list below the card? I'm quite uncertain of the interface elements I'd need for this Jan 12 09:15:13 Would a listview header do the trick ? How can I create it in the interface builder ? Jan 12 09:20:38 SASDOE: if that card has to move (when you scroll list), then yes, header will work Jan 12 09:21:26 gordon_: Cheers. I've answered my second question as well Jan 12 09:21:44 np Jan 12 09:39:32 Hmm. Jan 12 09:39:40 Do we still have applications out there that don't use AppCompat_ Jan 12 09:39:41 ? Jan 12 10:12:06 Hello #android-dev Jan 12 10:16:21 Hey! Is there any working guide for the google spreadsheets api? (with oauth) Jan 12 10:37:21 hi, i'm trying to add aar file to android project dependencies, but for some reason it does not show up in Android studio. When I run gradle dependencies I can see that the aar dependency is added. Jan 12 10:39:54 nahh: did you add the aar by going File>New Module>Import .JAR/.AAR Project and following the wizard? Jan 12 10:40:52 Ankhwatcher i know about this and this would probably work, but shouldn't this work as well: "compile 'org.solovyev.android.views:linear-layout-manager:0.5@aar'" ? Jan 12 10:41:15 nahh Jan 12 10:41:23 i'm trying to add this library to the project https://github.com/serso/android-linear-layout-manager Jan 12 10:41:33 Hello, anyone having experience with algorithm that adds delays on network because of power consuption depending on network frequency of use? Jan 12 10:41:45 ah, is it on maven? Jan 12 10:42:02 yep Jan 12 10:42:05 power conservation* Jan 12 10:42:30 mavenCentral() or jcenter()? Jan 12 10:44:25 deximat, how does making network slower conserve power ? Jan 12 10:46:14 ktwo: I guess OS doesn't poll network hardware in real time but on some clocked interval which seems to be expensive operation, and it decides it's interval by so far usage of network. Jan 12 10:47:08 Ankhwatcher i have them both added actually Jan 12 10:47:17 this is interesting, i've changed the order of them - mavenCentral is now above jcenter Jan 12 10:47:20 and the library was added to the project Jan 12 10:48:39 Ankhwatcher perhaps do you know why this happened in the first place? Jan 12 10:51:58 deximat, are you sure you are in the right channel? :) Jan 12 10:53:59 Android app developers? (it's kinda low level, but it is still mobile specific) Jan 12 10:54:12 deximat, we dont do modification on the OS here Jan 12 10:54:28 only writing apps Jan 12 10:54:48 I don't need modification, I am trying to understand how mobile network interface works in order to create great real-time mobile app. Jan 12 11:02:24 nahh: I couldn't tell youm but I think I've had the same problem before Jan 12 11:02:40 Ankhwatcher thanks anyway. :) Jan 12 11:02:49 deximat, i missunderstood you then :) Jan 12 11:02:59 nahh: you could try running ./gradlew clean assemmble with -debug turned on to see if there's any details Jan 12 11:03:11 but I dont see why you see an issue there Jan 12 11:03:17 its fast enough Jan 12 11:03:21 danijoo: Yeah, I kinda put my question upside down :) Jan 12 11:04:56 danijoo: I was receiving real time data in about every 200ms from server, and I had peaks in delay like 1-2seconds periodically, after I put my pings (from client side) to 200ms then it worked much better. It seems that network goes to sleep on some interval depending on rec/send frequency, to optimize battery life. Since I'm writing real time app, I want it to happen under 100ms of delay. Jan 12 11:05:48 I'm inspecting my device in google chrome, and the screencast is MASSIVE, does anyone know how to resize this? Jan 12 11:08:42 <_3mpty> opr: you mean video screencast? Jan 12 11:08:50 deximat, you will drain customers batteries in < 2 hrs Jan 12 11:09:50 <_3mpty> ...and if user will see such app in battery menu, he will uninstall it fast Jan 12 11:09:59 jep Jan 12 11:10:05 _3mpty, on chrome://inspect I mean Jan 12 11:10:20 it's a game, so it's ok, games usually eat batteries ;) Jan 12 11:10:22 I'm inspecting a webpage on my device, and trying to see the screen on my browser Jan 12 11:13:10 <_abc_> Hello. Can someone please point me at a "widget tour" type of demo with all/most ui widgets displayed? Preferrably for 2.3.+ i.e. old to cover the common set? Surprizingly I can't find a stock one. Jan 12 11:13:22 <_abc_> Can be apk or source (preferred) Jan 12 11:17:15 Anyone know where in the the Retrofit source I would find how Retrofit stores the callback's passed to it? Jan 12 11:22:42 Ankhwatcher, go to your source and press ctrl+b where you pass it in Jan 12 11:22:46 then follow the track Jan 12 11:23:28 danijoo: yeah, I'm doing that now, I was hoping I could find it on GitHub Jan 12 11:25:09 oh whoops this old project is using volley, what did I use retrofit in? Jan 12 11:25:13 ;p Jan 12 11:31:08 <_abc_> Is there an InputFilter which filters for valid IPV4 ip addresses? Jan 12 11:31:18 <_abc_> Native? Or does one have to diy. Jan 12 11:34:20 <_abc_> Also is there a wget(1) like native url content retriever in the api somewhere? Jan 12 11:48:49 <_SASDOE> In an activity inside onCreate, once I have set the contentView, I am crashing when accessing a TextView because it is null. Where should I start updating the views and can I be sure the layout has been inflated ? Jan 12 11:49:22 _SASDOE, after setting content views views are available Jan 12 11:49:31 your issue must be something else Jan 12 11:54:42 <_SASDOE> What could it be then ? I am having trouble with this. If I update it after getting the info from the network, it works. However if I use the cache I have set to not wait for the data to download before I launch the network update, I crash because the textVIew is null Jan 12 11:57:01 nobody can help you without a stacktrace and the source Jan 12 12:00:12 being posted to pastebin or equivalent and linked here Jan 12 12:00:27 <_SASDOE> mhh okay I must have been doing something wrong at the time, but it's working now. Thanks for the help ! Jan 12 12:01:48 how to design these specs https://www.google.com/design/spec/components/lists.html#lists-specs Jan 12 12:02:30 min2, what do you mean? Jan 12 12:03:25 how i will come to know.. for which device screens i have to be specified for these dp Jan 12 12:03:43 dps are independent of device screens Jan 12 12:03:46 they work on all of them Jan 12 12:04:43 thats why they are better than px Jan 12 12:05:33 they are a measurable size of 1/160 of an Inch Jan 12 12:05:51 regardless of the screen density or device size Jan 12 12:06:10 cool.. Jan 12 12:06:28 ok let em try thanks @danijoo Jan 12 12:06:38 good read: http://developer.android.com/guide/practices/screens_support.html :) Jan 12 12:25:16 <_abc_> So, no ipv4 dotted quad input filter in base ui at all? Jan 12 12:26:23 _abc_, i'd use a regex Jan 12 12:28:11 <_abc_> danijoo: as inputFilter? Jan 12 12:28:29 <_abc_> or manually on focus leave? Jan 12 12:29:06 <_abc_> since the user can try to navigate away from the view after entering wrong data I would have to intercept the leave. That is hard. Is there another way? Jan 12 12:29:59 <_abc_> I can ignore the edit if the entry is abandoned before another option is set. Or provide a 'set'&'cancel' button? Jan 12 12:30:21 <_abc_> What widgets does the internal 'droid 'set fixed ip address' view use? Jan 12 12:30:33 Hello, I'm trying to set the height of a MenuItem (inside a NavigationView) is it possible? Jan 12 12:31:16 I've tried setting an ActionView on the item, expanding it and setting the view's height.. but not luck Jan 12 12:31:20 no* Jan 12 12:42:56 https://gist.github.com/mRokita/99577801d3f2a7044133 Jan 12 12:43:02 Any idea of what happens here? Jan 12 12:43:15 This doesn't happen on kitkat+ Jan 12 12:43:23 tested on an ICS emulator Jan 12 12:44:19 mRokita, show the code Jan 12 12:44:29 danijoo: https://gist.github.com/mRokita/6c1d5ad7c1a1a4e2467c Jan 12 12:46:01 mRokita, show your manifest Jan 12 12:46:15 where you define the parent activity Jan 12 12:46:47 When using NavigationView, and adding a header layout. does the header suppose to scroll when as part of the menu? you move the menu and move the header? Jan 12 12:47:25 danijoo: https://gist.github.com/mRokita/3b932902788cd6374bd6 Jan 12 12:48:01 mRokita, android:parentActivityName wasnt available before kitkat Jan 12 12:48:18 thats why it cant find the parent activity and gives you that error Jan 12 12:48:26 danijoo: okay, thank you for finding the problem, how can i replace it? Jan 12 12:49:24 mRokita, metadata for backward compatibility: http://pastebin.com/r8x1kawK Jan 12 12:49:55 danijoo: thanks :) Jan 12 12:49:59 yw :) Jan 12 13:07:48 Hi, I'm materializing my app and couldn't find any guidelines in the spec of what color to use for highlighting in a list. Is the source for the Hangouts app available online or does anyone know what colors it uses for highlighting conversations? Jan 12 13:09:09 Nimyz, i think its ?attr/colorControlHighlight Jan 12 13:12:14 danijoo, thanks that looks alright for the initial grey highlight. Any ideas for the blue-ish color when user releases his finger? :) Jan 12 13:13:25 <_SASDOE> So I was wrong, I am still getting a null return from a findViewById (and am sure the ID is valid since it will work once I have loaded the data to put in it from the network). Here is the traceback http://dpaste.com/11RG46X and the onCreate method http://dpaste.com/1JF0ZWD#line-36 Jan 12 13:14:14 Nimyz, hmmm... colorControlActivited with a custom ripple effect possibly Jan 12 13:15:23 _SASDOE, there is no setText in your onCreate.. Jan 12 13:15:42 nor did you assign any textview id Jan 12 13:16:55 <_SASDOE> No the setText is in the putUserInfoOnGui() method, but I deemed it irrelevant as if the textField returned by findViewById is null it will crash later, the highlighted line show that (it prints Nil) Jan 12 13:17:03 Hello everyone Jan 12 13:17:24 <_SASDOE> (Trying to keep the paste to a minimum) Jan 12 13:17:37 _SASDOE, so your id is wrong Jan 12 13:18:29 I'm using android studio and trying to get an old eclipse project running. It gives me an error 'buildToolsVersion' is not specified in the outermost build.gradle file. How do I fix this? Jan 12 13:18:44 Hellu :3 Jan 12 13:19:09 <_SASDOE> It works later in the same activity (once I loaded data from a slow network) Jan 12 13:19:47 _SASDOE, show the _whole_ activity Jan 12 13:20:53 Anyone in here familiar with Parse? I have come upon a roadblock that I cannot move past. Can anyone help me? Please? Jan 12 13:22:45 <_SASDOE> danijoo: Highlighted line causing the crash http://dpaste.com/05ENMDG#line-84 (I call the same function in loadUserInfo) Jan 12 13:23:04 could someone please tell me if there is any easy way to find out if an android app name/title has already been taken? Cheers Jan 12 13:26:26 The Google Play app search seems to search descriptions. I just want titles. Jan 12 13:26:38 Anyone have any experience with chat apps? Jan 12 13:26:54 _SASDOE, hm.. cant find it. have you tried the debugger? Jan 12 13:27:38 its also good practice to set a TextView variable once in onCreate and then use that instead of findViewById somewhere in other methods - makes it easier to debug stuff like that Jan 12 13:30:05 <_SASDOE> Yes but I'm not sure what to look for. I can see the textView is nil but that's about it. Does the fact that the layout where the textView is not directly in the layout for that activity but in the navigation drawer's layout change anything ? Jan 12 13:31:02 I dont know how your navigation drawer look so yes, this can be possible Jan 12 13:31:03 I guess the app search looks for names too, but I want to be certain that a particular name is not taken Jan 12 13:31:33 bagurk, you cant search for only titles Jan 12 13:31:56 but if a keyword is part of the title, its usually somewhere on top of the results page Jan 12 13:32:27 <_SASDOE> Since it has no activity (I am really just using the default nav drawer provided with android studio), how can I fix this then ? Would something like naviationView.findViewById() work ? Jan 12 13:32:35 yeah Jan 12 13:33:05 _SASDOE, I havent used the default NavigationView yet sorry :/ Jan 12 13:33:18 i built my own one back when it wasnt available Jan 12 13:36:05 Hi, I try to take a picture and overwrite its bytes, I can't figure out how to overwrite the existing file, I can only create another file with the new bytes sequence Jan 12 13:36:18 BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream(file)); bos.write(filesBytes); bos.flush(); bos.close(); Jan 12 13:36:21 Here is the code Jan 12 13:37:42 <_SASDOE> But what I really don't understand is why the same code would work later in the app (by a second or so) and not then Jan 12 13:37:56 elcoc0, its new FileOutputStream(File file, boolean append) :) Jan 12 13:38:10 append defaults to true, you want it to be false Jan 12 13:39:05 i thought it was the contrary, going to try that Jan 12 13:39:07 cheers danijoo Jan 12 13:41:48 danijoo: does not seems to change anything :/ the file remains untouched Jan 12 13:42:11 ok thanks danijoo Jan 12 13:57:45 Can anyone possibly help me with creating a chat room with Parse and Android? Jan 12 13:58:31 For some reason, all of my messages are showing up in in every chat room. I can't seem to figure it out. Any help? Jan 12 14:10:56 Hi all Jan 12 14:11:15 hi again Jan 12 14:11:19 lol Jan 12 14:11:22 lol Jan 12 14:11:29 Are you ready for the same question? Jan 12 14:11:42 are you ready for the same link? lol Jan 12 14:11:47 jk Jan 12 14:12:05 I’ll rethink my question Jan 12 14:12:45 i am trying to learn about this stuff so i dont mind spending time on it i just hope i can be helpful Jan 12 14:13:24 what kind of app is it? Jan 12 14:13:44 and what data do you need specifically or do you know yet? Jan 12 14:14:27 Does anybody know about any good reading about saving/managing objects/data from a restful API? Jan 12 14:16:02 https://backendless.com/documentation/data/rest/data_saving_data_objects.htm Jan 12 14:16:32 Interesting Jan 12 14:17:42 http://torquemag.io/introduction-wordpress-new-universal-connector-json-rest-api/ Jan 12 14:18:40 Imagine you are developing an app, for a certain method, the API is returning a Book object with a property author with value 3 (this would be the author id of the book) Jan 12 14:19:19 https://parse.com/docs/js/guide Jan 12 14:19:42 Is it possible to publish an update in the play store only for a specific country? Jan 12 14:20:05 itsplesiosaur, id not send an id for the author, but do a join on server side and send the name Jan 12 14:20:13 What do you find more interesting: to check locally if the author 3 is on your local database, if not retrieve it from the API, or just to have the author data embedded in the first response? Jan 12 14:20:18 because otherwise you need to queries Jan 12 14:20:47 to = 2 Jan 12 14:20:48 but for the server, maybe is too heavy to join many properties Jan 12 14:20:55 this is a simple example Jan 12 14:21:01 your server sucks then Jan 12 14:21:02 but it may get more complicated Jan 12 14:21:19 databases are made to do efficient joins and stuff like that Jan 12 14:21:26 lol, I’m talking hypothetically Jan 12 14:22:00 your hypothetic server sucks :p Jan 12 14:22:18 imagine you are getting the results of a search Jan 12 14:22:22 books from the author 3 Jan 12 14:22:27 in this case, check if the value is in database, if not make another server request Jan 12 14:22:32 jvrodrigues, yes you can Jan 12 14:22:44 in the API response, you’ll have redundand data, all books will have the same content in author atrtribute Jan 12 14:22:48 Spider: thanks :) Jan 12 14:23:03 your welcome Jan 12 14:23:04 not familiar with google play, I usually just deliver the code Jan 12 14:23:08 :( Jan 12 14:23:12 itsplesiosaur, not neccessarily Jan 12 14:23:24 your response could contain 2 arrays, one for books and one for authors Jan 12 14:23:27 Hey all. I'm trying to use cmusphinx for voice recognition, but it seems to hang when getRecognizer() is run. This is the relevant code: https://pastebin.mozilla.org/8856450 -- The Speech class just implements RecognitionListener and logs in each of the override methods Jan 12 14:23:30 where books have an Id to the authors Jan 12 14:23:36 that’s interesting, danijoo Jan 12 14:24:20 So in that code snippet, the log line "I'm never run" never gets run. Stepping through int he debugger hits getRecognizer and then doesn't ever reach the log line Jan 12 14:24:27 no errors are being thrown as far asI can tell Jan 12 14:25:43 itsplesiosaur, http://pastebin.com/CDecpfVV :) Jan 12 14:27:06 danijoo, would you use the same reponse format also when retrieving a single book by id? Jan 12 14:27:23 itsplesiosaur, i wouldnt use it at all tbh Jan 12 14:27:35 because i dont think its worth the effort for saving a few bytes Jan 12 14:28:03 but thats just me :) Jan 12 14:28:09 philm88, you may need to allocate more memory for jvm with -Xmx512m Jan 12 14:28:17 I think it makes a lot of sense :) Jan 12 14:29:10 Spider: Ah ok, thanks I'll take a look into doing that (totally new to android development here). Is that something that can be set by the app? Or will each device or OS version have its own setting? Jan 12 14:29:47 Or is that jvm on my development machine itself? Jan 12 14:29:50 thanks, danijoo Jan 12 14:29:50 itsplesiosaur, depends on the usecase i think :) and on how many books are actually returned per request Jan 12 14:30:06 if its 500, the situation is not the same as for 10 books Jan 12 14:30:17 yes, I guess so Jan 12 14:30:21 i would think by the app itself but dont quote me Jan 12 14:30:30 I would have a paginated response Jan 12 14:30:48 with few items returned Jan 12 14:32:09 Spider: ok thanks, I'll have a search around Jan 12 14:35:19 Ok so boosting that value from 1280m (weird default?) to 2048m seemed to let the code get a bit further - but now getRecognizer is failing for another reason; "Failed to initialize recorder. Microphone might be already in use." - i'm using the emulator so i've no idea what's using the microphone Jan 12 14:37:08 hello, camera returns data(uri) null in my nexus 5 and it works as excepted in s4 mini . http://paste.ubuntu.com/14478044/ Jan 12 14:37:11 any idea ? Jan 12 14:38:46 sci-fic: thats normal behaviour, not all camera apps return the uri you passed. You need to save the uri yourself so you know it by the time activity result returns Jan 12 14:39:41 Is there a reason why when you set an EditText's gravity to be "end" you cannot also set the paddingEnd ? Jan 12 14:39:53 jvrodrigues:ty :) Jan 12 14:40:28 philm88, http://sourceforge.net/p/cmusphinx/mailman/message/33202981/ hope that helps Jan 12 14:42:13 https://gist.github.com/mRokita/10aa85b7e66bbbdf6c06 Jan 12 14:42:37 hi guys, I want to develop an ecommerce app for Android TV, is there something different than android mobile develop for this kind of applications (different policy)? Thanks in advance Jan 12 14:42:49 stacktrace: https://gist.github.com/mRokita/e6b8b9078bce7762a3fb Jan 12 14:42:58 Can somebody help me solving this error? Jan 12 14:43:01 Spider: Ah, so I have to run release() when I'm done with it? I guess I'd need someway to catch crashes to release it too right? Jan 12 14:43:07 It confuses me Jan 12 14:44:09 hello guys ! anyone using the ServiceTestRules? I'm having a issue where trying to bindService always gives a null result no matter what i do Jan 12 14:44:45 philm88, also http://www.programcreek.com/java-api-examples/index.php?api=edu.cmu.sphinx.result.Result looks interesting Jan 12 14:47:37 What I'm trying to do is continuous listening. so while the app is running, listen for key commands like "do this" or "do that". But I'm struggling to even get the recognizer set up yet, never mind about passing in key phrases to listen to Jan 12 14:48:10 ok Jan 12 14:48:50 What the heck is Chef, and why did I see it running when i unlocked my phone today>? Jan 12 14:50:11 check the code for uninitalized variables Jan 12 14:50:38 Anyone familiar with using parse with Android? Jan 12 14:50:53 In debug mode, variables and pointers get initialized to zero automatically but in release mode they do not Jan 12 14:51:26 I get the same issue even with a basic script. getRecognizer() throws an error about being unable to get the microphone Jan 12 14:53:02 jvrodrigues: http://paste.ubuntu.com/14478136/ that one worked thnx again Jan 12 14:58:55 anyone having issues with binding services? getting null reference after calling getService ? Jan 12 14:59:15 i've even tried doing it asynchronously and waiting for the bind to happen Jan 12 15:05:25 philm88, which version of emulator? Jan 12 15:08:00 I'm not sure which version it is, what ever is packaged with android studio 1.5.1 Jan 12 15:13:32 is audio enabled Jan 12 15:14:07 you may be able to use the -useaudio command Jan 12 15:15:45 or -audio Jan 12 15:17:24 Where do you set that? Jan 12 15:19:13 when you launch the emulator using the emulator command youcan attach those options Jan 12 15:19:25 http://developer.android.com/tools/help/emulator.html Jan 12 16:06:58 How can I set the context of some menu.xml? tools:context is not working for me? Jan 12 16:09:32 why would it have context? Jan 12 16:11:15 cwek, I think tools:context is only available for layout files, not menus Jan 12 16:21:42 I want it only for one specific activity Jan 12 16:22:05 so? Jan 12 16:22:14 cwek, tools:context is only for the editor. it doesnt have an effect on the real app Jan 12 16:22:17 it's a menu, why would it have context Jan 12 16:24:24 I thought that it should have it... I thought context is "the thing" that determines to what activity it belongs Jan 12 16:24:40 So what is the thing I'm searching for? Jan 12 16:25:08 cwek, menu items can only be set programmatically from java Jan 12 16:25:22 see the docs for Activity#onCreateOptionsMenu(..) Jan 12 16:25:46 Oh, ok.. thanks Jan 12 16:25:54 I thought It should be done in xml.. Jan 12 16:30:39 Hello guys, I have a project in another folder and want to add that project to my current project in Android Studio, how can I achieve that? Jan 12 16:32:07 Can I just drag the folder into the project pane of Android Studio or is there another method. I just can't find an example on the internet right now, hence my question here. Jan 12 16:36:46 hmm, I wonder if the moto x 2014 pure image will work on the vzw sku Jan 12 16:39:39 Number5, I think there is an add or import module menu item when you rightclick on the projects root folder in AS Jan 12 16:42:16 danijoo, the only 'add' I found is 'Add to favourites'. :( I'm a bit stressed. There should be a simple way to add a folder or a package in the project, right? Jan 12 16:43:46 I have another project with similar structure, but I used the conversion wizard to import Eclipse projects to AS. Now I want to do things myself I result being lost. Jan 12 17:22:39 jigsaw is looking great https://medium.com/@andrey_cheptsov/using-jdk-9-with-project-jigsaw-in-intellij-idea-95e495c825aa#.ibvl3gjwc Jan 12 17:25:52 design question (with awesome mspaint mockup!) Jan 12 17:26:29 I want to implement something like this: http://imgur.com/mVOqL5n Jan 12 17:26:54 but I'm not sure what components I should be using in order to do it Jan 12 17:27:16 youll need a LinearLayout. Jan 12 17:27:18 :p Jan 12 17:27:21 i want the top part to be a floating action bar (pretty standard), but that's where it gets a bit weird Jan 12 17:27:24 haha, thank you Jan 12 17:27:39 CollapsingToolbarLayout for the top part Jan 12 17:27:39 ok, problem solved Jan 12 17:27:44 ok Jan 12 17:27:47 CoordinatorLayout as root Jan 12 17:28:04 should the bottom bit be a fragment? Jan 12 17:28:17 doesnt have to be, but it can Jan 12 17:28:21 i think i should have a recyclerview for the lists since the contents are the same(ish) Jan 12 17:28:29 yep. Jan 12 17:28:40 but.. that's where i'm a bit confused Jan 12 17:28:49 kommunicate you can see chris banes cheese squared Jan 12 17:29:05 yeah. that and the android dev blog Jan 12 17:29:15 seems like i could have the title + recyclerview bit be a fragment instead -- that would probably be better anyway since it wouldn't look so terrible on a tablet Jan 12 17:29:37 when you click on a cheese, its the exact layout you want Jan 12 17:29:45 pretty much just copy pasta Jan 12 17:30:15 ok Jan 12 17:30:18 investigating! Jan 12 17:30:19 thank you Jan 12 17:33:52 i/o 2016 may 18-20 Jan 12 17:34:04 holy cow, it seems so close Jan 12 17:34:33 woah and also whoa Jan 12 17:37:08 usually it's in june Jan 12 17:37:14 g00s: where did you see that? Jan 12 17:37:20 sundar tweeted it Jan 12 17:37:21 late june, too Jan 12 17:37:28 wasn’t it in may last year? Jan 12 17:37:46 possibly, I just know usually it's after another con I go to in the bay area Jan 12 17:37:56 so I always miss seeing people by a week Jan 12 17:39:35 g00s: Jan 12 17:39:42 hey thepoosh Jan 12 17:40:32 s73v3r, late may last year, you're right Jan 12 17:41:12 whats a good way to display loading progress on top of my webview (crosswalk) fragment while loading a webpage? crosswalk reports onLoadStarted onProgressChanged and onLoadFinished. i though of making the screen darker with a progress bar in the middle Jan 12 17:41:35 g00s: have I told you how much I hate google's play services documentation? Jan 12 17:41:59 yeah its pretty bad. i was looking at GTM 4 Jan 12 17:42:50 i think the most frustrating thing though, is where to get support / submit bugs. i trued the google groups but nothing came of it Jan 12 17:42:59 s/trued/tried Jan 12 17:43:55 i saw one Class, the whole documentation said 'Derived from Object' lol Jan 12 17:44:12 in Nearby Messages API Jan 12 17:47:31 oh well Jan 12 17:47:47 at least it didn't say "Created by nhammerman" Jan 12 17:52:23 to put a gap between views in LinearLayout, using dividers, i have showDividers="middle" but actually don't want to draw a divider itself, just have an empty gap. do i still need to create a drawable for that? Jan 12 17:53:14 why not using margin? Jan 12 17:53:26 or a bit more expensive, an invisible view with some fixed height Jan 12 17:53:32 because the children come and go, i and i want to maintain a grid Jan 12 17:53:56 http://cyrilmottier.com/2014/11/17/grid-spacing-on-android/ Jan 12 17:54:00 theres also Space.class Jan 12 17:54:08 yeah you have space on higher api Jan 12 17:54:17 http://developer.android.com/reference/android/widget/Space.html Jan 12 17:54:18 https://vid.me/DLQr i've started playing with drag'n'drop Jan 12 17:54:19 api level 14 Jan 12 17:54:24 the documentation is full of errors, typos & bugs Jan 12 17:54:38 but it does work (more or less) at the end lol Jan 12 18:00:05 Can someone please help me with my SeekBar that does not react on its LIsteners ? I can not get my SeekBar -> onProgressChanged() Listener does not fire Jan 12 18:00:07 android studio qustion: is there a way of linking the file you're viewing in the editor to the navigator on the side, eclipse style? Jan 12 18:01:27 i'm sure there is an option but i can't figure out how to do it Jan 12 18:01:42 i keep getting lost navigating through the project structure Jan 12 18:02:28 nm, i got it :X Jan 12 18:03:28 Here is my Code -> http://pastebin.com/qNwFun8G Jan 12 18:04:49 g00s: I'm stuck with this - https://code.google.com/p/android/issues/detail?id=198246&q=8.4.0&colspec=ID%20Status%20Priority%20Owner%20Summary%20Stars%20Reporter%20Opened Jan 12 18:05:46 ah, never used that sorry thepoosh Jan 12 18:05:53 they want me to use an alpha version of their plugin while not documenting that this might crash Jan 12 18:06:01 i hate them now Jan 12 18:06:09 g00s: you never used GCM? Jan 12 18:06:25 no, i just use GA Jan 12 18:06:39 the less google apis i use, the better ;) Jan 12 18:07:00 i'm afraid a agree Jan 12 18:07:29 GA is unique in that (at least last i checked) doesn't even require GMS on the device Jan 12 18:08:14 yes, gms has been such a pain in my ass Jan 12 18:08:26 g00s, time to switch to crashlytics :p Jan 12 18:08:49 danijoo heh, do they still have that crazy plugin ? Jan 12 18:08:55 yes :( Jan 12 18:09:05 but its getting better i think Jan 12 18:09:37 i'm looking at the docs for linearLayout, and they are missing XML attributes like android:dividerPadding Jan 12 18:11:35 good morning all. I have a question. I am playing with speech recognizer on google glass on a project. Is it possible to activity speech recognizer on an activity's onCreate method? so it'll start listening to the user as soon as the activity launches? Jan 12 18:12:20 I tried this, and I can show my method calling the recognizer if anyone wants. the problem I get is it activates, but then it acts as if it errors out. I can't seem to find anything in the logcats. Jan 12 18:12:26 Why does my SeekBar Listener not work... it does not fire -> http://pastebin.com/qNwFun8G Jan 12 18:13:23 brb. Jan 12 18:15:56 is there a library for displaying images with a scroller? Jan 12 18:22:33 thepoosh, word? Jan 12 18:24:03 word! Jan 12 18:24:41 pfn: I managed to shorten the build times to under 30 seconds so my boss told me to stop messing around with unorthodox build systems Jan 12 18:24:43 :( Jan 12 18:26:40 thepoosh, bummer, oh well, 30 seconds is good Jan 12 18:28:54 pfn: I still havent managed to get that error right from yesterday night... Here is the code -> http://pastebin.com/qNwFun8G Jan 12 18:29:09 yeah, thanks Jan 12 18:29:13 it was a lot of work Jan 12 18:29:31 relying on some conditional builds Jan 12 18:30:02 how to open a command line on android 1.5? Jan 12 18:30:12 android studio 1.5 Jan 12 18:30:25 beginner_, bottom left Jan 12 18:30:28 ¨terminal¨ Jan 12 18:30:30 beginner_: there is a tab on the bottom named terminal Jan 12 18:33:06 <_SASDOE> I Jan 12 18:33:52 <_SASDOE> I am having issues with the asset studio in android studio, although the image I am giving it is everything but white, it only generates white/empty images. Jan 12 18:34:08 <_SASDOE> Any clues as to why ? Jan 12 18:35:18 thepoosh lol, unorthodox build systems :D Jan 12 18:46:07 is there a way to use a progress bar that keeps looping, but with no real progress? like a spinning wheel but bar Jan 12 18:49:38 luist, yes, use the indeterminate attribute Jan 12 18:52:29 pfn: Sigh found the problem...my gosh that it can take soo olong Jan 12 18:57:11 colt still like flatbuffers over protobuffers https://www.youtube.com/watch?v=IwxIIUypnTE&index=14&list=PLWz5rJ2EKKc9CBxr3BVjPTPoDPLdPIFCE&linkId=20302392 Jan 12 18:57:57 hey, does calling setSelection on a Spinner trigger the item selected listeners? Jan 12 19:00:12 s73v3r dont remember offhand, it does on some things like CheckedChangeListener Jan 12 19:00:32 which means you have to unlook the listener, make the change, and then hook up the listener again Jan 12 19:01:19 Hey, is there a way to lazily attach fragments to viewpager, ie, with offscreenpagelimit 3, i want to attach fragment to a page when user switches to that page but keep it in memory if user switches to another page Jan 12 19:04:28 hi, I'm having all kinds of problems in my app due when the device looses the correct time/date settings Jan 12 19:04:30 for instance Jan 12 19:05:44 Crashlytics will fail to login or register because the certificate will not be validated Jan 12 19:06:04 how can I code around this? Jan 12 19:06:43 will I lose crashlytics and other functionality whenever the device misses the date config? Jan 12 19:08:42 Does that actually happen in the real world? Jan 12 19:09:02 I doubt anyone accounts for that happening Jan 12 19:09:04 it does if people fuck with their phone settings Jan 12 19:12:37 That's some serious problem Jan 12 19:12:48 who cares if people fuck with their phone settings Jan 12 19:12:52 they can be left unsupported Jan 12 19:13:07 although, certain towers must fuck with time & date settings Jan 12 19:13:11 happens on cruise ships all the time Jan 12 19:13:16 s/must// Jan 12 19:13:29 fucked up the timestamp on a bunch of my photos :( Jan 12 19:13:37 Explain that to stakeholders Jan 12 19:14:00 explain what? It’s analytics Jan 12 19:14:03 it's easily explained, the user misconfigured their phone and are no longer supported Jan 12 19:14:08 same as for rooting and custom roms Jan 12 19:14:26 My company irritates me for these issues Jan 12 19:14:28 it's mostly pretty intentional to alter time&date settings Jan 12 19:14:40 (except in the case of misconfigured towers as mentioned) Jan 12 19:15:25 also for analytics statistics, who cares about that 0.0001% of users who fuck with their settings Jan 12 19:15:45 the number of those users should be background noise Jan 12 19:17:33 unless a significant number of revenue generating customers are experiencing the problem, don’t bother Jan 12 19:22:28 hey, it should be possible to display non-stereoscopic images via google cardboard, right? like say that i just wanted to show the rear-facing camera so that it appears correctly through cardboard Jan 12 19:23:10 (it'd be lovely if there were a phone with stereoscopic cameras at the same positions as a user's eyes, but alas) Jan 12 19:34:11 Hey all. When I upload an apk to my android device, what JRE is that being run through? Jan 12 19:34:53 none Jan 12 19:35:09 it’s running on the device Jan 12 19:35:52 its not a classical jvm Jan 12 19:36:33 Do you all know of any documentation on this? Jan 12 19:36:59 documentation on what? Jan 12 19:37:11 How the apk is run on the device Jan 12 19:37:22 it’s running on the Android system on the device, either Dalvik or ART Jan 12 19:41:10 I restarted android-studio now I get so many logs that I can't even read them... they are just comming from nowhere.. What is the problem? Jan 12 19:51:35 aosp is the documentation, nohe427 Jan 12 19:53:31 I think theres also a few lines about how apks work in the dev docs Jan 12 19:53:56 but its pretty general and nothing useful beside ¨we have this dalvik, and it runs our java code¨ Jan 12 19:55:41 what is a good irc client Jan 12 19:55:44 im on windows 10 Jan 12 19:55:51 hexchat Jan 12 19:58:22 So I have a choice for a user to choose a picture from the camera app or gallery. How do I write an espresso test for that? I don't think I can click on another persons app right? Jan 12 19:59:09 eghdk, uiautomator Jan 12 19:59:31 can I use ui automator "inside" of an espresso test? Jan 12 19:59:53 When I started using hdpi graphics instead of nodpi. The graphics seems to lag a bit behind compared to drawRectangle and such when moving. Anybody seen this? Jan 12 20:00:12 Kake_Fisk, are they of correct size? Jan 12 20:00:15 Anyone familiar with using Parse with Android? Jan 12 20:00:42 N00b3r: I've used Parse for simply pushing out notifications with them. Worked well. No issues on my end. Jan 12 20:01:52 danijoo: On hdpi screens yes, but not on bigger screens Jan 12 20:02:06 So no, not on my test device Jan 12 20:02:38 pfn: can I use ui automator "inside" of an espresso test? Jan 12 20:03:04 eghdk: would you mind if I asked you a question about Parse for a chat app I'm trying to develop? Jan 12 20:03:10 Kake_Fisk, what I mean is are they of correct size for the HDPI folder Jan 12 20:03:21 if they are too big and the system has to scale them down, this can cause lag Jan 12 20:03:33 also you should load them async and not on main thrad Jan 12 20:03:34 N00b3r_: ask away. as long as its a fair question, anyone here may be able to answer it. Jan 12 20:03:35 thread Jan 12 20:04:07 eghdk, no Jan 12 20:04:23 danijoo: If you just set a big ass image to a ImageView, will the system scale it down for you? does it do this on the main thread? Jan 12 20:04:35 eghdk, yes and yes Jan 12 20:04:44 and its bad Jan 12 20:05:01 danijoo: Does downscaling cause runtime lag or just startup? When does it do the downscaling? Jan 12 20:05:22 Kake_Fisk, it does the downscaling when you load the image into memory Jan 12 20:05:31 usually when you do resources.getDrawable(id) Jan 12 20:05:57 so when you have a listview where this has to be done several times when the user scrolls, this can cause serious lags Jan 12 20:06:16 thats why you should do off ui-thread Jan 12 20:06:27 danijoo: One more question about ImageView, let's say you have a big image in XHDPI, and the device IS a XHDPI device. Is there a gurantee that no scaling will take place? Jan 12 20:06:29 Okay, then I don't think that is a problem for me Jan 12 20:06:42 eghdk, no Jan 12 20:07:04 it will still get scaled to the imageview size Jan 12 20:07:13 but it will sit in its unscaled size in memory i think Jan 12 20:07:13 danijoo: I thought if you have something in the proper bucket for the proper device, there'd be no scaling. Jan 12 20:07:23 eghdk: I've created a chat app and have 1 last feature to incorporate - the chatrooms. I've created a Parse class of "Message" to hold all the messages between chats. I've also create a Parse class of "ChatRoom" to hold the different chatrooms that are created. The problem is, I can't seem to figure out how to get the messages associated with particular chatrooms. Every text message shows up in every chatroom that is create Jan 12 20:07:26 eghdk, im not 100% sure to be honest on that :/ Jan 12 20:07:37 i let libraries do the work 8) Jan 12 20:07:59 danijoo: Oh. But what if you don't set a size to the imageview? will it still have to resize and crap? Jan 12 20:08:01 eghdk: Would it be possible to look at my code and maybe let me know where I went wrong? Jan 12 20:08:48 N00b3r_: I don't have the time right now. Seems like your database setup needs some kind of foreign key set up. Jan 12 20:09:13 At the very least, each message should have an id of the convo it is supposed to sort into. Jan 12 20:09:59 danijoo: Yeah. I use libs for that as well. But the image, density bucket, and scaling stuff on android has always pissed me off that I don't fully understand it. Oh well. Can't know everything... right? Jan 12 20:11:11 hello guys ! how do you resolve a dependency conflict ? Jan 12 20:11:16 http://g.co/androidstudio/app-test-app-conflict this Jan 12 20:11:37 eghdk: Yes, I create a chatId in each message object. The idea was to pull the objectId from the chatroom class, however, I can't seem to figure how to put that chatroom objectId into the message chatId field. Jan 12 20:11:44 Conflict with dependency 'com.android.support:support-annotations'. Resolved versions for app (23.1.1) and test app (23.0.1) differ. Jan 12 20:11:54 what do i do now? Jan 12 20:13:29 N00b3r_: Not sure. Sounds like you're close though. Like I said, I've only ever used parse for push notifications. I'm pretty sure teamtreehouse.com has a video tutorial for making a chat app on Android using Parse. It's a paid site, but I think they have a 30 day trial. Sorry I can't be of more help. Jan 12 20:15:08 eghdk: Yes, I've seen the video. It didn't have this particular feature in the tutorial unfortunately. But thank you anyway! :) Jan 12 20:16:16 Does anyone have time to take a glance at my code and maybe guide me in the right direction with using Parse and Android? I'm creating a chat at that has chatrooms, but unfortunately, every messages ends up in every chatroom. Any help would be greatly appreciated. Jan 12 20:16:35 for Locations, do you have to do a runtime check for both coarse and fine? Or does coarse still work if Location services are turned off on the phoen? Jan 12 20:22:20 you need to check for both Jan 12 20:22:33 all location data (including pseudo-location like wifi scan results) can be runtime controlled Jan 12 20:26:19 Thanks @pfn Jan 12 20:30:31 Hi all. Question about the new 'ad supported' label in Google Play. Does an "Our Apps" button in the app that links to our Google Play dev page count as an ad? And what about linking to company website? Common sense says no but I want to make sure Jan 12 20:31:08 The buttons are in Navigation drawer, not banner ad or anything like that Jan 12 20:36:56 hithere Jan 12 21:02:02 how to make EditText looks like Spinner field? with triangle on right Jan 12 21:02:29 change the background Jan 12 21:02:45 you could check whats the background of spinner and apply that to ET Jan 12 21:04:37 I've been trying to build and App and I'm trying to transfer the variable data from one Activity Class to another but for some reason it doesn't work Jan 12 21:04:37 vigilancer assign style="?attr/spinnerStyle" Jan 12 21:04:52 trying to find spinner bachground Jan 12 21:05:17 that style takes care of it Jan 12 21:06:16 g00s: fk, this works Jan 12 21:06:43 was trying with Widget.AppCompat.Light.DropDownItem.Spinner Jan 12 21:06:47 thanks Jan 12 21:07:04 yw Jan 12 21:09:00 http://hanhuy-acra.appspot.com/public/com.hanhuy.android.keepshare.lite/fe53675cbdd5176aa42a1837f77cf263b35f1ae1 Jan 12 21:09:03 hmm, that's an odd crash Jan 12 21:09:10 * pfn wonders if it's a race condition Jan 12 21:10:04 I want one of the classes to send a boolean variable that changes based on a condition and I don't think the other class is able to get this value , instead it's taking in the initial value. Jan 12 21:10:26 devx136, need to work on java basics first Jan 12 21:10:39 devx136, nobody can help without code/trace Jan 12 21:10:43 http://imgur.com/jacoj Jan 12 21:13:06 pfn: are prefering arca over crashlytics in general? Jan 12 21:13:54 *acra Jan 12 21:14:24 vigilancer, sure, it's free and open source and doesn't need stupid plugin bullshit to setup Jan 12 21:14:34 in general? there's several features of crashlytics that makes it compelling Jan 12 21:14:50 basic analytics and crash organization make it nice, I suppose Jan 12 21:14:55 but I haven't tried acralyzer Jan 12 21:15:00 so I don't know how it compares Jan 12 21:15:20 part of the problem is that Android does everything in it’s power to prevent you from transferring values from one Activity to the next Jan 12 21:15:51 that's pretty false Jan 12 21:16:06 its 2 lines to transfer a boolean.. Jan 12 21:16:07 http://pastebin.com/Bhy6dxRv here's the code and the "off" variable's data is what I'm trying to take into consideration in the GameActivity Class Jan 12 21:16:08 common.. Jan 12 21:16:12 android has many mechanisms for transferring values Jan 12 21:16:15 no, it’s not. Android throws a lot of hurdles in the way of simply passing a value between two activities Jan 12 21:16:25 that's very false Jan 12 21:16:30 no, it’s not Jan 12 21:16:31 a simple value is easily passed Jan 12 21:16:33 intent extras, singletons, static, etc. Jan 12 21:16:34 and its basics to do that Jan 12 21:16:49 android does nothing to prevent data passing Jan 12 21:16:53 honestly, why should I have to serialize in order to pass an object? Jan 12 21:17:08 s73v3r yeah, this is not something one does on iOS Jan 12 21:17:10 because your intent extras may persist beyond the process Jan 12 21:17:19 that's pretty clear Jan 12 21:17:19 coming from another platform it doesn't make much sense Jan 12 21:17:35 devx136, theres no code at all that tries to pass your variable Jan 12 21:17:37 but if I’m sending it within the process, that doesn’t apply Jan 12 21:17:39 what have you tried so far Jan 12 21:17:44 data transfering can be tricky with widgets tho Jan 12 21:17:55 s73v3r, android doesn't know if it's going to be in-process or out Jan 12 21:18:13 s73v3r, if you know it's going to be in-process, you can just use a singleton to pass stuff to your heart's content Jan 12 21:18:24 if I’m transferring to another activity in my app, then it’s definitely in-process Jan 12 21:18:37 and a singleton is an extremely poor bandaid for this Jan 12 21:18:45 s73v3r, not if the activity has an android:process Jan 12 21:18:50 and actually, it's not a poor bandaid Jan 12 21:18:52 s73v3r, no. you could add several intent flags to make it another process Jan 12 21:19:12 you break in the presence of IPC Jan 12 21:19:13 it is an extremely poor bandaid, as it prevents things like constructor injection from happening Jan 12 21:19:42 meaning that I am forced to have an Activity that may be partially constructed, instead of giving it all the dependencies up front Jan 12 21:19:55 activities don't have constructor injection Jan 12 21:20:02 exactly, that’s the problem Jan 12 21:21:19 and that's not true either, you can use a factory to replace your singletons, as well as a similar dependency injecting initializer Jan 12 21:22:50 http://pastebin.com/cgXdj5Sm here's another modification Jan 12 21:23:11 s73v3r haha those CodeName One guys Jan 12 21:23:13 in fact, you could have dagger, butterknife, whatever manage your singletons Jan 12 21:24:32 devx136, where are you trying to pass that boolean? what line? Jan 12 21:24:33 devx136, you can't new FooActivity, that's not how java works, not if you want to share data Jan 12 21:24:58 I thoguth you don't need to serialise when you pass to another activity? Jan 12 21:25:08 Are you talking about making objects parcelable? Jan 12 21:25:12 AKK9, you need to serialize or parcel Jan 12 21:25:20 AKK9, if you use an out-of-band method, you don't have to Jan 12 21:25:45 What does out of band mean, I know that in my really basic app I'm not using parcelabel to pass stuff to activities Jan 12 21:25:45 devx136, oh wait.. now i see what you try to do oO Jan 12 21:25:53 again, more bandaids Jan 12 21:26:03 pfn, is right. you definitly need some java basics Jan 12 21:26:04 not band-aids, java 101 Jan 12 21:26:10 no, bandaids Jan 12 21:26:12 line 82, line 87 and an game activity as an object that uses the return statements to get the value Jan 12 21:26:23 but the app crashes for some reason Jan 12 21:26:27 If you don't need to do anythign to an object to pass it to another activity, what is the band aid in that? Jan 12 21:26:37 or in general, you need to learn how object oriented prog. work.. Jan 12 21:26:44 i think people get so used to doing android, when you consider these weird issues it totally makes sense within its system - but when you step back in 2015, compare the options, it doesn't make sense any more Jan 12 21:26:58 oh 2016 heha Jan 12 21:27:00 you have to serialize and deserialize the object, creating new instances of it. Meaning I can’t pass a reference of an object to another screen Jan 12 21:27:06 compare the options, yeah, do that Jan 12 21:27:26 well s73v3r does iOS, so he's coming from at least that perspective Jan 12 21:27:34 and these things are simply non issues on iOS Jan 12 21:27:37 s73v3r, again, use out of band passing mechanisms, not at all a bandaid Jan 12 21:27:41 ios doesn't have multiprocess Jan 12 21:27:48 even regular java is not like this Jan 12 21:28:00 pfn: just because it’s accepted does not mean it’s not a bandaid Jan 12 21:28:02 regular java is just like this Jan 12 21:28:15 regular java you can define constructors Jan 12 21:28:18 Oh, so when you add something to a Bundle to pass in an intent, does that count as serialising? Jan 12 21:28:20 Your intent might leave your process if that process is killed.. That's why everything must be serializable or parcelable Jan 12 21:28:22 only if you own the full framework Jan 12 21:28:26 in 2007 it made sense, it was more efficient for programmer to serialize everything themselves than implement virtual memory Jan 12 21:28:26 AKK9: Yes Jan 12 21:28:34 <_ohm> i downloaded android-sdk r24.4.1 and installed platformtools, sdk, and api 23. when i try and run adb i get 'cannot execute binary file'. uname -m says im i686. xubuntu 15.04 and the file came from google's website. any ideas? been on google all day trying to figure it out Jan 12 21:28:34 Ah kk Jan 12 21:28:40 the vast majority of frameworks, you do not ever define constructors that are invoked outside of framework Jan 12 21:28:50 java-ee, etc. Jan 12 21:29:35 swing, for example, is unsuccessful because it has no framework to create views Jan 12 21:29:58 everything is direct constructor instantiation, and opens nothing for externalization of layout Jan 12 21:30:07 Can someone tell me what I'm supposed to do.? Jan 12 21:30:16 devx136, pass values via intent Jan 12 21:30:29 devx136, or figure out how to /properly/ get a reference to YourActivity Jan 12 21:30:30 I tried that as well Jan 12 21:30:44 how did you do it? Jan 12 21:30:48 devx136, learn java/oop. You cant just create a new instance of an object and it will magically hold the vars of the old one Jan 12 21:31:06 devx136, what you're trying to do is like saying, "a = new Object(); b = new Object()" and expect a and b to be the same thing Jan 12 21:31:18 i used the getter kind of function to get the value Jan 12 21:31:59 would be nice if you actually looked at the code again Jan 12 21:32:03 no Jan 12 21:32:05 it's wrong Jan 12 21:34:23 <_ohm> when i run ./adb under sudo i get a syntax error. ideas ? Jan 12 21:34:37 don't run adb under sudo Jan 12 21:35:04 devx136: you need to pass your musicOff boolean as an intent extra. However, when GameActivity starts, MainActivity isn’t going to be running anymore Jan 12 21:35:06 <_ohm> when i run it under normal user i get 'cannot execute binary file' Jan 12 21:35:17 why would you expect sudo to be different Jan 12 21:35:32 you can’t simply instantiate an activity that way in Android Jan 12 21:35:34 your file is corrupt, or you're missing the 32bit/64bit userspace Jan 12 21:35:46 simple solution, implement single-activity apps Jan 12 21:35:54 at that point, message passing becomes irrelevant Jan 12 21:36:05 you can new/create stuff all you want Jan 12 21:36:21 basically what stuff like mortar/flow all strive for Jan 12 21:37:09 <_ohm> pfn, i'm 32bit everything, file came from google's site Jan 12 21:37:16 i don’t think that’s going to be the solution to devx136’s problem Jan 12 21:37:27 talking about your particular case Jan 12 21:37:51 if message passing between activities is an issue, and you want to fully constructor-inject, then do a single activity application Jan 12 21:38:04 that has it’s own set of problems, not the least of which is working on existing applications Jan 12 21:39:19 * pfn shrugs Jan 12 21:39:20 solutions exist Jan 12 21:40:15 i never argued that. Jan 12 21:41:55 just because a solution is not framework-endorsed doesn't mean that it's not a solution, nothing in android assumes intra-process, not hard to write a simple data-passing mechanism that is easily testable Jan 12 21:42:10 legitimate solution Jan 12 21:42:51 solution that was needed due to poor design decisions on the platform side Jan 12 21:43:01 no, it's the correct design decision Jan 12 21:43:08 android has multi-process, other platforms do not Jan 12 21:43:28 then make multi-process the special one, not the other way around Jan 12 21:43:33 android has done /nothing/ to prevent that Jan 12 21:43:56 you make it sound like using an Intent+extra = guaranteed runtime safety and testability Jan 12 21:43:58 it doesn't Jan 12 21:44:14 you make it sound like using a singleton datapassing mechanism limits testability and runtime safety Jan 12 21:44:15 it does not Jan 12 21:44:41 if you know you're always going to be in the same process, use it, that's a language feature, that's what it's there for Jan 12 21:44:52 there's no reason for the android framework to re-implement normal language features Jan 12 21:44:55 the way it is now requires workarounds that are simply not required on other, similar platforms Jan 12 21:44:59 what workarounds? Jan 12 21:45:02 it's a language feature Jan 12 21:45:05 no, it isn't Jan 12 21:45:14 it absolutely is Jan 12 21:45:21 the workaround to not be able to simply say newActivity.property = foo Jan 12 21:45:34 everything else is a workaround to not be able to do that Jan 12 21:45:47 we will never agree on this topic Jan 12 21:45:51 uh, that has never been promised in android ever Jan 12 21:46:02 but it’s a language feature Jan 12 21:46:06 it's not a language feature Jan 12 21:46:14 go ahead, do newActivity.property = foo Jan 12 21:46:17 it doesn't work Jan 12 21:46:19 being able to call properties on objects? of course it is Jan 12 21:46:27 an Activity is simply an object Jan 12 21:46:28 not when you don't have the object it doesn't Jan 12 21:46:36 that is absolutely a language feature Jan 12 21:46:39 exactly, and it’s a defect to not be able to get the object Jan 12 21:46:44 it's not a defect Jan 12 21:46:47 yes, it is Jan 12 21:46:53 file that bug on b.android.com Jan 12 21:46:59 lets see who agrees it's a defect Jan 12 21:47:06 I'll do it for you if you're too embarrassed to Jan 12 21:47:38 we will never agree to this. I realize there are workarounds available. however, that does not change the fact that poor design decisions have made those necessary Jan 12 21:47:56 in your opinion poor design decisions Jan 12 21:48:14 not being able to set a property on a class is a poor design decision Jan 12 21:49:33 a sane design decision Jan 12 21:49:51 in no universe is that a sane design decision Jan 12 21:50:10 you can accept the decision, but no one can say it was a good one Jan 12 21:50:24 I'm glad that the world agrees with you Jan 12 21:50:36 it is a perfectly good design decision Jan 12 21:50:39 I just invalidated your statement Jan 12 21:51:56 no, you’re simply trolling Jan 12 21:52:15 trolling? you're the one that's claiming something is a problem where it isn't Jan 12 21:52:33 there is no valid reason for not letting me get a reference to the activity. if there was, then we wouldn’t be able to do it from within a fragment Jan 12 21:52:44 and just because there are workarounds does not mean something isn’t a problem Jan 12 21:52:52 interesting, Intel has its own linux distro (called clear) Jan 12 21:53:01 it's not a workaround, it's a language feature Jan 12 21:53:12 you are absolutely free to use any means you want to get a reference to your activity Jan 12 21:53:37 it’s a workaround for not being able to take the straightforward route Jan 12 21:53:43 there is no straightforward route Jan 12 21:53:53 if you want a "straightforward route" write a single-activity-application Jan 12 21:54:01 because their poor design decision cut that out Jan 12 21:54:09 not the least bit poor Jan 12 21:54:18 if I could get a reference to the activity, then i would be able to take the straightforward route Jan 12 21:54:19 same analogy applies to every single framework in existence Jan 12 21:54:25 html5 pages vs. SPA Jan 12 21:54:39 really? cause in iOS i’m able to get a reference to the upcoming view controller Jan 12 21:55:02 you can get a reference to your activity if you want, set your singleton field Jan 12 21:55:18 you can do this in android Jan 12 21:55:22 ever since api v1 Jan 12 21:55:27 Ok folks, I'm desperate here. I really need help with the last feature of my chat app which uses Parse. I haven't slept in going on 48 hours. Please... anyone? Jan 12 21:55:48 http://pastebin.com/aeedSYXu so i tried Intents as well, the app still crashes.. Jan 12 21:56:11 devx136: On line 141, you cannot do that Jan 12 21:56:21 This is my first app... and I'm stuck. And I can't seem to find any help anywhere. Jan 12 21:56:33 you cannot insantiate an activity like that Jan 12 21:56:52 N00b3r_: you’ll have to actually ask a question before anyone can help you Jan 12 21:57:10 I'll be removing the line 141 part because the length isn't accessed either so , yeah Jan 12 21:57:24 and while someone here might be able to help, you might be better off asking in a Parse channel or forum Jan 12 21:57:43 also, go the fuck to bed. there is nothing you could be doing which is worth not sleeping for 2 days Jan 12 21:58:21 If that's for me, don't worry I've slept enough for the day Jan 12 21:58:30 s73v3r: I took the week off. I have to get this done. I am up against a deadline. I don't have a choice. Jan 12 21:58:53 yes, you do Jan 12 21:59:06 I guarantee you that your app is not critical enough for that to be worth it Jan 12 21:59:30 but that’s neither here nor there. ask the question if you want help Jan 12 21:59:41 s73v3r: public static bam done Jan 12 21:59:51 :D Jan 12 22:00:20 workaround, even if it’s using a language feature Jan 12 22:00:30 one might say abusing a language feature Jan 12 22:03:00 i'm sure somebody will come up with another half baked library next week to "solve" it :) Jan 12 22:03:10 I am trying to create separate chatrooms in my chat app. I've created the chatroom class along with a message class on parse. I am able to get to enter each individual chatroom in my app, however, all the messages for every chatroom show up in every other chatroom. I don't know what I am doing wrong. Does anyone know how to make messages be unique to particular chatrooms using Parse? Jan 12 22:03:35 have you tried putting a chatroom id on the message object? Jan 12 22:03:36 Hi guys, I'm getting ready to dive into Android development. Can anyone recommend a good book on it? Jan 12 22:03:45 the Big Nerd Ranch book is good Jan 12 22:03:52 Thank you Sir. Jan 12 22:04:00 * g00s seconds BNR Jan 12 22:04:08 the actual developer.android.com stuff is good too Jan 12 22:04:18 the only other one that is up to date is commonsware Jan 12 22:04:21 d.android.com is the best place to start if you have programming experience Jan 12 22:05:02 yeah. some c# / winphone experience. Jan 12 22:05:05 s73v3r: Thats exactly what I do not know how to do. I've been trying, but for some reason nothing I use will pull and update the message "chatId" column that I created in Parse. Jan 12 22:05:18 I can't find the correct syntax anywhere. Jan 12 22:05:38 you’d probably be better asking in a Parse room or on their forums Jan 12 22:05:58 Elezium have you done anything with windows phone 10 ? Jan 12 22:06:03 N00b3r_: Theres a couple ways to do this Jan 12 22:06:35 orbyt: thank you. Any advice? Jan 12 22:06:36 N00b3r_: you can create a seperate Parse class for the messages of each chatroom, and when entering the chatroom, do a query on that specific class for the messages Jan 12 22:07:32 N00b3r_: If you have all messages stuck into 1 class, you can add a "chatroom_id" column, and with either an integer or a string, and then query for messages that contain the id that you want for that chatroom Jan 12 22:07:35 g00s, Mostly playing around, but nothing serious. I'm just a hobbyst, not a pro dev. Jan 12 22:08:39 orbyt: I created a "chatId" column in my "messages" class that is a pointer to my "ChatRoom" class. Jan 12 22:10:46 is there library such a MVVM pattern on Android? if so, is it recommended and which one? Jan 12 22:11:30 Elezium look at the android databinding stuff for close approximation Jan 12 22:11:51 http://developer.android.com/tools/data-binding/guide.html Jan 12 22:11:53 orbyt: so basically I've made a "create new chat" button that takes a chat subject text field and a chat description text field and starts a new chat view with this data. It updates the "ChatRoom" class in Parse as well. However, I can't seem to get the messages to get the chatId. Jan 12 22:12:04 orbyt: would you mind looking at my code? Jan 12 22:12:21 Elezium but mvvm was pretty much invented on MS stack, its not going to be as complete / thorough / advanced Jan 12 22:12:37 N00b3r_: yea just pm me it Jan 12 22:15:20 g00s, Cool, I had a quick look at it yesterday, will read more. Jan 12 22:15:45 Gotcha. Just trying to compare a bit to see where I'm heading. ;) Jan 12 22:20:44 g00s: Ordered a new laptop. 12GB RAM this time. :D Jan 12 22:21:05 I've been battling Currys for a refund for the last one. They finally gave me the refund today. Jan 12 22:22:58 hey TacticalJoke awesome ! Jan 12 22:23:12 yeah i thought , where is TacticalJoke :D Jan 12 22:23:29 When I took that laptop back, the guy checked the SMART log and told me there was no possible way the hard drive was failing. Jan 12 22:23:40 then wondered, oh oh HD made clicking noise of death Jan 12 22:23:43 He was a guy who "takes hard drives apart". Jan 12 22:23:45 haha Jan 12 22:23:51 TacticalJoke, I hope you checked for HAXM support :p Jan 12 22:24:03 He sent it off to a specialist who -- surprise, surprise -- diagnosed a failing hard drive. Jan 12 22:24:04 TacticalJoke SMART isn't exhaustive though Jan 12 22:24:14 Yeah. Told him that right away. Jan 12 22:24:19 Huge 30-minute argument with him. Jan 12 22:24:31 but yeah, i had WD Raptor that made a horrible screeching noise for its auto parking Jan 12 22:24:47 danijoo: Yeah. :D Jan 12 22:24:47 i thought, oh man, this is the end of that . but was normal, worked till the end Jan 12 22:24:54 Checked the list on the Intel site. Jan 12 22:25:24 for google app-indexing, can I just submit sitemaps of my website? Jan 12 22:26:11 or I still have to submit each page one by one from app itself? Jan 12 22:30:39 Hello. How do applications that disable notifications work? I want to make something similar? Can someone point me where to get started? Jan 12 22:32:17 nebby, they require root, right? Jan 12 22:32:53 Hmm do they? I wanted to make an app that disables my work email notifications on weekends and at night Jan 12 22:33:47 don’t put work email on your phone :p Jan 12 22:34:23 haha s73v34: it's not that important for me, I just wanted to practice android dev Jan 12 22:34:37 But it seems like this idea is too hard Jan 12 22:34:38 nebby, well I just googled that and the first app that came up was requireing root Jan 12 22:34:42 https://play.google.com/store/apps/details?id=com.aboutmycode.NotificationsOff&hl=de Jan 12 22:35:12 Alright Jan 12 22:35:13 yeah, messing with notifications seems like something that you wouldn’t want any random app to do Jan 12 22:35:28 reading notifications can be done without it Jan 12 22:35:48 but disabling featuires for other apps most often cant be done by default Jan 12 22:36:27 s73v3r, im actually writing on an app "messing with notifications" right now :D Jan 12 22:37:30 what’s it do? Jan 12 22:37:40 is there a way to make it so that hwen I start an activity it will defer until the app comes back to the foreground? Jan 12 22:37:47 Well I doubt I will follow this idea then, but out of curiosity, how does one access all the root-only features in an applications? Jan 12 22:37:52 Is there a good guide? Jan 12 22:38:15 i jus asked that in the iphone dev channel by mistake btw hah Jan 12 22:39:08 s73v3r, i tell you when its done :) (if its ever done) Jan 12 22:39:45 grekkos: i don’t think you can start an activity in the background. starting one would bring you to the foreground Jan 12 22:40:09 s73v3r: that's what i'm thinking... it doesn't have to necessarily start until the app is resumed Jan 12 22:40:15 i just don't want it to come to the front if they back out Jan 12 22:41:06 i don’t think you can stop it. you could just update your app’s data in the background, and then when they do come back to your app, refresh Jan 12 22:41:22 hmm Jan 12 22:41:34 cause the app loads a different activity depending on the result of an async web call Jan 12 22:41:41 so they could feasibly tap the button and back out Jan 12 22:41:52 if they back out, you should cancel the call Jan 12 22:41:54 would be kind of an edgy case, but still possible Jan 12 22:42:03 hmm Jan 12 22:42:04 that's a good idea Jan 12 22:42:16 they backed out, which is a signal that they no longer wish to go down that route Jan 12 22:42:23 right Jan 12 22:42:31 that's pretty helpful actually Jan 12 22:42:41 so i don’t think anyone would expect the new activity to be on the app when they return Jan 12 22:44:15 right Jan 12 22:44:24 that's why i was trying to avoid it Jan 12 22:44:33 okay so I think I got the solution then Jan 12 22:44:35 thanks :D Jan 12 23:03:34 interesting. i simply can not get ActionMenuView to behave in a RelativeLayout. AMV needs wrap_content for h/w. works fine in any other parent layout; but in RL expands to match_parent Jan 12 23:38:08 hey guys, does android support bluetooth 4.2? Jan 12 23:38:26 which version of android? Jan 12 23:39:19 i dont think any version supports 4.2 Jan 12 23:39:50 so if i want to make my device compatible with android phones, i should probably stay at bluetooth 4.0 Jan 12 23:40:22 again, compatible with which versions of android? they have different levels of support Jan 12 23:40:26 corrected, nexus 6P says BT 4.2 Jan 12 23:40:35 but i dont know what API support there is Jan 12 23:40:47 i guess for a majority of the market Jan 12 23:41:06 android 4.0+ Jan 12 23:41:29 is there a breakdown for percentage of android users and which version they are using? Jan 12 23:41:34 4.3 and above is what you’d need for BLE Jan 12 23:41:48 Can anyone shed some light on https://developer.android.com/reference/android/widget/MediaController.MediaPlayerControl.html, the methods are clearly named but I don't know what the units are for getDuration(), getPosition() etc. Jan 12 23:42:41 parco: In Android studio there's an info box when you're setting the minimum SDK that'll show you the rough %age of the market that'll be able to make use of your app if you use that minimum idk version. Jan 12 23:43:27 ok great, i'll download that then Jan 12 23:57:52 apparently bluetooth 4.2 is backwards compatible with 4.1, 4.0 Jan 13 00:15:04 i'm using ActionMenuView standalone, and the action buttons are tinted black (not colorControlNormal). Anyone know how to fix that ? Jan 13 00:17:47 How would you create a button that is present outside of its application (which remains on top of any open app/homescreen) Jan 13 00:22:15 Spynxic, just search for how to make chathead on google Jan 13 00:22:19 there are a few tutorials on it Jan 13 00:23:01 Bubo: Thanks, just found one on replicating the Facebook Messenger app Jan 13 00:24:26 Be aware that both the practice and the permission tend to turn users off Jan 13 00:25:51 CedricBeust, not a lot of users read permissions.. Jan 13 00:28:36 It's only for personal use. I'm just making a counter so I need +/- buttons. I would've used the volume keys but they're (directly) inaccessible to a service Jan 13 00:29:25 Spynxic insn't there a broadcast for that ? Jan 13 00:29:39 android.media.VOLUME_CHAGED_ACTION Jan 13 00:35:19 yea but the beeping noise from changing the phone's volume so often would quickly get annoying since I can't override the button's function -- it's my last resort Jan 13 00:40:10 interesting, i never heard a beeping noise while adjusting the volume Jan 13 00:40:44 you can programmatically change the volume to avoid this beeping noise Jan 13 00:41:06 but that means you have to implement a seekbar or something to allow user to change the volume without using the physical buttons Jan 13 00:41:30 g00s, well technically it's not noise, it's more annoying beep & bloop Jan 13 00:41:50 adq interesting, in aosp ? never heard it ever Jan 13 00:42:14 wonder if thats oem customization Jan 13 00:42:20 no clue in aosp, but when you push the physical volume button multiple times Jan 13 00:42:23 you have a beep feedback Jan 13 00:42:33 telling you how much loud the sound is at same time Jan 13 00:42:42 weird, i dont have that on my n7 Jan 13 00:42:51 g00s, what really? Jan 13 00:42:54 oO Jan 13 00:42:56 running 6.0.1 Jan 13 00:42:59 you haven't heard of that? Jan 13 00:43:04 come on g00s Jan 13 00:43:06 :)) Jan 13 00:43:16 lol no :D Jan 13 00:44:37 every phone has that.. Jan 13 00:48:56 i don't see anything in Settings / Sound , Accessibility to turn that on/off, maybe specific to 2013 n7 Jan 13 01:05:11 "... cannot be resolved to a type" Jan 13 01:05:18 what could cause this error? Jan 13 01:05:28 My line is: if (activity.getClass().getSimpleName().equals(TaskComplianceActivity.class.getSimpleName())) Jan 13 01:06:45 why not just use TaskComplianceActivity.class == activity.getClass() Jan 13 01:07:05 wouldn't I have the same issue? Jan 13 01:07:14 It's when I step through and inspect "TaskComplianceActivity.class" that I get that error Jan 13 01:19:17 hey ron_frown, see any of the Google Ubiquity Summit ? Jan 13 01:19:35 no Jan 13 01:19:37 I have no idea what that is Jan 13 01:19:49 Google's IoT stuff like weave, brillo, etc Jan 13 01:20:08 you know what Jan 13 01:20:11 sound like a dick here Jan 13 01:20:17 but my take on all of that stuff Jan 13 01:20:20 they talked about Android Auto - the guy seemed really depressed, maybe because the other day a bunch of car mfgs said they were going with SimpleDeviceLink Jan 13 01:20:39 google shouldnt start fucking around in another area until they can just get one working even REMOTELY well Jan 13 01:20:50 because fuck android Jan 13 01:20:56 lol wait ... Jan 13 01:21:09 weave is the communications protocol thing, right? Jan 13 01:21:10 fuck samsung too Jan 13 01:21:18 g00s what is SimpleDeviceLink Jan 13 01:21:19 the motivation was clear. they are expecting far more devices on IoT than mobile Jan 13 01:21:27 do multiple threads make up a weave :P Jan 13 01:21:35 somethign thats different technology all together Jan 13 01:21:40 or communication protocol Jan 13 01:21:47 they seem to think each person will have 26 smart devices Jan 13 01:21:56 i need to watch that, all of that Jan 13 01:21:57 and of course, they want to be .. inside those things :D Jan 13 01:22:16 yeah Weave looks like a competitor to Zigbee Jan 13 01:22:24 Bubo: that was amazingly simple to implement Jan 13 01:22:35 I hate to say it, but I've started to slate google with oracle in my book Jan 13 01:22:40 lots of promises, lots of exaggerated value Jan 13 01:22:55 make shit people dont need/want Jan 13 01:23:00 while not giving them what they do want Jan 13 01:23:08 people dont know what they want! Jan 13 01:23:15 that is true Jan 13 01:23:16 for sure Jan 13 01:23:52 maybe they're going for the shutgun technique, throw a bunch of crap at the wall and see what sticks Jan 13 01:23:53 eh, i have a complicated relationship with google too but i think they have delivered a phone OS most people like Jan 13 01:23:56 shotgun* Jan 13 01:24:06 that's ok, there are plenty of people who will tell them what they want Jan 13 01:24:14 its just dumb shit Jan 13 01:24:24 they have had a bunch of false starts, but that comes with the territory of risk Jan 13 01:24:37 I mean that linux os that nokia had at least could do updates without building an entire rom that required tons of maint and testing on the part of the hardware mfg Jan 13 01:24:42 still really cant do that with android Jan 13 01:24:49 hey Jan 13 01:24:56 anyone have android wear experience? Jan 13 01:25:05 I do have some Jan 13 01:25:09 I was wondering if an app that I am thinking about developing is possible Jan 13 01:25:49 basically I want to be able to turn off all the sensors on the device. accelerometer, gyroscope, wifi, bluetooth, etc. Everything should be off Jan 13 01:26:09 if you have root access probably Jan 13 01:26:12 g00s, s73v3r : thanks for the book recommendation. It seems exactly what I needed. Jan 13 01:26:14 the screen should be in a low power mode (I was thinking black with time in gray Jan 13 01:26:16 as far as I know you cant turn off accelerometers Jan 13 01:26:26 yeah that's the only way you'd do it, root and/or basically a custom firmware Jan 13 01:26:27 Elezium: Did you get the 2nd edition? Jan 13 01:26:31 and it should stay like that unless you hold down the screen for a few seconds Jan 13 01:26:42 interesting Jan 13 01:26:44 there was problem with that a while back where someone wrote an algorithm that would let you snoop somone based on their accelerometer Jan 13 01:26:54 s73v3r, yup Jan 13 01:27:03 as far as low power screen, black is low power on amoled, but not on lcd Jan 13 01:27:05 basically treat the entire phone as a mic, run a few passes through an algo Jan 13 01:27:08 and get a wave file out of it Jan 13 01:27:19 i saw an article where people figured out how to figure out passwords based on accelerometer when you type :) Jan 13 01:27:37 yep. but if you're referring to the recent one, that was for watches, not phones Jan 13 01:27:49 your phone guessing your pw as you type is honestly the least of your worries Jan 13 01:27:53 AlexAbraham: thats pretty genius Jan 13 01:28:07 parco i thought so too :) Jan 13 01:28:52 so it seems like without root it definitely wouldn't be possible to disable all sensors Jan 13 01:29:57 did you guys see this http://www.welivesecurity.com/2016/01/12/smartwatch-may-revealing-cards-pin-code/ Jan 13 01:30:28 dragorn might like that one Jan 13 01:30:40 very cool Jan 13 01:30:46 we are not safe :p Jan 13 01:30:53 need to move to biometrics soon Jan 13 01:31:00 i'm like that old battlestar galactica captain - no networked stuff :D Jan 13 01:31:06 biometrics are not the answer to much of anything Jan 13 01:31:26 no? I imagine retinal scanning would be great Jan 13 01:31:28 g00s, that's what I was just mentioning Jan 13 01:31:41 biometrics are not passwords. Jan 13 01:31:53 who needs a password when your eye is your password? Jan 13 01:32:00 until we can easily replace our eyes when someone "steals" the pattern from a freaking photograph, i say we don't use eyes. Jan 13 01:32:02 at best, biometrics are a second-factor AFTER a password Jan 13 01:32:10 never, ever make your password something you cannot change Jan 13 01:32:40 soon you'll have to walk on a treadmill for gait analysis :D Jan 13 01:33:00 soon they'll have a bot that can reproduce your gait Jan 13 01:33:07 from a video Jan 13 01:33:25 stole that from MI Rogue Nation :D Jan 13 01:33:26 so you'll have to learn to walk a new way every time you walk in public. Jan 13 01:33:39 AlexAbraham MI stole it from reality Jan 13 01:33:46 lol Jan 13 01:34:21 gait analysis is also being used with facial recognition in counterterrorism Jan 13 01:36:21 i think gait analysis can also detect your sexual preferences Jan 13 01:36:30 hip rotation Jan 13 01:39:06 or i should say sexual /orientation/ Jan 13 01:39:17 pretty crazy stuff Jan 13 02:14:44 i'm playing with dnd, https://vid.me/f3xZ using https://github.com/justasm/DragLinearLayout which saved me much time Jan 13 02:22:58 adq have you seen ViewDragHelper ? Jan 13 02:23:58 nope, thx, http://developer.android.com/reference/android/support/v4/widget/ViewDragHelper.html Jan 13 02:24:05 recyclerview has ItemTouchHelper, i haven't messed with that yet Jan 13 02:24:06 not sure i need it though Jan 13 02:24:18 cause i'm not using a recyclerview, would be crazy in my case Jan 13 02:36:55 looks nice Jan 13 02:46:45 anybody read this? http://www.amazon.com/Master-Algorithm-Ultimate-Learning-Machine/dp/0465065708 **** ENDING LOGGING AT Wed Jan 13 02:59:59 2016