**** BEGIN LOGGING AT Fri Aug 15 03:00:00 2014 Aug 15 03:00:06 just use a framelayout Aug 15 03:00:13 toggle visibility to visible and gone Aug 15 03:00:32 make sure if the gesture is not detected as being actionable, the touch returns false Aug 15 03:00:53 or simple pipe the touch to the underlying views manually Aug 15 03:01:14 or you can use intercept touch event to pipe it to the gesture dectector too Aug 15 03:01:18 lots of ways to do it Aug 15 03:02:12 man the steam store stucks balls, Aug 15 03:02:21 the ui navigation im ean Aug 15 03:14:52 IDC stats http://www.androidpolice.com/2014/08/14/idc-android-now-accounts-for-84-7-of-all-smartphone-shipments-grew-33-3-year-over-year-this-quarter/ Aug 15 03:15:20 i didn't think WP would decline, total shipments down too. sad Aug 15 03:17:55 lasserix_: so it doesnt need to be a service right? Just a "visible" app that has a framelayout where I toggle the visibility? Aug 15 03:18:40 I am trying to connect my galaxy tab 4 for use in android studio. it shows "device not connected". I have installed the drivers and changed the media mode. Any ideas? Aug 15 03:29:26 g00s I'd thought I'd read WP decline as inevitable as it never caught on in the US.. and it already peaked where it was popular... Europe Aug 15 03:31:33 i really wonder why. no good devices? features missing? anti MS sentiment? other? Aug 15 03:32:09 did WP7 users get pissed in the transition to WP8? Aug 15 03:32:20 apps missing mostly Aug 15 03:32:24 Lack of dev acceptance? Aug 15 03:32:41 dev acceptance is a tricky one, chicken and egg Aug 15 03:33:00 Win8 confused the dev base Aug 15 03:33:04 if WP was 90% now with Android at 2.3%, i'm guessing most of us would be WP devs Aug 15 03:33:32 maybe it failed because people got pissed with WIndows 8 too ... yeah Aug 15 03:33:47 (if win8 sucks, maybe wp8 sucks too) Aug 15 03:33:56 But who's going to devote time to learning a platform that they can't predict Aug 15 03:34:11 i do remember this - many carriers shunned WP early on Aug 15 03:34:15 Cause we all knew Win8 had no direction Aug 15 03:34:37 Metro itself was pretty cool for what it was designed Aug 15 03:34:42 But not desktop Aug 15 03:34:49 the us carriers would not have a wp8 lineup - or id they did, would not promote it, or not have the devices in their stores Aug 15 03:35:03 or make it a pita to get one Aug 15 03:35:09 And Ballmer insisted on marrying the two Aug 15 03:35:18 i chalk that up to MS trying to be like Apple, buy not letting carriers fuck up the experience Aug 15 03:35:40 Win8 became New Coke :) Aug 15 03:35:56 yeah, i don't keeep up enough with MS to know how much ballmer was involved in that Aug 15 03:36:05 MS did have a new design team Aug 15 03:36:15 that put together metro etc Aug 15 03:36:40 WP will hang around, like BB , perennial also-rans though Aug 15 03:37:04 Android rulez! :p Aug 15 03:37:07 yeah i hope they don't go away. still my favorite phone by far Aug 15 03:37:25 i have absolutely no carrier crapware on my lumia 521 Aug 15 03:37:39 I finally tossed cm11 onto my SGS3 Aug 15 03:37:41 and all the apps can be completely uninstalled, like *completely* unless its outlook Aug 15 03:38:16 so a handful of apps can' be deleted, like setting .. phew Aug 15 03:38:48 Closed source comes with limitations, yes Aug 15 03:39:10 android has plenty of closed source Aug 15 03:39:58 hi, what is the recommended minSdkVersion nowadays? Aug 15 03:40:07 for a new app Aug 15 03:40:11 15, maybe 16? Aug 15 03:40:46 i'd probably do 16 ... especially if you plan on it taking a few more months Aug 15 03:40:56 so ignore the 2.x versions completely? Aug 15 03:41:02 oh god yeah Aug 15 03:41:03 if(sharedPrefs.getBoolean("wantsPush", true) && (sharedPrefs.getBoolean("pushRegistered", false))){ do something} <- shared prefs: wantsPush = true, pushRegistered=false. Not getting called. am I crazy? Aug 15 03:41:04 and 3.x as well Aug 15 03:41:11 and 2.3, 3.0 Aug 15 03:41:14 not evaluating to true i should say Aug 15 03:41:20 well there really isn't much 3.0 anyhow Aug 15 03:41:37 g00s: 3.0 is the tablet one yea? Aug 15 03:41:42 yeah Aug 15 03:42:02 it also depends on what APIs you are using. if you were using BLE, i'd say fuck, minSdk=19 Aug 15 03:42:29 because bluedroid was (until recently) still a fucked up piece of shit Aug 15 03:43:18 f00dMonsta also probably depends on your market geography Aug 15 03:43:30 if emea, than maybe 2.3 i guess :| Aug 15 03:44:42 g00s: i'm newb, no iea what emea means lol Aug 15 03:45:08 http://en.wikipedia.org/wiki/Europe,_the_Middle_East_and_Africa Aug 15 03:47:04 Leeds hows the new app selling ? Aug 15 03:47:24 er, what? Aug 15 03:47:44 the groupon thing Aug 15 03:48:20 it isn't, really Aug 15 03:48:29 boss still on vacation ? Aug 15 03:50:11 yup Aug 15 03:50:14 one more question... what should the target version be? Eclipse defaults to the latest version 21 Aug 15 03:50:22 which isn't even released yet Aug 15 03:51:03 my sdk manager doesn't have 21 Aug 15 03:51:06 O.o Aug 15 03:51:11 g00s: ur old, just like perl :P Aug 15 03:51:29 i dunno, not *old* yet :) Aug 15 03:52:01 :) Aug 15 03:52:04 the sdk manager is wierd, it shows the L preview version as version 20 Aug 15 03:52:31 yeah i don't understand how they are labeling 20 L and 20 W its confusing as hell Aug 15 03:52:53 anyhow, i have targetSdk=19 Aug 15 03:53:17 does geofence take care of app quit and such? Aug 15 03:58:43 capella-s3 i wonder how that amazon / android phone is doing Aug 15 03:58:54 of course they'll probably never say Aug 15 04:00:54 my gmail app on my n7 is totally fucked Aug 15 04:01:36 i mean, totally. not getting notifications for new messages, when i press a message from X it shows an unrelated thread instead, basically the fucking wrong email Aug 15 04:01:38 re: amazon phone ... totally off my radar so far :/ Aug 15 04:01:40 re: gmail on my N7, I use K9-mail Aug 15 04:02:05 g00s: do you know if n6 is going to be good? Aug 15 04:02:21 that stupid 6" phone ? Aug 15 04:02:43 i have no idea, as capella would say 'off my radar' Aug 15 04:03:01 if they had a 4" one i could run (literally) with than yeah i'd be interested Aug 15 04:03:12 Latest news says 5.2" Aug 15 04:03:21 heh- n6? or this http://netdna.webdesignerdepot.com/uploads/cellphone_design/dkmb86g_487pr55s2hc_b.jpg Aug 15 04:03:24 i also read something like 5.9 Aug 15 04:06:19 capella: you got me :P Aug 15 04:07:22 i am going to ask this questino again hoping someone has an answer, before I hop on google... does geofencing run in the background once set, even if your app is closed? Aug 15 04:07:38 * capella is embarassed to admit he used to carry one of those on support shifts Aug 15 04:07:51 capella: how old are you 0.o Aug 15 04:08:03 that's the embarassing part XD Aug 15 04:08:32 im in my early 20s :) Aug 15 04:11:45 capella holy crap really? when i entered the workforce pagers were a big thing Aug 15 04:12:03 the hotshots were all like "hey, i'm important, they gave me a pager!" Aug 15 04:12:12 i thought, yeah dumbass its a leash Aug 15 04:13:31 :) RIT '81 Aug 15 04:14:04 and yah, "leash" Aug 15 04:14:17 capella how was the economy upon graduation ? Aug 15 04:14:33 wfm ;) A lot different than now Aug 15 04:21:08 i'd like to submit this bug to google about gmail, its terribad. i'll need to blur a bunch of stuff though Aug 15 04:21:31 how in gods name do you build an email client that shows the wrong message when selected ? Aug 15 04:22:14 if this stuff isn't right, god know what the hell goes on with shiny-box-algos crap like Now Aug 15 04:23:08 The email app only lets you attach a picture or video from inside the app unless you go Share >e-mail Aug 15 04:23:10 pisses me off Aug 15 04:25:21 holy shit, every message i press has the wrong body in detail. its totally fucked up Aug 15 04:31:02 hi Aug 15 04:31:09 im on windows Aug 15 04:31:16 you poor thing Aug 15 04:31:27 should i get android sdk as exe or zip Aug 15 04:31:58 i'd always prefer a zip Aug 15 04:32:09 unless its just a zip of an msi installer Aug 15 04:32:13 heh Aug 15 04:32:46 :) Aug 15 04:33:11 have tried google web designer Aug 15 04:33:40 it turned out that it is just html generator Aug 15 04:33:43 g00s: zip file containing an exe which is a zip extractor Aug 15 04:33:49 those are the best Aug 15 04:34:01 wat Aug 15 04:34:23 those exes that just extract files Aug 15 04:36:30 does the emulator for l preview in material design? Aug 15 04:36:38 ui or is it still holo Aug 15 04:52:50 wow L is very minimalistic Aug 15 04:53:00 even the virtual buttons they are shapes Aug 15 04:53:19 i liek it Aug 15 04:56:41 i wish you can change the color scheme of android l Aug 15 04:56:56 and i hope my phones gets updated to l Aug 15 05:05:14 pretty interesting http://stratechery.com/2014/pleco-building-business-just-app/ Aug 15 05:05:31 " most independent developers starting to realize that free with in-app purchase is the only viable monetization model. " Aug 15 05:05:56 yeah ... but how the $#$F%$% am i supposed to convert my existing paid users to IAP Aug 15 05:06:40 basically google only gives you one option with 'the only viable monitization model' if you were previously paid ... fuck over your existing users Aug 15 05:07:27 thats google for ya Aug 15 05:10:48 I find it weird - and maybe it's just because it's mostly been iOS people - that all the recent hoopla about indies not making a living has completely ignored ad revenue Aug 15 05:17:16 I've got one 'successful' app... about 5000 active users, it's aimed at a very specific location, it's extremely seasonal, and I haven't updated it in 2 years Aug 15 05:18:36 no marketing, etc. - and it's an unofficial app for a local service which now has its own official app(s) Aug 15 05:19:47 on my best days, I might average $1.50 in ad revenue... which really isn't very much, but stacked up against all those negatives? Aug 15 05:20:50 Leeds a good day is $1.50 per day ? Aug 15 05:20:54 seems like it shouldn't be that hard to aim for 10x that, with an actively-maintained and -promoted app - or more than one app - which isn't so limited Aug 15 05:21:59 g00s: it's been a quiet year for typhoons so far - they've mostly been hitting Philippines/Taiwan/Japan, rather than HK Aug 15 05:22:51 yeaah but even $1.50 / hr is like $9 below minumum wage flipping hamburgers Aug 15 05:23:06 nm $1.50 day Aug 15 05:24:02 I'm not suggesting it's a living, of course not - what I'm saying is that a simple app with lots of negatives against it makes *some* ad money Aug 15 05:24:21 but it may not be worth it at all given opportunity cost Aug 15 05:24:37 if you could be making $2 / day doing something else Aug 15 05:24:57 the last update I made on the app was 2 years ago Aug 15 05:26:10 the guys who spend 6 months working full-time - or more than full-time, like 80 hours per week - on a single app, trying to make it amazing and beautiful and whatever... they're playing the lottery, against terrible odds Aug 15 05:27:57 if you churned out 2-3-4 small, simple apps per year, and each one could make $1000+ per year... you're starting to have money worth having... and my point is that it seems that should be relatively easy to do with ad revenue Aug 15 05:28:13 maybe ad revenue & IAP ad-removal Aug 15 05:37:52 does anyone have an example/tutorial on how to edit the drawable directly? Aug 15 06:06:25 Jack3k3: what do you mean Aug 15 06:10:06 well i have a imageview within a scrollview that i want to draw on, like for example draw a line on it relative to image coordinates so if the scroll moves the line moves with it too Aug 15 06:10:19 someone here said i should probably edit the drawable directly but i dont really know what that is Aug 15 06:18:32 looking up canvas Aug 15 06:18:34 and drawing on it Aug 15 06:19:33 how da hell do I disable viewpager from highlighting a tab... Aug 15 06:20:35 why dont you want the selected tab highlighted? Aug 15 06:21:59 because if internet is not avialable, that tab is useless Aug 15 06:22:03 available* Aug 15 06:23:01 well you do know that you are selecting the highlighted tab Aug 15 06:23:05 its not automatically done Aug 15 06:25:11 what do you mean? Aug 15 06:27:46 how do you think an action bar tab gets highlighted? Aug 15 06:28:41 getActionBar().setSelectedNavigationItem(position); Aug 15 06:28:59 if you dont want to highlight a tab then dont highlight it Aug 15 06:29:20 but I have a constraint that is preventing that Aug 15 06:29:25 which is Aug 15 06:29:41 wall of desmin Aug 15 06:29:48 lol Aug 15 06:30:44 which is what? Aug 15 06:30:58 I don't know what you're trying to explain here desmin88 Aug 15 06:31:02 dude Aug 15 06:31:25 Action bar tabs Aug 15 06:31:33 are highlighted by doing this "getActionBar().setSelectedNavigationItem(position);" Aug 15 06:31:42 if you dont want a tab highlighted, then dont do that Aug 15 06:33:00 desmin88, do you think it'd work if I create a new canvas and attach it to my imageview? Aug 15 06:33:45 desmin88: funny because for some reason when I tap on a tab, it gets highlighted, even when I have that code commented out. Aug 15 06:34:15 anyone try L? Aug 15 06:34:41 detachYo: well tabs dont highlight themselves Aug 15 06:37:17 then there is a bug Aug 15 06:37:21 no Aug 15 06:39:30 desmin88: what do you mean no? Lol Aug 15 06:39:40 what you told me clearly didn't work, Aug 15 06:39:43 well, partially Aug 15 06:40:03 "detachYo: well tabs dont highlight themselves" Aug 15 06:41:30 0.o Aug 15 06:41:36 I hope not Aug 15 06:41:44 I have another question Aug 15 06:42:07 when I do for example, implements SeekBar.OnSeekBarChangeListener { Aug 15 06:42:27 do I have to add listener on the SeekBar when initialized? or just overriding the methods in the class will work? Aug 15 06:43:20 like mSeekBar.addOnSeekBarChangeListener(this); Aug 15 06:43:26 or its not necessary? Aug 15 06:47:21 why would it not be necessary Aug 15 06:49:34 all youve done is create a class that implements a seekbarchangelistener Aug 15 06:49:44 your seekbar has no idea it exists unless you tell it Aug 15 06:50:47 oh ok Aug 15 06:50:53 that makes sense Aug 15 06:57:18 hi Aug 15 06:57:22 hi Aug 15 06:58:51 I would like to start UpdateService each time I use ContentProvider's insert. Is it good idea to to start IntentService from ContentProvider's insert() ? Aug 15 07:00:32 Hmmm, someone with more knowledge about that concept has to answer. I have created ContentProviders before, just haven't done anything crazy with it. Aug 15 07:01:00 yacek19 i don't see the problem Aug 15 07:06:16 g00s: should I start service with getContext() ? Aug 15 07:06:30 sure Aug 15 07:09:49 Is there a way to have a connection change listener in a fragment, so that upon availability I will show some context... Almost all examples are using broadcast receivers, which I don't think can change layout visibility. Aug 15 08:20:27 Hit fetch suggested group cluster rate limit. My phone is sending 100s of such messages as soon as I connect my phone. Aug 15 08:23:25 i have an app that is about 4/5 MB in size without images. with images it's 26MB. what is a good approach for dealing with this? would an expansion pack work well here? i need updates to only pull down the code, also needs to work offline so the images are needed on device Aug 15 08:25:22 shrink them Aug 15 08:31:09 the fog do you have a server> Aug 15 08:31:19 just have an installation phase like games do Aug 15 08:31:28 download them from the server, or offer an expansion pack Aug 15 08:31:52 or use danijoo_ and compress them? Aug 15 08:32:24 What's the problem with having them in the apk if you need the user to download them anyway on launch Aug 15 08:32:53 there is no problem but it may cause problems for instance my shitty phone often fails at downloading apps >10 megs sometimes Aug 15 08:33:46 an expansionpack makes no sense for 20 mb Aug 15 08:34:04 I would download them on first install Aug 15 08:34:05 its for 100s Aug 15 08:34:23 the_fog: the app size was expanded if you didn't know Aug 15 08:36:13 ive shrinked them already but since then ive found tinypng which is a nice resource. i might be able to shrink some more with that Aug 15 08:36:33 lasserix: i have a server yes Aug 15 08:38:11 SimonVT: subsequent updates will only pull down the code (4MB) as opposed to all the images again Aug 15 08:38:28 Play store does delta updates Aug 15 08:39:25 haven't heard of that, checking it out now... Aug 15 08:51:27 me neither.. and my experience tells my something else, too Aug 15 08:54:55 danijoo_: what is "for the 100s" Aug 15 08:55:06 They announced it at io a few years ago and released it shortly after Aug 15 08:55:48 SimonVT: So why is my app always downloading the same 18mb when i change one line of code ? Anything that I have to set to active it? Aug 15 08:56:09 the_fog: I mean that expansion packs for the app dont really make any sense for only a few megs Aug 15 08:57:30 It shows the size of the apk when updating, it doesn't necessarily download that much Aug 15 08:57:39 Use a traffic monitor or something Aug 15 08:57:46 ah okay. thanks :) Aug 15 08:57:52 ill check this out with the next update.. Aug 15 08:58:49 ah right Aug 15 09:00:44 the_fog just put them on your server Aug 15 09:00:51 check if the app needs them, and them download when there is wifi Aug 15 09:01:00 that way updates don't have to redownload etc Aug 15 09:01:09 lasserix: whats the advantage of that over putting them into the apk? Aug 15 09:01:10 keep initial installation size small Aug 15 09:01:21 beside it requires lots of code with lots of bug-possibility Aug 15 09:01:23 updates to app will also be as small Aug 15 09:01:28 i guess Aug 15 09:01:34 simple json get not so difficult Aug 15 09:01:46 lasserix: as SimonVT tought, updates wont include the images that didnt change Aug 15 09:01:48 you can just use like okhttp Aug 15 09:02:06 and initial size might be small but still you need to get them wich results in the same size.. Aug 15 09:02:07 and if you ever want to swap out or add more images, you can just do check on server Aug 15 09:03:05 danijoo_: lots of code? picasso is small, robust and easy to use to do exactly this? Aug 15 09:03:34 lasserix: he told us he need the images offline available. Aug 15 09:03:38 picasso dont offer that Aug 15 09:03:41 anyways putting them in the app IS fine, but since you have a server could be a good option Aug 15 09:03:55 yeah you download them when it starts or it finds them missing or whatever Aug 15 09:04:26 typically the average user will be in a wifi zone at some point during the day when they first install the app Aug 15 09:04:33 afaik picasso only uses a cache, which is not forever. so once wifi/data is off, you have a good change to not have the images available. Aug 15 09:04:37 so the connection is not a problem, since you only need to do it once Aug 15 09:04:50 oh i thought picasso was an easy internet getter for images Aug 15 09:04:55 lasserix: picasso clears them from time to time. Aug 15 09:04:59 its like your browser cache Aug 15 09:05:22 none the less having an intent service that is started if the image is missing is relatively straight forward Aug 15 09:05:23 and if any other app on your phone needs room, the cached images will be cleared out Aug 15 09:05:31 If you're fine with having to update the apk to change images, there's no reason to put them anywhere but the apk Aug 15 09:05:50 That's just added complexity for no gain Aug 15 09:05:54 correct Aug 15 09:06:27 we just have very differnet views of complexity ;p Aug 15 09:06:44 but yeah why not stuff ithem in the apk? Aug 15 09:07:16 so you think drag+drop in the apk is more omplex then having a server, maintain a server and write the logic to download/update images ? ^^ Aug 15 09:07:35 then we really have different views on that :p Aug 15 09:07:38 no i just think either is about as complex compared to things that are actually as complex Aug 15 09:08:06 plus i imagine he might want to swap out the images Aug 15 09:08:24 just a gut feeling, so having a server protocol would not be a bad idea in that case Aug 15 09:08:30 since he already has a server.. Aug 15 09:09:40 the fog can you reveal the purpose of the app / the point of such large image sizes? Aug 15 09:10:02 you making ultrahighres swimsuit calender or something? Aug 15 09:10:25 its a birdwatching app, reference guide listing all the birds in ireland Aug 15 09:10:53 yeah see a server would be good, because then you could easily update the data... Aug 15 09:11:02 you could add people sending in their own photos Aug 15 09:11:06 etc etc Aug 15 09:11:13 expand it to bird call sounds Aug 15 09:11:23 needs loads of images and offline for when users are out of range, which will be often Aug 15 09:11:28 all kinds of stuff you could do with a server for a bird watching app Aug 15 09:11:40 yeah so just like google map allows offline caching Aug 15 09:11:53 "you making ultrahighres swimsuit calender or something?" - I'd download :D Aug 15 09:12:10 you could organize regional packages that they could download from your server Aug 15 09:12:36 anyways just a suggestion-- i agree easiest and logical thing to do is just install them with the apk Aug 15 09:12:52 but having a server io would also be very useful for the aforementioned reasons, espicially if you already have the server Aug 15 09:13:17 that way you could make it community driven, since i imagine bird watcher communites are probably pretty hard core Aug 15 09:13:30 and thsoe type of people would love to show off photograph trophies Aug 15 09:13:37 espicially with the power of phone cameras these days Aug 15 09:13:51 yeah.. loads of scope but it's a pet project so lots of time investment for a free app, so at this point, whatever is fastest Aug 15 09:13:58 ahh Aug 15 09:14:24 very cool app ive always wanted to make one like that for california Aug 15 09:14:52 be sure to include bird call sound clips! Aug 15 09:16:01 yeah, have a few user feature requests for that :) Aug 15 09:18:33 well speaking of wildlife i have a nearly feral cat in need of attention, goodnight everybody! Aug 15 09:29:35 Hi there. I have a tiny problem with action bar and "settings". I'm trying to use settings in from action bar in sdk10 and above but no luck so far: http://i.imgur.com/3mONOou.png?1 I extended ActionBarActivity, I added android:theme="@style/Theme.AppCompat.Light" for activity in AndroidManfest. I've added compile 'com.android.support:appcompat-v7:20.0.0' in build.gradle. Any ideas? Aug 15 09:29:54 This is the manifest file: http://sprunge.us/Lgaa and this is snippet from build.gradle http://sprunge.us/SecD and I don't see "settings" icon in action bar in sdk 10. ANy ideas? Aug 15 09:30:08 frojnd: why do you expect to see Settings? Aug 15 09:30:24 Because I've created it Aug 15 09:30:55 frojnd: where do you create them? Aug 15 09:31:04 Estel: and by settings I mean icon for settings Aug 15 09:31:14 You have to do something in onCreateOptionsMenu Aug 15 09:31:27 SDK10 AVD devices might well have been configured with a hardware menu button Aug 15 09:31:36 frojnd: that icon is called the Action Overflow icon Aug 15 09:31:46 And it doesn't appear on a device with a hardware menu button Aug 15 09:32:04 Though I don't know how true that is with appcompat tbh Aug 15 09:32:45 aha Aug 15 09:32:56 that might be true, because I've hw button for sdk10 Aug 15 09:33:03 let me change skin, thank you for suggestion Aug 15 09:33:16 it's not a skin issue, it's a thing Aug 15 09:33:34 what happens when you press the menu button on both systems? Aug 15 09:34:11 ah let me reopen sdk10 Aug 15 09:34:11 second Aug 15 09:34:44 frojnd: out of interest, why are you targetting SDK10? Aug 15 09:35:14 my wife has 2.3 android and samsung s advance Aug 15 09:35:50 I'm targetting sdk 19 but some still uses 2.3 Aug 15 09:36:22 Well I hope it's worth the effort for you to support it ^^ most of us don't bother any more Aug 15 09:36:46 Btw given that those phone /have/ a hardware menu button, you wouldn't see an overflow icon on them. Aug 15 09:37:53 there is no workaround for phones with hw buttons? Aug 15 09:38:00 and sdk <11 Aug 15 09:38:11 Hello! Aug 15 09:38:40 I need simple mechanism to hash url string Aug 15 09:38:45 like md5 Aug 15 09:38:49 I think there is, but I can't recall it Aug 15 09:38:55 Estel: when I press menu button on sdk 10 and sdk 19 settings appear at the bottom Aug 15 09:38:56 Jov: Well, then just do that. Aug 15 09:39:04 But it is the behaviour that the user would expect Aug 15 09:39:07 kakazza: Make md5 ? Aug 15 09:39:23 Or SHA1 or whatever you want, I don't see a questions. Aug 15 09:39:27 -s Aug 15 09:39:31 kakazza: but it not fust algoritm Aug 15 09:39:52 Is your app so optimized that hashing over 200 bytes is the bottleneck? Aug 15 09:40:12 Hm Aug 15 09:40:14 I mean, I bet it almost takes up to 1ms to do that. Aug 15 09:40:41 Just do it, it's almost instantaneous, especially if the input is just an URL. Aug 15 09:40:57 Ok. Thanks. Aug 15 09:41:11 SDK don't have own md5 function? Aug 15 09:41:26 Because in previous projects I wrote own Aug 15 09:41:33 Estel: I tried with no hardware keyboard for sdk10 and still no "settings" icon Aug 15 09:41:59 Jov: It doesn't, you have to use the one that comes with Java, MessageDigest and everything. Aug 15 09:42:09 time to check out sherlock or smth like that Aug 15 09:42:25 There are libraries that offer that functionality but surely you'll find about 17 solutions on StackOverflow, ready to use. Aug 15 09:42:39 frojnd: minSdkVersion 15 ;) Aug 15 09:42:47 for sherlock? Aug 15 09:42:48 MessageDigest digest = java.security.MessageDigest.getInstance(MD5); Aug 15 09:42:57 kakazza: Thanks Aug 15 09:42:59 frojnd: To not have to use Sherlock. Aug 15 09:43:08 frojnd: sherlock is deprecated Aug 15 09:43:29 Unless you absolutely must support API <15, it's a shrinking user base. Aug 15 09:43:30 I'm not sure what your problem is? Aug 15 09:44:01 Estel: I don't see "setting icon" in the action bar for sdk 10 Aug 15 09:44:10 Also, Sherlock deprecated the ForceOverflow theme long ago. Aug 15 09:44:10 frojnd: yes, that's by design Aug 15 09:44:33 Well how do I show it if there is a way Aug 15 09:44:56 It's not a bug, it's a platform expectation that there's no icon there. See "Action overflow" at http://developer.android.com/design/patterns/actionbar.html Aug 15 09:46:07 Even on a Galaxy S4 the user still has a hardware menu button and will have to press it to open the menu Aug 15 09:47:07 Estel: I see. So I'll just ditch it and implement in navigation drawer... Aug 15 09:47:22 Why? It works fine as it is. Aug 15 09:47:35 oh right :) ofcourse.. Aug 15 09:47:47 action buttons are present though? Aug 15 09:47:58 If I were ever to implement some shorcuts Aug 15 09:48:15 Yes, it's only the overflow menu that's linked to the hardware menu button Aug 15 09:48:51 Splendid Aug 15 09:49:54 Thank you Estel for explanation and additional docs :) Aug 15 09:59:50 Hello friends... how are you, want to make an overlay of a product details after user click on it... please how can i go about it. Thanks! Aug 15 10:12:50 wssup Aug 15 10:16:28 Anyone know if I need to get the android sdk to get adb, or can I get adb standalone? I'm on linux Aug 15 10:18:04 i dont think so Aug 15 10:18:12 if you download nexus stock image Aug 15 10:18:15 adb is there Aug 15 10:18:23 afaik Aug 15 10:18:57 so adb isn't dependant on the sdk? Aug 15 10:19:12 dont think so Aug 15 10:19:38 Thanks, I'll try it out Aug 15 10:20:18 what distro do you have ? Aug 15 10:20:24 it's possible that adb is in repo Aug 15 11:00:30 Android studio requires gradle sync every 30minutes +- (it somehow loss the sync even If I don't touch the IDE). is it a known issue? Aug 15 11:01:58 I'm in the android terminal as root but I can't make files executable, just get "Ban mode" Aug 15 11:02:01 Anyone know what's going on Aug 15 11:04:20 compile 'com.google.android.gms:play-services:5.0.77' <-- how can i find out what the latest version is? Aug 15 11:05:43 osxorgate, just put + at the end and it'll grab the newest Aug 15 11:06:40 so 5.+ Aug 15 11:09:09 I actually want to know how to find out what the latest version is :) Aug 15 11:09:26 same Aug 15 11:10:24 Android studio requires gradle sync every 30minutes +- (it somehow loss the sync even If I don't touch the IDE). is it a known issue? Aug 15 11:12:26 no it doesnt Aug 15 11:12:33 and no it's not Aug 15 11:13:03 rgr: really, it just happend for me? Aug 15 11:13:06 I correct myself : I'm not aware of it needing that and havent heard of anyone else saying that Aug 15 11:13:20 in fairness I use intellij but its close enough. Aug 15 11:13:37 intellij+gradle? Aug 15 11:13:42 Do you have something messing with your local maven repo? Aug 15 11:13:43 yes Aug 15 11:14:15 rgr: I don't have local maven repo, I went to eat, and lost the sync :/ Aug 15 11:14:19 it does not happen with me (using AS) Aug 15 11:14:42 lost the sync. can you be more explicit. Aug 15 11:15:10 gradle sync takes care of caching any maven artifacts. see in .m2. Aug 15 11:17:54 rgr: well, there is the icon of running the app, so it has a red X on it Aug 15 11:31:42 I really cant think whats causing this unless sync is failing or something in the build script is deleting the gradle sync data but thats hardly likely. Aug 15 11:43:18 a red X? Are you sure that stands for gradle? Aug 15 11:46:34 Guys Aug 15 11:46:50 I try load images to linear layout Aug 15 11:47:03 Use dynamic create Aug 15 11:47:11 and load images from files Aug 15 11:47:12 img.setImageBitmap(BitmapFactory.decodeFile( (new File(imgUrl + i)).getAbsolutePath() )); Aug 15 11:47:29 And get error Out of memory Aug 15 11:47:39 image count ~ 100 Aug 15 11:47:55 What I should do for fix this? Aug 15 11:48:17 Load images only on scroll? Or need flush something? Aug 15 11:48:54 Jov: please dont use the return key as punctuation. It makes it hard to read. Long lines can be read by most people.... Aug 15 11:49:33 Jov, yes, loading 100 images will make you run out of memory... use a ListView or some other adapter view for images so they will get loaded only when they're displayed Aug 15 11:49:37 you mean many messages from me? :) Aug 15 11:49:37 and post your code in a pastebin. Memory issues with android and large images are well documented! Aug 15 11:49:59 hi guys. can someone tell me if there is something wrong with my onCreate method here: http://bpaste.net/show/V3hvEbUWPp7TkNntfsMJ/+63 Aug 15 11:50:05 Load when needed and dispose of when not. Aug 15 11:50:26 Hm. Ok I read this. Thanks Aug 15 11:50:44 "Sorry, but the page you requested was not found on this server. " Aug 15 11:51:05 hmm. is this my emacs jump to url function messing up or is it really not there? Aug 15 11:51:32 Hey guys Aug 15 11:51:37 http://bpaste.net/show/V3hvEbUWPp7TkNntfsMJ/ Aug 15 11:51:39 sorry Aug 15 11:52:07 "Import the library project into your Eclipse workspace. Click File > Import, select Android > Existing Android Code into Workspace, and browse to the copy of the library project to import it." i follow the guide and i try to load the google play services inside my project using eclipe but its not responding Aug 15 11:52:23 the finish button do nothing :/ Aug 15 11:53:27 uhlm, yes Aug 15 11:53:41 uhlm: What happens? Did you step through with the debugger and pinpoint the point of failure. Always use the debugger first. Aug 15 11:54:16 but doing that in the onCreate isnt nice in the first place. Aug 15 11:55:19 rgr: NetworkOnMainThreadException Aug 15 11:55:32 anyone can helkp me im kinda newbie Aug 15 11:55:42 uhlm: what did you expect to happen? does it freeze up in the http connection part? Voila... there you go. Aug 15 11:55:49 use the debugger. and now you know. Aug 15 11:56:12 That's a pretty self explanatory error. Aug 15 11:56:35 http://developer.android.com/reference/android/os/NetworkOnMainThreadException.html Aug 15 11:56:44 what will happen in older apis if i use animateLayoutChanges in LinearLayout ? Aug 15 11:56:44 uhlm, wow, so even the framework itself is telling you what you're doing is a bad idea... so take a hint, lol Aug 15 11:57:10 vegetablesalad19, will probably be ignored Aug 15 11:57:52 * rgr wishes more people would use the debugger and let the system tell them what the error is. Its so easy to get solutions to first line issues. Unfortunately too many antiques tell noobs using the debugger is bad practice Aug 15 11:59:17 vegetablesalad19: it is completely ignored, the only difference is on older android platform versions 2.2 and below will log the error to logcat.. thats it Aug 15 11:59:28 ravilov, thanks, I hope it wont throw exeptions or smth Aug 15 11:59:35 that will do Aug 15 12:00:42 vegetablesalad19, only one way to know for sure, at least emulator images are much cheaper than physical devices Aug 15 12:01:21 alyways actually test your app against the sdk you claim is minsdk Aug 15 12:06:03 Good Day. I would like to take control of a rooted device with adb activated. The device has not screen.... ( its broken ). What do you suggest I use ? Aug 15 12:06:14 no* screen Aug 15 12:07:30 vegetablesalad19: it wont throw an exception Aug 15 12:07:41 Unknown0BC, -> #android-root Aug 15 12:08:16 You think they might refer me to #android-remote ? Aug 15 12:08:16 :) Aug 15 12:08:18 I'll give it a shot. Aug 15 12:08:25 Thanks ravilov Aug 15 12:10:36 In the mean time if anyone has suggestions, i'm reading. Aug 15 12:10:39 thanks. Aug 15 12:13:00 I don't even know what you mean by control Aug 15 12:13:54 see the screen and send input commands. Aug 15 12:14:14 Like you would "normally". Aug 15 12:14:24 Like PCAnywhere. Aug 15 12:14:34 :) Aug 15 12:14:41 ( ancient program ) Aug 15 12:15:08 Or maybe make it do circus tricks ?, only a little joke Aug 15 12:15:09 he he Aug 15 12:16:34 Like screencast software. Aug 15 12:19:59 Guys. Please give link for big image list realisation docs Aug 15 12:20:05 I can't find ^( Aug 15 12:20:49 does gradle build support android libraries with ndk already ? Aug 15 12:22:06 wow, I dont understand many of the questions here, indication I need more coffee :) Aug 15 12:25:36 lol Aug 15 12:25:43 Hi. I'm wondering if there's any way I can reference my Activity's fields directly from a fragment? I mean I can get a reference to that object with "getActivity().myField" but can I somehow reference it directly like "myField" ? Aug 15 12:26:06 yes you can cast it to your activity Aug 15 12:27:10 What do you mean cast it to my activity? Aug 15 12:28:29 Mavrik: Can you give links for big image lists realisations or docs? :-[ Aug 15 12:28:29 ((ActivityThatYouWantAccessTo)getActivity()).myField Aug 15 12:28:47 StingRay_, maybe you're just getting old Aug 15 12:28:49 * ravilov hides Aug 15 12:29:11 ravilov: when I was in my teens and 20's I was still old Aug 15 12:29:17 now I'm ancient Aug 15 12:29:22 dino Aug 15 12:29:33 better thing would be that activity to implement some pre-defined interface and assign it in fragment with ClassCastExpection Aug 15 12:29:35 gordon_, I think you misunderstood. I can access it with getActivity().myField but I want to call it like myField. Aug 15 12:30:09 skulltower, only if your fragment class is a non-static inner class of your activity Aug 15 12:30:35 skulltower: ok I get it now Aug 15 12:30:55 ravilov, ahh so I can't create some kind of a field inside of the fragment that would reference activity's object? Aug 15 12:30:58 you can always make field in your fragment and assign that value once Aug 15 12:31:15 skulltower: you can Aug 15 12:31:26 unless it's some kind of primitive type Aug 15 12:31:27 The thing is I don't want to copy the field I want to have direct access Aug 15 12:31:29 skulltower, not like that, no Aug 15 12:31:29 so it will be copied Aug 15 12:31:55 I really don't see what's wrong with getActivity().field Aug 15 12:32:19 It's so long xD Aug 15 12:32:23 ravilov: probaly casting Aug 15 12:32:40 gordon_, no Aug 15 12:32:52 if he had direct access, he would still need to cast Aug 15 12:34:57 if he would assign it first to fragment field ? Aug 15 12:35:05 not sure Aug 15 12:35:22 gordon_, you're missing the point here Aug 15 12:35:58 well it doesnt cover his question, that's right Aug 15 12:36:01 What about List myList = getActivity().someList; does myList and getActivity().someList refere to the same object? Aug 15 12:36:11 skulltower: yes Aug 15 12:36:15 yes Aug 15 12:36:40 someone should learn some java ;) Aug 15 12:37:00 Does that stand for primitive types also? Aug 15 12:37:07 it's still not the same field, you just have two separate references to the same data area Aug 15 12:37:20 skulltower, primitive types are not references Aug 15 12:38:18 looks to me you're overly complicating it here, like I said I really don't see what's wrong with getActivity().field Aug 15 12:39:09 hi guys, im gonna plan a project in using a web service and some other stuff like annotations. i need a short clarification on the frameworks and libraries im gonna use and if there are newer or better frameworks that will do the job ...e.g. im planning of implementing "butterknife(instead of AA), jackson, jsoup, actionbarsherlock, maybe androidquery" ...any suggestions? Aug 15 12:39:59 It's because I need to access the activity's fields multiple times inside of multiple fragments and getActivity() get's a little bit annoying Aug 15 12:42:36 skulltower: then design it different Aug 15 12:43:04 a map and a method ? or an interface ? Aug 15 12:43:08 defuex: dagger butteknife appcompat (or not if you dont want to use android 2.x) Aug 15 12:43:08 skulltower, annoying or not, it still seems the proper way. if it helps, you can always do final Activity a = getActivity() and then do a.field Aug 15 12:43:09 you have options Aug 15 12:43:47 defuex: retrofit Aug 15 12:44:08 isnt dagger included in butterknife? Aug 15 12:46:18 §Don't think so? Aug 15 12:48:01 no it's not Aug 15 12:48:39 ravilov, gordon_ thanks for your help. And sorry for my stupid questions :-) Aug 15 12:48:54 there are not stupid questions Aug 15 13:13:02 Hey guys , wondering if someone can help me with GCM testing Aug 15 13:13:08 i have no idea how to start Aug 15 13:14:20 Tomashe, you already asked that twice so far Aug 15 13:14:41 don't assume it went unnoticed, instead assume there's no one arround at the moment to help Aug 15 13:14:52 also Aug 15 13:14:56 asking the actual question helps. Aug 15 13:15:15 Mavrik, he did, he's having problems importing the lib into eclipse Aug 15 13:15:22 unless he sorted that out and this is a different problem Aug 15 13:15:28 Tomashe: You should try http://www.jetbrains.com/idea/ Aug 15 13:20:23 OK Aug 15 13:30:01 I make ListView adapter with images. I load images to list from SD card. Aug 15 13:30:31 And after some scroll app die with "Out of memory" Aug 15 13:31:08 I understand, I need remove previous inflated views, but how? Aug 15 13:31:23 listView should recycle views Aug 15 13:31:49 maybe you are holding reference to images, or they are simply too big as you are not loading them with display size in mind Aug 15 13:31:51 without me? Aug 15 13:31:59 Jov yes Aug 15 13:32:30 listView.getView() <--- has a view parameter that is a recycled view Aug 15 13:32:40 Images ~1mb each, In one view I load 2 images Aug 15 13:32:45 if it's not null, recycled Aug 15 13:32:51 I scroll more 10 views Aug 15 13:33:13 To load images I use ((ImageView)view.findViewById(R.id.image1)).setImageBitmap(BitmapFactory.decodeFile((new File(imgUrl + position)).getAbsolutePath())); Aug 15 13:33:52 so you are loading a full image ? rather than optimal size for whats needed ? Aug 15 13:33:56 yes, that is not good enough, Jov Aug 15 13:33:57 jesus lord Aug 15 13:34:10 look at the tutorials on loading images on d.android.com Aug 15 13:34:17 Don't understand you guys.. Aug 15 13:34:19 it will show you why you should not really do that Aug 15 13:34:41 I should load previous? Aug 15 13:34:45 ... Aug 15 13:34:55 http://developer.android.com/training/displaying-bitmaps/load-bitmap.html Aug 15 13:34:59 My english is very bad :) Aug 15 13:35:02 there i did the search for you ;) Aug 15 13:35:21 StingRay_: Thanks Aug 15 13:35:24 np Aug 15 13:35:31 OR Aug 15 13:35:44 https://github.com/nostra13/Android-Universal-Image-Loader Aug 15 13:35:59 if you dont want to learn or understand much, use that lib ;) Aug 15 13:36:47 erm, can one do multiple postTranslates/rotates. Very funny results happening here. from the docs I thought they queued them as opposed to merging them into a single matrix. Aug 15 13:38:05 Hm Aug 15 13:38:23 StingRay_: Simply resize images with BitmapFaactory? Aug 15 13:38:38 It can helps? Aug 15 13:39:01 no matter what, you should still recycle views Aug 15 13:39:21 ravilov: How? Aug 15 13:39:30 recycle method on bitmaps etc. Aug 15 13:39:53 er Aug 15 13:39:55 reuse Aug 15 13:40:04 not recycle Aug 15 13:40:15 Jov, like StingRay_ told you already Aug 15 13:40:20 As I understand, ListView should call something method for i make recycle Aug 15 13:40:29 http://stackoverflow.com/questions/3823799/android-bitmap-recycle-how-does-it-work Aug 15 13:40:54 Jov, I don't understand what you just said Aug 15 13:41:34 Hm Aug 15 13:41:46 are there no local android dev communities? it seems silly asking for help in a language you don't understand properly, it will just be yet another obstacle Aug 15 13:41:54 I load bitmaps to ImageView without new var Aug 15 13:42:04 (another example of GC being a total "garbage" concept especially in a memory constricted device like a mobile phone : more often than not you're kicking it in the arse telling it to remove things - meanwhile all the pro GC crowd extol its virtues because you "dont need to worry about memory usage and alloc/dealloc) Aug 15 13:42:36 ravilov: communities in my language is not informational :( Aug 15 13:43:13 Jov: pastebin your adapter Aug 15 13:43:20 Moment Aug 15 13:43:36 I'm having an issue where android studio doesn't draw it's UI after updating. Linux/nvidia - anyone here have this issue? Aug 15 13:44:22 * ravilov now wonders what language/country is it that has no good android community, even my crappy little country has people I could ask if I needed to Aug 15 13:44:41 http://pastebin.com/YRubB6YC Aug 15 13:46:05 I'm having a hard time with android studio Aug 15 13:46:18 switch back to eclipse Aug 15 13:46:19 * ravilov hides Aug 15 13:46:53 I already set JDK_HOME & put it in my .bash_profile.. but I can't even start android studio now because it says it doesn't exist which is clearly bullshit because I just used it Aug 15 13:47:44 and, there's only like one friggin way to use it and that's by going to /bin and doing ./studio.sh (at least I can't find any other docs tellin me otherwise) Aug 15 13:48:29 is /bin in your path? Aug 15 13:48:51 Estel: http://pastebin.com/YRubB6YC Aug 15 13:48:55 JDK_HOME has nothing to do with your path btw Aug 15 13:48:55 you need to add the /bin to your $PATH Aug 15 13:49:04 I did Aug 15 13:49:30 export PATH=$PATH:$JDK_HOME/bin Aug 15 13:49:31 how are you trying to start the studio normally? via an icon click? Aug 15 13:49:36 I have no icons Aug 15 13:49:42 how then? Aug 15 13:49:43 I've been having to do it from terminal in linux Aug 15 13:49:49 using ./studio.sh Aug 15 13:49:52 py0: Android studio is installed at $JDK_HOME/bin ? seems unlikely Aug 15 13:49:55 were you never able to start it any other way? Aug 15 13:50:10 I have yet to see any other way Aug 15 13:50:12 py0, how about you just forget completely about JDK_HOME and focus on your PATH only Aug 15 13:50:21 export JDK_HOME=/usr/local/bin/jdk1.8.0_11/ Aug 15 13:50:25 no Aug 15 13:50:44 you're not listening Aug 15 13:51:11 so, you want export PATH=/bin Aug 15 13:51:30 ... if that's where your sudio is Aug 15 13:51:36 it's in $HOME Aug 15 13:51:48 why didn't you add that to your path then? Aug 15 13:51:56 why are you even trying to mess with any JDK_HOME? Aug 15 13:52:06 because I'm trying to do what it tells me to do Aug 15 13:52:10 which has proved to be useless Aug 15 13:52:17 with little to no understanding as to why? Aug 15 13:53:06 leave JDK_HOME alone like I told you to, add the bin directory of android studio to your path Aug 15 13:53:09 simple as that Aug 15 13:53:54 now you *can* get back to JDK_HOME later if you need to, but right now it seems you're doing it backwards Aug 15 13:54:06 it won't start without that set Aug 15 13:54:23 I didn't say remove it Aug 15 13:54:26 I said leave it alone Aug 15 13:55:00 export PATH=$HOME/android-studio/bin Aug 15 13:55:06 er Aug 15 13:55:07 sure Aug 15 13:55:16 if you want to wipe out any previous value of $PATH Aug 15 13:55:47 seems like a very bad idea though Aug 15 13:56:55 I hate this path crap Aug 15 13:57:04 apparently it hates you right back Aug 15 13:57:27 it's very simple really, I'm not sure why are you struggling so much Aug 15 13:59:37 I think I just need to learn bash Aug 15 13:59:52 that would be an excelent idea Aug 15 13:59:59 meh >_> Aug 15 14:00:22 I dun fuxed up my python3.4 Aug 15 14:03:19 which linux are you using? Aug 15 14:04:14 not important Aug 15 14:04:33 py0: try listening. You ADD the path to your existing PATH. If you cant google that up then give up. Aug 15 14:04:49 and it IS important since that alters whether you need to set JDK_HOME. Aug 15 14:05:27 e.g in my bash_env : PATH=${ANDROIDSDK}/tools:${ANDROIDSDK}/platform-tools:${PATH} Aug 15 14:05:39 note the *append* Aug 15 14:06:17 ditto for adding AS/Intellij:PATH="${HOME}"/bin:"${HOME}"/development/local/bin:"${HOME}"/thirdparty:"${HOME}"/thirdparty/idea-IC/bin:"${HOME}"/.cabal/bin:"${HOME}"/bin/clang:"${HOME}"/texlive/2013/bin/x86_64-linux:${BARWEBS_DIR}/lib/bin:${PATH} Aug 15 14:09:19 rgr, why do you use curly brackets? I've been reading http://www.linfo.org/path_env_var.html .. I'm not sure what your curly brackets do Aug 15 14:10:29 safety and clarity Aug 15 14:10:50 a=foo; echo $abar <-- doesn't do what you mightexpect Aug 15 14:10:57 a=foo; echo ${a}bar <-- DOES do what you mightexpect Aug 15 14:11:15 what is that called when you do that Aug 15 14:11:26 um Aug 15 14:11:27 IRCing? Aug 15 14:11:57 no, using {val} to get val=blah Aug 15 14:12:06 what is that term called (other than just using a variable) Aug 15 14:12:28 value interpolation Aug 15 14:12:33 just like in any language Aug 15 14:12:53 String a = "foo"; String b = "xxx" + a + "yyy"; <--- same thing Aug 15 14:13:39 py0, also, {val} does precisely nothing -- $ is crucial Aug 15 14:14:40 I was thinking of pythons format.. a = 1 print("Yeah dude, I had {0} hotdog today.".format(a)) Aug 15 14:14:52 Try #linux Aug 15 14:15:07 for what? Aug 15 14:15:10 yeah you seem to be way too wrapped up into a single language and comparing everything to it Aug 15 14:15:26 py0, he means this has very little (if anything) to do with android development Aug 15 14:15:36 word Aug 15 14:16:15 it does seem though it would be very beneficial to you if you would get at least the most basic shell basics down Aug 15 14:16:38 I've been avoiding bash like the plague :x Aug 15 14:16:49 but thanks for all of the insight on path <3 Aug 15 14:17:19 clearly that was a bad idea and it would be just a matter of time when it backfires Aug 15 14:17:26 ladies! Aug 15 14:18:31 fine... gentleman! Aug 15 14:18:45 is there a good resource to lookup which scale factor (mdpi, xhpdi etc) phones fall into? Aug 15 14:19:39 snowpong, yes, it's called d.android.com combined with context.getResources().getDisplayMetrics() Aug 15 14:21:36 give her the d Aug 15 14:21:48 ravilov: not handy in a discussion about design - it would be nice if it was listed on gsmarena or somewhere Aug 15 14:21:48 Hi everyone Aug 15 14:21:59 ron_frown: what the fuck? Aug 15 14:22:16 xD Aug 15 14:22:52 snowpong, you didn't specify the context, and this is after all a *dev* channel, not *design* Aug 15 14:23:13 haha Aug 15 14:23:31 can anyone help me with Genymotion? I can't get it to work. I am on Linux. I originally installed it in /opt and then moved it right away. But I can't even create an AVD now :( Aug 15 14:24:16 * ravilov likes to stick to good ol' qemu which is official anyway Aug 15 14:24:29 I_Artist: what error do you get? Aug 15 14:25:18 ravilov: I_Artist you don't make AVDs with Genymotion - they show up as physical devices Aug 15 14:25:20 Estel: well I had a few, did a few installs and uninstalls, and tried things from Stack Overflow Aug 15 14:25:29 I_Artist: you don't make AVDs with Genymotion - they show up as physical devices Aug 15 14:25:38 ravilov: sorry that wasn't for you Aug 15 14:25:51 Whats the diffrences between GCM sender id and registration id Aug 15 14:25:53 Estel : I will tell you the latest message now Aug 15 14:28:06 Estel : Ah geez, I deleted all my devices Aug 15 14:28:13 Downloading now Aug 15 14:28:20 will keep you up to date Aug 15 14:28:37 is that why you can't get it to work? :p Aug 15 14:29:09 Tomashe: the same difference between sender and recipient Aug 15 14:29:37 Tomashe: unless you were to send to yourself, then they would be the same :) Aug 15 14:30:43 Ok, tried to download a new device and got : Unable to create the virtual device - Failed to import OVA Aug 15 14:32:47 when i compile my android studio project with appcompat-v7:20.0.0 would i still need the support library v4? Aug 15 14:33:16 defuex: v4 contains other classes then v7 Aug 15 14:33:20 they have different purposes Aug 15 14:34:21 defuex, you pick the support library based on your minsdk Aug 15 14:34:48 Unless you want the extra classes that are only in -v4 or -v7 Aug 15 14:38:38 arbitrary question, but how does google now hide its notifications in the tray but shows them in the drawer? Aug 15 14:39:03 my simplest idea is that their tiny icon is transparent and their large icon represents the condition but how accurate is this guess? Aug 15 14:39:09 Estel : Ok, tried to download a new device and got : Unable to create the virtual device - Failed to import OVA Aug 15 14:40:24 huzzzzah Aug 15 14:40:34 * py0 fixed his path retardation Aug 15 14:41:56 StingRay_: ok, there is a way to get the sender id ? i mean if i have like 10000 users how can i even get their personal id? Aug 15 14:44:56 g' evening Aug 15 14:47:31 anyone here programmed those iphone things ? Aug 15 14:50:19 Tomashe: well you would want the regId right ? Aug 15 14:50:31 the sender if you were…erm…sending would be you Aug 15 14:51:10 when regestering for gcm from the app the devices gets a regId Aug 15 14:59:30 Tomashe: oh and it's not a person id, it's a generated (account/device) id for use only with gcm Aug 15 15:03:31 does anyone have an idea concerning my genymotion problem? Aug 15 15:05:25 I have google nexus 5 and when trying to use google maps v2 in my app I get "This app won't run unless you update Google Play services". Aug 15 15:05:44 Clicking that ugly button akes me to play store, and then nothing happens Aug 15 15:07:08 I_Artist: there is no info there to speculate on Aug 15 15:07:25 so there is no problem other than a none specific error you mentioned Aug 15 15:07:35 could be anything Aug 15 15:08:47 StingRay_ : the only thing that I can think of is that it was originally installed in a root dir, and I moved it to a non root dir. I believe it probably is pointing to that root dir somewhere in the config, but I can't figure out where Aug 15 15:09:12 Although, I did rm the first install and then install again in the new place Aug 15 15:09:35 why did you move it at all? and how? this is extremely important Aug 15 15:09:40 what is minimum play service I can use for Maps api v2 to work ? Aug 15 15:09:45 you don't just move stuff around as you please Aug 15 15:09:49 do the normal actionbar features (included in appcombat v7) provide the same features as in actionbarsherlock? Aug 15 15:10:11 ravilov, I moved it because I didn't want to run it as root. Aug 15 15:10:46 the install location has pretty much nothing with how you run it Aug 15 15:11:10 what do you mean by "root dir"? root of the filesystem or root user'ss home Aug 15 15:11:10 ? Aug 15 15:11:19 no, /opt Aug 15 15:11:35 a directory that requires root access Aug 15 15:11:38 and why exactly would having it there imply you do or don't have to run it as root? Aug 15 15:11:41 no it doesn't... Aug 15 15:11:43 I didn't knwo what else to call it :) Aug 15 15:11:52 if your /opt requires root access, then your /opt is seriously broken Aug 15 15:12:16 also, even if this is true, chown and/or chmod would fix that in an instance, now you just kinda... made a mess Aug 15 15:12:36 it might be best if you just wipe everything and start over Aug 15 15:12:50 that's what I did... Aug 15 15:13:13 ... Aug 15 15:13:51 what exactly did you do? did you move the stuff from /opt to somewhere else, or did you delete stuff in /opt and install the whole thing elsewhere? Aug 15 15:13:58 from what I just read, my opt permissions are ok Aug 15 15:14:00 524289 4 drwxr-xr-x 19 root root 4096 Aug 15 08:39 opt/ Aug 15 15:14:04 you really need to be VERY clear and precise when you're talking about technical stuff Aug 15 15:14:17 things have their names for a reason Aug 15 15:14:33 yeah your /opt seems fine Aug 15 15:14:39 condescending much? Aug 15 15:14:55 I appreciate your help, but man... Aug 15 15:15:20 as stated above, I deleted the install, and then reinstalled Aug 15 15:15:31 the new installation is in my home folder Aug 15 15:15:38 no, you stated above you "moved" it. quite a different thing. Aug 15 15:15:56 Although, I did rm the first install and then install again in the new place Aug 15 15:15:57 I must've missed the part where you clarified it Aug 15 15:16:48 I said "moved" because it was once in one place, then another. There is no uninstall, so it's not a clean uninstall Aug 15 15:17:12 in technical terms, "moved" means using the "mv" command Aug 15 15:17:13 I know for a fact that there were some incorrect settings in a QT folder, I removed those Aug 15 15:17:51 I might be somewhat condescending right now, but I don't think I'm wrong when saying you need to be more clear about what you say Aug 15 15:18:19 ok, so where is it installed right now? Aug 15 15:18:27 then just ask for clarity :) I will gladly give it Aug 15 15:18:31 meh Aug 15 15:18:32 You uploaded an APK that uses Google Play services version 5208000. You need touse version 5100000 or lower. Aug 15 15:18:42 what should i put in the build.gradle then? Aug 15 15:19:05 I'm going to try installing it again. I found that there is a '-d' switch for the installation directory... Aug 15 15:19:12 I_Artist, I shouldn't need to ask for clarity, if you expect help you are kinda required to provide clarity Aug 15 15:19:31 especially in a techy place Aug 15 15:19:38 I_Artist: QT folder? My Q wuold be : what are you doing moving things around in the first place especially when you confuse /opt for root. What exactly are you installing and how are you picking the destination directory? Aug 15 15:23:40 glass developers up in this b? Aug 15 15:28:18 ron_frown ask Aug 15 15:28:40 I dont have a question Aug 15 15:28:46 I was just asking if there were glass developers Aug 15 15:29:03 I have done some stuff on glass Aug 15 15:29:09 for glass Aug 15 15:39:18 What is a right way to find contact by a given number? I've got an issue with that cause of country-code and stuff (i.e. number is formatted as "+", user has number as "8" in his contacts, so nothing returns when I request the number from ContentResolver). Aug 15 15:39:58 http://developer.android.com/training/contacts-provider/index.html Aug 15 15:41:16 defuex: yes. but why bother with appcompat at all? Aug 15 15:41:32 I've followed this lesson, actually, but I'll re-read it, may be I missed something.. Aug 15 15:41:42 nekoxmachina: well should lead you to http://developer.android.com/reference/android/provider/ContactsContract.PhoneLookup.html Aug 15 15:42:17 pifon1: how you liking it... seems to me like its one shortcoming after the next... but I've decided to use it more like a wear scenario Aug 15 15:42:24 where I got a mobile doing any heavy lifting Aug 15 15:42:31 and the glass handling user interaction Aug 15 15:42:56 StingRay_: Thank you! Aug 15 15:43:05 np Aug 15 15:43:12 yeah thats a good approach Aug 15 15:44:01 Tbh as an app developer, I am slowly moving my dev work to iOS Aug 15 15:44:09 Simply because there is more profit there Aug 15 15:44:27 I'll release my succssful apps on android later Aug 15 15:44:29 yeah I think the app market itself is gonna bust eventually anyway Aug 15 15:44:36 everyone wanted a quick buck Aug 15 15:44:42 android folks were a bit less willing to pay Aug 15 15:44:55 now people are realizing unless you build some niche game that really takes off Aug 15 15:45:00 its not super profitable anyway Aug 15 15:45:17 I build android hardware/software that acts as a companion to other software Aug 15 15:45:18 so Aug 15 15:45:21 android folks pay DRASTICALLY less than ios users Aug 15 15:45:21 maybe, but it's not like tablets/smartphones are losing popularity Aug 15 15:45:31 people have to be using them for something Aug 15 15:46:00 popularity and profitability are two different things :) Aug 15 15:46:07 Paid for apps have never felt that important to the ecosystem, personally. Aug 15 15:46:23 Also piracy is easier on android Aug 15 15:46:51 As a developer, all the work is for companies that want free/enterprise apps that integrate with their systems; as a user I'll happily pay for apps, but the most useful things are all apps that integrate with broader platforms (Twitter, fb, blah blah) Aug 15 15:47:37 Is it possible to use a droid to give a laptop internet Aug 15 15:47:43 through android Aug 15 15:47:52 well, with both twitter and facebook closing down their apis pretty hard, i dont see much going in that direction, but yeah, "getting work done" apps are where the money's gonna be Aug 15 15:47:55 py0: wifi tether? Aug 15 15:47:58 py0: go to settings -> More -> Hotspot Aug 15 15:48:03 USB tether? Aug 15 15:48:07 Bluetooth tether... Aug 15 15:48:19 WOW Aug 15 15:48:25 fucking sweet kroot Aug 15 15:48:38 that's beautiful Aug 15 15:48:48 (nb, many carriers forbid tethering) Aug 15 15:49:03 why Aug 15 15:49:23 is using my phone as a hotspot == tethering? Aug 15 15:49:27 Yes Aug 15 15:49:40 why would a company do that if you're paying for the data Aug 15 15:50:06 Well you should ask them that, but I usually stick to unlimited data plans with as soft as possible AUPs Aug 15 15:50:26 Where they have clear reasons to do so. Anyway, not really a -dev topic. Aug 15 15:51:10 Well, I had originally thought I may need to code something and work with android but all the work is done :D Aug 15 15:51:42 thanks for the help guys Aug 15 16:08:26 hey ron_frown wazzup Aug 15 16:08:32 yo Aug 15 16:08:33 not much Aug 15 16:09:09 was just reading this http://www.reddit.com/r/androiddev/comments/2dlzta/ios_and_android_developers_what_frustrates_you/ Aug 15 16:10:16 oh well old stuff. i just got my BLE hardware today, now its time to try this on android 4.4 Aug 15 16:12:50 is it worth using the actionbarsherlock any longer if i just use the support library 13 or supporty library 4? Aug 15 16:13:54 just use the support library Aug 15 16:14:22 ron_frown what do you think of the idea google should come out with some very cheap ($35) ARM based SBC with BT, Wifi, Gps, NFC and say 512mb ram - no display, headless, and can be used for your emulator when plugged into the computer via usb. basically a phone (minus 3g and display) Aug 15 16:14:25 arguably, use minsdk=15 Aug 15 16:15:02 g00s: have you used ios's "simulator"? Aug 15 16:15:19 it does a real good job of being performant Aug 15 16:15:25 yeah, but ... i don't know how one can accomplish that technologically acrosss linux / mac / windows Aug 15 16:15:26 you can get arm sbc's that cheap Aug 15 16:15:40 i first wanted to make an app supported from api lvl 9 upwards to api lvl 20 Aug 15 16:15:59 so you dev in the IDE, run the code on the SBC, and have the results (screen) back in the window on your PC Aug 15 16:16:03 I mean I dont know if they have gps or nfc Aug 15 16:16:35 Hi, I've a quesiton Aug 15 16:16:37 i'm wondering if i should pitch this somewhow on adt-dev or something (as an alternative to emu / sim ) Aug 15 16:16:41 but then i realised that the actionbarsherlock needs support library 4 and support library 7 includes that support library...but also the actionbar seems to have been updated so i wont necessarily need the actionbarsherlock if those two libraries hit each others face Aug 15 16:16:54 but almost all devboards have GPIO and i2c ports Aug 15 16:17:02 it'd be pretty easy to add gps/nfc chips Aug 15 16:17:18 gps is less useful for something which is mostly going to be tethered to a computer... Aug 15 16:17:24 yeah Aug 15 16:17:25 yeah, i guess those can be there if they don't add cost - but the goal is to keep price as low as possible $25-35 and basically be a reference platform Aug 15 16:17:28 I like the idea of simulating gps Aug 15 16:17:33 more than actually getting that data Aug 15 16:17:38 but what I am doign with bt right now Aug 15 16:17:43 I basically need physical hardware Aug 15 16:18:19 yeah, you really need to be able to simulate GPS - even if you did have it on the SBC you'd mostly get a very limited range of data, assuming you're not warcodedriving Aug 15 16:18:22 you could run android on raspberry pi Aug 15 16:18:23 ok, no GPS you are right it doesn't makse sense Aug 15 16:18:29 Does anyone knows I can obviate to use putExtra() with a Bundle object Aug 15 16:18:37 or even what was that other board Aug 15 16:18:44 the cheap cheap intel board Aug 15 16:18:50 galileo Aug 15 16:18:52 ? Aug 15 16:18:52 minnow Aug 15 16:19:20 uhh Aug 15 16:19:27 apparently minnow is nowhere near as cheap as I thought it was Aug 15 16:19:37 but yeah, something super cheap. maybe you could even put it on your keys :) Aug 15 16:20:31 ron_frown edison ? http://www.intel.com/content/www/us/en/do-it-yourself/edison.html Aug 15 16:21:00 this reference HW should be considered by google "nexus" so they should always have working builds for it for development Aug 15 16:21:21 thats kinda been my hope anyhow that this would happen, but it has to be feasible Aug 15 16:21:47 and cheap for everybody. maybe even have 2-3 plugged into usb each running different versions of android Aug 15 16:22:16 g00s: I think with the intel-accelerated emulators the benefit of having another piece of hardware is reduced Aug 15 16:23:11 that is true Aug 15 16:23:27 but i still feel google should do more to own the developer UX Aug 15 16:23:33 god damn I want to just beat the person who coined the term internet of things, right to death Aug 15 16:23:50 I ownder if geny will have W images Aug 15 16:24:03 g00s: I've been doing a lot more android dev past few days... and honestly Aug 15 16:24:11 it feels like jumping through a mile of hoops Aug 15 16:24:21 oh you want to do this, and would do it this way in any other platform/language Aug 15 16:24:29 sorry... jump through the requisite hoops Aug 15 16:24:44 i think its because - instead of stepping back and simplifying things - they keep adding bandaids on top of bandaids ontop of complexity Aug 15 16:25:04 you know what I call that? Aug 15 16:25:08 bandaids on cancer Aug 15 16:25:12 shit that should be gutted/replaced Aug 15 16:25:18 heh Aug 15 16:25:21 but instead little hacks and fixes to get it working for now Aug 15 16:26:12 ron_frown: there are definitely areas which are plagued with shitty patches and are only now beginning to get better. telephony is awful. Aug 15 16:26:50 believe me... I kniow Aug 15 16:26:56 I deal in porting a lot Aug 15 16:27:19 glass rom is such a hack... and some of the stuff is just plain broke Aug 15 16:27:22 I've offered to fix =) Aug 15 16:27:34 i haven't looked at glass at all Aug 15 16:27:49 you arent missing much Aug 15 16:28:00 substandard hardware and really proof of concept at best software Aug 15 16:28:05 I really like the potential there Aug 15 16:28:08 for my industry Aug 15 16:29:41 dragorn i was just reading the other day about that proof of concept using gyro to pick apart some speech .. i didn't realize there were no mermissions in android for using that sensor Aug 15 16:29:49 *permissions Aug 15 16:30:01 do none of the sensors require permissions ? Aug 15 16:30:08 is there a way to force the action bar to redraw? Aug 15 16:31:43 I have a fragment setting my activity's title, but the title is ellipsisized if the fragment doesn't have options menu. im guessing it is because normally, if it did have options, the action bar would recalculate widths Aug 15 16:31:57 but right now, the width of the title area stays the same as it was when it first spawned Aug 15 16:43:59 hehe http://www.theguardian.com/technology/2014/aug/14/google-undersea-fibre-optic-cables-shark-attacks Aug 15 16:44:18 since magnets repel sharks they could try that too Aug 15 16:44:40 but magnets don't repel NSA :( Aug 15 16:44:56 g00s why not just expand RFC 1149 to include sharks as well? Aug 15 16:45:04 :) Aug 15 16:50:08 On a relative layout I know that I can align the tops or bottoms or rights or lefts of two views, but can I align the center of one view to the center of another view? Aug 15 16:50:28 Specifically the vertical centers, without centering inside the parent. Aug 15 16:51:46 goos that speech via gyroscope is pretty nuts Aug 15 16:52:14 ron_frown more theoretical than practical but yeah Aug 15 16:52:39 this whitepaper on it is interesting Aug 15 16:54:45 jessie, not sure but probably only dynamically in code Aug 15 16:54:55 :-/ Aug 15 16:55:32 Jessie, it there a reason why you don't what to center in parent? Aug 15 16:56:12 you can always make your own viewgroup manager that would allow for this ;) Aug 15 16:56:37 Yeah. Or I could be lazy and make a nested view group that the item is centered within. Aug 15 16:56:40 Which is probably what I'll do. Aug 15 17:06:06 jessie: nothing has actual pixel dimensions before layout… so where would center be ? the rules that relative supports dont require pixel dimensions… so code is the only option Aug 15 17:19:52 Is Retrofit able to automatically identify and decode responses that have a Content-Type header with charset Windows-1252? Aug 15 17:20:50 Retrofit will just delegate for that Aug 15 17:21:12 for example, the default Gson converter will wrap the stream in an InputStreamReader passing in the charset as the second argument Aug 15 17:21:25 https://github.com/square/retrofit/blob/b1e433081ffdaa614da574f58c340bca2e178289/retrofit/src/main/java/retrofit/converter/GsonConverter.java#L57-L62 Aug 15 17:26:53 JakeWharton: Okay so I have to provide a custom converter with the encoding type? Aug 15 17:27:32 RestAdapter.setConverter(new GsonConverter(gson, "Windows-1252")? Aug 15 17:30:03 Oh nvm I see it, charset = MimeUtil.parseCharset(body.mimeType()); Aug 15 17:44:35 if i want to build an app from api lvl 10 upwards should is use support library v7 and v13? or will there be any problems? Aug 15 17:45:31 its amazing how many people get confused about support library versions Aug 15 17:45:40 clearly a communication problem :) Aug 15 17:45:47 defuex: v7 Aug 15 17:46:26 thx gordon ^^ Aug 15 17:46:36 ok, then ill stick to just v7 Aug 15 17:46:38 v10 is honey comb ? Aug 15 17:46:44 yeah Aug 15 17:46:49 i want to reach most phones apis Aug 15 17:47:03 i guess from api lvl 10 upwards it will be no problem Aug 15 17:47:20 v10 is 2.3 ;/ Aug 15 17:47:21 nah you shouldn't. encourage their extinction. Aug 15 17:47:24 do not support them! Aug 15 17:47:35 ^^ Aug 15 17:47:46 if you dont have any user base Aug 15 17:48:00 its like what? 8% of market? Aug 15 17:48:02 or your company doesnt make you to support them Aug 15 17:48:10 with phones that are old, bloated with apps, prone to bugs? Aug 15 17:48:10 just drop it Aug 15 17:48:14 and start from api v1 Aug 15 17:48:15 4 Aug 15 17:48:17 v14 Aug 15 17:48:20 which is ICS Aug 15 17:48:24 you'll deal with edge cases that are a waste of time Aug 15 17:48:32 so i should use support-v13? ^^ Aug 15 17:48:38 you should just encoruage the march of the android evolution Aug 15 17:48:52 unless you really have a reason to support those odler phones Aug 15 17:48:55 defuex: if you support sice ICS Aug 15 17:49:00 dont use support library Aug 15 17:49:03 because you dont have to Aug 15 17:49:09 https://developer.android.com/about/dashboards/index.html?utm_source=ausdroid.net Aug 15 17:49:53 lasserix: 2.x is like 13% Aug 15 17:49:54 still Aug 15 17:50:26 minsdk=15 or 16 \o/ Aug 15 17:50:35 not 14? Aug 15 17:50:38 android 16 is the new gingerbread anyhow Aug 15 17:50:56 lasserix there are no 14s heh Aug 15 17:50:59 gordon yeah but those phones are old and bloated and prone to bugs and force you use support library and its not worth it and they all just need to die. Aug 15 17:51:01 hehe, but if there are 13.6% using api lvl 10.... Aug 15 17:51:12 lasserix: I agree that they need to die Aug 15 17:51:19 so dont support them Aug 15 17:51:26 but its probably 1% of your potential revenue with 90% of your guranteed headaches Aug 15 17:51:27 like I said ;0 Aug 15 17:51:30 ;) Aug 15 17:51:31 well, if they need to die ill do it for the good Aug 15 17:51:41 and use v13 then? Aug 15 17:51:47 WHY Aug 15 17:51:54 its like giving an addict enough money to get their next fix, you're not helping cure the problem just prolonging it Aug 15 17:51:57 v13 - support since api v13 Aug 15 17:52:02 why do you need that ? Aug 15 17:52:30 if you taget 15 16 you dont need support library right? Aug 15 17:52:42 i dont know...i was confused that my beloved actionbarsherlock wasnt supported anymore because the standard libraries try to cover up their failures with the standard libraries Aug 15 17:52:57 lasserix: action bar is since android 3 Aug 15 17:53:12 sorry, defuex Aug 15 17:53:16 dfuex even jack wharton says dont use action bar sherlock anymore Aug 15 17:53:22 i know Aug 15 17:53:26 i read about it currently Aug 15 17:53:35 use appcompat Aug 15 17:53:37 IF YOU NEED TO Aug 15 17:53:49 and if you support ICS Aug 15 17:53:52 you dont need to Aug 15 17:54:12 there is an argument of using v7 support library to use consisten fragment implementations Aug 15 17:54:19 even if your targetSdk=15 Aug 15 17:55:04 seems like im not the only one getting crazy about support libraries ^^....some men just want to see the world burn Aug 15 17:55:09 g00s: you mean nested fragments / Aug 15 17:55:20 i think other bugs too Aug 15 17:55:24 oh i see what you did there Aug 15 17:55:30 ;) Aug 15 17:55:40 defuex yeah, the suppor libraries are a fucking hack Aug 15 17:55:48 but, everything in android is a hack Aug 15 17:55:53 pretty much :) Aug 15 17:56:41 g00s: you mean v4 Aug 15 17:56:51 ah shit i screwed it up again Aug 15 17:56:56 saying v7 doesn't really mean anything since there's multiple at that level Aug 15 17:57:23 lol Aug 15 17:57:34 support libraries are great, the fragmentation could be worst Aug 15 17:57:44 we need a flow chart on what support library to use XD Aug 15 17:57:49 yes I love nested fragments bug <3 Aug 15 17:58:08 and how robolectric doesnt work for appcompat ;) Aug 15 17:58:19 or simple use api 15+ :P Aug 15 17:58:25 but still meeds some libraries Aug 15 17:58:42 MOAR libraries Aug 15 17:58:46 is that roboelectric any good? Aug 15 17:58:47 and dex for hours Aug 15 17:58:54 Foxandxss: I like it Aug 15 17:58:54 gordon_ there was a google+ post yesterday on how roboelectric must die Aug 15 17:59:01 g00s: again ? Aug 15 17:59:06 lol Aug 15 17:59:11 on android-dev hehe Aug 15 17:59:16 link? Aug 15 17:59:17 ok another question guys. if it must be a support library it should be v7? ^^...and my target sdk should be "android-L" or should i just drop it down to 19 or 20? Aug 15 17:59:22 care to share the link ? Aug 15 17:59:34 defuex: get 20 Aug 15 18:00:36 https://plus.google.com/+StefanHoth/posts/dWdyTjDWp2a Aug 15 18:01:00 hm, i saw it on android-tools Aug 15 18:01:25 g00s: if google would make something else Aug 15 18:01:27 I'm all in Aug 15 18:02:27 at least they made espresso Aug 15 18:02:30 which seems awesome Aug 15 18:02:32 sounds like he just want an official tool Aug 15 18:02:45 like everyone here Aug 15 18:02:49 so what's the consnesus? target 15 and fuck the support libraries? Aug 15 18:02:57 pse, if roboelectric does the job... Aug 15 18:03:01 lasserix: that's my answer Aug 15 18:03:14 ok. i guess ill target 15 then Aug 15 18:03:20 Foxandxss: dont know if it does for gradle builds now Aug 15 18:03:20 and drop the bass Aug 15 18:03:26 havent tested in a while Aug 15 18:03:38 g00s wonder why that guy's banner pic is of alcatraz ? ;p Aug 15 18:03:58 because of lack of testing tools he killed someone Aug 15 18:04:45 true story? ^^ Aug 15 18:05:01 nah Aug 15 18:06:10 omg! I've just watched that fireside chat thingy for the 1st time Aug 15 18:06:27 * StingRay_ is shocked Aug 15 18:06:40 he? Aug 15 18:06:59 the questions… erm…wtf Aug 15 18:07:16 I think they should pre-approve the questions in some way Aug 15 18:07:23 cause it appears they do not Aug 15 18:15:07 anyone know how I can force the action bar to refresh? having an issue where if I set a title from a fragment that doesn't have an options menu, the title area doesn't expand. this causes ellipsis when it shouldn't Aug 15 18:18:54 StingRay_ i/o 2014 fireside? i don't remember the questions being unusual Aug 15 18:18:59 (for android?) Aug 15 18:19:11 really ? Aug 15 18:19:40 what question stood out ? Aug 15 18:19:45 you dont think they fall into either irrelevant, a little dense or wtf catagories Aug 15 18:20:16 80% in an have not heard any question that isn't in those catagories Aug 15 18:20:16 i'd have to watch it again, but no i didn't Aug 15 18:20:49 for example, i think one of the first questions was when will android support java 8 ... Aug 15 18:21:00 oh sh*t yeah Aug 15 18:21:01 1 Aug 15 18:21:17 thats it, the rest are…erm… not right Aug 15 18:21:19 g00s: never ;) Aug 15 18:21:24 :( Aug 15 18:21:37 mattblang: put an observable and call invalidateoptionsmenu Aug 15 18:21:44 as I asked yesterday, do anyone want a commonsware license? Aug 15 18:21:44 they could just make it now Aug 15 18:21:54 Foxandxss i did ... at one point Aug 15 18:21:56 in android L Aug 15 18:22:46 g00s: not on the point anymore? :P Aug 15 18:23:02 no - when i had the subscription it was pretty bad Aug 15 18:23:07 is commonsware being kept up to date still? Aug 15 18:23:12 but it was like 4 years ago Aug 15 18:23:12 jamuraa: yup Aug 15 18:23:33 g00s: well, I guess it changed in 4 years, anyway, what wrong did you see? Aug 15 18:23:37 just as a curiosity Aug 15 18:23:48 i had a few discussions with mark; the first was - why the F are all your title / subtitles jokes, i can't find anything useful Aug 15 18:23:58 he said his classes liked it that way Aug 15 18:24:44 Anyone know how to get markdownin intellij plugin to display the markdown? Aug 15 18:25:03 lasserix: what's your goal? Aug 15 18:25:12 g00s: I don't follow that title / subtitles jokes :P Aug 15 18:25:33 one thing i find peculiar, is a few startup in SF i talked to this week - and all of them are building an android team for a relatively modest (single) app Aug 15 18:25:51 i would think one person but -- no a team Aug 15 18:26:22 Foxandxss well, when the title for a chapter is "Why does the fox cross the road" ... how does that tell you whats in the chapter ? Aug 15 18:26:56 g00s: ah, I see, that is not there anymore Aug 15 18:27:05 he changed his stuff along the years Aug 15 18:27:06 maybe he fixed that then Aug 15 18:27:17 as today it is just one book divided in two parts, core + trails Aug 15 18:27:30 core is tutorial + demo app in between (you know, learn something, apply that on the demo app) Aug 15 18:27:38 trails are basically everything else on android Aug 15 18:27:48 when commonsware first came out, there weren't that many good android books to choose from Aug 15 18:27:49 advanceded stuff that is not covered with the demo Aug 15 18:28:03 nowadays reto and big nerd ranch are good choices Aug 15 18:28:17 I guess so Aug 15 18:28:25 the good part of commonsware is always up to date Aug 15 18:28:33 next month, all the examples are going to use AS + gradle Aug 15 18:28:41 Foxandxss yeah, but i'm not sure *how* up to date Aug 15 18:28:54 a couple of chapters of gradle is also there and even a new chapter on WEAR is coming Aug 15 18:28:58 lasserix I see, I tried calling invalidateOptionsMenu in the fragment. but it needs to be in an observable? Aug 15 18:29:00 for example, when i was reading it , he spilled a lot of ink on weird android 1.0 shit even though 2.3 was out Aug 15 18:29:11 lasserix, uh, go to the preview tab? Aug 15 18:29:32 (like, watch out if you're using android 0.9 which has this weird ...) yeah . thats kinda old Aug 15 18:29:36 g00s: on the last update, he removed sherlockbar in favor of just supporting 15+ Aug 15 18:30:07 so he updated the entire demo to show those changes Aug 15 18:30:17 sounds good Aug 15 18:30:22 he also explains other libraries, normally JakeWharton stuff, mark loves him :P Aug 15 18:30:34 also, reto had access to the android team and seemed more autoritative to me Aug 15 18:30:49 the good thing is that you can read both, or none Aug 15 18:30:54 reto has a great chapter on canvas, that was bad in commonsware Aug 15 18:30:57 it is not marrying with anybody :P Aug 15 18:31:50 the thing is, if you feel you want to check it out or someone else who wants to learn android Aug 15 18:31:55 I have a couple of 6-month codes Aug 15 18:32:44 I have enough for myself. Mark will abandon it before my license expires :P Aug 15 18:32:51 i think with L preview ... the book situation will be much better for those who like books. since the authors can basically start updating the material before its released, i'm begging L books willbe out soon after L Aug 15 18:33:06 begging -> betting Aug 15 18:33:13 ah Aug 15 18:33:19 that was weird :P Aug 15 18:33:35 one of the better android books at the time was Manning ' android in practice' Aug 15 18:33:43 which was more advanced - a little outdated Aug 15 18:33:59 I remember it, wanted to read it, but I was stuck with my WP7 Aug 15 18:34:16 which reminds me i need to investigate WP8.1 & unified apps Aug 15 18:34:21 I have a broadcast receiver and an intentservice that handles the google cloud messages push notifications. I can receive and show the push not. with no problems. Now I want to show the notifications just when the app is closed or in background. I dont want to notify when the app is open. How can I do that? Aug 15 18:34:34 g00s: seems like Mark after september release (which is a major update on AS), he will focus on L Aug 15 18:35:10 thats good. i'll focus on L this time in 2015 Aug 15 18:35:32 I used to do WP, and it is the best platform to develop, no doubt Aug 15 18:35:45 leaving aside the other problems it has Aug 15 18:39:16 http://plugins.jetbrains.com/plugin/275?pr= Aug 15 18:39:46 mattblang: no use an observable for observing when call to invalidate should be made, then call invalidate Aug 15 18:40:04 if you are using fragments make sure you set in the fragment onCreate enableOptionsMenu or something like that Aug 15 18:40:50 pfn: where's the preview tab for the markdown? (like generally where should i look with respect to editor window?) Aug 15 18:41:03 lasserix, at the bottom of the editor window... Aug 15 18:41:52 hmm Aug 15 18:42:12 http://ezscreens.appspot.com/view/15db/markdown+preview Aug 15 18:42:19 android studio doesn't have markdown Aug 15 18:42:24 and intellij ce doesn't either, iirc Aug 15 18:42:25 ahh had to restart Aug 15 18:42:32 or was that json, I forget Aug 15 18:42:33 yeah it does Aug 15 18:42:41 err i am using ce and it works Aug 15 18:42:50 pfn did you write that ? Aug 15 18:43:01 hi guys. i was here earlier with my code that threw a NetworkOnMainThreadException. as i understood. it was because i was trying to contact a server in the main activity. so i moved the function. like so: http://bpaste.net/show/BhuzEZrjdrm5CU4ziws9/ Aug 15 18:43:02 lasserix: if you want to edit markdown, I highly recommend: stackedit.io Aug 15 18:43:20 and simply call it by " new function(); " Aug 15 18:43:20 i use macdown, after mou went abandoned Aug 15 18:45:14 and now i get a NullPointerException even though i have a catch for it. the app simply crashes Aug 15 18:46:49 uhlm: um, you can't just create a new activity class like that, and expect it to work Aug 15 18:47:12 the NPE is likely from findViewById returning null, because that activity doesn't actually contain anything Aug 15 18:47:44 The problem isn't accessing the network inside the activity class, it's accessing the network on the main thread Aug 15 18:47:53 JesusFreke: it really only extends Activity to get to use the R.id.textview Aug 15 18:48:07 that's a horrible approach Aug 15 18:48:22 I don't think you quite understand the main problem here Aug 15 18:48:32 i am sure i don't Aug 15 18:48:34 :( Aug 15 18:48:51 you are supposed to move the networking code to a separate thread Aug 15 18:49:08 uhlm, check out this tutorial on running multiple threads: http://developer.android.com/training/multiple-threads/index.html Aug 15 18:49:18 either by using asynctask or plain old threads Aug 15 18:50:33 i thought it would be fairly easy for me to port my Java app to android, even though i am also fairly new to Java. i was wrong i guess Aug 15 18:50:35 :) Aug 15 18:51:31 the problem with running network stuff on the "UI thread" is that users experience it as the application hanging (or at the very least being quite unresponsive) Aug 15 18:51:37 lasserix yeah, I definitely had to do the setHasOptions because Im actually doing it from a nested fragment. that fixed it actually for one of my screens. but i figured out that it didn't work on the other one since that fragment didnt actually contribute anything to the options menu Aug 15 18:51:38 uhlm: threads in java are essentially the same as threads in android Aug 15 18:51:53 android has some additional utilities that you can use to make it easier, but the concepts are the same Aug 15 18:51:55 it generally is reasonably easy, provided the original code was done right. however you still need to make your code fit into the android philosophy Aug 15 18:52:28 Does anyone know if it's possible somehow to have a "dynamically drawable" texture (something like drawing on a Bitmap with Canvas) in OpenGL/ES? My googlefu is weak. :( Aug 15 18:52:30 im only about to start 2 semester here.. we have not gotten to threads yet Aug 15 18:52:36 THAT new Aug 15 18:53:07 uhlm, it's a bad idea to do networking in the main thread in java as well Aug 15 18:53:21 lasserix im not exactly sure when I would want to invalidate though Aug 15 18:53:22 or any kind of blocking stuff really Aug 15 18:53:45 which what I meant when I said the original code has to be done right too Aug 15 18:55:22 as my first android app ever I ported a generic java http service and made it an app. that was reasonably easy because I made sure to find a http implementation that's done decently well. Aug 15 18:56:26 hello, on a non rooted device can i get access to the /system/lib folder? Aug 15 18:57:04 mattblang you can do it everytime your change the fragment at the end of getView or getCreateView of the fragment method? Aug 15 18:57:40 lasserix yeah, I'm just not sure how that would be different from calling invalidate in the fragment that is being attached Aug 15 18:57:42 lasserix, what kind of access? Aug 15 18:57:59 need access to the sqlte driver Aug 15 18:58:18 mattblang attach != visible? Aug 15 18:58:31 yes you have read access Aug 15 18:58:37 lasserix or onResume, or whatever method I meant. not necesarilly onAttach Aug 15 18:58:53 lasserix im going to try it though and see what happens. Aug 15 18:59:29 rav thanks Aug 15 19:08:17 uhlm you should use okhttp library Aug 15 19:13:42 Is sdk20 only wearable or does there exist a normal non-l non-wearable sdk 20> Aug 15 19:15:10 android studio is kind of dumb sometimes: you can invalidate and restart invalide or restart but invalidating doesn't actually work until you restart so wtf? Aug 15 19:15:26 I would guess L will be 20 ... Aug 15 19:16:45 so if am releasing a demonstration project for an sdk, should i set the compile and build tools to 18 or 18? Aug 15 19:16:52 18 or 19 or ? Aug 15 19:17:43 I don't understand the question Aug 15 19:17:55 Chainfire API 20 4.4 W is /only/ for wearable stuff right ? Aug 15 19:17:59 lasserix, afaik 20 is 4.4W for wearables Aug 15 19:18:11 I am releasing an android studio project that is a demonstration of a sdk i have been developing. currently its compilesdk and buildtools is set to 20 Aug 15 19:18:19 it works on my n5/all the other test devices we have Aug 15 19:18:30 but i am confused about 20 since i thought 20 was only l / wearable or whatever, Aug 15 19:19:01 so should I set the compilesdk and buildtools (in the build.gradle file) to 19/1814 or something other than 20? Aug 15 19:19:11 set the lowest number it works on? Aug 15 19:19:26 lasserix: no Aug 15 19:19:29 lasserix build tools has no correlation with api Aug 15 19:19:31 g00s EPG I haven't seen it stated anywhere that L would be 21... Aug 15 19:19:36 righ i understand that Aug 15 19:19:41 Chainfire: it was shown at I/O Aug 15 19:19:53 i am just wondering about these lines: android { Aug 15 19:19:53 compileSdkVersion 20 Aug 15 19:19:53 buildToolsVersion "20.0.0" ... } Aug 15 19:19:57 lasserix: keep them both Aug 15 19:19:59 they are fine Aug 15 19:20:00 in my build.gradle file, okay Aug 15 19:20:10 i thought so just wanted to verify before pushing to github thanks Aug 15 19:20:18 you always want the newest build tools Aug 15 19:20:42 well in that case 20 probably is just wearables :) Aug 15 19:21:44 version code is called KITKAT_WATCH :) Aug 15 19:22:17 I have to insert like 50 JSONObjects into a JSONArray object, is there an optimized way to do this without creating a new JSONObject each time? Aug 15 19:23:26 The optimized way is to use gson instead Aug 15 19:23:51 in particular do you have a link? Aug 15 19:24:28 err like does that mean a specific android gson library or? Aug 15 19:24:43 There's only one gson Aug 15 19:25:30 If my app is crashing on a client device how do I debug it? On Windows I ask them to send me a minidump, is there an equivalent on Android or what? Aug 15 19:25:37 SimonVT: ahh i see thanks! Aug 15 19:26:38 did you guys see fb-adb ? Aug 15 19:26:53 https://github.com/facebook/fb-adb Aug 15 19:28:20 Vino: if you have access to the client device / recreate it locally, adb logcat is always your friend. Aug 15 19:28:32 Vino: if they report the bug via google, it will show up w/ a stack trace in your dev console Aug 15 19:28:38 right but I don't. client device == random person on the internet's phone Aug 15 19:28:56 And then implement some crash reporting library to make sure you get stacktraces as they happen Aug 15 19:29:08 oh i'm not in the play store. play store would send me crash reports then? Aug 15 19:29:35 Not really Aug 15 19:29:41 yeah if they hit the 'report' button it would give you a stack trace Aug 15 19:29:44 The user has to actively send it Aug 15 19:29:46 (if they didn't, too bad) Aug 15 19:29:47 Which means they don't Aug 15 19:29:57 SimonVT: yes, but if a user is specifically contacting him, you can yell at them at least ;P Aug 15 19:29:57 So they might as well just remove that button Aug 15 19:30:02 g00s thats weird... transmits and updates window size? I've had no problems with normal adb for this... terminal size updates work fine for me? provies a generic facility to elevate to root? Good luck with that on retail builds with the latest SELinux changes Aug 15 19:30:20 guess I just don't see the point Aug 15 19:30:25 ooh I found this: http://acra.ch/ Aug 15 19:30:51 okay that gives me two options. thanks guys Aug 15 19:30:58 Vino thats looks horrid Aug 15 19:31:05 crashlytics.com gets my vote Aug 15 19:31:08 use them lots Aug 15 19:31:28 used* Aug 15 19:32:26 Crashlytics has a pretty web interface Aug 15 19:32:34 except for the stupid stamp Aug 15 19:32:38 and decent reporting Aug 15 19:32:47 yeah there are a few things I would change Aug 15 19:33:01 the gradle plugin is annoying and breaks incremental builds Aug 15 19:33:05 The api is simple.. Setup is horrible Aug 15 19:33:22 Setup is horrible ? Aug 15 19:34:10 I just re-setup a few weeks ago, and dont even remember it, so erm, cant have been that horrid :) Aug 15 19:35:14 As a new user, it is horrible Aug 15 19:35:16 Or was, at least Aug 15 19:35:33 I made a step by step guide: https://plus.google.com/u/0/+SimonVigTherkildsen/posts/P1EW7p8pK9P Aug 15 19:36:26 ah, maybe cause I just did 3,8,10 then :) Aug 15 19:36:36 already had everything setup Aug 15 19:36:45 well, cept AS integration Aug 15 19:38:38 g00s have you tried it? Aug 15 19:38:39 SimonVT that is pretty horrid :| Aug 15 19:39:08 g00s: Yep. Aug 15 19:39:10 lasserix Crashlytics? not ... yet. i probablt wouldn't have figured it out without SimonVT 's post :P Aug 15 19:39:18 no imean fb-adb Aug 15 19:39:32 lasserix ah, i just saw it on reddit/r/androiddev Aug 15 19:39:37 Apparently additional apps are as easy as adding it, then it's automatically picked up Aug 15 19:39:38 is CrashAlytrics preferable to acra? Aug 15 19:39:45 no i haven't tried fb-adb Aug 15 19:40:10 lasserix, imo yes Aug 15 19:40:47 With ACRA you have to handle the web ui thing as well Aug 15 19:41:06 crashlytics has its own dashboard? Aug 15 19:41:17 yes Aug 15 19:41:18 lasserix: yes Aug 15 19:41:23 ahh Aug 15 19:41:23 cool Aug 15 19:41:27 doesn't crashlytics also have a plain analytics thing now too ? Aug 15 19:41:35 has it in now Aug 15 19:41:43 realtime usage and reporting Aug 15 19:41:48 session times etc Aug 15 19:41:54 so thats probably nice, everything in one spot Aug 15 19:42:01 wow Aug 15 19:42:07 well you say that but GA has that too Aug 15 19:42:16 as in crash reports + analytics Aug 15 19:44:31 SimonVT: you played with new android L then ? just noticed a post or two on your g+ Aug 15 19:44:46 g00s, wow, interesting find. this is exactly the problem I talked about yesterday (or the other day), how the shell seems to work fine on the device in any terminal size, but seems to be locked to 80x25 when used via adb Aug 15 19:44:57 however I don't really feel like compiling Aug 15 19:44:59 StingRay_: Yeah, I made a LayoutManager for RecyclerView Aug 15 19:45:34 I have done the shadow view thing for ages with view offset padding and drawable with gradient etc.. is the new stuff just that, or is it actual 3d buffer render shadow stuff like the hype says ? Aug 15 19:45:41 cause that would seem, expensive lol Aug 15 19:45:46 oh crashlytics looks great too thanks Aug 15 19:47:08 g00s, wait, the resulting fb-adb binary still depends on the stock adb binary? that is weird Aug 15 19:47:18 for LVL, how often should SALT be regenerated? Aug 15 19:48:06 StingRay_: No idea how it's done, really. Doesn't seem to impact performance Aug 15 19:48:10 It's just.. kind of broken Aug 15 19:48:27 then all the hype is bollox then I think Aug 15 19:48:29 nothing new Aug 15 19:48:51 but why does crashlytics want access to my twitter account Aug 15 19:48:59 owned by Aug 15 19:49:04 I can't imagine they intented for elevated views to be on top edge glow Aug 15 19:49:11 twitter, but you can sign up without twitter Aug 15 19:49:21 And if they did, their CardView is just broken Aug 15 19:49:33 And shouldn't be implemented in that way Aug 15 19:49:54 I think google did an apple at this IO Aug 15 19:50:15 did very little but sold it as massive with buzz words Aug 15 19:50:17 :) Aug 15 19:50:23 it just says i'm on the list. that's not very useful Aug 15 19:50:23 thats some skillz right there! Aug 15 19:50:38 Vino: ya in beta, takes a bit to get on Aug 15 19:51:09 Vino: dont get too reliant on it either, I image it will become a premium paid service Aug 15 19:51:13 good for now though Aug 15 19:51:28 why not just go with acra then Aug 15 19:51:52 Because you have to handle the backend as well Aug 15 19:51:52 cause it looks shady Aug 15 19:51:58 :) Aug 15 19:52:19 ACRA isn't shady.. You can have it post to anything you want.. Great if you have some custom backend Aug 15 19:52:45 They have acralyzer you can set up, but who wants to maintain that Aug 15 19:52:53 didn't say it was, just said it looks it :) Aug 15 19:53:14 ACRA had a horrendousl SSL bug a while back Aug 15 19:53:14 they dont do the server/web side ? Aug 15 19:53:24 btw if anyone needs to generate documentation and use markdown, mkdocs is awesome Aug 15 19:53:28 No Aug 15 19:54:15 They just provide a couchapp you can host somewhere Aug 15 19:55:07 my crashes will be very low volume, no reason i can't just dump them in a folder somewhere, no? Aug 15 19:55:36 why not just request android.permission.WRITE_EXTERNAL_STORAGE, then use Thread.setDefaultUncaughtExceptionHandler() with a simple file writer to dump relevant info to a log file, then ask users to send in logs? all these other solutions seem much better of course, but they also seem... kind of an overkill Aug 15 19:56:03 Because then you have to ask the user to send in the logs Aug 15 19:56:22 99.99% wont contact you Aug 15 19:57:04 because i would rather spend two hours plugging in a library that does 100 things than two hours writing code that does one thing Aug 15 19:57:05 You can also use it to log caught exceptions Aug 15 19:57:33 hm, I guess Aug 15 19:57:52 * ravilov is currently participating in debugging/fixing a pretty high-volume app that does crash reports in exactly the way described Aug 15 19:58:57 For every crash you get a user to send you, hundreds more have happened Aug 15 19:59:18 yeah I can totally believe that Aug 15 20:00:07 I guess I'm just hopeful that reports from 0.01% users that do send it in will help fix 99% of all the bugs :) Aug 15 20:00:51 because I figured the same bug is going to affect many people, and only one of them has to send in the report Aug 15 20:01:23 And then you have the bugs that happen very rarely that you never get fixed because noone notifies you Aug 15 20:03:11 SimonVT, then those must be unimportant, right? ;) Aug 15 20:03:18 just kidding Aug 15 20:04:06 Try adding it at some point.. I think you'll be amazed Aug 15 20:05:01 Or if you're using analytics, log every time your app crashes.. Compare numbers :p Aug 15 20:05:57 looks to me like bugsense does all this: https://www.bugsense.com/docs/android Aug 15 20:06:20 and is free for low volume Aug 15 20:06:36 and i don't have to muck around with any server repository Aug 15 20:06:36 Anyone know a simple way to add a color filter, but to change the transparent pixels into solid ones? Aug 15 20:11:57 wear tinted glasses? Aug 15 20:12:43 lasserix: The lenses are transparent, so the other transparent areas would still be transparent. :-P Aug 15 20:13:00 tinted Aug 15 20:14:14 solid underneath, draw translucent on top, draw alpha on top of that? Aug 15 20:16:47 Hi all. I'm trying to compile Android base core java libraries only (that's in frameworks/base/core/java). How do I do that? Aug 15 20:20:55 jessie: you can use a ColorMatrixColorFilter Aug 15 20:23:42 jessie: http://pastebin.com/nCLPF9Xy Aug 15 20:24:11 jessie: should keep the original red, green, blue values and replace alpha with 100% Aug 15 20:24:30 that last number might have to be zero.. i forget Aug 15 20:25:06 SimonVT, none of my apps are high-profile enough for me to notice anything :) Aug 15 20:25:19 for starters, none of them are on the play store (and they never will be) Aug 15 20:29:38 Napalm quick q; i have one fragment with 3 tabs via TabHost. each tab has an elaborate view structure. how can i only have the selected tab's view hierarchy attached to the window? i think the way we usually do it with TabHost in the framelayout, is all the views (for all tabs) are loaded Aug 15 20:29:59 i dont want to split this across fragments, use FragmentViewPager or anything like that Aug 15 20:30:20 this is like a little sheet that pops up like Google Play Books 'Aa' button Aug 15 20:30:57 so its not related to actionbar navigation modes, etc Aug 15 20:32:44 Napalm: Thank you. Aug 15 20:33:09 huh, how do I make a textview scroll horizontally by touch? Aug 15 20:33:26 my singleLine/horizontallyScrolling textview ignores touch when text is wider than the width... Aug 15 20:33:48 of course I can wrap in a horizontalscrollview, but trying to avoid that Aug 15 20:37:20 pfn, not sure this is possible Aug 15 20:38:06 edittext does that and with some effort it can be styled to look like a textview Aug 15 20:38:07 pfn: it wont drag-scroll on its own, only a horizontalscrollview can do that Aug 15 20:38:16 pfn: ofc you could marquee it Aug 15 20:38:29 oh wait Aug 15 20:39:03 pfn: the ScrollingMovementMethod might do it, but never tried that horizontally Aug 15 20:43:00 yeah, I tried the movement method, wouldn't scroll either Aug 15 20:44:19 pfn: works for me Aug 15 20:44:30 Napalm, by touch? Aug 15 20:44:38 on TextView? EditText does, but not textview Aug 15 20:44:40 yes Aug 15 20:44:42 Textview Aug 15 20:45:04 that's odd, it's not doing it for me, I wonder why Aug 15 20:45:10 pfn: http://pastebin.com/r9Q2bR5B Aug 15 20:45:49 g00s: hey Aug 15 20:46:02 hey Napalm :) Aug 15 20:46:34 actually, my text disappears when I set movementmethod... hmm Aug 15 20:46:47 * pfn ponders Aug 15 20:46:49 pfn: i know that bug Aug 15 20:46:58 pfn: its your textColor selector Aug 15 20:47:20 set the background of the TextView to white and see how it looks Aug 15 20:47:37 g00s: what was your problem? Aug 15 20:47:38 or use a stateless selector ;) Aug 15 20:48:06 well, I shouldn't have a selector, I setTextColor(WHITE) Aug 15 20:48:44 pfn, movement methods often times do some magic that override that in some ways Aug 15 20:48:44 actually its best to set it to: android:textColor="?android:attr/textColorPrimaryNoDisable" Aug 15 20:49:21 g00s: whats up.. Aug 15 20:49:24 Napalm i have a TabHost with several tabs, but each tab has quite too many views. is there a way to make sure only the currently selected tabs are inflated into memory ... Aug 15 20:49:39 these tabs all belong to the same fragment Aug 15 20:49:51 (so i didn't want to split up the fragment and use something else) Aug 15 20:50:51 if that makes sense :( Aug 15 20:51:34 g00s: yea, create a ViewGroup that inflates content into itself when onAttachToWindow/onDetachWindow is called Aug 15 20:52:05 perhaps also have a callback after inflation has taken place so you can get handles to sub-views Aug 15 20:52:14 Napalm but wouldn't the TabHost just attach all the things ? Aug 15 20:52:23 you miss the point Aug 15 20:52:41 wait Aug 15 20:53:05 mTabContent.setVisibility(View.VISIBLE); Aug 15 20:53:10 ok so do it onVisibiilitychanged Aug 15 20:53:14 same diff Aug 15 20:53:25 Napalm hmm, ok Aug 15 20:53:26 just to inflate when you need to Aug 15 20:53:35 infact Aug 15 20:53:39 you dont need to do that Aug 15 20:53:40 yeah on demand inflating is easy (content factory) Aug 15 20:54:03 even with viewStubs Aug 15 20:54:23 did you look at TabHost Aug 15 20:54:36 not the sources Aug 15 20:54:59 i guess i should, but ... if its not documented its behavior could change any time Aug 15 20:55:11 why are notifications left aligned? i found someone on stack overflow with a similar problem: http://stackoverflow.com/questions/21600728/appearance-of-action-buttons-in-notifications Aug 15 20:55:13 your just easier off creating a quick view-group that acts like a tab host simple enough Aug 15 20:55:24 just don't use TabHost is the best answer Aug 15 20:55:34 is there a way to center align the icons? Aug 15 20:56:07 dcope: looks like what you actually want to do is to create a custom remote views rather than use the template then Aug 15 20:56:15 ah ok Aug 15 20:56:16 ok thanks Aug 15 20:56:52 dcope: I think I can tell you why.. just looking at your code.. try sending null instead of "" for your action button text Aug 15 20:57:10 Registered an activity receiver for SET_TIMER(https://developer.android.com/training/wearables/apps/voice.html#SystemProvided) but getIntent().hasExtra(EXTRA_LENGTH) always returns null on the watch Aug 15 20:57:11 Napalm: that's not my code :P that's someone else on stack overflow who had the same problem Aug 15 20:57:18 but yeah, in mine i an using null for the text value Aug 15 20:57:32 *sorry returns false Aug 15 20:57:34 why no text in your notification actions Aug 15 20:57:41 and yeah, if you don't want text, use your own RemoteViews Aug 15 20:58:17 if you're using remote views though, is there a way to make sure text labels are white when the notification gets highlighted? Aug 15 20:58:28 yes Aug 15 20:58:38 use a color selector Aug 15 20:59:16 sure, use the right resources Aug 15 20:59:22 ok cool Aug 15 20:59:24 thank you all Aug 15 20:59:30 I need to write a stupid notification template for qicr Aug 15 20:59:38 I want TruncateAt.START, not END Aug 15 20:59:41 for bigTextStyle Aug 15 20:59:44 does it need to be stupid? Aug 15 20:59:45 :p Aug 15 21:00:02 yeah, because remoteviews are pretty stupid Aug 15 21:00:05 awesome, but stupid Aug 15 21:00:12 g00s: catch you later Aug 15 21:00:13 right, im outta here, perhaps i'll be back later.. for the moment I'll leave you with this awesome tune https://www.youtube.com/watch?v=LQSsq7HCNHw Aug 15 21:00:19 hey Napalm take care Aug 15 21:01:08 Hey, I'm back. Aug 15 21:01:44 I have a problem with VideoView... I hope someone has a idea Aug 15 21:01:46 anyone know if android:gravity="start" on a TextView is supposed to make the text appear at the right in RTL layouts? Aug 15 21:02:48 DallasG, presumably that's what it will do Aug 15 21:02:56 DallasG, of course, you have to contend with the width of the view as well Aug 15 21:03:02 of course Aug 15 21:03:14 I'm trying to determine definitively Aug 15 21:03:30 I assumed that's what it should do as well, but in AS's rendered, it is not doing that Aug 15 21:03:44 I have some VideoViews inside a ViewPager. And VideoView is very slow to load videos via setVideoUri. I tried putting the call in a thread but VideoView seems to bypass it and run on the UI thread. Any ideas? Aug 15 21:03:45 despite being configured appropriately Aug 15 21:04:36 I am using a DialogFragment which is displayed on button press Aug 15 21:04:36 Napalm|afk: awesome is getting short mate Aug 15 21:04:57 now, when I spam hit the button, then I get into a crash: Fragment already added: AuthenticationDialogFragment{415bf688 #0} Aug 15 21:05:11 checking if the fragment is already visible did not help, any idea how to catch this one? Aug 15 21:05:27 DallasG, does this help? https://code.google.com/p/android/issues/detail?id=57667 Aug 15 21:06:05 hm i guess this is what i was looking for http://stackoverflow.com/questions/3842375/how-to-deflate-a-viewstub Aug 15 21:06:12 ah isAdded() is needed Aug 15 21:06:58 Do I need to give more clarification for my question? ;) Aug 15 21:17:47 oh nice, About Face 4th Edition is out Aug 15 21:17:53 one of the best UI books evar Aug 15 21:18:05 and .. Aug 15 21:18:10 fff yeaaah http://shop.oreilly.com/product/9781457182921.do Aug 15 21:18:22 hope they describe how to put lasers on the rockets Aug 15 21:24:47 Anyone figure out how to link javadoc to maven repo .aar files added as dependencies in Android Studio? Aug 15 21:30:50 how do you get a view from a remote view? i can't find any method to get access to an imagebutton in a remote view Aug 15 21:34:30 dcope you don’t Aug 15 21:35:07 remoteviews are a way to do view interaction cross process boundries. you only get to use the methods exposed by the remoteviews Aug 15 21:35:56 dcow: ah. it looks like setOnClickPendingIntent will suffice then Aug 15 21:36:16 that's pretty much all you can do dcope :D Aug 15 21:37:16 does anyone have an explanation why a rapid double space might cause an inputfilter to delete text? Aug 15 21:37:51 dcope it should be noted that you can often provide your own remoteviews if you working with notifications Aug 15 21:38:15 if the dstart/dend of the field was 8 before the double space, it becomes dstart = 6 dend = 8, then dstart/dent is 6 Aug 15 21:39:07 this might sound stupid heater89, but does your keyboard have a function where swiping will delete text? Aug 15 21:40:07 I_Artist: it is the standard google keyboard (and no not stupid, i know the input filters are hard to deal with because of all the functions built into keyboard :) ) Aug 15 21:40:25 oh, so for each button you'd make a new intent & pendingintent? Aug 15 21:40:29 and that's how you know what button was tapped? Aug 15 21:40:33 I don't use the Google keyboard :) Aug 15 21:40:55 I_Artist: now that you mention it, i am going to try to see if the same issue happens with a different keyboard Aug 15 21:41:27 huh... doesn't happen with swift key Aug 15 21:41:47 Thanks for that bit of insight Aug 15 21:41:54 cool mate Aug 15 21:42:04 every bit helps :) Aug 15 21:42:11 dcope: you might want to read this blog post that I made http://androiddevcorner.blogspot.ca/2014/01/creating-distinct-pendingintents.html Aug 15 21:42:59 I_Artist: is this applicable to just trying to add a button to a RemoteView in a notification? Aug 15 21:43:50 i dont want to actually jump back to the app when the user taps a button Aug 15 21:44:00 oh, I didn't realize it was for notifications. I'm assuming yes, because the problem is the PendinIntent itself Aug 15 21:44:26 JakeWharton, i like the callback inteface in retrofit, but in our app we have lots of categories of network requests, where errors coming back are handled a certain way. how would you recommend dealing with this while still using a parameterized callback Aug 15 21:44:42 I meantioned it because you said "each button" therefore you will probably need more that one Intent Aug 15 21:44:48 i want to abstract the handling code away for each category essentially Aug 15 21:50:45 so setOnClickPendingIntent should call onResume when the button is tapped, right? Aug 15 21:52:31 you should never call those callbacks directly Aug 15 21:53:04 I_Artist: no, i'm not. i'm just wondering if onResume will get called on the activity Aug 15 21:53:27 sorry, I misread that :) Aug 15 21:53:31 no worries Aug 15 21:53:36 yep Aug 15 21:54:24 fuck, wait.. sorry, you're talking notifications, I'm not sure. Aug 15 21:56:25 so it seems like on the Kindle if a fragment contributes to the action bar it won't actually show it until you do something that invalidates Aug 15 21:56:56 I did it with widgets, they are BroadcastReceives and in that case the onReceive gets called. Aug 15 22:02:09 whomp_: have a base callback that handles certain types of errors automatically Aug 15 22:10:21 hi Aug 15 22:11:22 i picked up a nexus 5 to test my app on - i've been using the emulator up until this point. for some reason the device manager in windows is showing the android phone as "acer composite adb interface" - is that the correct thing to use for installing the google usb drivers and debugging? Aug 15 22:23:42 hey Aug 15 22:24:50 I am creating textviewprogrammatically. But they do not get the style of the application. Aug 15 22:25:31 textviews programatically* Aug 15 22:25:47 I do not wish to set a style programmatically because that causes coupling Aug 15 22:26:10 any tips on how to deal with the situation? Aug 15 22:36:02 if I am in master-detail in landscape, then switch to detail in portrait, the master fragment's options still contribute to the menu. what is the best way to prevent this? Aug 15 22:39:08 i know I could do a check for orientation, and the fragment, then remove if it is still there. just thought maybe there was a better solution Aug 15 22:42:08 do all android keyboards conform to the inputflag types that can be set on EditText/TextViews ? Aug 15 22:44:30 or is it common to disable suggestions and only a handful of keyboards obey that? Aug 15 22:55:18 anyone used cloud endpoints ? Aug 15 22:55:20 https://www.youtube.com/watch?v=A7yMmvrpMJc Aug 15 23:11:23 anyone familiar with testing a contentobserver with robolectric? Aug 15 23:11:27 mine isn't being notified :( Aug 15 23:22:38 hey canadiancow Aug 15 23:22:40 hows it going Aug 15 23:28:29 Hi, I have a somewhat beginner question: Aug 15 23:28:48 ask it Aug 15 23:28:58 I've included a library I found as a module in my project in Android Studio. Now when I run the app on my phone, it also runs the demo app included in that module Aug 15 23:29:09 How do I stop it from installing the demo app? Aug 15 23:29:21 The library works great otherwise with my app Aug 15 23:29:34 lol what, both get installed? Aug 15 23:29:43 Yeah, it's really weird Aug 15 23:29:49 I followed all instructions I found Aug 15 23:29:52 gradle? Aug 15 23:29:54 Yes Aug 15 23:30:21 just remove the sample module from the.... settings.gradle? Aug 15 23:30:29 not sure which file they are specified in off hand Aug 15 23:31:15 also u might be including it wrong Aug 15 23:31:18 my settings.gradle is only "include ':app'" and "include: 'theLibrary'" Aug 15 23:31:19 what library Aug 15 23:31:24 transitionViewPager Aug 15 23:32:00 I've been fiddling around with this for a long time trying to figure it out Aug 15 23:32:28 link? Aug 15 23:32:41 to the lib Aug 15 23:33:03 https://code.google.com/p/transitionviewpager/source/browse/ Aug 15 23:33:29 as you can see, under src > com > abhi, there are two packages Aug 15 23:33:38 thats not gradle lol Aug 15 23:33:44 animated contains what I need, and transitionviewpager contains the demo Aug 15 23:34:01 My project uses gradle Aug 15 23:34:01 just delete the demo activity Aug 15 23:34:07 I did, it crashes Aug 15 23:34:19 it's still trying to install the activity Aug 15 23:34:23 demo* Aug 15 23:34:42 remove it from the manifest Aug 15 23:35:09 hmm Aug 15 23:35:47 weird for a project that new to not be an apklib or aar Aug 15 23:36:10 yeah, it's different that all others I found so far Aug 15 23:36:25 ^ also it crashes if I remove the activity from the manifest Aug 15 23:36:45 thing is, it's installing both projects under my package name Aug 15 23:36:49 with my icon and app name Aug 15 23:37:05 look at where it cashes Aug 15 23:37:41 Hmm, it worked this time Aug 15 23:37:47 Even though I changed nothing Aug 15 23:37:54 Well if that solved it, then thank you very much Aug 15 23:38:02 Been working on this for awhile now Aug 15 23:38:03 lol Aug 15 23:38:25 Yup, worked again Aug 15 23:38:35 cool Aug 15 23:38:39 Thanks man Aug 15 23:38:44 lol np Aug 16 00:03:42 Could a native speaking German translate 3 lines for me please? Aug 16 01:05:32 Is there something comparable for older API's to setShowWhen which showed up in API 17? Aug 16 01:17:52 what does it do Aug 16 01:47:56 no Aug 16 01:48:45 here's a pull request from November where I tried to add it: http://r.android.com/70542 **** ENDING LOGGING AT Sat Aug 16 02:59:58 2014