**** BEGIN LOGGING AT Sat Aug 30 02:59:59 2014 Aug 30 03:01:01 "A YouTubePlayerView can only be created with an Activity which extends YouTubeBaseActivity as its context." "... extends YouTubeBaseActivity" Aug 30 03:01:03 why. Aug 30 03:11:31 thats the way they made it Aug 30 03:11:36 why do you care ? Aug 30 03:11:39 lol Aug 30 03:11:40 no Aug 30 03:11:43 thats my stack trace Aug 30 03:12:04 My activity clearly extends youtubebase activity Aug 30 03:12:07 but its saying it doesnt Aug 30 03:13:29 the thing is, it works on my device which has the youtube app installed, but not on the emulator Aug 30 03:13:31 i think thats why Aug 30 03:18:23 which is stupid, btw. Aug 30 03:20:23 well, if it just requires googleApi and you setup and emulator without it…then yeah, pretty stupid Aug 30 03:20:31 but never tried it so dont know Aug 30 03:20:52 all it needs is the api key Aug 30 03:26:39 heh. yeah, also Genymotion still doesn't have any images with Play afaik Aug 30 03:26:48 curious adb on recovery verse usb debug, what is the difference? Aug 30 03:27:00 i just dont get it g00s why would it crash upon just creating the view Aug 30 03:27:12 for instance ls -lSr works in recovery but not in android usb debug Aug 30 03:27:25 any way to get it to be similar to recovery? Aug 30 03:27:31 shouldnt it call the listener's on initialization failed method? Aug 30 03:27:41 there youtube player api kinda sucks. Aug 30 03:27:57 desmin88 i haven't use the youtube APIs; ugh i hate that stuff Aug 30 03:28:28 g00s: it also has random crashes where the library it self keeps references to old destroyed views and hard closes your app Aug 30 03:28:55 and its been over a year and google hasnt addressed it Aug 30 03:28:59 i remember old webview bugs like that Aug 30 03:29:22 i think very old mapview bug Aug 30 03:30:20 https://code.google.com/p/gdata-issues/issues/detail?id=4395 Aug 30 03:30:21 ugh Aug 30 03:30:27 fucking google release and forget Aug 30 03:31:56 /sbin/find is there in recovery but not when the phone is booted Aug 30 03:31:59 what gives? Aug 30 03:35:09 monst: they're two separate things Aug 30 03:35:17 recovery mode has it's own initramfs Aug 30 03:35:40 oh that makes sense Aug 30 03:35:43 fuck me =) Aug 30 03:36:28 gladly Aug 30 03:40:17 calm down lovebirds Aug 30 03:41:23 just pissed at google thats all Aug 30 03:48:39 wow, this is interesting if you read a lot http://www.androidpolice.com/2014/08/29/blinkist-arrives-on-android-to-cut-popular-non-fiction-books-down-to-tiny-bite-sized-reads-3-months-free-through-stack-social/ Aug 30 03:52:07 sort of like those services that trim news articles to the important bits Aug 30 03:52:32 seems dumb imo Aug 30 03:52:35 hm, sounds like iPhone 6 will have an NXP NFC chip Aug 30 03:53:32 Which one looks the best?: http://i.stack.imgur.com/g0A3T.png Aug 30 03:54:24 middle Aug 30 03:54:40 well there is a lot of wasted space there Aug 30 03:54:55 eh Aug 30 03:55:00 and is this a color picker for a user ? Aug 30 03:55:19 yes Aug 30 03:55:23 ugh, rgb ? Aug 30 03:55:27 lol Aug 30 03:55:30 then I would maybe consider not RGB Aug 30 03:55:49 99% would be …. "hunny, how the fk do I make yellow?" Aug 30 03:56:26 most will know a spectrum and a shade and thats about at complex as it should be Aug 30 03:56:34 lol Aug 30 03:56:34 doesn't android have a colorpicker in one of the samples / support library ? Aug 30 03:56:39 it does Aug 30 03:56:49 But I based it off what is seen here: https://www.google.com/design/spec/components/sliders.html#sliders-continuous-slider Aug 30 03:57:14 chromium not saying alter the sliders Aug 30 03:57:24 saying alter the total design for use and intended user Aug 30 03:57:25 :) Aug 30 03:57:30 lol Aug 30 03:57:34 well, just an opinion Aug 30 03:57:36 :) Aug 30 03:57:40 from a designer ;) Aug 30 03:57:41 HSL or HSV Aug 30 03:57:42 chromium: i like it, but only for that specific use Aug 30 03:58:12 I understand. This particular color picker wont be used by most users. Its more of testing thing. Aug 30 03:58:35 chromium thats fine then, but I would totally re-think if it was intended for heavy user use Aug 30 03:58:38 then yeah looks fine Aug 30 03:58:43 alright thanks Aug 30 03:58:56 So you guys like the middle one the most? Aug 30 03:58:59 http://i.stack.imgur.com/g0A3T.png Aug 30 03:59:08 no, too much waste and loss of focus Aug 30 03:59:14 on all of them :) Aug 30 03:59:17 middle one Aug 30 03:59:17 sorry Aug 30 03:59:26 but if you had to pick one? Aug 30 03:59:37 right Aug 30 03:59:46 middle Aug 30 03:59:49 but I wouldn't Aug 30 04:00:00 well actually no left Aug 30 04:00:10 but would move the hex to the top Aug 30 04:00:16 about the r slider Aug 30 04:00:25 hmm ok ill try that out Aug 30 04:00:29 I would cut the height of the color bit by 1 3rd Aug 30 04:00:43 ok Aug 30 04:01:01 eh Aug 30 04:01:03 another option since i take it that blue should change Aug 30 04:01:12 as a preview right ? Aug 30 04:01:17 Its weird. On the official Google design guidelines the color part is even bigger Aug 30 04:01:19 Yes Aug 30 04:01:36 the color updates as you move the sliders Aug 30 04:01:39 ok well have the hex as a faded 1/3rd of the color preview Aug 30 04:01:42 as an overlay Aug 30 04:01:42 chromium: id stick with material design and keep it same/larger than you have Aug 30 04:01:56 as the user does not want or need a hex value Aug 30 04:02:04 but good as secondary reference Aug 30 04:02:21 but what if the user wants to manually enter the hex Aug 30 04:02:26 ooooooo Aug 30 04:02:29 gotcha Aug 30 04:02:43 desmin88 ? Aug 30 04:03:05 thats a 'gotcha' moment Aug 30 04:03:09 not really Aug 30 04:03:12 for kiddies yeah Aug 30 04:03:29 not really Aug 30 04:03:41 chromium if I wanted to design and cater for less than 1% I would maybe have it clickable, little edit symbol Aug 30 04:03:57 but it would not be part of any primary design focus Aug 30 04:04:04 simply not worth it Aug 30 04:04:33 ok thanks for the feedback Aug 30 04:04:50 I'm still not sure if I should go with the left or middle Aug 30 04:05:02 middddle Aug 30 04:05:16 is there a barcode scanner app that's open source? Aug 30 04:05:27 rounded corners of the textview play with the sliders well Aug 30 04:05:27 i'm curious how you extract that from a picture Aug 30 04:05:37 and I can't seem to find any explanation of the algorithms for it Aug 30 04:05:40 ok i think ill go with middle Aug 30 04:06:21 chromium not a good choice, have a look at some design docs and consistency Aug 30 04:06:32 if all the inputs are rounded then yeah Aug 30 04:06:42 or if all the text components are rounded then yeah Aug 30 04:06:56 but dont to make them match a rounded bit on a slider lol Aug 30 04:06:58 :) Aug 30 04:07:13 coming from the person who goes against design docs and home rolls his own 'action bar' and has a theme engine Aug 30 04:07:33 lol Aug 30 04:07:34 didn't roll my own action bar Aug 30 04:07:35 i still want to see a screenie of your app Aug 30 04:07:41 it's a view Aug 30 04:07:44 Whats your app? Aug 30 04:08:07 a secret app with an awesome 'theme engine' that he wont show anyone Aug 30 04:08:31 nice Aug 30 04:08:35 I have shown people Aug 30 04:08:37 lots Aug 30 04:08:46 even 15k downloads and big beta group Aug 30 04:08:47 i doubt that Aug 30 04:08:53 even people in this channel Aug 30 04:08:58 but not little kiddies Aug 30 04:08:59 :) Aug 30 04:09:07 My app is HexaTime Aug 30 04:09:08 you got me Aug 30 04:09:13 im 11 yrs old Aug 30 04:09:14 https://play.google.com/store/apps/details?id=com.priyesh.hexatime Aug 30 04:09:20 desmin88 17-22 Aug 30 04:09:24 still my guess Aug 30 04:09:31 ;) Aug 30 04:09:45 way off Aug 30 04:09:52 12k downloads Aug 30 04:10:00 desmin88 really really ? hand on hear ? Aug 30 04:10:03 heart* Aug 30 04:10:11 swear on me mum m8 Aug 30 04:10:20 u wot m8? Aug 30 04:10:24 balls, oh wait, hi or low ? Aug 30 04:10:27 :) Aug 30 04:10:32 ill hook u in de gabber m8 Aug 30 04:10:37 ill fookin wreck ya Aug 30 04:10:46 ill rek u m8 Aug 30 04:11:39 capella "Mozilla has rolled out directory tiles, the company's advertising experiment for its browser's new tab page, " Aug 30 04:11:46 yeah more adds ! woohoo Aug 30 04:12:18 StingRay_: if you show me your app ill perform sexual favors for you Aug 30 04:12:23 :( Aug 30 04:12:45 build your own solves everythuing Aug 30 04:12:51 \o/ Aug 30 04:13:05 everything is awesome ... Aug 30 04:13:11 its not gay if the balls dont touch Aug 30 04:13:36 unless u want them too Aug 30 04:14:09 desmin88 god isn't going to bless uCatholic if written by such a zombie philistine as yourself ! Aug 30 04:14:21 lol im not affiliated with them Aug 30 04:14:23 just write the app Aug 30 04:15:14 Also look at this new snazzy-ness: http://gyazo.com/7940f92a2217bd713c2e86a7f2622a0e Aug 30 04:15:17 spicing up the action bar Aug 30 04:17:29 http://i.imgur.com/w8hNyPx.jpg Aug 30 04:20:30 I can't remember what causes this, how do you get the overdraw on the image to drop down a level http://i.imgur.com/2usfFzL.png Aug 30 04:21:00 also the text and imageviews Aug 30 04:21:32 afaik i have no empty parent views with backgrounds etc Aug 30 04:24:12 ahh i think its my drawable background Aug 30 05:19:59 hi there. Can I use MediaRecorder to record audio from standard output instead of the mic? Aug 30 05:20:42 i would love to test it out but i dont have access to the laptop at the moment Aug 30 05:20:52 rburgos by standard you mean ? Aug 30 05:21:03 internal audio system ? Aug 30 05:21:32 The output that eventually gets routed to speakers or headphones Aug 30 05:21:43 Yeah, internal audio Aug 30 05:21:54 doubt it …. all are very different Aug 30 05:22:06 samsung != htc != LG Aug 30 05:22:23 and I think it would be a feature set of the driver rather than android Aug 30 05:22:45 Ah drivers, that makes sense Aug 30 05:23:36 could be wrong as never looked into it and not much of a programmer Aug 30 05:24:04 but if you look at the computability of these recorders that do that on play, most of the time they require root Aug 30 05:24:15 and many do not work with xx type of phone Aug 30 05:24:25 "call recorders" being an example Aug 30 05:24:32 oh Aug 30 05:24:44 Ill Aug 30 05:24:51 I'll look that up Aug 30 05:25:23 damn, seems that i may have embarked on the wrong first Android project... Aug 30 05:28:18 Does getHitRect() not work on child views? Aug 30 05:30:32 Trying to determine if the user clicked on a scroll views child and my hit rect is always blank Aug 30 05:51:39 I print out the x and y coordinates of the motion events and they match up with the dev settings for x and y, but my hitRect is 0,0,0,0 every time Aug 30 05:52:02 So its not a relative/absolute issue Aug 30 05:56:55 hmm, do people do import android.view.*; or is it better to just import the classes one by one? Aug 30 05:59:40 for your case go one by one Aug 30 06:04:36 I have a doubt. My activity calls Camera through intent using startActivityforResult(intent). If the userdoesn't take a picture and presses back button is the onResume method called or does it go to onActivityresult() ? Aug 30 06:06:19 my guess is onActivityResult…but that question in context is quicker to test than ask :) Aug 30 06:09:39 bollocks Aug 30 06:24:10 I'm working on a launcher app, and I've noticed that for some reason, my launcher does this weird zoom from bottom animation for opening apps Aug 30 06:24:15 That no other launcher does Aug 30 06:26:56 child view why are you doing this to me, why is your hit rectangle 0 Aug 30 06:27:46 frankdrey not noticed that Aug 30 06:27:54 ? Aug 30 06:28:08 frankdrey some version of android ? or just normal ? Aug 30 06:28:34 I think I found it one other place. Settings from quick launch in notifications bar. Aug 30 06:28:53 Thing is I'm comparing it to even the AOSP launcher on the same phone Aug 30 06:29:32 frankdrey you mean an activity opening ? Aug 30 06:29:36 Yes Aug 30 06:29:44 Gonna look at AOSP launcher source... Aug 30 06:29:46 oh thats just normal for me Aug 30 06:29:59 nexus 5, nexus 10 stock etc Aug 30 06:33:23 Hmm Aug 30 06:33:29 Really? Aug 30 06:33:49 Maybe if I set CATEGORY_LAUNCHER instead of CATEGORY_MAIN.. Aug 30 06:34:19 never looked at launchers … do you control the trigger intent ? Aug 30 06:34:36 Yeah Aug 30 06:34:43 Wait Aug 30 06:34:50 The app launch intent? Yes Aug 30 06:34:59 overridePendingTransition Aug 30 06:35:16 do what you want then Aug 30 06:35:16 But I don't want custom Aug 30 06:35:21 I just want it to be consistent Aug 30 06:35:31 well whatever you do, do it all the time :) Aug 30 06:35:35 consistent ;) Aug 30 06:36:23 AHA i figured this out Aug 30 06:36:23 Lol Aug 30 06:36:29 I mean with the rest of system Aug 30 06:36:43 Because rarely does the system use that animation on my phone Aug 30 06:36:51 It uses a zoom and fade from center Aug 30 06:37:08 oh same, hang on, what do you get again ? Aug 30 06:37:11 is there a standard tool for recording a video of an app, for use in publishing in the play store? Aug 30 06:37:26 Carbonflux kitkat ? Aug 30 06:37:44 its built into kitkat? Aug 30 06:37:47 adb does it now Aug 30 06:37:57 ah ok, I can research that Aug 30 06:38:01 http://www.cnet.com/uk/how-to/how-to-record-your-screen-on-android-4-4-kitkat/ Aug 30 06:38:12 I know it takes screen shots etc Aug 30 06:38:16 thanks :) Aug 30 06:38:22 AS has a record button now too Aug 30 06:38:31 My launcher zooms and fades from the bottom Aug 30 06:38:34 Sliding up Aug 30 06:38:39 And zooming and fading Aug 30 06:38:43 frankdrey oh, yeah that is odd Aug 30 06:38:44 It looks horrendous Aug 30 06:39:04 I finished this app in Eclipse heh, next one will be AS tho. Aug 30 06:39:06 It makes sense for the settings icon in quick settings in notifications though Aug 30 06:39:31 OK about to try CATEGORY_LAUNCHER Aug 30 06:40:26 So i didnt fix it :( Aug 30 06:40:30 Lol Aug 30 06:40:57 frankdrey was the CATEGORY_LAUNCHER ? Aug 30 06:41:46 ah ok, so adb is using a screenrecord command in android itself Aug 30 06:41:57 thanks for the information StingRay_ :) Aug 30 06:42:02 Carbonflux np Aug 30 06:42:42 It was DEFAULT before Aug 30 06:45:04 Hey guys. Anyone who has worked with the Samsung Chord library? I would really appreciate some help. Cheers guys :) Aug 30 06:47:23 I dont get it, one child doesnt work but another does Aug 30 06:47:54 lol, what do u mean? Aug 30 06:47:56 you should ground the other one, for being lazy Aug 30 06:48:01 lol Aug 30 06:48:06 no prom for the problematic child Aug 30 06:48:51 is there an easy method for clipping a canvas draw, but not the entire canvas ? Aug 30 06:49:34 so nobody has ever used the Chord SDK? Aug 30 06:49:53 android-dev154 never heard of it until now Aug 30 06:50:02 samsung only I take it ? Aug 30 06:50:13 http://developer.samsung.com/android/technical-docs/Chat-app-using-Chord-SDK-versus-standard-solutions Aug 30 06:50:23 no it is not restricted to Galaxy devices Aug 30 06:50:44 but samsung right ? Aug 30 06:50:48 yeah Aug 30 06:50:50 or any device ? Aug 30 06:50:55 any device Aug 30 06:50:58 is that using 0mq? Aug 30 06:51:10 hah, yeah. it is Aug 30 06:51:18 0mq? whats that? Aug 30 06:51:34 An open source networking library Aug 30 06:51:59 I had played around with it with a few people while I was at samsung. I didn't realize they had actually done anything with that Aug 30 06:53:35 i need to create a multiclient server that 10-20 devices will connect and ask to get in queue. The first client in queue will be then asked back from the server to create a TCP connection for audio stream. Should i use Chord or 0mq? Aug 30 06:54:04 you can use whatever you want. there is no "should" Aug 30 06:54:23 ok let me put it this way. I have 2 days to deliver my capstone. which is less pita? Aug 30 06:54:29 chord uses 0mq. You can use chord. Or you can use 0mq. Or you can write something yourself. Aug 30 06:54:58 I've never looked at the chord sdk :) Aug 30 06:55:24 i would use UDP multicast Aug 30 06:55:36 but i didn't get it to work. i think most routers block udp flood Aug 30 06:56:15 i just need to communicate with all the instances of my app in a wifi network. simple 2 way communication. nothing more. Aug 30 06:56:45 easiest way? Aug 30 07:06:09 OK so, still can't get it Aug 30 07:06:56 Can I post a link to apk so maybe you guys can see what animation I'm talking about? I have source too, but I haven't committed a few things from today Aug 30 07:07:53 Source is at github.com/andreyrd/ListLauncher and here's the apk: https://onedrive.live.com/redir?resid=D634B0AAD2B05C61!2336&authkey=!AGzLoGlrR4cn_So&ithint=file%2capk Aug 30 07:08:28 The fade in from bottom animation is bothering me since it seems android use a different animation elsewhere Aug 30 07:10:19 It's especially ugly because it goes black and then does the animation Aug 30 07:21:04 Some pls help. http://pastie.org/9514587 The imageview at the very bottom gives the wrong hitRect, but the htmltextview works fine Aug 30 07:21:11 someone* Aug 30 07:22:22 what are you trying todo? Aug 30 07:23:07 I have a swiping view which is disabled unless the user is swiping from the imageview Aug 30 07:23:33 if i base it off the hit rectangle of the imageview it does not work, but the htmltextview does work Aug 30 07:25:14 of hit rectangle? are you just tracking motion on your imageview? Aug 30 07:25:27 the hit rectangle Aug 30 07:26:41 what is this hit rectangle? Aug 30 07:26:55 view.gethitrect Aug 30 07:29:17 If you're handling this in your SwipeLayout, you need to use offsetDescendantRectToMyCoords to get the right coords Aug 30 07:30:29 say whaaaaaat Aug 30 07:31:06 oh Aug 30 07:31:11 let me try Aug 30 07:31:33 Also, not sure if you should use getDrawingRect instead of getHitRect Aug 30 07:31:56 Anyway, both getDrawingRect and getHitRect are coords within the ImageViews parent Aug 30 07:32:13 Unless all parent views up to the SwipeLayout are laid out at 0,0, you're gonna have a bad time Aug 30 07:33:00 Gonna try right now with drawing rect and the offset method Aug 30 07:33:37 :/ Aug 30 07:33:57 oh wait Aug 30 07:37:34 Okay, the motion event I'm getting is from the SwipeLayout. Aug 30 07:38:16 But the imageview is not a direct child of the swipelayout Aug 30 07:39:11 https://github.com/daimajia/AndroidSwipeLayout/blob/master/library/src/main/java/com/daimajia/swipe/SwipeLayout.java#L645 Aug 30 07:39:49 When it's not a direct child you need to offset the rect Aug 30 07:41:43 From the parent view thats receiving the motion event? Aug 30 07:42:25 holy shit Aug 30 07:42:31 SimonVT i love you Aug 30 07:43:07 e.g. 100, 200 in your SwipeLayout is 0,0 in a child view positioned there Aug 30 07:43:40 yeah i see the error of my ways now Aug 30 07:53:34 Need help for setting layout margins parameters programmatically – http://pastebin.com/embed_iframe.php?i=BLZmGL4c . By the way, it's my ~seventh day "playing" with java/android, still don't understand many things :S ; and those Intent intent = new intent(intent intent) drives me crazy. ;D Aug 30 07:54:17 why not set it in xml ? :) Aug 30 07:54:40 Button is created in app itself Aug 30 07:54:57 and buttons are going to be labelable Aug 30 07:55:02 no argument but ok :p Aug 30 07:55:10 you need to set the margins on layout params Aug 30 07:55:35 button.getLayoutParams().setMargins(left,top,right,bottom) Aug 30 07:55:44 where left, top, right,bottom are pixels Aug 30 07:56:00 great, but what if I need dp? Aug 30 07:56:30 context.getResources().getDisplayMetrics.density will give you a number to scale with Aug 30 07:56:49 so (10 * context.getResources().getDisplayMetrics.density) will be 10 dp Aug 30 07:57:31 see http://stackoverflow.com/questions/12728255/android-set-margin-programmatically-in-dp-on-button Aug 30 07:58:50 o, great! Aug 30 07:58:52 thanks! Aug 30 07:58:56 yw Aug 30 08:00:41 oh :S The method setMargins(int, int, int, int) is undefined for the type ViewGroup.LayoutParams Aug 30 08:00:45 as always Aug 30 08:02:23 you are right.. Aug 30 08:02:28 Hey guys. Does anyone know how the calendar database is structured on android? I'm trying to fetch events info, but I'm getting SQLite exceptions such as "no such column as Calendars" Aug 30 08:02:56 Viewgroup.MarginLayoutParams Aug 30 08:03:06 that has setMargins :) Aug 30 08:06:02 I mean shouldn't Calendars._id=ID work? Aug 30 08:06:19 You want to access the calendar sqlite database directly? Aug 30 08:08:22 Preferably, or then using some cursor Aug 30 08:08:46 Sorry this is my first time coding for android and I'm still trying to figure out how things work Aug 30 08:09:47 Cursor eventCursor = contentResolver.query(builder.build(), new String[] { "title", "begin", "end", "allDay"}, "Calendars._id=" + id, null, "startDay ASC, startMinute ASC"); Aug 30 08:12:09 http://stackoverflow.com/questions/5883938/getting-events-from-calendar Aug 30 08:23:37 yeah the problem is that doesn't work and I can't figure out which URI I should use to access calendar data Aug 30 08:23:56 Calendard._ID is a constant, not a value Aug 30 08:24:01 I've tried content://com.android.calendar/instances/when, content://com.android.calendar/calendars, content://com.android.calendar/events Aug 30 08:36:11 Well, I failed at getting setMargins to work, you said earlier that I could do that in .xml, right? I have one dedicated for button that is and using it already with buttonkek.setBackgroundResource(R.drawable.list_button); but where I should add android:layout_margin="10dp" and exec it? Aug 30 08:37:38 you should read into how to design layouts via xml. Aug 30 08:39:15 I know I can create a button in xml and have it there, however, buttons I try to implement are going to be user created and saved to file :S Aug 30 08:39:30 but as I know