**** BEGIN LOGGING AT Wed May 27 02:59:59 2015 May 27 03:28:58 Anyone have recommendations for a good starting point with RXJava? I want to implement it in my existing app but don't really know a good place to start May 27 03:29:23 or is this the wrong place to ask; I didn't look to see if there is a RxJava IRC channel May 27 03:30:27 liuwenhao you can start here http://blog.danlew.net/2014/09/15/grokking-rxjava-part-1/ May 27 03:30:30 there are 4 parts May 27 03:31:21 Thank you, this is perfect May 27 03:33:29 liuwenhao this is good too http://docs.couchbase.com/developer/java-2.0/observables.html May 27 03:34:40 http://slides.com/yaroslavheriatovych/frponandroid#/ May 27 04:10:20 "New HTC m9 camera "Worse than a 3 year old iPhone 4s"" lol May 27 04:13:45 hello guys, I want to attach a textwatcher to an edittext with a delay, so I will search on a sqlite with an asynctask. I can't find a good example so far May 27 04:21:08 Thanks g00s. I have a lot of reading to do this afternoon with all this May 27 04:21:19 Roboto Slab is such a nice font. I wish I had started using it earlier May 27 04:22:02 raul782: You want to do what? May 27 04:33:51 TActicalJoke: I found a solution, I think I wasn't looking hard enough May 27 04:37:52 can anyone tell me if cwac camera should still be fetchable and usable via gradle? May 27 04:38:05 or is it just totally un-updated and stuff is broken by now? May 27 04:40:15 in_deep_thought: "NOTE: This library is slated to be rewritten from scratch. Please bear that in mind when working with the library." May 27 04:40:53 i have a really weird bug May 27 04:41:00 I have a button in a listview May 27 04:41:18 I call onClickListener(View V) in the getViwe() method of the adapter May 27 04:42:04 if the list scrolls (is larger than the screen), sometimes the onClickEvent is applied to more than one view when I call it to View v. Any insight? May 27 04:42:47 Use onItemClick instead of onClickListener May 27 04:42:53 it handles all that stuff for you May 27 04:43:08 yiati: i want it only to be when i click the button in the view tho May 27 04:43:18 i guess i should just change it to the item click :/ May 27 04:43:20 DadFoundMy: You have to set the tag of *every* view. May 27 04:43:23 In Adapter.getView. May 27 04:43:44 TacticalJoke: ugh okay, should I just set it to the position int? May 27 04:43:59 Wait, sorry, are you settings tags? I just kinda read that into what you said. May 27 04:44:20 But in any case you'll have to set both the OnClickListener and the tag (or clear both). May 27 04:44:40 no I dont. When I call the onClickListener I use the View parameter to change the Button text and color May 27 04:44:57 illl link my code one sec May 27 04:46:27 https://gist.github.com/DylanRedfield/c4c32dcc5016870ea1f0 May 27 04:46:41 TacticalJoke: ^ May 27 04:47:01 I think we'll need to see the Adapter.getView override. May 27 04:47:59 I guess "implementation" is the word, actually. May 27 04:48:09 https://gitst.github.com/DylanRedfield/941f09891c1620cca188 May 27 04:48:14 shit that link is wrong May 27 04:48:25 i mispelt gist May 27 04:48:37 but you get the ... gist :D May 27 04:49:11 for the lazy https://gist.github.com/DylanRedfield/941f09891c1620cca188 May 27 04:50:39 yiati, yeah I saw that. but does that mean it just straight up won't work? May 27 04:51:28 No, it's probably fine for now, and supports the versions listed in the readme just fine May 27 04:53:38 DadFoundMy: What are the symptoms again? May 27 04:54:35 yiati, does this https://bpaste.net/show/91065d570975 when I try and build look like its just no longer out there? May 27 04:54:37 TacticalJoke: if the list is scrollable (takes up larger thant he screen), and I tap a button not only will that button's text be set, but also another button's text of screen May 27 04:54:45 if i click the button again i get an error May 27 04:54:53 when I go to that jcenter url that its trying it doesn't seem to be there May 27 04:54:56 and idk why but i havent thought to check that error until now :/ May 27 04:55:02 sooo ill do that nhow May 27 04:55:58 Another button's text off-screen? May 27 04:56:28 TacticalJoke: ....its a index out of bounds error on like 58 which is odd to me May 27 04:56:34 TacticalJoke: yeah another button later on in the list May 27 04:57:25 DadFoundMy: It's because views are reused by ListView. May 27 04:57:41 You just have to set the text every time. May 27 04:57:58 set the text of what every time? May 27 04:58:03 in_deep_thought: look at where the repo is on the Github page May 27 04:58:05 The button. May 27 04:58:08 In every getView call. May 27 04:58:19 Otherwise you'll get the last value. May 27 04:58:20 ohh so set it to a default value? May 27 04:58:23 Yeah. May 27 04:58:29 i still need it to change onClick May 27 04:58:36 k ill try that May 27 04:58:40 in_deep_thought: not jcenter May 27 04:59:09 Also, a lot of that stuff shouldn't be happening when `convertView` isn't null (for example, the ImageView.setImageBitmap call). May 27 04:59:18 That's wasting CPU cycles. May 27 04:59:55 that fixed it thanks May 27 05:00:48 is it just for default values that dont change to put it in the convertview? May 27 05:00:54 Yeah. May 27 05:01:00 now that i think about it that imageview isnt even needed May 27 05:01:12 yiati, oh can I put urls like that in my compile line in build.gradle? like compile 'https://github.com/commonsguy/cwac-camera/releases/download/v0.6.12/cwac-camera-0.6.12.jar' May 27 05:01:20 Those View.findViewById calls might also be slow (you can use ViewHolder {ugh}, ViewGroup.getChildAt, etc.). May 27 05:02:36 im not going to bother updating this other than bug fixes anyway. barely even my app and it wont be getting downloads do to the owners stupidtity May 27 05:02:49 I like subclassing ViewGroup for that stuff, and doing all that initialization in onFinishInflate (or doing it all in Java code). May 27 05:02:55 he named the app the same name as like 6 other apps on the store May 27 05:03:15 its like 8th on the search results if you search exactly for it's name May 27 05:03:25 ill be shocked if it gets him more than 50 downloads May 27 05:04:05 wait shit the issue isnt solved May 27 05:04:31 in_deep_thought: look specifically at the repositories bit under instillation May 27 05:04:36 oh its because i have to set the color default too May 27 05:04:43 G2g May 27 05:05:42 yiati, it shows like compile 'com.commonsware.cwac:camera:0.6.+' but it tries that jcenter url. Can I just give it the github url that I know actually exists? May 27 05:08:19 TacticalJoke: hmm now when i scroll up it sets the default value May 27 05:10:36 If you need the text changes to persist then you have to store that in the model (e.g., look at your "invited" lists). May 27 05:11:16 And set the text accordingly in getView. May 27 05:11:39 would using onItemClickSolve this? May 27 05:11:58 I doubt it. That handles a whole-row click. May 27 05:12:00 Not a button click. May 27 05:12:08 Furthermore, it wouldn't solve this exact problem. May 27 05:12:31 No matter how clicks are happening, if you need to store state you need to store state. May 27 05:13:09 maybe i can set the tag to reflect wether is should be challenge or invite? May 27 05:13:16 or would that not work since they are reused anyway May 27 05:14:08 The initial views wouldn't have the tag, though. May 27 05:14:16 If that's okay, I guess it'd work. But it's not the neatest solution. May 27 05:15:06 i mean i could have an if statment if (tag.euqlas("blah") || tag == null) or what ever May 27 05:15:10 dont mind the pseudocode May 27 05:15:13 View.getTag is usually one of those "Ugh, this sucks, but there's no better way" things. May 27 05:15:18 s/get/set/ May 27 05:15:31 yeah i dont love tags May 27 05:15:41 (Or "This sucks, but the performance is way better this way, so blah".) May 27 05:16:15 well this isnt a super pressing issue for me considering not enough people even have the app to fill up the list so im going to pass out now, thanks for help May 27 05:16:33 im sure ill hack together a solution that would make duARTe barf May 27 05:17:11 to atleast stop the index out of bounds exception i just just to make sure the index value != -1 May 27 05:19:35 How many depedencies is too many? Should I be worried about relying too much on github libraries for my app? May 27 05:19:49 liuwenhao: when you hit the 65k method count May 27 05:20:01 if it saves you code why not use it? May 27 05:20:15 DadFoundMy: If `index` should not be -1, something is wrong. May 27 05:20:43 TacticalJoke: well when i clicked the funky button the indexOf() method was return -1 May 27 05:20:47 just got rid of the case May 27 05:20:58 Okay. I see. May 27 05:21:17 true, I guess I shouldn't think about it too much. It just bothers me a bit to be relying on so many libraries May 27 05:21:37 but I guess without them I would spend a month reinventing the wheel May 27 05:21:46 and wasting my time May 27 05:22:05 liuwenhao: yup if someone did it first, and it's decent might as well use it May 27 05:22:37 although i've found iphone devs dont share the decent part of that May 27 05:22:55 they implement any library so it means most apps require the latest vesrion of ios May 27 05:23:36 my "partner" who does the ios side of things requires ios 8 for a simple dialog library. pretty redicolous imo May 27 05:25:22 Sucks for all the devices that will never be able to upgrade to iOS 8, seems like cutting out a big section of userbase May 27 05:26:01 liuwenhao: 20% of it. I understand not wanted to support API 9 but it's like not supporting 4.3 May 27 05:26:14 or even 4.4 i guess because its the second most recent version May 27 05:26:34 DadFoundMy you can comfortably dev for iOS and get 80% users going with the last 2 versions May 27 05:26:59 g00s: a lot of devices dont get ios 8, and many people dont want to update May 27 05:27:19 for example my grandmother didnt want ios 8, but had to because facebook apparently required it May 27 05:27:19 DadFoundMy dont know where you get that from. apple supports phones 4 years May 27 05:27:41 my dads crappy 2nd gen iPad will probably get ios 9 May 27 05:28:01 my girlfriend's phone didnt get it but maybe she's just stuck under a rock May 27 05:28:16 what was it, iphone 3 ? May 27 05:28:18 even still i think 20% is too large of a number for a simple dialog May 27 05:28:28 g00s: i think she has a 4 May 27 05:28:34 4 and 4s all got ios 8 May 27 05:28:49 g00s: also remember a lot of users dont want to update their 4's and 4s's because it slows them down a lot May 27 05:28:56 she might be int hat boat May 27 05:29:06 yeah, my ipad is still on iOS 7 and will stay that way until I sell it May 27 05:29:40 liuwenhao nobody will want it because apps will require ios 8 :P May 27 05:29:41 i can tell you from experience my grandmothers ipad was pretty snappy on ios 6 or 7, but is very slow now from ios8 May 27 05:29:57 g00s: lmao May 27 05:30:35 anyway the original point was that many ios devs require that os version for stupid shit libraries like shitty styled dialogs May 27 05:30:54 contrasting that android devs might target too early of versions maybe May 27 05:31:13 i wonder if we stopped supporting gingerbread in our apps sooner it would have died faster May 27 05:31:37 probably not, especially in third world countries May 27 05:31:44 they would just stop using your app :) May 27 05:31:49 but stay on gingerbread May 27 05:32:35 my girlfriend has a really shitty android 2.3 sony phone with a 3" screen that she still uses... I gave her my nexus 4 but she still uses the sony phone half the time May 27 05:32:47 Is it a Sony Xperia U? May 27 05:32:56 liuwenhao: do you guys live in china? May 27 05:33:03 yeah May 27 05:33:12 zai nar? May 27 05:33:14 I'm not sure TacticalJoke, i'll ask her in a minute May 27 05:33:16 Xi'an May 27 05:33:19 in Shaanxi province May 27 05:33:19 ahh cool May 27 05:33:31 i studied a bit on guang zhuo May 27 05:33:36 *in May 27 05:33:38 if I didn't have a VPN I would kill myself May 27 05:34:00 guangzhou is pretty nice city, have you been to shenzhen? May 27 05:34:00 liuwenhao: I was going to say, given what time of year it is, I could kick you offline by mentioning all sorts of phrases :) May 27 05:34:07 yeah i totally dont miss disconnecting from irc and everything else every 5 minutes May 27 05:34:10 we're going to move to shenzhen eventually hopefully... i love it there May 27 05:34:22 liuwenhao: i fucking loved shenzhen May 27 05:34:32 * Leeds waves over the pseudo-border May 27 05:34:34 liuwenhao: i visited the tencent offices while there, it was crazy May 27 05:34:39 Yeah leeds. it's the time of year for even more google services to get blocked May 27 05:34:47 liuwenhao: dont worry i was on that side of the border for a bit too! May 27 05:35:01 i primarily lived/studied in zhuhai but traveled all over guangzhio May 27 05:36:03 going from shenzhen to xi'an is like going from san francisco to detroit May 27 05:36:13 i need to get back to shenzhen soon May 27 05:36:26 xi'an has a lot of history but the infrastructure is so fucking terrible May 27 05:36:33 i have to say i think the most attractive girls were in zhenzhen too. May 27 05:36:46 but but but your teracotta warriors! May 27 05:36:49 I haven't been in a couple of years... partly because of the visa cost, partly because I had my phone stolen last time I was there, and... meh May 27 05:37:13 i got my phone stolen in macao of all places May 27 05:37:18 hunan girls > all, i might be biased because my girlfriend is from hunan though May 27 05:37:29 ah, well, that place is a pit of depravity :) May 27 05:37:53 how was macau? i've never been there or las vegas either May 27 05:38:03 haven't been there for a while, although I go through the ferry terminal at least once a week or so - it's about 10 minutes walk from my place, go there for sushi and M&S May 27 05:38:11 las vegas probably shouldn't exist May 27 05:38:13 liuwenhao: it was pretty neat. the city i lived in shared a land border with macao so i made a couple trips May 27 05:38:19 honestly nothing too special May 27 05:38:56 Leeds: heh i took that same ferry terminal to my city for HK a couple times May 27 05:39:31 yeah, I've taken the ferry up to China from there once or twice May 27 05:40:00 ok well you guys are making me miss noodles and dumplings and this needs to stop, so im going to go to sleep now. seeya May 27 05:40:30 I'm eating walnut cheese bread from a German(ish) bakery just across the road from the ferry terminal :) May 27 05:40:49 not a big dumpling fan... I'm pseudo-veggie, so a bit limited in local food May 27 05:41:40 see ya DadFoundMy May 27 05:42:12 I need to find donuts... I have a serious donut craving and it's driving me crazy. I even considered making my own but it seems like a pain May 27 05:42:45 If someone opened a Donut+Burrito food cart here they would get rich ASAP May 27 05:42:52 that stuff is in short supply May 27 05:42:57 they have donuts in the german bakery... we travel around Asia quite a lot, and Krispy Kreme is one of our guilty secrets May 27 05:43:09 what city? May 27 05:43:18 I'm in Hong Kong... May 27 05:43:47 ohhhh nice May 27 05:44:07 there's also been a minor explosion of burrito places recently - got at least 2-3 within a few minutes walk... no food trucks in HK though, except for festivals etc. although they are talking about introducing them May 27 05:44:44 ugh. I really need to get out of Xi'an May 27 05:44:58 anywhere but here May 27 05:45:02 would be better May 27 05:45:35 yeah, not sure I could taking being in China - maybe GZ/SH/BJ/SZ, but nowhere else May 27 05:47:30 was discussing VPNs with someone recently - he was saying it's become a lot harder to get a reliable one May 27 05:47:59 couldn't you just sign up with linode or something and set up your own pretty cheaply? May 27 05:48:05 I've never had a problem with Astrill, it's what most people here use; it's a bit expensive though May 27 05:48:35 wabz: apparently they're blocking at the protocol level now, and forcing long-running connections to drop so you can't maintain a link May 27 05:48:47 ah wow May 27 05:49:52 liuwenhao: come to HK, we'll get beer May 27 05:50:04 you'll be shocked at how much it costs though :) May 27 05:50:17 much cheaper than in australia May 27 05:50:24 even the australian beer :) May 27 05:50:45 A$12.5 or so for a pint isn't uncommon May 27 05:50:54 beer is so pricey in Australia :( May 27 05:50:55 I want to go to HK again but it really is way out of my budget at the moment May 27 05:51:08 I just buy it from park'n'shop, the worst experience supermarket in the world May 27 05:51:09 I would love to live there eventually May 27 05:51:10 maybe A$9+ for a VB :) May 27 05:51:13 aha May 27 05:51:34 other than VPN bullshit I love living in China. Xi'an is the only city I May 27 05:51:43 is the only city I've been to that I don't like* haha May 27 05:51:51 did the VPN cut your sentence in half? :) May 27 05:52:00 no, laptop keyboard May 27 05:52:34 or maybe I'm getting censored, who knows May 27 05:55:10 64 May 27 05:55:31 nope, he's still here May 27 06:53:39 hi there, I have an application like this http://tutorials4android.com/wp-content/uploads/2015/03/Android-HelloWorld.png May 27 06:53:56 is there any way to put the three dot on top right to be the same on every device ? May 27 06:54:51 because on some device it looks exactly like what you see on the image, but on some device, it appears when I tape the menu button on left bottom May 27 07:08:07 http://fortune.com/2015/05/26/google-oracle-api-supremecourt-obama-appeal/ May 27 07:08:53 hello May 27 07:27:56 can i move the wifi driver from one kernel to another? FYI i have no idea what i am talking about, i just know that my device's wifi works like crap with one firmware but great with another, yet, everything else with fw1 works great so i want to fix the wifi issue May 27 07:28:01 is that possible? May 27 07:29:18 qtbchin: wrong channel May 27 07:30:03 so that article basically means that if oracle wins the suit, we'll have to pay to use their APIs? May 27 07:30:11 my bad, can you point me to a more appropriate one May 27 07:30:17 qtbchin: #android-root or #android May 27 07:30:29 appreciated May 27 07:34:07 Hello, ive a quesiton. im currently trying to get a buffered screenshot using adb and c#. In java ive used ddmlib successfully but i would like to do that in c#. I know there's screencap, screenshot, ... But ddmlib uses sockets to receive the bytestream. How do they do that? just found this in the source https://android.googlesource.com/platform/tools/base/+/master/ddmlib/src/main/java/c May 27 07:34:08 om/android/ddmlib/IDevice.java (RawImage getScreenshot(long timeout, TimeUnit unit)) May 27 07:35:16 in another part i figured out that it uses a socketconnection which starts with framebuffer: (method getFrameBuffer) https://android.googlesource.com/platform/tools/base/+/master/ddmlib/src/main/java/com/android/ddmlib/AdbHelper.java?autodive=0%2F May 27 07:37:31 hello, I want to connect to a paired bluetooth device (bluetooth speaker) programmatically, with a button click. is it possible? are there an example projects or something? May 27 07:40:40 fr34k: http://stackoverflow.com/questions/14228289/android-device-bluetooth-pairing May 27 07:43:59 thanks, barq. I will give it a try :D May 27 07:56:27 barq, so I need to unpair and pair the devices everytime? or is the connect method enough? May 27 08:11:06 barq: you need to use reflections for some things May 27 08:16:15 Jonno_FTW: ? May 27 08:17:11 nvm, I was thinking of something else May 27 08:17:22 there's loads of bugs with bluetooth in android, and some stuff is not visible May 27 08:19:58 good morning guys May 27 08:20:20 with Google Play, can I see a breakdown of which country rates my app highest / lowest? May 27 08:20:48 hey guys. i have a layout that is GONE at startup... an action happens then I animate the YDelta from 100% to 50% to bring most of the layout on the screen... problem is After it animates up there is still part of the layout that is hidden offscreen.. how can i "resize" the layout after animation? May 27 08:21:42 I have a question, if you have a list with maximum 3-4 Items, would you still use a recyclerView for that ? Right now I am using a simple linearlayout which is inflating every item ? May 27 08:24:27 mrfreemanblack, for lists that don't go offscreen, recyclerview won't bring much benefit May 27 08:31:21 i have this RxAndroid code icm retrofit, and it tells me i am running network code on main thread.. but why? https://gist.github.com/xorgate/66f393923a015e9cbac0 May 27 08:31:49 i thought the observable was automatically on a background thread May 27 08:57:52 it works when i add a .debounce() at the start.. i guess it forces it to a background thread May 27 09:03:58 hi guys, how can force my application to behave like this http://tutorials4android.com/wp-content/uploads/2015/03/Android-HelloWorld.png for the menu on top right ? May 27 09:04:59 because on S4 for e.g, the menu appears when I tape the bottom left menu May 27 09:05:06 on capacitative touch May 27 09:06:13 on an Acer or Lenovo, it looks really like what you can see on the image May 27 09:07:04 zoraj_: http://stackoverflow.com/questions/20444596/how-to-force-action-bar-overflow-icon-to-show May 27 09:09:14 surf2b1, it says it's a hack for older version but I'm running the android 5.0 ! May 27 09:10:26 I'm going to give a try anyway May 27 09:10:29 thx for the link May 27 09:11:21 so it's called "overflow icon"! =) May 27 09:13:55 zoraj_, the overflow icon is shown automatically if theres not enough room for all icon May 27 09:14:19 you can make your own by using menu groups and assigning the overflow icon to that group though May 27 09:14:40 hello! May 27 09:14:47 is anybody online May 27 09:14:50 or is this a bad time May 27 09:15:00 i need help with copying source code for an android app May 27 09:15:01 both May 27 09:15:06 i have source ccode made in eclipse that my uncle made, and i want to try it out in android studio to make a mobile app, but i dont know shit about java or android studio May 27 09:15:17 haha May 27 09:15:18 :D May 27 09:15:39 darkgaia, learn java, then learn android, then come back May 27 09:15:42 so im trying to copy files over here and there May 27 09:22:56 danijoo_KSleep, on some device, the three dot don't appear, I have to touch the physical button on bottom left, it behaves differently on different device, and my boss doesn't like it ^^ May 27 09:23:37 i learned java by doing android dev May 27 09:29:14 Something something minSdkVersion. May 27 09:29:19 I'm too tired; sorry, May 27 09:29:23 .* May 27 09:34:20 what does the AndroidTest folders do May 27 09:36:41 zoraj_, tell your boss to jump off the cliff May 27 09:36:59 and stop messing with things he doesn't understand. May 27 09:38:19 Just use the appcompat toolbar, it'll always be there May 27 09:44:26 Mavrik, =) I spent like 10 mn just to explain him it, he doesn't give a damn clue May 27 09:44:43 I bet he's an iPhone user. May 27 09:44:48 SimonVT, hm ok let me do some search about it May 27 09:44:56 Mavrik, he was May 27 09:45:15 now, he is currently using an S4 or S5 May 27 09:55:39 hey guys, can i ask, what is this code? http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.0.1_r1/android/net/wifi/WifiWatchdogStateMachine.java#WifiWatchdogStateMachine.isWalledGardenConnection%28%29 May 27 09:57:37 Nick-S, it checks for a captcha portal May 27 09:57:53 Mavrik: but what is this code is it part of the framwork or not? May 27 09:58:06 Nick-S, yes, it is May 27 09:58:11 really? May 27 09:58:14 Nick-S, it's the code that gives you "Your wifi needs authentication" prompt. May 27 09:58:25 it's in android namespace, what do you think? May 27 09:58:31 but i dont see it here: https://github.com/android/platform_frameworks_base/ May 27 09:59:13 you see? May 27 10:00:15 wakelock, it's actually in "com.google" namespace May 27 10:00:21 Nick-S, I see your point, lemme grep the source May 27 10:00:45 Mavrik: where do you take the surce from? May 27 10:00:53 official source May 27 10:00:56 Nick-S, and yes, it's in AOSP May 27 10:01:08 which means? May 27 10:01:27 Nick-S, which means, it's right there where you were looking at: https://github.com/android/platform_frameworks_base/blob/jb-mr0-release/wifi/java/android/net/wifi/WifiWatchdogStateMachine.java May 27 10:02:10 whats jb-mr0-release? May 27 10:02:20 a tag. May 27 10:02:27 for Android ICS May 27 10:02:34 Mavrik, but but... "package android.net.wifi;" May 27 10:02:37 Nick-S, look at top of grepcode site May 27 10:02:41 More likely jellybean :p May 27 10:02:45 Nick-S, "4.0.1_r1" May 27 10:02:58 bah, yes, jb-mr0 is of course jellybean :P May 27 10:03:01 which means later(st) versions does not include that code? it was removed? May 27 10:03:08 probably refactored May 27 10:03:40 i want to be able to be aware of any captive portals walled gardens and i want to use existing gcode of android/;... May 27 10:04:25 Nick-S, the code is now in frameworks/base/services/core/java/com/android/server/connectivity/NetworkMonitor.java May 27 10:04:41 and frameworks/base/packages/CaptivePortalLogin/src/com/android/captiveportallogin/CaptivePortalLoginActivity.java May 27 10:04:49 Nick-S, grep for "generate_204" in android source. May 27 10:04:57 oh May 27 10:05:09 It's not part of the public api May 27 10:05:21 You can probably do stuff with reflection, but there's no guarantee that it wont change, as you can see May 27 10:05:39 I think he just wants to implement his own. May 27 10:06:07 anyhow its seems its not part of the api May 27 10:06:28 *sigh* May 27 10:07:27 It's not public API no, it's really simple though. May 27 10:07:36 Just does a HTTP request and checks if it got 204 back. May 27 10:08:32 Wonder what url they check May 27 10:09:11 <_rm> private static final String DEFAULT_WALLED_GARDEN_URL = "http://clients3.google.com/generate_204"; May 27 10:09:11 I've wrote a shell script on mac to pull my database from my emulator. Now when I run it, it gives me permission denied. Someone any idea? May 27 10:09:44 Ah, yeah May 27 10:13:42 _rm, that's the default but can be changed in system settings May 27 10:14:14 well, the hostname can May 27 10:14:30 is their a way of intercepting the real time camera picture and process the image on the fly for display? May 27 10:14:39 is there May 27 10:14:54 Android 5.1 or later May 27 10:15:36 yes i need my own May 27 10:15:43 questions is when is best to invoke it May 27 10:16:36 actually i did use a similar script and it blocked my network connectivity after running for the whole device May 27 10:17:05 i thought myabe its because doing urlConnection.disconnect() in finally is not enough May 27 10:19:27 * kimico bom dia pessoal May 27 10:22:31 Anyone know if Realm instances are meant to be only opened and closed on a thread once? May 27 10:22:45 I get some issues with "already closed" etc in some quick tests May 27 10:25:45 hi i have some little problem with Objectanimator. I' d like increase LinearLayout dimension in width. I know width pixel of device. I'd like increare width but i find only scale View.SCALE_X May 27 10:27:36 lol, so do some math then :p May 27 10:31:28 devuser: Set the width? May 27 10:36:08 final ObjectAnimator widthIn = ObjectAnimator.ofInt(llBackAnimation, "width", 1, maxWidth); it doesn't work May 27 10:36:38 layout increase but only your max width May 27 10:36:52 maxWidth is all screen May 27 10:40:00 linearlayout is 100dp , maxWidth is 1080px. i'd like linearlayout increase to 1080 May 27 10:46:12 devuser: Why are you not specifying the width in xml? May 27 10:47:32 i don't undestand May 27 10:47:40 i ' dlike animation May 27 10:48:39 devuser: http://developer.android.com/guide/topics/graphics/prop-animation.html#views May 27 10:49:28 http://developer.android.com/guide/topics/graphics/prop-animation.html#declaring-xml May 27 10:55:20 barq, ObjectAnimator animW= ObjectAnimator.ofInt(llBackAnimation, "width", 1, maxWidth); May 27 10:55:44 it doesn't work.. i see linearlayot max 100dp May 27 11:04:26 devuser: What error do you get? May 27 11:04:52 it increase layout but yout max so 100dp... about 300px May 27 11:05:40 code is easy : ObjectAnimator animator = ObjectAnimator.ofInt(llBackAnimation, "width", 95, maxFirstWidth); May 27 11:06:01 d May 27 11:06:02 ev May 27 11:06:15 devuser: That doesn't sound like an exception. May 27 11:07:10 doesn't seem he's getting an error, just not the desired behavior May 27 11:07:12 /error May 27 11:08:02 wakelock, right May 27 11:08:37 danijoo: i solved yesterday's problem, should you care :) Using an okhttp intercepter instead of using RxAndroid http://stackoverflow.com/questions/30461420/how-to-handle-auth0-403-error-without-adding-specific-code-everywhere-retrofit/30480704#30480704 May 27 11:08:48 i'd like change width to max with May 27 11:08:51 width May 27 11:09:00 good to hear osxorgate :) May 27 11:09:17 devuser: fill_parent May 27 11:09:24 or match_parent May 27 11:10:51 shmooz, i know :) i have create animation May 27 11:14:29 i think this example is problematic: http://www.mkyong.com/java/java-httpurlconnection-follow-redirect-example/ May 27 11:15:11 before going to the refrerred url you have to close the connection, don't ya? May 27 11:16:39 wakelock: i use the ContentResolver.query() function but it produce some Exception with content from Drive that's why i try any other method to get it May 27 11:21:45 anyone have any good stories with flow and/or mortar? May 27 11:23:46 lol, "some exception" May 27 11:23:50 well that says it all May 27 11:23:57 everything is crystal clear now May 27 11:26:12 hi all May 27 11:26:54 wakelock: as your answer yesterday xD May 27 11:28:41 my answer wasn't supposed to be clear, it was supposed to provide hints for further studying and trials. but if you expect to get help, you better make sure your question *is* clear ;) May 27 11:29:10 hi guys May 27 11:29:27 wakelock: note there's no question here ;) May 27 11:29:47 I asked here yesterday about implementing this UI: May 27 11:29:47 https://fbcdn-sphotos-c-a.akamaihd.net/hphotos-ak-xpa1/v/t1.0-9/1506529_10153330350587964_6684046832030656643_n.jpg?oh=d76386e58094cfb0ede122aa02ce1053&oe=55F7655D&__gda__=1443306295_4bebb56d44c4224c7b5cf55f2b595248 May 27 11:30:11 Schoumi, oh okay, proceeed to ramble then :p May 27 11:30:25 (ViewPager which is behind a picture of view, but implementing with Frames are too heavy to render) May 27 11:32:09 anyway.. some guy(really expert) told me to implement the drawing with a separated thread with SurfaceView... May 27 11:32:22 someone have an idea what does he talking about? hahahaha May 27 11:32:43 yes May 27 11:32:58 did you try googling SurfaceView? May 27 11:33:05 yeha.. May 27 11:33:16 but how can I use it with my ViewPager? May 27 11:33:43 I need to draw by myself the dragging animation.. but how should i do it? May 27 11:34:05 without building the whole pager from scratch May 27 11:34:52 presumably by making your top-level viewgroup a custom view that is implemented through surfaceview May 27 11:35:16 what? May 27 11:35:34 and how I insert the ViewPager to this surface? May 27 11:35:55 I don't think you understood what I just said May 27 11:37:24 well.. I have a FrameLayout>ViewPager>Fragment May 27 11:37:49 I need to implement the ViewPager through the surface? May 27 11:38:05 yep May 27 11:38:08 you didn't understand May 27 11:38:34 hahaha.. so can you explain it to me? May 27 11:38:36 why do you keep going on and on about this viewpager? May 27 11:38:45 I said top-level viewgroup May 27 11:38:46 because I need a pager May 27 11:39:28 so you believe you will end up with not having it unless you mention it every chance you get? :p May 27 11:40:07 im not sure im following dude... damn backend is much more fun! May 27 11:40:37 as far as I understand my top-level ViewGroup is the FrameLayout... am I right? May 27 11:40:57 yes May 27 11:41:32 nevermind May 27 11:41:43 ill just post it on stackoverflow May 27 11:41:56 um ok May 27 11:42:43 10x anyway May 27 11:43:22 this channel is a place where often times you only get pointers to help you go in the right direction, it is wrong to expect getting either one-on-one tutoring or fully working examples tailored just for you May 27 11:43:30 most people don't have time for that May 27 11:43:48 if SO is better at it than that, then good for you May 27 11:44:58 I dont expect for 1-1 guiding.. May 27 11:45:58 but if you say something, at least explain yourself.. Some people are new to the Android framework.. May 27 11:46:04 hello May 27 11:46:06 how do i fix this May 27 11:46:07 emulator: ERROR: x86 emulation currently requires hardware acceleration! May 27 11:46:07 Please ensure Intel HAXM is properly installed and usable. May 27 11:46:07 CPU acceleration status: HAX kernel module is not installed! May 27 11:46:18 i literally waited 2 hours for android manager's sdk manager to install the stuff May 27 11:46:29 and after that, the "run" is still not working!!! >:( May 27 11:47:22 which package did you installed? May 27 11:47:31 The sdk manager just downloads the haxm installer May 27 11:48:20 AlmogBaku, sorry but I have an actual job to attend to. I outlined how I would approach this problem. you are now expected to take that and study it further, as much as you need. May 27 11:48:35 ok, thanks May 27 11:50:46 the haxm package May 27 11:50:52 this drives me nuts May 27 11:57:54 darkgaia, make sure you installed also the hardware acceleration for your emulatior May 27 11:58:08 how do i do that May 27 11:58:16 also, i made a new adv and the thing is hella slow to load May 27 11:58:20 avd' May 27 12:01:58 sites that pretend to be stackoverflow >.< May 27 12:03:44 such as? May 27 12:04:54 for example http://www.ftssales.net/ <-- don't click! :) May 27 12:05:44 hello May 27 12:05:49 how do i run my app May 27 12:06:04 i use android studio for the first time, source code working, no errors May 27 12:06:14 but i cant test it cause the emulator refuses to run May 27 12:13:33 hum well query return a null cursor when uri is content://com.google.android.apps.photos.content so i need to read image from another way when i'm in this case May 27 12:14:24 i try getContentResolver().openInputStream(uri); but i reach a fileNotFoundException May 27 12:14:40 darkgaia: Why not test on a device? May 27 12:15:18 i use.... iphone May 27 12:15:31 though i can borrow my dad's device May 27 12:15:37 hehe May 27 12:15:48 actually that saves lives May 27 12:15:51 i'll do that May 27 12:16:05 thanks for thesuggestion May 27 12:20:49 The emulator should work but, damn, it's an underwhelming piece of... software. May 27 12:27:54 hi @ all! someone here with some experience using speech recognition? May 27 12:28:49 TacticalJoke the new visual studio android emulator lokks pretty good May 27 12:43:09 Action_pick or Action_Get_Content? May 27 13:23:25 I have a socks server and I want to connect to it and tunnel whole device traffic through it, like what "psiphon" does using tun2socks. any ideas? May 27 13:28:04 amflir: set your server ip as proxy in the wifi? May 27 13:38:58 Hello, anyone who have used AdMob Meditation here? I have a question May 27 13:39:09 hi May 27 13:39:11 I have a joke May 27 13:39:28 my admob income puts me higher than the poverty line. May 27 13:40:00 very cool May 27 13:40:28 I'm using AdMob meditation with MoPub adapter May 27 13:40:39 getting only 20% fill rate on MoPub May 27 13:41:15 so my question is, if MoPub doesn't provide an ad, does that mean the user won't see any? May 27 13:41:28 I mean, doesn't it fall back to AdMob May 27 13:42:19 I see around 60k requests/day in MoPub dashboard and 20% fillrate May 27 13:42:34 does it mean than I'm losing the 80% requests completely? May 27 13:43:51 I have heard of AdMob backfill, but no idea what it is May 27 13:51:28 Using RxAndroid, why is Observable<>.map() not async, but Observable<>.flatMap() is? May 27 14:04:56 Hello everyone. May 27 14:09:16 Do you use to use a lot of libraries and ready stuff? I catch my self trying to do everything. I did talk with a more xp developer yesterday, I was telling him the usual problem that I find in my codes, he had a library to everything. Than I got that I'm doing a lot of work that I should just find on internet. The thing is how to get my self into using more other people library. May 27 14:10:35 Here in the company I'm the only android developer, I can't get ex from my workmates. Is here a good place to talk and get some tips of how to improve my self as android developer ? May 27 14:12:06 I just realized how important it is to talk with people the may have/had the same problems that I'm having. May 27 14:12:26 I try to keep things compact and self-contained so not many libs. I mostly use libs just to learn from source. however, if it was a complex issue, I would probably just use the library. the key is finding the perfect balance between your project complexity and the desire to keep it self-contained. May 27 14:13:07 no idea about any "good place", I'd say lots of experience is the key. it works for me at least. May 27 14:17:30 @wakelock did you get a lot of experience from your workmates? May 27 14:18:46 none of them do android May 27 14:19:41 wviana: i try to look for libraries that do what i want, then try them out to see if they maybe bug or not May 27 14:21:14 Any tip about a good way to work with JSON? Right now I'm doing it in a "Parse Class" that I created by myself, most of its methods get a String with the JSON and than return a equivalent Object. But I use to browse all the JSON with a JSONObject, going down on it until I find the field that I'll use in the object that I'll return. May 27 14:21:26 use Gson May 27 14:21:43 using 3rd party libs aside, gson is a built-in feature, lol May 27 14:21:56 wait, it might not be.. May 27 14:22:17 well it's by google. anyway, everybody's using that May 27 14:23:06 What about Http Requests? how do you use to do then ? May 27 14:24:13 OkHttp for example May 27 14:24:23 again, depends on your level of complexity May 27 14:24:43 it is different if you want/need fancy stuff vs. if you want the most basic stuff May 27 14:25:12 above all, use google liberally May 27 14:29:47 right now I'm doing all my Http Requests thought HTTPUrlConnection, in a class that I created that have methods like http://pastebin.com/5YbR5eus . You think it is a bad practice ? How a OkHttp will help me with it ? May 27 14:33:07 in GSON, will I have to define all the classes that I'll use to deserialize ? May 27 14:34:56 osxorgate, it only accepts http proxy but not socks proxy May 27 14:41:48 I use in my xml file. Can I extend/override some attrs or should one more from scratch ? May 27 14:42:01 wviana, I don't know about "bad practice", but it does seem quite unnecessary, except maybe for learning May 27 14:42:11 OkHttp does it quite well May 27 14:42:18 and again - google extensively and liberally May 27 14:42:37 most things you're asking about were already asked and answered out there May 27 14:48:33 csst0111: I'm not understanding your question. May 27 14:50:33 csst0111, did you at least try before asking? May 27 14:52:42 yeap but seems that overriding height with a new val doesnt works May 27 14:52:49 let me check it once more May 27 14:53:26 if you tried it (correctly) and it doesn't work, then there's your answer May 27 14:53:27 You have to override both. May 27 14:56:21 Or "declare both". May 27 15:07:24 hey guys, i`ve just started my app on a tablet and looked into its preferences. I wonder how i can make the settings fit into the inner rectangle of the holo theme (like other apps do). To make it more clear: http://www.directupload.net/file/d/4000/xmgg8p6c_jpg.htm May 27 15:09:36 is it possible to have two datasets in a recyclerview adapter ? May 27 15:10:18 wow adkins1 this site is horrific. absolutely useless on a phone May 27 15:10:42 mrfreemanblack, wouldn't that be down to your adapter? May 27 15:11:07 what you mean with down to your adapter ? May 27 15:11:09 wakelock: you mean directupload? May 27 15:11:46 yes May 27 15:11:55 wakelock: can you give another one? May 27 15:12:03 mrfreemanblack, exactly what I said May 27 15:12:23 adkins1, you mean other than hundreds of other picture uploading sites? May 27 15:12:57 wakelock: i mean a one, that you know, is useable on a phone May 27 15:13:22 imgur May 27 15:13:44 wakelock: I think it could be possible May 27 15:14:01 http://i.imgur.com/Q7sypZR.jpg May 27 15:14:25 but then I should return in the methode getItemCount() the size of the two arrays ? May 27 15:14:57 adkins1, I see. wouldn't the standard preference layouts give you that? May 27 15:15:39 it should, at least after you apply the correct theme May 27 15:16:05 wakelock: i dont know, i just use holo theme for my whole app and wondered how to make it look good...... May 27 15:37:16 what is fillrate? May 27 15:38:34 in what context? google down? May 27 15:38:47 probably something todo with how fast something fills May 27 15:39:12 http://en.wikipedia.org/wiki/Fillrate May 27 15:42:20 in ads May 27 15:46:13 paulo_, if your app does 10 ad requests to google, and google can serve you 5 ads, its 50% fillrate :) May 27 15:51:26 guys, I have a question May 27 15:52:00 if you make an app that takes a photo, can I control at how many megapixels or the resolution that is used when taking the pic? May 27 15:52:49 you can take lower resolution images, sure May 27 15:53:41 so I can set the phone to take the picture at 2 mega pixels if available? May 27 15:54:10 thats what he just said. May 27 15:54:41 well I was asking to make sure it's not something like "RESOLUTION_LOW" or something instead of an actual value May 27 15:54:48 luci1093 http://stackoverflow.com/questions/8744994/android-camera-set-resolution May 27 15:54:59 like for example the proximity sensor uses only FAR and NEAR ... May 27 15:54:59 see that github project, looks like what u want May 27 15:56:13 okay, thanks a lot May 27 15:56:37 np, gl May 27 16:38:42 is there a marquee textview that the user can override by dragging left or right and when they let go it starts auto scrolling again May 27 16:38:42 ? May 27 16:48:08 i have one service that are as library, that service must be just one instance running May 27 16:48:30 how can i check if service not running run it, else do noting May 27 17:00:19 can anyone tell me how i can make preference items fit into the inner rectangle of the holo theme (like other apps do). To make it more clear: http://i.imgur.com/Q7sypZR.jpg ?? May 27 17:03:40 Does anybody know of an app that can decompile and apk file AND let me edit it? May 27 17:05:49 test May 27 17:25:18 noahmg123_ you could reverse engineer apk files to an extend May 27 17:25:54 napster: I'm sorry. I did not undertand. Can you rephase that? May 27 17:26:30 noahmg123_ you will be able to decompile APKs May 27 17:26:51 napster: with what? May 27 17:27:07 there were some tools that let you edit (decompile>change>repackage) apks May 27 17:27:20 apk is basically a zip file first of all noahmg123_ May 27 17:27:39 so you just extract them with tar -xvf May 27 17:27:55 napster: I know. But the tools I have that extact them loose my java data in the process. May 27 17:28:04 then the dex file contains compiled java code May 27 17:28:18 noahmg123_: baksmali ;) May 27 17:28:40 in general, you aren't going to get recompilable code from mode decompilers May 27 17:28:43 most* May 27 17:28:51 just something that vaguely resembles java code May 27 17:29:12 just understand that you wont be able to 100% decompile the code May 27 17:29:27 again, if the developer uses proguard etc May 27 17:29:35 things are going to be even complex May 27 17:29:38 JesusFreke: OK. The best app I found was here: https://play.google.com/store/apps/details?id=com.njlabs.showjava&hl=en May 27 17:30:07 napster: I am decompling my own apps on my device for editing (using AIDE). May 27 17:30:21 ok May 27 17:30:46 noahmg123_: you can run baksmali on a device May 27 17:31:01 just convert it to dex, and then run with dalvikvm May 27 17:31:30 e.g. http://stackoverflow.com/questions/10199863/how-to-execute-the-dex-file-in-android-with-command (for using dalvikvm to run a command line dex file/jar manually on android) May 27 17:32:10 JesusFreke: thx. I'll look into it. The only problem is that when I used a DEX app, it lost most of my java code. May 27 17:32:21 hopefuly this won't May 27 17:33:03 Hi, can i start a service with bindService? May 27 17:33:26 A few years back I tried to decompile apks and tried to see the java code with backsmali and jd-gui. I ended up mailing them for the actual code and they did send me what I wanted. May 27 17:35:52 JesusFreke: the link you gave me shows how to dex from a computer May 27 17:36:07 Today is one of those working days where I really could start off the day with a specially nutritious chocolate bar. May 27 17:37:15 JakeWharton: When using picasso inside a view pager, inside a view pager using your salvage library, is there any place in particular I should recycle the imageview bitmaps? May 27 17:37:26 lasserix: mmmm tasty. it's midday for me though May 27 17:37:38 Programmers need to find a diet that fits the best for the brain. I have one that does not necessarily suitable for the rest of the body though. May 27 17:38:15 Specially nurtritious has special meaning in states like california and colorado ;p May 27 17:38:35 what would that be? May 27 17:39:16 quick question please, BIND_AUTO_CREATE, creates the service right? May 27 17:40:56 "About 30 percent of Android smartphones shipped in the last quarter of 2014 were actually modified, or forked, versions of the OS that may not be very hospitable to Google’s services, according to the firm ABI Research." .. is that china, or globally ? May 27 17:41:38 that must be global - including China May 27 17:42:18 hmm 30% big number... May 27 17:43:10 g00s, that's china May 27 17:43:30 well just google "cheap smartphones" and you'll find tons of no-name smartphones. May 27 17:43:34 meaning, that's approx. the amount of china devices globally May 27 17:43:47 isnt everything from china now May 27 17:43:51 interesting from the cyanogen chief "There are very few companies in the world today that really like Google. Nobody wants Google to run the table with this game." May 27 17:43:52 g00s, since people in China can't access Google servers, their phones don't have play services May 27 17:44:35 Yeah, I'm sure people are just wishing to work with Apple :P May 27 17:44:42 Mavrik: Wow. Really? Is it blocked by the government? May 27 17:44:53 Great firewall I guess. May 27 17:45:10 We had huge problems since our backend ran on GAE and wasn't accessible from china May 27 17:47:09 g00s, that's been true for a long while (re: disliking google) May 27 17:47:27 Is it? May 27 17:47:36 there is that # again, "Apple vacuumed up nearly 90 percent of the profits in the smartphone business." May 27 17:48:11 Mavrik, yes. some theorize that is the very reason samsung has been so aggressive with their bloatware - to have a backdoor should the deal with google services blow up. May 27 17:48:19 huh. May 27 17:48:25 Wouldn't know. May 27 17:48:38 Working with Google is about the same as with any other corpo it sucks. May 27 17:49:02 That particular author is Pro-Apple May 27 17:49:09 They don't deliberately lie and fuck you like Apple does, but it's not pleasant still. May 27 17:49:28 not really - google is apparently *extremely* aggressive about its domain. the same source mentioned how some other brand (htc?) wanted to make a dual-boot phone (android+win), and google said if they do it, their deal is off May 27 17:49:28 But then again, working with MS or any other large company is like that :/ May 27 17:49:54 wakelock, then again, Samsung was a brain-damaged company who tried to force us to develop for Tizen May 27 17:49:55 wakelock yeah, that aspect of the license is kinda microsofty May 27 17:51:21 * g00s still hopes ubuntu phones takes off May 27 17:52:49 That's dead Jim :/ May 27 17:52:53 * noahmg123 as well, but still likes android May 27 17:53:05 Even FirefoxOS has bigger chances. May 27 17:53:50 also super-stoked about ubuntu phones May 27 17:54:23 i have no hopes for anything leaning on javascript for so much :P May 27 17:54:24 please no ubuntu phones May 27 17:55:29 noahmg123: you should be able to from a device as well. e.g. AIDE should have the dx tool somewhere already May 27 17:56:19 JesusFreke: I'll look. May 27 17:57:17 Hi all ! May 27 17:57:32 I've a problem with AsyncTask May 27 17:57:54 I need to return the result, so I do execute().get() May 27 17:58:07 But I've a NullPointerException May 27 17:58:16 here's my code : https://gist.github.com/anonymous/6eb945814b20a5f6fb82 May 27 17:59:46 Anyone ? :( May 27 18:03:54 =( May 27 18:10:20 Hello guys! May 27 18:10:38 When I try to Build a project on Android Studio I get the following error message : https://gist.github.com/anonymous/e905033adf71059fa33a May 27 18:11:02 I already googled about it and found the following solution : http://stackoverflow.com/questions/27343745/after-android-studio-update-gradle-dsl-method-not-found-runproguard May 27 18:11:31 But it didn't work for me. Does anybody have any idea about what could be happening here please? May 27 18:13:19 poop May 27 18:14:08 ircfox minifyEnabled is what you need to change it to May 27 18:14:27 change runProguard to minifyEnabled May 27 18:14:45 MartialLaw: I did and it brought a new error, did it work for you? May 27 18:15:01 yep... a long time ago when I ran in to it May 27 18:15:18 whats the new error May 27 18:15:27 I will do it and show you the new error, just a sec please. May 27 18:16:33 MartialLaw: https://gist.github.com/anonymous/5879ea9479798a057c6e May 27 18:18:19 hmm. apparently a bug. did you import the project to AS from Eclipse? that's given a ton of issues with gradle... also if you installed a new SDK with AS then it's possible you don't have all the SDK versions installed May 27 18:18:29 seems to be a bug in AS.... (not uncommon) May 27 18:19:13 http://stackoverflow.com/a/25525390/2722168 May 27 18:19:30 MartialLaw: This is a project made on Android Studio but a while ago (Still beta during that time). Now I re-opened it. May 27 18:21:08 oyyy. well unless someone else on here has anything to add it does sound like a bug in AS. you try to just completely remake the project (IF possible) but I dunno. I run in to a lot of these issues with AS. It's a pain in the ass and no clear answer in sight. sorry brah, hopefully someone else here knows more ;) May 27 18:24:33 Crashylitics offers NDK support now May 27 18:28:07 hm mostly boring but http://phandroid.com/2015/05/26/bold-google-io-predictions/ May 27 18:28:13 "Chrome continues to replace Android apps" May 27 18:28:59 g00s, u ready for Google Io? May 27 18:29:15 yeah i have my popcorn ready May 27 18:31:47 Hi, i would like to check somehting, when an action is defined in an intent, the action is the action to be performed by the receiving component, right? May 27 18:33:28 generally, yes May 27 18:34:04 s73v3r, thanks May 27 18:35:44 s73v3r, i'm a beginner, i just wanted to check, thanks for your help May 27 18:39:42 it looks like my downloads capped at 1k/day May 27 18:42:13 I seem to be having very rare crashes, when the app loads May 27 18:42:23 somehow, dalvik can't find the main activity May 27 18:42:45 java.lang.ClassNotFoundException: Didn't find class "com.pinoyai.pusoydosai.MainActivity" on path: ... May 27 18:42:56 is this some bug on the phones themseleves? May 27 18:47:58 can someone explain to me why in this code: https://github.com/commonsguy/cwac-camera/blob/master/demo-layout/src/com/commonsware/cwac/camera/demo/MainActivity.java when I copy it into android studio, I am getting a “cannot resolve symbol current” error on line 33? May 27 18:48:03 I have the fragment file copied verbatum as well and its fine with that May 27 18:48:22 ohhh nvm, typo May 27 18:57:06 paulo_: it does sometimes happen :| typically I see people recommending reboot and/or reinstall, which does seem to usually resolve it for me. but that could just be a placebo. May 27 18:58:40 paulo_: no matter what you do, you'll get some weird crashes. if it seems constrained to a single device / a one-time thing, it may just be the device being flaky. May 27 18:59:19 MartialLaw: I figured it was all a matter of re-open the project. Thank you a lot! May 27 19:07:17 g00s: http://www.reddit.com/r/Android/comments/37gpbv/google_io_2015_prediction_thread/ May 27 19:08:01 what http client library do you guys recommend for android apps? I am tired of messing with HttpURLConnection May 27 19:08:21 ohkttp and/or retrofit by square May 27 19:08:41 thepoosh thanks May 27 19:09:40 zerowaitstate: +1 okhttp. it's also the underlying networking library for kitkat+, definitely reliable. May 27 19:11:31 <_genuser_> hello people. May 27 19:11:59 hola person May 27 19:19:35 Hey all, I have an issue driving me crazy. In a custom view of mine, the call to super causes java.lang.StringIndexOutOfBoundsException: String index out of range: 0 May 27 19:20:30 The custom view inherits from LinearLayout. The offending line of code, according to the stacktrace, is super(context, attrs); May 27 19:21:22 The only reason this is a problem is because the Preview window won't render the layout due to this May 27 19:22:49 Anybody know why Android Studio is doing this to me? May 27 19:23:46 hello guys... I try to connect to a bluetooth speaker/headset... it seams, the socket is connected (the bluetooth speaker doesnt wait anymore) but on my tablet the bluetooth isnt connected. I use getMethod("createRfcommSocket"...) and invoke() methode. must I send other things? May 27 19:24:17 ckrr, you sure a speaker has a rfcomm interface? May 27 19:25:10 dragorn: I dont know... it is a noname speaker Jay-tech... can I get the info from anywhere? May 27 19:25:55 ckrr, you could attach it to a pc and look at what it exposes. rfcomm is for serial communications (like a modem or a gps or something) so I'd be very surprised to find it on a speaker system May 27 19:27:09 unless something has changed in android I don't think you can programatically do much interesting with bluetooth audio - it's handled by the audio routing stuff on the system side. You can't establish direct communications from an app to a bt mic or speaker, or at least, you couldn't the last time I was doing bt stuff. May 27 19:27:51 Ironthighs: funky. have a stack trace? I suspect there's more to it... May 27 19:27:55 I figured it out May 27 19:28:08 in my xml I had android:gravity="" May 27 19:28:20 aaah May 27 19:28:28 interesting exception though May 27 19:28:31 Yeah. May 27 19:28:51 So it was looking for text between the "" I guess? May 27 19:28:56 and didn't find any? May 27 19:29:06 dragorn: ah, okay well, I check the speaker at the pc... are there some tools to get it with win7? May 27 19:29:18 so i'm looking at this example for Retrofit. https://github.com/bkiers/retrofit-oauth/blob/master/src/main/java/nl/bigo/retrofitoauth/AccessToken.java May 27 19:29:30 Ironthighs: yeah, or probably doing a substring or something and assuming length != 0 May 27 19:29:38 yeah May 27 19:30:01 I feel like it could've done a better job telling me what was wrong? May 27 19:30:04 but maybe not May 27 19:30:06 however, my api returns the token in the headers. how do i create the AccessToken with data returned from the headers? May 27 19:35:36 ckrr, no clue, sorry May 27 19:36:20 i understand how to add headers to requests if i need to, but not sure how to parse from headers May 27 19:40:59 dragorn: okay, perhaps another way can I view the bluetooth paring devices at the settings and after the user make a choice another app will start, eg google musik May 27 19:41:40 ckrr, you can't look at what devices are paired (or at least, not in 4. I haven't looked since 5.) The API is stupid that way. you CAN get told when a NEW device is paired, at least. May 27 19:41:54 so, you can listen for pair/unpair events May 27 19:41:57 but you can't query the pairing May 27 19:42:51 dcunit3d: huh. good question. I can't find anything :| May 27 19:44:13 JakeWharton: if you're around, mind checking dcunit3d's question? May 27 19:44:56 thanks groxx. i think i need to catch the Retrofit response before it's converted into an object May 27 19:45:43 dcunit3d: yeah, it does look that way, I just wasn't able to find any hooks to do so. aside from fork + modify, that is. May 27 19:46:11 dragorn: hm, shit. but thanks! now I am two steps ahead ^^ May 27 19:49:39 groxx: it looks like i can pass a callback along with the method call to my service and then work with the response object there, i think May 27 19:50:37 kind of confusing. in most of the examples, setting the authorization token with an interceptor is covered, but retrieving the token from headers is not May 27 19:55:00 will this: https://github.com/googlesamples/android-ElevationDrag only work on andoid 5.0? May 27 19:55:28 lulz May 27 19:55:37 urban airship May 27 19:55:50 I see it has android sdk v21 as a pre-req. but is that just as convention? like does it use methods only available on android 5.0? May 27 19:56:07 I could, uh... use their push service to register GCM ids and then just have localytics work alongside May 27 19:56:10 what a fuckin mess May 27 19:56:21 in_deep_thought: you could try changing the minsdk, and see if it compiles May 27 19:56:48 or rather, the target sdk May 27 19:57:10 in_deep_thought: It says it uses the elevation property which is only 5.0+ only. May 27 19:57:29 ah but the drag+drop is fine? May 27 19:57:37 yeah I guess I should try compiling it May 27 19:58:15 The drag and drop should work fine from the looks of it. May 27 19:58:41 thanks Radther May 27 20:16:15 https://gist.github.com/pfn/b4dc88b80e846f1fbac1 May 27 20:16:17 weee, that was fun May 27 20:16:31 just wrote an automatic extension function generator for everything in framework May 27 20:20:30 how do you run separate logic "i.e., use different defined constants" based on whether a build is a production build or a test build? May 27 20:20:37 in android studio? May 27 20:21:24 BuildConfig May 27 20:30:35 zerowaitstate: I use buildConfigField in gradle pretty heavily. it's mentioned part-way down here: http://tools.android.com/tech-docs/new-build-system May 27 20:30:54 you can just put that call directly inside the buildtypes / flavor blocks May 27 20:31:18 groxx whats your inpurgable fork of picasso do?\ May 27 20:31:28 I don't know if it's documented anywhere else though May 27 20:31:44 lasserix: saves a crap-ton of memory on gingerbread May 27 20:31:50 ah May 27 20:32:12 or not so much "saves" as "does not fragment your meager heap to the point where the app can't load any bitmaps within minutes" May 27 20:33:41 those two flags are the difference between "animations slightly less stuttery, but app fails to run after 5 minutes" and "animations stutter slightly more in some rare, specific instances, but app runs for hours" May 27 20:34:47 groxx: got the auth working =] May 27 20:36:19 dcunit3d: cool, how'd ya manage it? May 27 20:39:03 lasserix: oh, lol, I never pushed it remotely. whups. May 27 20:39:15 np i am not trageting gb May 27 20:40:08 I'm not sure how much it affects newer OSes, in part because they tend to have _way_ more ram. I should try an emulator some time though. May 27 20:40:17 on tiny gingerbread devices though, it's life or death. May 27 20:44:07 groxx: i implemented a callback for the retrofit method that gives me access to the response headers. my code could be a litte cleaner, but i'm running into some issues with generics May 27 20:44:32 ah finally .. http://www.androidpolice.com/2015/05/27/android-m-to-introduce-granular-permission-control/ May 27 20:44:33 where did you plug it in? I still can't find anywhere to do that :| (though admittedly I'm not spending much energy on it) May 27 20:44:51 g00s: I sure as hell hope so May 27 20:44:56 it's WAY past due May 27 20:45:01 and that screenshot looks pretty nice too May 27 20:45:24 hey all anyone going to watch google i/o 2015 on thusrday? May 27 20:45:52 perlsyntax: very likely. though I spend way more time watching recorded ones. May 27 20:45:55 groxx: you can set up retrofit service methods to either return an object or accept a callback as a parameter May 27 20:46:33 so i set the return type to void and created an anonymous callback to pass to the signin method May 27 20:47:10 groxx,I think i going to watch it live more fun that way.I hope they come out with the a/b testing tool i was reading about. May 27 20:48:26 Is tehre a good point to call bitmap recycle in a viewpager while using picasso or does picasso handle it automatically? May 27 20:48:43 you don't need to call bitmap recycle after gingerbread May 27 20:48:45 you should never call recycle May 27 20:49:01 you'll poison the memory cache data May 27 20:49:24 picasso's cache, I assume you're referring to? May 27 20:49:36 yes May 27 20:49:58 even if you are not using caching we might give the same Bitmap instance to two callers for the same image May 27 20:50:39 ah, good point May 27 20:52:09 whats the best way to check if i have connection to a server? May 27 20:52:46 ok May 27 20:52:49 thnaks May 27 20:53:09 luist: `curl the.server.url` May 27 20:53:26 groxx: programatically? May 27 20:54:02 luist: nothing else is reliable. and that "am I connected" check doesn't imply anything about the next one. May 27 20:54:21 Is there a way to use picasso to load a bitmap into an imageview? May 27 20:54:29 no May 27 20:54:46 (assuming you mean you already have a Bitmap instance) May 27 20:54:48 groxx: well i have a simple cenario… my app should try to connect to a local server, which is visible only inside the local network. if the user is outside this network, he should connect to a remote server May 27 20:55:07 groxx: so i basically want to see if this local server is visible, otherwise ill check the remote one May 27 20:56:03 ah. yeah, just call it, see if it responds. probably make a "generate_204"-like method so it's lightweight on both sides. May 27 21:01:17 groxx, Hopeing to see android m and new nexus 5. May 27 21:01:34 the "G6 Mini" perhaps? May 27 21:01:35 nexus 10? May 27 21:01:53 I'm hoping to see a Nexus 6 Watch, which is just a wristband with an N6 glued to it. May 27 21:01:59 lol May 27 21:02:17 anyone in LA going to the DirecTV extension? May 27 21:02:21 lol that funny. May 27 21:02:46 tricknology: wait, TV exists? /me just uses internet May 27 21:03:03 no, at DirecTV’s corperate HQ May 27 21:03:08 if it's not on netflix or youtube, it doesn't exist :| May 27 21:03:28 http://www.builtinla.com/events/2015-directv-google-io-extended-la May 27 21:03:38 oooooh May 27 21:03:44 that kind of extension May 27 21:03:48 :P May 27 21:03:58 figured it was a marketing-y codename for "conference" May 27 21:04:27 heh May 27 21:04:52 I have a feeling there will be a lot of recruitment at these sort of events (hint hint) May 27 21:05:36 what the G6 Mini? May 27 21:05:40 ? May 27 21:05:44 * groxx clicks RSVP link -> "Thank you for your interest in DIRECTV's Google I/O Extended Event! Registration is closed at this time. " May 27 21:06:15 perlsyntax: the google counterpart to Samsung's S3 Mini / do they have other S(N) Minis? May 27 21:07:15 groxx,i thought you where jokeing.:) May 27 21:07:48 ludicrous new google devices (like the N6 Watch) are no joking matter ಠ_ಠ May 27 21:08:05 I hope i get update for android so i don't have to get a new phone. May 27 21:08:41 i think google only does that for nrus for 2 years if i am right? May 27 21:08:48 nexus May 27 21:08:52 I would certainly hope it comes out for the N5 pretty quickly May 27 21:09:19 I'd be surprised if it doesn't come out for the N4, really May 27 21:09:27 I'm trying to create an Intent to send an email with a pre-filled subject, recipient, and message. The recipient is not being sent through the intent, tested with both K-9 Mail and GMail. Here is my code: http://pastebin.com/SQ4pMNDw May 27 21:09:30 that true. May 27 21:10:13 groxx,I think the new nexus 5 be the same size as the nexus 6 i bet. May 27 21:11:24 t0astt: hm. not sure, but fwiw I'd probably set the uri to "mailto:" (but use a Uri builder, don't just concatenate strings) May 27 21:11:55 t0astt: ah, also, you're not putting in the right data: http://developer.android.com/reference/android/content/Intent.html#EXTRA_EMAIL May 27 21:12:11 groxx: I googled some more and found out it has to be a String array, even if it's a single recipient. :P May 27 21:12:28 yep. easier to deal with a single type of data. May 27 21:13:42 t0astt: also: http://developer.android.com/guide/components/intents-common.html#Email May 27 21:14:07 interesting that `mailto:` works. makes sense, I guess May 27 21:16:50 hi May 27 21:17:02 anyone has experience with okhttp or volley libraries? May 27 21:17:14 okhttp May 27 21:17:23 ah great May 27 21:17:48 I'm still not able to make my app work May 27 21:18:08 it is very simple, I just want to make to json request and show the results: https://github.com/xpheres/AndroidAnalyticalTranslator/blob/master/app/src/main/java/com/example/root/analyticaltranslator/MainActivity.java May 27 21:18:13 two May 27 21:29:25 May 27 21:29:28 In this case I am doing this in xml May 27 21:29:37 I don't have to worry about recycling anything? May 27 21:44:14 groxx: thanks for the heads up about buildConfigField May 27 22:28:51 anyone programming anything interesting? May 27 22:29:15 nope May 27 22:30:34 just building a multi-layer cache :| May 27 22:31:13 i'm stuck on HelloWorld May 27 22:32:07 I have a world map, and ive found a way to plot gps coordinates on it like a dot, now im thinking what can i program that will make that concept useful. I plotted geo coords from twitter statuses, but realized that 1 out every 100 statuses actually have geo coord information May 27 22:32:49 groxx ? May 27 22:32:58 did you mean multi layer cake ? May 27 22:33:05 :D May 27 22:34:44 gee xamarin are really making some nice headway, huh? didn't know they partnered with IBM May 27 22:53:59 https://blog.twitter.com/2014/introducing-fabric May 27 22:54:21 so with twitter kit, can my app send tweets without using ACTION_SEND ? May 27 22:55:38 g00s: maybe we'll finally be able to use http://developer.android.com/reference/android/os/IBinder.html#TWEET_TRANSACTION as it was intended May 27 22:57:41 never saw that one May 27 23:02:03 can you use the bitcoin daemon to send payments on any other ports? isp blocks 8333 May 27 23:02:54 sythaeryn: wrong room? May 27 23:03:03 yup May 27 23:03:13 i always click bitcoin-dev and messages end up here, silly client May 27 23:03:21 I installed the Android SDK and I want to install a new skin for my phone (Android Version 4.4.2). I only see 4 different folders listed in my SDK folder: ~/AndroidSDK/platforms/android-{19,20,21,22}/skins ...What is the android-xx version for the 4.4.2 version? May 27 23:03:32 When i am using gson to parse a class and i have List can I use TyperAdapter or do I have to do like TypeAdapter> ? May 27 23:04:29 Hi everybody! I need to scrool my RecycleView programmatically for a certain amount of pixels up\down. Should I implement May 27 23:04:29 RecyclerView.SmoothScroller class for that or maybe there's a simpler workaround? May 27 23:04:40 has anyone here worked with lazy loading a recyclerview before? My project is so close to being done, but debugging this lazy load is killing me. May 27 23:06:00 I think I found my answer here: http://en.wikipedia.org/wiki/Android_version_history#Android_4.4.E2.80.934.4.4_KitKat_.28API_level_19.29 May 27 23:07:04 t0astt, What exactly do you mean, lazy load for dataset in adapter or lazy loading of data for in rows? Because the latter is kinda lazy by design May 27 23:10:52 AlexBerdnikov: does `recyclerview.smoothScrollBy(dx, dy)` not work? May 27 23:12:31 groxx, Damn, I thought all the scrolling stuff is implemented in LayoutManager :) May 27 23:12:54 I didn't even think to check for similar methods in RecyclerView itself May 27 23:13:04 Thx, mate May 27 23:14:16 :) May 27 23:14:21 it's nice when it's simple May 27 23:16:08 AlexBerdnikov: Lazy load for dataset in the adapter May 27 23:16:55 I am retrievng articles from a backend server via REST, and I paginate the calls. So once a certain point is reached in the RecyclerView scroll, more articles will be pulled and then inserted into the adapter May 27 23:17:59 Does anybody have any experience with the DragSortListView library by Carl Bauer May 27 23:19:22 t0astt, why not load all the items at once? Do you have really huge amount of data? May 27 23:20:27 AlexBerdnikov: The way the API is written makes calls somewhat expensive, since it returns ALL information on posts (it's wordpress) and there are hundreds of posts. If I return all of them it'll be a slow load time May 27 23:21:12 t0astt, And by the way what if on another scrolling you have unexpected network delay, so list won't be animated in a nice way May 27 23:24:08 t0astt, you mean API calls are expensive for the server? May 27 23:25:25 API calls are expensive in terms of time May 27 23:27:53 t0astt, Well, considering that you can't do anything with API, my suggest is to load as much data as possible on the start of activity and then continue to load the data in background no matter if user is scrolling or not... May 27 23:32:33 Does anyone have a typeadapter for checking values of a json array ? May 27 23:50:39 I added a new folder (for describing my phone) with .png files, layout, and hardware.ini files to my ~/AndriodSDK/platforms/android-19/skins folder. How do I register this new skin? May 28 00:02:55 http://www.willowtreeapps.com/blog/google-io-keynote-bingo/ May 28 00:02:59 who wants to play? May 28 00:05:33 Napalm whats up May 28 00:06:15 hey May 28 00:06:55 just thinking about implementing the java 8 streaming api for Android.. but I will wait for the keynote tomorrow. if they announce java 8 support. i wont bother. May 28 00:09:45 Cool cool May 28 00:09:52 Remember the camera issue we were working on? May 28 00:10:01 yea May 28 00:10:32 Ended up just not using the stock camera application May 28 00:10:36 made custom camera activity May 28 00:11:02 Did you even try mine? May 28 00:11:19 Yeah, was having same issue May 28 00:11:54 interesting, camera app issue perhaps May 28 00:12:24 Yeah, thats why I just scrapped it May 28 00:13:29 if I pass a context from my fragment to another activity, cant I create an instance in the activity May 28 00:13:44 FragmentName frag = (FragmentName) context; May 28 00:14:53 Or just find fragment by id May 28 00:16:17 drose379: ? May 28 00:16:21 fragments aren't contexts May 28 00:16:27 Realized that May 28 00:16:33 Just need to make a callback to the fragment May 28 00:16:42 So Im just gonna do FragmentManager.findFragByID May 28 00:16:54 that should give me access to its methods right? May 28 00:17:13 yeah, if it exists :) May 28 00:17:27 :P May 28 00:17:29 thanks May 28 00:18:41 I just installed Android Studio and I have to admit I am loving it. But some minutes ago I created a new project and it launched showing this error message from the beginning : https://gist.github.com/anonymous/6aac328b3ea53f15eaa7 May 28 00:19:29 Could someone help me understand what is going on here please? May 28 00:23:25 ircfox: sounds like the layout preview is exploding for some reason. "file -> invalidate caches / restart" probably? May 28 00:26:52 groxx: I did it already, I also close/open Android Studio. Nothing changed in this case. May 28 00:28:04 groxx: what amazes me is the fact that this is a fresh project and it already has errors. May 28 00:28:36 can i have preferences for a service? May 28 00:29:28 ircfox: is it stopping AS from working at all, or just a thing that pops up? May 28 00:30:24 groxx: it stops the Preview rendering May 28 00:30:31 impulse: yeah, services are contexts. you probably want to use e.g. http://developer.android.com/reference/android/preference/PreferenceManager.html#getDefaultSharedPreferences%28android.content.Context%29 May 28 00:30:45 groxx: thanks May 28 00:30:54 groxx: at least from the main_activity.xml default layout. May 28 00:30:55 ircfox: the layout preview has a theme button, try changing it to something else May 28 00:31:33 groxx: how? May 28 00:32:22 groxx: Ok, donne. The default AppTheme has a bug. May 28 00:33:10 I forget if that's a target-SDK / appcompat-version bug, or if it's more general :| May 28 00:34:54 groxx: I did change Select Theme/Project Theme/App Theme to Base.Theme.AppCompact May 28 00:36:13 groxx: why do you think AppTheme has this bug? May 28 00:36:34 dunno. are you using the latest build tools? May 28 00:36:57 I think that's because the dependencies { compile 'com.android.support:appcompat-v7:22.1.1' } May 28 00:37:09 Base.Theme.AppCompat is not to be used directly May 28 00:37:21 use Theme.AppCompat May 28 00:38:59 Napalm: I did change from AppTheme (which is the default and has a bug) to App.Theme.AppCompact (which works just fine) May 28 00:39:55 AppCompact has a black background. :/ May 28 00:40:18 use Theme.AppCompat.Light then May 28 00:45:19 Maybe because ActionBarActivity is deprecated? May 28 00:48:52 ircfox: ActionBarActivity is deprecated but it is the same exact thing as using AppCompatActivity (which you should use now). Has nothing to do with your theme May 28 00:55:12 Strange thing is the preview I got in AS is different from the one running at the emulator. May 28 01:01:31 anyone here used RxJava and RetroFit? I'm trying to access the converted object AND response headers from an API call May 28 01:01:51 I basically have this issue here: https://github.com/square/retrofit/issues/436 , and patjackson52 seems to have some idea of what to do, but I don't quite understand his answer May 28 01:03:01 ideally the API call would return something like Observable, rather than Observervable>, and I could access headers and List from within the Response object, or something May 28 01:07:34 barbs: Response object is everything in the HTTP response .. including body.. you can then put the body through the converter to get the object May 28 01:08:56 Napalm: yeah, just reading further, I think I get it. Will give that a go, thanks May 28 01:09:09 http://square.github.io/okhttp/javadoc/com/squareup/okhttp/Response.html May 28 01:13:07 barbs: https://github.com/square/retrofit/blob/master/retrofit/src/main/java/retrofit/RestAdapter.java#L284 May 28 01:13:36 looks like if the return type is a OkHttp Response object it will return it fine May 28 01:13:39 how can I upload my project to git? May 28 01:13:48 github* May 28 01:14:00 use git May 28 01:14:28 noahmg123: https://help.github.com/articles/set-up-git/ May 28 01:14:54 barbs: still there? May 28 01:15:06 Napalm: yep, just trying it out now... May 28 01:15:53 Napalm: yep, I've got it returning Observable and it seems to work fine. Thanks for your help May 28 01:16:01 np May 28 01:16:48 I'm not sure I'm fully sold on rxjava yet, but at the very least it's interesting. And powerful May 28 01:17:24 it looks like it'd be so much better with lambdas. tempted to give retrolambda a go... May 28 01:17:41 <_genuser_> dang, encrypted devices are reaaaaaaaaaaaaaaally slow. May 28 01:17:54 <_genuser_> anyone else develop/run apps on encrypted devices? May 28 01:17:59 I didn't notice much change on the N4 May 28 01:18:17 _genuser_: which device? May 28 01:18:26 <_genuser_> I encrypted my samsung galaxy s4. May 28 01:18:48 depends quite a bit on the device, sadly :| and even more sadly, it seems nobody wants to ship devices with hardware crypto chips, which would make the difference almost nothing. May 28 01:18:58 <_genuser_> all the file manipulation, image reading, image fetching and storing to disk that I used to do that took 2 seconds on my device with kitkat are messed up. May 28 01:19:09 that and data alignment May 28 01:19:16 <_genuser_> after upgrade to lollipop they were taking 8-10 seconds. May 28 01:19:30 Napalm: data alignment? May 28 01:19:32 <_genuser_> so lollipop alone increased the time by 5 times. then encryption, now takes 1min May 28 01:20:13 <_genuser_> so I go from an app working seamlessly where file manipulation took 2 seconds to where it takes 1min. May 28 01:20:14 groxx: one sec, get you an article that explains it.. i was dealing with it the other day on a custom android device May 28 01:20:33 <_genuser_> the app is useless. I'm gonna have to do factory reset and move back to unencrypted and deal with 10seconds. May 28 01:20:41 Napalm: is this something that accelerates encrypted devices, or more of an "mmap kinda doesn't work with encrypted storage" observation? May 28 01:20:56 I mean, it _does_, but not as well. May 28 01:21:20 http://www.linux-mtd.infradead.org/doc/ubi.html May 28 01:21:27 http://www.linux-mtd.infradead.org/doc/ubifs.html May 28 01:21:29 these May 28 01:21:32 how do I allow for the bottom adapter in a recycler view to scroll to the top of its container May 28 01:22:14 more to do with flash blocks and encrypted block sizes May 28 01:22:22 right now the last element is locked to the bottom of recyclerview container when I scroll to the bottom May 28 01:22:38 warrickFL: best way is to add a decorator May 28 01:23:13 warrickFL: in your decorator's getOffsets method for the last position in the adapter return the height of the recyclerview minus the height of the view May 28 01:23:27 Napalm: ah. yeah, flash's big block sizes are why it _shouldn't_ make a noticeable difference. which means the devices / the OS is/are doing it horribly wrong for some reason. May 28 01:23:31 warrickFL: for the bottom int of the rect May 28 01:23:57 Napalm, thanks May 28 01:24:38 that's an interesting technique... does that make the whole thing clickable as "the row takes up the full height of the parent view" though? May 28 01:24:48 no May 28 01:24:55 decorations are not part of the view May 28 01:25:02 they just affect the layout of the views May 28 01:25:04 <_genuser_> so basically you guys have seen this and there nothign to be done for this, then. May 28 01:25:08 is there a way to display an activity as a popup windows which size i can set, so far i'm displaying as a dialog using Theme.material.diaog May 28 01:25:10 ah, derp. of course, that wouldn't make sense with the drawing system May 28 01:25:47 _genuser_: decrypt? ¯\_(ツ)_/¯ May 28 01:25:49 _genuser_: you can try factory reset after enabling encryption.. this should wipe and reformat your data partition.. it might work.. it might not May 28 01:26:13 but yeah, androids seem to do this stupidly-poorly for some reason. May 28 01:26:16 hert: yes.. so your view size explictly May 28 01:26:17 lol May 28 01:26:17 <_genuser_> groxx: you can't decrypt. it warns you that you'll have to factory reset. May 28 01:26:29 generally. on the N4 it seems to work essentially fine, for me May 28 01:26:44 <_genuser_> Napalm: yeah, I'm gonna reset. I was just thinking if others have experiences huge delays on process or i/o intensive stuff. May 28 01:26:56 _genuser_: yeah, probably right. so pop into TWRP, make a backup, and restore once it's decrypted :) May 28 01:27:08 <_genuser_> but oh well. I'll have to re-write some parts of the app. May 28 01:27:18 <_genuser_> I can decrypt mine, but I can't tell the user not to encrypt. May 28 01:27:23 <_genuser_> groxx: errr, what is twrp? May 28 01:27:32 _genuser_: it shouldnt be a problem to your app. disk operations should be all async May 28 01:27:50 oddly / buggily / if you're feeling yolo: when I decrypted my N4, it told me that, but it didn't actually erase anything. I _suspect_ it's because I had a passphrase, not just a pin / swipe. May 28 01:27:58 * Napalm watches groxx explain the universe to _genuser_ May 28 01:28:35 twrp is #android-root :) alternate recovery partition, so you can make _real_ backups, etc. it's nuttery how bad android's stock backup stuff is. May 28 01:28:37 <_genuser_> groxx: it makes you select a password to encrypt. pin is backup. swipe isn't an option apparently when encrypted. May 28 01:29:03 yeah. I had one well before I encrypted though. possibly related, possibly omfg huge security hole bug. May 28 01:29:10 I haven't tried it a second time. May 28 01:29:24 <_genuser_> groxx: oh yeah, the app I have installed are all memorized in my google account. pictures/vids are on sd card. app data can be wiped. May 28 01:29:25 Napalm: sorry. OK. i did so but my push was rejected. May 28 01:29:32 <_genuser_> I don't think I can be bothered with backups, etc. etc. May 28 01:30:30 noahmg123: is it your repo? May 28 01:30:34 lol May 28 01:30:35 <_genuser_> somebody will make this a signature with my nick saying I can't be bothered with backups. May 28 01:30:38 <_genuser_> internet memes, here we go. May 28 01:30:46 Napalm: yes. May 28 01:30:53 noahmg123: did you authenticate? May 28 01:30:56 * _genuser_ looks for alternative nicks.... May 28 01:31:25 Napalm: I did within the Android Studio GUI. Do I need to from the command line? May 28 01:31:46 noahmg123: sounds like you didnt do a fetch-rebase/pull before you made changes. May 28 01:31:52 noahmg123: just do: git push -f from the command line May 28 01:31:59 this will wipe out the current contents of your repo May 28 01:32:15 and replace it with your local commits May 28 01:32:21 <_genuser_> man rdp'ing into my work laptop is such a pita. connect, reset wifi, rdp in. May 28 01:32:36 Napalm: do I include my git url? May 28 01:32:44 no May 28 01:32:53 its already set in your git repo as the origin May 28 01:32:57 assuming you did it right May 28 01:33:35 ok. wait. I get fatal: No configured push destination. I setup the remote but I may have set it wrong. May 28 01:34:02 yup May 28 01:34:09 i did "git add remote May 28 01:34:32 Napalm: does the remote need to be called origin? May 28 01:34:48 noahmg123: do: git push -f master May 28 01:34:57 Napalm: ok May 28 01:35:38 Napalm: done May 28 01:35:48 did it work? May 28 01:36:07 Napalm: yes. now can I push within AS? May 28 01:36:09 git branch --set-upstream master /master May 28 01:36:11 now do that May 28 01:36:35 that will link your local master branch to the remote master branch May 28 01:36:46 now restart AS.. just to be safe.. then it should work fine May 28 01:37:00 then go learn git May 28 01:37:01 :P May 28 01:37:34 Napalm: soory. I was following the online instructions. I guess they assumed I knew to do this. May 28 01:38:03 sorry* May 28 02:23:56 Does anybody have experience with the DragSortListView library by Carl Bauer? May 28 02:28:44 no May 28 02:35:37 anyone have project ideas for old android phone? May 28 02:37:42 no May 28 02:38:34 What is the point of @Qualifier annotations such as https://github.com/square/dagger/blob/1d46e2fbd7f51bef77fcc0413ed37e3a88acf146/examples/android-activity-graphs/src/main/java/com/example/dagger/activitygraphs/ForActivity.java May 28 02:42:04 meh, latest Chrome Desktop is constantly givinf me "Aw, snap" May 28 02:42:28 Hmm okay I guess in that example it's being used to distinguish between Activity and Application context May 28 02:42:44 Dunno how it would be taken advantage of though May 28 02:43:44 yiati: I'm with you, I've never found @ForActivity and similar annotations very useful May 28 02:44:28 I was wondering if it's necessary since both provide Context, and it's necessary to distinguish? May 28 02:45:04 I've never felt the need to distinguish personally **** ENDING LOGGING AT Thu May 28 02:59:58 2015