**** BEGIN LOGGING AT Mon Dec 01 02:59:58 2014 Dec 01 03:08:28 "Florida woman found dead with arrows in head" Dec 01 03:09:25 sounds like a quentin tarantino scene Dec 01 03:12:42 looks like we have our first suspect Dec 01 03:19:33 don't uninstall outside of studio Dec 01 03:19:43 I had a similar bug in my build system too Dec 01 03:22:11 g00s: she used to be adventurer like you? ;) Dec 01 03:22:27 but she took an arrow... in head?! Dec 01 03:41:50 gordon_ somebody forgot to make the Arrow.shoot() method private and throw an Exception Dec 01 03:44:09 or she just didnt catch it Dec 01 03:44:20 that's catch & swallow in real life Dec 01 03:45:32 hi guys had a quick question - im reference a custom drawable in my project using getResources().getDrawable(android.R.drawable.MyImage Dec 01 03:45:38 however, it does not find this reference Dec 01 03:45:50 i am importing the custom R class with my app Dec 01 03:45:52 any ideas? Dec 01 03:46:07 and myimage is not in caps - its just a reference Dec 01 03:46:20 because it's not android.R Dec 01 03:46:33 it's R.drawable.my_image Dec 01 03:46:40 omg thnks Dec 01 03:46:46 and R will come from .R Dec 01 03:46:53 its like com.coustom.appname.R Dec 01 03:47:05 that's right sir Dec 01 03:47:08 thanks so much gordon! Dec 01 03:47:13 np Dec 01 04:48:38 anyone recomend best file picker library? Dec 01 04:54:23 if its the best, nothing better right ? Dec 01 04:54:27 :) Dec 01 04:54:37 ? Dec 01 04:55:35 oh i thought that was the name of the library Dec 01 04:56:45 lasserix https://android-arsenal.com/tag/35 Dec 01 04:57:04 ahh thanks Dec 01 04:59:45 https://programmerhumor.reddit.com/ is very consistent. Dec 01 04:59:49 Consistently unfunny. Dec 01 05:00:07 Not sure why subscribed. Dec 01 05:20:56 pfn: if you're bored later: http://www.thoughtworks.com/insights/blog/scala-symposium-scala-practice-3-years-later Dec 01 05:23:30 bankai_au: thanks for video, will watch it Dec 01 05:23:38 or rather listen to it :) Dec 01 05:23:46 I hate videos that aren't transcribed Dec 01 05:25:31 video starts at 3:10 Dec 01 05:25:33 not worth wasting my time watching or listening Dec 01 05:26:31 what's worse is 'just' slides Dec 01 05:26:53 oh.. Dec 01 05:27:14 hate just slides.... Dec 01 05:30:52 so I'm thinking instead of spending time trying to make the screen look transparent, and floating, blah blah, I should just use a generic prefs screen and be done. Dec 01 05:30:58 v2 can implement the eye candy. Dec 01 05:31:24 B0BBY: you bean just set color to transparent ? Dec 01 05:32:09 Dec 01 05:37:37 bankai_au, just slides is all I'll ever look at, which I just did Dec 01 05:38:24 gordon_: heh, I hdn't started yet. I was trying to think of how to do the layout (portrait/landscape/locked-to-landscape), when items are selected from it, how the popup list selection will look etc. Dec 01 05:38:42 gordon_: then I decided, the good ol' established look will be fine. Dec 01 05:39:12 transparent might be hard to read with all the new layers - altho, the stock android camera one isn't hard at all to read. Dec 01 05:39:32 I just figured the prettifying might be a waste of time in the grand scheme of things. Dec 01 05:40:11 go material :D Dec 01 05:40:17 bankai_au, anyway, guy's argument just looks like the arguments of any #complexproject Dec 01 05:40:55 gordon_: heh, maybe venture capitalist money can be spent to buy artists' time blah blah, :) Dec 01 05:41:25 name any complex projects for which the developers are not critical of their platform in one way or another Dec 01 05:41:31 and when no VC money is available, do the route of snapchat - use cheap stuff. Dec 01 05:42:42 bankai_au, and his gotchas page is like some of the least surprising Dec 01 05:42:56 I have worse Dec 01 05:43:48 pfn: who are you ripping into? Dec 01 05:44:08 can someone tell me why OnKeyListener doesnt work on EditText ? Dec 01 05:44:40 because it gets swallowed up by the input connection Dec 01 05:45:08 how can I detect 'delete key' then ? Dec 01 05:46:47 what you trying to do gordon? Dec 01 05:47:21 pin number inputs Dec 01 05:47:43 and when I press delete I want to set focus on previous field Dec 01 05:47:51 but TextWatcher doesnt work Dec 01 05:47:57 and OnKeyListener isnt called anyway Dec 01 05:56:12 wow, moto e for $10 off contract O.o Dec 01 05:56:31 thats like the cost of 1 bag of organic almonds Dec 01 05:57:47 moto x for $359 off contract Dec 01 05:58:02 unlocked Dec 01 06:00:33 you really price things in organic almonds? :) Dec 01 06:01:33 well, well, how "farmer" of you to price stuff in almonds!! Dec 01 06:02:05 is the moto E a good development device ? Dec 01 06:02:36 B0BBY: and how hipster for them to be necessarily organic... Dec 01 06:03:34 organic and hipster, he's killing it!! Dec 01 06:04:22 gordon_, lots of easy ways around it, just use text views Dec 01 06:04:24 Leeds: I believe he's one of the ones who answer my android questions the most. Maybe I shouldn't be bugging him.... Dec 01 06:04:53 $10 for moto e? what Dec 01 06:05:49 pfn: why not edittext ? Dec 01 06:06:20 argh, feels overwhemling. too many things to do for this project. Dec 01 06:11:03 gordon_, because you don't need. to edit Dec 01 06:15:07 hmmm, can I show keyboard and listen to it's keys ? Dec 01 06:16:01 I will try Dec 01 06:16:44 although I usually prefer a custom pin pad Dec 01 06:17:06 number ime so ugly Dec 01 06:17:45 built a custom number input pad in my tvm calculator and in keepshare Dec 01 06:18:55 I got custom keyboard for numbers only Dec 01 06:18:55 https://github.com/pfn/keepshare/blob/master/src/main/scala/com/hanhuy/android/keepshare/PINEntryActivity.scala Dec 01 06:19:05 but user can input letters too Dec 01 06:19:09 but not all usera Dec 01 06:19:13 users Dec 01 06:19:18 it's not pin actually, postal code Dec 01 06:19:30 I have custom textview already Dec 01 06:19:36 will check for textview now Dec 01 06:19:43 not edittext Dec 01 06:21:04 hehe http://i.imgur.com/P4oi23N.jpg Dec 01 06:24:09 wonder if not fake Dec 01 06:32:02 ok I've found solution to my problem, thank you pfn Dec 01 06:32:07 usefull hint ;) Dec 01 06:32:36 btw I tried your scala plugin, just basic compile and it's fast Dec 01 06:32:43 will try robolectric later on Dec 01 06:36:15 hi, i've got a nexus 10 with 4.4.4 and i connect to a server with a raw TCP socket. Then the server sends data to the tablet (checked it with debug output) but the tables is receiving the data much later (all in local wifi). Sometimes there's a 10s delay until the client socket (tablet) marks the socket as readable. If i try it with the exact same app on my Moto G with 4.4.4 it works perfectly fine, no delays in receiving the data. Dec 01 06:36:24 I have a table of message (id, message) and a table of user (id, user) and another table that bridge a message with a number of user (idm, idu) is itok for the bridge table not to have a unique key ? Dec 01 06:37:27 g00s: If i remember correctly, this image was labeled "if it is stupid and it work, it is ain't stupid" :] Dec 01 06:37:54 hi, how to add icon to button? Dec 01 06:38:41 http://developer.android.com/reference/android/widget/ImageButton.html Dec 01 06:39:26 gordon_: ok, thx Dec 01 06:48:14 gordon_: is there a way to make a slide button? Dec 01 06:53:47 what do you mean by slide button ? Dec 01 06:54:03 gordon_: i think its seekbar Dec 01 06:54:23 http://developer.android.com/reference/android/widget/SeekBar.html Dec 01 06:54:24 this? Dec 01 06:58:22 anyone had to rdp into a windows box running an AVD. i only get a blank screen. Ideas? Dec 01 06:59:03 ktwo: why not use genymotion? Dec 01 06:59:37 g00s: how are you with the internals of creating a GCM client? Dec 01 06:59:56 thepoosh never used gcm Dec 01 07:00:00 the docs say I need to have an exponential backoof but never what the initial backoff shuold be Dec 01 07:00:02 :S Dec 01 07:00:04 why not? Dec 01 07:00:23 also there used to be a session expiration date and now the docs have nothing about it Dec 01 07:00:33 sounds typical google :) Dec 01 07:00:39 :S Dec 01 07:00:52 did you shop on cyber monday Dec 01 07:01:03 just a few books Dec 01 07:01:38 I really want a new gpu Dec 01 07:01:45 but customs would kill me here Dec 01 07:02:03 almost bought a PS4 with GTA V and Last of us Dec 01 07:02:56 thepoosh, i dont want to pay for it - aand basically im fine with the AVD - only issue is that it shows blank screen via RDP. Host-GPU mode off does not change anything Dec 01 07:03:25 ktwo: there is a free version which is much much better than the AVD Dec 01 07:04:28 ill consider it maybe in future right now im happy with he avd. its fast enough using haxm , but there must b a reason why it doesnt work with RDP. VNC or Teamviewer works Dec 01 07:04:48 still its a commerial third party thing- i usually try to avoid it Dec 01 07:04:54 *c Dec 01 07:07:05 also i see the free version doesnt even have network Dec 01 07:11:05 the whole point of exponential backoff is that it doesn't matter what the initial value is Dec 01 07:12:06 if it's failing you'll quickly get to longer times regardless of starting with 1s or 1m Dec 01 07:15:37 JakeWharton: is there a recommended max value for this? Dec 01 07:15:48 i have no idea Dec 01 07:15:50 JakeWharton, nice work on the websockets addition to okhttp Dec 01 07:15:53 :D Dec 01 07:15:55 I don't want to wait for days at a time just because someone is a coal miner Dec 01 07:16:04 pick something reasonable Dec 01 07:16:37 is 5 minutes reasonable? Dec 01 07:16:44 that's what my boss wants me to do Dec 01 07:16:56 1 sec to 5 min Dec 01 07:17:03 thepoosh, working in south africa? Dec 01 07:17:10 kevel1: Israel Dec 01 07:17:15 is this for GCM registration? Dec 01 07:17:19 yeah Dec 01 07:17:24 try more like 6 hours Dec 01 07:17:26 just for requesting the REG_ID Dec 01 07:17:29 hmmm Dec 01 07:17:30 i'd do 30s and 1hr Dec 01 07:17:35 or that Dec 01 07:17:42 thepoosh, remember how people actually use phones Dec 01 07:17:44 what about the 2 week session expiration time? Dec 01 07:17:49 setting timeout to 5 minutes is useless Dec 01 07:17:55 Mavrik: people use phones only to use my app! Dec 01 07:17:58 common! Dec 01 07:18:02 when you can't reach the network because the person is in the underground commuting right? Dec 01 07:18:03 thepoosh, by law a coal miner can't be under for more than like 8 hours? Dec 01 07:18:04 :) Dec 01 07:18:18 depending on the country Dec 01 07:18:22 what about china? Dec 01 07:18:39 N. Korea Dec 01 07:18:47 I don't think we have clients there Dec 01 07:18:47 In china people magically run from out-of-internet areas to network connection areas every 5 minutes? Dec 01 07:18:50 but who knows Dec 01 07:18:55 You've been to different china then :P Dec 01 07:19:01 lol Dec 01 07:19:47 anywho, there is no expiration date of 2 weeks anymore? Dec 01 07:26:33 Are there any known issues with make 4.1 and building Android? Dec 01 07:26:43 hi guys, is there a tutorial to put random image on specific box of a screen? Dec 01 07:26:57 Cervantes: How do you define "A specific box"? Dec 01 07:27:28 Auv: A container layout perhaps? Dec 01 07:28:08 Cervantes: You probably want an ImageView inside a layout of some kind Dec 01 07:28:34 Auv: ok Dec 01 07:28:44 So 'ImageView' would be your google search term Dec 01 07:39:03 Auv: is it possible to load all pictures in a folder using adapter? Dec 01 07:40:42 nope Dec 01 07:40:51 impossible! Dec 01 07:51:19 Why don't companies just post what the hell they do on their front page? Dec 01 07:52:01 Ologn ? Dec 01 07:52:37 Like chartboost.com ... but a lot of these startups... Dec 01 07:54:23 Ologn maybe they don't even know what they are doing, having just pivoted on their pivot Dec 01 07:55:12 I was just reading some article on Hacker News with some guy whining he couldn't get appointments with top VCs...pathetic Dec 01 07:56:15 i missed that Dec 01 07:56:30 With the app stores, cloud, Github etc., people need investor money less and less with each passing day. Dec 01 07:57:16 I just started playing with scikit-learn...the things it can do are amazing...and really compactly Dec 01 07:57:33 i haven't played with that yet Dec 01 07:58:07 hi, i remember there is a way to terminate android emulator started inside android studio from a button. which one is it? Dec 01 08:00:59 Cervantes: The circle with the line through it on the front of the computer Dec 01 08:03:54 im trying to write an android app that can sense when another phone with the app running is nearby Dec 01 08:04:03 is it possible? if so what api:s do i need to look into? Dec 01 08:05:28 define nearby Dec 01 08:05:31 Sonderblade: apps doing this will track the position of the user (GPS), send the position to the server an push notifications when 2 users are in range Dec 01 08:06:24 10 meters Dec 01 08:06:27 anyone has a idea how apps like https://play.google.com/store/apps/details?id=com.app.free.studio.firefly.locker&hl=en manage to disable hardware buttons as well as soft buttons? Dec 01 08:07:20 thana: is gps that accurate? Dec 01 08:08:50 Sonderblade: it can be at least Dec 01 08:09:14 OTOH its your only chance ;-) Dec 01 08:09:26 you can also use bt and wifidirect Dec 01 08:09:48 only if you know there is someone using the app Dec 01 08:11:14 wouldn't you guys consider preference fragments, and preference headers to be "layout"? Dec 01 08:16:40 you could use GPS + GCM to send coarse grain 'there is somebody within x-meters' so the app doesn't waste resources ... but within 30m you might want to use BT peripheral mode in android 5 Dec 01 08:23:02 g00s: thats a good strategy Dec 01 08:25:11 any of you guys ever order something from androidarea ? do they send out shipping notice ? i placed an order and its been pretty quiet. Dec 01 08:27:13 ouch, 2-4 weeks delivery lol Dec 01 08:29:51 pfn: I just got an idea, since robolectric is android.jar anyway Dec 01 08:30:03 you can launch it in scala repl Dec 01 08:30:10 and ask android objects Dec 01 08:34:28 Hi all. Dec 01 08:35:09 I'm using this solution to determine if the device is a phone or tablet. http://stackoverflow.com/a/9308284/1723525 But is it possible to determine this without putting / chaning files in resouces? Dec 01 08:39:34 FrancescoV: you can always check hasSystemFeature(android.hardware.telephony ) Dec 01 08:39:50 it won't catch all of them but it might be good enough Dec 01 08:39:59 thanks for the tip! Dec 01 08:40:03 np Dec 01 08:40:12 FrancescoV: https://developer.android.com/training/tv/start/hardware.html#handle-features Dec 01 08:42:25 so if I don't want clickable buttons to launch individual fragments, I shouldn't add "headers"? to a preferenceactivity? Dec 01 08:43:58 I'm looking thru this example shared on the PreferenceActivity activity reference for android devs. and it's kinda leading the reader down that path of headers, footers, sub fragments, etc. Dec 01 08:46:50 Mavrik how are your Rx adventures going :) Dec 01 08:47:37 wtf google, when i search rxjava it pulls up bs about prescriptions and walgreens. its 2014, search really sucks Dec 01 08:51:46 g00s: is it searching or is it rxjava's SEO? Dec 01 08:52:48 geez, I'm starting to hate doing anything on android for the first time. takes a while to figure crap out. Dec 01 08:52:57 wth with the preference headers, lol. Dec 01 08:53:15 I guess I can't just skim the reference pages, I have to actually read and pay attention. Dec 01 08:57:07 B0BBY: Chewing on old window sills helps Dec 01 08:57:27 The paint is pretty sweet and it makes you think more Dec 01 08:58:35 thepoosh i guess rx is a prescription for pain relief :) Dec 01 08:58:45 what do i need to configure to get the com.google.android.gms.common package? Dec 01 08:59:20 Sonderblade also play services 6.5 is coming out soon, seems like they made a bunch of changes. may want to hold off a few days Dec 01 08:59:40 Darklust: I see, if yuou want just a plain settings windows, you have to use the old fashioned PreferenceActivity without headers. And if you want to be up and hip you have to use headers + fragments method. Dec 01 08:59:41 core apis will be the same, just different packaging, etc Dec 01 09:00:10 kinda really suck that it would force the users to first click on settings button to launch PreferenceActivity and then on a second button to launch the actual fragment via the header. Dec 01 09:00:14 B0BBY i don't see Headers too often. Just use PreferenceFragment Dec 01 09:00:40 g00s: I'm using preferencefragment with the actual prefs. But trying to figure out how to load it automatically in PreferenceActivity. Dec 01 09:00:57 nah, forget about preferenceActivity Dec 01 09:00:58 g00s: are you saying bypass the PreferenceActivity and load the fragment directly into a regular activity? Dec 01 09:01:18 yeah, I have a SettingsActivity which does nothing except show that fragmant Dec 01 09:01:56 g00s: no, i dont want the latest and greatest just something that works :) Dec 01 09:02:04 ok, I'll then just focus on figuring out how to jam a fragment in an Activity. :) thanks. Dec 01 09:02:16 looks like one of the devices with my app installed syncs constantly, like every second (the app has a SyncAdapter). has been going on for an hour Dec 01 09:04:27 g00s: you're SettingsActivity extends from FragmentActivity then? I like that idea much more. Dec 01 09:05:04 *your (doh!) Dec 01 09:05:06 yes. it has no xml layout. only a few lines : if onCreate bundle is null, add it to android.R.id.content Dec 01 09:05:33 g00s: thanks for the help, I appreciate it. this is so much easier. I was not liking having to make the user tap twice. Dec 01 09:05:45 ;) Dec 01 09:07:35 B0BBY https://github.com/google/iosched/blob/master/android/src/main/java/com/google/samples/apps/iosched/ui/SettingsActivity.java#L53 Dec 01 09:07:47 all you need is 53-56 Dec 01 09:08:03 although if not using appcompat, do android.R.id.content i think Dec 01 09:08:43 g00s: heh, you're trying to make even my googling obsolete, :). Dec 01 09:10:17 I dont get that API Dec 01 09:10:36 gordon_ which one ? Dec 01 09:10:40 g00s: heh, I see you like a lot of shmancy stuff there. Dec 01 09:10:41 how can I get string from Activity#onKeyDown Dec 01 09:10:57 B0BBY thats iosched, i didn't write that Dec 01 09:10:59 I can convert it to KEYCODE_F Dec 01 09:11:11 but it doesnt make sense for me Dec 01 09:11:14 I just want to get F Dec 01 09:12:16 g00s: oh, I thought it was your projects. :) Dec 01 09:12:45 thats google project :) Dec 01 09:13:16 gotta love google. they keep changing the UI every two months. Dec 01 09:13:29 everytime I use a newer phone, all the stuff is all re-organized. Dec 01 09:13:58 same with desktop stuff like web-basded google maps, etc. you barely familiarize yourself the app and next time it's changed. :) Dec 01 09:13:59 gotta love suckers that always have to have the newest phone Dec 01 09:14:15 ez money, ez life Dec 01 09:14:17 heh, mine's still the old note II. seems to work just fine. Dec 01 09:14:51 not being on one of them "free upgrade" (that you really pay for) plans, I gotta shell out 500-700 to buy a new one. so.... keeping the note2. Dec 01 09:15:33 yeah, if your phone bill is over $50, you're doing it wrong. Dec 01 09:15:57 * pragma- admires his $29.99 unlimited plan. Dec 01 09:16:12 who's the provider? Dec 01 09:16:16 pragma- what carrier ? Dec 01 09:16:18 T-Mobile Dec 01 09:16:23 :? Dec 01 09:16:28 mine's that tmobile plan with 49.99 and it's capped after 2G. Dec 01 09:16:34 how did you get 29.99 unlimited? Dec 01 09:16:48 dad's a manager ;D Dec 01 09:17:00 i'm paying $40 unlimited but month to month, off contract Dec 01 09:17:02 I asked for it, like 8 or 10 years ago. Dec 01 09:17:03 oh, you have a mananger discount. Dec 01 09:17:10 lol Dec 01 09:17:17 that was a joke... Dec 01 09:17:21 my cousin was a regional director. $99.00 for 5 lines. all unlimited. Dec 01 09:17:35 but she quit. Dec 01 09:18:10 dont know how good tmobile is in poland Dec 01 09:18:13 ugh Dec 01 09:18:14 usa Dec 01 09:18:19 in poland they are horrible Dec 01 09:18:35 at least in my opinion Dec 01 09:20:04 an old buddy of mine got a job at VZ as a customer care rep, omg i have to ask him how thats going XD XD Dec 01 09:21:51 what's with R.xml.xxx ugh. Dec 01 09:22:14 I'm starting to think me dumping everything in R.layout is gonna start looking super disorganized soon. Dec 01 09:28:16 g00s: I had to create a simple .xml file for SettingsActivity to host a FrameLayout into which to load the PreferenceFragment. otherwise, breeze. just worked great. now to actually hook up real keys into the pref screen and see what it stores. Dec 01 09:29:54 anybody succeed in compiling tinybus ? Dec 01 09:30:05 or adding it to its project Dec 01 09:30:52 Why if activity of my app crashes, whole app does not ? Only that activity ? Dec 01 09:46:51 following this page: https://developer.android.com/training/location/retrieve-current.html Dec 01 09:47:09 it tells you to use the LocationClient class, click on that class: "This class is deprecated." Dec 01 09:59:38 Hi Dec 01 10:00:01 I've tried to compile java code which uses android libraries Dec 01 10:01:26 Why if activity of my app crashes, whole app does not ? Only that activity ? Dec 01 10:01:31 but when I compile the code, I get these messages: error: class, interface, or enum expected Dec 01 10:01:44 in the lines after import Dec 01 10:02:01 I've tried to googling about this, but I've not found nothing useful Dec 01 10:02:32 bluesm: unless you catch it, the whole process is stopped Dec 01 10:03:45 the code: http://pastebin.com/cqeyXX7N Dec 01 10:03:48 Any ideas? Dec 01 10:04:32 Good Morning Dec 01 10:08:28 lasserix: But does the activity runs on standalone process. Dec 01 10:08:55 oh if you are using remote process then only if it causes the other process to crash as it crashes out Dec 01 10:09:17 cristian_c: you can not declare global variables in java, you can only make them static class members, not outside of a class, put the 3 lines (6-8) and the function (25-35) inside the class, there is nothing outside a class/interface/enum in java Dec 01 10:09:26 tho why you are running an activity ina remote proc ess is beyond me Dec 01 10:09:53 lasserix: I'm just starting new activity with intent... nothing more Dec 01 10:11:02 yeah then if it crashes so will your application process Dec 01 10:11:05 Is there any easy way to bind data that might change to a view, or does that always require a large amount of code and work? Dec 01 10:12:37 raok, thanks Dec 01 10:12:37 you can set it as its tag Dec 01 10:12:44 rayo, ok, thanks Dec 01 10:12:56 lasserix: But when my activity crashes it just return to the parent activity... Dec 01 10:13:47 different applications Dec 01 10:15:14 sorry dont understand your question Dec 01 10:15:15 good luck! Dec 01 10:16:11 Why if activity of my app crashes, whole app does not ? Only that activity ? Dec 01 10:16:38 depends on type/cause Dec 01 10:16:55 either way you should sort it ;) Dec 01 10:26:48 rayo, ok, that error message is disappeared Dec 01 10:26:55 thanks Dec 01 10:29:00 hello. might anyone know of an Android-compatible text processing library? Dec 01 10:29:36 i’m thinking of writing an app to filter out spam SMS, but i don’t want to just rely on filtering by sender ID Dec 01 10:30:18 scruz my app does that too Dec 01 10:30:41 based on sender, content, basic things like starts with ends with contains Dec 01 10:30:53 also does regex if you really want :) Dec 01 10:31:08 StingRay_: is your app in the Store? Dec 01 10:31:17 ya Dec 01 10:31:23 but i don’t want to do a regex-based app Dec 01 10:31:48 and if i don’t at least attempt to, i may never actually write an app for real Dec 01 10:32:16 scruz, how else would you process text instead of regex? Dec 01 10:32:31 tokenizing or something could be far too tedious to pick up spam Dec 01 10:32:36 :| Dec 01 10:32:41 kevel1: probably Dec 01 10:33:42 also dont forget scruz, you have to be a full sms/mms app Dec 01 10:33:50 yeah Dec 01 10:33:54 as is the usage with kitkat and above Dec 01 10:34:04 mms is not nice Dec 01 10:34:27 Since updating Gradle build tools, I keep getting GC Overhead limit exceeded errors when doing support Multidex builds, any ideas? Dec 01 10:37:53 Hi everyone Dec 01 10:38:27 I have a quick question: just started working on a new android app and I see the activity bar has a blurred effect at the bottom Dec 01 10:38:35 looks like a shadow or something Dec 01 10:38:38 Yes Dec 01 10:38:39 is this new? Dec 01 10:38:46 and how do I get rid of it Dec 01 10:38:47 :) Dec 01 10:38:50 No, I don't think so, it's been there a while Dec 01 10:39:10 ok Dec 01 10:39:15 StingRay_: link? Dec 01 10:39:17 any idea what it's called? Dec 01 10:39:21 In your theme, set android:windowContentOverlay @null Dec 01 10:40:41 I am showing a dialogfragment from withing another fragment. This generally works fine. But when the fragment that created the dialogfragment is replaced and shown again later, creating the dialogfragment causes an exception: "dialog beginTransaction() on a null object reference" Dec 01 10:41:05 It's best not to do that for Theme.Material apps though, z-order is good for that Dec 01 10:42:48 @Estel I am using the material design theme Dec 01 10:43:16 I don't understand where this is coming from, I haven't really seen it in the material design images Dec 01 10:43:21 Then shadows are awesome, and you should embrace or hug them! :D Dec 01 10:43:59 Hello everyone !!!! :-)))) Dec 01 10:44:25 Not when they show up uninvited Dec 01 10:45:07 i think google should do nothing and people should design their own app themselves :) start with a clean slate Dec 01 10:45:13 always best :) Dec 01 10:45:26 just like android 1.x! Dec 01 10:45:33 hell yes Dec 01 10:45:55 this isn't about that, this thing looks like crap Dec 01 10:46:05 it's worst than android 1.x Dec 01 10:46:16 the updated app world is like looking around at people driving cars and they are all the same Dec 01 10:46:25 horrid really Dec 01 10:46:47 more like they all have 4 wheels and they're now in sensical locations Dec 01 10:47:02 I am trying to understand a way to develop a remote database management from my android app... I know it exists java.sql.Connection and java.sql.DriverManager and stuffs... but I was thinking to create something like a separate class where in activity I can call asyncronously the database passing a SQL query, then opening automatically connection, retrieving results back and closing the connection to free resources...which would b Dec 01 10:47:04 same pain job and style, same body work etc Dec 01 10:47:09 no more having a seventh wheel sticking out the back! Dec 01 10:47:11 so just all a bit boring :) Dec 01 10:47:20 paint* Dec 01 10:47:27 like I did previously with PHP here http://pastebin.com/Js9wNaFw... Dec 01 10:48:01 Hi. I'm having problem with Retrofit when I tried to download a file (with @Streaming annotation) with 7MB and up file size, I got OutOfMemory :(, Any idea? Dec 01 10:51:46 Here, is this what material design is supposed to look like ? Dec 01 10:51:47 http://imgur.com/lyNJ2gz Dec 01 10:52:25 no, thats a top view with no background but...still having a shadow Dec 01 10:55:15 StingRay_, I'm not seeing that anywhere else Dec 01 10:55:20 any of the google apps have that ? Dec 01 10:55:36 you do not have a background set on the actionbar Dec 01 10:55:43 or, you have set it to transparent Dec 01 10:55:48 or null, or whatever Dec 01 10:58:21 pfn: are you here ? Dec 01 10:58:37 StingRay_, nope, I've set the color and the shadow is still there.. I found something about elevation, I have a feeling that's it Dec 01 10:59:01 like I said, that is the shadow Dec 01 10:59:27 but material design is strong pastel colors and dropshadows Dec 01 10:59:40 so you are missing the....erm.... color :) Dec 01 11:02:59 StingRay_, I agree but I just created a new project from Android Studio so I was expecting the default to look a bit better than that screenshot Dec 01 11:03:12 and I couldn't really tell what was happening there Dec 01 11:03:32 I was searching online but I wasn't sure what to look for Dec 01 12:31:56 hi Dec 01 12:32:15 apps like https://play.google.com/store/apps/details?id=com.app.free.studio.firefly.locker&hl=en manage to disable hard- as well as softbuttons. any idea how tthey do it? Dec 01 12:32:38 all i find on the internet says "thats not possible". but this app does ist... Dec 01 12:38:30 after strugling with android L's elevation property i think i have a fix... you will not get elevation on any view that does not have a background. ie. a textview w/ no background or an imageview without a background... my idea is to make a background the same color and the background behind it and add an elevation. this works but obviously it is only adding elevation to the background..not Dec 01 12:38:30 the imageview.. argh how can i add elevation to the imageview itself? Dec 01 12:39:06 maybe make the background (in this case a circle) a w of 1dp and h of 1dp? Dec 01 12:39:37 it still fills the background of the imageview however Dec 01 12:47:33 also in Android Studio how can I get ruler markers on the layout preview? Dec 01 12:51:34 hi guys, i have managed to set the background and the text color of my action bar but im struggling with one thing and that is setting the icon < to white color. anyone can point me in the right direction? Dec 01 12:53:09 MartialLaw, a ViewOutlineProvider tells it where to put the drop shadow from elevation. By default this is the background. There's a built in provider for view bounds, or you can create your own Dec 01 12:53:53 https://developer.android.com/training/material/shadows-clipping.html Dec 01 12:55:09 Does someone have a solution for scaling an xml drawable whilst maintaining the aspect ratio? Dec 01 12:55:40 If I can't find one, I can feel the heat of marketing people insisting on arbitrary delays to show a splash screen Dec 01 13:20:14 Estel, Picasso might be able to do that Dec 01 13:23:04 Is there any special I need to keep into account when I have embedded a DialogFragment into another fragment?! Dec 01 13:24:11 When my fragment is beeing shown the second time, creating the embedded DialogFragment fails with curious null-pointer exception Dec 01 13:28:18 makani: use getChildFragmentManager instead of getFragmentManager is what you have to care about Dec 01 13:28:23 for everything else, show code Dec 01 13:29:24 I added in onResume to keep the selection of my spinner, and it works if I hit the home , or back, or preferences screen and come back, but when I hit the power button to turn the screen off and on again, the selector is showing the default selection, as if onResume didn't get called Dec 01 13:29:53 shmooz: onResume is the wrong place Dec 01 13:30:04 danijoo: where do I do that then ? Dec 01 13:30:42 put your stuff in onSaveInstanceState and get it back at onCreate Dec 01 13:30:54 hmm, I tried that too actually Dec 01 13:32:10 same result, it's a custom spinner with icons and text, and I just realized even though it's showing the wrong icon, it's actually already selected when I pop up the menu to select, hmmmm Dec 01 13:32:28 ok maybe this is a icon display issue Dec 01 13:32:32 then its something in your custom spinner :) Dec 01 13:34:23 it's a really cool spinner, if I can get it fully working, it displays only the icon in the selector, and shows text only in the dropdown beside each icon Dec 01 13:38:38 you should fix it then :p Dec 01 13:38:56 I'll probably bang my head for a week Dec 01 13:39:10 thats an alternative too, yeah. Dec 01 13:39:14 by hook or by crook! Dec 01 13:41:11 kevel1: it's a windowBackground, so it has to be an XML only solution Dec 01 13:58:41 Hello, why textview changes color if I set "clickable=true" to parent ? Dec 01 14:11:55 usr__: why you want to use “clickable” option in your textview? Dec 01 14:14:34 I am trying to understand a way to develop a singleton remote database management with query engine from my android app which calls php engine on a webserver through httprequests and which it will be used from different activities such login, and data retrieval activities?... like here I did in PHP: http://pastebin.com/Js9wNaFw ... any direction would be appreciate thanks! Dec 01 14:15:10 kamol, I want to remove clickable from all views that are under my tectview, but I dont want text to change color when it catches click event Dec 01 14:17:33 usr__: did you try to use dispatchTouchEvent ? Dec 01 14:20:04 kamol, I know how to do it in code, but was looking for some simple xml attr for this. Now I implemented color with all states, so it keeps original color Dec 01 14:32:33 Hi if anyone is available to help me figure out why ListView code is crashing my app, Thanks. Dec 01 14:36:50 post the stacktrace and or code Dec 01 14:39:07 http://pastebin.com/NhqM26Te Dec 01 14:39:57 ktwo the commented section is the issue. Dec 01 14:40:43 why last case of your switch doesn’t have break; ? Dec 01 14:41:15 Really? let me see Dec 01 14:42:26 DrDroid: What's the stack trace? Dec 01 14:42:56 Well spotted but thats not the part thats causing the crash it's the commented out section Dec 01 14:43:00 i created a listview, everything works right except the display order i don’t know if it is normal. Dec 01 14:43:28 For example, first I add “first” to the listview, then I add “second”, in the end I add “third”. The listview displays that in this order: third, second,first which is inverse as I expect. Dec 01 14:43:38 rivenet: That's not normal. Dec 01 14:44:25 @TacticalJoke: yes,I think so. Dec 01 14:44:52 Hello guys! Dec 01 14:44:53 DrDroid: So what's causing the crash? And what's the stack trace? Make it easy for people to help you. :) Dec 01 14:45:39 is it possible to fix the height of an ImageView and scale the width so that the aspect ratio is kept? I'm trying to do this programatically without luck Dec 01 14:45:42 anyone messed with Jack yet? or Gradle 2? Dec 01 14:46:02 that pastebin is very hard to read as it is commented Dec 01 14:46:07 and also post stacktracke Dec 01 14:46:35 Give me a minute I'm compiling again then I'll include the stack trace. Dec 01 14:48:13 mattblang: Jack? Dec 01 14:48:54 kamol http://www.androidpolice.com/2014/11/30/jack-and-jill-are-googles-new-compilers-for-android-app-developers/ Dec 01 14:49:19 ... Dec 01 14:50:20 @TacticalJoke: it is a listview demo i found on the net i cant figure out the problem in it. here is some code, can you give me any suggestion? Dec 01 14:50:28 http://pastebin.com/XybpkvHJ Dec 01 14:51:20 ugh, I wish webview had support for a fast scroller Dec 01 14:51:54 mattblang: thank you for sharing Dec 01 14:52:13 https://gist.github.com/mparodi/abe92ec567ba442e456c Dec 01 14:52:14 heavy magic missile Dec 01 14:52:19 kamol yw! going to try it out. first I need to update my AS and gradle though Dec 01 14:53:05 look at this please. why is the ImageView not being scaled? on my tablet the image has 300dip of height and 1 of width Dec 01 14:55:01 rivenet: That code is a confused mess. Dec 01 14:55:33 I have a .sh file in the root of my project. How can I make sure that it doesn't get shipped with my app? Dec 01 14:55:51 rivenet: Whatever you do, don't copyt that code. Dec 01 14:55:56 That is the code of someone who doesn't know what they're doing. Dec 01 14:56:17 rivenet: What is it that you're trying to achieve, exactly? Dec 01 14:56:56 gordon_, hmm, so just running it from the bootclassloader works huh Dec 01 14:57:02 You can easily add items to a ListView using something like an ArrayAdapter (or a BaseAdapter subclass) without them appearing in the wrong positions. Dec 01 14:58:15 @TacticalJoke:yes, i think i find the problem, its not in the code i pasted, its the insert command it use Dec 01 14:58:53 rivenet: The person who wrote that code gets it all wrong. The code pretends to reuse recycled views for efficiency but doesn't. It pretends to use the ViewHolder pattern but doesn't. Dec 01 14:59:24 pfn: I got problem on linux with your sbt plugin Dec 01 14:59:30 cannot import it in intellij Dec 01 14:59:50 so many horrible android tutorials on the internet. Dec 01 15:00:04 gordon_, huhwhat Dec 01 15:00:06 squirrel: It's all about the ad views, I suspect. Dec 01 15:00:43 that demo use “adapter.insert(new AtomPayment(title, 0), 0);” to add new item, the second param is the index of item, every index is 0, that doest make sense. i changed it to adapter.add(new AtomPayment(title, 0)) then the order became right Dec 01 15:01:01 perhaps. tutorial content farms. horrible D: Dec 01 15:01:05 rivenet: Yeah, but abandon that Adapter code. It's bad. Dec 01 15:01:15 pfn: java.lang.RuntimeException: set ANDROID_HOME or run 'android update project -p Dec 01 15:01:16 I am using dispatchTouchEvent return false for FrameLayout. I need it to be able to swipe it. However, I lost onClick event. However, can keep onClick and swipe the same time? Dec 01 15:01:33 which is strange since I got it set Dec 01 15:01:36 TacticalJoke:i will, thank you Dec 01 15:01:50 gordon_, yeah, set it Dec 01 15:01:53 rivenet: It's probably best to simply subclass BaseAdapter and keep things simple. Dec 01 15:02:14 you need to set it in a way that it will be available to whatever you're running Dec 01 15:03:11 hi, parent="@*android:style/randomstyle", what does the * mean to the xml compiler ? Dec 01 15:03:15 gordon_, eg how do you launch intellij, the env needs to be set where the launcher can read it Dec 01 15:03:21 pfn: seems like intellij problem Dec 01 15:04:01 is it just a typo ? Dec 01 15:04:03 i will check about it, the listview is a little bit complex indeed Dec 01 15:04:17 pfn: I got it set in .zshrc Dec 01 15:04:21 I'm trying to build with a new library that is included via gradle from a maven/sonatype repository but it keeps telling me that the library can not be found. Dec 01 15:04:28 im trying to learn the compiler, but I cant find anything about the "*" keyword related to it Dec 01 15:05:16 the readme of the library tells me that i should add maven { url "https://oss.sonatype.org/content/repositories/snapshots/" } to repositories, and compile 'jp.co.cyberagent.android.gpuimage:gpuimage-library:1.2.1-SNAPSHOT' to dependencies, that's exactly what I did Dec 01 15:05:37 gordon_, sure, but if you're launching intellij from your window manager, that doesn't read your zshrc Dec 01 15:05:46 https://oss.sonatype.org/content/repositories/snapshots/jp/co/cyberagent/android/gpuimage/gpuimage-library/1.2.1-SNAPSHOT/ the library seems to be present at the repository as well Dec 01 15:05:58 pfn: that might be it ! Dec 01 15:06:03 kamol sorry for taking so long here is the stack trace and code http://pastebin.com/NhqM26Te Dec 01 15:06:07 QUWEQWUHEQ: I've never seen that before. Does it compile? Dec 01 15:06:13 yes it does Dec 01 15:06:23 so if its a typo, the compiler should give an error and exit right? Dec 01 15:06:45 still I have seen 3-4 references that use parent="@*android:...." Dec 01 15:07:00 DrDroid: what the line MainActivity.java:53 ? Dec 01 15:07:00 gordon_, set it in xinit or. whatever is the modern equivalent Dec 01 15:08:16 hey guys, how do I remove setShader after I've set it once already? Dec 01 15:09:06 QUWEQWUHEQ: When I try it, I get "Illegal resource reference: @*android resources are private and not always present". Dec 01 15:09:14 everything I draw after I've drawn the first element with the shader seems to have the shader applied as well Dec 01 15:09:16 I have a .sh file in the root of my project. How can I make sure that it doesn't get shipped with my app? Dec 01 15:09:22 https://www.google.com/search?q=Illegal+resource+reference%3A+%40*android+resources+are+private+and+not+always+present Dec 01 15:09:27 ok got it working Dec 01 15:09:32 thanks ! Dec 01 15:09:37 now robolectric :D Dec 01 15:10:40 Also see this: http://stackoverflow.com/questions/15650376/what-is-the-meaning-of-the-asterisk-when-referring-to-android-xml-resources Dec 01 15:10:57 anyone? :) Dec 01 15:11:07 TacticalJoke: Dec 01 15:11:16 my compiler doesnt give any error :/ Dec 01 15:11:20 Hang on a second let me see. Dec 01 15:12:27 but I think i understand it now, thanks Dec 01 15:12:32 QUWEQWUHEQ: It's a Lint error. Dec 01 15:12:32 luckily you got that error Dec 01 15:12:46 QUWEQWUHEQ: Eclipse with ADT warns me by default, but I can disable the warning. Dec 01 15:12:51 ah ok Dec 01 15:12:52 Well, it gives me a "fatal" error by default. Dec 01 15:13:19 well, it specifys to the compiler that the resource is private, or something Dec 01 15:13:32 something screwd up i shouldnt use time on ;D Dec 01 15:13:36 quweqwuheq, said you are trying to learn compiler, by learning are you using apktool to decompile system apps? Dec 01 15:13:45 kamol it's 'list.setAdapter(adapter);' Dec 01 15:14:03 looks like your adapter is null Dec 01 15:15:07 thanks for the link TacticalJoke ! Dec 01 15:15:23 allthough I understood it before i checked it out :P Dec 01 15:15:26 cuz of your error Dec 01 15:15:31 :) Dec 01 15:15:52 Interesting kamol thanks I'll take a look. Dec 01 15:17:12 I draw a circle on my layout and it keeps putting a black border around the entire layout... this is the code for the circle http://pastebin.com/fGh7jb8m Dec 01 15:18:23 whatitis-: i understand how the compiler is written, allthough im learning attributes and stuff that the compiler parses Dec 01 15:18:26 :p Dec 01 15:18:49 kindof new at android Dec 01 15:21:39 MartialLaw: Is it that drawPaint line? Dec 01 15:22:08 TacticalJoke: what do you mean? Dec 01 15:22:19 ah yes Dec 01 15:22:20 your right Dec 01 15:22:30 thnx Dec 01 15:23:44 how is Opengl development on android, anyone tryed Dec 01 15:24:00 i cant imagine the GPU managing saving 10k vertex buffers Dec 01 15:24:28 making World of warcraft etc, would probably flood the gpu wouldnt it Dec 01 15:24:33 ddos :D Dec 01 15:24:38 depends on the device Dec 01 15:25:02 im working on a device, 2.3.4 or something Dec 01 15:25:04 the shield tab has a 192 core nvidia gpu in there; it runs portal and halflife 2 just fine (their show-off games for the system) Dec 01 15:25:04 super old Dec 01 15:25:34 cool Dec 01 15:25:37 that kind of gpu certainly isn't the norm, however Dec 01 15:26:08 google need to add ports to their phone zz Dec 01 15:26:23 having a keyboard connected to it would be a blast Dec 01 15:28:02 you can connect a bluetooth keyboard to most modern devices w/ no problem. Anything android 4 and newer can also USUALLY do USB OTG host mode and with the right cable you can plug in any usb kb. Some tablets have full sized usb host ports on them. Dec 01 15:28:57 i forgot the bluetooth protocol :P Dec 01 15:29:31 hey guys, anybody experiencing this error when trying inapp purchases on your android device ? "RPC S-7 , AEC-0" Dec 01 15:30:24 dragorn: have you tryed rooting into your phone and compiling binarys with GNU C? Dec 01 15:31:27 sucks to not have a packet manager :p Dec 01 15:43:57 Hi everyone - is it possible for a google maps v3 infowindow to be able to do different actions depending on where you tap inside the infowindow? Or is an infowindow just treated as one tappable area - unable to distiguish where you tapped inside of it? Dec 01 15:44:17 How would i define a private resource? Dec 01 15:44:27 lets say a style Dec 01 15:45:19 why would you define it as private Dec 01 15:45:25 its science bro Dec 01 15:45:32 im learning Dec 01 15:45:37 and there is no such thing for apps Dec 01 15:45:41 @hide is private in aosp Dec 01 15:45:53 pfn: I will contact you later Dec 01 15:46:20 ok Dec 01 15:46:20 the * keyword references private resources, so you are saying you still cant define them? Dec 01 15:46:32 already said so Dec 01 15:48:44 the android dev team doesnt want this public huh Dec 01 15:49:05 not that they don't want it public, but a public api is permanent Dec 01 15:49:14 and until it's completely decided, it remains hidden Dec 01 15:50:01 lols Dec 01 15:53:29 hi Dec 01 15:53:36 Hello. Dec 01 15:53:45 Hello guys Dec 01 15:53:54 hi, can i ask Xamarin Forms questions here? Dec 01 15:59:08 zap0: #yolo Dec 01 15:59:48 hi Dec 01 16:00:27 zap0: If it seems Android-related enough I'd do ask, personally. Dec 01 16:00:36 just* Dec 01 16:02:16 i have a navigation.pushAsync( new page() ); and it displays, but i haven't a clue how to have this page dismiss after 2 seconds, i tried setting up a timer, and doing Navigation.PopAsync() but that just crashes the app. Dec 01 16:02:40 i can't find any relavent docs, or examples that show how you use popasync Dec 01 16:03:53 hello Dec 01 16:04:08 is it possible to send a boolean in a google cloud message? Dec 01 16:04:28 if not, send an integer 1 and 0. It's what it'll get sent as anyhow. Dec 01 16:04:33 I tried "foo": true, "foo": 1, extras.getBoolean("foo") is false Dec 01 16:05:31 use an int and just do foo ? 1 : 0 Dec 01 16:06:00 and extras.getInt("...") == 1 ? true : false of course Dec 01 16:09:39 integers don't work either Dec 01 16:12:23 looks like everything is converted to strings Dec 01 16:12:39 convert it back to int? Dec 01 16:12:49 sure Dec 01 16:12:50 or do a string comparison? Dec 01 16:13:00 :P Dec 01 16:13:41 I thought that since they're using json they would support numbers and booleans too Dec 01 16:15:28 yes it sounds stupid to not support all the types Dec 01 16:15:42 what's the best way to make a class available to both test and debug environments, but only those two? Dec 01 16:16:03 allthough its json at the endpoint that actually takes the data and makes the string type out of it Dec 01 16:16:55 maybe you can find the source code and recompile it with your proper types, shouldnt take long Dec 01 16:22:42 hi guys, i have a child activity that i am presenting where the user can edit the profile. Coming from an IOS background, I am used to the idea of adding a bar button item on the right side of the navigation bar(action bar) save the changes. However, what is the best practice on android Dec 01 16:25:05 pangelovski: sounds ok, programming is style, there is never a right way :O Dec 01 16:25:24 a check mark in the action bar (left side)? google contextual action bar Dec 01 16:25:48 that's how the contacts app does it Dec 01 16:31:21 Thorn, this causes an issue. Imagine the following scenario, i go to my child activity and here i have the option of either editing or not. If i put a save icon on the left side, that means i need to click on it to return to main activity, thus saving unedited data. how have other apps solved this issue Dec 01 16:34:14 Not sure what "If i put a save icon on the left side, that means i need to click on it to return to main activity, thus saving unedited data" means Dec 01 16:39:43 pangelovski: android has a back button on the bottom Dec 01 16:39:51 that's how you do not save Dec 01 16:50:35 I want to override a drawable for v21 to use a ripple but want the default drawable to be the system default. Is that possible? Dec 01 16:54:11 yes gauthierm Dec 01 16:55:01 I tried using the version-specific directory override but then I need to provide a default drawable. Not sure how to make the default use the system default. Dec 01 16:55:15 Does new activity is run on new thread? I'm pretty surprised that when I do crash the only thing that's get dissmissed is the one activity (not whole app) https://www.youtube.com/watch?v=Jo4oBMAsSew Dec 01 16:55:16 well you don't exactly use a 'system default' Dec 01 16:55:57 gauthierm just impelemnt a statelistdrawable that mimics the behavior you want for <21 Dec 01 16:56:36 bluesm crashes are per-process, not per-thread Dec 01 16:56:55 what you are seeing is android reopening the app Dec 01 16:57:02 Also Android sometimes seems to restore task when there's a crash Dec 01 16:57:15 the behaviour differs depending on version of OS Dec 01 16:57:16 JacobTabak: okay. That mostly works except I need to copy 6 drawable files and the highlight colors will no longer match the various manufacturer skins. :/ Dec 01 16:57:39 gauthierm don't you use a custom theme? Dec 01 16:58:11 my general approach is to not my your app look different on different device mfgers Dec 01 16:58:46 for something as ubiquitous as a selectableItemBackground I would always override it Dec 01 16:58:55 gauthierm, usually you have the ?android:attr and ?attr properties to get platform defaults Dec 01 16:59:16 Mavrik maybe you have a better idea Dec 01 16:59:21 he's trying to use a ripple in v21 Dec 01 16:59:27 JacobTabak: that sounds like good advice. I'm fairly new at this. Mavrik, I think that doesn't work for drawables. Dec 01 16:59:34 hmm Dec 01 16:59:45 I haven't really had time to do appcompat stuff properly Dec 01 16:59:59 i mean, by default, if you use ?selectableItemBackground, it will use a ripple in v21 and not in but in my case i have drawables with ripplebackground that also have stroke, etc Dec 01 17:00:23 so I had to take the approach that I mentioned above Dec 01 17:00:47 oh yeah, I needed to customize the ripple for this button so the ?selectableItemBackground doesn't work. Dec 01 17:00:50 pfn: are you still there ? Dec 01 17:01:05 but yeah if you could define an xml drawable that just referenced another (like ?android:attr/selectableItemBackground) that would be ideal Dec 01 17:01:17 unfortunately it doesn't work for state list drawables Dec 01 17:01:28 at least in my experimentation Dec 01 17:02:09 gordon_, yep, I'm pretty much always around during CA working hours Dec 01 17:02:40 ah Dec 01 17:03:02 sometimes a little off-hours Dec 01 17:03:13 bnc + qicr = win Dec 01 17:03:21 although lollipop is making it suck Dec 01 17:11:30 pfn: did you get 'object junit is not a member of package org' Dec 01 17:11:34 error before ? Dec 01 17:11:49 I googled it and junit seems to work fine with sbt and scala Dec 01 17:12:07 gordon_, no, you didn't add it to libraryDependencies Dec 01 17:12:27 I did add it to build.sbt in folder root Dec 01 17:12:38 I can see it in dependencies in intellij too Dec 01 17:12:50 then you added the wrong junit? Dec 01 17:13:09 http://pastebin.com/Sze8vWZ1 Dec 01 17:14:46 and where are your sources? Dec 01 17:16:22 you can't access test libraries from src/main Dec 01 17:16:30 root / src/main/java/package/MainActivity Dec 01 17:16:33 tests are in Dec 01 17:16:47 root /src/androidTest/scala/packge/MainActivityTest Dec 01 17:17:33 show test:fullClasspath Dec 01 17:19:12 http://pastebin.com/XghRthfY Dec 01 17:20:12 my test looks like this: http://pastebin.com/FDpGkhDN Dec 01 17:20:23 "show" Dec 01 17:20:36 I guess show test:dependencyClasspath would work Dec 01 17:21:16 let me check Dec 01 17:23:40 wait what's the command ? Dec 01 17:23:52 sbt test:dependencyClasspath ? Dec 01 17:24:17 it gives me the same error Dec 01 17:24:33 so I tried sbt show test:dependencyClasspath but it doesnt work Dec 01 17:25:08 I can try inspect test:compile Dec 01 17:25:31 or inspect test Dec 01 17:26:52 ok i found it Dec 01 17:26:59 it's show dependency-classpath Dec 01 17:27:21 but it simply fails like before Dec 01 17:29:18 show Dec 01 17:29:21 and quote properly Dec 01 17:29:32 I've found an error Dec 01 17:29:42 commented out that class and got http://pastebin.com/HjGmT0Hh Dec 01 17:31:00 oh, debugIncludesTests := false Dec 01 17:31:03 probably Dec 01 17:31:11 debugIncludesTests in Android Dec 01 17:31:29 in your plugin ? Dec 01 17:33:41 in your build Dec 01 17:33:48 set it Dec 01 17:35:37 ok it doesnt crash now Dec 01 17:35:50 I looked in plugin code a little bit before Dec 01 17:35:57 tests shouldnt be in test directory ? Dec 01 17:36:01 not androidTest ? Dec 01 17:36:26 ? Dec 01 17:36:35 the plugin is onlyw ritten to support instrumented tests at the moment Dec 01 17:36:46 you can treat androidTest as non-instrumented Dec 01 17:36:57 but the semantic is that it tries to treat it as instrumented tests first Dec 01 17:37:14 when I get around to releasing the next version, that may change Dec 01 17:39:31 I've hopefully a quick question: How do I change the color of a selected tab in the action bar? Dec 01 17:39:48 I thought I was doing it right, but apparently not. Dec 01 17:40:37 well I can help somehow ;) Dec 01 17:41:31 gman23: iirc there are two ways — one is by overriding the style in your styles.xml file... the other is to use a CustomTabView for your TabViews. Dec 01 17:43:14 pfn: well it gets run but it didnt check my test Dec 01 17:43:24 gordon_, sbt doesn't execute junit tests by default Dec 01 17:43:37 gordon_, you need to use junit-interface from com.novocode Dec 01 17:44:03 ah! Dec 01 17:44:05 thanks Dec 01 17:44:15 sorry for noob questions ;) Dec 01 17:44:24 and I suppose junit should run robolectric perfectly fine in sbt Dec 01 17:44:31 it's if you want to use scalatest, etc. which I haven't dipped Dec 01 17:44:48 will have to buy you a beer one day ! Dec 01 17:45:45 if I ever make it to tokyo again Dec 01 17:46:09 we can always meet in europe ;) Dec 01 17:46:25 I'm more likely to go to japan again than europe, not a fan of vacationing in EU Dec 01 17:47:55 http://pastebin.com/20SdmWCv Dec 01 17:47:59 got this now Dec 01 17:48:35 I have no idea what that is, some robolectric annotation... Dec 01 17:48:46 looking Dec 01 17:49:17 maybe try java7 Dec 01 17:49:45 why Dec 01 17:50:39 bytecode issues? Dec 01 17:51:44 nah Dec 01 17:51:51 dont think this is the problem Dec 01 17:52:12 dont want to act like a smartass here ;) Dec 01 17:56:15 well, look at Method.java that particular line and see why it's throwing Dec 01 17:56:58 I probably need to write custom robolectric runner Dec 01 17:58:02 could be due to conflicting runtime as well Dec 01 17:58:13 if robolectric includes the full java runtime Dec 01 17:58:32 probably need to set fork in test and -Xbootclasspath:robolectric-android.jar Dec 01 17:58:35 however that works Dec 01 17:59:26 now I got problem how to write RobolectricGradleTestRunner(Class testClass) { super(testClass) } in sclaa ;) Dec 01 18:00:39 class RobolectricTestRunner(c: Class[_]) extends YourSuperClass(c) Dec 01 18:01:21 thank you Dec 01 18:01:41 forgot most of scala :( Dec 01 18:02:24 * pfn twiddles thumbs while integration tests run Dec 01 18:03:13 guys i have a lot of activity and i want to use same map in all of them. My map has markers lines, i dont want to add them with code in every activity class. I just want to load same map for each activity. suggestions? Dec 01 18:03:29 use a fragment lol Dec 01 18:03:51 or a custom mapview Dec 01 18:04:13 fragments for one activity Dec 01 18:04:38 i want many activities and one object Dec 01 18:06:07 gordon_, anyway, fork in test := true, javaOptions in test += "-Xbootclasspath:/path/to/android-all.jar" Dec 01 18:06:12 gordon_, should probably be enough to get you started Dec 01 18:06:25 JacobTabak: do you think custom mapview does the job? Dec 01 18:06:36 gordon_, before you go down the path of trying to write a custom test runner Dec 01 18:06:40 you can reuse a fragment between activities Dec 01 18:06:46 and for the case of a mapview, i'd probably recommend it over a custom view Dec 01 18:06:51 since you need all the lifecycle calllbacks Dec 01 18:07:36 alright, im researching Dec 01 18:08:43 ok Dec 01 18:09:08 gordon_, assuming that's how the native robolectric setup works on maven/gradle Dec 01 18:10:10 JacobTabak: what if i use fragment, which activity's layout is the place for adding fragment? Dec 01 18:10:31 batuhan you may need to take fragments 101, 150, and 201 Dec 01 18:10:37 hmm Dec 01 18:10:41 got build.sbt error Dec 01 18:10:42 201 may be a little much — fragments get crazy Dec 01 18:10:55 JacobTabak ok Dec 01 18:10:55 I need to dive into how sbt works.. Dec 01 18:11:28 pfn: http://pastebin.com/q1er0wA6 Dec 01 18:11:36 this is mine build.sbt now Dec 01 18:11:42 picasso question - i'm trying to draw a custom viewgroup (that uses picasso for image loading) to a bitmap, I'm trying to figure out the best way to wait until the image is loaded before drawing to the bitmap Dec 01 18:11:59 the same viewgroup is also displayed on the screen in a different part of the app, so i'd prefer not to muck up the logic too much for this Dec 01 18:12:08 gordon_, fill in the actual path, of course Dec 01 18:13:01 ok, I'm an idiot :D Dec 01 18:15:19 nah, I still got [error] Test com.nullpointerbay.MainActivityTest.initializationError failed: java.lang.NoClassDefFoundError: android/app/Activity, took 0.002 sec Dec 01 18:15:43 guys i have a little state question Dec 01 18:15:43 dont know what it cannot find Dec 01 18:15:51 robolectric or AndroidManifest Dec 01 18:15:59 say i have a special modelview class that i'd like to throw around Dec 01 18:16:08 now i've made it parceable Dec 01 18:16:19 am thinking of making it serializable to file Dec 01 18:16:21 and like onCreate Dec 01 18:16:23 pfn: enough for today Dec 01 18:16:26 check if i have it in the bundle Dec 01 18:16:28 let's continue tomorrow :) Dec 01 18:16:31 if not check file Dec 01 18:16:35 if not create new instance Dec 01 18:16:40 is this a good approach or Dec 01 18:16:42 Ravenheart this stream of consciousness is not followable Dec 01 18:18:17 Ravenheart it seems pointless to pass it around in the bundle and write it to file Dec 01 18:18:20 public class MyClass { public static MyClass GetInstance(Bundle b) { //check b else if //check file system //else create new instance } } Dec 01 18:18:39 well what i mean is like perssistent storage Dec 01 18:18:58 for when they rotate or some other event happens that has my app paused/stopped Dec 01 18:19:12 it would get saved in savedInstanceState Dec 01 18:19:20 you'd never need to get it from the file Dec 01 18:19:29 unless they explicitly closed the activity Dec 01 18:19:33 thats only if its fresh in memory Dec 01 18:19:41 if its been like 4 hours and hte os has killed my app Dec 01 18:19:50 then i want to load it from a perssistent place Dec 01 18:20:03 ok that sounds reasonable Dec 01 18:20:39 you know of any medium sized apps that use web services that are open source Dec 01 18:20:50 like i wanna learn how they are structured Dec 01 18:20:55 use retrofit Dec 01 18:21:08 and yes i can link you a few Dec 01 18:21:22 i don't mean REST clients :) Dec 01 18:21:28 i mean like normal day medium sized apps Dec 01 18:21:34 with a bunch of activities/fragments Dec 01 18:21:50 a nice datastore (web services) Dec 01 18:21:52 and some hubs/pager activities Dec 01 18:22:14 https://github.com/jacobtabak/droidcon Dec 01 18:22:21 https://github.com/jacobtabak/cakeday Dec 01 18:22:26 whoops! https://groups.google.com/forum/#!topic/google-admob-ads-sdk/_x12qmjWI7M Dec 01 18:22:50 https://github.com/f2prateek/android-couchpotato - Haven't worked in it for a while though Dec 01 18:23:12 awesome Dec 01 18:23:20 thano you both Dec 01 18:23:22 thank* Dec 01 18:30:08 f2prateek your github needs screenshots and gifs! Dec 01 18:32:33 Haha yup Dec 01 18:46:52 oi, i'm asked to port an iOS app to 'Droid' Dec 01 18:47:03 * g00s has sinking feeling Dec 01 18:49:52 Is there anyone here that has worked with opengl on android? I am having an issue where my vertex shader is not compiling, and I don't get any error. Dec 01 18:49:53 its a trap! Dec 01 18:50:43 iTrap Dec 01 18:52:56 i'm just waiting for the 'make it look like the iOS version' Dec 01 18:54:02 why wait, why not start on that right away Dec 01 18:57:56 ravilov the iOS guys had all the fun creating new stuff :( Dec 01 18:58:13 the android work is janitorial Dec 01 18:59:46 how do you know it's not compiling if it doesn't give any error Dec 01 19:00:45 Chainfire: ? Dec 01 19:01:00 the status is nonzero from the compile command but the log is empty. i think I was missing an egl context because im on an async thread. just got it to compile. Dec 01 19:01:11 Chainfire: the status is nonzero from the compile command but the log is empty. i think I was missing an egl context because im on an async thread. just got it to compile. Dec 01 19:02:43 g00s, someone's gotta be the janitor too Dec 01 19:03:04 or "Dr. Jan Itor", according to some :p Dec 01 19:07:23 Hello guys, i need some help.. I have one user running my APP and SyncAdapter is not running for him.. I have others users working fine with same version of APP, so it is no problem of API. Auto sync is turned ON, Account auto sync is also turn on and i use the flag “SYNC_EXTRAS_MANUAL” when call Sync.. Any know if i missing to check something? Is there anything else that may block SyncAdpter to not work? Dec 01 19:10:26 I'm working with ndp and I'm wondering why the service type from the NsdServiceInfo has an extra . at the end Dec 01 19:10:37 err, nsd not ndp Dec 01 19:10:59 Also it's losing/finding the service a lot Dec 01 19:14:21 is the application cache cleared after an update or do I have to take care of that myself? Dec 01 19:23:16 I have a relativelayout inside of a linearlayout. the relativelayout is supposed to wrap content (width), but for some reason, it is just spanning the whole width of the linearlayout's parent. Dec 01 19:23:41 Does anyone have tips on user descriptions? Dec 01 19:23:47 er Dec 01 19:23:50 sorry, asleep Dec 01 19:23:54 Is it possible to use the setBitmap method right after drawing shapes to the canvas to capture the shapes as a bitmap? Dec 01 19:23:55 app descriptions Dec 01 19:24:02 for Google Play. Dec 01 19:24:16 make it descriptive Dec 01 19:24:17 Agamemnus: just look what others do Dec 01 19:24:29 Spynxic, your question... is strange Dec 01 19:24:37 setbitmap on what? Dec 01 19:25:15 Mavrik, you should know by now that's not a viable strategy Dec 01 19:25:27 there's a heavy first mover advantage Dec 01 19:25:31 and $ advantage Dec 01 19:25:49 Yesterday I read that you should put keywords 5 times in the description Dec 01 19:25:53 Agamemnus, what are you talking atbout? O.o Dec 01 19:25:56 I think that might work but I need more Dec 01 19:26:01 oops Dec 01 19:26:04 sorry, danijoo Dec 01 19:26:10 :P still asleep Dec 01 19:26:34 I managed to get into the jigsaw category Dec 01 19:26:36 Mavrik: I'm drawing random lines to the canvas and saving them as bitmaps to compare to each other but the bitmaps keep returning blank even though the canvas clearly has drawings on it Dec 01 19:26:41 Spamming keywords in descriptions is a great shortcut to getting your app pulled :) Dec 01 19:26:57 Spynxic, where do you get your canvas from? What's it initialized on? Dec 01 19:27:00 You're worse Dec 01 19:27:06 No one said anything about spam Dec 01 19:27:14 I heard apps uploaded on thursdays get better rankings Dec 01 19:27:15 I am a very good writer. Dec 01 19:27:28 haha really? Dec 01 19:27:37 my app was uploaded in september though Dec 01 19:27:46 (game) Dec 01 19:27:46 yeah but it must fall together with a 13. of the month Dec 01 19:27:54 aha Dec 01 19:28:28 so, I'm just behind sandals jigsaw and dolphins jigsaw, but only if you select 4 stars+ Dec 01 19:29:08 i guess i need more downloads Dec 01 19:30:21 Mavrik: http://pastie.org/private/erdssuwkhexwhsuknanng#129,141,166,207,231-232 Dec 01 19:31:29 Spynxic, um, you're using Canvas totally wrong :) Dec 01 19:31:49 I'm surprised anything works :) Dec 01 19:31:49 Mavrik: I'd be happy to not have to use it at all Dec 01 19:32:09 JakeWharton, how do I figure out what directory robolectric is currently running in? Dec 01 19:33:34 Spynxic, Canvas is just a wrapper to whatever surface/bitmap you're drawing to Dec 01 19:33:39 Everything works as it should except storing the bitmaps. Previously I stored them using LruCache and canvas that didn't update to the screen but that seemed to over-complicate things Dec 01 19:33:43 so if you switch bitmap, you just replaced the "paper" you're drawing on Dec 01 19:33:56 you can't just randomly switch bitmaps and expect all data to magically transfer Dec 01 19:34:08 JakeWharton, nevermind, I can just print that out from my test Dec 01 19:34:12 also, messing with the canvas you get passed as part of onDraw will get you in trouble Dec 01 19:34:39 Spynxic, get a bitmap. Create a new canvas on bitmap. Draw on that canvas. Draw the bitmap to view canvas. Dec 01 19:34:41 [error] Test RoboTest.doSomethingBitch failed: java.lang.UnsupportedOperationException: Robolectric does not support API level 21, sorry!, took 0.012 sec Dec 01 19:34:42 nice, heh Dec 01 19:38:43 but it's working though, so that's good Dec 01 19:42:45 gordon_, since you piqued my interest: https://gist.github.com/pfn/c3cb12961639364cc0d8 Dec 01 19:42:52 gordon_, working sbt+junit robolectric config Dec 01 19:44:42 hey guys, whats the news in the android world? Dec 01 19:48:11 ... Dec 01 19:49:09 TheFlipside: androidweekly.net Dec 01 19:49:29 Sorry, we’re out of Cyber Monday promo codes. Dec 01 19:49:29 really motorola?? Dec 01 19:49:30 fuckers Dec 01 19:51:21 I might grab one of those new moto G's Dec 01 19:51:24 Hello guys, i need some help.. I have one user running my APP and SyncAdapter is not running for him.. I have others users working fine with same version of APP, so it is no problem of API. Auto sync is turned ON, Account auto sync is also turn on and i use the flag “SYNC_EXTRAS_MANUAL” when call Sync.. Any know if i missing to check something? Is there anything else that may block SyncAdpter to not work? Dec 01 19:55:04 I'd like to pick up a moto g, but there's no lte model for verizon Dec 01 19:55:07 (2nd gen) Dec 01 19:56:09 really, sqlite database is final? ugh Dec 01 19:56:12 friggin' pita Dec 01 19:58:11 pfn i'm able to use LTE wit my htc one M7 but there doesnt sem to be active LTE cells where i am... Dec 01 19:58:25 bummer for you Dec 01 19:58:42 and what do you mean with sqlite being final? Dec 01 20:02:02 pfn?... Dec 01 20:02:14 SqliteDatabase.java is final.. as it should be Dec 01 20:02:15 the class is final, so I can't extend it to decorate Dec 01 20:03:03 oh, dev jargon Dec 01 20:06:10 pfn, you like skyrim? Dec 01 20:06:21 no Dec 01 20:06:25 oh... Dec 01 20:06:40 what do you like then? Dec 01 20:07:42 lol? Dec 01 20:07:51 actually, I hate it, but whatever Dec 01 20:08:04 i understand Dec 01 20:09:09 pfn, I think most people just used their own compiled sqlite for advanced stuff Dec 01 20:11:09 Mavrik, I just want better connection pool management Dec 01 20:11:29 it'd look nicest if I could just proxy SQLiteDatabase around its close() call Dec 01 20:13:09 since interleaving getXXXDatabase/close is causing me problems Dec 01 20:13:55 Connection pool? Thought SQLite should have one connection per DB (or is that table?) Dec 01 20:14:08 it's not really a pool Dec 01 20:15:16 does anyone here know why a custom ratingbar wouldn't work given this code? https://gist.github.com/shekibobo/4d303a595aa2367b6311 Dec 01 20:16:04 yes i see it right there! oh no nvm... Dec 01 20:17:41 all I get is a single dot, regardless of any of the settings (numRatings, width, etc) Dec 01 20:18:31 if I take away the size settings on the shapes, the dot stretches vertically, but not horizontally Dec 01 20:22:51 Hey, can anyone suggest a reason why I'd be seeing 412 errors (HTTP Error 412 - Precondition failed) when using Volley to do a get of http://xkcd.com/rss.xml ? Dec 01 20:39:04 so Android had that None / Priority / All selector on the volume control Dec 01 20:39:07 it then disappeared Dec 01 20:39:09 now it's back Dec 01 20:39:27 how do I control this? Dec 01 20:39:51 sorry, this isn't exactly a dev question Dec 01 20:45:24 matt_j: 1. The application turns off/on that functionality based on addons being run in the background Dec 01 20:45:39 ugh. Dec 01 20:45:41 2. The android dev team wasnt sure of how they wanted it Dec 01 20:45:46 I can see that Dec 01 20:45:48 ;) Dec 01 20:45:59 sadly, I had to find it in prefs Dec 01 20:46:13 and that new screen is a mess! Dec 01 20:46:27 sadly the entire java language is a mess Dec 01 20:46:29 poorly written Dec 01 20:47:07 the syntax is cool allthough Dec 01 20:47:37 ehh, I don't really have an issue with java Dec 01 20:47:46 u should Dec 01 20:47:54 it beats mallocing in straight C Dec 01 20:48:12 thats the cool stuff in programming, handling your memory Dec 01 20:48:13 :P Dec 01 20:48:30 I know, but when I'm at work building a large project, I don't have time fo dat ;) Dec 01 20:48:40 or were you being sarcasatic? hahaha Dec 01 20:48:48 no i were honest Dec 01 20:50:05 something funny, i coded a game in C and ran it and it used 10% CPU, i ported it over to Java, same algorithms Dec 01 20:50:10 30-40% cpu usage Dec 01 20:50:15 maybe java should fix their hash tables Dec 01 20:51:56 why are you using hash tables in performance sensitive code? Dec 01 20:51:59 :p Dec 01 20:52:35 err, hash tables in runtime languages gives you a wrong impression about what an hash table is Dec 01 20:52:44 allthough it builds upon the originality Dec 01 20:52:49 its a big difference Dec 01 20:53:02 you gone done it wrong Dec 01 20:55:21 Ruby, fastest, best coded runtime engine coded on this planet :) Dec 01 20:55:51 now you're just trolling Dec 01 20:56:01 do a comparison pfn Dec 01 20:56:03 in cpu usage Dec 01 20:56:10 yep, you're just trolling Dec 01 20:56:24 and check out the internal code for handling memory Dec 01 20:56:31 you cant fight that. Dec 01 20:59:37 bottom line, android devs made it impossible for me to turn off my ringer at night unless I find their terrible notification settings page Dec 01 21:00:31 that sux Dec 01 21:00:53 unless for random reasons the buttons on the volume control re-appear ;) Dec 01 21:01:14 lollipop has really been the first time I've wanted to switch to apple Dec 01 21:01:34 i would very much like to switch to apple too, because of Objective-C Dec 01 21:01:40 huh, they only disappear if you're running a media player Dec 01 21:01:54 pfn: what, I have to force-quit the process to do this? Dec 01 21:02:12 there was no media player running in the background. Playing music, anyway Dec 01 21:02:13 you are probably running a buggy media player that has your volume control in media mode Dec 01 21:02:30 ah, the stock android one? :D Dec 01 21:02:58 no idea Dec 01 21:03:04 you're doing whatever you're doing Dec 01 21:03:11 how is it to set up a virtual iphone? is it free Dec 01 21:03:16 do i need some stuff Dec 01 21:03:26 like a cdkey Dec 01 21:03:27 #android-dev <--- Dec 01 21:03:37 adq: be polite Dec 01 21:03:39 :S Dec 01 21:03:49 wish ops were around to clear out trolls more often Dec 01 21:03:50 i dont see anyone asking android-dev questions atm Dec 01 21:04:11 and you don't make the rules Dec 01 21:05:06 chill computer Dec 01 21:05:07 Mavrik do you usually roll with your own sqlite ? Dec 01 21:05:46 guys, whats the name of the control that allows a user to pick one item from a list Dec 01 21:05:55 spinner Dec 01 21:05:59 like a dropdown combobox Dec 01 21:06:08 Ravenheart, spinner Dec 01 21:06:10 right okay thx Dec 01 21:08:49 g00s, no, very rarely Dec 01 21:08:56 but sometimes you just want those new features :) Dec 01 21:09:07 greetings folks. Dec 01 21:09:22 adq: ape no kill ape, human kill ape Dec 01 21:09:27 let that in Dec 01 21:09:39 and fire arrow kills troll :) Dec 01 21:09:42 haha Dec 01 21:09:44 lol Dec 01 21:09:57 yes it does adq :P Dec 01 21:11:34 tfw log statement for debugging NPE's Dec 01 21:11:42 ;) Dec 01 21:14:21 actually caesar was wrong, an ape actually killed ape Dec 01 21:15:29 hey guys, with native activities, in a segfault there's always backtrace: and then stack: which one is more relevant? Dec 01 21:15:56 e.g. bt has got 2 lines and stack has got a lot of lines but with only one with symbols Dec 01 21:18:19 both can help you clear your bug, + registers, all is relevant Dec 01 21:18:37 QUWEQWUHEQ: which one would indicate where the crash happened tough Dec 01 21:18:44 the bt **** BEGIN LOGGING AT Mon Dec 01 21:20:39 2014 Dec 01 21:20:40 thats where you put local data on a stack frame Dec 01 21:20:46 right I know that :P Dec 01 21:20:53 so basicly the stack shows you the data Dec 01 21:20:56 in that file Dec 01 21:21:20 QUWEQWUHEQ: I just find it confusing to see functions in there? Dec 01 21:21:26 thats where it went wrong Dec 01 21:21:29 thats what a backtrace is :P Dec 01 21:21:30 so the crash really happened in the BT Dec 01 21:21:47 the backtrace shows you where you started -> where it crashed(endpoint) Dec 01 21:21:48 i.e. in this example that I pasted Dec 01 21:21:49 following the routines Dec 01 21:22:05 id it crah in LinkList_Move or in LinkList_GetNext ? Dec 01 21:22:14 etc, entry point calls strncpy(.., ... ,..), strncpy calls something more, and in that "more", it segfaults Dec 01 21:22:20 that "more" will be the last backtrace Dec 01 21:22:53 you can also check the EIP register, where the CPU thread stopped executing opcodes Dec 01 21:23:15 #00 pc 0025ecd8 /data/app-lib/com.ecere.test01-1/libecere.so (__ecereMethod___ecereNameSpace__ecere__com__LinkList_Move+200) Dec 01 21:23:31 so LinkList_Move, not GetNext? Dec 01 21:23:33 also, optimized code is usually impossible to backtrace effectively Dec 01 21:23:43 Mavrik: yeah optimization disable, -g enabled here Dec 01 21:23:50 and you can also trash your stack in a way it makes it impossible to reconstruct :) Dec 01 21:24:13 ah in fact I had -O2 on one of the library :S Dec 01 21:24:21 yay Dec 01 21:24:28 I'll see if that makes a difference :S Dec 01 21:24:43 but some funky stuff was happening with -O2 and I'm trying to figure out the problem Dec 01 21:25:37 in most scenarios ESphynx , the backtrace is enough to clear your segfault Dec 01 21:26:17 thanks QUWEQWUHEQ , so I should focus on those 2 lines of the bt :P Dec 01 21:26:28 focus on the data you pass Dec 01 21:26:29 I'm getting some memory corruption or something :S Dec 01 21:26:49 1. You pass the wrong data, 2. The library is corrupt Dec 01 21:27:58 /data/app-lib/com.ecere.test01-1/libgnosis2.so the data you pass to this routine Dec 01 21:28:10 ops, this lib's routine Dec 01 21:28:35 QUWEQWUHEQ: I'm developing both libs ;P Dec 01 21:28:43 heh ok Dec 01 21:28:52 Is there any tools for dealing with memory corruption etc? Dec 01 21:28:58 Like Valgrind for droid? :P Dec 01 21:29:28 always check for a return value Dec 01 21:29:37 allot of segfaults will be spared :P Dec 01 21:29:45 lol Dec 01 21:30:21 but now you know that your segfault occurs in libecere.so lib Dec 01 21:32:08 ESphynx: you can run gdb on native code (after jumping through some hoops) but I dont know of a valgrind implementation Dec 01 21:32:27 ESphynx: also depending how android-specific your library is, you can feed it data via jni and a java framework on a pc Dec 01 21:32:34 ESphynx: and run THAT whole mess under valgrind Dec 01 21:32:43 ESphynx: which is sucky but gets it done if you're in a hurry Dec 01 21:33:00 is there a way to "version-check" a class field which was added *after* your minSdkVersion? Dec 01 21:33:03 short of Java reflection? Dec 01 21:33:23 QUWEQWUHEQ: except something could have done a buffer overrun or something :P Dec 01 21:33:47 dragorn: well it's all cross-platform and I can run it without Java on the PC Dec 01 21:33:55 but valgrind finds nothing then :P Dec 01 21:34:01 though I'm probably due to try that again. Dec 01 21:34:52 Why aren't debug builds zipAligned by default? Dec 01 21:40:53 ESphynx: Right; I'm suggesting you write java+jni test cases on a pc Dec 01 21:40:56 and valgrind that whole mess Dec 01 21:41:46 yp Dec 01 21:43:11 dragorn: hehe thanks. I think I'll pass on Java though, but really there is no Java whatsoever in my app... Dec 01 21:43:24 ESphynx: but since your problem is passing data to it via jni Dec 01 21:43:27 it's 100% native activity... so only the Android NativeActivity class Dec 01 21:43:44 ESphynx: i'm not sure how you'd like to debug that Dec 01 21:43:45 dragorn: I don't think that's the problem, problem is my link list memory is getting corrupted somehow :) Dec 01 21:44:05 just realized it might be something 32 bit specific as I mostly debugged on PC in 64 bit :P Dec 01 21:44:34 well whaddayaknow Dec 01 21:44:40 problem happening on PC/32 bit :P Dec 01 21:44:42 thanks guys. Dec 01 21:49:13 Mavrik when you include your own sqlite, do you use the existing android java bindings, or via jni ? Dec 01 21:49:18 is there seriously no NFC icon in the android asset studio Dec 01 21:50:22 If you have a USB hub with several Android devices attached, can you launch to all of them then? Dec 01 21:50:59 itd be batch, each device has unique serials Dec 01 21:51:57 kolossen: it still sees them as multiple devices Dec 01 21:52:14 meaning you can dispatch to each device separately, but effectively sure you can launch to all of them if you make a script Dec 01 22:00:05 Hi Dec 01 22:00:18 I've downloaded android sdk Dec 01 22:00:38 and I've installed the sdk tools with android sdk manager Dec 01 22:01:05 but when I try to compile, I get: error: package android.os does not exist Dec 01 22:01:14 Any ideas? Dec 01 22:01:52 Sounds like your project isn't including android.jar Dec 01 22:01:53 anybody else have the android emulator randomly freeze when pushing a new build on lollipop Dec 01 22:03:24 hwrdprkns, so, how can I solve? Dec 01 22:04:08 I've googled but I've found nothing useful Dec 01 22:04:17 Are you using Android Studio? Dec 01 22:04:32 hmmm.. android wear emulator does not support OpenGL apparently? Dec 01 22:05:46 hwrdprkns, no Dec 01 22:06:01 hwrdprkns, I'm compiling from command line Dec 01 22:08:02 mmmm sadface... sounds like crazy idea :) Dec 01 22:10:50 hwrdprkns, I don't understand Dec 01 22:18:43 USB 3 is backwards compat with USB 2? Dec 01 22:18:52 android has usb 2,3 or both? Dec 01 22:19:00 or device specific? Dec 01 22:19:42 device specific, usually backwards compatible Dec 01 22:22:08 what phones have usb 3? Dec 01 22:22:16 Note3, S5 Dec 01 22:22:24 Note4 doesn't, though Dec 01 22:22:46 wat Dec 01 22:22:51 why would note 4 not have it Dec 01 22:22:59 because reasons Dec 01 22:23:02 ok, i'd like a usb 3 one for faster loading of apks Dec 01 22:23:06 "Mice with human glial cells are smarter" well that settles it, the mice in charge of Play store should get some human glian cells Dec 01 22:23:09 do I look like I work for Samsung Engineering? Dec 01 22:23:17 I'm just reporting what is Dec 01 22:23:42 you're not going to notice the speed difference with APKs unless they are really big, though Dec 01 22:23:54 I don't think USB3 would help that much in deployment times, tbh Dec 01 22:24:13 probably the speed difference of flash chips between the Note3 and Note4 would make the Note4's USB2 be faster than the Note3's USB3 with that :) Dec 01 22:24:23 Hell you can just do it over WiFi if you want Dec 01 22:24:45 Chainfire: good point :P Dec 01 22:31:58 regarding the nav drawer, do you go the jerky but fast route or the slower but smooth route? Dec 01 22:32:22 (referring to close animation) Dec 01 22:32:59 I do the latter, personally Dec 01 22:33:29 The jerkiness tends to annoy me when I see apps doing it Dec 01 22:39:24 JakeWharton, ugh, SdkEnvironment depends on RobolectricTestRunner directly? that's pretty lame... Dec 01 22:39:53 ¯\_(ツ)_/¯ Dec 01 22:40:03 JakeWharton, looks like it's an unused param Dec 01 22:40:22 file a bug, i just merge PRs Dec 01 22:40:25 I guess I can try a snapshot version Dec 01 22:43:56 and nope, no change, boo Dec 01 22:45:30 Hi Dec 01 22:46:36 Is it safe to have one drawable for all densities? Dec 01 22:47:26 in some cases, yes Dec 01 22:47:42 Anyone else having their line numbers disappear on them in Android Studio? Dec 01 22:48:03 s73v3r: everyone Dec 01 22:48:12 you can search in settings for it Dec 01 22:48:22 looks like robolectric is unduly tied to junit Dec 01 22:48:22 someware in Editor Dec 01 22:48:27 somewhere* Dec 01 22:48:34 I know where the preference is. I have it turned on Dec 01 22:48:53 Settings->Editor->Appearance Dec 01 22:49:13 s73v3r: feel free to report it in d.android.com Dec 01 22:49:16 It's turned on, but Studio isn't showing me the line numbers Dec 01 22:49:39 hmm Dec 01 22:49:42 * pfn tries something else Dec 01 22:56:24 Has anyone other ideas? Dec 01 22:57:32 cristian_c: http://developer.android.com/tools/building/building-cmdline.html Dec 01 22:57:54 ok Dec 01 22:59:04 bankai_au: cristian_c: Just a note that that links documentation is not up to date with the new gradle build system Dec 01 22:59:59 yiati_, android-sdk_r23.0.2 Dec 01 23:00:18 I've set 4.2.2 in sdk android manager Dec 01 23:01:08 previously, I tried also ant debug and ant release Dec 01 23:01:22 https://www.elfa.se/elfa3~se_sv/elfa/init.do?init=2&shop=ELFA_SE-SV&item=25-209-45& Dec 01 23:01:39 is it certain that a USB adapter like that can deliver to 4 Androids ? Dec 01 23:01:47 cristian_c: http://developer.android.com/sdk/installing/studio-build.html Dec 01 23:02:00 ok I fixed my big custom spinner problem !! hooorayy Dec 01 23:02:10 cristian_c: which has a subsection http://developer.android.com/sdk/installing/studio-build.html#buildCmd Dec 01 23:02:53 now I just have to fix my small spinner problem :P Dec 01 23:04:30 I'll try to see the JAVA_HOME current value Dec 01 23:08:04 hi I'm developing an app with the NDK using C++11 which by itself works fine, but I can't get eclipse to understand the C++11 stuff, anyone had this problem before? Dec 01 23:11:18 that's a problem for #eclipse Dec 01 23:13:28 I wonder how fast build times will be with Jack. Maybe "native" unit testing will become viable to many. (Though they'd hopefully drop the JUnit 3 requirement.) Dec 01 23:13:48 s/build times/builds/ Dec 01 23:14:10 android builds as it is aren't appreciably slow Dec 01 23:14:16 deploy/run are the longest part of the dev cycle Dec 01 23:14:38 True. Dec 01 23:14:53 and getting the instrumentation test runner setup and running takes forever in itself Dec 01 23:18:54 bankai_au http://www.npr.org/blogs/health/2014/11/28/367092004/how-dogs-understand-what-we-say Dec 01 23:19:17 i was listening to this on the radio the other day Dec 01 23:21:01 any thoughts folks? http://stackoverflow.com/questions/27239203/synchronous-image-loading-with-picasso-without-get Dec 01 23:21:11 (i just submitted this question, looking for feedback) Dec 01 23:25:27 pfn: no I think that's a problem of the adt Dec 01 23:25:35 there's no channel for the adt though Dec 01 23:26:00 neXyon, so you're able to use all the c++11 goodies from eclipse proper? Dec 01 23:26:13 pfn: if it's not an android project yes Dec 01 23:26:21 same eclipse? Dec 01 23:26:23 yes Dec 01 23:26:29 * pfn shrugs Dec 01 23:26:31 add the right aspects Dec 01 23:26:44 that's the problem, the adt seems to hide them in the settings, no access Dec 01 23:28:51 neXyon not about your problem specifically, but did you see https://news.ycombinator.com/item?id=8678936 Dec 01 23:29:09 haha, i loved this comment "Is very interesting how people on Microsoft got to the same conclusions that we got: get rid of Java and any other exotic language in the sharing code and use only c++." Dec 01 23:29:38 pretty epic talk, 2 hours though (ugh!) Dec 01 23:29:47 is every menu view (about, settings etc.) its own Activity? Dec 01 23:31:21 Menus aren't activities, but they sometimes launch activities. Dec 01 23:31:34 "With the woeful state of native debugging on Android it may have been almost as easy to recode in Java" thats depressing Dec 01 23:31:40 Other times they just replace a fragment in the current activity with another fragment. Dec 01 23:32:00 Ok Dec 01 23:32:01 Or a view with another view. Dec 01 23:32:05 4 weeks and 1 day Dec 01 23:32:18 I STILL cannot get an access token that will provide me with an email address. Dec 01 23:32:27 is it impossible? Dec 01 23:32:30 TacticalJoke: any downside, of creating a new activity for each "window"? Dec 01 23:32:40 Compared to what? Dec 01 23:33:10 http://pastebin.com/RnS54Ncg line 120 Dec 01 23:33:32 g00s, where di u read that Dec 01 23:33:41 oh u linked Dec 01 23:34:39 TacticalJoke: compared to simply changing views i guess Dec 01 23:34:45 day: Using an activity for every 'screen' is quite simple, code-wise. Dec 01 23:34:49 if u want cross platform just wring in c++ to opengl but then u mismatch that UI paradigm the user is accustomed to Dec 01 23:37:01 Though fragments and custom views have flexibility: you can enable swiping between screens and stuff. Dec 01 23:37:52 How can I get an Activity to do work without having it show the UI? Dec 01 23:37:56 JacobTabak: are you injecting the Picasso instance? Dec 01 23:38:02 yes Dec 01 23:38:05 If it's just a simple screen, I, personally, will use an Activity. It keeps things very easy. (Some people like using Fragments for basically everything, but that seems odd to me.) Dec 01 23:38:22 JacobTabak: create a second Picasso instance with an executor that runs synchronously Dec 01 23:38:28 eh, i guess you still have the dispatcher Dec 01 23:38:48 :\ Dec 01 23:41:02 Basically, I have a LoginActivity and a ForgotPasswordActivity. At the end of the Forgot Password flow, I need to log in. I'd like to have the LoginActivity handle the actual logging in, as it already does that for regular log in. But I've been told I cannot change the screen; it has to stay on the last screen of the Forgot Password flow Dec 01 23:42:19 Anyone here knows how to prevent the soft keyboard layout from covering the input textbox on focus? Dec 01 23:42:25 I'm using phonegap Dec 01 23:44:47 man did you try the manual scroll? Dec 01 23:45:28 Agamemnus: The link you showed me yesterday? Dec 01 23:46:22 The MDN link Dec 01 23:46:23 yes Dec 01 23:46:50 Agamemnus: Doesn't that achieve the same effect as scrollIntoView() ? Dec 01 23:47:39 s73v3r wat Dec 01 23:48:09 s73v3r decouple your business logic from your UI Dec 01 23:48:25 I did that by putting the UI in fragments Dec 01 23:48:33 decouple it more Dec 01 23:48:35 http://stackoverflow.com/questions/27239405/googleauthutil-get-access-token-that-will-provide-an-email-address Dec 01 23:48:45 How so? Dec 01 23:48:49 MetalHead77: Well, why isn't that enough? Dec 01 23:49:20 Agamemnus: I already tried scrollIntoView() and it didn't work Dec 01 23:49:22 Agamemnus what does that even mean? "I'm unable to ....", no stack trace, no error message, no description of what the problem is? Dec 01 23:49:38 Huh, it's all there Dec 01 23:49:52 MetalHead77, what do you mean by "didn't work", did it not scroll? Dec 01 23:50:09 JacobTabak: ok i see Dec 01 23:50:52 Agamemnus: It scrolled but not to the correct element Dec 01 23:50:57 JacobTabak I made an edit Dec 01 23:51:06 MetalHead77: so why doesn't a manual scroll work? Dec 01 23:51:08 even though i provided the correct id Dec 01 23:51:26 maybe it scrolled to the correct element, but you calculated the difference incorrectly. Dec 01 23:51:42 Agamemnus: The manual scroll works but that is too much hassle for the user Dec 01 23:51:55 Manual Javascript. Dec 01 23:52:02 Agamemnus: What difference? I was talking about scrollIntoView() Dec 01 23:52:02 I.E.: not using scrollIntoView(). Dec 01 23:52:10 Then don't use it Dec 01 23:52:17 set the scrollTop yourself. Dec 01 23:52:50 JacobTabak, any ideas on this? It's kind of urgent. Dec 01 23:52:56 Agamemnus: How will I know what the scrollTop will be for each device? Remember I will not be the only one using this Dec 01 23:53:23 MetalHead77 what do you mean...? Dec 01 23:53:29 it's pixels... Dec 01 23:53:35 where did you get this from? scope = "oauth2:" + Scopes.PROFILE + " " + "email"; Dec 01 23:53:50 JacobTabak: a gist someone posted. Dec 01 23:53:59 find the documentation Dec 01 23:53:59 Anyway, I can't find the scope ANYWHERE. Dec 01 23:54:02 Yes. Dec 01 23:54:10 It doesn't give the email scope. Like it doesn't exist. Dec 01 23:54:21 thats probably why it doesnt work Dec 01 23:54:26 The http method has that scope. Dec 01 23:54:37 I don't understand though... there must be a way? Dec 01 23:54:58 facedesk. Dec 01 23:55:27 can you do addScope("email") Dec 01 23:55:30 Of course, there's a way to get an email address through Java. But you can't validate it! Dec 01 23:55:34 Let me try that. Dec 01 23:55:36 where there's a will, there's a way... Dec 01 23:55:39 why are you manually specifying the scope Dec 01 23:55:43 if you're using the builder Dec 01 23:55:52 Agamemnus: Won't the pixels be different for each device? Dec 01 23:56:14 MetalHead77: yes, they will be, but that doesn't matter Dec 01 23:56:31 Agamemnus: How can it not matter? Dec 01 23:56:32 JacobTabak that's a different thing, i am not even sure if it is related Dec 01 23:56:38 Agamemnus if the issue you're having is only with the asynctask, you should take it out of your question Dec 01 23:56:56 I don't know if they are related. Dec 01 23:57:31 error: incompatible types: String cannot be converted to Scope Dec 01 23:57:59 yeah that google api client code isn't trying to get a token Dec 01 23:58:08 you should just focus on the googleauthutil Dec 01 23:58:14 btw, this is my scope string "oauth2:server:client_id:%s:api_scope:%s"; Dec 01 23:58:49 https://gist.github.com/ianbarber/9607551 this is what I looked at but i guess it is totally wrong Dec 01 23:58:50 Agamemnus: How can it not matter? Dec 01 23:58:59 MetalHead77: think about it Dec 01 23:59:01 where client id is the app client id, and api scope is space-delimited string of scopes Dec 01 23:59:42 this is to get a refresh token though so could be totally unrelated Dec 02 00:00:07 I will try that Dec 02 00:00:19 im almost positive thats not what you want though Dec 02 00:01:25 MetalHead: you're asking something like this Dec 02 00:01:39 you need a ladder that's 5 feet Dec 02 00:01:48 and you are 5 feet Dec 02 00:01:50 Hello, all! I've been working on rooting and installing a custom ROM onto a Samsung Galaxy Exhibit. I got a pre-rooted stock ROM as well as ClockworkMod Recovery installed as of last night. The ROM is still rooted, but ClockworkMod Recovery is gone and Android System Recovery is back. Did I do something wrong? Dec 02 00:01:59 ARMIGER1: see the topic Dec 02 00:02:00 but what if 1 foot is actually twice what it was? Dec 02 00:02:11 Then the ladder will STILL be 5 feet Dec 02 00:02:17 and you will STILL be 5 feet Dec 02 00:02:26 or something Dec 02 00:02:35 Application development. Sorry, wrong room! Dec 02 00:02:46 it no prob Dec 02 00:02:54 JacobTabak: is the ID just the number? Dec 02 00:03:04 no the whole thing Dec 02 00:03:30 you don't want to do this Agamemnus Dec 02 00:03:34 How can I set c++ #define flags for gradle/android studio builds? Dec 02 00:03:41 that scope is specifically for "Android app obtains offline access for web back-end" Dec 02 00:05:07 kailoAtWork do you do it in eclipse? Dec 02 00:05:15 I don't use eclipse Dec 02 00:05:20 Agamemnus: Ok. So setting the scrollTop will automatically scroll the browser or something? Dec 02 00:05:30 kailoAtWork just wondering why it's specific to gradle Dec 02 00:05:34 (your question) Dec 02 00:06:11 because the ant project I'm importing previously handled it one way or another? Dec 02 00:17:45 why not set it in your Android.mk? Dec 02 00:18:49 JacobTabak: don't want to do what Dec 02 00:21:56 interesting question though, I don't have a way to pass flags to my ndk-build either :-/ Dec 02 00:25:18 how can i interact with the mouse & keyboard in other applications, when running as root? (i know its possible, HiroMacro does it) Dec 02 00:26:45 #listen Dec 02 00:29:05 NDK question: Could it be that pthread_self() returns the same on different threads? Dec 02 00:30:18 Use gettid() instead? Dec 02 00:30:43 Android Studio doesn't show layout as match_parent Dec 02 00:32:02 hmm even gettid() seems to return the same id even though I'm pretty sure I'm calling it from 2 different threads :S Dec 02 00:33:51 hello mr wang Dec 02 00:33:56 were you the dude with the lambos Dec 02 00:34:34 maybe I am calling it from the same thread after all :P Dec 02 00:36:32 where is a good place to ask rxjava questions ? Dec 02 00:36:40 * g00s wishes they had irc :) Dec 02 00:43:18 you should ask them here so i can read them Dec 02 00:43:23 and think about them :) Dec 02 00:43:31 not that i can help with an answer... but you know Dec 02 00:47:08 Hi guys. I change width and height of some RelativeLayout programmatically but it's limited by its parent Layout width and height. Is there any way to avoid that? Dec 02 00:47:21 use scrolling Dec 02 00:47:21 lol Dec 02 00:48:17 the closest you'll get is setting negative margins in your layout params AlexBerdnikov Dec 02 00:48:52 Gonna try it now Dec 02 00:48:53 and that won't really work for going beyond a parent's bounds Dec 02 00:49:18 AlexBerdnikov tehre's probably a better answer if the question had more context Dec 02 00:50:53 it’s going down in ##java right now Dec 02 00:51:04 someone spoofed their IP and is now messing with the mods Dec 02 00:51:04 What's happening? Dec 02 00:51:09 hahahaha Dec 02 00:51:14 The mods in there are so bad. Dec 02 00:51:31 probably some disgruntled person coming back Dec 02 00:51:39 “I’ll show you RTFM..” Dec 02 00:51:42 lol Dec 02 00:52:13 it’s the zak guy Dec 02 00:52:18 of course he stops when everyone join lol Dec 02 00:52:23 :) Dec 02 00:52:35 JacobTabak I have some elements which user can freely move across the screen. When one of the elements (ImageView in my case) is focused (I mean useris currently working with it) I have a transparent layout over it with some elements for visual highlighting of the current object. Dec 02 00:52:36 brclow banned his ip but he’s still there Dec 02 00:52:56 call the pol... #staff Dec 02 00:53:02 And that transparent layout always have same coordinates Dec 02 00:53:09 I guess it’s over :( Dec 02 00:53:20 ANd width/height Dec 02 00:53:33 AlexBerdnikov have you considered using view states? Dec 02 00:53:40 Hm... nope Dec 02 00:53:48 like - make the imageview "checkable" Dec 02 00:54:01 not in the literal sense of being a checkbox Dec 02 00:54:22 but then you can change anything you want with statelist drawables Dec 02 00:55:57 wtf google play music, I'm listening to "Today's Dance Club Hits" and they're putting on "what is love" from the 80's... Dec 02 00:56:02 In fact everything's working as I need now except the cases when ImageView is scaled, so I imitate scaling of the transparent layout over it and repeat all the coordinates/rotation angle/width and height of the underlaying ImageView Dec 02 00:56:26 * pfn is reminded of all those old kattan and ferrell snl skits Dec 02 00:56:40 And the only problem I experience is that RelativeLayout is limited in size by its parent layout Dec 02 00:57:34 Anyway thanks for your suggestions, I'll try them rigth now Jacob Dec 02 01:03:07 God, NetMums is a bad website. I lose all faith in humanity if I stumble upon a thread there. Dec 02 01:03:49 Hrm, how do people feel about injecting LayoutInflater from the ApplicationContext — seems to me like it should be activity level instead? Dec 02 01:07:26 This suggests that there can be theme-related issues when using the application context: http://stackoverflow.com/questions/2118251/theme-style-is-not-applied-when-inflater-used-with-applicationcontext Dec 02 01:07:42 Why are you considering using the application context? Just wondering. Dec 02 01:07:53 don't use application context for any visual resources Dec 02 01:08:04 unless you really don't have any qualifiers that can change on configuration change Dec 02 01:08:39 and yes, application typically does not have any theming applied to it Dec 02 01:11:11 http://stackoverflow.com/questions/27239405/googleauthutil-get-access-token-that-will-provide-an-email-address anyone else Dec 02 01:19:43 TacticalJoke: I wasn't... I was just reviewing someone else's code and thought that might be an issue Dec 02 01:20:07 It seems like Application isn't the right contextual place to have a LayoutInflater since Application is unrelated to UI Dec 02 01:29:26 Is there any way to scale a view but avoid scaling of its children? Dec 02 01:39:38 Totally off-topic, but this is an awesome subreddit: https://www.reddit.com/r/trashy Dec 02 01:39:42 Some NSFW posts there, of course. Dec 02 01:39:56 Trashy Facebook posts and so on. Dec 02 01:40:37 You don't really need to go searching for those. Dec 02 01:42:53 How's your client coming along tJ? Dec 02 01:43:21 Pretty well. Implementing a "Load More" thing on posts and comments. Dec 02 01:43:28 The latter case is way trickier. Dec 02 01:43:37 hmm Dec 02 01:43:37 Especially since comments can nest indefinitely. Dec 02 01:43:44 Not sure what to do about that. Probably just stop at some point. Dec 02 01:43:57 can you just do it like reddit? Dec 02 01:44:00 The Reddit site loads a new page when comments nest too far. Dec 02 01:44:01 Ya. Dec 02 01:44:03 I might. Dec 02 01:44:50 I don't think it's ideal, though. Dec 02 01:44:54 RES > * Dec 02 01:44:55 Taking the user out of the context completely. Dec 02 01:45:02 Then again, what's the alternative. Hmm. Dec 02 01:45:06 well can't you just do a like tree based on subject line or first line? Dec 02 01:45:10 and let the user expand Dec 02 01:45:14 or collapse Dec 02 01:45:25 with a expand all, maybe with a karma threshold? Dec 02 01:45:26 I guess the issue is that they might just nest too far. Dec 02 01:45:32 I could simply wrap, but I dunno how that'd look. Dec 02 01:45:42 why is nesting too far bad? Dec 02 01:45:49 Because we run out of pixels at some point. :D Dec 02 01:45:52 just don't ident it, use a color scheming or something? Dec 02 01:46:04 make it flat, but use some like indicator Dec 02 01:46:08 so a 3x nested is >>> Dec 02 01:46:11 and 5x >>>>> Dec 02 01:46:11 Yeah, I was thinking about that. Dec 02 01:46:13 and so on Dec 02 01:46:15 Though would it look weird? Dec 02 01:46:24 Because it'd be a whole new display mode. Dec 02 01:46:24 not on a phone, you don't want to waste the space indenting Dec 02 01:46:36 thought that was the point of making a better reddit client? ;p Dec 02 01:46:50 Well, I want to support indenting by default. Dec 02 01:47:00 I think indenting is great. Dec 02 01:47:12 i wouldn't identing on a 2.5' or 3.5' screen is kinda bad Dec 02 01:47:22 Not indenting is murder to read, though. Dec 02 01:47:27 use color coding Dec 02 01:47:40 or indicator marks, Dec 02 01:47:44 so it can stay flat Dec 02 01:47:56 Does any Reddit client do that? I'd be curious to see how that looks. Dec 02 01:48:01 not sure Dec 02 01:48:10 but i think it would work and be fairly smart about handling it Dec 02 01:48:23 It'd be easy to implement, but I wonder how the UX would be. Dec 02 01:48:34 really no different than indentations Dec 02 01:48:47 like i said you can do expand all, or expand specific by clicking on the indicator Dec 02 01:48:52 the indicator expands, but it doesn't indent Dec 02 01:49:39 I might try it, but to be honest I think it'd make the comments difficult to read. Dec 02 01:50:22 It's so hard to match the colours, especially if sub-threads are long. Dec 02 01:50:30 The two reds (or whatever) could be miles apart. Dec 02 01:50:42 I'm assuming that sub-threads are expanded, of course. Dec 02 01:50:49 then do highlighting Dec 02 01:50:59 like the current subtree is all highlted one color Dec 02 01:51:13 when you focus out of it goes back to default non-active/non-focus Dec 02 01:51:25 and the deeper you go the more alpha or whatever Dec 02 01:52:37 that’s a nifty idea Dec 02 01:53:35 TacticalJoke, do you have 5.0? Dec 02 01:53:44 My newest device is on 4.4. Dec 02 01:54:16 well you have the emulator right? Dec 02 01:54:30 Yeah. Dec 02 01:54:30 it would be cool if your app did what pressing (square?) does Dec 02 01:54:47 it brings up all the tasks or what have you Dec 02 01:54:51 in kind o fa rollodex format Dec 02 01:54:57 IDK what it’s called or if there is code for it Dec 02 01:55:06 Displaying Reddit comments like that? Dec 02 01:55:19 I was thinking subreddits Dec 02 01:55:26 comments could be interesting too Dec 02 01:55:37 err i mean like front page not subreddits Dec 02 01:55:40 Yeah, that's an interesting idea. Dec 02 01:55:54 little preview of what’s goign on Dec 02 01:56:05 tap and it inflates the whole thing Dec 02 01:56:27 not sure what’s involved though but assuming your app is like reddit is fun, I would use yours because of that one feaure only Dec 02 01:57:20 maybe some multi-touch action to slide the card down some more Dec 02 01:57:25 so you can read that next line or two Dec 02 01:57:37 see more image.. etc Dec 02 01:57:55 That could work really well. Dec 02 01:57:55 would probably me more friendly on larger format displays.. Dec 02 01:58:00 Like Google Chrome's "Tabs" button. Dec 02 01:58:02 be* Dec 02 01:58:48 not familliar Dec 02 01:58:59 I guess, when you think about it, a Reddit client is basically a very specific web browser. Dec 02 01:59:06 yeah haha Dec 02 01:59:08 Google Chrome shows open tabs in that way. Dec 02 01:59:24 oh ok cool Dec 02 01:59:31 I wonder what it would take to load all that content thouhg Dec 02 01:59:47 in this intance, the content is already loaded because you’ve been to those paged Dec 02 01:59:53 pages* Dec 02 01:59:56 Yeah. I wonder how that'd work out. Dec 02 02:00:12 Getting a subreddit listing isn't hugely expensive, but it can take a moment. Dec 02 02:00:26 yeah btu imagie getting the whole front page that way.. Dec 02 02:00:27 Plus, API clients are limited to 30 requests every 60 seconds. Dec 02 02:00:36 is that free oro paid? Dec 02 02:00:40 Free. Dec 02 02:00:56 is there a paid option? (not that I’m suggesting that at all) Dec 02 02:01:04 jsut curious Dec 02 02:01:07 Of the app? Nah. Dec 02 02:01:18 no I mean for devs.. if they want more than 30 Dec 02 02:01:23 The goal is to make a great Android Reddit client for free. :D Dec 02 02:01:26 Oh. Dec 02 02:01:28 No. Dec 02 02:01:30 is that per app or developer like google has API heys Dec 02 02:01:33 You can get 60/60 if you use OAuth2. Dec 02 02:01:56 Cacheing server? lol Dec 02 02:02:06 that’s getting too complicated though Dec 02 02:02:16 and you don’t have a customized experience Dec 02 02:02:20 I guess I need to figure out some caching strategy. Dec 02 02:02:25 I don't like too much caching for Reddit. Dec 02 02:02:31 But I guess images are a good candidate. Dec 02 02:02:46 yeah text is easy Dec 02 02:02:53 thumbs are a different story Dec 02 02:02:56 The client I currently use tries to cache everything for about 12 hours by default. Dec 02 02:02:57 It's crazy. Dec 02 02:03:09 on the phone? Dec 02 02:03:12 Go back to a subreddit 11 hours later and it wants you to see the cache. Dec 02 02:03:15 Yeah. Dec 02 02:03:28 refresh button lol Dec 02 02:03:32 or PTR Dec 02 02:03:49 It sounds old-fashioned, but I prefer a Refresh button here. :) Dec 02 02:03:59 Because we're clearing and adding (rather than prepending). Dec 02 02:04:29 PTR could work for "get earlier comments/posts", though. Dec 02 02:04:37 Or "get later comments/posts". Dec 02 02:04:43 Though I like a clickable "Load More" so far. Dec 02 02:05:52 TacticalJoke: if you use picasso or universal image loader it'll handle caching for you Dec 02 02:06:06 Yeah, I'll probably end up using Picasso or something. Dec 02 02:06:43 The way that reddit organizes stuff thouhg.. newer might get way messed up Dec 02 02:06:55 i know with reddit is fun sometimes I refresh and everything is in a different order Dec 02 02:15:28 hey my native activity doesn't seem to fully terminate, and then it doesn't come back? any hint/ Dec 02 02:17:53 i.e. I get an onDestroy() but then nothing Dec 02 02:17:57 (on restarting the app) Dec 02 02:21:03 after an onDestroy(), ANativeActivity_onCreate() should be called, right? Dec 02 02:21:33 A newbie here. 1 Question regarding compiling Android apps. Should I pick the highest SDK to compile with or the one I set as minimum ? If I compile with the highest one won't that create a problem for the devices with the min SDK ? Dec 02 02:22:00 Say one method returned int in min SDK but now returns Boolean in highest SDK Dec 02 02:22:20 Would be a problem Dec 02 02:22:37 Or does Android manage all that for you in the background ? Dec 02 02:23:27 ehh does DrawerLayout come only in appcompat 4? Dec 02 02:23:29 Also get some "Calling a method in the system process without a qualified user" Dec 02 02:23:38 my app cant resolve it for some reason.. Dec 02 02:30:44 anyone here playing with xtend on android ? Dec 02 02:30:57 found one blog post about it, otherwise not much Dec 02 02:35:03 hey guys Dec 02 02:35:08 any devs available for quick help? Dec 02 02:35:59 Ajilol12 don't count on it :P Dec 02 02:36:04 but ask away :) Dec 02 02:37:30 basically i have two activitys one login and one main ... once a user logins it goes to the main activity ,,, i also added a new button called continue as guest but the problem is i want to have a if function so when the continue is clicked few text boxes hides Dec 02 02:37:45 in the main activity Dec 02 02:37:52 interesting http://phandroid.com/2014/12/01/google-chrome-malware-psa/ Dec 02 02:37:59 "The page reportedly loads at random when visiting a number of different trusted sites, such as NBC News, ABC or Cracked." Dec 02 02:38:11 some shitty ad network heh Dec 02 02:41:01 anyone can help me on how to have a if function when a button is clicked from a different activity Dec 02 02:47:16 W/ActivityManager( 1035): Activity destroy timeout for ActivityRecord -- what does that mean? Dec 02 02:47:34 (and then app doesn't restart properly) Dec 02 02:48:36 my app returns from the onDestroy() callback Dec 02 02:52:37 pfn: thank you! could you explain why do we need *maven-ant-tasks* ? Dec 02 02:53:00 and blog about it, if not - I will ;) Dec 02 02:53:06 gordon_, because robolectric uses it to download the fake android libraries Dec 02 02:53:14 with reference to your blog / github / whatever Dec 02 02:53:29 and don't bother trying to get it working in scalatest Dec 02 02:53:37 pfn: ok... didnt know that Dec 02 02:53:37 it's practically impossible Dec 02 02:53:41 :( Dec 02 02:54:19 so why it was working ? https://github.com/jbrechtel/robotest Dec 02 02:55:25 I want to throw everything what I'm doing now and check it but.. I cant Dec 02 02:56:44 aaah motherland!! Dec 02 02:57:07 nav drawer… is firing off the onItemClick when I change orientation or close or open the drawer Dec 02 02:57:39 nvm jsut close Dec 02 02:57:57 furthermore I can’t click any other views in the list **** ENDING LOGGING AT Tue Dec 02 02:59:58 2014