**** BEGIN LOGGING AT Fri Jun 12 02:59:59 2015 Jun 12 03:04:39 is there "Run without build" button in Android Studio? Jun 12 03:07:46 "This version of the rendering library is more recent than your version of Android Studio. Please update Android Studio (Details)" <== this AS is already the latest stable version. do you force me to use the canary version of AS? Jun 12 03:19:01 Yes, you can just make a new run configuration and take out the 'make' Jun 12 04:06:24 anything new and cool in android land today ? Jun 12 04:07:26 I started reading rxjava tutorial yesterday Jun 12 04:07:31 nice :) Jun 12 04:07:43 looks like google put up a phone picker https://www.android.com/phones/whichphone/ Jun 12 04:07:45 hard to say Jun 12 04:08:02 still can't understand why Jun 12 04:08:24 do you ever write you data to notepad .txt? ive found after a good distance of horizontal it automatically wraps to the next line.. even though word wrap is disabled. which sucks because my data is longer parsebale Jun 12 04:08:34 no longer* Jun 12 04:09:11 sounds like you have soft/hard line wraps enabled ? Jun 12 04:09:17 if you can't use notepad, what can we advice to you? Jun 12 04:09:17 don't use notepad :) Jun 12 04:09:41 this was pretty good read http://www.theguardian.com/technology/2015/jun/09/google-privacy-apple-android-lockheimer-security-app-ops Jun 12 04:09:49 its just weird, i thought the horizontals were suppose to go on forever Jun 12 04:09:59 not if you have margins Jun 12 04:10:32 hey g00s, “Why it took us so long to match Apple” — isn't it what I was telling you ? :) Jun 12 04:10:47 i dont, its a pretty plain .txt it already goes well beyond the windows width*5 but eventually wraps -.- Jun 12 04:10:50 but still it lags behind couple of years Jun 12 04:10:59 squ there was a link in there that was very fascinating http://www.theguardian.com/technology/2013/dec/20/android-apps-permission-app-ops Jun 12 04:11:15 ye Jun 12 04:11:16 seemed like burke and hackborne were not agreeing on stuff Jun 12 04:11:25 the guardians think alike :) Jun 12 04:11:43 “why has it fallen so far behind Apple's iOS ?” Jun 12 04:12:06 g00s: you have to try the xcode, obligatory, at least just try :) Jun 12 04:12:14 i guess i have sublime 3, which can open a .txt Jun 12 04:12:28 now with their st3 is nice Jun 12 04:12:33 oops Jun 12 04:12:47 NateRiver ST3 is nice Jun 12 04:13:10 i have to try atom again Jun 12 04:13:56 DreamCoder: thx. why doesn't AS make that configuration(without make) as default? Jun 12 04:15:21 g00s i have it but i never used it, it looks like evern though it wraps the line number dosent increase. thats cool Jun 12 04:25:21 "BlackBerry may put Android system on new device" Jun 12 04:25:55 hmm. i guess it could make sense if they put their special enterprise prvisioning stuff on there O.o Jun 12 04:27:07 I saw a book at the bookstore called the rise and fall of blackberry, so im assuming they were destroyed? Jun 12 04:27:44 iOS destroyed them Jun 12 04:28:35 last i heard they were picoting to using QNX in embedded medical Jun 12 04:28:39 *pivoting Jun 12 04:28:58 at least at the time, QNX was the cats meow Jun 12 04:29:35 they should have abandoned BB10 before it launched, and gone to being *the* enterprise Android vendor Jun 12 04:30:11 they just never liked the touch screen idea Jun 12 04:30:33 they could still have had keyboard phones Jun 12 04:31:42 Leeds yeah, maybe. although iOS seems to beat android in enterprise adoption quite easily Jun 12 04:32:02 te world just changed , BB wasn't ready Jun 12 04:34:06 firstly, a tiny sliver of the Android market would have been massively bigger than the entire BB10 market Jun 12 04:34:27 secondly... maybe a BB/Android combo would have beaten iOS in the enterprise? Jun 12 04:38:06 i seem to run into this a lot in kitkat ... pressing the back button doesn't do anything Jun 12 04:38:43 when i'm at the root activity, back should exit the app. usually it does. but sometimes it just doesn't (like in Play) Jun 12 04:39:34 swipe away Play, start it again Jun 12 04:39:40 back work again. weird Jun 12 04:44:46 I broke down and bought a couple iOS devices tonight Jun 12 04:44:54 then bought Apple Dev Program membership Jun 12 04:45:35 I dunno why I live tweet my life re: development in here, sorry. Jun 12 04:47:31 robovm! Jun 12 04:49:13 mdeboard i'm looking forward to the ipad pro (12"). i'll either get that or a surface Jun 12 04:49:59 korg has some cool software for iOS i'd like to try http://www.korg.com/us/products/software/korg_im1_for_ipad/ Jun 12 04:50:04 I hear iOS is finally adopting true multitasking...where you can now view and interact with two apps at the same time. Android has had that for a while now. So it really is back and forth...sometimes Android lifts ideas from iOS, and sometimes iOS lifts their features from android :) Jun 12 04:50:54 DreamCoder to enable multitasking they just have to flip a bit Jun 12 04:51:18 its mach underneath like osx Jun 12 04:52:05 but yeah, they decided against it for a while - but beside some article i'm not sure what their new split window amounts to Jun 12 04:52:15 DreamCoder: Pretty obvious to me there is much more innovation happening on the Android side than iOS, and it's been accelerating these past years Jun 12 04:53:15 5.0 mostly gave us material. MNC mostly gives us permissions (which iOS had). not really sure Android is going fast either Jun 12 04:53:38 actually they both seem kinda stuck in a rut Jun 12 04:54:19 NFC, wireless charging, so many features that iOS still doesn't have Jun 12 04:54:26 iOS has had multipath tcp, mature ble - in some ways they are ahead, in other ways android is i guess Jun 12 04:54:41 Apple is even playing catch up with Microsoft in the OS department, copying features that appeared in Windows 7 in 1989 Jun 12 04:55:10 CedricBeust i have been dissapointed with Apple wrt security Jun 12 04:55:16 OS X security Jun 12 04:55:36 i get the impression windows is a much hardier platform (although attacked more often) Jun 12 04:55:36 @CedricBeust yes, I agree wholeheartedly Jun 12 04:55:53 and OS X has that super crappy filesystem HFS+ Jun 12 04:55:56 How do you mention someone in IRC? I'm fairly new to it Jun 12 04:56:26 by now NTFS isn't too shabby, but definitely more reliable than HFS Jun 12 04:56:44 NTFS used to be so damn slow Jun 12 04:57:06 DreamCoder: start typing their nick and hit tab Jun 12 04:58:06 bankai_: Ahhh...ok. thanks! Jun 12 04:58:44 i think iOS full disk encryption is still ahead of android Jun 12 04:58:57 so yeah, not an obvious win on either side imho Jun 12 04:59:38 g00s: android has full disk encryption Jun 12 04:59:50 it used to be optional, now it's the default Jun 12 04:59:50 DreamCoder sure does, but has issues Jun 12 05:00:12 g00s: Ah, ok... I haven't ran into any issues with it yet. Jun 12 05:00:17 it was enabled by default on the nexus, but not any more Jun 12 05:00:19 Amazing to me that today, you still need to write to core data on the main thread Jun 12 05:00:49 CedricBeust: What do you mean? Jun 12 05:01:55 What I just said, Core Data operations need to be done on the main thread Jun 12 05:02:22 and lets not forget, the reason why iOS has such strong enterprise adoption was google took *forever* to incorporate those features in "Android for Work" Jun 12 05:02:56 so that means 13% android devices are enterprise friendly, since that came with 5.0 Jun 12 05:03:17 Apple also did a huge drive to get businesses and educational institutions using their product Jun 12 05:03:41 i saw they teamed up with square for their apple pay thingy ma bob Jun 12 05:04:01 I work for a company that used to make windows tablet software, but one day an Apple rep came to them and showed them an iPad, made them a partner and suddenly no more Windows tablet code! Jun 12 05:04:33 And Apple did a huge program to outfit schools with Macs and iPads... Jun 12 05:05:01 DreamCoder i've heard some negative things about the iPads in school stuff ... Jun 12 05:05:40 Apple is just repeating history since it worked out well for the Apple ][ and Mac Jun 12 05:05:46 some districts have wanted to sell back their ipads Jun 12 05:06:09 Yes, the school program hasn't worked as well as it did for the Apple ][ and Mac Jun 12 05:07:13 this was april http://fortune.com/2015/04/16/la-schools-ipads-apple-pearson/ Jun 12 05:07:29 the LA thing is a huge corrupt mess Jun 12 05:07:32 not sure where the lawsuit is, not following it Jun 12 05:07:57 Also http://www.theverge.com/2015/6/8/8749005/apple-wwdc-catch-up Jun 12 05:08:29 g00s: Whoa...that's crazy Jun 12 05:08:31 yeah this year was boring, i wonder if they are running out of ideas now that steve is gone Jun 12 05:09:48 I think part of it is that these projects massively underestimate the cost and time involved in developing educational software, additional materials, training for teachers, getting it past the unions and local politicians/PTAs etc. etc. Jun 12 05:10:07 the cost is not in providing hardware Jun 12 05:10:41 Leeds yeah - and not being any expert in educational sw - i'm quite skeptical about the whole genre atm. although, i think VR will change all of that Jun 12 05:10:57 like for example, that I/O VR thing where the class went 'on a trip' Jun 12 05:10:58 I have a tiny bit of very old experience... it's not easy Jun 12 05:11:12 g00s: you must have seen my Simpsons youtube clip, right? Jun 12 05:11:22 Leeds give it to me again :D Jun 12 05:11:53 https://www.youtube.com/watch?v=l1_bp8YKUPU Jun 12 05:12:15 i think i read somewhere that - at least in college - students preferred real books Jun 12 05:12:26 marking, highlighting, whatever Jun 12 05:12:32 reselling Jun 12 05:12:56 hello all Jun 12 05:13:07 Leeds haha, yup thats good Jun 12 05:13:40 Leeds when they can, at least in the US college texts are a huge scam itself :( Jun 12 05:13:57 so you are lucky if you can sell yours Jun 12 05:14:44 g00s: it actually freaks me out slightly how prescient the Simpsons has been, occasionally Jun 12 05:14:57 you just have to be a cynical bastard Jun 12 05:15:06 and poof, magically prescient Jun 12 05:16:14 I love printed textbooks Jun 12 05:17:18 I've still got one of mine on the shelf back at my parents' place... maybe it wasn't such a big deal in the UK, back in the day Jun 12 05:17:23 thats a pretty fascinating debate (to me) : ebooks vs printed books. i had to go ebook because of space savings, but yeah ... seems like physical books have some special quality Jun 12 05:17:31 listview with custom adapter, on using setOnClickListener to retured view, disables the default click and long press behaviour of listview. any suggestion how to not let the default behaviour go away? Jun 12 05:17:37 given that it's an Ada book, I can't see it being worth much :D Jun 12 05:21:32 I'm taking off...have a goodnight everyone! Jun 12 05:22:10 bye Jun 12 05:22:14 :) Jun 12 05:23:12 http://en.wikipedia.org/wiki/Lida Jun 12 05:27:18 wohhoo, i like seeing oracle suffer http://www.bloomberg.com/news/articles/2015-06-11/oracle-sales-eroded-as-startups-embrace-souped-up-free-software Jun 12 05:31:09 “A lot of the startups now go with MySQL or less expensive options,” said David Wolff, the CEO of Database Specialists, a database consultancy. “The only thing that people complain about with Oracle is how much it costs.” Jun 12 05:32:29 if android will catch up with the quality of ios, will it match this mysql-oracle situation? Jun 12 05:32:41 probably yes Jun 12 05:35:12 Yo, I did the fragment yesterday evening. ha ha ha ha Jun 12 05:35:50 good for you Jun 12 05:35:51 :) Jun 12 05:36:10 hahahehehehoho: now try RxJava Jun 12 05:37:56 doubt those guys who told me to use fragment are still here. cannot remember their nicks. my benefactors. XD Jun 12 05:38:19 g00s: I own http://hurdcatz.com Jun 12 05:38:22 i can help Jun 12 05:38:32 I point it to MariaDB.org of course Jun 12 05:39:01 People have been saying that Oracle was going to go bankrupt because of MySQL since the early 2000s. Never happened, probably never will. Nothing new. Jun 12 05:39:05 nice Ologn Jun 12 05:39:30 oh yes, g00s,i think it was you who told me to give up. Jun 12 05:40:05 hahahehehehoho i dont think i helped with that one, i was very confused what you were trying to do :D Jun 12 05:40:10 There are maybe a couple of people total in the industry who say we should move away from fragments. I don't think this should be taken seriously. Jun 12 05:40:46 I like fragments as a concept Jun 12 05:40:54 but they can hairy fast Jun 12 05:40:56 get* Jun 12 05:41:33 Hasn't really been my experience Jun 12 05:41:50 Keep your activities naked, move the logic into fragments, be consistent how fragments and activities communicate. Jun 12 05:41:53 No big deal really Jun 12 05:42:44 the thing ive had annoyances with is back pressing Jun 12 05:43:03 Yeah Jun 12 05:43:07 CedricBeust: why? Jun 12 05:43:17 Why what? Jun 12 05:43:25 Kepp … etc Jun 12 05:43:37 g00s nvm, i need help with something else though. Jun 12 05:43:51 i want to understand how to do interface callbacks. Jun 12 05:44:08 hahahehehehoho: http://www.zombo.com Jun 12 05:44:09 If you follow simple rules, the lifecycle remains simple. You don't have to deal with interleaving lifecycles between activities and fragments, you only deal with fragments Jun 12 05:44:12 automatic would be nice. Jun 12 05:44:21 hahahehehehoho: everything is possibel Jun 12 05:44:34 http://www.javaworld.com/article/2077462/learn-java/java-tip-10--implement-callback-routines-in-java.html i am tring to do this but dont understand how the two classes interact Jun 12 05:44:36 the only limit is yourself Jun 12 05:44:45 yeah, naked activities. just put stuff in fragments instead. i use activities only if they need to receive intents Jun 12 05:45:12 the only thing my activity does is handle switching out fragments Jun 12 05:45:39 if you go mvvm , even your fragments start to look bare Jun 12 05:46:16 i think as i've done android, its been constant learning to get as much crap out of the official components as possible Jun 12 05:46:34 (activity, fragment, service, etc) Jun 12 05:46:46 but those damn contexts Jun 12 05:46:59 Does anyone know if you dont set an icon in a navigationview, will it simply appear like a divider text would, i.e aligned to the left w/o space for an icon? Jun 12 05:47:26 I have sort of a list of categories that don't have any real icons Jun 12 05:48:39 CedricBeust: do you have an example? Jun 12 05:49:55 * g00s still waiting for CedricBeust 's next blog post :D Jun 12 05:50:06 are his posts good? Jun 12 05:50:12 sure Jun 12 05:50:33 I found this guy, when searched for rxjava tutorial http://blog.danlew.net/2014/09/15/grokking-rxjava-part-1/ Jun 12 05:50:54 Dan's series is a good start Jun 12 05:51:15 CedricBeust: you have to chat less and spend more time on the blog Jun 12 05:51:48 squ: Fair point Jun 12 05:52:20 heh Jun 12 05:52:43 squ the couchbase one is good too Jun 12 05:53:25 http://docs.couchbase.com/developer/java-2.0/observables.html Jun 12 05:53:35 okey Jun 12 05:53:38 thank you Jun 12 05:54:12 give something about fragments Jun 12 05:54:30 :) Jun 12 05:55:50 squ have you seen this https://github.com/tehmou/rx-android-architecture Jun 12 05:56:17 is there a best practice for managing intents between applications? Jun 12 05:56:56 g00s: I'll check these later at Sat/Sun Jun 12 05:58:17 error: incompatible types: Set cannot be converted to HashSet Jun 12 05:59:33 HashSet myHashSet; Set mySet = myHashSet; Jun 12 06:07:03 Hi. Was wondering if anybody knows of any alternative ways of developing for android? Thinking along the lines of Xamarin, except... not Xamarin. Or if there are any libraries etc. that make the API less painful to deal with? Jun 12 06:07:42 robhol not really ... just use as few apis as you can :P Jun 12 06:16:23 hi guys I've got a problem with google cardboard - is it suitable place to ask about it? Jun 12 06:19:06 are you developing on it Jun 12 06:20:29 The problem is about the hardware - I've got 2 phones - gt-i8190 and i8160. When I run google cardboard app on gt-i8190 it runs good but on i8160 the reaction of accelerometer is slow. Jun 12 06:22:12 what is the cause of it? Jun 12 06:23:18 I run same app on both, the speed of the rendering is the same, but when I try to move on i8160 its very slow Jun 12 06:24:59 is there a way to get the manifest data of a service in java? Jun 12 06:25:32 i.e. upon instantiated the service class, check it's manifest parameters Jun 12 06:28:13 Has anyone dynamically removed a navigation item from a navigationview>? Jun 12 06:29:01 http://developer.android.com/guide/topics/manifest/meta-data-element.html I don't seem to have a reference to PackageItemInfo Jun 12 06:29:15 Context: Removing a navigation item based on status of an IAP Jun 12 06:39:55 Well it does work Jun 12 06:40:34 NavigationView is pretty nifty. Jun 12 06:44:06 Although, there is no way to tell the navigationview to 'select' an item Jun 12 06:44:58 desmin88 so when you need to recreate the activty (saviedInstanceState) how do you get everything selected / back to where it was before ? Jun 12 06:45:59 If there is no state I select the appropriate item, otherwise I handle toolbar subtitle state and the fragment is retained Jun 12 06:48:21 My workaround was to save the reference to my onnavitemselected listener and just call it manually on my index 0 item Jun 12 06:48:53 whoo hoo! praying for some androidTV users are kicking around Jun 12 06:49:33 Although it does have the checked item bug Jun 12 07:01:33 is there a way to see a service's manifest intent filter from within the service? Jun 12 07:02:12 no Jun 12 07:03:25 intentfilters in service are bad anyways ;) Jun 12 07:04:18 danijoo, I'm trying to query for an intent from an outside app, but I want to make an sdk so that the replier conforms to some constraints Jun 12 07:04:54 redengin, doesnt this service has a documentation to get the info you need? Jun 12 07:04:56 been trying to get my game approved for ATV and seems I am having issues Jun 12 07:05:57 <_rm> anyone know how to include a proguard configuration in an AAR library? Jun 12 07:06:24 danijoo, I'm creating this service, it can have four different types of intent, but I want to validate that the intent matches the intentFilter Jun 12 07:06:48 _rm, libraries dont run proguard Jun 12 07:06:56 all my tests on the emulators / phones/tablets are all good...just the AndroidTV review team seems to get the game crashing on startup.... hoping someone with a ATV can run a test Jun 12 07:07:25 <_rm> danijoo: i know, i meant including proguard.txt in the AAR file Jun 12 07:07:37 redengin, just check for the intent data programmatically. Its bad practice to have service intent filter and for lollipop implizit intents are deprecated Jun 12 07:07:43 _rm, no Jun 12 07:07:53 <_rm> so that users don't have to add proguard exceptions and the like themselves Jun 12 07:08:12 <_rm> danijoo: http://tools.android.com/tech-docs/new-build-system/aar-format Jun 12 07:08:28 how would you know what proguard config the libuser wants Jun 12 07:08:47 hm.. Jun 12 07:08:52 danijoo, what I need is for a controller app to query intents from other apps, those apps can service one or more types of display Jun 12 07:08:54 interessting. didnt know that :) Jun 12 07:09:05 <_rm> what? obviously you want to specify exceptions for the library Jun 12 07:09:07 but the question is.. how does the system recognice this Jun 12 07:09:28 <_rm> danijoo: no idea, i just noticed it when i was integrating google play services to a project, and they don't list proguard exceptions on the page anymore Jun 12 07:09:29 _rm, yeah but what if you put -obfuscate in it and my app has -dontobfuscate? Jun 12 07:09:45 <_rm> Note: ProGuard directives are included in the Play services client libraries to preserve the required classes. The Android Plugin for Gradle automatically appends ProGuard configuration files in an AAR (Android ARchive) package and appends that package to your ProGuard configuration. During project creation, Android Studio automatically creates the ProGuard configuration files and build.gradle properties for ProGuard use. To use ProGuard with Android Studio, you m Jun 12 07:10:17 <_rm> danijoo: i dunno, honestly, i hope the automation overrides that stuff :) Jun 12 07:10:20 why do I still have to add tons of proguard config for play services then -_- Jun 12 07:10:31 danijoo, I'm assuming that the only way non running apps can be seen is through the manifest Jun 12 07:10:31 (and Im still over 65 k limit ^^ ) Jun 12 07:10:48 <_rm> like, i'd assume that they've thought of that stuff, but then again it's proguard and google so who the hell knows Jun 12 07:10:57 <_rm> (sorry i hate messing with proguard) Jun 12 07:11:10 yeah me too Jun 12 07:11:21 its kinda like try and error to get a working proguard config :/ Jun 12 07:11:39 <_rm> it's been an endless source of headaches for both us and our clients Jun 12 07:11:51 <_rm> for a while we shipped our apps without proguard entirely Jun 12 07:11:58 and then you always have to figure it out again when you want to add a new lib Jun 12 07:12:21 * danijoo needs proguard to shrink kotlin runtime Jun 12 07:13:33 also you need proguard for samsung toolbar bug Jun 12 07:13:41 or the app will crash :/ Jun 12 07:14:00 hey... i can't find the class readStream is a part of.. any help? googeld, searched d.android.com also Jun 12 07:14:10 <_rm> danijoo: wait what Jun 12 07:14:13 <_rm> what toolbar bug Jun 12 07:16:27 _rm, the thing that you cant set support version of toolbar as actionbar on some samsung 4.x devices Jun 12 07:16:44 it will crash unless you repackage some classes of supportlib with proguard Jun 12 07:17:19 because samsung somehow thought its a good idea to put an old version of support lib INTO their rom which then overrides the one packaged in your app Jun 12 07:17:47 hello Jun 12 07:17:53 _rm, this: https://code.google.com/p/android/issues/detail?id=78377 Jun 12 07:18:05 I've created a power toggle widget Jun 12 07:18:44 ? Jun 12 07:18:51 but it appears wrong: http://imagebin.ca/v/24xGiX9O7unQ Jun 12 07:19:07 <_rm> danijoo: wow Jun 12 07:19:09 This the the layout: http://pastebin.com/LUuuGZSp Jun 12 07:19:16 What have i to fix? Jun 12 07:19:18 Any ideas? Jun 12 07:21:10 _rm, end of the story: google does not want to change it because its a samsung issue, samsung wont change it because its old devices. And we end with ~ 30% marketshare of crashes if not proguarding :D Jun 12 07:22:01 danijoo minSdk=21 yolo ! Jun 12 07:22:35 <_rm> oh man that'd be nice Jun 12 07:22:42 <_rm> our minSdk is 15 :( Jun 12 07:22:45 g00s, cant wait to do that Jun 12 07:23:00 or min sdk MVC with new permissions :) Jun 12 07:23:26 danijoo: so what is the current fix people are using? Jun 12 07:23:50 surf2b1, repackage the class that causes the crash to have it in another namespace Jun 12 07:24:20 danijoo: android.support.v7.internal.view.menu.MenuBuilder ? Jun 12 07:24:25 yep Jun 12 07:24:41 thx. and wow Jun 12 07:25:00 yeah it sucks Jun 12 07:25:13 i basically wouldn't need proguard if those fuckers didn't fuck up Jun 12 07:25:33 and all the headache it brings with the libraries i use Jun 12 07:26:29 another fix is try {...} catch (NoClassDefFoundError e) { toast("Please dont by samsung devices.") } Jun 12 07:26:54 danijoo submit that patch to google against support lib Jun 12 07:27:09 ^^ Jun 12 07:28:14 I think I'll start catching every possible exception and just throw a toast up saying "it worked for me. Your phone just sucks" :P Jun 12 07:28:53 <_rm> have y'all tried this http://fbinfer.com/ Jun 12 07:30:06 it looks like coverity Jun 12 07:30:22 but all these SF hipsters have to keep reinventing shit Jun 12 07:35:52 have given up on mopub Jun 12 07:35:55 shits too confusing Jun 12 07:39:13 Hey does anyone of you have a code sample for authenticating user on python backend? I am new to oauth and there are so many different ways given even by Google. Jun 12 07:40:22 WantToCode, my experience has been that oAuth has become more and more proprietary Jun 12 07:41:16 redengin, didn't get you. I am using google sign-in and want to authenticate user in the backend. Sorry for noobiness. Jun 12 07:42:00 WantToCode, the idea behind oAuth was to be universal, that there could be a shared trust token Jun 12 07:42:42 mopub is telling me my revenue is 360.39 from admob, admob says 0 Jun 12 07:42:52 WantToCode, anymore the trust has gone away. If you're focusing on a single connection (google) then you should be able to use the google api Jun 12 07:43:57 redengin, Yeah I would using only Google sign in. I have implemented the sign in and now also getting the token. But unable to find how to send it to server and authencticate. Jun 12 07:44:39 if you have the token (and the necessary permissions on the token) you should be able to use it on behalf of the user Jun 12 07:45:46 hi , I am making a KIOSK android app for a tablet , I am removing the Title bar and system bar using this root command : service call activity 42 s16 com.android.systemui Jun 12 07:45:47 Doesnt the process contain sending this token (from Google) to your server and verifying it? Jun 12 07:46:21 hi , I am making a KIOSK android app for a tablet , I am removing the Title bar and system bar using this root command : service call activity 42 s16 com.android.systemui but whenever this command runs the whole UI refreshes and system is locked in lockscreen mode , How to override that ? Jun 12 07:56:25 any android TV users? need to test out my game Jun 12 07:58:51 seems like android one is failing atm http://recode.net/2015/06/11/beset-with-failures-google-tries-to-breathe-new-life-into-android-one/ Jun 12 08:02:34 What could cause constant phone crashes that result in boot loops? I've changed nothing on my phone Jun 12 08:03:53 possibly bad flash Jun 12 08:04:12 as in the actual hardware Jun 12 08:06:51 ^^ Jun 12 08:06:59 desmin88, How old is the phone? Jun 12 08:07:12 its a droid dna, maybe 1.5 yrs Jun 12 08:07:24 Remove the SD card Jun 12 08:07:29 there is none Jun 12 08:07:36 ahh shit : / Jun 12 08:08:00 might go and get the sony z3v Jun 12 08:08:03 only 99c Jun 12 08:08:14 99c ... Jun 12 08:08:20 hmmm is it a cellphone? Jun 12 08:08:41 yes the droid dna is a cellphone Jun 12 08:08:54 Yea no I mean the z3v for only 99c? Jun 12 08:09:03 yes Jun 12 08:09:04 where are you from though? Jun 12 08:09:07 usa Jun 12 08:09:22 Eh it's funny because Jun 12 08:09:44 My gf is currently working on an Android project and his EMULATOR restart all the time Jun 12 08:09:57 lel Jun 12 08:10:22 gf, his? :o Jun 12 08:10:32 I'm French Jun 12 08:10:40 I'm born with broken english Jun 12 08:10:42 :P Jun 12 08:10:53 i know only omelette du fromage :v Jun 12 08:11:00 Yeah and that's wrong Jun 12 08:11:07 It's omelette au fromage Jun 12 08:11:07 dexter is never wrong Jun 12 08:11:14 AU Jun 12 08:11:55 kruosan Jun 12 08:12:14 I don't know how you can translate "omelette du fromage" Jun 12 08:12:37 "omelette of Cheese" Jun 12 08:12:42 Where Cheese would be the name of someone Jun 12 08:12:43 lol Jun 12 08:13:02 do you know Kruosan? Jun 12 08:13:07 Nope Jun 12 08:13:14 you are not french Jun 12 08:13:28 I am Jun 12 08:13:33 I have no idea what Kruosan is Jun 12 08:14:27 wait wtf, i think my power button is like stuck or something Jun 12 08:14:48 desmin88, lol, that happend to my laptop Jun 12 08:15:00 It's a cool bug Jun 12 08:15:09 Because it measn your device is not entirely broken Jun 12 08:15:12 thats how my brain works at work Jun 12 08:15:52 Ribesg: http://img3.ask.fm/assets/194/827/004/normal/1297193386_128.jpg Jun 12 08:16:06 squ, OMG Jun 12 08:16:08 REALLY Jun 12 08:16:11 DID YOU MEAN CROISSANT Jun 12 08:16:20 omg "kruosan" Jun 12 08:16:35 http://naelis.ru/foto/kruosan.jpg Jun 12 08:16:38 read link ^ Jun 12 08:16:46 k-r-u-o-s-a-n Jun 12 08:16:53 squ, this one isn't a croissant Jun 12 08:17:04 http://kdinastia.ru/file/kdinastia_ru/sloenoe/kruosan_s.jpg Jun 12 08:17:05 Or maybe an american croissant, where every food sucks Jun 12 08:17:09 "kruosan_s" Jun 12 08:17:20 squ, not croissant either Jun 12 08:17:22 thank you, I already know you are not real French Jun 12 08:17:37 https://www.google.com/search?q=croissant Jun 12 08:17:39 each french know what kruosan is Jun 12 08:17:47 Nobody knows what that is here Jun 12 08:17:57 you just pretend you are french Jun 12 08:18:01 noob Jun 12 08:18:37 Well I'm born in Saint-Nazaire, lived in Albertville for around 15 years and now live in Grenoble where I work for HP France Jun 12 08:18:52 yes yes Jun 12 08:18:53 And my French is perfect Jun 12 08:18:56 sure Jun 12 08:19:07 But I had a good laugh, thanks Jun 12 08:19:17 Haha kruosan Jun 12 08:19:24 :P Jun 12 08:19:30 I'm not sure you could write it MORE wrong than that :P Jun 12 08:19:49 I gave you couple of links with that writing Jun 12 08:20:09 Pretty sure some countries tried and failed to write it Jun 12 08:20:12 it is written so everywhere in bakeries and shops Jun 12 08:20:22 Or maybe it's for citizen to be better able to pronounce it Jun 12 08:21:44 Haha I'm gonna share that writing with everyone everywhere Jun 12 08:21:50 KRUOSAN Jun 12 08:27:14 Anyone of you have got the error "Error: Cause: peer no authenticated" before? Jun 12 08:27:24 cant sync my project... Jun 12 08:29:15 classpath 'com.android.tools.build:gradle:1.2.3' is the right one yea? Jun 12 08:35:17 no 1? Jun 12 08:42:44 any suggestions? "Error:Cause: peer not authenticated" when syncing with gradle Jun 12 08:56:09 anyway to hook into the 'free scroll'-animation that happens when it continues to scroll after the touch event is over? Jun 12 08:58:30 hi Jun 12 08:58:45 whats the wifi network settings activity name Jun 12 08:58:47 ? Jun 12 08:59:29 im using some cordova plugin which runs app and needs that param navigator.startApp.start("com.application.name", Jun 12 08:59:36 i want start wifi settings Jun 12 08:59:49 yay, cordova! meh... Jun 12 08:59:59 Settings.ACTION_WIFI_SETTINGS Jun 12 09:00:23 Ashiren, and it resovles to what Jun 12 09:00:36 android.settings.WIFI_SETTINGS Jun 12 09:01:03 i feel shameless doing this. But I am almost there... just a few more steps. Jun 12 09:01:19 Ashiren, but i need to pass there some package name i think Jun 12 09:01:30 navigator.startApp.start("com.application.name", Jun 12 09:01:53 Ashiren, im using this https://github.com/lampaa/com.lampa.startapp Jun 12 09:02:16 try com.android.settings Jun 12 09:02:22 ok Jun 12 09:02:29 but it might be not the same on all devices https://stackoverflow.com/questions/15922811/how-to-find-the-package-name-of-default-settings-application Jun 12 09:02:48 and i dont know how to find the package Jun 12 09:08:40 no one experienced this "Error:Cause: peer not authenticated" Jun 12 09:14:03 Hi guys, can you please suggest me a good lib to recognize QRCode and BarCode? Jun 12 09:15:09 zbar Jun 12 09:20:12 Ashiren, can you please point me to an Android Lib for zbar? Jun 12 09:21:36 @Tomski, are you conversant with perspective camera stuff also? Jun 12 09:25:57 StErMi, you can try this too https://github.com/zxing/zxing Jun 12 09:27:25 btw, libgdx doesn't resume after I put the phone to sleep. Jun 12 09:28:04 StErMi: https://github.com/dm77/barcodescanner Jun 12 09:28:22 Ashiren, I was looking at it, I think that I will use it Jun 12 09:28:33 it seems to have the best approach and personalization Jun 12 09:34:14 is it normal to click away for funny parrot video while watching android DevBytes Jun 12 09:34:48 is it possible to listen to a scroll event on a fling gesture? If I want a callback everytime the fling scrolls a pixel Jun 12 09:41:41 Hi, I've decided to publish an alpha version of my application so that it can be tested among my friends Jun 12 09:41:59 is it bad to publish it to google play for this purpose? Jun 12 09:42:48 if it's for a small test group, you should either publish it as a beta, or just sideload it Jun 12 09:43:35 it's too hard for my friends to sideload Jun 12 09:43:51 really? Jun 12 09:44:01 but it wouldn't be bad to publish as alpha/beta on google play then? Jun 12 09:44:27 do you know what I mean by publish as a beta? Jun 12 09:44:30 I mean, if someone just decides to download it and give me bad reviews based on this version, that's bad Jun 12 09:44:33 no? Jun 12 09:45:00 https://support.google.com/googleplay/android-developer/answer/3131213?hl=en Jun 12 09:45:10 thanks! Jun 12 09:59:59 Anyone of you got the "Error:Cause: peer not authenticated" error when syncing with gradle? I cant build my project anymore. All the help would be appreciated Jun 12 10:02:03 chrisaardal: presumably you've Binged for a solution? Jun 12 10:02:55 Googled atleast. Tried the common fixes like changing wrapper-properties to http instead of https etc Jun 12 10:03:07 worked fine yesterday before i went to bed. Jun 12 10:03:09 I dont get it Jun 12 10:09:34 AHHHH IT WORKS!! Jun 12 10:09:38 IM SO HAPPY Jun 12 10:12:56 what do you think about this: https://material-design.storage.googleapis.com/publish/material_v_4/material_ext_publish/0B3mOPoJlxiFhazJZa2VmSU5ldTQ/components_datatables_interaction_editing4.png Jun 12 10:13:43 how do you place edit and delete buttons for listview rows? Jun 12 10:13:57 do you delete them in another acitivty? Jun 12 10:14:20 toolbar action item? Jun 12 10:31:53 guys, is there any way of overriding the bindView() in SimpleCursorAdapter without making a sepratate class that extends it? Jun 12 10:36:16 luci1093: yes Jun 12 10:37:41 luci1093: yourCursor.setViewBinder(new SimpleCursorAdapter.ViewBinder(){ boolean setViewValue(View view, Cursor cursor, int columnIndex){ /* your cdoe */ return true; } }); Jun 12 10:38:07 omg, you can do it that way? Jun 12 10:38:10 omg thanks , love you Jun 12 10:38:13 >.< Jun 12 10:39:58 How do I append a path segment which is a number to a Uri ? Jun 12 10:40:46 I have added two URI to a UriMatcher , one of them takes a users/# and the other takes a users/* Jun 12 10:40:49 Are there any "wrappers" for the android API? Java isn't a stunningly flexible language, but the android API doesn't even leverage the features it does have. Even something simple like enums :p Jun 12 10:40:52 I want to query by id and email Jun 12 10:41:21 but the getContentResolver().query and Uri take String as input Jun 12 10:41:50 cast the number to a string then? Jun 12 10:42:16 the matching is done by Android not by me Jun 12 10:42:19 I can't do that Jun 12 10:42:58 then I don't understand the question :p Jun 12 10:43:03 the content resolver needs to know that if I pass a number it should pick the users/# uriMatcher but how do I pass it a number? Jun 12 10:43:39 cause it only takes String and I'll choose the users/* Jun 12 10:45:46 I'm not familiar with the API. If you can't give the number one a higher precedence, I'd say you're SOL Jun 12 10:47:07 Napalm, but can I hide views in the setViewValue? I'm trying to hide some textviews I don't need at the moment and it seems it crashes :S Jun 12 10:47:31 yes you can.. how are you hiding them Jun 12 10:47:42 and pastebin your stack trace :P Jun 12 10:47:57 well when I did it in that class it worked and when I did it here it didnt :| Jun 12 10:48:07 I get nullpointerexception Jun 12 10:48:15 lemme pasebin the code a sec Jun 12 10:48:35 is there anyone in this channel right now that has an app in the Play Store which is either paid or has in-app purchases? Jun 12 10:48:52 http://pastebin.com/md497LTJ Jun 12 10:48:53 robhol, I found a way. If I don't provide "selection" and "selectionArgs" to the query of the content resolver it'll pick the users/# (query by user id) uriMatcher if I do it pick the users/* (query by user email) Jun 12 10:48:59 I'm most likely doing something wrong :S Jun 12 10:50:49 anyone? Jun 12 10:50:54 i'm getting an nullpointerexpetion on grams.setVisibility(View.GONE); so I'm guessing the grams textview is returning null? Jun 12 10:51:28 clearly Jun 12 10:58:46 Napalm, I can't even breakpoint in it, it seems like the app skips on it ... idk >.> Jun 12 11:06:24 please, is there anyone in this channel right now that has an app in the Play Store which is either paid or has in-app purchases? Jun 12 11:07:00 <_rm> we have in-app purchases, but not using google's payment system, sorry Jun 12 11:07:31 can someone help me hide some textviews in a custom ViewBinder? it seems like it doesn't work when I do it the way I'd do it in another class where I extend viewBinder() ... -_- Jun 12 11:08:39 _rm, so you also don´t use the merchant center? Jun 12 11:08:59 <_rm> AppDevNL: i don't know what that is, so i guess not :) Jun 12 11:09:28 _rm, okay, thanks for your time though Jun 12 11:10:58 I'm trying to hide some textviews in a custom Viewbinder, can someonetell me what I'm doing wrong? http://pastebin.com/paTvMy1V ... I'm getting a null pointer exception at grams.setVisibility(View.GONE); so grams is returnning null? ... can someone tell me what am I doing wrong? :| Jun 12 11:12:44 Not returning null, is null. Jun 12 11:14:25 luci1093, I´m just guessing, but maybe the ID is not assigned (correctly) to the TextView? Jun 12 11:15:36 well I did an inner class which extends SimpleCursorAdapter and I've overriden the bindView() method and when I added that same code there and used that class it worked ... it doesn't seem to work here Jun 12 11:15:53 luci1093, could it perhaps be that your class is overriding the ID somewhere with a hardcoded value? Jun 12 11:19:30 AppDevNL, not sure what you're trying to say. idk something strange is happenning, like for example I tried to set a breakpoint around there to see if the textviews return null but the app crashes directly, like it just skips that portion of the code o.o Jun 12 11:19:49 sorry, I misread your question apparently. Jun 12 11:20:30 luci1093, are you using logcat? Jun 12 11:20:43 of course Jun 12 11:21:16 luci1093, but then you could post a debug line to your logcat, can you not? Jun 12 11:21:53 I'm doing this right now, just a sec to complile (shitty pc ...) Jun 12 11:24:13 hey Jun 12 11:24:16 sorry luci1093 Jun 12 11:24:26 i had a live issue to deal with Jun 12 11:24:36 this is what the error looks like http://pastebin.com/N32jx2Za Jun 12 11:24:57 Napalm, no problem, I figured you're busy that's why I asked again :) Jun 12 11:25:05 we'll isnt it obvious? Jun 12 11:26:04 well it is .. but like I've said I tried putting a breakpoint there to see if they really return null but it seems like that portion of the code is just skipped and the app instantly crashes Jun 12 11:26:09 sure, the message is obvious, the solution isn´t Jun 12 11:26:17 luci1093: http://pastebin.com/Fe3PWrn4 Jun 12 11:27:16 hm, lemme try it really quick Jun 12 11:28:20 depends on what the calling element is, but I can´t see it as it isn´t in the pastebin messages Jun 12 11:31:11 well Napalm it seems that is partially workig. I mean some strange things happen but I got how I'm supposed to do it, thanks xD Jun 12 11:32:21 couldn´t you use Log.d() in that method to verify what the view (or any other variable) is? Jun 12 11:32:29 the view id will still need to be in your constructor for your simplecursoradapter Jun 12 11:34:51 what would be the correct channel for asking billing related questions? Jun 12 11:35:27 AppDevNL: #doesnotexist Jun 12 11:36:12 surf2b1, not even from a developer´s point of view? Jun 12 11:36:28 I guess here would be the best place Jun 12 11:37:14 right, but I tried that and no one seems to be able to answer my question Jun 12 11:37:29 so I was just wondering if this is indeed the correct channel Jun 12 11:38:12 AppDevNL: what is the question? Jun 12 11:38:56 I´m looking for someone that has either a paid app or in-app purchases and is willing to help me Jun 12 11:38:56 I have both paid and in-app purchases on the Play Store. Jun 12 11:39:24 help you with what? Jun 12 11:39:26 surf2b1, but are you willing to help me out? Jun 12 11:39:48 I don't know what you need help with, so I can't answer that. :) Jun 12 11:40:41 don't ask to ask, just ask, if no one answer it's either nobody knows, or someone who knows not here or don't want to answer Jun 12 11:41:20 surf2b1, I would like to know how the billing system works. Like, do they send emails? Jun 12 11:43:04 From my experience they send an email to the user every time a user purchases an app or consumes an IAP. Have you read the docs? They should cover the basics. Jun 12 11:43:48 surf2b1, okay, but what information does the email contain? Jun 12 11:44:24 Hello friends, I have some methods that work in an Activity sub-class, but don't work in a regular class because they require `Context`. Here is the code in a regular class: http://pastie.org/10237113#17,25-26 . Is it better to A) Pass the Context from an Activity sub-class to the constructor of CardGraphic() . B) Take the context-requiring code and put it in a CardGraphicFactory() in the Activity sub-class? Jun 12 11:44:35 AppDevNL: Haven't looked at one in awhile. Let me see if I can find one. Jun 12 11:45:13 surf2b1, okay, thanks Jun 12 11:48:35 AppDevNL: order number (which will show in the merchant center for you if you need to issue a refund), order date, item, price. I screen captured an email: http://i.imgur.com/40hMaIZ.png Jun 12 11:48:55 Somehow the user can get your phone number because I've had calls from all over Jun 12 11:50:04 maybe they don't share that info anymore because I haven't received a call in awhile. Jun 12 11:51:06 surf2b1, okay, so this is from a buyer´s perspective, would you happen to have one from the seller´s perspective? (an image would be nice and you may hide sensitive information if you want) Jun 12 11:51:31 AppDevNL: You won't get an email notification when someone makes a purchase. Jun 12 11:51:47 You can see transactions in the Google Merchant Center though Jun 12 11:52:35 I use this app to keep track of sales: https://play.google.com/store/apps/details?id=com.rectangularsoftware.appmonger Jun 12 11:52:42 surf2b1, ah, ok. So not even a monthly email? Jun 12 11:52:57 they will notify you that they sent you a payment each month Jun 12 11:53:31 I see Jun 12 11:54:24 nvm I'll try passing the Context Jun 12 11:56:25 surf2b1, okay, I´ll see what I can do with the API. Thanks so much for your time! Jun 12 11:56:33 your welcome Jun 12 11:56:57 hey, I think I hit "don't ask me again" and "cancel" when I plugged in a USB camera in my phone and now the app that's supposed to work with it doesn't see it anymore Jun 12 11:57:05 any idea how to check if that's the case? Jun 12 12:02:24 I have a listview of music items, when I click on them I bring up my music player and play them. Now if user clicks on other music items from the listview in succession like a mad man, or just skips to the next song from the player in the same frantic fashion, I catch all those events, which all try to do MediaPlayer.prepare() [which is already really slow on our stream, another problem I am hunting] and in the end, slows down the UI Jun 12 12:02:24 and sometimes crashes the app. Jun 12 12:02:45 Question 1: How are you supposed to handle your events in such a case? Jun 12 12:02:57 When I create new project in Android Studio, it is automatically set to Relative Layout. Is it possible to change it from Component Tree (or some other way without coding xml)? Jun 12 12:03:00 That's basically my question. Jun 12 12:04:33 claint can't you just debounce the events, discard them until them until prepare is finished or something? Jun 12 12:08:10 sdsantos: I wasn't aware of debouncedClicks, thanks. Jun 12 12:09:18 sdsantos: it might solve some of my problems. Jun 12 12:11:29 sdsantos: So your version would work like this: Have a singleton/(more or less global) mediaPlayer, and have a custom DebouncedCustomListener which implements View.OnClickListener, and tie it to the singleton mediaPlayer? Jun 12 12:13:50 sdsantos: At least, that was the lightbulb I got, even though having a customClickListener that is tied to a global/singleton thing sounds pretty ugly. Jun 12 12:15:33 claint: even just debouncing the clicks for a second or so would be enough I think, but if you could accept clicks only when the mediaplayer is available, it would be best. Specially if you can give a visual clue to the user. Jun 12 12:17:45 claint: What was the problem? (I just got here and am curious of what you're all talking about.) Jun 12 12:26:51 [08:02] I have a listview of music items, when I click on them I bring up my music player and play them. Now if user clicks on other music items from the listview in succession like a mad man, or just skips to the next song from the player in the same frantic fashion, I catch all those events, which all try to do MediaPlayer.prepare() [which is already really slow on our stream, Jun 12 12:26:51 another problem I am hunting] and in the end, slows down the UI Jun 12 12:26:51 [08:02] and sometimes crashes the app. Jun 12 12:27:58 [08:02] Question 1: How are you supposed to handle your events in such a case? Jun 12 12:29:44 how can i get all data from a specific column using sqlite database ? Jun 12 12:30:53 canvs2321: What does "bring up my music player" mean? I'm assuming it means showing another activity (in the same app). Jun 12 12:32:10 my music player is a small fragment, which includes a MediaPlayer class to play the music, a remote url. Jun 12 12:32:58 TacticalJoke,that was claints question Jun 12 12:32:59 there is another fragment, a listview, which has list of music items, which make the small-fragment-music player play the piece. Jun 12 12:34:03 so basically, the issue is actually the handling of the clicks. Doing expensive actions tied to the clicks, and when the user goes all out, how are you supposed to handle those clicks. Jun 12 12:34:21 i wish there was a HTTP error code for "fuck off" Jun 12 12:34:22 :D Jun 12 12:34:26 In my case, the expensive part being, MediaPlayer.prepare() because that is the weak link in the chain. Jun 12 12:34:43 had someone try and comprimise our server Jun 12 12:34:46 claint: So the problem is that FragmentTransactions are committed asynchronously, right? Jun 12 12:34:52 wanted to send em a message :D Jun 12 12:34:56 hey TJ Jun 12 12:35:01 Hay. Jun 12 12:35:01 Napalm: You could make one. Like 469:Fuck Off. Jun 12 12:35:49 apparently 400 is the correct response for "deceptive request routing" Jun 12 12:36:38 TacticalJoke: that might be part of the problem, yes. Jun 12 12:36:45 claint: Is there any reason you're using a Fragment rather than a simple ViewGroup? Jun 12 12:37:09 recently I've completely gone off fragments Jun 12 12:37:09 If you used a simple ViewGroup, you wouldn't have this asynchronicity issue. Jun 12 12:37:14 Napalm, 418 Jun 12 12:37:22 418 is a polite "fuck off" Jun 12 12:37:25 lol teapot Jun 12 12:37:36 With ViewGroups, everything would finish before the second click was processed. Jun 12 12:37:44 When a client reaches your webserver and you answer "I'm a teapot" Jun 12 12:37:50 How different is that from "fuck off" Jun 12 12:37:52 xD Jun 12 12:38:06 TacticalJoke: In this case, no, just the first programmer who wrote the thing made it a Fragment. Since it has its own MediaPlaer and other States, like it can expand and cover the area, I don't think it was a bad call, but yeah the issue is not avoiding the fragment. Jun 12 12:38:20 TacticalJoke: The view part is fast. The expensive part is the MediaPlayer part. Jun 12 12:39:04 TacticalJoke: so "Let's not use a Fragment since they suck" discussion, while applicable, is not the solution in this case. Jun 12 12:40:10 claint: Are you creating a new MediaPlayer each time a music item is clicked? You should create a service and have one instance of the MediaPlayer and bind it to your activity Jun 12 12:40:15 Hey guys Jun 12 12:40:28 Hmm, I don't see what Fragments give you above ViewGroups here after reading that short description, but I guess if you don't want to switch from Fragments then I guess a simple solution is to have a boolean `hasFinishedLoading` flag which is checked on every click. Jun 12 12:40:37 surf2b1: I have a singleton MediaPlayer, it is not a service though. Would that help? Jun 12 12:40:41 Too many "I guess"es. :D Jun 12 12:40:42 Could I create a custom Intent class? So i can pass any item through an intent that I want Jun 12 12:41:18 MediaPlayer is another thing in android that should have never existed Jun 12 12:41:21 its the devil Jun 12 12:41:28 * Napalm burn it Jun 12 12:41:39 Napalm I got a question for you Jun 12 12:41:46 Napalm, the devil is XML Jun 12 12:41:46 TacticalJoke: The waiting part is for MediaPlayer.prepare(). And I cannot control that, because Google hardcoded the prepare durations and everything. Jun 12 12:41:47 how can i get all data from a specific column using sqlite database ? Jun 12 12:42:38 Ribesg: XML used for non-markup uses is the Devil Jun 12 12:42:51 Ribesg: or non-conversion reasons Jun 12 12:43:02 That's too complicated Jun 12 12:43:02 Ribesg: like storing a fucking database in XML Jun 12 12:43:05 XML is the devil Jun 12 12:43:06 Napalm: yes, I even started looking at openmxplayer(but can't use it since API level support), compiling ffmeg (which I won't do if not as a last resort). Thinking about just controlling the click events for now. Jun 12 12:43:08 PHP is the devil Jun 12 12:43:19 Napalm, I store my databases in YML Jun 12 12:43:20 claint: yes you can Jun 12 12:43:29 claint: use prepareAsync Jun 12 12:43:30 lol Jun 12 12:43:44 It sounds like a boolean flag might be the solution. Anyway, I gotta run. Jun 12 12:43:48 Napalm: did that. crashes with this kind of stream 50% of the time. I don't know why. Jun 12 12:44:04 claint: As long as you aren't creating a new MediaPlayer it shouldn't make too much of a difference. prepareAsync() should return immediately and not block the UI thread. Jun 12 12:44:06 claint: because you have other state issues Jun 12 12:45:19 Napalm: you might be right there, the original program has all kinds of state issues, I am reviewing the code as well. Jun 12 12:46:20 surf2b1: prepareAsync() doesn't block, right, but on this particular stream (which is not actually a stream but a http response with mp3 attachment) it fubars half the time, and refuses to play. Jun 12 12:46:48 Anyway, thanks, I'll check the code some more, and look for a fix. Was just asking for ideas. Jun 12 12:47:07 And I agree that MediaPlayer is evil. Jun 12 12:50:21 there are just certain things Google should be adding to the API but they are more concerned with "making new fancy features" Jun 12 12:50:35 things like a MediaPlayer that has a getState() Jun 12 12:50:42 would be much better to have Jun 12 12:51:05 all hail the devil http://developer.android.com/images/mediaplayer_state_diagram.gif Jun 12 12:51:41 * Napalm prostrate himself at the foot of the almighty MediaPlayer state diagram Jun 12 12:51:47 hi, what are in your opinion the best European training houses for Android development? Jun 12 12:53:27 There are training houses? Jun 12 12:53:45 sounds like something out of kung-fu movie Jun 12 12:53:52 Hello, I'm trying to understand when to use fragments. In my Blackjack app you have a set of the dealer's cards and the player's cards. Should each set of cards be in its own fragment? Or the whole playing field should be inside one fragment? Jun 12 12:54:39 Or I should use a ViewGroup for each set of cards inside the whole playing field Fragment? Jun 12 12:55:16 SpaghettiCat: each of your card's is a View.. and your playground is a ViewGroup.. and that can be managed by a Fragment (if you want) Jun 12 12:56:07 Napalm: is this the way for best re-use? Because the dealer's and player's set of cards are very similar, and I want to stick to the DRY principle Jun 12 12:56:44 claint: of course. If something like LUA has training courses then Android would to I'm sure. Jun 12 12:56:46 SpaghettiCat: erm... what? Jun 12 12:56:57 I just don't know which one is the "best". Jun 12 12:57:00 SpaghettiCat: how is what i've said against it Jun 12 12:57:10 its perfectly DRY Jun 12 12:57:17 p_l: the concepts are not too different I guess. Jun 12 12:57:44 Napalm: But if each card is a View, and the whole playground is ViewGroup, I'm not re-using the _set of cards_ Jun 12 12:58:05 I'm re-using the card, but not the set of cards Jun 12 12:58:20 SpaghettiCat: huh? Jun 12 12:58:20 AppAraat, what exactly are you looking for? Like couple of days on-site training? Jun 12 12:58:34 yes, pretty much. Jun 12 12:58:50 it's meant for training someone to train future developers. Jun 12 12:59:16 SpaghettiCat: "set of cards" is what the player and the dealer have each.. correct? Jun 12 12:59:22 EPG: (so someone would then get "sufficient" skills to become a trainer themselves) Jun 12 12:59:22 yeah Jun 12 12:59:54 Sorry I'm very new, maybe I'm not understanding something. I'll try to do it like you said Jun 12 12:59:57 SpaghettiCat: im not seeing the problem then. they each have their own set Jun 12 13:00:13 thanks for the help Jun 12 13:00:21 SpaghettiCat: do cards transfer from the dealer to the player? Jun 12 13:00:50 AppAraat, hm, maybe this: https://commonsware.com/training/ Jun 12 13:01:01 in most card games the cards are on the table "playarea" not under one person Jun 12 13:01:05 SpaghettiCat: ^ Jun 12 13:01:20 SpaghettiCat: the notion of a "set of cards" someone owns is not part of the display.. but the model Jun 12 13:01:22 Napalm: no they transfer from the deck to each competitor. So I want methods like DealerCardSet.DrawCard(), and CreateCardSet(Dealer); i.e. the code has to be re-usable for both Dealer and Player Jun 12 13:01:40 SpaghettiCat: so again.. Jun 12 13:01:43 I don't know any training houses in a sense that they have a fixed location and offer (regular) trainings Jun 12 13:02:24 SpaghettiCat: now you have some objects: player, dealer, deck.. the notion of who owns the card should not be part of the display Jun 12 13:03:07 SpaghettiCat: Cards(View) in a PlayArea(ViewGroup) with logic in a Fragment to control the model Jun 12 13:03:12 Napalm: I coded the model part, now I'm trying to connect it with the View part and having a hard time conceptulizing it Jun 12 13:03:21 SpaghettiCat: Jun 12 13:03:25 heres how i would do it Jun 12 13:04:03 the PlayArea ViewGroup could look at each child View and to getTag() to get the model for the Card. which can tell it where to position the cards on the screen. Jun 12 13:04:07 simple enough Jun 12 13:04:17 or you might want to go another route Jun 12 13:04:28 like each player has a edge Jun 12 13:04:34 and card order Jun 12 13:04:44 and they line up centered along an edge Jun 12 13:05:01 SpaghettiCat: it really depends on how you want to lay it all out Jun 12 13:05:22 It feels that because a "Set of cards" of the dealer and the player are so similar that they must be sub-classes. So I can have methods like DealerCardSet.RevealAllCards() and same for Player Jun 12 13:05:52 SpaghettiCat: the main thing to understand here. is really the ViewGroup should be in control of positioning and animating its child views.. not the game logic in the fragment.. the game logic updates model state and the playarea(ViewGroup) responds to those changes to update the display Jun 12 13:06:06 SpaghettiCat: a set of cards is a model Jun 12 13:06:49 the PlayArea(ViewGroup) might have a List of SetOfCards and for each it can add the view's and attach the cards and display them Jun 12 13:07:35 You mean `(ViewGroup)PlayArea`? Jun 12 13:07:50 erm? same thing Jun 12 13:07:59 im just saying the PlayArea is the ViewGRoui Jun 12 13:08:02 ViewGroup Jun 12 13:08:09 EPG: yeah something like that would do, but that guy is located in USA. Jun 12 13:08:26 The first one looks like it's taking a ViewGroup as param to act on it Jun 12 13:09:10 SpaghettiCat: not sure what you mean by that Jun 12 13:10:35 device not show up in adb devices Jun 12 13:11:33 I'm so confused right now, but I'll just try hack it together and see what happens. thanks for your help Jun 12 13:11:45 how to let adb pick up usb device? Jun 12 13:12:22 SpaghettiCat: what card game are you making? Jun 12 13:15:18 how come adb does not pickup new usb device? Jun 12 13:16:12 Napalm: it's Blackjack. 5 sports for cards on the dealer's and the player's side each Jun 12 13:18:03 I think the problem is that I don't know how the Controller part should be done in terms of classes and methods Jun 12 13:26:46 Does MVC even apply to Android apps? Or is it for web apps only? Jun 12 13:27:28 Yes, it does Jun 12 13:27:34 how much, depends on the application Jun 12 13:27:52 despite what certain people would like you to think, patterns are not end-all ;) Jun 12 13:28:51 How does one share Data between Activties? Jun 12 13:29:21 cart_man: `Bundle`s? Jun 12 13:34:06 common objects elsewhere in application? Jun 12 13:34:13 external data? Jun 12 13:37:06 p_l,Like external data yea Jun 12 13:37:21 lets say I have a picture but it is loadded by Main activity from a website... Jun 12 13:37:33 Now I want to use it in another activity and I dont want to redownload it Jun 12 13:37:40 cart_man: Activities are not separate applications - they are objects inside an application Jun 12 13:38:20 Ahmm.... ok but does that not mean that if a Variable is loaded it is private to the scope of the object? Jun 12 13:41:19 rrr, running windows? Jun 12 13:41:50 chrisaardal: yes. worked. Jun 12 13:42:37 can two activities be able to receive touch events at the same time? Jun 12 13:42:48 knapper_tech, nah, dont think so Jun 12 13:43:21 guess I'd have to do some awesome bussing to get something like that working Jun 12 13:43:22 you can use fragments for that Jun 12 13:43:52 i'm having an issue with webview using up craptons of memory and was thinking of shoving it in another activity Jun 12 13:44:11 there's no way to get the native memory taken by a webview to be release apparently Jun 12 13:44:35 claint: I had the same problem as you, I created isLoading boolean which I set true when user hits the list or hits play, and on mediaPlayer.onPrepared ... I set it back to false Jun 12 13:44:54 I've implemented a lot of what's online to find that while the memory goes down, it seems impossible to get back to zero Jun 12 13:45:07 *baseline before webview loads a page Jun 12 13:45:14 claint: and then you just if(!isLoading) { let the user click it ... Jun 12 13:46:15 doesnt webview have a background app delegated to run it? After 5.0 or something? Jun 12 13:46:36 When I create new project in Android Studio, it is automatically set to Relative Layout. Is it possible to change it from Component Tree (or some other way without coding xml)? Jun 12 13:59:31 how do i ignore any under /*/build/? Jun 12 14:11:06 schmooz: so your isLoading boolean is global and you have a custom onClickListener (for music items) that uses it and bounces if it is not? Jun 12 14:11:35 if it is (isLoading) that is. Jun 12 14:12:10 schmooz: might work in my case too. I hate using globals but Android makes me sometimes. Thanks. Jun 12 14:25:55 claint: yes it's global, so when the user hits anything that plays you if(isLoading == false) { isLoading = true; mediaPlayer.start() ... Jun 12 14:26:36 and mediaPlayer has setOnPreparedListener( onPrepare() { ... you set it back to false there Jun 12 14:26:51 or I mean onPrepared() Jun 12 14:27:20 i want to push a dev branch but the remote dev is not fast-forward, how do i do this? Jun 12 14:33:57 can i change the name of existing branch? Jun 12 14:36:31 rrr: from the AS GUI? Jun 12 14:37:40 command line Jun 12 14:39:09 That's not an android-related question. Go to #git for that. Look into the '-m' flag of `git branch` Jun 12 14:53:12 SpaghettiCat: how to upgrade AS? Jun 12 14:56:40 does anyone know if it's possible to ensure a play store autoupdate gets applied while the app is running? Jun 12 14:57:32 is there a buitin autoupdate for AS? Jun 12 14:58:17 coryallegory, application would be killed anyway Jun 12 14:58:23 (assume it would be possible) Jun 12 14:58:28 assuming* Jun 12 14:58:55 I would be ok with that, or even manually killing the app, but I can't guarantee the autoupdate will trigger Jun 12 14:59:14 I have an enterprise app that's always on, that will likely need to update eventually Jun 12 15:00:02 I can think of many applications running under a service and being updated Jun 12 15:00:33 but I have no idea how the auto-update is scheduled by the play store app or the packagemanager itself Jun 12 15:01:11 yea fair enough Jun 12 15:01:17 i can't play mp4 file from raw folder in videoview Jun 12 15:01:23 I think the difference is that this app has focus all the time Jun 12 15:01:30 its not supported or is there a way to play ? Jun 12 15:01:34 while the others in the background can get updated Jun 12 15:09:36 sci-fic, mp4 is just a container, check if the codecs are supported Jun 12 15:10:09 adq ok sure Jun 12 15:23:23 Hello folks! Jun 12 15:23:59 adq:its avc, i guess it should be playing Jun 12 15:42:40 hey guys, a quick question...how fast or how many times a second does android read the inputstream for bluetooth? Jun 12 15:43:31 is there an estimate? once every 10ms, 20ms? slower? faster? Jun 12 15:58:56 hey.. what must i 'import' to use readStream() i cant find the answer on google or d.android Jun 12 16:04:23 readStream is a method of some object, so find that object Jun 12 16:04:50 sounds made up though, but somebody made it Jun 12 16:05:23 is it dumb to use a scanner to navigate Strings that are grabbed by a bufferedreader? in java, i heard scanner was slow but i havent noticed any problems Jun 12 16:05:28 http://stackoverflow.com/questions/8376072/whats-the-readstream-method-i-just-can-not-find-it-anywhere Jun 12 16:05:36 thx Jun 12 16:06:16 NateRiver: erm.. wait.. what? Jun 12 16:06:38 NateRiver: explain navigate strings.. what exactly are you doing with the data? Jun 12 16:07:00 omh Jun 12 16:07:02 omg Jun 12 16:07:09 bubbely: dont use that method on stack overflow Jun 12 16:07:11 mega slowww Jun 12 16:07:33 what should i use Jun 12 16:07:36 URL url = new URL("http://www.android.com/"); <- why is this a malformed url Jun 12 16:07:42 it was for showing him it's a made up method Jun 12 16:07:50 like initially i use a buffered reader to grab each line of a text document, then i take that line and give it to a scanner and use the scanner to grab infos or make new scanners based on what shows up Jun 12 16:08:11 =) Jun 12 16:09:08 I have a UI question Jun 12 16:09:17 each line could potentially spawn up to 10 different scanners -.- Jun 12 16:09:22 you and i? we are still cool Jun 12 16:09:53 I've just recently gotten into Android development, and I'm trying to put a few button on top of a slightly transparent background of pictures Jun 12 16:10:07 I can't figure out how to get the buttons to be on top Jun 12 16:10:19 or in front of the pictures would be a better description Jun 12 16:10:20 Napalm: show me the better one? Jun 12 16:10:28 use an appropriate layout that allows stacking Jun 12 16:11:16 Tentacular261, what layout are you using? can you post xml, there is RelativeLayout that you can position views ontop of each other, and they are drawn to canvas from top to bottom, so the bottom view in the xml is the top viewed view in the layout Jun 12 16:13:10 so,