**** BEGIN LOGGING AT Tue Apr 14 02:59:59 2015 Apr 14 03:01:06 kind of it these days Apr 14 03:01:21 too bad kotlin was no-show in any of those charts :( Apr 14 03:02:03 does anyone know how to change the color of the MyLocation button on a GoogleMap like in the Google Maps application? Apr 14 03:02:16 "motivation for using stackoverflow" - "Because I can't do my job without it": 20.5% Apr 14 03:02:18 hahaha Apr 14 03:03:12 those 20.4% developers were android devs, apparently Apr 14 03:03:16 capella: no, I'm looking at the SO survey goos mentioned Apr 14 03:03:24 that was one of the charts Apr 14 03:03:31 (the compensation by SO rank one) Apr 14 03:04:28 oh, :) I though you were quoting clause a from a job posting Apr 14 03:04:58 that's a pretty interesting survey Apr 14 03:11:43 g00s_, no one wants to work with Java, they just have to Apr 14 03:12:23 pfnQ looks like scala devs get paid alot - now we know how you afford all those fancy coffee beans Apr 14 03:17:27 g00s_: you turned me onto kotlin a few days ago, I'm def a fan Apr 14 03:17:35 I feel like people just don't know about it at this point Apr 14 03:17:39 mrfu :O Apr 14 03:22:41 Pwnies: me? Apr 14 03:29:42 If i have a View in a linear layout set to gone will view below it be below it or ontop of it? Apr 14 03:30:51 the same as before Apr 14 03:41:45 g00s_, I get paid for my work in Java, though Apr 14 03:50:31 what's that feel like? Apr 14 03:53:31 capella it means pfnQ is actually able to keep the light on XD Apr 14 03:53:46 :p Apr 14 03:57:36 If I want to read and write to a local json where I save it? I was using res/raw but I found that its not possible so what I can do? Apr 14 03:58:27 http://developer.android.com/guide/topics/data/data-storage.html Apr 14 04:02:32 desmin88 so I need to use internal storage? If I execute the write method it will create new file in res/raw? Apr 14 04:02:39 no it wont Apr 14 04:02:48 it will create the new file in the internal storage Apr 14 04:03:14 And Apr 14 04:03:26 How I can check it from android studio? what is the path? Apr 14 04:03:49 Or i cant? Apr 14 04:04:13 you define the path yourself within your apps storage Apr 14 04:04:14 read the page please' Apr 14 04:05:21 you can call getFilesDir() on the context for the path Apr 14 04:06:05 https://developer.android.com/reference/android/content/Context.html#getFilesDir() Apr 14 04:10:13 Has anyone here dealt with Network Service Discovery? Apr 14 04:11:49 http://developer.android.com/training/connect-devices-wirelessly/nsd.html Apr 14 04:25:48 Those stats are interesting. Apr 14 04:25:57 One thing grinds my gears, though: "there's no doubt everyone who codes needs to be more proactive welcoming women into the field". Apr 14 04:26:06 Those stats do not in any way suggest that women are not being welcomed. Apr 14 04:26:20 I think the fact is that women are way less likely to enjoy programming. Apr 14 04:26:57 would it be against play store rules to offer a bitcoin address for donation in the store listing? Apr 14 04:28:37 DadFoundMy: Yeah, I think so. Apr 14 04:29:33 damn :/ Apr 14 04:31:13 I think it might fall under the realm of this quote: "Developers charging for apps and downloads from Google Play must do so by using Google Play's payment system." Apr 14 04:31:18 From . Apr 14 04:31:52 There was an even-more-relevant quote, I think, but I can't find it. Apr 14 04:32:08 anyone with Rx (or similar) experience: having read CedricBeust's (quite nice) blog posts, I see he makes the same "n-clicks" simplification that I always see. a triple click is a set of three quick clicks... which consumes those three. four fast clicks is not two triple clicks. obviously there are ways to handle this, but everything I've thought of adds Apr 14 04:32:08 several layers, and I'm curious if there's an elegant way of handling this requirement. Apr 14 04:32:43 would i be able to ask for bitcoin in the app? Apr 14 04:32:57 DadFoundMy: no Apr 14 04:33:37 So I'm having trouble stacking a toolbar + content view + mopub adview, I get the toolbar to take up its space and the content view gets the rest, but I can't get the mopub adview to display Apr 14 04:33:57 I've tried stacking in a linearlayout or currently a relativelayout: http://pastie.org/10091079 Apr 14 04:34:26 although I'm thrilled to see his technique doesn't require waiting X-milliseconds to detect an N-click. that's an approach I haven't seen, I like it. Apr 14 04:35:41 DadFoundMy: "The Payment Processor must process all fees that a Developer receives for any version of a Product distributed via the Store." Apr 14 04:35:47 "Payment Processor(s): As specified and designated in the Developer Programme Policies, a party authorised by Google to provide services that enable Developers with Payment Accounts to charge users for Products distributed via the Store." Apr 14 04:35:52 https://play.google.com/about/developer-distribution-agreement.html#pricing-payments Apr 14 04:36:08 TL;DR: Any fee you get must be processed via Google Wallet. Apr 14 04:36:09 DadFoundMy: I missed the beginning, but there's an exception for things "primarily consumed outside [the app]". e.g. amazon could accept bitcoins, as I understand it, because it's not buying things for use in the amazon app. Apr 14 04:37:09 g00s_: would you know what is the cause of "Software caused connection abort" which drop a bluetooth connection ? Apr 14 04:37:20 g00s_: I was used to the read -1 but this one is a first Apr 14 04:37:36 I'm reading that if it's simply a donation with no reward it may be allowed Apr 14 04:37:43 no ... read -1 is SDP failure Apr 14 04:37:51 I don't do SDP Apr 14 04:37:59 seems as though you guys are right htough Apr 14 04:38:00 android does i think Apr 14 04:38:10 when you first connect Apr 14 04:38:13 hmm no because I dont fetchUUid Apr 14 04:38:24 I never receive ACTION_UUID Apr 14 04:38:28 takes too much time Apr 14 04:38:28 DadFoundMy: Hmm, that seems to contradict the above quote ("The Payment Processor must process all fees that a Developer receives for any version of a Product distributed via the Store."). Apr 14 04:38:41 I try to connect when I discover a device Apr 14 04:38:54 without knowing if the service runs or not Apr 14 04:39:00 Though I guess it depends on how you define 'fee'. Apr 14 04:39:01 TacticalJoke: hmm it's tricky Apr 14 04:39:15 yeah its all about the deffinition of fee Apr 14 04:39:50 i asked in #bitcoin, maybe they have the answer Apr 14 04:39:56 Also see stuff like this: http://grokbase.com/t/gg/android-developers/123vf2vpke/my-app-was-suspended-for-a-donate-button-google-hasnt-responded Apr 14 04:40:02 g00s_: cause my connection will work for a while, and then for some reason it will drop (software caused connection to abort) and then cannot connect anymore, every connect drop Apr 14 04:40:07 I've seen a few people claming their app was taken down because of a Donate button. Apr 14 04:40:14 (Though they could be wrong, of course.) Apr 14 04:40:32 Marlinski oh thats interesting Apr 14 04:40:45 yeah i recall seeing a story of someone's app being pulled for a donate button but i dont really remember Apr 14 04:40:50 so ive taken over a project and don't have the key password for the keystore that was used to publish this app Apr 14 04:40:53 how screwed am i? Apr 14 04:41:03 Marlinski hm well, i implement reconnect logic ;) Apr 14 04:41:03 but if you can't connect any more - bad Apr 14 04:41:10 AshyIsMe yeah Apr 14 04:41:14 reconnect logic you mean ? Apr 14 04:41:35 what did you implement ? Apr 14 04:41:59 you'll have to create a new listing, new package Apr 14 04:42:32 Marlinski but you said you can't connect any more, they all drop Apr 14 04:42:32 i'm guessing then you need to recycle BT adapter Apr 14 04:42:32 thats pretty heavy handed though Apr 14 04:42:47 if i did add a donation address in my play store lsiting whats the worst that oculd happen? Apr 14 04:42:52 damn Apr 14 04:43:03 only way to make it work is to reset Bluetooth Apr 14 04:43:10 interestingly i can see some plaintext in the keystore file Apr 14 04:43:13 DadFoundMy, why not give your share to Google? ;) Apr 14 04:43:27 what looks like an alias name and some certificate info like what would be the OU Apr 14 04:43:35 AshyIsMe, if their password was weak you might be able to brute-force find it Apr 14 04:43:56 g00s_: I am afraid that it is due to me closing the connection sometime Apr 14 04:43:56 iprime: its open source and i would just want to use bitcoin Apr 14 04:44:12 DadFoundMy, oh, let them donate on your website Apr 14 04:44:25 g00s_: cause I don't want both to connect to the other so when one is connected, I cancel the other connect Apr 14 04:44:35 I am wondering if that could cause both to drop Apr 14 04:45:43 i dont think you can use Donate unless you are registered 501(c) Apr 14 04:45:48 Marlinski i have no idea what you are doing :D Apr 14 04:46:19 g00s_, how much taxes on donated money? Apr 14 04:46:32 if at all? Apr 14 04:46:34 i have no idea Apr 14 04:47:04 well it would be donated in bitcoin so no taxes anyway Apr 14 04:47:16 how about taxes on the income Apr 14 04:47:21 iprime: yeah i might have to try that Apr 14 04:47:32 here you pay 3-4 times more taxes to income of natural persons vs corps Apr 14 04:49:47 <`vesrah> what is the best way to get info out of a database that serves as the backend for an existing website? Apr 14 04:50:00 <`vesrah> to move a website over to an android app front end Apr 14 04:51:43 make the site responsive? ;) Apr 14 04:52:04 <`vesrah> it is ;) Apr 14 04:52:15 <`vesrah> i want to write an app Apr 14 04:52:19 <`vesrah> this is a starting point Apr 14 04:52:19 `vesrah, do you want it to be available offline? Apr 14 04:52:22 <`vesrah> no Apr 14 04:52:32 write a simple restful backend then Apr 14 04:52:55 <`vesrah> as in a php page that takes get input and returns json? Apr 14 04:52:58 what's yoru backend/website built on? Apr 14 04:53:04 <`vesrah> php/mysql Apr 14 04:53:10 `vesrah, yeah Apr 14 04:53:27 php devs always struggle with this :) Apr 14 04:53:40 Is there anyway to sandwich a view with match_parent inbetween a toolbar and a banner ad (both fixed height) Apr 14 04:53:48 <`vesrah> i wouldn't call myself a php dev, i am a newer dev Apr 14 04:54:07 <`vesrah> i figured my idea was the best way but everyone has special names for this kinda stuff Apr 14 04:54:08 desmin88, linear layout with weight or relative layout Apr 14 04:54:27 If I go toolbar -> main content view -> banner ad my banner ad wont appear Apr 14 04:54:38 iprime: ive tried relativelayout but again the banner ad doesnt appear Apr 14 04:54:55 desmin88, probably something with your layout.. or code :D Apr 14 04:55:04 nothings wrong with the code Apr 14 04:55:10 desmin88 remove banner ad : fixed \o/ Apr 14 04:55:16 heh Apr 14 04:55:17 or that Apr 14 04:55:48 If I go toolbar -> banner ad -> content view, all three appear. Apr 14 04:57:26 Heres my linearlayout attempt Apr 14 04:57:26 http://pastie.org/10091101 Apr 14 04:57:54 use weight on your framelayout Apr 14 04:58:23 that wont accomplish what i want Apr 14 04:58:48 you sure? Apr 14 04:58:52 tried? Apr 14 04:58:56 yes Apr 14 04:58:59 hmm Apr 14 04:59:12 i want the main content view to have everything left between the toolbar and banner ad Apr 14 04:59:52 <_genuser_> geez, the verizon dns servers are so horrible. Apr 14 05:00:02 <_genuser_> every give minutes can't get out and resolve domains. Apr 14 05:00:28 <_genuser_> so stupid. have to wait for 2-5min each time it's out. and it's going out like crazy now. Apr 14 05:00:35 use google dns Apr 14 05:00:41 <_genuser_> 8.8.8.8 ? Apr 14 05:00:44 or 4.4.4.4 Apr 14 05:01:20 desmin88, using weight should have worked, can you show me yoru weight version? Apr 14 05:01:38 weight wont work, i dont want to divide the space and alot it to each component Apr 14 05:01:52 i want simply to give my content view everything after the toolbar and baner ad Apr 14 05:02:03 desmin88, you just have to set ANY weight on the framelayout, no weight on the includes Apr 14 05:02:10 like weight =1 Apr 14 05:02:13 <_genuser_> desmin88: maybe I shoudl change the external router to use google. it's much better to actually have internet that works. Apr 14 05:02:17 what does that accomplish Apr 14 05:02:30 desmin88, what you sant Apr 14 05:02:31 want* Apr 14 05:03:13 well ill be damned Apr 14 05:03:19 why does that work Apr 14 05:03:31 because that's how weight works Apr 14 05:05:02 urgh Apr 14 05:05:12 im a dumb Apr 14 05:06:21 <_genuser_> lol, "im a dumb" is another fail. you're helping here. Apr 14 05:06:32 <_genuser_> _not_ helping here. Apr 14 05:06:38 Secondary google DNS is 8.8.4.4 btw Apr 14 05:06:54 <_genuser_> lol, rule of internet, "making fun of something will ensure that your own post has bunch of errors" Apr 14 05:07:14 <_genuser_> does google allow public use and publicly share this? Apr 14 05:07:16 I think he literally just couldn't even. Apr 14 05:07:29 <_genuser_> in other words, they won't get pissed and blacklist you? Apr 14 05:08:07 google dns is free Apr 14 05:08:40 <_genuser_> that's pretty cool. Apr 14 05:12:35 javap is so awkward regarding placement of command switches. Throws me off every time. Apr 14 05:15:38 TacticalJoke, you know intellij has a decompiler? Apr 14 05:15:56 aha ! i found the paper I wanted on writing fluent DSLs apis in Java Apr 14 05:16:35 iprime: Yeah, but I'm still on AS 1.1. Apr 14 05:16:39 ah Apr 14 05:16:49 i use jd-gui on windows too Apr 14 05:16:52 g00s_, do share Apr 14 05:17:02 http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.180.4784&rep=rep1&type=pdf Apr 14 05:18:11 i wasn't smart enough to figure this out myself :) Apr 14 05:18:18 was impressed by how jooq did their API Apr 14 05:20:43 It's funny -- the bytecode for [ List list = new ArrayList<>(); list.add("foo"); show(list.get(0)); ] is 100% identical to the bytecode for [ List list = new ArrayList(); list.add("foo"); show((String) list.get(0)); ]. I expected them to be almost the same, but I didn't realise there'd be no difference whatsoever. Apr 14 05:20:46 doesn't look as cool as kotlins though ;) Apr 14 05:21:48 (I kept seeing answers on SO claiming that generics mean no 'checkcast' bytecode instruction. I thought this must be wrong, so I tested it, and of course it is wrong.) Apr 14 05:26:01 This makes me want to get a dog: http://i.imgur.com/8C1sf4s.gifv Apr 14 05:27:29 lol, corgi Apr 14 05:27:41 theyre such emotional little creatures Apr 14 05:28:11 My girlfriend has a dog that gets extremely jealous, you cant pet another dog or even a human without the dog getting all pouty Apr 14 05:29:39 what an adorable creature Apr 14 05:36:15 sounds like a poorly trained animal Apr 14 05:37:04 not particularly Apr 14 05:37:28 young dogs with lots of energy tend to want to play, if ignored they wont be 'happy' about it Apr 14 05:42:03 hello Apr 14 05:44:10 is anyone there Apr 14 05:44:24 then murderer enters... Apr 14 05:44:42 Is it me you're looking for? Apr 14 05:47:52 Hi, I'm facing this problem from yesterday. My project doesn't seem to compile in android studio. When I hit run, gradle is stuck on 'Executing tasks[:app:assembleDebug]' Apr 14 05:48:26 Sophomore: Which version of Android Studio? Apr 14 05:49:28 TacticalJoke, 1.2 Beta 3 Apr 14 05:49:58 I had build problems with 1.2b3, had to downgrade Apr 14 05:50:19 Revert to 1.1, if the problem is solved, refuse to upgrade until 1.2 final comes out Apr 14 05:51:01 aah, sad! Apr 14 05:51:05 Sophomore, what if you just clean, then rebuild, does gradle finish? Apr 14 05:51:07 Sophomore what version of gradle ? Apr 14 05:51:20 But also try to build from the shell first Apr 14 05:51:23 Sophomore actually, what ver gradle-plugin Apr 14 05:51:29 whatitis-, After cleaning, rebuild takes ages to finish. Apr 14 05:51:40 what is latest, 1.1.3? Apr 14 05:51:48 but it finishes? Apr 14 05:52:01 and ages in internet time is 5secs, how long? Apr 14 05:52:06 Yeah, it does. and I'm using 1.1.0 Apr 14 05:52:10 sometimes gradle takes 1min+ Apr 14 05:52:15 Sophomore use 1.1.+ or 1.2.+ Apr 14 05:52:17 average is round 10-20secs Apr 14 05:52:28 since you are using AS 1.2, i would use plugin 1.2.+ Apr 14 05:52:30 there is a 1.2? Apr 14 05:52:36 i've been using 1.1.3 Apr 14 05:52:38 its beta Apr 14 05:52:40 There's a 1.2 beta. Apr 14 05:52:41 Yeah. Apr 14 05:52:44 It took 4 mins here. Apr 14 05:52:46 :D Apr 14 05:53:04 1.2.0-beta1 Apr 14 05:53:09 the android gradle plugin? ahh cool Apr 14 05:53:32 no, -beta2 Apr 14 05:53:36 i thought there's already 1.2 beta 3 Apr 14 05:53:40 4mins is a good amount, what kinda system are you building on Apr 14 05:53:51 iprime, i was talkin android gradle plugin Apr 14 05:53:56 oh Apr 14 05:53:57 all right Apr 14 05:54:12 iprime i meant the plugin, not AS Apr 14 05:54:24 yeah got it Apr 14 05:54:28 Ah, yeah, a beta2. Apr 14 05:54:32 whatitis-, Ubuntu 14.04, 6 gigs ram, i3 . Apr 14 05:55:16 I should build and test against 1.# Apr 14 05:55:23 2 to make sure it works Apr 14 05:55:26 Sophomore, have you tried previous builds of AS? If gradle is hangin, i dunno how AS versions affect it Apr 14 05:56:17 whatitis-, The problem is from the latest update. previously the whole thing took 4-10 secs to build. Apr 14 05:56:39 so only change was AS, gradle plugin stayed the same, but now getting that lag? Apr 14 05:56:55 Hello Apr 14 05:57:00 deja vu Apr 14 05:57:05 whatitis-, yeah, I guess I should update my gradle version to 1.2+ as was suggested by the others. Apr 14 05:57:29 I have a question but I'm not sure how to phrase it. Apr 14 05:57:37 Sophomore, try that, but if only change was AS, then if updating to the beta 1.2 plugin doesn't fix it i'd say downgrade your AS Apr 14 05:57:59 phyzix5761, just say it, then refactor as the conversation goes Apr 14 05:57:59 I'm new to web app development and I'm working on an android application Apr 14 05:58:35 whatitis-, this question is a bit noobish, but what's the easy way to downgrade? Apr 14 05:59:01 either always keeping a backup before upgrade, or going to the canary/beta channels for AS and getting lower versions Apr 14 05:59:27 keeping/making Apr 14 05:59:49 usually you can install AS x.y.x and x.y+n.z alongside each other Apr 14 05:59:49 whatitis-, Thanks a lot man. Apr 14 05:59:58 One user sends a message to the server (which I can already do with php) but now I want the server to send a notification to the second user s device that he was "mentioned" by this first user. Would I need to implement an ongoing client socket? Apr 14 06:00:05 but you need to get the full installs Apr 14 06:00:40 phyzix5761 you probably want to use GCM Apr 14 06:00:41 phyzix5761, socket or gcm Apr 14 06:00:50 ^^ Apr 14 06:00:57 Google cloud messaging? Apr 14 06:01:16 Socket not good enough, GCM Apr 14 06:01:32 Does the user need to have a Google account for this to work? Apr 14 06:02:13 no, need a device with play services Apr 14 06:02:30 isnt the same Apr 14 06:02:54 Ah OK. Cool. I'll research it. Thank you guys. Apr 14 06:02:59 Sorry to bother. Apr 14 06:03:49 No bothers, just remember to come in, be direct and keep on truckin Apr 14 06:07:26 thepoosh ! Apr 14 06:07:31 hi dude Apr 14 06:07:59 what's new in the world of tomorrow? Apr 14 06:08:44 thepoosh only that some 800 dpi device might be coming out, you'll have to test your video framerate ! Apr 14 06:09:09 first dibs on an oculus rift using that screen! Apr 14 06:10:16 g00s_: our framerate is predetermined to allow good streaming Apr 14 06:10:19 so... Apr 14 06:10:33 i read yesterday something about 4K devices Apr 14 06:12:15 That's a lot of devices Apr 14 06:12:44 thepoosh also google will move away from java - migrating to forth Apr 14 06:12:44 they need to work on a Sync, where what you read about 4K devices yesterday gets sync'd with what I know about 4K devices Apr 14 06:13:05 g00s_: are you talking about the whole Kotlin thing? Apr 14 06:13:25 Forth != Kotlin :) Apr 14 06:13:35 jk Apr 14 06:15:09 g00s_: nice one, I needed to google forth first ;) Apr 14 06:15:34 heh. forth is an interesting. language. Apr 14 06:15:42 god i hate develop image rich apps Apr 14 06:15:48 I've never actually used it, just read about it Apr 14 06:16:09 danijoo, why? Apr 14 06:16:16 i think i came closest programming my HP48 Apr 14 06:16:24 RPN forever Apr 14 06:16:25 I have an item-database like app and just added all the images I need in it Apr 14 06:16:30 40mb size -_- Apr 14 06:16:40 so just large apk? Apr 14 06:16:45 yes Apr 14 06:16:55 too large for what it does :) Apr 14 06:17:06 has this been vetted? Apr 14 06:17:22 vetted? Apr 14 06:17:42 been checked to concur that it's too large for what it does Apr 14 06:18:02 is it providing too high quality, that gets lost in transcoding? Apr 14 06:19:37 i didnt play arround with scale yet. I think i can get away with maybe 30 mb but meh.. Apr 14 06:20:04 how many images, and how different are they Apr 14 06:20:13 Im thinking about shrinking them to ultra-ugly size and giving a download-high-res on wifi option Apr 14 06:20:30 130 images completly different :) Apr 14 06:21:02 and they all must be looking ok in fullscreen :s Apr 14 06:22:09 its this app to be precise: https://play.google.com/store/apps/details?id=net.headlezz.hots Apr 14 06:22:30 screenshot #5 the header image Apr 14 06:22:58 <_genuser_> yo ppl. Apr 14 06:23:01 so not full screen, just larger Apr 14 06:23:26 or atleast an aspect ratio of max width to height Apr 14 06:23:34 whatitis-, problem is they must fit screen in landscape, too. Apr 14 06:23:44 and because of screenratio they are fullscreen in this case Apr 14 06:24:00 they are bigger in width and get cropped for portrait Apr 14 06:24:57 atm I have them in all together 30mb jpgs. not sure how to reduce that efficiently :/ Apr 14 06:25:13 without giving away user expierience Apr 14 06:25:25 is the db static in the apk, and no extraction and updating, or are there updates to be downloaed? Apr 14 06:25:49 or new entries to be downloaded and added Apr 14 06:26:10 There will be new entries, but for now I manage that with apk updates Apr 14 06:26:13 danijoo have you see http://developer.android.com/google/play/expansion-files.html Apr 14 06:26:31 currently sqlite db in assets and I copy them over after each update Apr 14 06:27:48 g00s_, isnt that for ultra large apps only? I feel like tricking my users by moving everything to an extension file Apr 14 06:27:51 expansion would be a choice, but also would be just only including thumbnails in apk, and allowing a setting in app to download larger images over mobile/wifi, but the hard part is thinking of a placeholder, incase neither options are selected Apr 14 06:28:19 expansion file allows for them to update over wifi, but the placeholder is what you should be working on Apr 14 06:29:53 can I decide when to download expansion files? I always thought play store automatically downloads them when app intalls Apr 14 06:30:21 maybe something playing off Palette with the thumbnails, but not sure off top head if Palette is a Lollipop class, but something similiar to create a theme based on the colors of the thumb graphics Apr 14 06:31:08 danijoo, some of the bigger games have a popup to link to downloading the expansion files Apr 14 06:31:17 so think it's setup like 2 seperate entries Apr 14 06:31:23 but don't quote me :) Apr 14 06:31:36 hm. I think i go with thumbnails Apr 14 06:31:46 and load highres images with picasso Apr 14 06:31:53 with an option to turn that off Apr 14 06:32:03 but give em an option for wifi only, or any Apr 14 06:32:08 yeah Apr 14 06:47:20 hmm, i have this one submodule in my gradle project that builds from CLI, but AS puts up error markes 'R' not found Apr 14 06:47:59 everywhere Apr 14 06:48:22 looking through build/ i see its there ... Apr 14 06:48:53 R.java generated fine Apr 14 06:49:37 R is not in my imports, but AS doesn't want to do it either Apr 14 06:49:45 yeah, its going to be 2020 before we have working tools Apr 14 06:51:06 g00s_: so soon? Apr 14 06:51:18 didn't realize you were such an optimist Apr 14 06:51:25 only slightly interesting thing about this submodue - it has attrs.xml Apr 14 06:51:32 custom attrs Apr 14 06:51:36 groxx heh Apr 14 06:52:00 R not found everywhere for all code, or just your submodule? Apr 14 06:52:19 we use a bunch of attrs. no problems so far (though plenty of annoyances) Apr 14 06:52:49 just that submodule. builds from CLI Apr 14 06:53:13 ah. though no submodules here Apr 14 06:53:30 solution! emacs and CLI gradle Apr 14 06:54:10 yeah .. Apr 14 06:54:36 groxx: don't be so pedestrian Apr 14 06:54:40 Vim and CLI gradle is the real solution Apr 14 06:55:35 I'm a vimmer. gotta raise ire somehow though :) it's late at night and I don't have time for more elaborate schemes. Apr 14 06:55:51 :) Apr 14 06:57:07 barbs did you see most devs use notepadd++ Apr 14 06:57:08 :D Apr 14 06:57:29 hah! Apr 14 06:57:36 all hail the vimmers :-P Apr 14 06:57:56 I've actually tempted to try out emacs, in evil mode of course Apr 14 06:58:04 *I'm Apr 14 06:58:11 scheme har har har Apr 14 06:58:19 regarding gradle, I once tried to test maven Apr 14 06:58:27 vim is for admins :) Apr 14 06:58:27 and failed badly :-( Apr 14 07:01:23 Looney: give it another go, they recently released proper testing support in Android Studio Apr 14 07:01:28 at least that's what I've read, I've not tried it myself Apr 14 07:01:37 barbs: is there a non-evil mode I haven't heard of? Apr 14 07:01:42 will do Apr 14 07:01:46 testing in Android has historically been a PITA Apr 14 07:01:47 back when I tried Apr 14 07:01:55 admittedly I don't bother, cos I'm a naughty boy Apr 14 07:02:11 I couldn't include another library project's code in my project Apr 14 07:02:11 groxx: lol Apr 14 07:02:16 yeah i only do low hanging unit test fruit myself Apr 14 07:02:30 parsers, isolated stuff Apr 14 07:02:31 couldn't figure out what did I miss in my pom.xml Apr 14 07:02:36 evil mode adds vim keys to emacs, so it actually makes it less evil? haha Apr 14 07:03:00 testTestsWork() { assert(true, "yup"); } Apr 14 07:03:16 I don't really understand why there are code-coverage tools for unit tests. "Testing everything" seems silly and wasteful. surely you'd only want to test would could break? Apr 14 07:03:18 hehehe Apr 14 07:03:30 then again I'm hardly experienced in the whole matter Apr 14 07:03:42 barbs: is there something on android that *can't* break? Apr 14 07:03:58 groxx: you're on a roll today!! Apr 14 07:04:27 just bitter :| dealing with camera = infinite crashes Apr 14 07:04:37 ergh...I know those feels Apr 14 07:04:54 barbs: it's part of the test-driven design orthodoxy Apr 14 07:05:04 so tempting just to wrap it up in a try catch block... Apr 14 07:05:43 alas, my time has run out o/ gnight all, keep fighting the good fight! Apr 14 07:05:53 gnight! Apr 14 07:07:03 night groxx Apr 14 07:09:33 would be nice if AS had a button letting me kill the daemon Apr 14 07:09:33 those of us desperate for ram between builds Apr 14 07:12:11 daemon for what Apr 14 07:13:43 anyone know how to write the definition of the function of rxandroid's Observable.combineLatest in Java 7? Apr 14 07:13:59 gradle build daemon Apr 14 07:14:52 that 500 mb barnicle stuck to AS process Apr 14 07:16:00 nevermind, I figured it out. Apr 14 07:17:32 i don't see a 500mb gradle daemon, just java, does it show up in windows task manager? Apr 14 07:18:50 it will show up as just java probably Apr 14 07:18:50 you have to kick off a build Apr 14 07:19:42 i did, java jumps only 20mb from idle, but maybe i'm not seeing something Apr 14 07:20:16 maybe i'm not running the daemon Apr 14 07:21:36 actually, don't you have to do something specific to run it as a daemon? I remember reading something ages ago that running it as a daemon reduces build-time but might use more ram Apr 14 07:21:46 might be wrong about that Apr 14 07:22:00 probably are Apr 14 07:22:43 no younhave to launch it as a daemon specifically Apr 14 07:22:51 and the OS should manage ram Apr 14 07:23:25 ironic that people who claim android apps mdon't need a quit/exit are concerned about the same on systems with swap Apr 14 07:24:13 AS manages the daemon itself. from CLI you have to enable daemon Apr 14 07:27:09 yes Apr 14 07:27:52 something reminded me of Day of the Tentacle Apr 14 07:29:36 are tools:abc="" tags stipped from apks while built? Apr 14 07:29:44 from xmls* Apr 14 07:32:18 I'm in love with the new memory/CPU tabs in the newer version of Android Studio. Apr 14 07:32:20 :) Apr 14 07:32:49 danijoo, why, and are you having issues? Apr 14 07:33:02 no. just out of interest ;) Apr 14 07:33:15 cool, i was just curious too :) Apr 14 07:33:53 i've not dabbled much with the tools: namespace, but seen it auto generated with fragments Apr 14 07:33:53 they shoudnt be needed in a built apk so i was curious if they are stripped away Apr 14 07:33:56 but i doubt so Apr 14 07:34:33 I recently use it a lot for textviews and imageviews Apr 14 07:34:35 is it strictly for UI use when building? without me googling it? Apr 14 07:34:47 ah guess i should google it Apr 14 07:35:01 http://tools.android.com/tech-docs/tools-attributes. Apr 14 07:35:15 thanks Apr 14 07:35:37 i cant see any tag there thats relevant at runtime Apr 14 07:36:30 but the list is not really complete. there is at least also tools:src and tools:text Apr 14 07:36:52 nvm. theres a link to them Apr 14 07:37:22 why Log.d() fails to work while others e.g. Log.e & Log.i works normally? Apr 14 07:37:45 zhangxaochen, maybe you set loglevel to high? Apr 14 07:37:46 zhangxaochen, your filters are masking such Apr 14 07:39:44 I set it to verbose, debug, info, all failed to work Apr 14 07:40:55 you said Log.i works normally, but info failed? Apr 14 07:41:32 maybe just open a terminal and logcat there Apr 14 07:41:57 Log.X don't fail in your apps, it's just the tools that you use to view logcat can be quirky sometimes Apr 14 07:42:31 whatitis-, no, i said, Log.d failed Apr 14 07:43:02 [03:39] I set it to verbose, debug, info, all failed to work Apr 14 07:43:08 i misread that then, sorry Apr 14 07:43:27 whatitis-, thx, i'll try a terminal Apr 14 07:54:48 i tried "adb logcat > logcat.txt", and Log.d still prints nothing, while Log.i is ok Apr 14 07:59:50 Hi! I am resizing my ImageView's LayoutParams in java and the imageview has adjustViewBounds="true" but the bounds are not adjusted on resizing the height, calling .setAdjustViewBounds(true) doesn't help either Apr 14 08:01:21 im not sure on that but it might not work because of adjustViewBounds Apr 14 08:02:02 you are telling android to resize the imageview depending on the loaded bitmap. How should this play together with changing its size manually Apr 14 08:02:19 danijoo: should I remove it and adjust the width myself as well? Apr 14 08:02:37 i dont know. Depends on what you are trying to do. Apr 14 08:03:07 I want to reduce the height according to screen height and maintain the aspect ratio, Apr 14 08:03:38 but screen height does not change at runtime. you can define it in xml and dont need to touch it in code after that Apr 14 08:05:59 danijoo: Not screen height exactly, some other things which will change depending on what user is doing Apr 14 08:06:13 oh ok. Apr 14 08:06:33 well. same problem. I dont think this is working well together with adjustviewbounds Apr 14 08:10:03 Ok so I removed adjustviewbounds and set width adn hieght both manually using aspect ratio Apr 14 08:11:06 did it work> Apr 14 08:11:47 Yep it did Apr 14 08:11:52 :) Apr 14 08:12:03 :) Apr 14 08:13:49 anyone have a plugin's setting page continually expand with android studio? Apr 14 08:21:24 lol. just realized there is a Log.wtf() Apr 14 08:21:38 What a Terrible Failure. :D Apr 14 08:22:13 ^^ Apr 14 08:29:52 I am using a custom AdapterView in which custom views(RelativeLayouts) are stacked one behind another, like cards are stacked on top of another. I want to get click on individual views in each Custom View, as well as the Views. I am binding clicks on individual views by binding OnClickListeners to each view in the BaseAdapter Class and clicks on the custom views in the AdapterView Class Apr 14 08:30:50 It was working perfectly when there were about 5 of these custom views in the AdapterView . But when I added more number, I am not getting the clicks to correct views Apr 14 08:31:22 When I click on a view that is on top, sometimes a view that is behind it consumes it. Apr 14 08:31:47 What might be causing this behaviour ? Apr 14 08:33:03 are you setting the click listeners in the getView of adapter? are you making sure to clear and reset upon recycling? Apr 14 08:33:34 with no if so and so equals so and so do so and so, but if not do nothing Apr 14 08:34:32 Yes I am setting click listeners in the getview. Just before returning the view Apr 14 08:34:45 always setting, and not ignoring? Apr 14 08:35:11 did you paste code link yet? Apr 14 08:35:18 Sorry. But how do I clear and reset in adapter view ? Apr 14 08:36:33 adapters alot of time recycle views, so if you set something, based on an if() but if an else and don't set, it'll use recycled settings set on view unless you override for each item Apr 14 08:36:46 paste your code Apr 14 08:42:17 @whatitis, please check my code here http://pastebin.com/BEBVtA1M Apr 14 09:50:29 Hi all. I'm using a custom font in a TextView and the numbers are lower than the letters. In a html page using the same font, there isn't a problem. Any advice? Apr 14 10:09:19 Hello. Suppose I am a lecturer at a university giving a course on making android apps. I have to give my students essay exams in which I want to test their ability to write code. However, I want to minimize the amount of syntax or function/class names etc. (basically anything that they can find in the reference manual online). What is a way of doing this other than including parts of the reference manual in the exam papers? Apr 14 10:11:07 minimize the amount of syntax.... that they need to memorize* Apr 14 10:35:22 heya Apr 14 10:36:18 im looking for a way to stop chrome from geolocating me via my wifi AP mac/ssid Apr 14 10:36:34 is there a way to disable / spoof that? Apr 14 10:37:51 or going the other way, does anyone know a way to make my android think the wifi card sees additional / different wifis in its range (the ones im not being connected to) Apr 14 10:42:26 hi im using a selector and a bg color for my button but it has a shadow Apr 14 10:42:28 http://paste.ubuntu.com/10821196/ Apr 14 10:42:34 how can i disable this shadow Apr 14 10:50:56 sci-fic, can you show a screenshot of what shadow you mean? Apr 14 10:51:07 and the xml where you add the button Apr 14 10:53:07 k Apr 14 10:56:55 danijoo: http://postimg.org/image/4ritpnr4t/ http://paste.ubuntu.com/10821241/ Apr 14 10:57:53 as you can see blue button has shadow and, i just remember another bug, button and edittext are 55dp but button looks smaller Apr 14 11:02:15 are you usung material design app compat? Apr 14 11:03:09 Theme.AppCompat.Light.NoActionBar Apr 14 11:03:14 yep Apr 14 11:03:23 then its the default elevation shadow of appcompat i guess Apr 14 11:03:37 what should i do then Apr 14 11:03:38 try setting app:elevation="0" Apr 14 11:04:41 where :D Apr 14 11:04:48 buttons xml Apr 14 11:05:20 remember its not android:elevation but somethingelse:elevation Apr 14 11:06:42 any idea why bitmap.compress(Bitmap.CompressFormat.JPEG, 100, out); changes final image size? Apr 14 11:06:49 it is adding black box at the bottom Apr 14 11:10:33 does it have alpha Apr 14 11:10:40 or transparent things Apr 14 11:10:56 Can picasso open content:// uris? Apr 14 11:11:28 Ashiren: I do not know Apr 14 11:11:36 but it might Apr 14 11:11:46 is there a way to discover it? Apr 14 11:11:58 because when I use png I dont have that problem Apr 14 11:12:42 dunno Apr 14 11:12:49 but jpeg doesnt have transparent Apr 14 11:12:55 hence it changes to black Apr 14 11:13:45 good catch Apr 14 11:13:49 I see a problem in my drawing :) Apr 14 11:13:51 thank you Apr 14 11:15:34 guys, how can i keep a drawable with "background selector" in a selected state via XML when clicked? Apr 14 11:20:52 omid8bimo, add state_selected="true" and call view.setSelected(true) Apr 14 11:21:24 state_selected="@drawable/whatever" * Apr 14 11:21:37 or @color/ Apr 14 11:21:43 or whatever Apr 14 11:22:00 no *. i meant what i wrote :) Apr 14 11:22:07 Really? Apr 14 11:22:12 yes Apr 14 11:22:16 In a selector file don't you have to declare resources? Apr 14 11:22:57 yes but you dont declare them Apr 14 11:23:03 not state_selected=drawable Apr 14 11:23:08 or are both possible? Apr 14 11:23:44 what i need is to keep the background of the drawble when clicked; the same background that is defined in selector state_selected="true" Apr 14 11:24:17 but in xml, not in code Apr 14 11:26:07 Anyone who has experience with an android project all of a sudden unlinking from grade Apr 14 11:26:35 danijoo: I alway thought in selectable xml files, you declared a number of states and what to apply given those state. Seems meaningless to set "true" to all the states there. Apr 14 11:26:41 restarted android studio after a git merge and got "link project to gradle..." Apr 14 11:26:58 Oh hang on Apr 14 11:27:02 You do do both Apr 14 11:27:32 Apr 14 11:28:14 Troffel: Speak to g00s. He likes Grade. Apr 14 11:28:17 Gradle* Apr 14 11:29:22 false Apr 14 11:29:25 no one likes gradle Apr 14 11:29:42 i LOVE gradle Apr 14 11:30:45 can't figure out what the issue is, all gradle files are identical. otherwise Id be able to see it in my git Apr 14 11:57:17 guys, how to implement draggable listview? (sortable by drag'n'drop) Apr 14 11:57:19 how to create a folder in photos programtically? Apr 14 11:57:28 Is there any famous libs for this? Apr 14 12:34:36 Hello Apr 14 12:34:52 Hello Apr 14 12:34:59 I 'm trying to create an sms application that supports two chips . Could anyone help me ? The references I found use reflection and not work at all manufacturers Apr 14 12:35:19 I am facing one issue with fragment Apr 14 12:35:24 I need to support android >= 2.3.3 Apr 14 12:35:27 like if i am in one fragment and go to next fragment then again back into first fragment then the content of first fragment is not able to refresh Apr 14 12:35:36 Ex: A-.B->A i need to refresh the content of A fragment when i come from B->A Apr 14 12:35:43 Do you know how can i refresh fragment so i can get new data when i come back from B->A Apr 14 12:38:43 jagruti_, do it in onResume Apr 14 12:39:00 yeah, you can make a refresh on A's onResume Apr 14 12:39:30 When i will come first time in fragment then will it execute onresume? Apr 14 12:39:36 yeah Apr 14 12:39:44 yes. look at the lifecycle Apr 14 12:39:46 you do need data from Fragment B? Apr 14 12:39:56 do you * Apr 14 12:40:19 yep in B i am inserting data in DB and in A i am getting from DB Apr 14 12:41:01 well, if it is from DB, you should not need anything extra. Apr 14 12:41:13 So we can say get data from DB function i need to put it in Onresume instead of onCreateView. Right? Apr 14 12:41:46 to update state of view you should generally do it in onResume Apr 14 12:41:54 Hi guys, I'm developing an Android Wear app. My notification has 3 different Activity attached, one for each page. As far as I can see, the onResume is only called once when the Activity is created. After that, the Activity will never call onPause/onResume, so I think that it will always remain active and resumed. Is there way to know which is the current activity focussed? Apr 14 12:42:08 db vs contentProvider is another story Apr 14 12:42:32 if i will put in onResume then will it work when first time i will come in A fragment? Apr 14 12:43:06 yes Apr 14 12:43:24 and everytime A will be 'hidden' and then shown again Apr 14 12:44:05 Sorry didn't get im your hidden concept Apr 14 12:44:11 Can you please tell me more about it? Apr 14 12:44:13 StErMi: you could add log's to your activities orResume/onPause to find out. Apr 14 12:47:05 jagruti_, please read the documentation Apr 14 12:47:11 this is really basic stuff Apr 14 12:48:06 I've got a question - I'm using appcompat v21 to provide material Toolbar instead of actionbar. When I enable home as up I see the arrow - but it points right instead of left - has anybody god an Idea what's wrong? Apr 14 12:48:08 danijoo: Sorry but i am very new for fragment Apr 14 12:49:13 claint, as I said, the activity onResume/onPause is called only once. If you start swiping between them, it will never call those callbacks anymore Apr 14 12:50:10 jagruti_: by 'hidden' i mean when you switch to other fragment Apr 14 12:50:27 okay thanks Apr 14 12:50:55 I will try to put my code in onResume and let see if i can solve my issue Apr 14 12:57:50 I cannot find anything helpful with this arrow pointing right instead of left Apr 14 12:58:57 what are best practices for keeping track of data displayed? Apr 14 12:59:03 Andrusha: Are you talking with my point? Apr 14 12:59:37 Unfrotunately not jagruti_ Apr 14 12:59:40 If I’m in an activity which is listening for broadcasts with a broadcast receiver and then switch to another activity, will the broadcast receiver in the first activity keep running? Apr 14 12:59:46 okay thanks Apr 14 12:59:59 Hi! Apr 14 13:00:09 Nimyz: it will run even if you close your app Apr 14 13:00:15 hello, anyone used websockets in android before? Apr 14 13:00:36 gordon_: aint that job of webbrowser? Apr 14 13:00:46 no, why ? Apr 14 13:00:54 Nimyz: do you register/unregister them manually Apr 14 13:01:08 vompatti, thanks. do you really mean when closing the app (destroy it) or switching to another app? Apr 14 13:01:19 I was wondering if to get an contentResolver in static was a good idea, knowing that globals are not the best thing for everything Apr 14 13:01:31 Does anyone has done test ? Apr 14 13:01:32 gordon_: well, its web socket - if you are writing native app why would you use websockets? Apr 14 13:01:40 ashiren, yes I register/unregister them manually. but let's say I dont unregister it in onPause() then it will keep running? Apr 14 13:01:49 Nimyz: yes, atleast that is the case for me Apr 14 13:02:10 vompatti, because websocket != http Apr 14 13:02:11 eeyup Apr 14 13:02:31 Ashiren: When i come into fragment page then i can not go into onResume as well as when i come back from fragment B then also i can not come ibnto onResume. But when i gop in some other activity and come back in fragment A then i can go into onResume Apr 14 13:02:31 unless you stop the application explicitly in settings Apr 14 13:02:34 danijoo: websockets are sockets over http protocol Apr 14 13:02:48 vompatti, no. websockets are on TCP, not http Apr 14 13:03:31 they are? why then they are named websockets but not tcp(/ip) sockets? Apr 14 13:03:33 gordon_: the only thing i can tell about websockets that they are pain in the anus Apr 14 13:03:48 Ashiren: what's wrong with them? Apr 14 13:03:56 is xmpp better? Apr 14 13:03:57 vompatti, they would if I had named then :p Apr 14 13:04:00 everything :v Apr 14 13:04:21 "Unlike HTTP, WebSocket provides full-duplex communication. Additionally, WebSocket enables streams of messages on top of TCP." Apr 14 13:04:21 danijoo: lol, my bad Apr 14 13:04:34 Ashiren: Can you please guide me what can i do next? Apr 14 13:04:37 vompatti: I just saw sample in go Apr 14 13:04:44 gordon_: im a bit sarcastic here, so dont take me serious Apr 14 13:05:37 Ashiren: anyway, some library worth checking ? Apr 14 13:05:59 I would like to avoid some libs with gazyllion dependencies Apr 14 13:06:20 i used tyrus-standalone-client Apr 14 13:07:07 will check that. thank you ! Apr 14 13:07:35 gordon_, https://github.com/codebutler/android-websockets Apr 14 13:07:48 or https://github.com/koush/AndroidAsync Apr 14 13:07:49 gordon_: theres old project i was working on using websockets, maybe itll come handy https://github.com/AnthillTech/android-mewa-client/blob/master/src/main/java/cc/mewa/MewaConnection.java Apr 14 13:08:47 thank you Apr 14 13:12:26 but I think you dont really need an android dependent repo. any websocket lib will do it. Apr 14 13:17:08 hi, is there any better form of android usage statistic https://developer.android.com/about/dashboards/index.html?utm_source=suzunone -- better form = % of users by country, API version, and other dimensions ? Apr 14 13:18:09 I get a NullPointerException on ListView.setAdapter(ArrayAdapter), but I can't find out what's null? pastebin.com/0m89kYj1 Apr 14 13:19:08 Faylite: isn't it obvious? Apr 14 13:20:05 It may be.... but I'm not seeing it. It's listView.setAdapter(arrayAdapter); btw Apr 14 13:20:30 What can possibly be null in this line? Apr 14 13:20:37 lol Apr 14 13:24:13 Faylite, 3rd argument of ArrayAdapter is not "id of listview" Apr 14 13:24:28 its "id of the textview" Apr 14 13:24:59 Faylite: read your exception message thoroughly Apr 14 13:25:50 Oh.... Apr 14 13:31:23 Guess I'll just start flipping burgers instead Apr 14 13:31:49 where can I order? Apr 14 13:32:07 Oslo Apr 14 13:33:16 lucky guy :) Apr 14 13:33:28 you live in an awesome country Apr 14 13:38:50 A country where you are equally safe regardless of whether you are flipping burgers or trying to find your Java errors. Apr 14 13:42:47 Well, it's working now, I just removed R.id.left_drawer from the arrayAdapter arguments, thx danijoo Apr 14 13:57:47 Lads, any expert in Material Design and AppCompat v21? Apr 14 14:13:45 guys how can i create viewpager indicator except jakewharton lib ? Apr 14 14:15:16 by coding ;) Apr 14 14:15:29 :D Apr 14 14:15:52 Building workspace..... Building workspace..... Building workspace..... Building workspace..... Building workspace..... Building workspace..... Building workspace..... Building workspace..... Building workspace..... Apr 14 14:15:54 sci-fic, make your own Apr 14 14:15:57 or use another lib Apr 14 14:15:58 I want to burn eclipse Apr 14 14:16:19 i try jake's gradle compile 'com.viewpagerindicator:parent:2.4.1' but it cannot be resolved Apr 14 14:16:59 maybe because its not gradle Apr 14 14:17:29 see http://stackoverflow.com/questions/21130003/using-viewpagerindicator-library-with-android-studio-and-gradle Apr 14 14:24:35 hmm, I wonder if recycler view is good for representing tabs Apr 14 14:26:26 you could also go meta and represent tabs using a viewpager too probably Apr 14 14:33:54 Last ditch attempt to salvage the Nexus 7. Factory reset. Apr 14 14:35:17 Barely used the thing and its slower than a granny on a motorway Apr 14 14:35:45 Anthaas, use a FSFS/F2FS ROM Apr 14 14:35:57 that's about the only thing that makes that thing still work barely Apr 14 14:35:58 * Anthaas opens Google Apr 14 14:36:48 Its a 2013 if that matters? Apr 14 14:37:29 hmm, 2013 shouldn't be so slow O.o Apr 14 14:37:50 It COULD be a 2012 actually Apr 14 14:37:58 flash a custom rom if ur doing all that Apr 14 14:37:59 I got it on 2013 but I think I got it just before the new one came out Apr 14 14:38:01 (stupid me) Apr 14 14:38:07 cyanogen or something Apr 14 14:38:16 Whats with all the hate of Cyanogen recently? Apr 14 14:38:21 People calling them sell outs n stuff Apr 14 14:38:22 the new one was much more $ Apr 14 14:38:27 I think I might do that tbh Apr 14 14:39:17 Anthaas, if it's fat, has a horizontal "nexus" text on the back and a texture, it's 2012 Apr 14 14:39:24 2013 is thin, vertical nexus text and smooth back Apr 14 14:39:36 tho some say its worse on battery, most don't say it's slow Apr 14 14:39:39 http://mygadgetic.com/wp-content/uploads/2013/08/nexus-7-back.jpg Apr 14 14:39:40 buggy maybe Apr 14 14:39:41 Ahh, its 2012. Apr 14 14:39:55 Yeah, its the one on the left. Apr 14 14:40:21 yeah, ROM with FSFS support (and FSFS formatted partitions) and 5.1 Android should make it work passable Apr 14 14:40:30 *passably... not fast mind you, but not ass slow Apr 14 14:40:45 Is it doomed to just be a coaster? Apr 14 14:41:42 pretty much, nVidia just doesn't know how to build Flash controllers Apr 14 14:42:48 Hmm, I just formatted the thing and it seems to be alright Apr 14 14:42:58 We will see once its properly up and running. Apr 14 14:45:06 Ill whack Cyanogen on it and that F2FS and partition you mentioedn Apr 14 14:46:32 Its better, but still shite Apr 14 14:46:39 Almost feel like Google owes everyone a refund. Apr 14 14:48:13 Asus, if anyone, and doubt it, unless you got it a) just now, fresh from the box and b) in EU Apr 14 14:48:32 B not A :/ Apr 14 14:48:52 owes everyone a refund? for a 3 year old device? Apr 14 14:49:01 owed* Apr 14 14:49:09 it worked ok Apr 14 14:49:13 Anthaas: the problem on some Tegra3 tablets from Asus was that they had chosen a rather bad flash chip, which aged quickly causing slowdown. I know, I have the same issue in an otherwise splending TF700T Apr 14 14:49:23 And the UK trading laws would say that they are liable for up to 8 years Apr 14 14:49:37 I've personally known a court case to win for that reason. Apr 14 14:49:42 Anthaas: only for certain defects, which this one probably doesn't fall under Apr 14 14:49:44 go take them to court then Apr 14 14:49:59 pfn_: Not worth the relatively small amount of money I paid. Apr 14 14:50:05 Probably wont be taking legal advice here either lol Apr 14 14:51:07 p_l: They look nice Apr 14 14:52:39 Anthaas: funnily enough, tf700t had this only for certain production runs, something I suspect was the same with N7(2012) Apr 14 14:52:58 hmm, on N7 seemed pretty consistent Apr 14 14:53:05 8G/16G models were worse off Apr 14 14:53:10 but I think all of them were affected Apr 14 15:04:41 i'm using the ui automator viewer... it seems like some of my views are simply disappearing Apr 14 15:05:01 what would cause a view to not show up at all in the hierarchy? Apr 14 15:11:29 literallycat: they could not be in the hierarch Apr 14 15:11:33 hierarchy Apr 14 15:13:19 yiati i expect to see a view there but it is missing in the hierarchy Apr 14 15:14:13 literallycat: Well there are 2 possibilities. 1) the ui automater view you are using is broken, and it's not worth using for what you are trying to do right now, or 2) You expectations are wrong Apr 14 15:15:45 i think 1 is true Apr 14 15:15:48 where can i give extra space to circle pager indicator ? i googled but still havent find it Apr 14 15:15:54 *found Apr 14 15:17:25 literallycat: Given your expectations 1 is definitely the correct answer. The only the possibly left to question is your expectations. Apr 14 15:17:56 yiati I am able to locate the view in the code when I call FindViewById Apr 14 15:18:36 it just doesn't appear in the hierarchy in the ui automator viewer Apr 14 15:18:47 which leads me to think the viewer is buggy Apr 14 15:19:14 literallycat: problem solved Apr 14 15:19:41 yiati the problem is that the view is not being rendered at all Apr 14 15:19:55 even though I am finding it in code Apr 14 15:20:21 so the tool might be indicating a problem to me Apr 14 15:20:30 literallycat: in the ui automater viewer, or an actual device? Apr 14 15:20:44 yiati both the ui automator viewer and the device Apr 14 15:20:47 if the visibility is set to gone, then it won't render Apr 14 15:20:53 that's expected not a bug Apr 14 15:21:05 it will be in the hierarchy but won't be rendered Apr 14 15:21:06 visibility is set to visible in the axml Apr 14 15:21:39 nothing in the code is modifying that Apr 14 15:25:14 literallycat: idk without more detail I can't tell you much more Apr 14 15:25:41 yiati thanks anyways Apr 14 15:38:37 anyone used jake wharton's indicator ? i need to give some space between circles.it musnt be that hard Apr 14 15:41:56 sci-fic: you should use this one: https://github.com/ongakuer/CircleIndicator Apr 14 15:43:38 why do you recommend this Apr 14 15:44:29 will a class that implements Serializable successfully serialize a field that implements Parcelable? Apr 14 15:44:35 I had a question about jake wharton's one, he responded me "the project is 3 yr old and unmaintened, you hsould not use it" Apr 14 15:44:43 (few weeks ago) Apr 14 15:50:26 need to change applicationId using Android Studio from com.example.xyz to org.somewhere.xyz Apr 14 15:51:04 problem is, that refactoring choice offers only renaming xyz to something else... Apr 14 15:51:34 used guides from http://stackoverflow.com/questions/4025369/how-to-change-package-name-of-an-android-application Apr 14 15:51:41 any idea? Apr 14 15:52:16 how come android studio on osx requires so many chmod +x :S Apr 14 15:53:25 does it? mine didn't Apr 14 15:58:33 can I have a string-array with items having a type ? Apr 14 15:59:38 I'm just trying when i iterate over the items of a string-array to create a new View and assign it an id Apr 14 16:00:00 mrfu: Out of frustration I just did a chmod -R +x /Users/gavit/Library/Android/sdk/tools/ Apr 14 16:01:05 Hey guys, Can I have Google Photo Sphere app return data to my app without storing it in Gallery Apr 14 16:28:38 How can I center my items on a recyclerview using a gridLayoutmanager ? Apr 14 16:38:41 Hello Apr 14 16:38:51 can someone help me out with something relaly qucik Apr 14 16:40:02 does anyone here know the best way to insert multiple layouts into a listview adapter? Apr 14 16:40:08 Is that even possible? Apr 14 16:40:59 no android devs want to help? Apr 14 16:41:03 +__+ Apr 14 16:41:36 madpotato: IRC isn't known for fast responses, because people leave it on all day :) Apr 14 16:41:47 o i c Apr 14 16:42:06 perhaps you might have a suggestion for me for my problem? Apr 14 16:42:19 madpotato: http://developer.android.com/reference/android/widget/BaseAdapter.html#getItemViewType%28int%29 getItemViewType + getItemViewTypeCount = have multiple kinds of top-level views in a listview Apr 14 16:43:18 each type gets its own reuse pool, so if e.g. position 1 has type 1 and position 2 has type 2, they'll only ever get the appropriate convertView given to getView, and you can just trust it's correct. Apr 14 16:46:13 hmmm Apr 14 16:46:20 I dont really understand Apr 14 16:47:20 is it even possible to do what I want? Apr 14 16:47:48 sticking multiple layouts into a listview Apr 14 16:48:06 hi! as anyone seen an emulator-5666 offline, without running anything but adb devices? Apr 14 16:48:07 I reinstalled windows and now my android studio recognizes almost no devices. Apr 14 16:48:16 I already installed samsung usb drivers Apr 14 16:48:52 so far only the galaxy nexus is working Apr 14 16:49:07 but nexus 7, nexus 4, galaxy s 2 are not Apr 14 16:53:41 Any idea how I could get my devices to show up in android studio again? Apr 14 16:54:51 Syzygy: do you have the latest android studio? Apr 14 16:55:38 yes Apr 14 16:56:22 have you tried turning it off and on again Apr 14 16:56:36 yes Apr 14 16:56:38 have you tried the usual adb stop-service && adb start-service? Apr 14 16:56:48 I'm on windows after all Apr 14 16:57:35 to get accepted, need to install gentoo on vm Apr 14 16:57:40 parmegv, you mean kill-server, start-server? yes Apr 14 16:57:43 in windows Apr 14 16:57:49 yeah no. Apr 14 16:59:29 Do they show up in adb via powershell & do you have a concurrent adb installation on the machine (genymotion, second android sdk) Apr 14 17:02:08 danijoo, nope and nope Apr 14 17:04:57 any one tried parse to make API ? Apr 14 17:05:06 does it worth all the hype we get from facebook ? Apr 14 17:07:46 https://gist.github.com/pfn/89b80972471eb34d11b2 Apr 14 17:07:50 still 10 seconds to build and install, not bad Apr 14 17:14:40 hey I got a question Apr 14 17:15:00 I am executing a function from my broadcastReceiver. it is giving some error Apr 14 17:15:15 and then I'm calling a MainActivity function from the same broadcastReceiver. Apr 14 17:15:48 Giving some error. Help me out please Apr 14 17:18:55 hey. some help will be appreciated! Apr 14 17:18:58 anyone there? Apr 14 17:19:44 easy! to fix some error you must do something Apr 14 17:20:04 well. I understand. I have been trying Apr 14 17:20:25 I have a wifiScanner that calls a broadcast receiver on completioon Apr 14 17:20:39 the broadcast receiver is called using a handler.post() method Apr 14 17:21:02 Within the broadcast receiver I call function of some other class for some calculation Apr 14 17:21:28 Then I call a function in the MainActivity (UI thread) from the broadcastReceiver Apr 14 17:21:40 doesn't seem to work for me Apr 14 17:23:38 nobody can help you because you didn't say what the error is Apr 14 17:24:06 alright one second Apr 14 17:27:51 I noticed on this page http://square.github.io/picasso/ for Picasso lib the return type of getView is void. I get an error in code if I set it to void in code. Any ideas? Apr 14 17:28:40 don't use void thats probably a typo Apr 14 17:28:47 submit a pull request and fix it! Apr 14 17:29:44 I wonder whats the way to go to create a server backend for real-time data for an android app. should that be NODEJS? Apr 14 17:30:44 JacobTabak, the typo is probably just in the documentation Apr 14 17:31:05 android_sandwich the documentation is in github Apr 14 17:31:13 you can submit a pull request and fix it, its a great way to get involved! Apr 14 17:31:31 the maintainers of this lib actually just suggested that at droidcon montreal last week :) Apr 14 17:32:37 i think it's already fixed just not deployed Apr 14 17:33:47 nope. whevs. Apr 14 17:35:22 nobody has ever detected an emulator-5666 via adb devices? Apr 14 17:48:51 hey guys Apr 14 17:49:03 what Ads provider you advise me to use on my app? Apr 14 17:58:36 I'm trying to find an SMS URI to view an existing SMS. sms:// isn't working - what would? Apr 14 17:59:28 Hey everyone! Apr 14 18:01:26 does any one here tried parse analytics ? I can't make it work Apr 14 18:01:41 no error, nothing in logcat, and nothing in the dashboard Apr 14 18:10:02 freeone3000: give up Apr 14 18:10:25 you might look at the sms manager class for kitkat and up Apr 14 18:10:38 but kitkat and up you can't do that anymore Apr 14 18:10:41 you used to be able to Apr 14 18:10:49 by -- i can't remember anymore -- Apr 14 18:10:56 Darn. Can I at least launch the default messaging app to show all messages? Apr 14 18:12:14 freeone3000: http://pastebin.com/LzRhFiv9 Apr 14 18:12:23 the prep kitkat works mos of the time Apr 14 18:12:30 but afte rkitkat it stopped working, hence the if Apr 14 18:12:39 android dev is harder than I thought... Apr 14 18:12:44 never figured out how to get it to work other than starting the sms app (to no particular thread) Apr 14 18:12:48 that'll open it to the thread Apr 14 18:12:51 I still need to figure out how this mvc thing works Apr 14 18:12:52 you need to get thread id of sms Apr 14 18:12:58 guys what Ads provider you advise me to use on my app? Apr 14 18:13:56 gavit: hard part about android is often there is not a clear distinction ie: an adapter is a controller, but often times your getview is handling your view and often times your views will control their own input events since it is often overkill to make extra controller classes for just handling clicks etc Apr 14 18:14:02 lasserix: Yeah, I know the thread ID. Issue is that it's giving me "no handler for content://sms/conversations/61 was registered" Apr 14 18:14:41 primarylookupkey is threadid in that example btw Apr 14 18:14:43 what os? Apr 14 18:14:53 lasserix: LG version L, 5.0.0. Apr 14 18:15:12 yeah post kitkat they introduced SMS manager or whatever which killed the else part of that if Apr 14 18:15:21 i never figured out how to do it but maybe someone has if you search SO Apr 14 18:15:34 make sure to specifically search for open sms on kiktat+ Apr 14 18:15:51 I haven't been able to structure a search query in such a way that I don't get people trying to send smses, and there's a lot of people who don't get how the SMS URI RFC works. Apr 14 18:20:20 when using a virtual machine, will my emulated phone have wifi? Apr 14 18:20:41 well it will have internet Apr 14 18:20:51 afair via wifi Apr 14 18:21:12 Ashiren: I want the http://developer.android.com/reference/android/net/wifi/ScanResult.html#BSSID Apr 14 18:21:14 <_genuser_> wifi affairs? Apr 14 18:21:18 <_genuser_> what is this world coming to? Apr 14 18:22:20 _genuser_: was bound to happen sometime Apr 14 18:23:38 it's the next step after sexting Apr 14 18:23:52 hmm apparently nexus 5 doesnt have wifi, but has 3g :S Apr 14 18:27:01 ' If you want to enable Wifi for development purposes, you should just use a real device.' Apr 14 18:29:13 Hey. Anyone have experience with the new(-ish) content rating on Google Play? Bit unsure whether or not I should mark my app as "mild fantasy violence" or not and I don't really know who to ask. :D Apr 14 18:29:53 Chamooze: they have an online chat Apr 14 18:29:55 just ask Apr 14 18:31:00 Google? Or one of the rating agencies? Apr 14 18:33:38 Hey we're having problems writing to a file (/storage/emulated/0/Documents/) from android.os package (/frameworks/base/core/java/android/os). We'd previously had a similar issue writing or reading this file from PackageInstaller app, but that problem was solved by adding "android.permission.WRITE_EXTERNAL_STORAGE" to the manifest for packageinstaller but there is no manifest.xml for android Apr 14 18:33:38 .os How can we make sure that android.os has this permission? Apr 14 18:34:34 huh Apr 14 18:35:26 permissions are for entire app. android.permission.WRITE_EXTERNAL_STORAGE just gives you access to read/write external storage Apr 14 18:37:31 thepoosh: Not sure if I'm blind or stupid, but I can't find an online chat. You happen to have a URL? Apr 14 18:37:44 Yes I understand, how can I extend that access to android.os? It doesn't have an manifest and we're attempting to write a file to external storage in android.os Apr 14 18:38:31 im not sure if i understand Apr 14 18:39:04 We're not developing an application, we're working with AOSP for a project Apr 14 18:39:20 We were directed here from #android-root though Apr 14 18:39:45 ah Apr 14 18:39:48 Someone app must be using the android.os classes that write the file.. That app has a manifest Apr 14 18:41:00 Hello Apr 14 18:41:09 I've got two issues Apr 14 18:41:37 1) I've got an activity with a textview and a button Apr 14 18:41:56 How can I place the button on the bottom of activity Apr 14 18:42:00 ? Apr 14 18:42:16 in the .xml layout file Apr 14 18:42:33 Any ideas? Apr 14 18:43:12 TacticalJoke: you here? Apr 14 18:43:17 Yeah. Apr 14 18:43:24 TacticalJoke: how do you set up a spinner in your action bar / like where you title would go? Apr 14 18:43:33 is it a style or ? Apr 14 18:43:41 In my app, you mean? Apr 14 18:43:52 cristian_c: is it linearlayout, relativelayout or something else? Apr 14 18:44:03 linearlayout, Ashiren Apr 14 18:44:04 cristian_c: probably: use a FrameLayout at the root, and use