**** BEGIN LOGGING AT Thu Jun 23 02:59:57 2016 Jun 23 03:00:31 using recyclerview Jun 23 03:00:53 ah nvm it wasnt in autocomplete Jun 23 03:00:56 will test Jun 23 03:09:20 shmooz: no that doesnt seem to work Jun 23 03:29:06 Rena: no, this is not the right place Jun 23 03:35:54 i would think, when pecking an email on the gmail app, that the keyboard ould autosuggest words i have already used in past messages, even contextually with a recipient Jun 23 03:36:29 but it seems not so. i'd think this is low hanging fruit in AI Jun 23 03:37:19 I have yet to find a keyboard app I like Jun 23 03:37:26 what the hell, why is autoscrolling an RV to the bottom so complicated Jun 23 03:37:38 literally all SO answers dont even address the question Jun 23 03:40:01 orbyt_ before one begins an endeavor on android, they must check SO to see if its documented :) Jun 23 03:40:47 Yea pretty much Jun 23 03:41:05 tbh i would turn to SO for any platform before the docs Jun 23 03:41:06 but there is so much noise on SO, 0 votes 0 answers Jun 23 03:41:17 meh Jun 23 03:41:26 when i search google SO comes up before d.android.com mostly Jun 23 03:41:32 Yup Jun 23 03:41:55 google personalizes results based on usage trends so Now most of the first page is SO for me =/ Jun 23 03:42:20 not that thats a bad thing at all Jun 23 03:42:24 just saying Jun 23 03:42:27 if SO went down we'd all be screwed :D Jun 23 03:42:33 heh Jun 23 03:45:40 I'm trying to remember how writing code was done before StackOverflow and Github and drawing a blank Jun 23 03:47:34 * pfn rarely uses stackoverflow Jun 23 03:48:09 I do all my coding with copy/pasting StackOverflow Jun 23 03:49:15 sounds like the typical developer these days Jun 23 03:51:30 * CedricBeust is very typical Jun 23 04:09:26 I guess they went down once Jun 23 04:09:44 and last backup was like 6 months from that incident Jun 23 04:09:46 so... Jun 23 04:10:35 CedricBeust, no seriously. Sometimes I worry that i'm THAT developer that only copies and pastes things Jun 23 04:11:03 I was raised during the stackoverflow era. I have no idea how you guys did it Jun 23 04:11:12 Actually, the things I mostly copy/paste are build.gradle snippets. I still don't get gradle, so StackOverflow is a godsend Jun 23 04:12:00 RustyShackleford in previous eras, i think companies took documentation much more seriously. often it was printed in a book and delivered with the tools you got on CD Jun 23 04:12:22 sometimes you could but cd only or cd + books :) Jun 23 04:12:56 i was raised in the borland era, and they were amazing Jun 23 04:13:23 I once almost went to work for Inprise Jun 23 04:14:06 i'm actually becoming the gradle expert at work Jun 23 04:14:12 people are baffled by it Jun 23 04:14:31 well it is baffling :) Jun 23 04:14:34 RustyShackleford: Ready for the shift to Gradle Kotlin? Jun 23 04:14:58 replacing groovy with kotlin? Jun 23 04:15:07 no way man, use JS ! Jun 23 04:15:21 RustyShackleford: You need to keep yourself up to date man Jun 23 04:15:43 Actually the Kotlin guys are at the Gradle summit in SF as we speak Jun 23 04:16:08 (and girls) Jun 23 04:16:10 CedricBeust do you think they would just rewrite the whole thing in kotlin ? Jun 23 04:16:22 i'm hoping this whole kotlin thing will just blow over Jun 23 04:16:27 lol Jun 23 04:16:31 i don't want to have to learn new things to stay relevant Jun 23 04:16:35 No, but they are switching to Kotlin for the build file syntax Jun 23 04:17:13 back in my day we wrote our gradle scripts in groovy and we liked it that way Jun 23 04:17:17 i'll sit this one out and wait until I can write gradle extensions with Frege Jun 23 04:17:32 g00s: Hope you have Netflix Jun 23 04:17:36 XD Jun 23 04:19:30 I still have a book on my bookshelf - I have a bookshelf! it has books on it! - which I probably haven't opened in a decade: ANSI C in UNIX Jun 23 04:26:17 this book was written by "Vinod Sankaranarayanan" ... i wonder if thats a typo Jun 23 04:26:56 http://www.informit.com/store/software-ownership-transfer-evolving-knowledge-transfer-9780134181080 **** BEGIN LOGGING AT Thu Jun 23 04:35:24 2016 Jun 23 04:44:18 so kotlin is next groovy now ? :P Jun 23 04:45:35 CedricBeust i find it amazing that Atom, being a big piece of SW, seems to work ok - given that its JS. I wonder if it will eventually become something like bugzilla , an incomprehensible mess nobody wants to touch Jun 23 04:45:55 i think MS uses Typescript for VS Code, but not sure Jun 23 04:49:47 and light table uses clojure Jun 23 04:50:00 but all have electron in common ;) Jun 23 04:50:53 i want to check out electron Jun 23 04:51:09 it should die Jun 23 04:51:18 heh Jun 23 04:51:39 seriously, using chrome to make text editor ? Jun 23 04:51:42 cmon Jun 23 04:51:44 ;) Jun 23 04:53:55 gordon_ the IRC client i am using, Textual, is mostly just a GUI on top of webkit. There are plenty of apps like that ... Jun 23 04:54:14 damn, mine uses cli client :( Jun 23 04:54:21 writing textual clone with electron would be kinda fun Jun 23 04:54:39 yeah Jun 23 04:54:43 and -600mb in ram :D Jun 23 04:55:03 Here's 25c, go buy yourself a Gb Jun 23 04:55:24 yeah, and laptops has memory soltered un Jun 23 04:55:26 *in Jun 23 04:55:33 I will buy whole laptop Jun 23 04:55:36 ;) Jun 23 04:56:26 there are good toolkits like qt, gtk, wxwidgets Jun 23 04:56:31 and people use electron Jun 23 04:56:40 looking here, Atom is taking ~160mb ; 100mb helper 60mb for another process Jun 23 04:57:00 and it's doing like nothing ? Jun 23 04:57:19 its doing what code editors do, show text :) Jun 23 04:57:36 Mostof that memory is probably trying to make sense of a Javascript source Jun 23 04:58:08 and i have a bunch of plugins, like that sublime text overview visualization, project switcher, etc Jun 23 04:58:30 I should learn emacs ;P Jun 23 04:58:38 nah Jun 23 04:59:03 too mainstream ? Jun 23 04:59:12 Not that useful in 2016 Jun 23 04:59:22 and I say that as someone who was writing elisp in the early 90s Jun 23 05:00:10 does it complete code ? yes Jun 23 05:00:20 can it reformat code ? yes Jun 23 05:00:32 dont know about refactoring Jun 23 05:00:57 emacs, just like vi, is a text editor. Not a code editor. It can't refactor. Jun 23 05:05:50 vi is just editor but emacs has lisp interpreter in it and a lot of extensions Jun 23 05:06:01 it might be able to refactor Jun 23 05:06:04 the reason i tried atom / vs code, was i wanted something between editor and full IDE. both of these are great for leaving open, with a project-switcher plugin, and navigation a large number of files. Jun 23 05:06:29 gordon_: No it can't. Not until it can understand bytecode. Which it never will. Jun 23 05:07:53 g00s: sublime text maybe? Jun 23 05:07:54 they also have that nice behavior, where you click on a file to preview it, double click to load- so you can poke around a lot and not open all these tabs Jun 23 05:08:19 CedricBeust: well.. there's ensime for emacs Jun 23 05:08:22 teasp00n used ST for a little, think the project will run out of steam eventually Jun 23 05:08:40 g00s: thats a shame. it seems a nice editor actually Jun 23 05:08:42 dont know how powerfull it is now Jun 23 05:09:03 atom took the good parts of ST Jun 23 05:09:22 but i'm most impressed with VS Code, its pretty damn sweet with autocompletion, etc Jun 23 05:09:54 VS code targeted towards JS work or is it fairly agnostic? Jun 23 05:10:04 C#, other languages Jun 23 05:10:36 it has basic highlighting / formatting for a bunch Jun 23 05:11:23 it also has a Git perspective, Debug view, search view. Jun 23 05:11:41 so 4 perspectives. nice sweet spot between editor and IDE Jun 23 05:12:33 distraction free mode in AS is pretty sweet for hiding away all the cruft while youre editing Jun 23 05:12:42 yeah Jun 23 05:12:57 I installed it yesterday Jun 23 05:13:07 seems nice but microsoft scares me :P Jun 23 05:13:29 lol. i like them. theyre doing some cool stuff lately Jun 23 05:13:42 fishy Jun 23 05:13:47 just too fishy ;) Jun 23 05:14:03 * g00s smacks gordon_ with large trout Jun 23 05:14:17 you can smack me all day Jun 23 05:14:25 but robovm is still dead ;D Jun 23 05:15:11 JEE seems pretty dead too. newsflash: companies abandon stuff :) Jun 23 05:15:20 lol, google especially Jun 23 05:16:12 i'm still wondering if google already gave up on brillo / weave Jun 23 05:16:41 g00s: robovm is not dead technically Jun 23 05:16:52 MS has bought them Jun 23 05:17:00 MS folded teh project Jun 23 05:17:07 so probably they're working on xamarin now Jun 23 05:36:06 morning Jun 23 05:39:12 can someone give me a layman's explanation to TabWidget vs TabLayout vs FragmentTabHost vs PagerTabStrip? Jun 23 06:52:10 how would i make it so i can add to this list elsewhere instead of kinda staticallly inside of it? wouldnt i have to move the list? http://ideone.com/8mYpUR Jun 23 07:02:36 huh? Jun 23 07:04:19 is it still possible to build with command-line tools? Jun 23 07:06:21 Ashiren, here is my approach. not done yet though. http://ideone.com/ulMZtP Jun 23 07:12:44 impulse: absolutely Jun 23 07:20:08 Good morning. I was wondering if anyone could recommend an android camera plugin, my goal is to implement camera functionality similar to that of instagram Jun 23 07:22:45 Leeds: thanks Jun 23 07:23:25 what have i missed? Jun 23 07:23:42 every bullet so far Jun 23 07:34:20 How does Android support C++ applications if it runs a virtual machine? Jun 23 07:37:02 purplex88: it runs native code outside the VM? Jun 23 07:38:11 Does it have to use completely different set of non-Java APIs? Jun 23 07:38:12 how the world can be real if our eyes arent real Jun 23 07:38:20 lol Jun 23 07:38:45 Ashiren: eyes aren't? Jun 23 07:38:58 have you seen your eyes directly? Jun 23 07:39:15 In the mirror, yes Jun 23 07:39:40 and yes, it uses different APIs Jun 23 07:45:45 hello,anyone here used PrerencesFragmentCompat ? , i see recyclerview null in here http://paste.ubuntu.com/17735450/ Jun 23 07:48:08 purplex88 ART is not a vm Jun 23 08:13:25 I'm looking for a 'falling confetti lib' but I can't find one. Where do you guys look for libs (pls don't say Google :p) Jun 23 08:13:36 android arsenal Jun 23 08:13:38 FrancescoV: Bing? Jun 23 08:13:54 for real? :p Jun 23 08:14:01 altavista? Jun 23 08:16:28 duckduckgo Jun 23 08:16:45 I used android arsenal before, but it would be easier to see all small examples at ones in stead of clicking through them, but thnx anyway ;) Jun 23 08:16:49 FrancescoV: describe what you need more clearly Jun 23 08:17:22 I need an Android variant of this: https://github.com/sudeepag/SAConfettiView Jun 23 08:19:04 ugh... Jun 23 08:19:58 well, looking at it's code, you can make android version by yourself ;P Jun 23 08:21:20 it's like.. one class Jun 23 08:21:23 and 4 images Jun 23 08:21:59 gordon_ true but I haven't much experience Animation stuff & I have a short deadline.. It's just an option Jun 23 08:22:27 I'll try it myself if I have some time left Jun 23 08:22:48 understand Jun 23 08:23:19 always those deadlines.. :p Jun 23 08:24:02 true Jun 23 08:26:08 when i launch my app there are a few input fields. the first one alwys opens the keyboard. how do i stop it doing tht so u have to click the keyboard first instead of it automatically happening Jun 23 08:28:56 thornekey: http://stackoverflow.com/q/1555109/1723525 Jun 23 08:31:38 JakeWharton, can we join that Android Study Group community? Jun 23 08:48:13 thanks FrancescoV Jun 23 08:49:19 Anyone had experience with Android BLE, specifically trying to set the permission? disable notification, enable notification, enable indication Jun 23 08:49:38 I can't seem to set the permission Jun 23 08:55:59 This method returns a nullpointerexception: descriptor.setValue(BluetoothGattDescriptor.ENABLE_NOTIFICATION_VALUE Jun 23 08:56:26 so what I did was check to see if descriptor was null or not by printing out a message in the console if it was or not and nothing is printed out :D Jun 23 09:15:57 Nevermind, I think there was an issue with Instant Run which wasn't deploying my print to console methods Jun 23 09:30:44 Any recommendations on best dex method count for Android Studio? Jun 23 09:36:56 markyosullivan: I think there was a session about Android Studio on Google I/O 2016 where there was some info about dex stuff Jun 23 09:40:06 markyosullivan, http://www.methodscount.com/ they also have a gradle plugin, and iirc Android Studio should be able (soon? if it's not already the case) displays the count too, you should learn to search Jun 23 09:47:59 adq: I seen that but I thought I'd ask here for recommendations, thanks! Jun 23 09:49:09 does it not show you the method count for the project as well instead of just the libraries? Jun 23 09:49:53 Good morning guys Jun 23 09:55:07 I have set up my android development environment, and can now run a blank-activity on my phone, and that works well. I am following the android training supplied by google: https://developer.android.com/training/basics/firstapp/starting-activity.html And here I run into an error. This is my stacktrace (or gtfo yeah) https://dpaste.de/5dHL#L3 I thin Jun 23 09:55:07 k line 3 shows me that Im attempting to enter my package twice, which is incorrect. Jun 23 09:56:25 Am I managing the 'locations' of my files correctly, or should I remove my name from it/ Jun 23 09:57:03 Because when I look at my folder tree, it is src/main/java/nl.aukeroorda.auke.worldmapping/... Jun 23 09:57:16 but in the android tutorial they never put their name anywhere Jun 23 09:58:45 which line of code exactly? Jun 23 09:59:05 Hmm, I am trying to figure out how to find that actually Jun 23 09:59:19 My log doesn't show the line number from which the error occured Jun 23 09:59:42 Or I am just unable to find it yet Jun 23 10:00:49 paste the code Jun 23 10:00:57 Oke, my bad. I could find the line number a bit further down Jun 23 10:01:38 I tried to call getIntent() before the onCreate() function, and I got an NPO Jun 23 10:18:02 Is there a launch command to run your app with a specified locale language? Like -values-nl Jun 23 10:18:15 or do you have to change the system language on your device Jun 23 10:22:39 23402 methods :| Jun 23 10:40:43 hithere Jun 23 10:41:14 few days ago I was wondering how developers with EU users solve privacy policy Jun 23 10:41:21 markyosullivan: What kind of application are you developping that you have so many methods? Wow Jun 23 10:42:08 That's not even much :P Jun 23 10:43:34 for some hidden reason nobody reflected my question - I probably know why ... do not want to close this "topic" Jun 23 10:45:38 therefore I have asked fabric support with following questions http://pastebin.com/M6GDw4S3 Jun 23 10:49:02 the have answered it, so if anyone's interested - let me know Jun 23 10:49:08 bolovanos, i think that if you don't collect anything personal (lastname, firstname, etc) or identification data like IP address, you don't have to do anything but it cannot hurt to tell your user that you're tracking some meta-data Jun 23 10:49:16 yeah i'm interested bolovanos Jun 23 10:49:26 I just found a new podcast called Android Intelligence! woohhoooo Jun 23 10:51:29 adq, ad (lastName, ...) I will not collect such information intentionally, who knows what is fabric.io collecting Jun 23 10:51:35 adq, http://pastebin.com/T9rnP9eT Jun 23 10:51:54 even with fabric, you cannot collect that intentionally with customevent for example or custom properties Jun 23 10:52:03 but they don't do it Jun 23 10:52:08 thx reading it, bolovanos Jun 23 10:52:18 err s/cannot/can/ Jun 23 10:52:20 adq, let me know when you finish - have some questions Jun 23 10:52:32 lol Jun 23 10:52:41 basically, they don't want to answer Jun 23 10:52:46 yes :) Jun 23 10:53:00 bolovanos, i think google has something about it Jun 23 10:53:09 so :( Jun 23 10:53:10 since there is also a privacy policy "checkbox" Jun 23 10:53:19 when you publish an pk Jun 23 10:53:28 you mean when you start your android for the first time? Jun 23 10:53:35 oh Jun 23 10:53:38 https://play.google.com/about/developer-content-policy/ Jun 23 10:54:02 hmm, not that link Jun 23 10:54:12 https://play.google.com/about/privacy-security/user-data/ Jun 23 10:54:17 well, just one link after Jun 23 10:55:14 bolovanos, no, when you publish an apk, in the store linking, you can provide a policy link (if needed) Jun 23 10:55:26 which is visible to the user when he browses your app in the store Jun 23 10:56:15 ok - that is similarly stupid and alibistic as it is with https://developer.android.com/studio/publish/preparing.html "...Consider preparing an End User..." Jun 23 10:56:48 it's not stupid, it's pretty clear on the latest link i posted Jun 23 10:57:27 it's a shame fabric does not assist users who use their "data collection" tool to define clear case about when a privacy policy is needed or not Jun 23 10:58:09 yes - it is clear that it is advised have EULA and fulfil needs for privacy policy Jun 23 10:58:37 but as long as I am not lawyer I do not know how to do that Jun 23 10:58:43 if you know what I mean Jun 23 10:59:28 in that email from fabric - they have posted twitter privacy policy - not the fabric.io - do not know why Jun 23 10:59:28 looks like there are already privacy generators online, like http://www.iubenda.com/en/mobile Jun 23 10:59:46 " For how Twitter itself provides..." what? Jun 23 10:59:53 probably better than nothing, but yeah, except if you are or know a lawyer, you cannot know if it's sufficient or not Jun 23 11:00:04 bolovanos, because fabric belongs to twitter Jun 23 11:00:05 adq, yes I was there few days ago - bookmared it, but there is none for fabric.io Jun 23 11:00:26 adq, they have opened case for fabric.io on their blog Jun 23 11:00:57 i stand to what i said anyway, if you don't collect personal or sensitive stuff (yes, IP address is personal or sensitive) Jun 23 11:01:06 you're good to go i believe, but again, i'm not a lawyer ;) Jun 23 11:02:35 bolovanos, you could also look what others 'famous' apps are doing when it comes about privacy policy Jun 23 11:02:54 guess none of us is - those big companies creating such software do not care about correct PP for their users and they are just postponing it to developers - easy prey Jun 23 11:03:22 adq, yes I am doing some parallel research on privacy policy in other apps I am using Jun 23 11:03:45 small developers seems to me does not care - they do not have even basic EULA Jun 23 11:04:16 guess many of such developers use analytics, fabric like libraries to create better app Jun 23 11:04:23 bolovanos, example of a random one: https://play.google.com/store/apps/details?id=com.tencent.mm link to http://www.wechat.com/en/privacy_policy.html Jun 23 11:04:25 but they are not mentioning it Jun 23 11:05:09 but as you see, they collect lot of sensitive stuff Jun 23 11:05:15 like.. "ip address" Jun 23 11:06:24 yes - if they know it - they can declare it, but again fabric is collecting something and what they want me to do is to adopt their responsibility Jun 23 11:06:46 ... my "guess" Jun 23 11:07:03 well, you have to read what they collect Jun 23 11:07:09 it's explicitly stated Jun 23 11:07:14 it's long and boring Jun 23 11:07:32 you can be sure they are protecting their ass properly Jun 23 11:07:35 and than create new privacy policy for their privacy policy that already exist Jun 23 11:08:03 but it seems to me as mission impossible as I am no layer Jun 23 11:08:13 bolovanos, https://try.crashlytics.com/terms/ Jun 23 11:08:22 https://try.crashlytics.com/terms/privacy-policy.pdf etc Jun 23 11:09:27 adq, what do you thing about that sentence "...you are welcome to review the Twitter Privacy..." Jun 23 11:09:49 oO Jun 23 11:09:55 it is not clearly said that I can almost copy paste their privacy policy and use it in mine EULA Jun 23 11:10:13 i'm not sure you are understanding properly why you need a privacy policy Jun 23 11:10:19 and if you need one Jun 23 11:10:34 first, check what "the service" is collecting, it must be stated somewhere Jun 23 11:11:06 what is clearly said - almost in each sentence (this is really hot topic for them) that they cannot be responsible in any way Jun 23 11:11:13 "What information does Crashlytics collect from End Users?" Jun 23 11:11:16 ^ did you read that? Jun 23 11:11:26 problem is ppl are lazy to read Jun 23 11:11:38 and i cannot fix that, nor read for them the whole stuff, which is boring and long Jun 23 11:11:41 but i did it Jun 23 11:12:11 the answer starts with: "The Services automatically collect certain information that does not personally identify End Jun 23 11:12:11 Users who access or use mobile applications that use the Services" Jun 23 11:12:17 and then, they describe what is collecting Jun 23 11:12:21 what is being* Jun 23 11:13:06 you realize that if they were too intrusive, it would be problematic for them to justify to ppl who read these long & boring privacy policy to use their service Jun 23 11:13:16 adq, "sure you are understanding properly why you need" - my amateur understanding - I need it save ma back, because I am using something that is collecting something in time I trying to clarify it, which can be canged without warning any time during app lifetime Jun 23 11:13:41 what you ask is very legit bolovanos, don't worry Jun 23 11:13:51 as you noticed, most ppl don't even care, until they have problem Jun 23 11:14:08 and most big companies are already covered with an army of lawyers to prevent any of that Jun 23 11:15:09 my only advice is first, read Jun 23 11:15:12 "We require that all Developers maintain a privacy policy that fully and accurately discloses the Jun 23 11:15:12 type of information collected, and that the information is shared with third party service providers Jun 23 11:15:12 like Crashlytics. However, Crashlytics does not require Developers to disclose that information Jun 23 11:15:12 is shared with Crashlytics in particular, so Developers’ privacy policies might not name Jun 23 11:15:12 Crashlytics specifically" Jun 23 11:15:19 adq, "The Services automatically collect " which is a lye because they must have at least logs with IP's which is personal data anyway - am I right? Jun 23 11:15:23 second, understand what you need Jun 23 11:15:29 third, act consequently Jun 23 11:15:41 bolovanos, why would they lie? Jun 23 11:15:49 it would be a fellony Jun 23 11:16:57 ok - stick word probably between is a and lie - I do not work there, so I do not know it Jun 23 11:17:15 it is my guess based upon how communication between devices works Jun 23 11:17:54 if it were that clear - why would they behave on support the way they did? Jun 23 11:18:39 for the ip address, they don't mention it anyway Jun 23 11:18:52 on the contrary, they mention "the physical location of a Jun 23 11:18:52 device at the time of a crash." Jun 23 11:19:15 so instead of doing geolocation against an IP they would collect, they directly retrieve the location from the device (when possible) i believe Jun 23 11:19:30 which avoid sending data which can identify the users Jun 23 11:19:51 if it were that clear - why would they behave on support the way they did? <- because it's not their problem Jun 23 11:20:05 it's stated in their document too, the property of collected data is the responsability of the developers Jun 23 11:20:09 just read, ffsake Jun 23 11:20:24 of course, they mine data, but it's another story Jun 23 11:21:43 I admit that I have not red it yet - because I was hoping for some right and fast solution (I know those are rare...) Jun 23 11:22:00 well, this topic is rarely debated here :) Jun 23 11:22:52 so Instead of writing unqualified privacy policy based on their policies I was hoping for something else Jun 23 11:22:56 bolovanos, if you are unsure, just provide a privacy policy covering everything Jun 23 11:23:01 better safe than sorry Jun 23 11:24:06 but what i'm trying to highlight is you should read terms of what you plan to use Jun 23 11:24:16 adq, bit personal question - you as a developer did that on your own, or you have paid bunch of lawyers to create bullet proof PP and EULA Jun 23 11:24:24 sometimes, i just avoid a service so obnoxious the terms are Jun 23 11:24:44 bolovanos, i did not because i don't collect anything sensitive enough in my opinion Jun 23 11:24:55 though i'm using crashlytics/fabrics on few projects Jun 23 11:25:10 adq, of course I will read it, but the way brain works, and the way these documents are written - not easily understandable for normal human beings Jun 23 11:26:16 as a last example, some acquaintances i know working at levelup: http://levelupstudio.com/en/privacy-policy Jun 23 11:26:21 they did what crashlytics recommended Jun 23 11:26:34 they just state they don't collect anything personal, except device model blablabla Jun 23 11:26:48 (they are based in the EU) Jun 23 11:27:18 nice, clear - but who knows what EU based court would say to that Jun 23 11:27:35 how would i know!!! Jun 23 11:28:13 as far as I know - no such case has been taken to court, correct me if I am wrong Jun 23 11:28:42 adq, not saying that you have to know - just stating how tricky it is Jun 23 11:28:45 i'm not tracking such cases lol, and legislations differ a lot depending on the country Jun 23 11:29:04 adq, not user why they do not name that third party and link its actual PP Jun 23 11:29:22 because if you _read_ Jun 23 11:29:31 fabric said you don't have to name them if you don't want Jun 23 11:29:38 let's close this topic. Jun 23 11:29:49 which means you can Jun 23 11:30:03 what's the point? Jun 23 11:30:08 and that's what I am going to do Jun 23 11:30:14 that's my point Jun 23 11:30:22 thank you for your assist! Jun 23 11:30:29 sure, np Jun 23 11:39:02 Hi, I'm extending a FrameLayout and want to save it's state when the app rotates/restarts. Jun 23 11:41:49 I'm saving my state inside onSaveInstanceState(), and reading it on onRestoreInstanceState(), but I don't get the Bundle I'm creating back on rotate, but something else! code: http://pastebin.com/Q1zEwBgS Jun 23 11:42:59 am I doing something wrong? Jun 23 11:45:26 in AS how can I highlight the current tab file in the project files navigator? Jun 23 11:48:32 @g Jun 23 11:49:25 @gdrc click the "Scroll from Source" button (a round "target" icon) in the projects navigator Jun 23 11:49:34 at the top, the first one from the left Jun 23 11:49:59 thanks you Jun 23 11:51:53 Hi guys. I have encountered a weird bug concerning fingerprint drivers / fingerprintd (msm_rng) on Quallcomm processors. Has someone here worked on this, or maybe OEM implementations that I can discuss this with? Jun 23 11:57:10 adq, btw - that pp you have been reading - is no longer usable - since Twitter bought it, they have own PP for that product https://fabric.io/privacy, trying to read it, but so far - did not find any information clear information on what is being collected as it was with that crashlytics PP Jun 23 11:58:39 How would you classify a fingerprinting bug? Developer bug report? User bug report? Security bug report (although not a direct vulnerability.) Jun 23 11:59:29 depends on the nature of the bug Jun 23 11:59:50 It basically makes the fingerprint sensor unusable for a while Jun 23 11:59:57 if it's a true negative allowing user to log in with a fingerprint not belonging to them, it's a direct vuln Jun 23 12:00:11 if it's a false positive preventing legit user to auth, it's a bug Jun 23 12:00:26 ok so bug: developer / user? Jun 23 12:00:48 it's hard to reject fault on the user, if the user has a greasy finger however.. Jun 23 12:01:05 I think I'll go with developer Jun 23 12:01:19 you need to provide more info, cannot decide Jun 23 12:01:20 Since I know what causes the problem, but don't have enough info to do something about it Jun 23 12:01:25 k Jun 23 12:06:23 in a custom view that extends FrameLayout I'm saving my state inside onSaveInstanceState(), and reading it on onRestoreInstanceState(), but I don't get the Bundle I'm creating back on rotate: http://pastebin.com/Q1zEwBgS Jun 23 12:06:47 shouldn't I get my Bundle back on restore? Jun 23 12:11:45 if i start a service, and in the next line start an activity. is there a guarantee the service will be running when the activity reaches its onCreate() ? Jun 23 12:11:53 so it seems if I extend a "EditText" instead of "FrameLayout" it works exactly as expected and I get my Bundle back Jun 23 12:11:59 (provided i do not kill it first) Jun 23 12:14:48 are you supposed to NOT store state for layouts maybe? Jun 23 12:17:04 the id in the layout is unique, I double checked Jun 23 12:24:59 ok so I tracked the issue to the fact that I'm adding a GLSurfaceView() as a child... if I don't add it it returns my Bundle Jun 23 12:26:32 xorgate: im not sure but i dont think so, nothing is guaranteed in android world Jun 23 12:27:57 yeah that's probably true Jun 23 12:28:11 Here's the fingerprint issue: https://code.google.com/p/android/issues/detail?id=214045&thanks=214045&ts=1466684867 Jun 23 12:28:17 A service is "started" when an application component (such as an activity) starts it by calling startService(). Once started, a service can run in the background indefinitely, even if the component that started it is destroyed Jun 23 12:48:00 Using Android Wear Emulator it throws this error 'GoogleApiConnectionException: ConnectionResult{statusCode=SERVICE_VERSION_UPDATE_REQUIRED, resolution=null, message=null}' Jun 23 12:48:13 how can I update google play services on emulator Jun 23 12:48:14 ? Jun 23 12:51:29 setup an emulator with the google apis and make sure you have the google play services installed Jun 23 12:56:04 dsardari: did say this answer out of your mind? Jun 23 12:57:21 Moshdev, you cannot, you must use the most up-to-date emulator Jun 23 12:57:48 or downgrade your wear playservices Jun 23 13:05:35 hi Jun 23 13:05:44 anybody can help me with Android Annotations? Jun 23 13:06:20 i have @FragmentArg field, how i can get it inside my @AfterViews ? Jun 23 13:11:21 Moshdev: i think it will update them if you can start the playstore on the device. maybe need to log in using a google account Jun 23 13:11:49 xorgate: its Emulator not real device Jun 23 13:12:00 same difference Jun 23 13:14:23 you mean i should install play store? Jun 23 13:15:10 you cannot install the playstore on wear emulator. Jun 23 13:16:24 oO Jun 23 13:19:02 is it possible to fake incoming call on a real device? or do i actually have to call it Jun 23 13:26:22 http://stackoverflow.com/questions/4964703/fake-incoming-call-android Jun 23 13:28:49 Hello everybody! I'd like to temporarily and programmatically add/remove a widget to/from my lock screen how can you do this? Jun 23 13:35:26 That's only spported for API 17-21. Jun 23 13:35:43 or rather 17-20, as it was removed in 21. Jun 23 13:37:34 So there's no way to add your ow widgets to the lock screen anymore in the newest versions of android? Great.. Jun 23 13:39:51 LameName123: why do you want to do that? Jun 23 13:41:46 barq: you mean that it used to be possible to fake a call on devices? i now run marshmallow so i missed the boat? Jun 23 13:41:57 Well to be honest I want to make my own media player and I wanted to make my own widget to pause/resume etc from the lock screen. I know that there is some other way to do it but I somehow don't get it working.. Jun 23 13:42:50 xorgate: That was for the other question Jun 23 13:42:54 you can still fake calls Jun 23 13:45:58 not sure how though.. all documentation refers to emulators Jun 23 13:47:27 Did you try the link I pasted? Jun 23 13:47:30 It works for me. Jun 23 13:47:35 adb shell am start -a android.intent.action.CALL tel:1112223333 Jun 23 13:48:58 Does anyone know what style the background color of a notification is stored in? I was only able to find this: http://stackoverflow.com/a/4935191/2209268 which covers the text color but the background color always shows black even on devices that default the background of notifications to white. Jun 23 13:57:38 Well, hello again :D any idea how to properly use layout resource subfolders? I made some and used res.srcDirs in the build.gradle, but not inside the files in the subfolders it doesn't seem to want to use URI stuff like xmlns:android="http://schemas.android.com/apk/res/android" Jun 23 14:12:26 Inari-: paste your gradle sourceSets Jun 23 14:13:39 dsardari: http://pastebin.com/xTHy7uR6 Jun 23 14:17:51 Anyone ever had � printed out in their console on Android Studio? Jun 23 14:18:08 Not sure what format that is Jun 23 14:26:16 <_kw> in my webview my app seems to trigger my onShowFileChooser handler rather than my old openFileChooser event (that's not called, even when I have no onShowFileChooser). I'd much prefer the latter, since it also works in older android versions (pre 5.0) Jun 23 14:26:20 <_kw> what gives? Jun 23 14:27:20 Inari, try to switch your sub-folder and layout. so /layout/activites -> /activities/layout Jun 23 14:28:42 Hi, it is possible to disable debug apk build? Jun 23 14:29:19 dsardari: that order wouldnt make any sense though xD Jun 23 14:29:40 In my build.gradle theres only "release" under "buildTypes" Jun 23 14:31:55 Inari-: try it. layouts/activities/layout/activity1.xml Jun 23 14:40:56 Is it bad practice to make an Activity or Fragment Serializable? Jun 23 14:41:22 Doesn't get worse than that. Jun 23 14:42:40 My Fragment implements a Listener and is passed to the Activity. However, when the Activity is destroyed and recreated, this listener is null Jun 23 14:43:08 And I have many different fragments that all implements this ListenerInterface Jun 23 14:43:28 Otherwise I could just move the startActivityForResult and onActivityResult from the Activity to the Fragment. Jun 23 14:45:12 I could store the id of the listener and then just reinitialize it Jun 23 14:53:26 you cannot make it serializable period Jun 23 14:55:09 So it would be better not to have the Activity or Fragment implement the Listener, but have a separate ListenerClass Jun 23 14:55:29 And then use putSerializable in onSaveInstanceState to store it Jun 23 14:55:50 what's your listener for? Jun 23 14:55:51 wouldn't work Jun 23 14:56:00 listener cannot be serializable Jun 23 14:56:39 serializable is for storing state, not action Jun 23 15:00:06 Do the resource ids change frequently? Jun 23 15:00:08 In my app? Jun 23 15:00:28 Do they change when the app is opened? Jun 23 15:00:29 up until build tools 24 they change everytime you build Jun 23 15:00:39 they do not change at runtime Jun 23 15:00:42 Ah okay, thanks Jun 23 15:00:56 I'm trying to do something but I think I'm being an idiot Jun 23 15:01:06 I want to save the menu item that is selected in the nav drawer Jun 23 15:01:29 But the order of the menu could change, and if I use the resource id, when I update my app the stored id will be invalid. Jun 23 15:01:43 What's a good way of doing this? Jun 23 15:03:03 create a mapping of a constant value to the id Jun 23 15:03:11 store the constant value Jun 23 15:03:28 How do I create a mapping? Jun 23 15:07:22 static code Jun 23 15:08:17 hi Jun 23 15:09:21 pfn, still not sure what you mean. If the id changes wont the mapping change? Jun 23 15:09:44 it would, but doesn't matter if it changes Jun 23 15:10:28 So how would I create a mapping between a constant vlaue and a changing id? Jun 23 15:12:40 so like a constant value like ID_NAV_HOME = R.id.nav_home? Jun 23 15:12:55 I dont know what im doing Jun 23 15:13:43 dsardari: It's an interface not an Android listener Jun 23 15:21:53 Hmm, I have arrived at the 'Managing Activity lifecycle' part of this 'training':https://developer.android.com/training/index.html. Do you suggest that I should walk through this complete training, or look at a different starters guide for android? Jun 23 15:22:10 https://developer.android.com/training/index.html For some reason the link isn't working in previous line Jun 23 15:29:40 Probably a good idea to have a look at that. Jun 23 15:33:21 AKK9, start by knowing what you're doing :P Jun 23 15:34:18 AKK9, more along the lines of Map("home_nav_item" -> R.id.nav_home) and save "home_nav_item" as what the user selected Jun 23 15:43:54 hey all, is it necessary for the camera to show preview to the user before image capture? Jun 23 15:44:12 no Jun 23 15:44:42 are there any api restrictions related to it? Jun 23 15:45:21 I mean I have seen a lot of stackoverflow answers where people have used camera as a service and run it is the background Jun 23 15:46:18 then clearly your question has already been answered Jun 23 15:46:51 no, I haven’t tested it out for API 21 and above. Jun 23 15:47:06 actually I haven’t tested the code out at all. Jun 23 15:47:33 also what all optimizations can i do at various levels to improve battery life? Jun 23 15:53:19 hey all can anyone explain to me why the following if state is showing false in my watch yet its going in anyhow? if(device.getName.equals("LMU_4863022514")) when the device name is LMU_4863022511 as you can see the last digit is 1 not 4??? yet watch says false but the breakpoint lets it in? Jun 23 15:53:40 http://picpaste.com/Screen_Shot_2016-06-23_at_9.46.48_AM-Hzn4ihHZ.png <-- here is a screenshot of it Jun 23 15:57:53 no idea what you're going on about Jun 23 15:59:26 pfn my if statement says false yet when debugging it goes into it like its true Jun 23 15:59:37 so you claim Jun 23 15:59:44 but you provide no proof of what you claim Jun 23 16:00:05 could be the watches show the previous iteration :? Jun 23 16:00:09 the screenshot Jun 23 16:00:13 above Jun 23 16:00:16 your screenshot disagrees with what you said Jun 23 16:00:34 how? Jun 23 16:01:05 the watches show that device.getName is LMU_4863022510 and the equals is looking for LMU_4863022511 Jun 23 16:01:16 and also says its false Jun 23 16:01:52 if its something obvious I am missing it :( Jun 23 16:04:00 your screenshot still doesn't show that it's false Jun 23 16:04:28 http://picpaste.com/pics/Screen_Shot_2016-06-23_at_9.46.48_AM-Hzn4ihHZ.1466697584.png <-- this one? says its false in the Watches in the bottom right corner Jun 23 16:05:07 it doesn't show in your if block Jun 23 16:05:32 the current breakpoint is inside the if block Jun 23 16:06:13 otherwise, the code you're running is not the code you're debugging Jun 23 16:07:11 pfn, I am new to android studio I am not sure how to check that? Jun 23 16:07:20 If closed and reopened it still does it Jun 23 16:07:24 clean build and try again Jun 23 16:08:33 pfn, doesnt clicking on the little bug icon do a clean first? Jun 23 16:08:41 no Jun 23 16:08:45 no Jun 23 16:08:47 https://fccid.io/document.php?id=2808681 Jun 23 16:08:55 try to confirm the device info with adb Jun 23 16:08:56 ugh, wish there were some specifications for how this worked Jun 23 16:09:01 that nethome plus app is garbage... Jun 23 16:11:48 I guess I can reverse engineer... Jun 23 16:11:55 Zharf, sorry how do I do that? Jun 23 16:12:04 what Jun 23 16:13:25 confirm the device info with adb Jun 23 16:15:11 try asking the right person Jun 23 16:16:09 oh haha lol yeah :) sorry Zharf Jun 23 16:16:40 zhntr, sorry how do I confirm the device info with adb Jun 23 16:16:53 I guess thats what I get when I hit tab and dont actually look :) Jun 23 16:18:45 Hello Jun 23 16:18:50 I am Japanese Jun 23 16:19:06 I am Android apps developer Jun 23 16:21:20 use a client that doesn't suck, and that wouldn't happen, Crash1hd Jun 23 16:21:59 pfn, ahh like eclipse Jun 23 16:22:19 <_0xbadc0de> SQLiteDatabase Jun 23 16:22:29 <_0xbadc0de> create(SQLiteDatabase.CursorFactory factory) Jun 23 16:22:29 <_0xbadc0de> Create a memory backed SQLite database. Jun 23 16:22:48 <_0xbadc0de> how do I create a fisically backed up DB Jun 23 16:22:49 <_0xbadc0de> ? Jun 23 16:22:54 <_0xbadc0de> by name or something Jun 23 16:25:32 pass in a name Jun 23 16:26:07 https://developer.android.com/training/basics/data-storage/databases.html Jun 23 16:26:16 <_0xbadc0de> okay as far as I can see Jun 23 16:26:17 <_0xbadc0de> openOrCreateDatabase(File file, SQLiteDatabase.CursorFactory factory) Jun 23 16:26:22 <_0xbadc0de> should be thing called Jun 23 16:26:28 <_0xbadc0de> but about a file though Jun 23 16:26:53 <_0xbadc0de> which file should I choose, this is just for testing purposes though Jun 23 16:27:30 just name it whatever you want. it'll create it for you. Jun 23 16:30:08 Does anyone have any good Android Gui Beginner tutorials? Jun 23 16:39:39 Should I migrate my project into SDK 24 ? Jun 23 16:40:07 yes Jun 23 16:43:43 Crash1hd: I don't know what you are looking for exactly, but this might be something: https://developer.android.com/training/basics/fragments/index.html Jun 23 16:43:47 or you might already have read that Jun 23 16:46:14 <_kw> ok so reading up on the WebChromeClient, if I want file uploads to work correctly I should use onShowFileChooser, but that doesn't work on android < 5 right? Jun 23 16:47:44 <_kw> that would mean it won't work for over half our users Jun 23 16:48:26 <_kw> now there's also some hidden openFileChooser method to hook into for older ones apparently.. But will the two work together? Jun 23 16:52:29 aukeroorda, thanks :) looks perfect Jun 23 16:53:58 <_0xbadc0de> pErFeKtEn! Jun 23 17:01:35 orbyt_ So I always should use the latest possible version ? Jun 23 17:01:56 sure Jun 23 17:02:12 Hmm, am I right that I never have to store small textfields like user-name onPause()? Textfields that don't have to be saved when the activity is destroyed, but have to be persistent when pausing and resuming Jun 23 17:02:25 Because views are automatically storing their values? Jun 23 17:06:08 Do I put onRestart(), onStart(), onStop() and onDestroyed() all in the BlablaActivity.java file? Jun 23 17:06:57 orbyt_ But may I still using the same buildTools ? Jun 23 17:11:15 So I'm applying scaleX and scaleY to a YouTubePlayerFragment container view and it does not scale the video Jun 23 17:11:25 is it safe to use android.intent.action.MY_PACKAGE_REPLACED to detect app upgradation Jun 23 17:11:28 ? Jun 23 17:11:40 What are my alternatives? Is it possible to _actually_ resize the view? Jun 23 17:12:31 or do we have any best alternative ? Jun 23 17:14:39 a lot of simultaneous questions. 😂 Jun 23 17:14:50 Ja Jun 23 17:17:20 ohh cool emojis in IRC.. :) Jun 23 17:19:40 😂 Jun 23 17:20:13 🖕 ~ Jun 23 17:21:05 not that cool 🖕 Jun 23 17:21:22 hi Jun 23 17:21:40 hmm, never knew there was a middle 🖕 emoji Jun 23 17:21:52 in my directory gradle i have wrapper directory, but i dont have gradle-wraper.jar Jun 23 17:21:53 looks like shit in hexchat though Jun 23 17:21:55 how i can create it? Jun 23 17:22:23 has anyone ever had to work with large SQLite dbs before? I have a 100MB sqlite db that my application needs Jun 23 17:22:32 and SwiftKey doesn't know how to translate shit unto the 💩 emoji Jun 23 17:22:44 grekkos: that seems like BAAS will be better Jun 23 17:22:51 BAAS? Jun 23 17:22:52 than storing it client side Jun 23 17:22:56 BEAAS Jun 23 17:23:01 BEASS? Jun 23 17:23:02 backend as a services Jun 23 17:23:05 *service Jun 23 17:23:12 oh you mean to do it over the web? Jun 23 17:23:14 my irc logs are a 105mb sqlite database starting from december 2015 Jun 23 17:23:16 yep Jun 23 17:23:32 no, it's a dictionary requirement is to be client side so it works without network connection Jun 23 17:23:37 pfn: but that is accumulated, not downloadable Jun 23 17:23:45 http://imgur.com/gjzZSlB Jun 23 17:23:46 I tried to dump the youtube player view hierarchy to eventually find something but it doesn't work Jun 23 17:23:54 I don't know what to do >< Jun 23 17:24:03 thepoosh, meh, downloading it isn't a big deal Jun 23 17:24:06 I could add other web services on top of that but 100MB isn't too large since it's the bulk of the app Jun 23 17:24:07 especially if you don't want to run a backend Jun 23 17:24:16 fir you maybe Jun 23 17:24:17 yeah that too Jun 23 17:24:27 india has a shitty network plans and no wifi Jun 23 17:24:36 ah Jun 23 17:24:41 my target audience usually isn't india :p Jun 23 17:24:44 well the main idea is to be an offline resource Jun 23 17:25:09 grekkos: well, expansion files in the play store can be i think up to 100MB Jun 23 17:25:12 anyway, you can compress the data and decompress it on first load Jun 23 17:25:14 so pfn, for dev purposes would I be able to just push it to external storage and load it from there? Jun 23 17:25:24 thepoosh: yeah I was looking into that a bit Jun 23 17:25:54 BaaS is probably the best way though Jun 23 17:26:07 reconsider connectivity Jun 23 17:26:10 doesn't work for an app that wants to be offline Jun 23 17:26:33 yeah one of the main features is that the app has to work offline Jun 23 17:26:47 if it weren't for that I wouldn't even be using this database i'd be using someone else's web service Jun 23 17:26:57 anyway, use a highly compressible format, and decompress/load first-use Jun 23 17:27:59 pfn: is zipping an sqlite file even change the size? Jun 23 17:28:18 dunno, haven't tried Jun 23 17:29:34 well, zipping a 700K sqlite file here returned a 166K file Jun 23 17:29:44 so yes if there is a lot of numbers Jun 23 17:29:53 I also forget if sqlite is portable Jun 23 17:30:52 test Jun 23 17:30:55 herro? Jun 23 17:31:06 mic4h: i bet you meant to write thepo Jun 23 17:31:08 thepoosh Jun 23 17:31:15 HARRO Jun 23 17:31:16 thepoosh. Jun 23 17:31:18 HAI Jun 23 17:31:20 sup biatch Jun 23 17:31:31 tryina get paid Jun 23 17:31:36 omelette du fromage Jun 23 17:32:00 maybe if you could be a bit more of a senior android dev you'ld get paid Jun 23 17:32:00 seriously though i need help w android studio and my aar library. am i in the right place? Jun 23 17:32:06 that's the goal Jun 23 17:32:21 i do embedded firmware rn but i'm trying to land an android dev job Jun 23 17:33:09 part of my task is to create a library in an app project that does gps stuff, etc. i've created the aar and it's all linked to my project but i don't know where to start writing my code Jun 23 17:33:22 do i need to create an empty jar file in /libs? Jun 23 17:33:35 or an empty java file in src? Jun 23 17:34:05 does anyone have a damn svg of the android robo that will work in android studio? Jun 23 17:34:07 mic4h: was referring to this: https://redd.it/4p51nn Jun 23 17:34:28 the ones that show up on google have properties that apparently dont work with AS Jun 23 17:34:42 oh nice. Jun 23 17:36:02 where do I add source code to my aar? Jun 23 17:36:03 http://i.imgur.com/Q10znVl.jpg Jun 23 17:36:28 my sqlite only compresses about 2:1 Jun 23 17:38:06 anyone make a custom aar in android studio? Jun 23 17:38:10 or have any idea how aars work? Jun 23 17:38:34 no one has any idea how aars work Jun 23 17:38:35 they're magic Jun 23 17:38:44 :( Jun 23 17:39:09 am i in the wrong place for help? Jun 23 17:39:26 thepoosh o/ Jun 23 17:39:32 try asking an actual question Jun 23 17:39:40 raoul11: ? Jun 23 17:39:41 add source in the source folder, where else Jun 23 17:39:54 i don't know, libs? Jun 23 17:39:59 okay so source. Jun 23 17:40:01 o/ = hello Jun 23 17:40:06 pfn: you have a lot of text? Jun 23 17:40:08 I mean, where else would you put source Jun 23 17:40:10 oh, HAI Jun 23 17:40:12 thepoosh, it's purely text Jun 23 17:40:19 pfn i have no idea, i'm so new to this Jun 23 17:40:20 text doesn't compress well Jun 23 17:40:26 numbers do Jun 23 17:40:28 actually, text compresses extremely well Jun 23 17:40:40 so i'll make a new java file in src. does it matter what it's called? Jun 23 17:40:41 the nicks do Jun 23 17:40:45 different text meh Jun 23 17:41:12 thepoosh, text is full of patterns Jun 23 17:41:20 and compresses extremely well as a result Jun 23 17:41:20 what's the intelligent correct way to add a src file to an aar library in android studio? Jun 23 17:41:24 repeating patterns Jun 23 17:41:30 by adding to the source folder Jun 23 17:41:39 in windows explorer? Jun 23 17:41:52 or is there a smart way in android studio that will automatically link it to everything? Jun 23 17:42:19 are you still talking about compression in the context of the db? Currently my db is the binary sqlite db, but I can try compressing and I guess try compressing a sqldump of that if such a thing exists for sqlite I'm not sure how that works exactly though Jun 23 17:42:58 http://dominoc925.blogspot.co.il/2015/09/how-to-create-and-use-android-archive.html Jun 23 17:43:09 stepbystep mic4h Jun 23 17:43:10 ty Jun 23 17:44:29 oh actually when gzipped my db shrinks to 46MB, which is pretty good but doesn't leave me much wiggle room. Next question would be if gzip is available on android haha Jun 23 17:44:29 @raoul11 Jun 23 17:44:45 how do i whisper... Jun 23 17:45:10 you getting that? Jun 23 17:45:28 oh dang I didn't know java had a GZIPInputStream class Jun 23 17:45:58 learn every day (: Jun 23 17:46:15 raoul11 how do i whisper you Jun 23 17:46:24 why you wanna whisper? Jun 23 17:46:26 <_0xbadc0de> I have the following line Jun 23 17:46:26 <_0xbadc0de> SQLiteDatabase db_connection = SQLiteDatabase.openDatabase(DATABASE_NAME, null, SQLiteDatabase.CREATE_IF_NECESSARY); Jun 23 17:46:32 good point lol. Jun 23 17:46:36 at step 12, how do i get that 'new class' dialog? Jun 23 17:46:52 oh wait... Jun 23 17:47:07 <_0xbadc0de> I just want to create a physical DB somewhere on the device, and DATABASE_NAME is currently "TestDb" Jun 23 17:47:21 as you do with any class? Jun 23 17:47:44 <_0xbadc0de> but my program crashes when I step over this function Jun 23 17:47:45 i've never used android studio before Jun 23 17:47:50 <_0xbadc0de> and so I have no idea why Jun 23 17:47:54 i've never made an app before! Jun 23 17:48:05 check out some tutorials on youtube Jun 23 17:48:41 https://www.youtube.com/watch?v=QAbQgLGKd3Y Jun 23 17:48:50 dis guy gives pretty solid tutorials Jun 23 17:48:57 i need to access gps coords, retrieve list of installed apps, and apply an encryption alg to a string Jun 23 17:49:06 mic4h: it’s just like any other IDE Jun 23 17:49:08 using this aar Jun 23 17:49:53 i suggest you do some tutorials or grab an ebook and the rest will settle in slowly Jun 23 17:50:18 'retrieve list of installed apps' <-- sounds shady Jun 23 17:50:29 yeah. i have to complete this task by sunday night. i don't have time to learn the right way rn :/ Jun 23 17:50:51 after i fail, i should do what you say Jun 23 17:50:53 you gotta learn the basics b4 u make something big Jun 23 17:50:53 for the next job Jun 23 17:51:07 i know, i'm trying to bullshit my way thru this right now to land the job Jun 23 17:51:07 u can always hire some dude on elance Jun 23 17:51:21 or here for that matter Jun 23 17:51:24 i've done embedded firmware for 6 years Jun 23 17:51:26 new to mobile Jun 23 17:51:34 not a lot of experience with new projs Jun 23 17:51:38 do u java much? Jun 23 17:51:40 mostly maintenance on huge stuff Jun 23 17:51:43 Android programming is an horrible mess Jun 23 17:51:44 Welcome Jun 23 17:51:45 i tutor java but it's the basics Jun 23 17:51:53 its not really Jun 23 17:51:55 i write c Jun 23 17:52:01 You can never get help because nobody knows anything Jun 23 17:52:02 and python Jun 23 17:52:14 Android on SO has the lowest quality you can find Jun 23 17:52:24 There is no proper place to ask questions Jun 23 17:52:53 took me like 2 weeks to rewrite an entire app from python to java/droid Jun 23 17:53:11 Worse, often on SO the accepted answer is plain wrong or completely unrelated to the question Jun 23 17:53:12 droid :) Jun 23 17:53:59 once u get used to activities and fragment, and working with AS, shit mostly flows Jun 23 17:55:08 raoul11 does the shit flow uphill or downhill ? Jun 23 17:55:33 depends on the day Jun 23 17:57:44 <_0xbadc0de> dewwwwwwwwds Jun 23 17:57:48 <_0xbadc0de> plz helo Jun 23 17:57:51 <_0xbadc0de> help Jun 23 17:58:51 no Jun 23 17:58:59 we know nothing Jun 23 17:59:00 g00s: I just found and probably fixed an issue I've been trying to find a solution to in the past week and a half Jun 23 17:59:08 that was preventing us from releasing Jun 23 17:59:10 thepoosh ! Jun 23 17:59:14 a major MAJOR version Jun 23 17:59:18 what was it ? Jun 23 17:59:20 the solution is so stupid Jun 23 17:59:27 not getting GCM pushes Jun 23 17:59:33 for a 3rd party lib Jun 23 17:59:38 after upgrading to FCM Jun 23 17:59:50 wanna know why? Jun 23 18:00:00 oh i thought you guys were pretty conservative updating GMS stuff Jun 23 18:00:23 i thought i'd wait a bit maybe until 9.2 Jun 23 18:00:38 or 11.6 Jun 23 18:00:44 heh Jun 23 18:01:18 thepoosh lol did you see that post the other day on /r/androiddev, on hooking libraries up without Application#onCreate by using a content provider ? Jun 23 18:02:15 the cyril mottier thing? Jun 23 18:02:26 hm i dont think it was him Jun 23 18:02:26 g00s: it was an Intent-filter missing Jun 23 18:02:33 oh ha Jun 23 18:12:42 g00s: just so you know, this is the moment the notification made it in: http://i.imgur.com/bfcqwaD.png Jun 23 18:12:57 i was so uphold by the whole thing Jun 23 18:13:45 i can access my phone (android 6) by fingerprints but i have set a pattern as secondary security which i dont remember, how do i remove it? Jun 23 18:14:03 android-dev306: go to settings and remove it Jun 23 18:14:08 but wrong channel Jun 23 18:14:17 cant i need to enter it before it lets me in the settings Jun 23 18:14:36 if you have finger print enabled it's good enough Jun 23 18:14:40 but wrong channel Jun 23 18:14:46 so no more comments on that Jun 23 18:15:13 wtf, how do i remove the pattern? Jun 23 18:15:27 grekkos, yes, gzipinputstream Jun 23 18:23:00 guys Jun 23 18:23:08 got an svg animating just the simple color Jun 23 18:23:29 i want to animate the path of an android robo arm upward in a waving motion, so i assume i need to animate the path? Jun 23 18:23:38 how do i figure out the end path i need? Jun 23 18:23:57 Which is the fastest in the default android emulator that comes with Android Studio (qemu) on my 64 bit machine: 32bit or 64bit emulated devices? Jun 23 18:44:20 anyone decently familiar with vector drawables and animated vector drawables? Jun 23 18:44:56 I have my vector drawable defined (the android logo), but what I'd like to do is take the arm of the robot and make it wave.. Jun 23 18:47:59 AS 2.2 preview 4 Jun 23 18:48:50 "Importing VectorDrawable from Photoshop files" Jun 23 18:49:00 i'd rather see them import from inkscape Jun 23 18:49:06 why Jun 23 18:50:03 orbyt_ have you tried importing from inkscape ? Jun 23 18:50:19 no i havent used either so im just wondering why Jun 23 18:50:33 is one more suited for vectors? Jun 23 18:50:36 I have an image list and on clicking any image, I create a fragment, which has a viewpager of those images, and on pressing back it gets removed. Is there a way to reuse this fragment instead of creating a new one each time an image in list is clicked> Jun 23 18:51:02 its a popular open source tool that can produce very strict SVG, but even so the existing conversion tools struggle with certain path constructs Jun 23 18:51:06 g00s: import from sketch? Jun 23 18:51:29 i think the lowest common denominator is import from strict SVG, that handles many tools Jun 23 18:51:41 it kinda attempts to do that, but fucks up a lot Jun 23 18:52:32 all you have to do is make a shapre, then use a boolean operator to create a new shape, and its pretty simple but it can't be imported Jun 23 18:52:37 *shape Jun 23 18:54:27 sounds like a weekend project to me :) Jun 23 18:55:43 for example, take the house icon. thats a (triangle + rectangle for chimney) + ( square - rectangle for door ) Jun 23 18:55:56 super simple, can't import it Jun 23 18:56:45 actually it will probably get the union operator OK but it fucks up the substractions Jun 23 18:56:57 so the door will be missing Jun 23 18:57:25 wow I can't believe I pulled it off, I finally got my app opening files prooperly in all versions Jun 23 18:57:28 as is you have to hand edit the SVG Jun 23 18:57:48 shmooz, I'm sure you missed a corner case :P Jun 23 18:58:18 shmooz, Samsung Galaxy S4 4.2 with SD card and OTG mounted drive? :P Jun 23 18:58:30 uri.getPath() was working fine above kitkat, but below kitkat it wasn't giving the real path Jun 23 18:58:49 Mavrik: yes I believe it will work with that Jun 23 18:59:07 You're resolving URIs to file paths? Jun 23 19:00:12 Mavrik: yes, let me show you the part in onResume that I wrote Jun 23 19:00:29 onResume ... Uris ... what Jun 23 19:01:12 You'll have to ask for SD permissions on 6.0 Jun 23 19:01:31 You can access data without permissions via ContentProvider Jun 23 19:01:35 the tricky part was getting the path and comparing it to a list of paths so I can find where in my listview that file is so I can highlight it as playing Jun 23 19:01:51 O.o Jun 23 19:02:04 shmO.oz Jun 23 19:03:00 shmooz did you set your targetSdk=gingerbread :D Jun 23 19:03:38 g00s: uhm no Jun 23 19:03:44 just minsdk = 3 Jun 23 19:04:05 Mavrik: here's a part of it in onResume http://pastebin.com/GLGCdtAL Jun 23 19:04:21 AS 2.2p4 is not launching for me :| Jun 23 19:06:03 did it explode ? Jun 23 19:06:06 explodes on mac ? Jun 23 19:07:23 Mavrik: it scrolls the list to the playing song or video with setSelectionFromTop(... Jun 23 19:07:49 shmooz tell me you aren't doing that content provider query in onResume Jun 23 19:07:59 I sure am Jun 23 19:08:10 its 2016, you can go to jail for that kinda thing :) Jun 23 19:08:21 heh Jun 23 19:09:18 Yeah that may block :) Jun 23 19:09:24 it was driving me crazy because it was getting /external/audio/media/166 for a song instead of /sdcard/blah/thesongname.mp3 Jun 23 19:09:48 so I had to convert that into the real path for versions lower than kitkat Jun 23 19:10:53 Yeah, that approach does cause a lot of issues in some use-cases. Jun 23 19:11:04 For a simple audio player it works but expect complaints ;) Jun 23 19:11:47 well it works across all my devices now, htc mytouch 4g with gingerbread, Samsung Galaxy Nexus with 4.2.1, Nexus 7 2013 with 4.4.4 and Moto G 2nd gen with Marshmallow! Jun 23 19:17:46 http://stackoverflow.com/questions/38000013/using-animatedvectordrawables-to-make-the-android-robo-wave Jun 23 19:19:15 orbyt_, https://github.com/bonnyfone/vectalign might help you Jun 23 19:19:59 make the arm morph between two positions like _ to / Jun 23 19:20:24 while that is an awesome lib ill definantly look into, I dont think morphings the way to go Jun 23 19:20:27 keep the center of the shoulder invariant Jun 23 19:20:30 etc Jun 23 19:20:35 yea but Jun 23 19:20:46 itll look like the arm is like growing upward or something lol Jun 23 19:20:53 wont really look like a waving animation Jun 23 19:20:57 then just rotate the arm with the pivot center in the shoulder center Jun 23 19:21:08 hey all, I'm trying to create an ArrayAdapter from looking at this: http://stackoverflow.com/questions/9317483/showing-a-list-of-files-in-a-listview to show in a listView Jun 23 19:21:09 and use sin() for waving Jun 23 19:21:32 thats what im having trouble with, rotating the arm while keeping the "shoulder" in the same place Jun 23 19:21:37 but I don't have anything similar to android.R.layout.simple_list_item to pass for the id of the resource Jun 23 19:21:45 Hey guys, are there any good windows applications for viewing exported logfiles? Jun 23 19:21:50 I have a ListView I get with findViewById(R.id.listView) Jun 23 19:21:57 g00s: I'm thinking I should patent that code now ;) Jun 23 19:21:58 then if I use view.getId() it says it's not valid Jun 23 19:22:34 i've been told Listview is old and you should use RecyclerView Jun 23 19:22:43 eeyup Jun 23 19:23:04 is there some guide somewhere that explains how resource ids work and such? I've put android:id="@+id/listView" in the layout xml file, but can't seem to access the id with android.R.layout.listView Jun 23 19:24:07 jpwhiting, IDs from your resources don't go into android.R class Jun 23 19:24:12 But .R class Jun 23 19:24:21 android.R class contains resource IDs of stuff built into the platform Jun 23 19:24:37 and if I type just R. is that giving me my class's resources or androids? or both ? Jun 23 19:24:48 It's giving you whatever you imported. Jun 23 19:24:53 It's a class like any other. Jun 23 19:25:00 orbyt_, or use another approach than vector drawable maybe, years ago i did: https://vid.me/XJes Jun 23 19:25:07 The first time you select something, Android Studio will import that class. Jun 23 19:25:19 adq: lol what is that Jun 23 19:25:23 frame animatinos? Jun 23 19:25:27 yep Jun 23 19:25:32 I see, and R.layout. is only giving exported items or something? I only see activities in there Jun 23 19:25:52 R.layout. only shows activities for the completion somehow Jun 23 19:25:55 not layouts Jun 23 19:25:57 R.layout contains XML resources within layout directory. Jun 23 19:26:56 heh, so in the code on that stack overflow they actually have a layout called simple_list_item ? Jun 23 19:27:07 no Jun 23 19:27:07 What's the go-to guide to learn android dev? Jun 23 19:27:12 it's standard android layout Jun 23 19:27:21 android.R.layout.simple_list_item Jun 23 19:27:24 NonSecwitter: d.android.com Jun 23 19:27:29 ah, I see Jun 23 19:27:37 shmooz: thanks Jun 23 19:27:39 NonSecwitter: there's whole course from google on udacity Jun 23 19:27:42 for free Jun 23 19:28:28 Inari-: basicly, yes. it's good to use recyclerview Jun 23 19:28:32 NICE! Jun 23 19:28:34 it force good pattern on you Jun 23 19:28:36 thanks! Jun 23 19:28:39 *forces Jun 23 19:28:47 Big Nerd Ranch or whatever is usually well recommended. Jun 23 19:29:02 gordon_: I see, so this is a resource for how to show items? I was wrongly thinking it was asking for a resource of a layout to put the ArrayAdapter into or something like that Jun 23 19:29:08 Also AS 2.2p4 indeed doesn't start on OS X, guess they messed something up with JVM Jun 23 19:29:12 https://www.udacity.com/courses/android Jun 23 19:29:14 could use some advice, I want to create a helper class, e.g. to handle v23 permissions, but the problem is the permissions api requires context/activity... Jun 23 19:29:37 jpwhiting: well... 90% of time you will have to implement your own adapter Jun 23 19:29:40 a layout to use when instantiating views, so it's like a delegate in Qt I guess for each item in the ListView Jun 23 19:29:45 with recylcerview - always Jun 23 19:29:45 yeah, I see, ok Jun 23 19:29:54 I could get around that issue by passing those values, but I also want the callback to be handled by the class itself as well. how should I implement this? Should I create a new activity that has no UI? Jun 23 19:29:55 this is just for a list of files for the user to choose from Jun 23 19:30:02 a simple showing the name is fine in this case Jun 23 19:30:31 rockokw, that's what RxPermission does, but usually there are better solutions. Jun 23 19:32:14 hmm, never heard of rxjava before Jun 23 19:33:19 now you have - use it Jun 23 19:33:21 ;) Jun 23 19:33:41 Mavrik try full install Jun 23 19:33:59 explodes ^ looks like something is messed up with jvm Jun 23 19:34:21 haha, well I also want to create helper classes for other things as well, like the maps api, to help me isolate my application login in the activity Jun 23 19:34:29 logic* Jun 23 19:34:47 i wish they would fix all these bugs, like instant run, in the stable line ... Jun 23 19:34:58 they are too undisciplined Jun 23 19:34:59 is creating blank activities bad practice? Jun 23 19:35:10 keep dreaming g00s Jun 23 19:35:49 adq lol, some smartass is going to say install both, but what happens when you have ConstraintLayout now but then have to fall back to 2.1 stable ? Jun 23 19:36:27 mortality rate will just increases slightly Jun 23 19:36:32 increase* Jun 23 19:37:35 they already shown so many times they don't always test, and it looks like more and more to me that we're the alpha/beta testers Jun 23 19:37:37 rockokw what is the point of blank activity ? Jun 23 19:39:26 blank as in no visible ui, so that my helper class has access to the application context and can implement activity-based callbacks Jun 23 19:39:43 O.o Jun 23 19:40:19 hey guys, I wanted to install a new version of my app while preserving the old one... the only thing I didn't change was the app name, but it removed the old app for my app screen. Is the app still there? Jun 23 19:40:25 ESphynx ! Jun 23 19:40:30 g00s :) How goes it? Jun 23 19:40:40 ok, and you ? Jun 23 19:40:55 lol, doesn't make sense? Jun 23 19:40:58 quite good except for that particular predicament Jun 23 19:41:11 it got rid of my installed app which was working properly Jun 23 19:41:19 Could the app still be on the system? Jun 23 19:41:34 ESphynx hm, weird - as long as they had different package names, it should be ok ... Jun 23 19:41:39 I think there can only be one app with a given package name Jun 23 19:41:42 they definitely had different package name. Jun 23 19:41:52 not sure then :( Jun 23 19:41:55 only the 'app_name' was the same Jun 23 19:42:59 app_name as in the string resource? Jun 23 19:43:00 The old app was 'com.ecere.test01' , this one is 'com.ecere.nzwine' Jun 23 19:43:06 yeah, in strings.xml Jun 23 19:43:37 dunno Jun 23 19:43:51 any help would be much appreciated as I soon have to leave to demo this app that I didn't want to uninstall. Jun 23 19:43:57 ESphynx try "adb shell pm list packages" from shell Jun 23 19:44:09 to see whats on there, grep for you package Jun 23 19:45:17 I only see the new name in there :( Jun 23 19:46:42 :( Jun 23 19:46:52 and of course every time I try to update my app thigns are crashing with a useless call stack. Jun 23 19:48:15 Should have listened to my smarter self that said not to try to touch the tablet. Jun 23 19:48:28 Seriously . package name is totally different... Jun 23 19:48:59 unless somehow an adb uninstall command that I ran way before I plugged in the tablet somehow got executed? Jun 23 19:50:03 Mavrik, do you happen to know how RxPermission deals with the Activity.onRequestPermissionsResult() callback issue I have? Jun 23 19:50:11 pfn, cheers did that Map thing earlier and it works Jun 23 19:50:22 didnt know Map was a thing Jun 23 19:50:31 rockokw, afaik they create a fake transparent activity without content Jun 23 19:50:31 why wouldn't it be Jun 23 19:50:51 Mavrik, ooh, that's a good idea Jun 23 19:51:05 Dunno, i suppose i dont actually know java all that well Jun 23 19:51:08 ah, that's what I was planning to do Jun 23 19:51:22 so I guess it's reasonable then Jun 23 19:51:50 Why are native code call stack always so useless? Jun 23 19:52:10 I can't even get a function name, I got -g all over Jun 23 19:52:26 -g should certanly give you function names Jun 23 19:52:34 and ndk-stack should give you resolved line numbers. Jun 23 19:52:46 coding aint easy Jun 23 19:53:25 Mavrik: it should right, but it never does Jun 23 19:54:08 Mavrik whats the use for a fake transparent activity ? Jun 23 19:54:16 i guess i'm missing something Jun 23 19:54:27 transparently handles callbacks Jun 23 19:55:48 g00s, permission requests use onActivityResult to signal results Jun 23 19:55:57 And Java can't do multiple inheritance :) Jun 23 19:56:45 hi, can some one confirm for me that Google Play Services API and Google Play Developer API are different things? https://github.com/googlesamples/android-play-publisher-api/tree/master/v2/java https://developers.google.com/android/guides/overview Jun 23 19:57:08 and no polymorphisisism either :( Jun 23 19:58:07 polymorphisisism :D Jun 23 20:06:04 Even though honestly in 2016 they could add a listener API to support Activity to register on that stuff :/ Jun 23 20:10:18 ah yes, it uses "ShadowActivity", but the magic number 42 is what really holds it together Jun 23 20:13:26 this was exactly what I was looking for, thanks Mavrik Jun 23 20:13:41 does anyone know any example apps that do some complex animatinos Jun 23 20:14:06 stuff like this: https://d13yacurqjgara.cloudfront.net/users/285475/screenshots/2106950/kick_push_dribbble.gif Jun 23 20:14:12 is that kinda stuff possible on android Jun 23 20:14:14 without just using a gif Jun 23 20:15:14 ShadowActivity? is someone unit testing their activity code? Jun 23 20:16:12 it's just a dummy activity in RxPermission Jun 23 20:16:28 orbyt_: that's pretty cool looking. That looks more complex to the point where an animation would probably save you a lot of time. Or you'd have to do some kind of drawing stuff more in the line of game development type stuff Jun 23 20:16:55 what do you mean "an animatino would probably save time" Jun 23 20:17:00 animation* Jun 23 20:17:06 im trying to build an animation Jun 23 20:17:13 I think he means gif? Jun 23 20:17:20 I mean an animated gif or something Jun 23 20:17:25 ah right Jun 23 20:17:37 well it doesnt need to be THAT complicated Jun 23 20:17:41 let me find a better example Jun 23 20:17:48 haha ok Jun 23 20:18:45 here https://d13yacurqjgara.cloudfront.net/users/398490/screenshots/2722077/taco-preloader.gif Jun 23 20:19:04 orbyt_ : http://androidexperiments.com/ Jun 23 20:19:35 that android robot thing when it loads is basically exactly what im trying to do Jun 23 20:20:34 min2: any good animation examples in there? I know of android expirements but i dont see any good examples Jun 23 20:20:42 yeah so many Jun 23 20:20:46 and all open source Jun 23 20:20:53 so many? Jun 23 20:20:57 like which? I see 0 Jun 23 20:22:15 hmm maybe this one: https://www.androidexperiments.com/experiment/boo Jun 23 20:22:41 ypu Jun 23 20:22:44 yup Jun 23 20:23:16 what abt tilt game.. Jun 23 20:23:39 actually that example doesnt even use the android animation framework, its all custom lol Jun 23 20:26:37 what a mess that location permission requirement has brought to bluetooth discovery Jun 23 20:29:23 http://www.androidpolice.com/2016/06/23/the-solution-to-random-reboots-on-the-pixel-c-is-an-rma-replacement/ Jun 23 20:34:04 Hmm, I am trying to implement some persistence in my activity: In this (http://prntscr.com/bk6jxo) part of this (https://developer.android.com/training/basics/activity-lifecycle/stopping.html#Start) guide, I am stuck. What should my mUri be? I have never declared it yet Jun 23 20:34:07 and they already use it Jun 23 20:34:20 and what is up with links in this chat not being clickable Jun 23 20:34:34 http://prntscr.com/bk6jxo https://developer.android.com/training/basics/activity-lifecycle/stopping.html#Start Jun 23 20:35:56 I am just trying to make a single string persistent: https://dpaste.de/Nq2r#L9,10,16 This is the function which is called on the button which invokes a new activity, and before that Intent, I want to store the string I think Jun 23 20:39:56 or am I way off in this approach? Jun 23 20:46:16 https://gyazo.com/32cb9a8e9440659635598341b1d1e43d Jun 23 20:46:29 so i got it kinda working Jun 23 20:46:36 but how can i prevent the arm from getting cut off? Jun 23 20:47:01 I've tried adjusting both the android:width and android:viewportWidth properties but that didnt seem to work Jun 23 20:49:46 any ideas Jun 23 20:50:40 Hmm, maybe it has to do something with a draw/update size; a rectangle which only gets updated, and nothing outside of it. Maybe if you add a transparent object, to increase this 'box' Jun 23 20:53:27 orbyt_: ? Jun 23 20:53:36 ? Jun 23 20:53:40 dont think thats right mate Jun 23 20:54:21 seems like its an issue with the imageview not expanding its bounds maybe? Jun 23 20:56:02 Maybe it cannot expand its bounds. Maybe they can only be initialized, and they initialize automatically to fit your animation on frame 0 Jun 23 20:56:44 there has to be a way to fix that because otherwise most animations would be useless .. Jun 23 20:57:19 Not if you add an invisible rectangle, to set your imageview? Jun 23 21:00:30 I'm pretty sure that works, from what I see at your video Jun 23 21:03:16 how do I put some text files in my project to have them be installed into dataDirectory/"data/appname/files" ? Jun 23 21:03:22 put them under res somewhere ? Jun 23 21:04:22 aukeroorda: tried creating a drawable which was an invisible rectangle and setting it as the background of the imageview but no dice Jun 23 21:05:00 Hmm, and if you make it a visible rectangle, it surely should increase the imageview, right? Jun 23 21:05:21 res/raw ? Jun 23 21:06:13 yea lemme get a pic Jun 23 21:06:50 https://gyazo.com/20fe5b716be3f05e7090e48b4a217c94 Jun 23 21:07:46 Hmm, so it looks like it has an imageview for every single element that you draw? That would seem really strange Jun 23 21:07:58 what? Jun 23 21:08:02 theres 1 image view Jun 23 21:08:23 Oke (I am not experienced with Android) Jun 23 21:08:38 yea the background of the iv is the rectangle Jun 23 21:08:44 and the src is my animated vector Jun 23 21:08:54 still dont understand why its cutoff.... Jun 23 21:08:56 Vector is svg format? Jun 23 21:09:00 yes Jun 23 21:09:03 well Jun 23 21:09:06 partially Jun 23 21:09:08 And you animated it from withing the svg? Jun 23 21:09:08 cuz androids weird Jun 23 21:09:14 javascript inside the svg? Jun 23 21:09:19 ..no? Jun 23 21:09:27 Oke hmm Jun 23 21:09:27 with an animator Jun 23 21:09:31 oi Jun 23 21:09:50 oke then it might be, that your droid has its svg viewwidth and height set too small Jun 23 21:10:03 so that they only fit the 0'th frame Jun 23 21:11:04 Does your animation program output an .svg file? Jun 23 21:11:33 im not using an .svg file Jun 23 21:11:40 im using a vector drawable Jun 23 21:11:50 Oke, hmm Jun 23 21:12:22 its like a stripped down svg i guess Jun 23 21:13:26 Can create a paste of it? Jun 23 21:13:36 of the code? Jun 23 21:13:44 sure Jun 23 21:13:46 of the vector drawable Jun 23 21:13:55 k Jun 23 21:16:17 http://paste.ee/p/UF84n Jun 23 21:16:56 anyone know of any walkthru/tutorial for the simplest access to current gps coordinates? running android studio Jun 23 21:17:01 i don't need a map, just coordinates Jun 23 21:17:58 orbyt_: Line 3 and 4; Have tried increasing those values? This might be possible in the animator, but I am not sure Jun 23 21:18:55 yes i've tried multiple variations of those values, no dice either Jun 23 21:19:23 orbyt_: Oke, try to animate the left arm, instead of the right arm (from our perspective) and see if that works with the increased values Jun 23 21:19:33 right arm* sorry Jun 23 21:20:59 mic4h, https://developer.android.com/training/location/retrieve-current.html Jun 23 21:21:12 ty Jun 23 21:21:30 * casadogg sighs Jun 23 21:21:47 > trying to upload an updated apk to the store Jun 23 21:22:45 store complains version code is already uploaded. I check the version code I used, it's higher than the one in store. Doesn't matter, store still complains. Check apk on terminal. versionCode is way higher than the one in store Jun 23 21:22:54 Because it might be that the left-most part of your animation now, where it cuts the arm during animation, is the x-value 0. Then increasing the width won't help that. But by increasing the width, you increase the distance to the right-most part to get updated, and that is where the extra 'space' you add by increasing the values is added Jun 23 21:23:03 Anyone knows why this might be happening? Jun 23 21:23:23 aukeroorda: https://gyazo.com/c5f1530875452f1575de51a39048ac98 Jun 23 21:23:38 orbyt_: ! Jun 23 21:25:07 other arm is still clipped: https://gyazo.com/0a212a5bbbfb8feb5857453935077e19 Jun 23 21:25:10 orbyt_: This (http://prntscr.com/bk79p1 ) is why it didn't work on the left side. By increasing the width (300 in this image), the initial position of the left arm, is still touching the 0 Jun 23 21:25:24 If you, in your editor, move your complete anymation, to the bottom and right Jun 23 21:25:31 animation* Jun 23 21:25:47 how do i move it? Jun 23 21:25:50 so that you leave whitespace in the top and left, as much as you need for your animation, then it won't clip anymore Jun 23 21:25:58 I have no idea what kind of editor you are using Jun 23 21:26:10 im not using an editor Jun 23 21:26:18 what are you referring to lol Jun 23 21:26:25 How you made this animation Jun 23 21:26:30 android studio... Jun 23 21:26:37 yeah I never used that sorry Jun 23 21:26:37 animated vector drawables Jun 23 21:26:50 this isnt a gif or anything Jun 23 21:26:51 but I know quite some about svg animation Jun 23 21:26:57 yeah I know Jun 23 21:26:57 yea its a bit different Jun 23 21:27:04 hmm Jun 23 21:28:14 casadogg, what do you mean check apk in terminal, you did aapt d badging? Jun 23 21:28:40 the only thing i can think of is manually move every x coordinate in every path over a little bit Jun 23 21:28:48 no no Jun 23 21:28:49 which theres no fucking way im gonna do it manually Jun 23 21:28:49 pfn yeh Jun 23 21:29:15 Can you select everything and just drag it? Jun 23 21:29:19 I have no idea Jun 23 21:29:24 err no Jun 23 21:29:28 apn aapt dump badging app-release.apk Jun 23 21:29:29 theres no visual editor Jun 23 21:29:31 pfn * Jun 23 21:29:32 its just xml Jun 23 21:29:40 but how did you write those coordinates? Jun 23 21:29:52 i imported a vector image Jun 23 21:30:02 and AS determines the paths Jun 23 21:30:09 edit that vector image in adobe illustrator Jun 23 21:30:40 add just enough (or a bit more) than your animation needs on the left and top side Jun 23 21:30:48 and then save that vector Jun 23 21:30:56 btw I'm trying to make an alpha upload Jun 23 21:30:58 and copy the path coordinates again Jun 23 21:30:59 Don't know if it matters. Jun 23 21:31:32 * pfn shrugs Jun 23 21:31:37 casadogg: Alpha is like beta-opt-in? Might have different version id? Jun 23 21:32:28 aukeroorda yeh it's an opt-in. I don't think it has a difference though Jun 23 21:32:44 Oke hmm Jun 23 21:33:15 I am not experienced with that either, sorry Jun 23 21:33:56 Maybe you have switched it up with a different ID, that looks the same as your version ID? Jun 23 21:34:18 by version id you mean application id? Jun 23 21:34:29 as in a.b.c ? Jun 23 21:34:34 lel https://gyazo.com/1eb99c12cb28cf8aac8be0ecdf03753f Jun 23 21:34:36 yeah, sorry Jun 23 21:34:42 it's the same =/ Jun 23 21:34:58 ended up putting everything in a single and translateX to the right Jun 23 21:35:26 orbyt_: Nice! Always good to solve problems Jun 23 21:35:29 this shit is way to ridicously complicated tho Jun 23 21:35:40 Hmm, but it has a reason Jun 23 21:35:54 https://www.w3.org/TR/SVG/coords.html the SVG coordinate system; and viewbox Jun 23 21:35:59 . Jun 23 21:36:07 no not the svg spec is complicated Jun 23 21:36:11 androids animation apis Jun 23 21:36:16 good for small stuff Jun 23 21:36:21 anything complex n ur fucked Jun 23 21:36:31 Yeah probably! Jun 23 21:37:13 I have a not so complex problem, a total newby problem: Hmm, I am trying to implement some persistence in my activity: In this (http://prntscr.com/bk6jxo) part of this (https://developer.android.com/training/basics/activity-lifecycle/stopping.html#Start) guide, I am stuck. What should my mUri be? I have never declared it yet Jun 23 21:37:13 and they already use it in the tutorial, so I am kinda lost. Jun 23 21:37:13 http://prntscr.com/bk6jxo https://developer.android.com/training/basics/activity-lifecycle/stopping.html#Start Jun 23 21:37:13 I am just trying to make a single string persistent: https://dpaste.de/Nq2r#L9,10,16 This is the function which is called on the button which invokes a new activity, and before that Intent, I want to store the string I think Jun 23 21:37:13 or am I way off in this approach? Jun 23 21:38:13 you dont need sqlite Jun 23 21:38:17 I am trying to make it so that my editText its textValue is not emptied Jun 23 21:38:23 use bundles Jun 23 21:38:33 Hmm I figure. That is not even what I want! Jun 23 21:38:58 Aaah. Strange that the bundles-chapter is after this one. I will just continue with that, then. Thanks Jun 23 22:02:14 hmm, I changed my MainActivity from extending AppCompatActivity to extending ListActivity, now the application closes when I run it in the debugger Jun 23 22:02:31 do I need to change something in the activity's xml file to reflect the change in base class ? Jun 23 22:03:28 whats the stacktrace? Jun 23 22:04:16 where do I see the stacktrace again? Jun 23 22:04:35 Android Studio has too many tabs, I can't tell which is for what tbh Jun 23 22:04:38 should print out of ur printer Jun 23 22:04:44 It is usually the red text in your log (or catlog) Jun 23 22:04:55 u mean logcat Jun 23 22:04:57 lol Jun 23 22:06:15 heh shit haha Jun 23 22:07:26 there we go, java.lang.RuntimeException: Unable to start activity ComponentInfo[com.jpwhiting.foo/com.jpwhiting.foo/MainActivity}: Jun 23 22:07:52 ah, RuntimeException: Your content must have a ListView whose id attribute is android.R.id.list Jun 23 22:08:25 I do have that I thought, I have android:id="@+id/list" in activity_main.xml Jun 23 22:08:30 in the ListView Jun 23 22:08:51 anroid.R Jun 23 22:08:57 I guess @+id/list is com.jpwhiting.foo.R.id.list not android.R.list Jun 23 22:09:04 how do I set it to android.R.id.list ? Jun 23 22:09:44 @id/list instead of @+id/list ? Jun 23 22:10:09 * jpwhiting reads ListActivity docs, maybe that will say Jun 23 22:14:08 jpwhiting, you get it? Jun 23 22:14:39 ah, yep, @android:id/list Jun 23 22:15:29 cool Jun 23 22:15:42 :) Jun 23 22:16:13 erm https://www.reddit.com/r/space/comments/4pi9mn/scientists_confirm_comets_smell_like_cat_piss/ Jun 23 22:17:28 For a small information app, which the user can browse like wikipedia; How bad is it to not support landscape orientation? It has been ages since I have used landscape Jun 23 22:19:40 not ideal, but probably not a dealbreaker Jun 23 22:19:52 however, you should support upside down Jun 23 22:19:58 Hmm? Jun 23 22:20:04 I have never read about that even Jun 23 22:20:11 Like, holding your phone upside down? Jun 23 22:20:17 those who don’t have a place in the special Hell, filled with email spammers, and persons who talk in the theater Jun 23 22:20:18 yes Jun 23 22:21:10 mate youre kidding me Jun 23 22:22:11 i am not Jun 23 22:22:43 many devices have the charging port on the bottom. these devices are uncomfortable to use when charging if held right side up Jun 23 22:22:59 supporting upside down requires no additional effort, as it doesn’t change the layouts used Jun 23 22:23:43 Even the playstore doesn't do that apery Jun 23 22:23:53 hanging upside down no way Jun 23 22:24:52 and my app has yet to progress beyond the 'Yeah, I added an editText to the blank_activity'-stage Jun 23 22:24:54 it’s the biggest sign of a lazy dev i can think of Jun 23 22:25:19 Don't you think it is lazy design, to put the charging port on the wrong side? Jun 23 22:25:42 that’s a completely different conversation Jun 23 22:26:00 further, if the charging port was on the top, one would have to put it upside down to put it into charging docks Jun 23 22:26:03 Well, both conversations are about a solution for the problem Jun 23 22:26:08 and the same problem would remain Jun 23 22:26:27 not really. you can’t change where the port is once the device is made. You can change the orientation of the app you support Jun 23 22:26:47 Hmm, that is true Jun 23 22:27:52 Oke, but if you support upside-down, you might get that your app rotates to upside-down too easily. Jun 23 22:28:14 Can you base this off of the setting Portrait/Auto-rotation which is in your system preferences? Jun 23 22:28:24 that’s where it comes from Jun 23 22:30:26 is there a way to get a list of all "raw" resources in an application ? Jun 23 22:30:43 no one is going to come find you and beat you for not supporting upside down, and you may not get a bunch of 1 star reviews blasting you for it. But it is one of those features that can make your user take a little more delight in using your app Jun 23 22:31:05 it can be the difference between using the app, but feeling ‘meh’ about it, and actively enjoying it Jun 23 22:32:20 Hmm, I will remember that. It is indeed additional polishment for your application Jun 23 22:40:58 s73v3r: I am trying to create an application for a small organisation named Worldmapping. A few years ago, we tried to create a prototype with school, but that didn't get really far. If you create a new window with the aspectratio of a portrait phone, and open http://app.expeditie-malawi.nl/wminfo.html , you can see what I am trying to make as an a Jun 23 22:40:58 ndroid app now. Jun 23 22:41:31 Do you know what I have to look into, to create the Activity to slide in the Settings menu (clicking the hamburger in top left)? Jun 23 22:42:11 as a native app, or as a web app? Jun 23 22:42:17 Native android app Jun 23 22:42:29 in that case, your hamburger menu is going to be a fragment Jun 23 22:42:50 Hmm, check Jun 23 22:42:55 you’ve got DrawerLayout, and they recently came up with another Drawer component that does a similar thing, but is supposed to be better Jun 23 22:43:23 NavigationDrawer in the Design Support Library Jun 23 22:43:44 can I simply use a File on the resource/raw somehow to get a list of files/resources in res/raw ? Jun 23 22:44:07 Hmm, thanks a lot. It helps a lot to know what to look into, especially when you are not experienced at all with all the terminology Jun 23 22:44:17 File fileDir = new File("appname:raw") maybe then fileDir.list() to get the names Jun 23 22:44:43 actually you can just create the drawer layout activity the android studio proposes when creating new activity Jun 23 22:44:47 and see whats going on there Jun 23 22:45:01 * jpwhiting tries Jun 23 22:45:22 aukeroorda: http://android-developers.blogspot.com/2015/05/android-design-support-library.html Jun 23 22:46:03 jpwhiting: why do you need a list of them that you can’t create at compile time? Jun 23 22:46:57 s73v3r: how would I create it at compile time ? Jun 23 22:47:08 Ashiren: Hm, I am using IntelliJ, because I also use that for other java development, but I will still have a look into that. It seems that IntelliJ does not have that Activity template by default, but I am pretty sure I can download that somewhere. Jun 23 22:47:13 i guess i meant keeping track of it yourself Jun 23 22:47:21 I'd like to be able to make it (code or build system) put the list together so I can just drop any .txt files in there and they will appear in the ui as possible files to open Jun 23 22:47:47 without having to manually update a list somewhere besides copying files in Jun 23 22:48:33 anyone know any illustration/graphic design channels Jun 23 22:48:36 http://stackoverflow.com/questions/6539715/android-how-do-can-i-get-a-list-of-all-files-in-a-folder Jun 23 22:48:46 jpwhiting: ^ Jun 23 22:52:58 ugh, new version of conemu broke vim Jun 23 22:53:15 s73v3r: perfect, thanks Jun 23 22:56:45 s73v3r: hmm, any idea what the type of "Field" is in that second answer ? Jun 23 22:57:00 android studio suggests a few that don't seem to be it Jun 23 22:57:34 * jpwhiting tries java.lang.reflect.Field Jun 23 22:59:06 which doesn't have getName() :/ Jun 23 23:03:28 i think Field is a reflection thing Jun 23 23:04:38 if you just type in field = R.raw.class.getFields(), Android Studio will complain that field doesn’t have a type Jun 23 23:05:22 yep seems to be java.lang.reflect.Field indeed Jun 23 23:05:26 cool, I have a list of files Jun 23 23:05:33 $change in there somehow, not sure what that is Jun 23 23:05:37 some raw resource I guess? Jun 23 23:05:43 ugh, wtf am I having a problem with dexInProcess Jun 23 23:06:04 Thanks for the help guys. Good night Jun 23 23:09:09 * pfn does repo sync, twiddles thumbs and waits Jun 23 23:21:09 and I really hate the tools team, they don't tag/push tools/base properly Jun 23 23:27:16 i'd like them to focus bugfixes on the stable channel Jun 23 23:27:40 clearly, their version control process is pretty screwed up Jun 23 23:57:55 anyone know why I have a "raw" resource called $change even though my raw folder doesn't have such a file ? Jun 23 23:58:16 R.raw.class.getFields() is giving an entry with $change for it's name Jun 24 00:04:23 jpwhiting, instant run Jun 24 00:04:31 don't use reflection Jun 24 00:05:15 pfn: is there some other way to list the files in my "raw" resource ? Jun 24 00:05:26 don't list files in raw resources Jun 24 00:06:00 can I put files in my project so they will get installed to dataLocation/data/com.foo.blah/files instead ? Jun 24 00:06:07 rather than built in as resources Jun 24 00:06:15 no Jun 24 00:06:16 when the apk is installed Jun 24 00:06:23 do it yourself on first run Jun 24 00:06:37 copy the files from resource to the data folder ? Jun 24 00:07:13 I see, ok I'll try that Jun 24 00:07:14 thanks Jun 24 00:57:53 hi anyone here Jun 24 00:57:58 some question, very hard Jun 24 00:58:07 I dont know if anyone can answer it Jun 24 00:58:20 I want to do gradle assembleRelease on a project Jun 24 00:58:33 now that usually works well with my installed gradle Jun 24 00:58:53 but now it fails with Jun 24 00:58:54 Could not get resource 'https://jcenter.bintray.com/com/android/tools/build/gradle-core/1.2.0/gradle-core-1.2.0.jar'. Jun 24 00:58:59 Could not GET 'https://jcenter.bintray.com/com/android/tools/build/gradle-core/1.2.0/gradle-core-1.2.0.jar'. Jun 24 00:59:03 sun.security.validator.ValidatorException: No trusted certificate found Jun 24 00:59:23 so I've checked via the browser Jun 24 00:59:37 which cert it uses Jun 24 01:00:22 turns out to be this cert: https://crt.sh/?q=D4%3ADE%3A20%3AD0%3A5E%3A66%3AFC%3A53%3AFE%3A1A%3A50%3A88%3A2C%3A78%3ADB%3A28%3A52%3ACA%3AE4%3A74 Jun 24 01:00:35 so I check whether its in my trust store Jun 24 01:00:54 keytool -list -keystore /etc/ssl/certs/java/cacerts Jun 24 01:01:04 that lists all ca certificates Jun 24 01:01:07 and it is Jun 24 01:01:18 debian:baltimore_cybertrust_root.pem, 24.06.2016, trustedCertEntry, Jun 24 01:01:18 Certificate fingerprint (SHA-256): 16:AF:57:A9:F6:76:B0:AB:12:60:95:AA:5E:BA:DE:F2:2A:B3:11:19:D6:44:AC:95:CD:4B:93:DB:F3:F2:6A:EB Jun 24 01:01:29 so what did I do wrong?? Jun 24 01:01:56 or what can I do to solve the issue Jun 24 01:30:21 for some reason I'm not getting onItemClick called for buttons in ListView: http://hastebin.com/jatarexuqa.java Jun 24 01:35:20 can android studio be used to transfer a file over to my testing device? Jun 24 01:35:34 using adb perhaps Jun 24 01:35:35 at least adb can Jun 24 01:35:46 dunno if android studio exposes a gui option for it Jun 24 01:36:01 if you use it via console, read about "adp push" Jun 24 02:06:51 est31, can adb install an apk? I tried this: http://paste.ofcode.org/rbHxf8dPABqUuGaJHVX4C6 Jun 24 02:07:07 but I don't see any additional apps on the device Jun 24 02:07:58 yes it can Jun 24 02:08:17 so why am I getting that failure? Jun 24 02:09:54 anyone have an idea why the callback is not being called when I click a button in the ListView? Jun 24 02:10:25 raj sounds like an usb permission problem Jun 24 02:11:35 raj, maybe adb is opened by android studio? Jun 24 02:11:42 do adb kill-server Jun 24 02:22:05 done Jun 24 02:22:09 est31, now? Jun 24 02:22:30 retry Jun 24 02:24:18 est31, http://paste.ofcode.org/nzrC2qHgcSCsdgdUgxQZZ2 Jun 24 02:25:24 raj have you the unknown sources checkbox checked? Jun 24 02:25:51 I believe so but I will double check, one sec Jun 24 02:27:21 yes it's checked Jun 24 02:27:36 okay does adb logcat output some log? Jun 24 02:28:36 yes Jun 24 02:29:02 can you run adb logcat in one session, and try to adb install in another one in parralel Jun 24 02:29:10 then paste the logcat during your attempt Jun 24 02:29:27 what you may try as well is adb install -r Jun 24 02:54:16 is the openjdk performing seriously bad in android studio studio or what ? Jun 24 02:54:43 yes Jun 24 02:54:45 i use gnu/debian lunix, and i want to count on my OS's founded software Jun 24 02:54:54 in fact the app even warns you about it Jun 24 02:55:05 and recommends oracle java, if it detects openjdk Jun 24 02:55:20 clarjon1: sure it does, but i was wondering if that will seriously affect my app's functioning Jun 24 02:55:27 your apps, nah Jun 24 02:55:38 it shouldn't. Jun 24 02:55:46 what it does affect is the Android Studio UI itself Jun 24 02:55:59 in my experience, that is. Jun 24 02:56:20 there is a noticable difference in responsiveness and fluidity in the application when using oracle's jdk over openjdk. Jun 24 02:56:24 clarjon1: it notifies me about UI and performance issues, i know, but could that really make android studio work, like, so slowly and less responsive ? Jun 24 02:56:32 clarjon1: ah Jun 24 02:57:51 hassoon, just make sure you have openjdk-8 Jun 24 02:58:01 version nine will make things go explode Jun 24 02:58:18 and give really really weird errors Jun 24 02:58:31 for me it failed for example to download some file Jun 24 02:58:36 complaining about a cert error Jun 24 02:58:43 even though all certs were instaled Jun 24 02:58:44 est31: i have the openjdk 7 from debian :p Jun 24 02:59:01 thats good :) Jun 24 02:59:10 just be warned, dont switch to 9 just yet Jun 24 02:59:27 idk how it is on debian, I'm an ubuntu user Jun 24 02:59:40 est31: we're alike i guess Jun 24 02:59:45 est31: you use openjdk ? Jun 24 02:59:47 and on 16.04 you cant chose 7, there is only 8 and 9 Jun 24 02:59:54 hassoon, yes but not with android studio Jun 24 02:59:57 I only build apps **** ENDING LOGGING AT Fri Jun 24 02:59:58 2016