**** BEGIN LOGGING AT Thu Jun 11 02:59:59 2015 Jun 11 03:04:17 I'm surprised it took only 36 hours in Android if it took three hours in iOS (from what I've heard about iOS). Jun 11 03:04:36 168 hours would be believable. Jun 11 03:04:46 mdeboard is a machine ! Jun 11 03:04:55 am not! Jun 11 03:05:10 I'm actually a huge idiot who can't follow directions Jun 11 03:05:13 and that's why it took so long Jun 11 03:05:22 well the question is has mdeboard tested it on the top 10 phones :D Jun 11 03:05:30 if not, then we know its optimistic # Jun 11 03:05:31 TacticalJoke: idk if you're joking or what but yeah iOS development is extremely enjoyable Jun 11 03:05:50 g00s: I haven't tested it at all on Android, but that is a depressing thing, testing on top 10 phones?? Jun 11 03:06:06 well you have to cover all the GPUs if you can Jun 11 03:06:18 Guess it's good I'm focusing on iOS first, easier to prove concept when there's no market fragmentation Jun 11 03:06:30 I just need to, you know, go buy some iDevices... :\ Jun 11 03:06:40 mdeboard how PITA is their submission process these days ? Jun 11 03:06:58 g00s: I have no idea, never done it. Until recently a coworker handled it all Jun 11 03:07:09 But from what I saw it was pretty lightweight Jun 11 03:07:13 and quick turns-around Jun 11 03:07:31 thats the only downside that keeps me from going back Jun 11 03:07:41 I bet Jun 11 03:07:46 I haven't experienced that particular pain Jun 11 03:08:04 but I have experienced the soul-shattering angst of trying to do Chrome app/extension (whichever...) development Jun 11 03:08:05 otoh, the way google has been this past year ... Jun 11 03:08:09 and trying to get crap into the Chrome store Jun 11 03:08:19 saga of shifting targets Jun 11 03:16:10 mdeboard: Weird, I found writing Chrome extensions very straightforward, e.g. http://beust.com/weblog/2014/12/19/new-comments-a-chrome-extension-for-reddit-and-hacker-news/ Jun 11 03:16:35 Once the code was working, turning it into a Chrome extension and publishing it took like 20mn Jun 11 03:16:57 yeah, I was thinking that too. I think I've made 3? easiest extension system ever Jun 11 03:17:08 I only wish firefox extensions were that simple Jun 11 03:17:39 Cool, they must've improved the process Jun 11 03:17:55 mine were a couple years ago :| Jun 11 03:20:02 then you're lucky, or something Jun 11 03:20:34 Also we were definitely doing some complicated and perhaps unnecessary shit Jun 11 03:20:51 Like using the Chrome app to make a really poor attempt at enabling offline access to our app Jun 11 03:20:56 our full/real web app Jun 11 03:21:07 I can't even remmeber Jun 11 03:21:52 A "hosted Chrome application that exists to give us a mechanism to store unlimited data on our users' computer (via application cache). This in turn enables Courseload's "material check-out" feature." Jun 11 03:21:57 That's right Jun 11 03:22:00 Forgot about that Jun 11 03:23:15 all te complexity was in doing all te stuff we needed to do, i.e. figuring out how to write the manifest Jun 11 03:23:39 oh and sorting out whether we needed an app, a hosted app, an extension, or some other crazy variant Jun 11 03:26:28 ah. I hear most of that with anything that touches application cache manifests :) seems like a weird system. Jun 11 03:26:56 e.g. http://alistapart.com/article/application-cache-is-a-douchebag Jun 11 03:28:05 hehe Jun 11 03:41:54 Does anyone have a clue where "repo sync" temponairily stores its files before it copies it copies it to the working directory. Jun 11 03:42:49 Even though its targetd at a mounted folder, it stores it temponairily stores like 50gb somewJun 11 10:46:40 hi all, anyone has experience with nfc, and how can i achieve an activity that reads nfc without intent filters triggers another activity that listen nfc actions? Jun 11 10:48:10 can do this textview.setTag(somestringvar); ? Jun 11 10:50:53 boodllebat: yes Jun 11 10:51:08 Leeds: Thanks :) Jun 11 10:56:22 Hello guys, I just logged "this" referring to the object self and I got the following output: SimpleListFragment{40df3400 #0 id=0x7f08003f} As you can see, it shows the class SimpleListFragment and than between {} three fields. What's the first and the last field? Jun 11 10:58:25 After an orientation change, the id field is the same, but the first field not. So I try to understand what 'id' means in this case? Jun 11 11:00:26 Number5: you know findViewById? Jun 11 11:03:15 Leeds, yes, ok so it's the id I assigned with when adding fragment to fragmentmanager. Ok thnx. Jun 11 11:23:28 Hi, could someone explain why sometimes i dont see my package in crashes of my app? I dont find where the issue is :/ java.util.ArrayList.throwIndexOutOfBoundsException the whole stack only contains android classes (this is shown in developer console, cant reproduce myself) Jun 11 11:24:03 android.widget.ArrayAdapter.getItem(ArrayAdapter.java:337) , thing is, i have a lot of them, how can i find out which one is causeing the issue Jun 11 11:26:23 Any how-to for db schema and data migration? Jun 11 11:34:52 did you know about layout ? It is lightweight replacement for Jun 11 11:35:24 huh Jun 11 11:37:03 many know about squ, but it's not a lightweight replacement Jun 11 11:37:22 no? Jun 11 11:37:32 mainly because it inherits from View Jun 11 11:38:05 http://android-developers.blogspot.fr/2011/11/new-layout-widgets-space-and-gridlayout.html you have an article from 2011 otherwise Jun 11 11:38:06 ktwo: Maybe caused by reflection. Jun 11 11:38:23 ktwo: I had this case just now. Jun 11 11:39:00 I have an unusual question, a friend of mine is puzzeling together an app with the App Inventor... Jun 11 11:39:14 and the bluetooth receiving isnt working correctly... Jun 11 11:39:46 Bavilo: That's not a question. Jun 11 11:40:02 if I send a string to the phone such as: "true:false:true:false" and if I do this too quickly the phone will display this string over and over again Jun 11 11:40:07 why is that? Jun 11 11:40:18 I would post some code...but I cant :D Jun 11 11:40:58 on my bluetooth app written with android studio, I can start writing when a specific byte is received, and stop when a specific delimiter is found Jun 11 11:40:59 huh Jun 11 11:41:05 but on app inventor this isnt really possible. Jun 11 11:41:14 I will try to take a screen shot Jun 11 11:41:16 one moment Jun 11 11:42:38 this is his app inventor receive function Jun 11 11:42:38 http://i.imgur.com/c43fD3X.png Jun 11 11:42:42 the timer is set to 1000ms Jun 11 11:43:32 barq mh strange, i didnt use reflection in my code at all Jun 11 11:43:54 Bavilo: what is that Jun 11 11:44:00 and Im doing this from my arduino Jun 11 11:44:01 http://pastebin.com/jBUbrPFk Jun 11 11:44:09 ktwo: Can you paste a StackTrace? Jun 11 11:44:19 squ, those are code blocks from "appinventor" Jun 11 11:44:28 I see Jun 11 11:44:30 I guess thats a lazy way to make an android app Jun 11 11:44:33 using these puzzles... Jun 11 11:44:43 yeah ......................................... Jun 11 11:44:48 i hate it Jun 11 11:44:51 ................................................... Jun 11 11:44:55 but like I said, its for a friend Jun 11 11:44:59 ok Jun 11 11:45:07 shipit Jun 11 11:45:22 one second, I will post how it looks on the phone Jun 11 11:45:44 barq, http://pastie.org/private/lxieqmd0aagucbu3bbamq Jun 11 11:46:25 ktwo: your getCount() method is returning a number bigger than the dataset probably Jun 11 11:49:22 here is a screenshot of how it looks Jun 11 11:49:24 just for testing Jun 11 11:49:36 http://imgur.com/e74txDr Jun 11 11:50:06 I am sending "#true:false:true:false" at 100ms Jun 11 11:50:18 and the app is receiving at 1000ms Jun 11 11:50:40 nice design Jun 11 11:50:55 lol, its just for testing... Jun 11 11:51:03 like I said, my friend wants to use the app inventor Jun 11 11:51:09 its outdated. Jun 11 11:51:16 VERY outdated Jun 11 11:51:31 shipit. Jun 11 11:52:26 there are fucking bots on GitHub by the way Jun 11 11:52:40 the way I see it....it just reads as much as it can Jun 11 11:52:45 it doesnt know when to stop reading... Jun 11 11:56:10 yea this app inventor is crap :D Jun 11 11:56:40 people just have too much spare time: https://github.com/vbarbaresi/MetroGit Jun 11 11:56:41 wtf Jun 11 11:58:03 what about this one https://github.com/EnterpriseQualityCoding/FizzBuzzEnterpriseEdition Jun 11 11:58:48 ktwo: I just had something very similar. I was accessing an element not in bounds, but for some reason the stack trace did not show the line of code where the exception actually happened. Jun 11 11:59:10 ktwo: Maybe check for setSelection of similar calls if you have an idea where it could be going wrong. Jun 11 12:02:19 Ashiren: Some of the open issues on that are hilarious Jun 11 12:03:49 surf2b1: Lacking micro-service architecture - You can't scale this. This isn't enterprise. Jun 11 12:05:08 Don't think fizzbuzz can get shorter than this: for(int i=1;i<101;i++) System.out.println(i%15==0?"FizzBuzz":i%3==0?"Fizz":i%5==0?"Buzz":i); Jun 11 12:10:13 can someone give me a quick head up on where to find the equivalent of lollipops's libinputflinger functionality in 4.1.x ? Jun 11 12:14:06 barq, thx ill try to find out Jun 11 12:21:35 while accessing a website taking my camera feed, I am by default able to allow the access to my front camera [17:49] how do I change it to back/rear camera? Jun 11 12:34:08 hey. is it possible ot manage a radio button without a radiogroup? Jun 11 12:35:08 hi all, anyone has experience with nfc, and how can i achieve an activity that reads nfc without intent filters triggers another activity that listen nfc actions? Jun 11 12:39:42 blackdev1l: im confused, what do you want? Jun 11 12:40:23 one activity that "read" from nfc, and bypass the intent filter of another activity Jun 11 12:40:52 the open activity can receive the nfc intent before others yea Jun 11 12:40:58 i have an activity da is open when i press "read tag nfc", and nother one that has an intent filter for nfc Jun 11 12:41:10 i can't get it work tho... it opens the one with the intent filter. Jun 11 12:42:12 blackdev1l: it might depend on what is in the intent Jun 11 12:42:18 you might have to read about The Tag Dispatch System Jun 11 12:42:47 ok Jun 11 12:43:47 btw the activity with the intent filter works well, i just need something that works more like the nxp app writer, when you click on "read" and it waits for you to put the tag near and read it Jun 11 12:43:57 Hey! How can i make a dragable/movable view? Jun 11 12:44:01 blackdev1l: oif it uses an AAR you might be out of luck Jun 11 12:44:44 blackdev1l: have a look at foregroudn dispatch https://developer.android.com/guide/topics/connectivity/nfc/advanced-nfc.html#foreground-dispatch Jun 11 12:44:45 just on one axis Jun 11 12:45:48 i have a layout with 2 fragments. on the right one i run some code to show a SnackBar with getView() as the first param. But the snackbar shows up filling the width of the left fragment.. bug in Snackbar or my code? Jun 11 12:46:47 calling getView from the left fragment? xorgate Jun 11 12:47:01 chris no i'm quite sure i call it from the one on the right :0 Jun 11 12:48:13 hmm not sure then really. Pass the layout container for the two fragments maybe? Jun 11 12:48:49 people on some device ui elements (buttons) are black Jun 11 12:49:36 no text visible only black button :( Jun 11 12:50:14 not found anything on google, so maybe someone faced with such shit? Jun 11 12:50:35 black button xD? Jun 11 12:50:46 never encountered this one Jun 11 12:56:28 like here https://github.com/libreliodev/android/issues/303 Jun 11 13:04:11 hm actually the snackbar just seems to ignore any view i pass it.. just goes to bottom left Jun 11 13:07:22 Any android graphics wiz here? Jun 11 13:09:10 I'm just a regular wizard sorry Jun 11 13:09:56 it's a repost but you might wanna consult this guy: https://twitter.com/gilesgoatboy/status/606645929307828224/photo/1 Jun 11 13:10:17 dex2goat, LOL! Jun 11 13:14:18 I have a question. It's kind of basic but I couldn't find a way to phrase it properly for Google... Jun 11 13:14:43 bring it ! Jun 11 13:15:01 So I start an activity with an intent, with some specific data in the "extra". The activity practically just wraps a Fragment. Jun 11 13:15:08 10 PRINT "HELLO WORLD" Jun 11 13:15:11 20 GOTO 10 Jun 11 13:15:37 The Fragment is passed the data through a Bundle with arguments, keeping it modular. Jun 11 13:16:20 oh, not that sort of basic question Jun 11 13:16:41 such abstract xD Jun 11 13:17:15 Heh, I suppose it's not *that* basic, but I think I'm missing something that should be obvious... Jun 11 13:17:37 so whats the question Jun 11 13:17:41 so does anyone faced blackbuttons shit? Jun 11 13:18:04 On the Activity onCreate, I extract the data from the Intent, put it in a bundle, create the fragment and pass the bundle, and then I add the fragment to the activity. Pretty basic so far. Jun 11 13:18:18 thank samskiter i'll a deeper look in to it Jun 11 13:18:18 that's a pretty big buildup Jun 11 13:18:23 looking forward to the question Jun 11 13:18:24 only black buttons on screen, no text, only black buttons Jun 11 13:18:50 Okay, so if I rotate the screen, rebuilding the activity, the fragment gets built up again, correct? Jun 11 13:19:04 depends Jun 11 13:19:25 do you have any custom configChanges rules? Jun 11 13:19:30 Nope. Jun 11 13:19:37 kewlness Jun 11 13:19:56 are you taking into account saveInstanceState in your onCreate method? Jun 11 13:20:01 Yeah. Jun 11 13:20:05 how? Jun 11 13:21:02 Or rather, I put work into getting the Fragment to use that. Jun 11 13:21:30 But now that I add it programmatically in the Activity, it looks like it won't be used at all. Jun 11 13:21:40 Because everything may get flushed. Jun 11 13:21:45 EwoudCP: http://stackoverflow.com/a/8678705/1331240 Jun 11 13:22:37 Aha. Thanks. That answers my question. Jun 11 13:22:51 np Jun 11 13:24:57 Most examples involving Fragments in an Activity's onCreate don't cover that :P I was starting to wonder if I had missed something basic Jun 11 13:25:30 it's because of this crap: https://github.com/xxv/android-lifecycle/raw/master/complete_android_fragment_lifecycle.png Jun 11 13:26:08 any good tut on how to make a recycler view of card views using the new design support libs? Jun 11 13:26:54 ctrlshftn: what's the point of the design support lib for this use case? Jun 11 13:27:19 and how about: https://developer.android.com/training/material/lists-cards.html Jun 11 13:27:39 dex2goat oops not design lib . Googles libs. Jun 11 13:29:24 Is there any way of (hacks or otherwise) of changing the ActionBar theme programmatically? I've been Googeling a lot, and so far the answer seems to be no..? Jun 11 13:29:44 shoden, You still here>? Jun 11 13:31:16 oiZo: why not use a toolbar and simply replace it with a new view? Jun 11 13:32:10 you can create a new instance and pass a ContextThemeWrapper to its constructor Jun 11 13:33:03 * gavit is getting lost between activities, fragments and views Jun 11 13:33:38 just throw in some irrelevant concurrency logic Jun 11 13:33:42 and shipit Jun 11 13:34:49 oiZo: look at what this guy is doing: http://stackoverflow.com/a/17442610/1331240 (can be applied for ToolBar as well) Jun 11 13:37:47 Hey guys, anyone has used the material design packaged released by google recently ? Jun 11 13:37:53 dex2goat: i'll look at that, thanks Jun 11 13:41:34 support.design? speeddragon Jun 11 13:41:43 Yes Jun 11 13:41:59 only fab and snackbar tho Jun 11 13:42:44 btw i succeed on what i wanted to to, thank you again samskiter Jun 11 13:42:54 no worries Jun 11 13:43:16 i played with the nfc apis a couple of years ago… before HCE :) Jun 11 13:46:35 i have to implement some nfc feature on an app, and i'm just an intern with my first experience on mobile development Jun 11 13:46:37 quite a challenge Jun 11 13:49:56 dex2goat: lol Jun 11 13:51:19 Hi, I'm a beginner and I really don't get how all that appcompat thing works Jun 11 13:52:04 Ribesg: ok. Jun 11 13:52:09 All I can find is things made for experienced Android dev, like appcompat is new Jun 11 13:52:29 I don't know android development at all, and I can't fit docs on what it is that suits my level of knowledge Jun 11 13:52:37 s/fit/find/ Jun 11 13:53:11 assuming you know absolutely nothing appcompat seems like something you can postpone to a later stage Jun 11 13:53:22 focus on the basics first Jun 11 13:53:29 do not acknowledge it's existence. Jun 11 13:53:42 its* Jun 11 13:54:03 I'm just following examples and it doesn't really work Jun 11 13:54:15 For example right now I'm trying to compile and I4ve got a lint error Jun 11 13:54:16 ../../src/main/res/values/styles.xml:5: android:colorPrimary requires API level 21 (current min is 15) Jun 11 13:54:26 oiZo: I am currently doing it by overriding getResources in my application and activities and then overriding getColor(int id) and getDrawable(int, Theme). If all you want to do is change the toolbar color that is very simple. But to have the user pick any tint you want that is the best thing I came up with Jun 11 13:54:41 But I thought that the goal was that you're actually able to use level 21 API even with a min =7... Jun 11 13:54:53 So I just don't get it Jun 11 13:54:55 that's what appcompat is for actually Jun 11 13:55:12 Ok so I understood correctly and it's more like a env problem then Jun 11 13:55:50 you can have multiple folders for XML resources and have specific settings for different API levels Jun 11 13:56:20 Do I need that? Jun 11 13:56:22 so for instance if values/ is the default, you can have a values-v21/ where you use API-21 specific stuff Jun 11 13:56:33 Oh. Jun 11 13:56:38 Well that sucks. Jun 11 13:57:05 appcompat can save you from most of the pain Jun 11 13:57:13 as it tries to backport some of the features that it can to lower API levels Jun 11 13:57:41 but it gets better at the end Jun 11 13:57:47 once you realize you also need to support tables Jun 11 13:57:51 Doesn't appcompat removes that need for multiple different xml files? Jun 11 13:58:05 mostly yes Jun 11 13:58:24 Because I'm pretty sure I saw example where colorPrimary is used with a minSdk of 7 Jun 11 13:58:34 like this: http://stackoverflow.com/a/26450406/1331240 Jun 11 13:58:57 that's a good place to start: http://developer.android.com/training/material/compatibility.html#SupportLib Jun 11 13:59:15 Oh Jun 11 13:59:22 actually scroll up Jun 11 13:59:23 Well my problem was that I trusted my IDE Jun 11 13:59:34 I had android:colorPrimary, not just colorPrimary Jun 11 14:00:12 there are some code samples in the Android SDK folder Jun 11 14:00:21 that showcase the basics of AppCompat Jun 11 14:00:30 I started experimenting with appcompat because I saw things about using the Material theme on devices that don't support it Jun 11 14:01:21 What it is?! Jun 11 14:01:34 ? Jun 11 14:09:00 Can you actually get rid of that huge piece of shit named "Gradle" in android developement? Jun 11 14:09:13 Ribesg: yes and no Jun 11 14:09:23 why do you dislike it? Jun 11 14:09:23 you can use Maven, and pay for it. Jun 11 14:09:31 pay for Maven? Jun 11 14:09:40 thepoosh, it's the slowest build tool I ever used Jun 11 14:09:43 well its a free product Jun 11 14:09:46 And it's completely bugged Jun 11 14:09:51 I was referring to paying with your health and sanity Jun 11 14:09:58 Maven at least works Jun 11 14:09:59 Ribesg: are you using incremental builds? Jun 11 14:10:04 No idea Jun 11 14:10:05 Gradle also works Jun 11 14:10:15 dex2goat, can't agree with that Jun 11 14:10:15 well, you should learn how to use it first Jun 11 14:10:20 My theory is that it mines bitcoin in the background. Even if I leave my IDE idle after an hour it pegs an entire core Jun 11 14:10:27 lol Jun 11 14:10:33 SpaghettiCat, I would accept mining bitcoins Jun 11 14:10:39 What I don't accept is locking files Jun 11 14:10:52 Preventing Gradle - itself, yeah - from running the clean task Jun 11 14:10:59 I mean wtf Jun 11 14:11:55 I have to kill some random java processes before being able to build Jun 11 14:12:08 (Well, when I need to run the clean task at least) Jun 11 14:12:24 thats some weird stuff you're doing Jun 11 14:13:08 you can use maven for android Jun 11 14:13:20 cmon Jun 11 14:13:39 I'm waiting for Maven Polyglot support in IDEA Jun 11 14:13:44 you don't have to use gradle Jun 11 14:13:57 Once it happens I will try as hard as possible to drop that thing and use Maven Jun 11 14:14:02 the available android plugins for maven are pure shit atm Jun 11 14:14:23 Why are people using Gradle at all Jun 11 14:14:24 pure shit? in what way Jun 11 14:14:29 Is it for the Groovy > XML? Jun 11 14:14:32 Ribesg: you don't want to go back to Eclipse and Ant? :) Jun 11 14:14:46 SpaghettiCat, IDEA and Maven will be enough ! Jun 11 14:15:10 why would you need polyglot support Jun 11 14:15:14 I hate XML with a passion Jun 11 14:15:34 well, one powerful feature of using Gradle (apart from many others) is flavors. That would be a real pain to achieve with Maven. Jun 11 14:15:42 The only thing Gradle does better than Maven is not using XML Jun 11 14:15:59 I mostly refer to the android Gradle plugin Jun 11 14:16:13 dex2goat, I guess I'll have to need that first to agree :P Jun 11 14:16:24 even I would say, if you're not going to use ant, use gradle Jun 11 14:16:26 Oh, non xml Jun 11 14:16:29 It's like when having a paid and a free version of the same app? Jun 11 14:16:38 might as well use gradle then Jun 11 14:16:40 yap Jun 11 14:16:43 pfn, I would use YAML I think Jun 11 14:16:47 can also be used for staging/production flavors Jun 11 14:16:55 or for testing purposes Jun 11 14:17:23 dex2goat, not really, maven has build profiles Jun 11 14:17:46 chrisaardal: I was looking for the parallax effect ... Jun 11 14:17:47 yes Jun 11 14:17:58 and once you define a build profile, who takes care of merging XML resources? Jun 11 14:18:11 the plugin Jun 11 14:18:28 what plugin? Jun 11 14:18:35 Maven Android Plugin I guess Jun 11 14:18:47 the android plugin of course Jun 11 14:19:32 well, since there is no official one I have no idea which one you are referring to, or whether this feature is supported. Jun 11 14:19:53 there's only one android plugin for maven Jun 11 14:20:46 https://github.com/JakeWharton/butterknife/commit/e80c4b73e255165cc822c751d6e8c849f301b2ce Jun 11 14:20:57 also the commit title is pretty descriptive :) Jun 11 14:21:23 yeah, it sucks, but not for reasons you describe Jun 11 14:21:45 and the reason for that comment is the changed organization name Jun 11 14:21:53 total wtf Jun 11 14:22:39 Guys, is there any easy way to connect to the built-in VPN? Has anybody ever needed to connect to a VPN from their app? Jun 11 14:22:50 that's correct actually, the maven plugin seems to have support for merging resources. Jun 11 14:23:46 can't do android build without merging resources Jun 11 14:24:01 * pfn just uses neither maven nor gradle Jun 11 14:24:04 they both suck Jun 11 14:24:37 So what do you use Jun 11 14:24:44 he uses Scala Jun 11 14:24:54 wat. Jun 11 14:24:58 I'm curious pfn, why Scala and not Kotlin? Jun 11 14:25:00 Scala is a build tool now? Jun 11 14:25:08 dex2goat, I'm using Kotlin :3 Jun 11 14:25:21 dex2goat, better type system Jun 11 14:25:23 Ribesg: can you infer the meaning behind that sentence Jun 11 14:25:33 pfn: what about the overhead of importing such a big runtime? Jun 11 14:25:40 dex2goat, I don't know Scala Jun 11 14:25:42 do you have to use proguard for your debug builds? does it slow it down? Jun 11 14:25:42 At all Jun 11 14:25:53 there isn't much overhead once through proguard Jun 11 14:25:56 Last time I tried it was years ago and I didn't like it Jun 11 14:26:02 I don't remember why nor how it looks Jun 11 14:26:04 proguard doesn't slow down my builds Jun 11 14:26:45 I have to run proguard maybe once every 10 to 20 builds Jun 11 14:27:29 not to mention, I can use continuous build, so that I never notice the build time Jun 11 14:27:40 * Ribesg wonders what proguard is Jun 11 14:28:15 obfuscator and optimizer Jun 11 14:30:19 Well my project is open source Jun 11 14:30:38 can still be optimized Jun 11 14:30:44 Yup Jun 11 14:32:34 Is there any way to send an intent/broadcast to Google Music to play a specific playlist/track? Jun 11 14:33:45 Ribesg, I shave several mb off all my apps when using proguard Jun 11 14:33:49 java or not Jun 11 14:34:41 prinsen: good question... maybe do a search in the google (now) app/screen, have some music match, then watch the log to see what intent it calls? Jun 11 14:39:02 Leeds: how do i watch intents sent? Jun 11 14:45:30 Speaking of proguard and obfuscating, what do you use to prevent your code from being decompiled? Jun 11 14:54:00 barq, Mojang replaced all obfuscated variable/parameter/field names with UTF-8 snowmen :3 Jun 11 14:54:53 Ribesg: You can still read the code then, just more annoying and takes longer. Jun 11 14:55:06 if I'm testing with a mock retrofit service using a MockRestAdapter with espresso, what is the most appropriate/correct/effective way of making sure espresso waits for calls to complete before running subsequent assertions? Jun 11 14:55:06 I'm not sure you can prevent decompilation, but there are a few tricks to make it hard to read/use Jun 11 14:55:29 Like bytecode manipulation which keeps the bytecode as valid for the JVM but which leads to invalid Java code when decompiled Jun 11 14:55:42 (Another thing Mojang does) Jun 11 14:55:54 Should I turn the MockRestAdapter into an idling resource? Jun 11 14:58:51 barq, obfuscation doesn't matter Jun 11 14:59:02 barq, your app code is rarely valuable enough to want to prevent decompilation Jun 11 14:59:45 pfn: What do you think about Dexprotector? Jun 11 14:59:50 How easy it is to make Google remove a copy of your app from the Play Store? Anyone experienced this? Jun 11 15:00:01 anyone how had a shot at fixed-positioning (think CSS) of PublisherAdViews ? Jun 11 15:00:38 pfn: So getting rid of Freemium locks and pirating is not a risk to consider? Jun 11 15:00:47 barq, not really Jun 11 15:01:15 How come? Someone can just take it from Play Store in put it into Amazon Store Jun 11 15:01:32 barq, then you go to amazon store an issue a takedown Jun 11 15:01:43 pfn, hey that's my question Jun 11 15:01:47 How easy is that :P Jun 11 15:01:54 easy? Jun 11 15:02:11 Is Amazon fast, do they take a year to check if it's a copy, etc Jun 11 15:02:13 Same for Google Jun 11 15:02:51 I've met devs who had their app taken from Play Store, put in Amazon and had more downloads for the pirate version than their own (500k ish) Jun 11 15:03:06 lol Jun 11 15:03:23 and pirating is easy Jun 11 15:03:33 trying to defend from it from code is a losing battle Jun 11 15:03:36 not worth your time Jun 11 15:03:48 unless you're making millions and piracy becomes an issue Jun 11 15:03:55 What about Dexprotector? Does that not help? Jun 11 15:04:42 pretty sure that just obscures the code :) Jun 11 15:05:43 does it matter Jun 11 15:05:46 Troffel: It has clone protection. Jun 11 15:05:47 is your app making you millions Jun 11 15:06:41 Not me personally, but it could mean a loss of millions if cracked. Jun 11 15:10:14 then do whatever Jun 11 15:10:25 cracking is still easy regardless Jun 11 15:11:05 If you switch off USB as well? Jun 11 15:13:26 you can't switch off usb Jun 11 15:16:34 pfn: You can on a custom device. Jun 11 15:20:35 if you want to mitigate piracy, you have to strongly revise your architecture, your android app could be just a front-end linked to a third-party server which does all the job Jun 11 15:21:18 but even, with sufficient time and skills, someone will reverse your api to communicate with the server, etc.. see MMO servers as an example Jun 11 15:22:30 also prior to prevent, you have to monitor properly too, which is also a difficult things Jun 11 15:23:13 what you should aim to, is reducing the risks with the less amount of effort possible Jun 11 15:23:32 cause you're not going to avoid them even with great amount of efforts Jun 11 15:23:58 finally, in order to do that, you need to acquire more knowledge on how apk are defeated Jun 11 15:24:17 and then it will be crystal clear what pfn said to you Jun 11 15:25:25 hey, does anyone have an awnser to this ? http://stackoverflow.com/questions/20215825/get-width-and-height-of-the-imageview-after-resizing-using-matrix/30784557#30784557 Jun 11 15:25:32 sooooo frustrating!! Jun 11 15:25:50 adq: What do you mean by your last point? Jun 11 15:26:16 disabling usb is not going to help you, even if it was possible Jun 11 15:28:17 adq: If it is disabled during startup of the device you would need to tamper with the hardware. Jun 11 15:28:19 chrisaardal, float scale = (newDist / oldDist); <- newDist = scale / oldDist Jun 11 15:29:31 chrisaardal, scaling the bitmap has nothing to do with its container size (the canvas), so if you know the size of the scaled bitmap, make the view (implicitly its canvas) equal or larger to the scaled bitmap Jun 11 15:30:20 by setting the imageview to match parent Jun 11 15:30:32 and gravity center for instance? Jun 11 15:30:53 Or do I have to make a custom view. Where the canvas is larger? Jun 11 15:30:59 if the parent container of the imageview is more little than the bitmap size, match parent will nto help you Jun 11 15:32:19 What do you suggest then? Making a customView with a larger canvas? Jun 11 15:32:35 or resizing the existing view, if you have enough space Jun 11 15:33:28 you could look at how it is done with imageview and android:adjustViewBounds maybe (i'm not sure) it's similar to your issue http://developer.android.com/reference/android/widget/ImageView.html#attr_android:adjustViewBounds Jun 11 15:34:34 Ive set this to "true" but making changes to the Matrix doesnt seem to affect the imageview "container" Jun 11 15:35:31 I saw your comment: "yes by default the size of my imageview is 100x100 " Jun 11 15:35:57 if you scale (assuming zooming, so it will grow bigger than the original container), it will not fit, and result will be cropped Jun 11 15:36:04 as you describe in your stackoverflow post on the right image Jun 11 15:36:11 acctually thats not my post. I jsut have the same issue. The thing is i want to implement a Snapchat like caption Jun 11 15:36:18 ah sorry :p Jun 11 15:36:27 I have an edittext with the caption text Jun 11 15:36:42 im then creating a image out of its drawingCache() Jun 11 15:36:46 you need to understand the relation/constraint from the container and its canvas associated to a bitmap Jun 11 15:37:14 if you enlarge a bitmap by keep the same size of its container, it's obvious that it will not fit in anymore Jun 11 15:37:20 s/by/but/ Jun 11 15:41:28 So. What would you do if you wanted to implement a Snapchat like caption? Any suggestions on that? Clearly, scaling the Matrix isnt the way to go here Jun 11 15:41:48 I don't use snapchat so i have no idea what it look like (and tbh, i don't want to know :p) Jun 11 15:42:26 Basically a text ontop of a picture which is scalable and rotatable Jun 11 15:42:30 using a matrix to scale is just a convinient way to resize Jun 11 15:42:40 i'm not sure you issue has anything to do with matrix Jun 11 15:43:54 to illustrate, you could use instead of a matrix: http://developer.android.com/reference/android/graphics/Bitmap.html#createScaledBitmap(android.graphics.Bitmap, int, int, boolean) Jun 11 15:44:00 which might under the hood use a matrix too lol Jun 11 15:44:06 (i haven't checked the source) Jun 11 15:44:30 that will rescale a bitmap independently of a canvas or a view container Jun 11 15:44:44 then its up to you to provide components where your bitmap fits in it Jun 11 15:45:36 if you plan to animate, this is really misleading and you should not do it like this too Jun 11 15:45:42 (i meant, animate the scaling) Jun 11 15:46:14 it's better to scale the canvas itself and draw on it Jun 11 15:46:24 instead of scaling the image, in case you animate Jun 11 15:46:56 Ye, scaling the imageview directly causes it to go epileptic Jun 11 15:47:02 so a bitmap then Jun 11 15:47:14 like for translation, you can either move the dot from a place to another, or move the referential (the canvas) on the opposite direction Jun 11 15:49:08 can i add my own dictionaery to edittext so it will give the user hints based on it? Jun 11 15:49:37 or use autocompletetextview to show as hint and not dropdown? Jun 11 15:49:51 Hmm okay, Thanks! I think i really need to read up on the graphics lib Jun 11 16:07:05 hello! What is the best/fastest way to load a page and get its content on Android? I tried htmlUnit and failed (it wasn't finding ElementTranversal and even adding the jar wouldn't work) and I can't seem to find the library for Selendroid. Jun 11 16:07:45 Is there any way to send an intent/broadcast to Google Music to play a specific playlist/track? Jun 11 16:18:22 does anyone use htmlunit here? Jun 11 16:31:39 N3sh108: Do you really need to parse HTML? Jun 11 16:31:41 That sounds horrid. Jun 11 16:32:01 here is the problem, TacticalJoke Jun 11 16:32:31 I have this page: https://terpconnect.umd.edu/~jwelsh12/enes100/marker.html?id=10&size_mm=100&padding_mm=10 Jun 11 16:32:43 I need to retrieve the image that it creates Jun 11 16:33:05 it uses js to add the image to the DOM in the onload Jun 11 16:33:42 this means that I can't simply fetch the HTML with a bufferedReader but I actually need to wait and fetch the updated DOM. Jun 11 16:33:55 the only solutions are using htmlUnit or Selenium Jun 11 16:34:10 [or something else I am currently unaware of] Jun 11 16:36:43 does it make sense, TacticalJoke? Jun 11 16:37:33 Does it draw the image onto a Canvas? Jun 11 16:37:43 Or "canvas", I guess. Jun 11 16:37:49 Hi I have just implemented ListViewRemoval functionality into my code. I am using this example - (https://android.googlesource.com/platform/development/+/jb-mr1-dev/samples/devbytes/animation/ListViewRemovalAnimation/src/com/example/android/listviewremovalanimation/ListViewRemovalAnimation.java. How would you attach setOnItemLongClickListener to mListView? Jun 11 16:40:16 N3sh108: Whatever is going on here, I think it's safe to say that parsing HTML is almost never a desirable solution. Jun 11 16:44:21 Hey guys, just posted this on /r/androiddev: "How do you test your Android app?" – http://www.reddit.com/r/androiddev/comments/39gqic/how_do_you_test_your_android_app/ Jun 11 16:44:29 really curious about your test setups :) Jun 11 16:45:16 hey guys, If you have a library, how do you get the MainActivity from the project which uses this library ? Jun 11 16:45:57 I need this for a service, which is included in the library ... the service should start an intent with the mainActivity.class Jun 11 16:47:16 Are you sure you need their activity class and not just any Context? Jun 11 16:48:26 nope the MainActivity, because I need to know if the application is showing or not Jun 11 16:49:23 Hello, I have question about Asynctask, at first time when start app I want to load data. so i start Asynctask and show dialog, but after complete the first asynctask i need to run another one. Is there any trick how to from onPostExecute run another asynctask and wait until the second asynctask complete ? Jun 11 16:50:24 @wirrez can't you launch the second AsyncTask at the end of the first one? Jun 11 16:50:28 wirrez, the whole purpose of an asynctask is not to wait for it to complete Jun 11 16:50:52 yes i know :/ :/ Jun 11 16:50:56 FWIW, I wouldn't dream of using AsyncTask for such a problem. Jun 11 16:51:03 Then again, I would probably never use it. Jun 11 16:51:05 but its only first time to startup I need to load first data Jun 11 16:51:14 then i only check if online/offline Jun 11 16:51:22 but first time i need to for example download images atd. Jun 11 16:51:42 I believe that you can do all that in the same task... Jun 11 16:51:42 Asynctask is nice :) Jun 11 16:51:59 yes maybe i can copy code from second to first Jun 11 16:52:06 but its copying code good result ? Jun 11 16:52:13 its a lot of code.. Jun 11 16:53:12 make a method? Jun 11 16:53:41 hi all Jun 11 16:53:51 im following this tutorial about google toolkit Jun 11 16:53:53 https://github.com/googlesamples/identity-toolkit-android/blob/master/tutorial/src/com/google/identitytoolkit/demo/GitkitDemo.java Jun 11 16:54:01 thats better, but i have in second download data too :/ Jun 11 16:54:13 it is working Jun 11 16:54:19 Who is this 'all' person??? Everyone keeps saying hi to him. Must be popular... Jun 11 16:54:41 however the activitie that is display the buttons (e.g. google + button) is like a popup Jun 11 16:54:56 how to integrate it into an existing activitie? Jun 11 16:55:04 and how to change the UI ? Jun 11 16:55:42 MikeWallaceDev, xD Jun 11 16:55:50 :) Jun 11 16:56:01 MikeWallaceDev, :) Jun 11 17:01:42 so is Android Annotations a yay or nay ? Jun 11 17:04:02 seems like it does a lot but is it useful or bloat? Jun 11 17:06:13 which annotations are you speaking of exactly? Jun 11 17:06:48 @valheru7 do mean these http://androidannotations.org? Jun 11 17:07:14 just looked it up, never seen them before Jun 11 17:14:54 Hello fellow dev-ions! Jun 11 17:15:02 How is everyone? Jun 11 17:15:50 My head hurts. Jun 11 17:16:00 I know, nobody cares, but you asked :D Jun 11 17:16:11 MikeWallaceDev: Maybe drink some water...? Jun 11 17:16:27 Geez, might not be a bad idea.... That could be it. Jun 11 17:17:05 Gotta drink lots of water when dev-ing Jun 11 17:17:49 And I bet coffee doesn't count. Jun 11 17:17:52 Stupid water. Jun 11 17:18:31 Coffee is good in certain situations but a headache isn't one of them Jun 11 17:18:59 i don't drink coffee Jun 11 17:19:01 i take tea my dear Jun 11 17:19:36 I drink neither, pepsi all the way for me... Jun 11 17:19:43 coffee consists mostly of water, how come that doesn't count Jun 11 17:20:17 icedp: All the other stuff that's in it doesn't help and can actually cause headaches if consumed too much Jun 11 17:21:26 I've turned the thread into a discussion about my headache and coffee. My work here is done. Jun 11 17:22:05 Better then silence Jun 11 17:22:28 Better. Then silence! Jun 11 17:22:40 Better. Then, silence... Jun 11 17:23:02 Why is "android.permission.RECEIVE_BOOT_COMPLETED" even a permission?? Jun 11 17:23:07 Hey TacticalJoke Jun 11 17:23:18 TacticalReddit going well? Jun 11 17:23:19 Radther: it's not actually studied very well, but for now it appears to be a trade off like most things: https://en.wikipedia.org/wiki/Caffeine#/media/File:Health_effects_of_caffeine.svg Jun 11 17:23:32 coffee is very relevant to development for Android Jun 11 17:23:42 revoke android.permission.headache Jun 11 17:23:56 hehe Jun 11 17:24:20 icedp: Interesting. Jun 11 17:24:47 I kinda wish I was into coffee, there seems to be a lot of love for it. Just tastes too bleh... Jun 11 17:25:10 Radther: maple syrup Jun 11 17:26:00 I like syrup in hot chocolate Jun 11 17:26:11 mmm maple syrup. Jun 11 17:26:41 Wait. Not that crap Aunt Gemima makes, right? We're talking about the stuff that comes from trees here... Jun 11 17:29:40 I suddenly want some pancakes... Jun 11 17:39:26 MikeWallaceDev, yeah. just had a consulting agency told me they used it. I'm an iOS dev so not familiar enough to know if it's good they're using Android Annotations or not Jun 11 17:42:20 valheru7, I've used it, it's ok Jun 11 17:42:36 it's kinda largeish functionality wise and some of the parts I think are not elegant Jun 11 17:42:47 but all in all it wasn't a bad library to work with Jun 11 17:42:47 would you consider it bloatware? Jun 11 17:42:50 better ways to do things? Jun 11 17:43:08 valheru7, it's not really bloatware, since pretty much all functionality is done via code generation Jun 11 17:43:12 so the resulting code is pretty fast Jun 11 17:43:27 but some parts (e.g. RESTful stuff, background processing) are probably better done otherwise Jun 11 17:43:41 the view injection, dependency injection stuff is ok though Jun 11 17:45:09 Hey devs. Im trying to implement a Snapchat like caption.(Text ontop of a picture). Im currently ripping my hair out in frustration! Jun 11 17:45:10 http://stackoverflow.com/questions/30787695/snapchat-like-caption-implementation Jun 11 17:48:26 chrisaardal, did you try changing the textview's layout to match_parent after the finger goes down on it? Jun 11 17:48:26 This is the initial bitmap which gets put inside a imageviewcontainer after i fetch the drawingcache() Jun 11 17:48:32 http://oi62.tinypic.com/15yd66r.jpg Jun 11 17:50:07 this is after i try rescaling/zooming http://oi57.tinypic.com/nxt74.jpg Jun 11 17:50:26 could try that Jun 11 17:52:14 doubt it will work tho. Jun 11 17:53:30 i have a gridview i have an onitemlistener and for someone reason the position is wrong what can cause thiis Jun 11 17:53:30 ? Jun 11 17:54:07 chrisaardal: you should post some code Jun 11 17:57:08 dex2goat, i cant see how some code would help. Kinda explained it. To process the zooming and rotation i use Matrix. And setting this matrix to the view Jun 11 17:58:12 that's not really enough, at the very least you should've included the XML file. we can't guess what attributes you are using for all of your views. Jun 11 17:58:14 that means Im not resizing the initial ImageView. Like... I know whats going wrong. But I cant seem to figure out how to scale the ImageView matching the Matrix of it Jun 11 17:58:43 thanks Mavrik Jun 11 17:58:54 do you guys know what causes ':app:preDexDebug'? Jun 11 17:59:09 I am getting an error when building my app Jun 11 17:59:17 kind of explains why there are two downvotes on your post, and none are from. Jun 11 17:59:25 from me* Jun 11 17:59:36 3 Jun 11 17:59:37 :| Jun 11 17:59:43 other than selenium or AQuery, any recommendations for ajax callbacks. I need to wait for the response Jun 11 18:00:02 The third one was from me Jun 11 18:00:03 http://pastebin.com/hhrJhmxP heres the code for initializing the imageview. And the touch-event for zooming etc Jun 11 18:00:21 haha Jun 11 18:00:24 link! I wanna see Jun 11 18:02:04 XML is still missing Jun 11 18:04:43 N3sh108: it is part of the build process, what is the error message? Jun 11 18:04:59 dex2goat: I am getting errors about 'bad utf-8 byte' Jun 11 18:05:12 stacktrace or it didn't happen. Jun 11 18:05:14 please link to the post you were talking about above? Jun 11 18:05:16 is it because of 'xerces.jar'? Jun 11 18:05:19 ok :P Jun 11 18:05:24 Odaym: http://stackoverflow.com/questions/30787695/snapchat-like-caption-implementation#30787695 Jun 11 18:05:30 thanks Jun 11 18:05:42 there is some code now Jun 11 18:05:46 still no XML :| Jun 11 18:06:01 lol Jun 11 18:06:02 ultra downvote Jun 11 18:06:05 the ISSUE is in the xml Jun 11 18:06:18 you're lucky I dont have enough rep to downvote :P Jun 11 18:06:28 I can't be trusted to tell what's bad, imagine that Jun 11 18:07:13 here you go, dex2goat: http://pastebin.com/wKu0iLJN Jun 11 18:07:43 Like i dont see how you would need some XML Jun 11 18:08:16 I've decided I hate ethernet Jun 11 18:08:24 so convoluted Jun 11 18:08:38 Ive added the code. But the question is pretty tangible. You wouldnt need my XML Jun 11 18:08:51 never, ever, get into a situation where you need to write a driver for an ethernet mac Jun 11 18:08:53 :( Jun 11 18:09:01 N3sh108: are you using something called xalan? Jun 11 18:09:13 if so, http://stackoverflow.com/a/25242251/1331240 Jun 11 18:09:14 nope, I am just using selenium Jun 11 18:09:15 oh yeaaa finally! Jun 11 18:09:26 Android developer story: Trello!! Jun 11 18:09:51 the app has so many faults :D let's see what they have to say Jun 11 18:09:52 https://www.youtube.com/watch?v=TieksFvD-7o Jun 11 18:10:20 N3sh108: Isn't there a simpler way of solving your problem? Jun 11 18:10:33 TacticalJoke: I wish Jun 11 18:10:49 chrisaardal: since a parent view is responsible for measuring and laying out its children, it is quite relevant. Jun 11 18:11:01 parent viewgroup* Jun 11 18:11:05 what if I told you FrameLayout? Jun 11 18:11:13 As far as I can tell, your mission is "Within an Android app, acquire an image drawns on an HTML5 canvas on an arbitrary site". Jun 11 18:11:33 thats great, but what about the attributes set on that framelayout Jun 11 18:11:43 matchparent Jun 11 18:11:47 if he doesnt want to provide xml, let him be Jun 11 18:11:48 :P Jun 11 18:11:50 and you expect we guess that? Jun 11 18:11:51 who cares Jun 11 18:11:56 move on Jun 11 18:12:14 Odaym, pls. Jun 11 18:12:18 you pls Jun 11 18:12:23 dont leach Jun 11 18:12:30 common, trello on the watch? Jun 11 18:12:48 ...why Jun 11 18:12:50 lol Jun 11 18:13:00 they seem most of them Arabs.. Jun 11 18:13:41 all of this and they dont have the feature where you can sort the cards Jun 11 18:13:53 at least not by filters that matter Jun 11 18:14:00 on Chrome you have to get a plugin for it Jun 11 18:14:35 not sure I ever needed to sort cards though, not by oldest, at least Jun 11 18:14:54 and, trello for running? what's up with that? Jun 11 18:14:54 date created at least! just so you know when is the oldest one, when did you start, etc.. Jun 11 18:15:03 they just want to say they are on the watch Jun 11 18:15:07 silly really Jun 11 18:15:34 hmmm...nah Im just hatin, actually it would be very useful Jun 11 18:15:51 TacticalJoke: do you have any alternative? If so, please enlighten me :) Jun 11 18:16:20 I'm not sure how you'd even do the current thing. Jun 11 18:16:25 Odaym: why would you want to sort the cards? they are manual order of priority Jun 11 18:16:37 Is it really possible to download the contents of the canvas? Jun 11 18:16:51 I'd suggest rewiring the entire thing. Jun 11 18:17:22 sort by creation date, i wanted to see which card was created first Jun 11 18:17:26 its..just useful Jun 11 18:17:47 TacticalJoke: html5 canvas or java canvas? Jun 11 18:18:03 HTML5. Jun 11 18:19:31 Ive edited the post now. I would appreciate you having a look :) http://stackoverflow.com/questions/30787695/snapchat-like-caption-implementation Jun 11 18:22:20 TacticalJoke: just save the ImageData Jun 11 18:23:08 TacticalJoke: https://developer.mozilla.org/en/docs/Web/API/ImageData Jun 11 18:23:52 chrisaardal: waaaaa Jun 11 18:24:03 chrisaardal: why are you making it so comlicated Jun 11 18:24:07 complicated Jun 11 18:24:18 Is it xD? Jun 11 18:24:44 chrisaardal: https://gist.github.com/slightfoot/a7de4ecdc6cf06c68640 Jun 11 18:24:53 basic example Jun 11 18:24:58 just one way Jun 11 18:25:14 ah Jun 11 18:25:22 i just read further Jun 11 18:25:29 Im not sure why your using an ImageView Jun 11 18:26:03 why are you using wrap_content? Jun 11 18:26:18 Ive tried with just the edittext using setTranslation. But it flickers. epileptic. Jun 11 18:26:47 cuz i want the user only to move the caption when they press it?. Match_parent would make the whole screen touchable. Jun 11 18:27:03 chrisaardal: thats what a touch listener is for Jun 11 18:27:04 :P Jun 11 18:27:23 sounds to me like your making this harder than it needs to be Jun 11 18:27:40 Moving the caption when they touch anywhere doesnt make sense. Jun 11 18:27:51 i never said that Jun 11 18:28:08 match_parent would do that Jun 11 18:28:12 you can Exclude touch events by doing nothing if the coordinates of the touch dont fall inside the transformed rect Jun 11 18:28:18 in your ontouchlistener Jun 11 18:28:18 wrap_content for the edittext makes sense IMO Jun 11 18:28:19 :P Jun 11 18:28:42 so move/zoom the edittext, but I still don't understand what you're trying to achieve with the image Jun 11 18:28:48 and the matrix Jun 11 18:28:53 chrisaardal: whats your minSdkVersion and targetSdkVersion? Jun 11 18:29:08 the matrix: http://giphy.com/gifs/fandom-matrix-the-kIo9xMRAwCDfO Jun 11 18:29:11 16, 22 atm Jun 11 18:29:34 chrisaardal: please tell me you have hardwareAcceleration not set to false in your manifest Jun 11 18:30:17 I have not. how come? Jun 11 18:30:48 chrisaardal: so its set to true.. right? Jun 11 18:30:48 overdraw? Jun 11 18:30:58 I havent declared it Jun 11 18:31:27 well it should be true by default that on sdk version.. i prefer to declare it anyway to be explict Jun 11 18:31:54 this is interesting, about App Ops (2013) Hackborn removed the feature on 1 August; Burke put it back in the next day. Jun 11 18:31:57 chrisaardal: mind if I give this a go? Jun 11 18:32:12 Give what a go? Jun 11 18:32:26 snapchat caption thingy Jun 11 18:33:47 Giving you the source? I cant really. :< Jun 11 18:34:01 no Jun 11 18:34:05 i mean do it my way Jun 11 18:34:11 in my own source Jun 11 18:34:26 Ofc i dont mind xD Jun 11 18:36:44 would getDrawingCache() on a scaled-EditText return the initial scale or the scaled bitmap? Jun 11 18:38:58 Keep me updated Napalm :D Jun 11 18:40:07 floatobject.toString() returns just the float value held, right? Jun 11 18:40:56 nvm Jun 11 18:41:32 Float.valueOf(floatobj).toString()? Jun 11 18:41:38 oh Jun 11 18:42:17 String.valueOf(floatobject); Jun 11 18:50:07 chrisaardal: time-out. food time Jun 11 18:50:44 Napalm, Aight! :) Jun 11 18:51:38 chrisaardal: btw, your save icon has the wrong alpha in those screen shots Jun 11 18:51:52 Napalm, just a temp icon xD Jun 11 19:06:06 Has anyone experienced issues with manifest merging when introducing modules as dependencies? Suddenly my app's Theme isn't being respected. Jun 11 19:17:36 hmmm ironmarx check the themes file you are writing to Jun 11 19:17:43 cause there's v21 and stuff like that Jun 11 19:17:49 note "stuff like that" Jun 11 19:22:44 Dammit Wikitude's docs are AWFUL for Android!! Jun 11 19:22:47 I'm done with 'em Jun 11 19:22:57 I have a v21 qualifier and a non-qualified one. The only style not being respected in either is the AppTheme declared in the app's manifest Jun 11 19:23:01 I found another AR SDK called Layar with WAY better docs Jun 11 19:24:57 anyone used portecle before to generate bks keystore? Jun 11 19:44:46 you got any idea why it would take Glide time to load a gif that I have included under raw/ ? Jun 11 19:45:19 dont gifs...load themselves or something? Jun 11 19:45:33 first time it does that, every time after that it runs instantly Jun 11 19:45:43 it might have to load each image Jun 11 19:45:46 which takes time Jun 11 19:45:48 dunno Jun 11 19:45:54 ah yea, might be Jun 11 19:46:06 cause the first time, forget about it, you're not getting a gif Jun 11 19:46:08 Android doesn't have native accelerated gif decoder Jun 11 19:46:22 so it's questionable what Glide has to do to even make the gif render Jun 11 19:46:42 it's an easter egg I've made Jun 11 19:46:52 but I can forget about it, wait until Picasso has it Jun 11 19:46:54 wankers Jun 11 19:47:00 cant do anything right Jun 11 19:47:17 make it a video and load that instead :p Jun 11 19:48:00 you can turn a gif into a video, i think Jun 11 19:48:30 yep http://giftovideo.com/ Jun 11 19:49:23 why would you do something silly like that Jun 11 19:49:30 take the original source and encode it into video Jun 11 19:49:49 original source? Jun 11 19:49:50 converting it to a crappy GIF format that only supports 256 colors is a hammer to quality :P Jun 11 19:49:51 of what Jun 11 19:49:59 of your GIF content Jun 11 19:50:07 I want to do the other way around, gif to video Jun 11 19:51:20 it's thumbs up computer kid Jun 11 19:52:54 Does JsonTypeAdapter for gson reader contain the entire json string, or just the subsection relating to the annotated section? Jun 11 19:53:01 *exposed object Jun 11 19:53:08 Do you need a VideoView then Odaym ? Jun 11 19:53:18 you selling? Jun 11 19:53:23 ye Jun 11 19:53:35 I'll take 2, wrap content Jun 11 19:59:22 we need animated gifs for important things like this http://i.imgur.com/eN3njJp.gifv Jun 11 19:59:40 didnt expect goat Jun 11 20:00:49 I am using own Touch Handling, on ACTION_DOWN i start handler (which is runnable set as inner anonymouse class) after some amount of time (detecting longClick). Jun 11 20:00:49 Problem is that i need to manipulate with touched position - concretely change color of touched List item. How can I pass parameters like view to be removed? Jun 11 20:02:40 is it bad practice to add public class within public class Jun 11 20:03:03 trying to do add this http://blog.antoine.li/2010/10/22/android-trusting-ssl-certificates/ Jun 11 20:04:09 problem is i want to use the custom client for another class but gives me an error Jun 11 20:04:50 it says cannot resolve getApplicationContext() in the other class Jun 11 20:05:11 g00s, that's not a GIF :P Jun 11 20:05:25 g00s, and that's why, for the love of god and everything that's holy, don't convert gifs to videos :P Jun 11 20:05:41 ah its gifv! Jun 11 20:05:52 (it's actually H.264 in MP4 container :P ) Jun 11 20:06:57 i guess i should just figure out myself as per usual Jun 11 20:08:31 DarkChaoz, you're asking a totally vague question about something you haven't shown Jun 11 20:08:42 DarkChaoz: getApplicationContext() is available in any class which extends ContextWrapper. So your code is probably not in an Activity. You just need to pass the context to your method Jun 11 20:08:46 Napalm, you back? Jun 11 20:09:04 i'll show u my code Jun 11 20:09:08 one sec Jun 11 20:10:53 just remove the v in the link and you get your gif: http://i.imgur.com/eN3njJp.gif :) Every GIF uploaded to Imgur has a gifv version Jun 11 20:11:29 this is my custom http client so i can access secured website with certificate Jun 11 20:11:32 http://pastebin.com/fJ7LAfYy Jun 11 20:12:00 now, im trying to use the custom client in another seperate class here (rss reader) http://pastebin.com/2zRV0Zh5 Jun 11 20:12:28 and rssreader2(); is used in an activity Jun 11 20:12:56 the problem is im getting an cannot resolve method error Jun 11 20:13:17 and im not sure where i can add the context Jun 11 20:13:21 DarkChaoz: That's because getApplicationContext() does not exist ;) Jun 11 20:13:37 you just need to pass the context in a constructor and initialize DefaultHttpClient there Jun 11 20:14:46 this? http://pastebin.com/z3FZfnMS Jun 11 20:15:13 DarkChaoz: no, this.mContext = mContext; Jun 11 20:16:09 ahh then i replace getApplicationContext() with mcontext? Jun 11 20:16:43 DarkChaoz: http://pastebin.com/4VtkD2Sm Jun 11 20:18:44 i see Jun 11 20:19:24 so in the activity class do i do in oncreate RSSReader rssfeed = new RSSReader2(this); ? Jun 11 20:19:38 yeah Jun 11 20:19:45 i see Jun 11 20:20:02 thanks.. i'll try that out in a bit :) Jun 11 20:20:03 or new RSSReader2(getApplicationContext()) so you are passing the application context instead of the reference to the activity Jun 11 20:21:11 i see Jun 11 20:21:37 or context.getApplicationContext() Jun 11 20:28:50 hi, when trying to register my sip phone sample app using the native android sip sdk, I'm getting this exception "android.net.sip.SipException: SipService.createSession() returns null". Looking up in Google, I can't find many possible solutions (none of them work for me) and I believe I tried almost everything. Jun 11 20:42:54 so for drawing navbar under status bar it seems I've got to set statusBarColor to transparent. DrawerLayout seems to fill it. now I have a blackish statusbar in activities which don't use DrawerLayout. Jun 11 20:43:02 do I have to create two themes? Jun 11 20:45:49 If you don't want it transparent in other activities, yes Jun 11 20:46:14 I want it the same color everywhere, yep Jun 11 20:53:29 is there a way to easily convert COLLADA (.dae, google sketchup export file) to NML format for use in Nutiteq's HelloWorld3D software? apparently there is a command line tool for doing this but i havent been able to find it Jun 11 20:55:25 Hello Jun 11 20:55:56 If i understand it correctly Google can (via Google Play) update the open source apps with its alternatives? Jun 11 20:56:19 Similar to updating my Webview to "Android System Webview" Jun 11 20:56:26 I have Uri from my Intent to select image from gallery. Is there a way to check the size (mb) of the image before opening it and loading it into memory say limit to 1mb to avoid out of memory ? Jun 11 21:01:01 hey everyone I am getting Start Failed -19 on line 85 of this code http://pastebin.com/Hv3RzEvt Jun 11 21:01:13 What am i doing wrong or how do I fix it Jun 11 21:02:30 I just want to be able to record video with some amount of control Jun 11 21:03:41 hey all - when trying to run my app on a simulator, i get an error 'Unable to identify the apk for variant armv7-debug' - i am able to debug on a real device fine though. any ideas on how to fix? Jun 11 21:05:50 The android devleoper guide says don't access the UI toolkit outside the appropriate thread, I assume that extends to UI views that aren't part of the hierarchy yet Jun 11 21:32:44 no, you should know whether you're on another thread Jun 11 21:32:54 because you started a new thread explicitly, or some api calling says you'll be on another thread Jun 11 21:33:01 by default, everything runs on UI thread Jun 11 21:34:08 neredsenvy: yes. see Loading Large Bitmaps Efficiently at d.android.com Jun 11 21:34:44 neredsenvy: you can decode just dimensions with out loading the bitmap Jun 11 21:35:34 Anyone knows if there is a time limiting to getting wifi scan results in android or if it's device based? Jun 11 21:35:59 is it OS or hardware determained? :) Jun 11 21:36:01 Vercinger, no limit software wise Jun 11 21:36:07 It's hardware limited Jun 11 21:36:15 Okay.. Thanks :) Jun 11 21:36:29 Can't find any documentation on my S5 on the limitation Jun 11 21:36:43 by empirical determined it to be ~5 seconds.. Jun 11 21:36:46 but* Jun 11 21:36:53 but I think the limit is < 1s for 99% Jun 11 21:37:24 really? When I do it on my S5 it won't "update" the numbers(RSSI)/scan results unless it's every 5 seconds.. Jun 11 21:38:13 To avoid Unexpected scan result exception Jun 11 21:39:01 If you are pooling to fast you will get same results between close scans Jun 11 21:40:21 I have implemented broadcast receiver, on recieve with SCAN_RESULTS_AVAILABLE_ACTION Jun 11 21:40:51 neredsenvy, how fast is too fast? :) Jun 11 21:41:00 that's what I would love to know :) Jun 11 21:41:46 Same I can pool every second I have it set to 7 Jun 11 21:41:58 If I set it to 1 I still get scan results Jun 11 21:41:58 what? Jun 11 21:42:20 There is no number Jun 11 21:42:21 but? Jun 11 21:42:41 I can pool at 1 second but here and there I will get Unexpected scan result exception Jun 11 21:42:42 Are you saying you can only get new numbers every 7 seconds? Jun 11 21:42:56 Yes I have my app pool every 7 seconds Jun 11 21:42:58 I've never gotten that :| Jun 11 21:43:25 why 7 seconds, if I may ask :) Jun 11 21:44:49 Because BCM4778 has recommended cycle of 7 seconds and Galaxy has same family wifi chip BCM4334 Jun 11 21:45:13 BCM4778 being the manufacturer? Jun 11 21:45:37 Chip Jun 11 21:45:49 where have you found this recommendation? Jun 11 21:46:19 I'm only asking theese tedicous questions because it's part of my bachelor's project and you know, sources are everything ;) Jun 11 21:46:21 Because I'm using BCM4334 on my WIFI/GPS module it was in documentation. Jun 11 21:46:42 If you want to know exact performance of your wifi chip Jun 11 21:47:03 Do you know where I can find this? :) Jun 11 21:47:08 Look it up for your phone than search for specifications for that chip Jun 11 21:47:17 Found something Jun 11 21:47:18 Broadcom usually has very good docs Jun 11 21:47:19 thanks Jun 11 21:47:28 http://www.techinsights.com/teardown.com/samsung-galaxy-S5-teardown/ Jun 11 21:48:06 Masters project here : P Jun 11 21:48:25 brb Jun 11 21:48:34 What's it about? :) Jun 11 21:49:37 wifi based indoor navigation Jun 11 21:50:05 using custom built signal broadcasters Jun 11 21:50:11 no f'ing way Jun 11 21:50:16 "Mobile application for positioning" Jun 11 21:50:23 no way! Jun 11 21:50:31 hahaha Jun 11 21:50:36 Funny :P Jun 11 21:51:08 I'm using eduroam and have made empirical path-loss models Jun 11 21:52:25 I'm sure yours are much more extensive than mine :P Jun 11 21:59:22 neredsenvy: you know where I can find that documentation online.. So far I've been unsuccesful.. Jun 11 21:59:42 neredsenvy, i sense audioguides for exhibitions might be a good application of your work Jun 11 22:00:59 My first attempt was using eduroam as well just the existing Wifi network and I have a working version. Jun 11 22:01:20 But you can't rely on wifi signal strength Jun 11 22:01:34 for any kind of range measurement Jun 11 22:01:42 Well.. that's my conclusion aswell :) Jun 11 22:02:02 doh :) Jun 11 22:02:08 That's why beacons are the new hotness :) Jun 11 22:02:09 right now I'm writing it all down in the report.. I can only get accuracy for ~5 :) Jun 11 22:02:16 meters* Jun 11 22:02:34 The way I did it was create a db with locations & signals table Jun 11 22:02:49 the good thing is it's okay to create something that isn't working perfect, as long as you're documenting and approaching it scientificly :) Jun 11 22:02:55 finger printing? Jun 11 22:03:04 take a image of the floorplan and just move px by px storing all ap in range of each position on map Jun 11 22:03:16 than i just calculate avg value from user and voila Jun 11 22:03:19 That was my initial idea and approach, but I took the path of pathloss models instead due to my advisors advice.. Jun 11 22:03:20 within 1m Jun 11 22:03:26 neredsenvy, how do you handle changes of radio environment? Jun 11 22:04:11 I'm studying network technology, so he wanted a less app/programming approach and more of a communications technology approach :) Jun 11 22:04:13 I don't rely on wifi signal anymore at least not during navigation Jun 11 22:04:29 I use custom broadcasters to identify floors Jun 11 22:04:31 don't you have to compare the incomming RSSI? Jun 11 22:04:47 Yeah, I wasn't "allowed" to implement new infrastructure :) Jun 11 22:04:59 nope I get the users initial location from then on it's sensor based Jun 11 22:05:05 nice Jun 11 22:05:16 that's also in my report on "futurework/improvements" Jun 11 22:05:29 have you read the sensor-based dead-reckoning article? Jun 11 22:05:43 no linky Jun 11 22:05:44 DOI: 10.1016/j.phycom.2013.11.013 Jun 11 22:05:57 they managed to get 0.6 m accuracy Jun 11 22:06:32 I mention it in my report as a method, but haven't implemented any of it due to time constraints Jun 11 22:06:39 http://www.egr.msu.edu/classes/ece480/capstone/spring11/group02/index.html Jun 11 22:06:45 but if I were to do it over I'd do it Jun 11 22:06:51 They managed to get bellow <1m accuracy Jun 11 22:07:14 is it a company? Jun 11 22:07:19 no Jun 11 22:07:45 they do signal based location Jun 11 22:08:11 they have the source published it works pretty well but you need very open area to do it Jun 11 22:08:30 I've limited mine to "the hall" in one building with 3 floors Jun 11 22:08:38 Napalm you here? Jun 11 22:08:55 to I only have to navigate to the door of an office within the hall.. Jun 11 22:09:33 My conclusion was that wifi based navigation is good if it's within 1-5m accuracy. For 99% of application this will be more than enough. Jun 11 22:10:00 For companies who need pinpoint accuracy custom system will be the way to go. Jun 11 22:10:21 if I were to do more extensive work on it I'd probably combine the different methods there is :) Jun 11 22:11:22 Take the speed of signal then compare times between request and time send in packet header from the ap Jun 11 22:11:49 Oh.. but if you get 1.0 µs wrong you're off by 300 meters Jun 11 22:11:58 if it's a TOA method.. Jun 11 22:12:24 of you're talking about time difference of arrival? Jun 11 22:12:32 or* Jun 11 22:12:33 time difference Jun 11 22:12:55 then you can't be wrong by more than tens of µs.. Jun 11 22:13:02 atleast that's what my sources say :) Jun 11 22:13:20 I haven't looked in to that extensively more than read an article about it.. Jun 11 22:13:46 It's just what I had of the top of my head I didn't even look if it's possible to get raw packets with android Jun 11 22:13:49 btw. did you have a source on that 7-second thing? I can't really find any.. Jun 11 22:14:02 I honestly don't know either :) Jun 11 22:15:30 Don't have the bookmark on my desktop I searched for Broadcom BCM4334 Jun 11 22:17:06 okay, thanks anyway :) Jun 11 22:17:15 Funny coincidence anyway ^^ Jun 11 22:17:54 yup Jun 11 22:20:13 These are the headers my default install of Nginx is returning. I'm using Picasso with OkHttp. However, Picasso seems to be breaking - http://pastebin.com/jpeFVE1g Jun 11 22:20:26 Is there potentially some issue with my response HTTP headers that could mess up OkHttp / Picasso? Jun 11 22:20:47 I'd like to use this Nginx as static image hosting Jun 11 22:21:19 Maybe that keep-alive is not a good header to be sending back? Jun 11 22:23:41 why ont? Jun 11 22:23:43 not* Jun 11 22:25:50 Not sure. Seems to be breaking OkHttp. Picasso just stops working mid-app. Jun 11 22:26:03 Hmm, had no issues with that. Jun 11 22:26:18 Are you maybe accidentally hiding some other exception? Jun 11 22:30:54 No. Not really sure. I switched off App Engine HTTPS image hosting to Digital Ocean NGINX HTTP hosting. But F Nginx, Ima use Apache Jun 11 22:32:35 I'm trying to understand why this works: ""new GestureDetectorCompat(this, this)"; Could someone please explain why "this" matches the required type of the constructor parameter? As I understand it, the parameter types for the GestureDetectorCompat constructor are Context and GestureDetector.OnGestureListener. For the former. I could understand how 'this' would be of the appropriate type, but not the latter. How is "this" a Jun 11 22:34:01 treeprogram, well, your "this" implements the OnGestureListener interface right? Jun 11 22:36:03 Mavrik: yes Jun 11 22:36:07 activity == context + implements OnGestureListener Jun 11 22:36:48 I guess I don't fully understand the concept of 'this' Jun 11 22:37:01 this is just the current object Jun 11 22:37:35 an object can be of multiple types. for example an activity is also a context (inheritance) and in the given case its also a gGestureListener because it implements it Jun 11 22:39:15 Mavrik: So, switching to Apache, I notice the 'Keep-Alive → timeout=5, max=100' is there by default Jun 11 22:39:24 Nginx had no Keep-Alive timeout or max header....maybe that was breaking OkHttp? Jun 11 22:39:54 im pretty sure nginx can do this too. Jun 11 22:39:55 but how does one of the object's multiples types matching the parameter type requirement mean the whole object can be passed to it? Does the compiler know to select the right type? Jun 11 22:40:04 danijoo: I'm sure it CAN, the fact was out of the box it broke OkHttp Jun 11 22:40:21 Whereas apache gave Keep-Alive → timeout=5, max=100, nginx just said connetion-> keep-alive Jun 11 22:40:27 treeprogram, for easy understanding you could say yes Jun 11 22:40:41 danijoo: that makes things easier then.. Jun 11 22:40:47 thanks Jun 11 22:41:29 it does something like (this instanceof Context) Jun 11 22:41:35 which is true Jun 11 22:44:05 I literally searched the last 2 days for a good keyboard to replace my old shitty one. Its way to hard to find something in US layout in germany -_- Jun 11 22:45:44 danijoo, can't you just buy a german one and set windows settings to US? Jun 11 22:45:48 keyboard* Jun 11 22:46:06 My I can with a quick shortcut switch between US and Danish Jun 11 22:46:16 Just ordered a Macbook pro. Would take like a couple og days with Scandinavian layout. But with US.... Two weeks Jun 11 22:46:26 Vercinger, tired that. but its a brainfuck Jun 11 22:46:41 I can type on englisch and german layout, but not on englisch setting on german layout Jun 11 22:47:00 s/tired/tried Jun 11 22:47:09 yesch :P Jun 11 22:47:30 the deutsch was strong in you :P Jun 11 22:47:51 and german layout sucks with those {} [] keys trying to break my hand Jun 11 22:48:05 where are they placeD? Jun 11 22:48:24 it's alt+ctrl + {7,0,8,9} for mine :P Jun 11 22:48:34 very annoying Jun 11 22:48:41 yep Jun 11 22:48:45 same for german Jun 11 22:49:07 i got used to US layout because its so much more convience for programming Jun 11 22:49:26 I learned US layout from counter-strike 1.6 Jun 11 22:49:32 its just my friends getting annoyed because I dont type üöä anymore :D Jun 11 22:49:36 the chat didn't have danish layout for some reason :P Jun 11 23:01:11 This is kind of a meta question but does anyone know if there are documented plans for improving Android Studio, and the Android dev experience overall? Jun 11 23:01:41 mdeboard, watch the io 2015 vid on new dev tools Jun 11 23:01:46 I guess there's http://tools.android.com/roadmap but it's-- Jun 11 23:01:47 oh Jun 11 23:01:49 there are some awesome things on their way Jun 11 23:01:52 Google IO? Jun 11 23:01:55 yeah Jun 11 23:01:57 alright Jun 11 23:02:07 "Whats new in android dev tools" Jun 11 23:02:15 really nice talk on that topic Jun 11 23:02:25 http://lmgtfy.com/google%20io%202015%20android%20dev%20tools Jun 11 23:02:32 darnit. Jun 11 23:02:47 I typed that out by hand and it doesn't even work :( Jun 11 23:03:18 picasso has been acting really strange...its working now. but here was my error - http://pastebin.com/FfPRZAb9 Jun 11 23:03:37 mdeboard, https://www.youtube.com/watch?v=f7ihSQ44WO0 Jun 11 23:03:44 I found it! Jun 11 23:04:17 I didn't need you danijoo Jun 11 23:04:23 I don't need ANYONE *slams door* Jun 11 23:04:28 ;) Jun 11 23:04:43 we get some really cool stuff with the next android studio versions Jun 11 23:04:48 theme manager looks awesome Jun 11 23:05:28 One thing Android has iOS dev doesn't is Camera functionality in emulator Jun 11 23:05:51 "Top Requested Developer Features" essentially boils down to "please make Android Studio more like XCode" Jun 11 23:06:16 achuinard: that looks normal to me, for a failed download Jun 11 23:07:13 how could it have failed Jun 11 23:07:16 danijoo, Some of these applause breaks are cringe-y Jun 11 23:07:16 apache couldnt handle it? Jun 11 23:07:25 achuinard: fwiw I tried the link, it didn't load Jun 11 23:08:20 "I know a lot of you probably really like working directly with XML" Jun 11 23:08:31 Wow he just called everyone in the room a huge asshole Jun 11 23:09:10 achuinard: yeah, there's no response, just a closed connection. makes sense why picasso would retry. Jun 11 23:09:19 I see Apache returning 304s Jun 11 23:09:29 I get literally zero bytes in response Jun 11 23:09:31 Why would my fresh Apache install return 200 sometimes and 304 Jun 11 23:09:55 mdeboard, i like working in xml more than the layout preview thingy Jun 11 23:10:18 I haven't used the layout preview at all Jun 11 23:10:29 xcode has a beautiful design metaphor in storyboards Jun 11 23:10:43 i also dont understand why so many dont like the xml way of defining layouts in general Jun 11 23:10:47 i think its pretty good Jun 11 23:10:50 groxx: did you load in web brwoser? I see 304 errors but my Chrome redirects proeprly Jun 11 23:10:51 ah, no, maybe mine is just a dns failure. Jun 11 23:11:04 hello! How do I use the Google Web Driver? (I just installed it through the SDK Manager) Jun 11 23:11:04 I DID just update this DNS record a few hours ago.... Jun 11 23:11:19 yeah, dns failure here. Jun 11 23:11:36 hmmm ok so DNS lookup is just failing Jun 11 23:11:38 excellent.... Jun 11 23:11:42 danijoo, It's not bad, objectively. But like xcode storyboard also makes it VERY easy to define transitions between views and so on Jun 11 23:12:00 So you have your layout, visual design, and logical design all in one place Jun 11 23:12:07 and it's all drag-and-drop Jun 11 23:12:25 mdeboard: and give you entirely non-diffable output, but yeah :) the whole interface builder thing is pretty decent. Jun 11 23:12:37 definitely better than android's Jun 11 23:12:39 I mean I really enjoy using ReactJS and that is, for all intents and purposes, using *ML to define layout. It's never been a problem, so I know what you're saying Jun 11 23:12:52 groxx, hahaha yes! EXCELLENT point Jun 11 23:12:57 You are exactly right, non-diffable Jun 11 23:13:13 it wouldn't be half as bad if they didn't insist on serializing thumbnails as base64 strings into the xml :| Jun 11 23:13:17 or did they finally stop doing that? Jun 11 23:15:08 I'm not sure on that one Jun 11 23:16:36 I think the biggest annoyance there for me though was that by merely _opening_ one of the xib files, xcode would occasionally modify it. so you browse around your codebase, and suddenly you have to undo random changes, or have everyone continuously commit "I don't know what, but xcode decided it was good" changes Jun 11 23:16:46 which occasionally just get in infinite loops between two devs Jun 11 23:17:16 android's xml files are wonderful by comparison Jun 11 23:22:36 hello! How do I use the Google Web Driver? (I just installed it through the SDK Manager) Jun 11 23:23:17 I know this might be a cocky/annoying answer but I'd suggest starting here: https://code.google.com/p/selenium/wiki/GettingStarted Jun 11 23:23:18 :) Jun 11 23:23:20 * groxx googles, comes up with: http://android-developers.blogspot.in/2011/10/introducing-android-webdriver.html Jun 11 23:23:27 or https://sites.google.com/a/chromium.org/chromedriver/getting-started Jun 11 23:24:08 https://code.google.com/p/selenium/wiki/AndroidDriver Jun 11 23:24:23 hm. also, espresso was just updated with webview support, wasn't it? Jun 11 23:24:24 and he link groxx posted :) Jun 11 23:24:33 I have no idea :P Jun 11 23:24:41 wasn't there a bug in that webview thing? Jun 11 23:24:44 I saw that in recent release notes Jun 11 23:25:03 https://plus.google.com/+AndroidDevelopers/posts/4a51oVb59H6 Jun 11 23:25:14 espresso-webviewhttps://code.google.com/p/android-test-kit/wiki/ReleaseNotes Jun 11 23:25:16 Vercinger: I have spent several hours trying to get that running Jun 11 23:25:20 https://code.google.com/p/android-test-kit/wiki/ReleaseNotes Jun 11 23:25:37 that's why I thought Google Web Driver would help Jun 11 23:25:40 N3sh108, I have no idea, but I think you need to be more specific in your problems if you're looking for help :) Jun 11 23:26:09 because the "how do I use it" is a very wide question :) Jun 11 23:26:11 whenever I add the selenium library to my gradle, I get 'com.android.dx.cf.iface.ParseException: bad utf-8 byte' Jun 11 23:26:32 bad utf-8 byte.. maybe you're using a sign that isn't in the utf-8? Jun 11 23:26:47 I replaced xerces.jar and xalan.jar as they seem to cause that kind of problem and still nothing Jun 11 23:26:52 however I have on idea what signs ARE in the utf-8 Jun 11 23:27:05 the problem only occurs when I add the library Jun 11 23:27:10 post your code + stacktrace then Jun 11 23:27:12 removing it, the problem disappears Jun 11 23:27:16 so people can take a look :) Jun 11 23:27:22 and use www.pastebin.com Jun 11 23:27:25 thanks mate Jun 11 23:27:28 good night Jun 11 23:27:37 What just happened? Jun 11 23:27:42 magic Jun 11 23:27:44 Did I fix it for him? Jun 11 23:27:53 yep. they were just looking for pastebin. Jun 11 23:28:00 hahahaha Jun 11 23:28:22 "wtf man.. pastebin.com isn't giving me any answers.. it's just posting whatever I just wrote!" Jun 11 23:30:12 shipit Jun 11 23:32:09 groxx, Agree totally about seemingly random modifications to xib files just by opening. If it's any consolation, the reason that happens is, iirc, you have xcode configured to automatically adjust the layout. You can turn that off Jun 11 23:34:42 mdeboard: or different xcode versions, or files from old xcode versions :) it wasn't related to any auto-adjusting, just rebulding the base64'd thumbnails, rearranging metadata fields, etc. Jun 11 23:35:56 Ah Jun 11 23:36:03 That too then :D Jun 11 23:36:21 Agreed it's annoying but it's super minor compared to the lack of meaningful diff. Jun 11 23:46:14 diffs are overrated Jun 11 23:46:19 we should code review via osmosis Jun 11 23:46:25 method PUT must have a request body - is this new in retrofit / OkHTTP? Jun 11 23:46:27 boo Jun 11 23:47:48 lewellyn, I know you were being tongue-in-cheek but lack of diffing in the layout encourages not using storyboards altogether D: Jun 11 23:47:53 it's kind of annoying Jun 11 23:56:34 it means you can't look at the code at version X and know what it will do. that's a problem. Jun 12 00:20:45 hello Jun 12 00:27:56 guys Jun 12 00:28:09 how do I use a string resource with java? one i declared in strings.xml Jun 12 00:29:10 nvm found it lol Jun 12 00:29:15 by reading the documentation Jun 12 00:32:08 yeah Jun 12 00:32:47 im using a .txt in notepad, shouldnt it go on forever? but after like 4 windows of line length it instantly wraps to the next line when i try to add anymore... its weird Jun 12 01:04:16 any app developers here who published to the play store? Have you been successful? Did you pay for advertising? Jun 12 01:06:05 apoc52: well what do you define success Jun 12 01:06:23 i would say significant revenues Jun 12 01:06:26 $5K+ Jun 12 01:06:31 after expenses Jun 12 01:06:39 apoc52: well all my apps are open source so now I'm not successful :( Jun 12 01:06:44 *no Jun 12 01:06:51 what about downloads? Jun 12 01:06:52 why don Jun 12 01:07:00 why dont you monetize with ads? Jun 12 01:07:44 Well ads kind of defeat the purpose of open source IMO. And profit just isn't a major priority for me Jun 12 01:07:54 what about downloads? Jun 12 01:08:03 how did you generate awareness about your app(s) Jun 12 01:08:13 reddit, word of mouth Jun 12 01:21:14 ads don't defeat purpose of open source Jun 12 01:22:16 TacticalJoke you there Jun 12 01:22:19 Nope Jun 12 01:26:59 pfn: i agree, but for my personal purposes it does Jun 12 01:33:51 anybody have any high level tips Jun 12 01:33:54 on minimizing memory usage of apps? Jun 12 01:35:47 apoc52: basic but a lot of people make this mistake, don' Jun 12 01:35:53 hit enter oops Jun 12 01:36:06 *don't inflate null or non visible views Jun 12 01:36:55 ugh, my app has too many methods and I can't use proguard cache for it, fml Jun 12 01:37:42 (java app with way too much analytics and 3rd party libs) Jun 12 01:39:44 pfn: time to look into the facebook hack :D Jun 12 01:41:09 that's not what the facebook hack is Jun 12 01:41:39 wasn't it because it had more than 65k methods? Jun 12 01:53:54 no Jun 12 01:55:01 ...i just re read an article on it and now feel stupid because i cant tell what it was other than the 65k limit... Jun 12 01:55:08 enlighten me? Jun 12 02:08:06 linear alloc space from interface hierarchies being too deep Jun 12 02:17:17 hey guys. how can i force a listview to inflate all the items? like the effect of increase the threshold over the pageadapater? Jun 12 02:18:29 is there good android studio tutotial/manual? Jun 12 02:20:18 I think that would defeat the purpose of listview ? Jun 12 02:20:30 lemg_mx: yes :/ Jun 12 02:20:30 rrr: There are a bunch of youtube videos. Google android studio tutorial Jun 12 02:20:47 rrr: If you learn eclipse, it is pretty self-intutiive Jun 12 02:20:50 Then don't use a listview :P Jun 12 02:21:32 lemg_mx: can't, too much work to inflate the view without it. Jun 12 02:22:15 lemg_mx: i'm handling a non-fixed numbers of viewholders over the listview. what i want i think it's a multimodal listview. Jun 12 02:23:43 abara, what you're asking makes no sense Jun 12 02:23:46 Maybe you can inflate them in a loop or something Jun 12 02:25:04 abara: I suspect you're not thinking about listview / viewholders properly. you should literally never care about how many views there are, or how many viewholders - that's the entire point of listview Jun 12 02:25:04 hi, i have some problem with GCM push, i read this guide https://developers.google.com/cloud-messaging/android/client , this demo https://github.com/googlesamples/google-services/tree/master/android/gcm and it work...but... it work only when server sends json with tag "data" and not when server sends tag 'notification' Jun 12 02:26:48 groxx: yeah, but let's say on the device X i can show 6 items from 12. i need to read all the 12 for chances like checkbox, editext and stuff. Jun 12 02:26:55 devuser: what do you mean by "tag"? Jun 12 02:27:07 abara: why? Jun 12 02:27:31 abara: or maybe: what are you trying to do? Jun 12 02:28:19 groxx, json tag. our server application send json message to google gcm server Jun 12 02:28:50 https://developers.google.com/cloud-messaging/server "Notifications and data messages" paragraph Jun 12 02:29:59 i want the loop over the listview itens and check changes: checkbox is checked, edittext is empty or not. so after that i need to send it to a server. the problem is sometimes i can't garantee the user will scrolldown and force the other "half" of the listview to inflate. Jun 12 02:30:21 devuser: I believe that's only for iOS compatibility Jun 12 02:30:58 the changes sometimes are just about the time the user save. so the views can have the same states (checkbox, edittexts) but when i hit save it will have another hour. Jun 12 02:30:59 groxx, i thinks same conclusion Jun 12 02:31:03 You need to read your "data model" only, not the UI. Jun 12 02:31:08 abara: ah. don't base it off view state. when they check a box or add text to a field, change the data model that you're using to create the list. whenever appropriate, send the current state of the data to the server. Jun 12 02:31:38 groxx: i'm using rest api to get/set data Jun 12 02:31:43 abara: if you have a bunch of unique fields, e.g. in a settings screen or something, you probably just want to use LinearLayout (unless there's like 100 of them). Jun 12 02:32:15 groxx: it's not a hundred. but it's a irregular interval Jun 12 02:32:40 abara: where you get the data / what you do with it / where it goes next is 100% irrelevant. use the data however you have it to fill the views when you bind data to them, on demand. if the data changes, .notifyDataSetChanged() to reload it and show the new state. Jun 12 02:33:53 i notify at the end of the loop which populate the listview Jun 12 02:34:10 that sounds completely incorrect for how listview works Jun 12 02:34:26 or, which loop? when filling the data you're using to fill the adapter? Jun 12 02:34:45 yes. this loop. Jun 12 02:35:15 but i think i get idea of the models Jun 12 02:35:36 i will something like that for now. thanks for the highlight Jun 12 02:35:56 lemg_mx, groxx thanks Jun 12 02:36:06 devuser: interesting. must be a new thing... Jun 12 02:36:26 cool Jun 12 02:36:49 my andorid client works... but only when server send json with tag "data" Jun 12 02:36:53 devuser: is both your GCM library _and_ the device's Google Play Services up to date? I assume it needs to be recent enough to interpret the notification Jun 12 02:37:33 i follow this guide https://developers.google.com/cloud-messaging/android/client Jun 12 02:38:04 historically (unless I've completely missed this feature), you've had to handle _all_ details of how you interpret GCM messages. it has always just been "data", no notification fields Jun 12 02:39:12 groxx, i use this example... https://github.com/googlesamples/google-services/tree/master/android/gcm it's last example i think Jun 12 02:40:35 devuser: hm. how do you mean "works"? do you get any calls to onMessageReceived with a notification field, or is there something else you're looking at? Jun 12 02:41:13 my app receive Push :) Jun 12 02:42:34 and i receive message in onMessageReceived, but when server , our server application, sends json with only tag 'notification' my app doesn't receive push Jun 12 02:42:51 "doesn't receive push" means "onMessageReceived is not called"? Jun 12 02:43:01 yes Jun 12 02:43:27 that _might_ be normal... not sure. do you get a notification? Jun 12 02:43:44 no Jun 12 02:44:37 when our server application sends notification type message i don't receive message, nothing Jun 12 02:45:08 abara, doing it wrong Jun 12 02:45:11 hm :/ not sure, I haven't used the new stuff yet, sorry. hopefully someone else has tried it? Jun 12 02:45:15 abara, use a proper data model Jun 12 02:51:04 groxx, in this guide https://developers.google.com/cloud-messaging/server "Which should I use?" paragraph... Jun 12 02:51:35 "Use notifications when you want GCM to handle displaying a notification on your Android client app’s behalf," **** ENDING LOGGING AT Fri Jun 12 02:59:59 2015