**** BEGIN LOGGING AT Sat Jan 30 02:59:58 2016 Jan 30 03:12:04 would suck if everyone migrated from parse to firebase, only for google to shitcan that too ... Jan 30 03:15:16 dude any hint to make my first app with android studio ? Jan 30 03:15:21 really confused with the layout Jan 30 03:15:39 just maade the blank activity and installe to my android but u know.. its nothing Jan 30 03:18:53 anyone here --' Jan 30 03:29:22 * Max-P only knows gradle, sorry Jan 30 03:37:08 Hey, what is this GMPM tag I keep seeing in my logcat? "E/GMPM: [...] App measurement disabled" Jan 30 03:37:52 Google Services I think Jan 30 03:44:07 dunno Jan 30 03:44:17 im still confused with this android studio layout Jan 30 03:44:23 damm having headache Jan 30 03:57:40 from a TextView EditText set up as number desimal, I am converting it to double, but the app crash when the field is empty, so to stop it from crashing I have to check for lenght = 0 first, is that the right way to implement the convertion? Jan 30 03:59:07 * Dragoneye comming from C så Java seems frustrating confusing, but know OOP.. Jan 30 03:59:41 s/så/so/ Jan 30 04:01:38 Dragoneye, think that is the right way, if you try and typecast an empty string it will crash. Jan 30 04:03:49 can i ask something ? Jan 30 04:04:04 what kind of IDE u all use to develop android program Jan 30 04:07:41 Android Studio is the main one everyone uses Jan 30 04:07:41 DLSteve: Tank you :-) Jan 30 04:08:35 I'm *this* close to ordering a Nexus 5x right now Jan 30 04:08:54 unless theres something you would recommend instead Jan 30 04:11:53 the nokia n-gage Jan 30 04:12:59 eh I dunno. 2.1 inch screen Jan 30 04:14:37 that's 130 ppi, top of the line Jan 30 04:16:38 I'm not sure I can afford that Jan 30 04:18:02 Bonus, the battery will protect your games. You will have to remove it every time you want to swap out your game! Jan 30 04:20:40 just get the 5x, it's cheap Jan 30 04:51:15 guys Jan 30 04:51:29 what is code for making reminder like at calendar? Jan 30 04:51:40 i'd like my app to add some reminder when the date has come Jan 30 04:55:01 Meenome: I would suggest learning to program instead of learning to do specific things. The first one will unlock all the possibilities wheras the latter heads straight into a wall (and spaguetti code) Jan 30 04:55:33 yes thats what im doing Jan 30 04:55:37 like, not setting something empty Jan 30 04:55:54 ugh... sorry, wrong window Jan 30 04:56:15 pfn: I added that key to my build, but still have an error Jan 30 04:56:41 let me paste it somewhere Jan 30 04:57:05 Meenome: http://developer.android.com/reference/android/app/AlarmManager.html Jan 30 04:57:17 thank you Jan 30 04:58:05 been using android studio for few days but i can adapt with this. Jan 30 04:59:47 Android Studio is completely irrelevant to both the question and the answers Jan 30 05:00:27 im talking about different topic :D Jan 30 05:00:36 Oh, sorry then Jan 30 05:01:09 how long you've been programming for android ? Jan 30 05:01:18 i mean how long u use android studio Jan 30 05:01:31 Max-P: Jan 30 05:01:45 I think I have developed for Android for a total of like 3-4 months or something, about a year or two ago Jan 30 05:01:59 oh alright .. Jan 30 05:02:21 And I don't use Android Studio, I'm allergic to IDEs. I call gradle directly Jan 30 05:02:37 input code manually ? Jan 30 05:02:59 "manually"? Jan 30 05:03:07 i mean Jan 30 05:03:10 if u not using IDE Jan 30 05:03:14 wait.. Jan 30 05:03:24 googling about gradle now Jan 30 05:03:38 Gradle is what Android Studio calls behind the scenes to build the application Jan 30 05:03:45 Max-P what do you mean by "learning to program"? I've been learning how to program by figuring (specific) things out as necessary in order to build functional apps, and also reading up on best coding practices. I definitely notice an improvement in the quality, complexity, & maintainability of code that I write, but am interested in what aspects o Jan 30 05:03:45 f programming you believe should be focused on. Jan 30 05:03:49 hmmm Jan 30 05:03:57 so its more like eclipse right ? Jan 30 05:04:03 without IDE Jan 30 05:04:35 Meenome: Eclipse is also an IDE, and calls Apache Ant behind the scenes. Jan 30 05:04:51 I use Geany, vim or Sublime Text, depending on what computer I'm on and what I need to do Jan 30 05:05:05 Max-P: ouch .. im really dumb with this Jan 30 05:05:31 but i thought its harder without IDE to develop apps Jan 30 05:05:44 like on c++ im using qt-project to build the UI Jan 30 05:05:46 I use Sublime Text also, I find that the workflow is 10x more efficient than Android Studio (via plugins & customization) Jan 30 05:06:45 ST still in development ? Jan 30 05:07:00 i think Atom kinda stole that thunder Jan 30 05:07:10 btw.. dude Jan 30 05:07:15 feekZ3R0: Hmmm, I'd say, usually I try to go through the basic tutorials and examples of a new language/platform up to the way I feel confident enough to at least read and search the docs before going on with an actual project Jan 30 05:07:44 thats right Jan 30 05:07:52 But I'll admit I have kind of a weird workflow not a lot of people is confortable with Jan 30 05:07:58 g00s: idk, I recently tried LightTable & Atom & they are both pretty slow in comparison to ST. Like, unusably slow. Jan 30 05:08:33 still learning c++ but migrated to java and now im stuck on polypormishm and pointer etc :/ Jan 30 05:08:35 feekZ3R0: My experience have been pretty much the same. Even if it's abandonware, it's still what works best for my workflow, unfortunately Jan 30 05:08:43 yeah they are slow ... kinda get nervous knowing I'm using something written in CoffeeScript - which seems like total crap Jan 30 05:09:23 Meenome: Yeah, that's what I was reffering to as to learning programming first. I would recommend learning Java, everything that's available to you in the language, the different language constructs, what's classes, etc Jan 30 05:09:58 thankyou :D everyone susggested me to learn java Jan 30 05:10:01 Max-P: that's where I'm at now, just purchased The Android Expert's Coding Bundle on SlashDot & am working through Java For Beginners Jan 30 05:10:17 ill try to learn the basic code while trying to build some small project too :D Jan 30 05:10:22 Meenome: But I understand it's a slow procress, I came from other similar languages so learning Java took me something like a couple hours to have enough to get started Jan 30 05:10:34 hehe nice Jan 30 05:10:58 Most of it is familiar from my previous piecemeal learnings, but it's nice to see it all laid out systematically & have the gaps filled Jan 30 05:11:09 are you post-graduated person ? Max-P Jan 30 05:11:16 School dropout Jan 30 05:11:27 lol bill gates Jan 30 05:11:31 next rich man XD Jan 30 05:12:19 The future will tell. Right now it seems I can't for my life get fired of this job even after quitting and coming back like three times, so I guess in the end of the day I manage to do the job good enough Jan 30 05:12:58 publish yourself as a freelancer to get a project Jan 30 05:13:20 im just a new person after graduated from academic school Jan 30 05:13:26 My mental state doesn't allow me to commit to something like that, unfortunately Jan 30 05:13:33 :/ sad Jan 30 05:13:59 Meenome, check this out. I'm working through it now & it's a pretty great set of courses, especially for the price: https://deals.slashdot.org/sales/pay-what-you-want-android-elearning-bundle Jan 30 05:14:08 kk Jan 30 05:14:09 wait Jan 30 05:14:28 There's also the excellent official one: http://developer.android.com/training/index.html Jan 30 05:14:28 :/ Jan 30 05:14:29 dude Jan 30 05:14:54 im from asia Jan 30 05:15:05 and to talk about dollar.. its hard here Jan 30 05:21:16 any other internet chat besides IRC so i can learn programming ? Jan 30 05:21:33 im just know IRC and forum like stackoverflow Jan 30 05:21:50 need mentor/ friend to learn programming Jan 30 05:22:25 I'd say IRC is probably the best for that kind of thing, or at least I'm not aware of bigger communities, especially for live stuff Jan 30 05:22:38 Meenome what is your programming background ? Jan 30 05:22:58 Max-P: okay Jan 30 05:23:13 g00s: backgroud? you mean code i learn? Jan 30 05:23:28 Meenome are you just starting to learn programming ? Jan 30 05:23:50 not really.. im already understand basic logic of programming Jan 30 05:23:58 but for java.. maybe yes.. kinda new to this one Jan 30 05:31:57 gordon_, that's not the exact key, the exact key should be in logcat when crashlytics crashes Jan 30 05:33:06 pfn: I replaced that random java uuid with my key I got from crashlytics Jan 30 05:37:47 gordon_, it's resValues += (("string", "com.crashlytics.android.build_id", random id) Jan 30 05:37:53 gordon_, no key Jan 30 05:38:22 oh, ok Jan 30 05:38:35 so it will read it's key from manifest then ? Jan 30 05:38:45 (havent checked how that plugin works) Jan 30 05:39:36 I dont recall ever setting anything else up for crashlytics Jan 30 05:41:13 I hate crashlytics for being incredibly opaque Jan 30 05:41:24 I've complained to them several times in the past Jan 30 05:41:47 Well, you can always switch to Parse. Jan 30 05:42:12 I only use it at client behest Jan 30 05:42:24 isnt Parse closing down ? Jan 30 05:42:28 yes Jan 30 05:42:44 I use acra for personal stuff Jan 30 05:43:06 http://blog.parse.com/announcements/moving-on/ Jan 30 05:43:12 gordon_: That was the joke Jan 30 05:43:21 ok Jan 30 05:43:50 but I wish crashlytics was just a jar and put some key into it Jan 30 05:43:57 like google play lib Jan 30 05:44:25 doesn't its plugin add some instrumentation to your app ? Jan 30 05:45:33 i thought it did some bytecode manipulation Jan 30 05:46:29 I was told to join here Jan 30 05:46:57 by whom? Jan 30 05:47:32 pfn: I will try and check it with random UUID Jan 30 05:47:57 ah, yes, there is an api key in manifest Jan 30 05:48:07 I have some mp4 files on a sd card and need an app to make a playlist from them Jan 30 05:48:15 just have that and the resValues and you're done Jan 30 05:48:33 * pfn zzz Jan 30 05:48:39 goodnight Jan 30 05:48:41 :) Jan 30 05:48:44 and thanks once again Jan 30 05:48:46 CedricBeust, and that Kirkland XO is smooth Jan 30 09:49:47 Hi guys, im using Google maps api and using the markers in it. The map is set up in my main activity class, and i know how to add markers to the map in that class, but how do i add the markers from an Async thread to the map in the original class? Jan 30 09:54:07 pfn, what do you use for ACRA backend? Jan 30 09:54:15 Anything that can aggregate data? Jan 30 09:54:44 hmm. Jan 30 09:54:53 I'm 4 hours late for the conversation. Sorry. :) Jan 30 10:26:41 Mavrik: ever looked at Acralyzer? Jan 30 10:27:19 Nope, been awhile since I tried ACRA Jan 30 10:27:30 Switched to Crashlytics because they aggregate data better. Jan 30 10:27:35 Even though they still hide ay too much info Jan 30 10:29:32 Well, I just saw your question. Jan 30 10:29:48 Do you use it? Jan 30 10:37:17 Yup Jan 30 10:37:43 But let me tell you, Acralyzer's permission setup is horrible Jan 30 10:41:06 hey all, Is there any way to wait until serviceconnection completes? Jan 30 10:41:34 you mean until service is bound to activity Jan 30 10:42:35 Yes Jan 30 10:43:10 Im creating a Lib that needs to connect to a service. and i don't want to call the lib functions until it finishs to connect. Jan 30 10:43:28 unfortunately binding is asynchronous Jan 30 10:43:47 ServiceConnection will just tell you when it happens Jan 30 10:44:05 so you can put isConnected logic there Jan 30 10:44:27 But if I tries to use wait() or lock() when its not connected (in the lib) its just doesn't finish binding Jan 30 10:45:42 because binding and onCreate or onResume happen in the same thread Jan 30 10:46:33 ohhh OK. Thank you very much. So there is no solution except using isBinded logic? Jan 30 10:47:01 no, at least no elegant ones Jan 30 10:47:21 OK. Thank you! Jan 30 10:47:54 i know it sucks because in one of my previous projects the activity depended on data from service Jan 30 10:49:45 hi is ti possible to lin a native applicaiton like openvpn against the android native framework to bind to a remote Dalvik service with Messenger handler ... ? Jan 30 10:50:07 yeap sucks =\ Jan 30 12:45:24 Hi$ Jan 30 12:51:42 I'm trying to use a AsyncTask for a WebSocket connetion, but I'm stuck when I have to pass to onPostExecute the message from onTextMessage :/ Here is the code : http://pastebin.com/8hwAf4n1 Jan 30 12:51:53 Can someone help me ? Jan 30 13:24:21 Mavrik, I use something very primitive on appengine Jan 30 13:24:36 Mavrik, it's only crash reporting for. me Jan 30 14:34:17 Hey, I am looking for android studio help. Hope this is the right place. My component installation checkboxes aren't working. Jan 30 14:34:25 https://i.imgur.com/bLvrmTk.png Jan 30 14:38:00 achshar: alternatively you can download the sdk seperately if you cant get it to work Jan 30 14:38:24 I am totally new, will that involve command line? Jan 30 14:38:32 No Jan 30 14:38:36 cool Jan 30 14:38:46 Just a windows installer Jan 30 14:39:05 I think this one is a bug in the studio 2.0. Jan 30 14:42:06 RedHate: will I need only the sdk or the entire studio packages from this page? https://developer.android.com/sdk/index.html#Requirements Jan 30 14:42:43 Hello, I'm looking to restrict some purchases in my app depending on country, wondering what people think is the best way to do that without using the Location permission (don't really want to add that permission only for this). Jan 30 14:42:43 I dunno tbh depends on which components you cant install id assume Jan 30 14:43:11 I've looked at the SIM network method in TelephonyManager but the issue is that it won't work on tablets or other devices without a SIM Jan 30 14:43:27 wondering if anyone has found a better approach Jan 30 14:43:41 Can you retrieve locale info? Jan 30 14:43:49 Date and time stuff Jan 30 14:43:52 yeah Jan 30 14:44:07 Could be tricked but no one would really think of it Jan 30 14:44:18 Unless they debug your app and see it Jan 30 14:44:29 is there specifically a country setting there? I was under the impression it was language only Jan 30 14:44:33 and languages can be a bit unreliable Jan 30 14:44:57 Yeah just language as far as i know :( Jan 30 14:45:16 Probably not the best way to try to enforce it Jan 30 14:45:19 yeah, I did think of that, maybe a combined approach of that and the SIM network would be reliable enough Jan 30 14:45:36 like I understand there's no way to get 100% reliability Jan 30 14:45:51 just want to cover my ass for some legal issues, at least I can show I've made a serious effort Jan 30 14:45:57 Lol Jan 30 14:46:10 nothing too interesting, just taxes :p Jan 30 14:46:18 Then turn around and leak the info Jan 30 14:46:28 So folks can use it Jan 30 14:46:31 Lol Jan 30 14:46:32 hehe :p Jan 30 14:51:02 Cevari: if this is IAP, can't you restrict it server-side based on IP? Jan 30 14:53:07 that is an option, just would honestly rather not even display the IAP to users who then cant access them anyway Jan 30 14:53:26 so I'd prefer a client-side solution Jan 30 15:04:41 problem is, there's a good chance of being on a NATed IP anyway, so you need to know what the public IP of the device is - and it doesn't necessarily know itself Jan 30 15:57:55 Anyone use nexus 9 with 2gb 16gb that good for testing? Jan 30 15:58:45 why would it be bad ? Jan 30 15:59:26 i have an app with preferencefragment with lot of preferences/preferencescreens. how can i show different menu option for each preferencescreen? Jan 30 16:00:21 i can use onPreferenceTreeClick when navigating from A to B, but i haven't found a way to detect the transition from B to A Jan 30 16:00:45 where A and B are PreferenceScreen instances Jan 30 16:22:17 hey everyone Jan 30 16:57:37 Can anybody tell me when to make API calls when using a fragment?I am making a weather app for which i use a fragment on my main page to show data.But for that i need to make an API call.I made a singleton class for making these calls(lets call it loader,and its main function is loaddata()).Now my question is where exactly do i call loader.loaddata() from inside the fragment-should i call it from onViewCreated() or onCreate() Jan 30 16:58:11 Whenever makes sense, just make sure you don't make that call on the main thread Jan 30 16:58:48 no i'm using retrofit it automatically calls it from another,are both these function fine to call from? Jan 30 16:58:55 Do it async Jan 30 16:59:15 Good choice with Retrofit, now use eitiher its async version or the Rx one (preferably Rx) Jan 30 17:00:13 i currently dont know rx ...also i will use gson to set the data,but when i try to use findViewbyId in onViewCreated it gives me a null pointer error Jan 30 17:00:35 Then ignore Rx for now Jan 30 17:01:06 rx is in my todo list btw Jan 30 17:01:44 * g00s wonders how Ben's Rx book is coming Jan 30 17:15:22 Anyone developing a cardboard app? Jan 30 17:15:56 Is there a cardboard, or vr channel on freenode? Jan 30 17:21:13 hey, short question: the GCM docs say I should store the key securely – so posting it publicly on the web might be a bad idea? why? Jan 30 17:26:34 justJanne: a private key? Jan 30 17:26:43 the GCM server key, yes. Jan 30 17:27:04 I don't get what you're asking Jan 30 17:27:16 why would posting a private key be bad? Jan 30 17:27:19 justJanne so other can't send traffic using your key ? Jan 30 17:27:42 g00s: well, that’s the whole use case of push notifications in my app. That only others can send traffic using the key Jan 30 17:27:45 i dont think they publish limits but if its somehow abused, they need a way to yank it Jan 30 17:28:11 People host their own IRC bouncers, the app connects to the bouncer, the bouncer sends push notifications to the app Jan 30 17:28:39 Thanks to Doze™, GCM is the only option in 6.0 plus, so my only option seems to be to use GCM and publish the key Jan 30 17:28:46 justJanne: are you asking why it should be private? Jan 30 17:28:56 or why a private credential should be kept private? Jan 30 17:30:33 Well, effectively, it was a question in the hope of getting attention, so I could ask: How can I send from multiple servers, which I do not know in advance or control (but which the user enters into the app on first start) send push notifications to the users devices, without any of it going through my infrastructure? Jan 30 17:30:48 justJanne i don't understand, why anyone need the key though ... Jan 30 17:31:03 you use it in your app , privately, for everyone Jan 30 17:31:18 Well, how do servers send to the app notifications then? Jan 30 17:31:38 ah i see now Jan 30 17:31:47 so everybody has their own bouncer Jan 30 17:31:49 the "servers" are each a binary that people host on their own systems. Most are on rpi’s in someone’s home Jan 30 17:31:50 yeah Jan 30 17:32:09 And they can’t recompile the app, Jan 30 17:32:15 and I can’t control their servers Jan 30 17:33:28 g00s: the only solution I see is setting up my own server, and then the app connects to my server, tells me to accept notifications from, say, "user278947.verizon.com" for device "95945", Jan 30 17:33:38 (and offering an un-register similarly) Jan 30 17:35:51 justJanne: when you say "without any control" you do have some control, right? as the app dev? Jan 30 17:36:10 snapfractalpop: nope, the server is from a different team Jan 30 17:36:43 It’s two separate open source projects, which implement the same API: one implements server and windows/mac/linux client, the other team implements the android client Jan 30 17:36:47 but then how are you "sending" from them? Jan 30 17:37:26 sorry, yeah. Jan 30 17:37:29 I have some control. Jan 30 17:37:45 but that part is also, due to necessity, GPL. Jan 30 17:38:09 I guess I'm missing some context.. but all I can think of is certs Jan 30 17:38:43 well, snapfractalpop, the issue is that GCM requires an API key, which should be secret Jan 30 17:39:03 there’s no way for the app to register with GCM and get a token which can then be given to any server Jan 30 17:39:13 well, there might actually be Jan 30 17:40:18 btw, is there even a fully open source GCM client? that might already be the next issue... Jan 30 17:40:37 fuck Google, ey. Why can’t they give us alternatives... Jan 30 17:40:55 hi. I am having problems getting the input of a text input field that is limited to numbers... how can i retrieve the content as int? I tried: final int port = Integer.parseInt(((EditText)findViewById(R.id.add_terrarium_port)).getText().toString()); Jan 30 17:40:57 hm.. Jan 30 17:41:02 But somehow that crashes the app Jan 30 17:41:35 nidhoegger: could you post, via pastebin, what the actual exception is? Jan 30 17:41:42 for sure, one sec pls Jan 30 17:42:11 justJanne: idk.. are you tied to GCM? Jan 30 17:42:16 https://bpaste.net/show/e39bb714ba4e Jan 30 17:42:22 @justJanne Jan 30 17:42:34 snapfractalpop: Android M prohibits anything except for GCM if you want reliable notifications Jan 30 17:42:42 I think line 30 is most relevant Jan 30 17:43:32 nidhoegger: do you know what the actual result of getText().toString() is in your case? Jan 30 17:43:35 the edit has numbers only set...maybe thats the prob? Jan 30 17:43:37 you can have reliable notifications with anything Jan 30 17:43:40 m or not Jan 30 17:43:45 pfn: not during doze Jan 30 17:43:51 as its a null pointer exception, i guess its null... Jan 30 17:44:00 but i havent checked yet...mom Jan 30 17:44:12 or, tell me, how do I get an instant notification during doze through my own mqtt channel? Jan 30 17:44:15 nidhoegger: step through it Jan 30 17:44:23 justJanne, you can't get timely notification during doze Jan 30 17:44:25 because I’d be interested if there’s some magic, pfn Jan 30 17:44:32 yes, its null Jan 30 17:44:40 but the input definitively contains a number! Jan 30 17:44:59 well, you can, pfn, with GCM notifications set to important or direct message Jan 30 17:45:04 nidhoegger: break out that line to several lines Jan 30 17:45:09 then step through that Jan 30 17:45:18 or step into the line, piece by piece Jan 30 17:45:18 if there’s a way to do so without GCM, I’d be interested Jan 30 17:45:26 see what deviates from expectation first Jan 30 17:46:25 anyone know of a channel for cardboard, or vr? Jan 30 17:47:27 it must be the Integer.parseInt Jan 30 17:47:38 the string retrieved is "123123" Jan 30 17:49:43 nidhoegger: so, Integer.parseInt isn't working? Jan 30 17:50:47 nidhoegger: Is line 26 of AddTerrarium.java exactly that line (final int port = ...;) you pasted? Because I wouldn't expect any Integer objects to be involved in assinging Integer.parseInt to an int. Jan 30 17:50:52 yes Jan 30 17:59:36 I'm sorry I can't help.. it seems to me that Integer.parseInt("123123") should return the same as Integer.parseInt("123123", 10) as the static method default radix is 10.. but I don't understand what part is going wrong Jan 30 18:00:27 you could try, for sanity's sake, maybe just comment that line, and debug another line with just the string, to "prove" that Integer.parseInt("123123") is causing a null pointer? Jan 30 18:01:00 It's pretty strange. Because the exception is the sort of exception you'd expect to see from autounboxing a null Integer. And Android's Integer.parseInt isn't quite so bizarre as to involve Integer objects. Jan 30 18:01:47 fizzie: tried Integer.valueOf? that works here... Jan 30 18:02:03 (even in places where Integer.parseInt doesn’t, although both should...) Jan 30 18:02:32 I'd expect them to accept the same strings, but Integer.valueOf to be worse from a gc perspective. Jan 30 18:03:14 Btw, have you tried running Integer.parseInt with the same string hardcoded? Jan 30 18:03:34 Who knows. But Android's java.lang.Integer's valueOf(String) implementation is literally return Integer.valueOf(parseInt(s));. Jan 30 18:03:36 just to check if it’s in the parsing, or in getting the string Jan 30 18:03:43 It's not my program, it's nidhoegger's. Jan 30 18:03:47 oh, right Jan 30 18:03:56 your names have the same color in my client xD Jan 30 18:05:09 I would try hardcoding the string, and debugging that, as well as, just for kicks, try Integer.parseInt("123123", 10) Jan 30 18:05:20 just curious if that makes a difference Jan 30 18:12:20 Can anybody please show me a really nice RSI handling library ? Jan 30 18:33:54 hey fellas Jan 30 18:33:54 ltns Jan 30 18:33:59 how do I figure out which version number RxJava is under right now? all I see is references to 1.x and such, where's the latest version that I can include into my gradle? Jan 30 18:34:34 I guess it's here? https://github.com/ReactiveX/RxJava/blob/1.x/CHANGES.md Jan 30 18:37:08 Hi all. Whenever I create a new project using "Blank Activity" in Android studio, this happens: http://i.imgur.com/RD5FOE9.png Jan 30 18:37:18 What's going on? I'm literally just creating a blank project Jan 30 18:39:18 read the exception details, it tells you the issues Jan 30 18:39:50 justJanne: I realize that, but why are there issues when I've only just begun? Jan 30 18:39:57 Isn't that an Android bug or something? Jan 30 18:41:38 hello, does someone know similar project to this-> https://github.com/Soyokaze99/VPNFirewall which acutally works? Jan 30 18:47:03 does someone know about vpnfirewall and can help a bit please? Jan 30 18:50:10 Odaym, use search.maven.org Jan 30 18:55:11 Nobody here has had the same issue I'm having of rendering issues cropping up when simply creating a new project? I'm not finding any solutions that work Jan 30 18:55:29 Rebuilding doesn't help, changing the theme doesn't help, changing the API version doesn't help.. Jan 30 19:01:40 the ide renderer is useless Jan 30 19:01:43 I ignore it Jan 30 19:02:33 neochronomo: That shouldn't be happening, but FWIW I think "Empty Activity" is more "empty" than "Blank Activity" and less likely to cause such issues. Jan 30 19:02:59 That naming convention is also marvellous. Nobody could ever get confused there. Jan 30 19:05:31 TacticalJoke: I'm still getting rendering issues with an "Empty" project Jan 30 19:06:36 I get rendering issues now and then, and they disappear all of a sudden. Rebuilding doesn't fix it, and I have no idea what does. :s Jan 30 19:06:49 Though I too don't really use the renderer. Jan 30 19:08:24 hrrm Jan 30 19:09:59 You could try Build > Clean and the whole shebang, I guess, if you haven't already. Jan 30 19:10:10 Already did :P Jan 30 19:10:51 This is essentially my first day with Android development... kind of a crappy introduction. I'm trying not to let this first impression color my opinion Jan 30 19:11:42 how is it going TacticalJoke Jan 30 19:11:56 getting break from 8kg screaming flesh ? Jan 30 19:12:17 Yeah, recovering today. :D Not even gonna leave the house. Jan 30 19:13:12 neochronomo: From what I've seen, Android Studio is pretty stable in general. I'm not sure what's causing this kind of issue. Jan 30 19:13:34 neochronomo: Is it running on the device without issue? Jan 30 19:13:51 TacticalJoke: Is what running on the device Jan 30 19:14:12 The app, I guess. Jan 30 19:15:17 TacticalJoke: oh, uh.. hold on.. I never checked because I literally just created a new project.. haven't done anything with it Jan 30 19:17:53 TacticalJoke: Yeah, i guess it technically runs without the Preview renderer working properly Jan 30 19:18:08 TacticalJoke: That's extremely annoying though and makes me wonder if there's anything else wrong Jan 30 19:18:13 TacticalJoke: Maybe I should reinstall Jan 30 19:18:40 I think we should put it to the vote. Jan 30 19:19:05 :P Jan 30 19:19:14 neochronomo your XML layout preview is broken n AS ? Jan 30 19:19:39 g00s: yes, upon the creation of a new project Jan 30 19:20:00 ok (1) makre sure you have the right theme set (this would be obvious though) and (2) make sure you do a build Jan 30 19:20:22 i've noticed, that even after syncing gradle, AS is still busted on many things until a first build Jan 30 19:20:26 g00s: I've tried many themes and they all have the same rendering issues, and I've already rebuilt and cleaned Jan 30 19:20:44 hm. yeah its all still pretty brittle IMHO Jan 30 19:21:28 g00s: The weird thing is, it worked for me yesterday.I created a project and everything worked fine. Suddenly today it breaks upon creation Jan 30 19:21:45 neochronomo: FWIW, I didn't encounter this issue until a long time after starting. It's rather unlucky to encounter it right at the beginning. Jan 30 19:21:51 my favorite peave is needing to restart AS when my laptop wakes up. mac usb stack hangs, AS hangs - if i kill adb things kinda work but AS won't reconnect, so i have to restart it - which then does a full build, wasted like 5 minutes Jan 30 19:21:55 Though this issue doesn't bother me. The renderer isn't very useful to me. Jan 30 19:22:35 TacticalJoke: Without the renderer you have to constantly guess Jan 30 19:23:02 TacticalJoke: Keep deploying to the emulator and going back... pain in the ass Jan 30 19:23:56 Hey! need help with android studio Jan 30 19:24:12 hear sam roar Jan 30 19:25:31 android studio is not recognizing support library v7 but I have it installed Jan 30 19:25:32 neochronomo: You are trying an AppCompat theme, right? Jan 30 19:25:43 samroar_ try doing a build Jan 30 19:26:01 (assuming its added to your gradle stuff properly) Jan 30 19:26:12 TacticalJoke: What's AppCompat? Jan 30 19:26:24 TacticalJoke: Would it be int he list of themes? Cause I don't see it Jan 30 19:26:55 g00s: gradle,build. all new words for me Jan 30 19:27:09 :( Jan 30 19:27:42 samroar: there there buddy Jan 30 19:27:53 neochronomo: Hmm, AppTheme should work, with a blank project. Jan 30 19:28:12 TacticalJoke: That's the theme selected, "AppTheme" Jan 30 19:29:12 samroar_, http://developer.android.com/intl/es/tools/support-library/setup.html Jan 30 19:29:16 take a look a that Jan 30 19:29:51 Adyrhan:thanks! let me have a look Jan 30 19:29:53 neochronomo: These suggestions might not help, but they are harmless: 1. File > Invalidate Caches / Restart 2. Tools > Android > Sync Project with Gradle Files. Jan 30 19:30:08 TacticalJoke: I'll give them a try Jan 30 19:31:43 TacticalJoke: woah, invalidating the caches worked :O Jan 30 19:32:04 TacticalJoke: What does that do exactly?! Jan 30 19:32:51 I'm not sure, but I think IntelliJ caches stuff quite aggressively, so it's possible it got confused about themes or something. Jan 30 19:33:18 TacticalJoke: You mean Android Studio? Jan 30 19:33:39 Android Studio is pretty much a custom build (maybe fork) of IntelliJ. Jan 30 19:33:59 TacticalJoke: oh,interesting... Well thank you very much :) Jan 30 19:34:48 No worries. On a side note, if you're new to Android dev, this is probably one of the better places to hang out. Jan 30 19:35:00 There's /r/androiddev, but it's not that great. Jan 30 19:36:25 TacticalJoke: I'll probably be here constantly haha. Jan 30 19:39:16 Hey, my android studio 2.0 preview keeps telling me it's old and links me to a site that has download links for stable release versions. When I check for updates from help, it tells me I am already up to date. Any ideas? Jan 30 19:41:24 achshar: Hmm, maybe check which update channel you're on? Ctrl+Shift+A > "updates" > Enter. Jan 30 19:41:41 achshar, I don't know right now what is the latest version, may be they have released the 2.0 stable, and the preview isn't automatically updateable to the stable one Jan 30 19:42:10 Ah it says stable in the updates settings page Jan 30 19:42:45 That was it, thanks! Jan 30 19:51:04 Can anybody please show me a really nice RSI handling library ? Jan 30 19:51:17 RSI feed handling LIb? Jan 30 19:52:18 I mean RSS Jan 30 19:52:36 Jeez, cart_man. Jan 30 19:53:51 Biggest twist of 2016. Jan 30 19:58:56 I have cardview in recyclerview, so when I expand my cardview and scroll down that expanded cardview gets recycled and stays expanded, any work around for this? Jan 30 20:00:33 Un-expand it if you don't want it expanded anymore Jan 30 20:00:59 SimonVT: Just did that, but if I scroll down you see the recycled cardview get closed, so it seems weird Jan 30 20:02:47 I just said on onBindView if(getAdapterposition() != prevExpanded) then close Jan 30 20:03:03 but like I said if you scroll down you see "random" cardviews close Jan 30 20:03:49 Find a way to close it without animation Jan 30 20:05:40 I can actually try setDuration(0), will see how it works Jan 30 20:08:31 lol that worked, so eeasy but I didn't think of it before, thanks SimonVT Jan 30 20:08:55 You could probably just set the properties you're animating directly, instead of having a duration of 0 Jan 30 20:10:16 SimonVT: I'm calling expand and collapse all the time, just sent paramter for collapse method for duraiton, or are you talking about something else? Jan 30 20:11:53 Never seen expand or collapse methods on CardView Jan 30 20:12:03 But your animations are animating some property Jan 30 20:12:21 Instead of creating an Animator, you could just set those properties directly Jan 30 20:12:49 SimonVT: I'm not sure how I would do that, I followed this tutorial: https://medium.com/@akshay.shinde/cardview-expand-collapse-cd10916bb77c#.pbg4h3mte Jan 30 20:14:20 Right, so you could just set the height property directly instead of creating a ValueAnimator Jan 30 20:15:08 But then you won't have that nice animation, but it just gets expanded right? :) Jan 30 20:15:26 But you don't want the animation, that's what you just said Jan 30 20:15:54 Just when I'm closing the recycled cardviews which gets expanded automatically Jan 30 20:16:51 So only do it in that case Jan 30 20:17:14 Oh, sorry I'm slow because I have been coding for too long, I get what you are saying now, that's much better solution, double thanks! Jan 30 20:22:10 TacticalJoke: AHHHHHHHHH... I'm giving up for awhile :P Your solution works, but you have to do it for every single new page created. And now for some reason I can't drag any of the controls to the renderer.. just doesn't work. And also deleting the default "Hello World" text view causes errors galore. Jan 30 20:22:33 TacticalJoke: DEFINITELY not a good first impression of Android Dev, unfortunately Jan 30 20:22:59 Which version of Android Studio is that? Jan 30 20:23:24 TacticalJoke: the latest Jan 30 20:23:58 TacticalJoke: Assuming the link on their homepage is linked to the latest version Jan 30 20:43:52 TacticalJoke,Lol why? Jan 30 20:48:46 neochronomo: In my experience, working with the ui preview tool to modify layouts just is not the way to do it for Android. Working with the xml forces you to know all of the properties, the widgets, etc. which is a good thing Jan 30 20:49:41 the UI preview is garbage Jan 30 20:50:55 It's ok for roughing out layouts, but IMO the best way is to push your builds to a test phone while you're developing. Don't use the emulator Jan 30 20:52:56 yeah, except that sucks without some kind of instant run Jan 30 20:53:18 I like the emulator for its handiness. Jan 30 20:53:23 New emulators have been getting better Jan 30 20:53:32 Just wish they shipped with google play services Jan 30 20:53:35 Though I tend to test actual design stuff on physical devices. Jan 30 20:53:40 or at least a dev version Jan 30 20:53:59 but yes actual devices are still hands down best Jan 30 20:56:13 Do you think it hampers your productivity? I was always pretty happy with it; but that was because the emulator just took forever on my computer. Even after the h/w acceleration was added. Jan 30 20:56:25 yiati i hope when the new emus are stable, they start doing that -- its fucking nuts Jan 30 20:57:09 anyone looks at the Windows UWP? Jan 30 20:57:17 *looked Jan 30 20:57:36 Ok soo in 2016 I found out that FeedBurner might be shut down and that the idea has been looming for 6 years now Jan 30 20:57:53 IronMike i just saw in the verge a story about Wp being dead - clickbaity, but still depressing Jan 30 20:57:55 There any other alternative RSS Feeders? Jan 30 20:58:14 Wp ? Jan 30 20:58:46 windows phone Jan 30 20:58:58 IronMike: I recently got a way-faster computer. Now I use the emulator almost entirely. :s Jan 30 20:59:05 I feel way more productive. Jan 30 20:59:06 That's too bad because from a engineering economics perspective, the UWP is a clear win. The refatoring and unification of the APIs is a huge value add for developers Jan 30 20:59:39 I put the scared smiley because I'm not yet sure whether this is a bad habit. Jan 30 20:59:39 IronMike yeah, i think a step ahead of the pack for sure Jan 30 21:00:19 Windows 10 on phones seems way neater than Android does. Even little things, such as the ability to customize the keyboard's position for your dominant hand. Jan 30 21:00:36 and M$'s toolchain is without peer. Expression Blend is awesome to work with. It'll be interesting to see if the roll Xamarin forms into EB to allow devs to push C# to all platforms using one IDE Jan 30 21:01:29 i dont see anything changing with android's dominance in emerging markets Jan 30 21:01:55 g00s: Yeah, I agree. Android isn't going to be overtaken any time soon. Jan 30 21:01:57 On the plus side for Android, though, we have the capacity to use a nicer language (Kotlin). Jan 30 21:02:15 TacticalJoke lol when are you going to start using it :D Jan 30 21:02:20 haha Jan 30 21:02:29 What is Kotlin? Jan 30 21:02:49 I'm on the Wikipedia page but I haven't heard of this. Jan 30 21:02:53 It's a replacement for the Java language made by JetBrains. Jan 30 21:03:14 is it possible to have conflicts when squashing commits ? Jan 30 21:03:15 oh I see. so it compiles to JVM byte code? Jan 30 21:03:17 (git) Jan 30 21:03:23 Java has various weaknesses, and it sounds like they grew tired of this and created a replacement for their own use. Jan 30 21:03:26 Yeah. Jan 30 21:03:39 be back in a little while guys...gotta run Jan 30 21:03:49 IronMike starts his emu Jan 30 21:03:59 g00s: If rebasing is involved, yeah. Otherwise, I can't imagine how a conflict could be possible. Jan 30 21:04:30 Unless Git does something weird here that I can't remember. Jan 30 21:06:20 til about git rerere Jan 30 21:06:37 usually just squash a few commits, but need to squash about 12 or so Jan 30 21:06:49 Why are you squashing so many? Just curious. Jan 30 21:07:01 I actually have a workflow that sometimes involves this. It's when I'm doing "checkpoints". Jan 30 21:07:45 sometimes when i can't make a decision on how to tackle something big, i try little commits until I arrive at some point, then i want to squash those down and merge into integration branch Jan 30 21:07:51 Ah, okay. Jan 30 21:11:52 I hope you all don't mind me being frank here, but in Visual Studio for windows phone the preview is GREAT. The frank part of what I'm gonna say is that it kinda sounds like /maybe/ you all have just dealt with the Android preview being horrible and have gotten used to working in XML normally? That's not to say that there aren't advantages to using XML to code a layout, cause there are, but in Windows phone the ability to do Jan 30 21:13:24 neochronomo got cut off at 'but in Windows phone the ability to do ..." Jan 30 21:13:37 but yeah, MS has always had great tooling Jan 30 21:13:38 I think simply "in Windows phone the ability to do" is enough. :D Jan 30 21:13:51 They don't think it be like it is, but it do. Jan 30 21:14:39 Yeah, this is a weakness of Android development. XML sucks, and the preview sucks. I haven't done Windows-phone development, but it sounds way nicer in general to me. Jan 30 21:15:02 Haha, alright Jan 30 21:15:50 personally i wish MS was as serious about privacy as apple Jan 30 21:16:07 still a bit nervous about windows 10 data collection / telemetry Jan 30 21:16:25 Android development isn't so bad when you get used to it, but there are some real pain points (especially for newcomers). Jan 30 21:16:49 The fact that it's an open source OS is a huge positive for developers. Jan 30 21:17:37 TacticalJoke: .NET is open source Jan 30 21:17:48 imho i still feel writing java apps is antithetical to google's broader goals of web as platform Jan 30 21:18:03 i expect some seismic shift eventually Jan 30 21:18:38 i guess this year we'll hear about the ChromeOS merger Jan 30 21:18:49 at I/O coming ... pretty soon Jan 30 21:19:04 although its at a weird place , maybe they will talk more about cars and drones Jan 30 21:25:29 How do I get when a view is shown? Jan 30 21:25:51 Like, when someone opens it with a button or something Jan 30 21:26:02 Also by view I mean activity Jan 30 21:33:37 I can’t tell if I’m just dumb and not searching the right things, but I can’t find anything like onCreate but for when an Activity is displayed Jan 30 21:34:19 onResume() isn't it? Jan 30 21:34:40 Oh, is it? Neat Jan 30 21:34:55 Yeah Jan 30 21:35:32 so youre just dumb Jan 30 21:38:03 :/ Jan 30 21:38:10 Thanks for that scathing criticism Jan 30 21:38:42 don't worry Engulfer...noone is an expert at software these days with it changing so quickly Jan 30 21:39:19 Yeah, I asked here because I legitimately couldn’t find the proper method after ages searching for it Jan 30 21:40:55 no worries...the term you are searching for is "lifecycle". you can find the details here: http://developer.android.com/reference/android/app/Activity.html#ActivityLifecycle Jan 30 21:41:51 Thanks for the information! Jan 30 21:59:19 hello Jan 30 21:59:27 hi Jan 30 21:59:34 just ask your question Jan 30 22:00:00 i am trying to add auto login to my app. So i have two options here Jan 30 22:00:50 1. first mainactivity starts and if username and pass was in the shared prefs login directly. If not go to the login page. Jan 30 22:01:56 2. first login activity starts and checks the shared prefs and if there is username and pass logins. If not its already login page so user just need to login. Jan 30 22:02:15 should i use 3 activity or just 2 is enaugh. wich one is more efficent Jan 30 22:02:57 I think #1 is most natural. And it allows you to give the user the option to log in at any time. Jan 30 22:04:27 TacticalJoke: But eitherway i didnt even use the mainactivity and it has its own layout etc. its just a direction activity and takes space and memory. Jan 30 22:05:42 Why do you have MainActivity at all? Jan 30 22:05:51 Since the login page will likely only ever be showed once, or a very limited amount of time, what I go with is usually start the main activity and check if the user is logged in. If not, go to the login activity. That way, most of the time you'll load the right activity on the first try Jan 30 22:07:37 TacticalJoke: to check and direct to the true activity Jan 30 22:07:53 Max-P: that is really makes sense. Jan 30 22:08:18 torak: What are the choices? The "log in" screen and what else? Jan 30 22:08:38 TacticalJoke: login or go to the main feed page. Jan 30 22:08:46 Why not make the main-feed page MainActivity? Jan 30 22:08:57 MainActivity could then decide whether to open LogInActivity. Jan 30 22:09:15 I doesn't have to be named MainActivity either Jan 30 22:09:20 TacticalJoke: that was Max-P saying. I couldnt think that. Jan 30 22:09:32 I was just listened this guy so i came here Jan 30 22:09:33 http://stackoverflow.com/questions/12744337/how-to-keep-android-applications-always-be-logged-in-state Jan 30 22:11:18 So i need to use an if at the very beginning of Oncreate override to Intent to login activity or stick with the current one. Jan 30 22:11:47 Exactly Jan 30 22:12:16 Max-P , TacticalJoke thank you both. Jan 30 22:13:01 Is this a joke? Jan 30 22:13:13 TLS1.1 only supported from Jelly Bean on? Jan 30 22:20:12 justJanne, that would appear to be the case, yes Jan 30 22:20:40 @"(%/"!?)%@!! Jan 30 22:20:57 okay then, so I’ll have to bundle my own version below that Jan 30 22:21:14 Are there any FLOSS libs for that? (GPL-compatible) Jan 30 22:21:20 I don't know if there's a reasonable way to stub in your own sslsocketfactory or not Jan 30 22:21:46 Well, I know Google Play Services has their own sslsocketfactory, but I need a GPL-compatible one Jan 30 22:22:03 and unless Google licenses their Play Services under GPL, I won’t use that Jan 30 22:22:33 bouncycastle is probably your only bet, you may have conflicts w/ the system version though Jan 30 22:22:49 i HAVE successfully wedged a BC jar into an android app, years ago in the 2.x days Jan 30 22:23:29 your other option is looking into something patched in via JNI Jan 30 22:23:37 instead of a pure java version Jan 30 22:24:28 That's for stuff like that that I wish Android just didn't ship with a runtime and instead let developers have their app depend on a library through the play store Jan 30 22:24:49 So much stuff that just doesn't need to be baked into the system Jan 30 22:24:53 Max-P, google is getting more aggressive because manufacturers have totally failed, too Jan 30 22:25:08 Max-P, 5.x split out the webview engine, 6.x also split out the wifi connection engine Jan 30 22:26:01 Max-P, there's a lot of legacy badness that manufs have caused by never releasing updates, unfortunately Jan 30 22:26:33 and anything they address now won't show up for most users for another 2+ years. Jan 30 22:26:36 dragorn: and sadly, every time Google splits out something, they stop providing the Open Source version Jan 30 22:26:43 justJanne, sure Jan 30 22:26:49 What I’d prefer would be if the end user could switch on their own Jan 30 22:26:52 justJanne, google isn't doing anything for the benefit of OSS :P Jan 30 22:27:01 want to use a Firefox WebView? Sure, just install this instead Jan 30 22:27:10 justJanne, You've got the nerd vs consumer problem. I've got it, too. Jan 30 22:27:14 want to use a ChromeCustomTabs WebView? Sure, just install this. Jan 30 22:27:29 justJanne, also the nerd vs. scammer problem Jan 30 22:27:49 justJanne, soon as you let someone install a custom system-wide web engine I can promise there'll be scamware "adblocker" or "faster engine" versions Jan 30 22:27:54 dragorn: users can install custom SMS apps, can install custom web browserss, Jan 30 22:27:58 justJanne, this is one of many reasons we can't have nice things. :P Jan 30 22:28:06 And even today there are apps replacing the system webview... Jan 30 22:28:07 justJanne, yup, tho webview is far far more invasive Jan 30 22:28:22 through hacks like using the accessibility engine to find the link, and then launching a chrome custom tab Jan 30 22:28:40 b/c it shows up inside the privilege contexts of other apps Jan 30 22:28:57 justJanne, I dont' disagree it would be nice from a nerd pov, I'd want it. Jan 30 22:29:03 justJanne, but from a consumer pov, never going to happen Jan 30 22:29:24 dragorn: enough users want it that apps that make links open in chrome custom tabs, instead of webview, have millions of installs Jan 30 22:29:26 justJanne, it's the sort of thing that would have to be relegated to custom roms like cm Jan 30 22:29:57 lots of things have millions of installs. so do apps that "increase your wifi signal". :P Jan 30 22:30:42 well, yeah. Jan 30 22:30:52 But imagine if Chrome Custom Tabs were just a custom webview variant Jan 30 22:34:35 <[Saint]> It's pretty much "embrace the Googlesphere, or die, or die trying", sadly. Jan 30 22:34:48 <[Saint]> It's not pretty, and no one really likes it, but it's where we're at. Jan 30 22:37:08 [Saint], absolutely, and it's only increasing. CTS is getting more and more restrictive to combat manufacturers a) breaking things, or b) replacing google Jan 30 22:48:13 dragorn do you know what google's motive is in getting into IoT with brillo / weave ? i suspect its to siphon some data from smart things but - I can't image 'internet connected toaster' sending anything useful to them Jan 30 22:48:22 I'm *this* close to buying a Nexus 5x Jan 30 22:48:28 unless there is something else you'd recommend Jan 30 22:48:46 only non nexus device i would get is maybe a sony Jan 30 22:48:57 RustySha1kleford, I'm extremely happy with the 6p. A friend is extremely happy with the 5x. Jan 30 22:49:39 g00s, some combination of "new hotness" and "more data = more better" probably. I'm sure in some way it's going to integrate into all the google now stuff that already gets determined about your life Jan 30 22:50:22 g00s, I think the IOT Toaster is the running joke and the uninspired stuff companies crank out; ultimately it's going to shake out into more constant sensor stuff like what rooms are inhabited, temperatures, etc. No-one has a *lgitimate* use for IOT toasters. :P Jan 30 22:50:23 dragorn: the 6p also looks great Jan 30 22:50:30 I don't think I want a phone that big Jan 30 22:50:36 RustySha1kleford, the 6p is a big phone. It's smaller than the 6, but it's a big phone. Jan 30 22:50:45 my pockets only have so much space, you know? Jan 30 22:50:54 RustySha1kleford, in a case it's very slightly bigger than an iphone 6+ Jan 30 22:51:05 the advantage of the 6p is that I can get it activated on Verizon no problem Jan 30 22:51:10 on the other hand, it has a lot better battery, a lot better camera Jan 30 22:51:34 you can do a 5x on verizon just fine. I have a micro sim to nano puncher and knocked my friends verizon sim down and he's had no problems Jan 30 22:51:47 reviews and my buddy both say that the 5x's battery is meh Jan 30 22:51:49 the only thing verizon won't do is activate the new international stuff on a 5x Jan 30 22:51:59 i don't know about a 6p, i haven't gone overseas with it yet Jan 30 22:52:05 actually I spoke with a rep at the verizon store, she says they'll activate one for me no problem Jan 30 22:52:21 could be. I avoid dealing with verizon whenever I can. Jan 30 22:52:41 I’m trying to read a file on the emulator’s SD card, but I’m getting ‘open failed: EACCES (Permission Denied)’ Jan 30 22:52:42 dragorn i can see devices like nest, etc. but lets say you make your own nest-like device. using brillo; only way i can see google benefitting from this is that the data somehow gets router through their infrastructure using defined-formats with agreed upon semantics Jan 30 22:52:48 customer serivice isn't that bad Jan 30 22:52:57 the salesmen are wayyy to pushy at the stores though Jan 30 22:53:01 in my experience, verizon can't activate anything not bought from verizon itself. But it'll work fine w/ an active sim. Jan 30 22:53:11 RustySha1kleford, google still has, afaik, a 1 month return window Jan 30 22:53:21 RustySha1kleford, or two weeks, or something. You could get yourself a 6p and see if you like it. Jan 30 22:53:37 well the other workaround besides cutting the sim card is to borrow a friends phone Jan 30 22:54:05 activate the sim card with that phone, then return it to your friend Jan 30 22:54:07 JamEngulfer, that would imply that the file isn't owned by the same user as the emulator Jan 30 22:54:18 RustySha1kleford, yup. or spend $8 on a sim punch on amazon Jan 30 22:54:34 too bad they don't make phones with removable batteries Jan 30 22:54:44 that was a huge reason why I got the galaxy s4 and then s5 Jan 30 22:54:58 RustySha1kleford, yeah, that said, the 6p battery is good, and the fast charge is excellent. Jan 30 22:55:35 I can't speak to the 5x Jan 30 22:55:42 I'm sure the 5X has a fine battery when its new. I'm more concerned about a year from now Jan 30 22:56:06 this s5 went from lasting almost 2 days to needing a charge twice a day Jan 30 22:56:13 dragorn which device do you own ? Jan 30 22:56:41 sounds like he's got a 6p Jan 30 22:57:11 g00s, my main phone is a 6x; i've got a 6 (the battery went bad, expanded, and shoved the screen off the front of the phone), a G4 (good for 5.x testing, I guess, except then it had a hw fault and bootlooped forever, waiting on the replacement) Jan 30 22:57:21 g00s, of course various work devices Jan 30 22:57:33 :D Jan 30 22:57:42 er, 6p, not 6x. I'm tired. Jan 30 22:58:01 I was happy with most things with the g4 but it was awfully verizon-y and that drove me nuts, plus no updates. Jan 30 22:58:26 dragorn: I checked the permissions for the file and it should be readable by everyone. Jan 30 22:59:07 JamEngulfer, is the directory it's in accessible by all? Jan 30 22:59:12 I added it to the ‘sdcard’ with the device manager Jan 30 22:59:27 It should just be in the top folder of sdcard Jan 30 23:00:01 I also have the READ_EXTERNAL_STORAGE permission enabled in my Manifest Jan 30 23:00:02 JamEngulfer, are you getting the error from an app or from the emulator Jan 30 23:00:26 It’s from my app. I’m outputting the result of an IOException Jan 30 23:00:37 JamEngulfer, oh, from an app, that's different. Well, if you're building under android 6, you need to do runtime permissions to access the sd card afaik Jan 30 23:00:50 ugh Jan 30 23:01:14 Well that’s a pain. Can I request the permissions from the Application subclass? Jan 30 23:02:53 JamEngulfer, https://developer.android.com/training/permissions/index.html Jan 30 23:03:05 JamEngulfer, would probably be where you start. It's not terrible, probably about 50 lines of code Jan 30 23:06:27 JamEngulfer, Well that’s a pain. Can I request the permissions from the Application subclass? << No Jan 30 23:06:45 you need to do it at the point where you need it because it can be revoked again everytime Jan 30 23:08:09 Hmm Jan 30 23:08:22 I kinda need it from the Application subclass though Jan 30 23:09:06 Iirc correctly the app gets shut down if the user changes permission Jan 30 23:09:19 Well, I’m pretty sure the app isn’t going to do that Jan 30 23:09:27 It’s not going to be a production app anyway Jan 30 23:09:32 so it would be ok to ask for it on app start once and assume its granted while the app is running then Jan 30 23:09:40 <[Saint]> RustySha1kleford: My $0.02 - if you can afford the 6P, there are precisely zero reasons to get the 5X. Jan 30 23:09:58 <[Saint]> It's a bitter disappointment compared to the 6P. Jan 30 23:10:17 [Saint], not everyone wants their phone in phablet size ;) Jan 30 23:10:29 <[Saint]> My partner "really wanted" the 5X, and I ended up buying another 6P on a whim because I knew she'd get envious of it. Jan 30 23:10:36 <[Saint]> ...guess which one she uses now. ;) Jan 30 23:11:13 <[Saint]> danijoo: it's really not /that/ much larger. Jan 30 23:11:20 <[Saint]> Get bigger pants. Jan 30 23:11:33 thats your opinion Jan 30 23:11:43 <[Saint]> It is. Well done. Jan 30 23:12:12 he should try them both and see which one fits him Jan 30 23:12:35 I hassled a lot with myself but ended on the 5X and im fine with it :0 Jan 30 23:12:53 <[Saint]> All I'm saying is that if you can deal with the size, and cost isn't an issue, there's a very, very clear winner of the two. Jan 30 23:14:14 danijoo, in my experience, you can lose permissions runtime Jan 30 23:14:27 danijoo, at least I was getting crashes where that happened Jan 30 23:14:41 dragorn, doesnt AM kill the app when user switched the permission off in system settings Jan 30 23:18:11 dragorn, see http://stackoverflow.com/questions/33488589/android-marshmallow-dynamic-permission-change-kills-all-application-processes Jan 30 23:18:57 danijoo, well, i've got crash logs from users which can only happen if permissions get revoked sometime after they were granted, w/out killing the app Jan 30 23:19:00 danijoo, so I dunno what's going on Jan 30 23:19:27 hm ok Jan 30 23:21:04 in my case, it would only start the location stuff after the permissions were validated, and on some devices I'd later get a crash that location was not granted Jan 30 23:21:33 which was solved when I introduced a check before every location use instead of a startup/ui-grant check that cached to a variable Jan 30 23:22:00 so something was definitely reporting it was available, and then later in the same runtime, saying it was gone Jan 30 23:23:13 dragorn interesting. could some xposed module have done that? Jan 30 23:23:33 g00s, I suppose that's possible Jan 30 23:23:44 g00s, I just check before every single use now instead of caching the startup value Jan 30 23:24:00 yeah, i try to be as stateless as possible too Jan 30 23:26:46 I think thats recommended anyways Jan 30 23:27:49 but i think g00s right. xposed or some strangely cooked ROM might be the reason Jan 30 23:28:08 danijoo strangely cooked :D Jan 30 23:28:33 <[Saint]> Xposed is always the problem. Jan 30 23:28:41 <[Saint]> The mere fact it exists is a problem. Jan 30 23:28:52 <[Saint]> Jan 30 23:29:14 [Saint], and yet it's more predictable and easier to fix than when a vendor screws you over :P Jan 30 23:29:50 <[Saint]> I guess. The only variable in that scenario is which one exposes more security holes by default. ;) Jan 30 23:30:17 s/a vendor/samsung Jan 30 23:30:40 every once in a while, my AS gets into a funk - and says 'no debuggable applications'. from then on i can only see the unfiltered lolcat with /everything/ Jan 30 23:31:01 even though everything else seems to work fine Jan 30 23:31:02 g00s, I have that too Jan 30 23:31:19 happens for me across a lot of AS versions Jan 30 23:31:25 my app is running and i can'r select it from that dropdown Jan 30 23:31:28 yeah Jan 30 23:31:32 I think that bug is as old as AS beta Jan 30 23:31:43 i must have to restart AS 5 or 6 times a day Jan 30 23:31:59 even tried that little 'restart' button there Jan 30 23:32:37 put invalidate/restart on a hotkey :D Jan 31 00:10:06 g00s: better solution Jan 31 00:10:12 just add a filter for your own package Jan 31 00:12:16 justJanne oh i already have that ... but still says no debuggable apps Jan 31 00:12:23 easier to say com.me.* Jan 31 00:13:01 (and that filter seems to not work in that funky state) Jan 31 00:27:46 pfn https://www.reddit.com/r/programming/comments/43emw6/ircv3_advance_the_irc_protocol/ Jan 31 00:37:48 is there a template for a proper android lib project? Jan 31 01:14:52 has anyone here played with the cardboard sdk yet? Jan 31 01:18:59 am I correct in thinking that you need to wrap all alertdialogs in if (! isFinishing()) { ... } in order to avoid "unable to add window" crashes if the user leaves the app before the alertdialog shows? Jan 31 01:41:58 anyone know what activityOpenExitAnimation and activityCloseEnterAnimation are? i understand enter / exit, but how can open & exit make sense together :) Jan 31 01:43:13 oh found it Jan 31 01:45:30 working late, aren't you? Jan 31 01:47:25 * g00s sighs Jan 31 01:54:18 when i replace a fragment with another in a container, and add it to the back stack, i see visual artifacts flash briefly Jan 31 01:54:24 unless i specify an animation Jan 31 01:54:52 well, when i pop the second fragment off the stack back to the first one - is when i see garbage Jan 31 01:57:31 "Fragment transaction custom animations have wrong z ordering" Jan 31 01:57:59 cant throw a stick far without hitting a bug Jan 31 01:59:33 ain't nothin' what can't be solved by proper kinetic adjustment **** ENDING LOGGING AT Sun Jan 31 02:59:58 2016