**** BEGIN LOGGING AT Mon Mar 09 02:59:58 2015 Mar 09 03:00:22 nope, its just the android measuring system Mar 09 03:00:30 you could forgoe the relativelayout altogether Mar 09 03:00:44 forgo* Mar 09 03:00:48 desmin88: thank you. You nudged me in the right direction to find the right docs to figure this out. Works great :D Mar 09 03:00:55 CanyonMan: np man! Mar 09 03:01:23 The custom adapter is simpler than I looked. It looked complicated fro their examples. It's really not too bad Mar 09 03:01:41 closer, but not exactly there yet. I will screw around with it. Thanks! Mar 09 03:01:50 I need to get all this stuff into git before I screw something up bad though Mar 09 03:02:04 I wonder if I just do the VCS menu make git if it will be smart enough to not check in stupid stuff Mar 09 03:02:34 MikeWallaceDev, relative layout behavior in relation to wrap content has. changed over the versions of android Mar 09 03:03:27 pfn: oh rly? Mar 09 03:03:30 pfn, it still doesn't make sense that it would match parent when I tell it to wrap content Mar 09 03:04:14 Napalm, I can't recall which version but probably between gb and ics Mar 09 03:04:29 wrap content used to be completely broken with relative layout Mar 09 03:04:37 MikeWallaceDev: i thought it in relation to AT_MOST Mar 09 03:04:38 but me Mar 09 03:04:39 meh Mar 09 03:05:05 use AbsoluteLayout! Mar 09 03:05:13 lool Mar 09 03:05:20 I like using GridLayout Mar 09 03:05:21 takn, I tried, it didn't work correct Mar 09 03:05:22 :P Mar 09 03:05:43 oh, gridLayout, that might be better for what I'm doing now Mar 09 03:05:50 its completely underated, and if your doing APIv14/15+ then GridLayout is awesome Mar 09 03:05:51 dang, are you trolling my trolling? Mar 09 03:05:53 yep, I'll switch Mar 09 03:06:01 for the most control, put AbsoluteLayouts in your AbsoluteLayouts Mar 09 03:06:06 I am. takn Mar 09 03:06:15 Napalm, gridlayout is available as a compat lib Mar 09 03:06:15 metatroll. Mar 09 03:06:19 g00s: you read my mind Mar 09 03:06:27 pfn: true, but meh Mar 09 03:06:40 gridlayout-v7 Mar 09 03:06:55 i haven't bothered to check it. out Mar 09 03:17:44 yay, gitted up Mar 09 03:18:35 or not. commit failed, no such author chrisp? wtf Mar 09 03:19:24 oh yeah, i think there is an apple event tomorrow Mar 09 03:19:46 oh no Mar 09 03:19:49 that's the last thing we need Mar 09 03:20:28 they'll most likely talk about their watch Mar 09 03:21:03 maybe updated MBPs Mar 09 03:21:29 I don't think there's any "most likely" about it Mar 09 03:26:53 Hmm, so many options to choose from for a key-value store Mar 09 03:27:28 How big a database are you thinking you will need? Mar 09 03:27:47 arbritrarily sized Mar 09 03:28:00 but i mean like huge like megabytes of data, or more like preferences? Mar 09 03:28:24 its essentially just saved integers corresponding to id's of data Mar 09 03:28:28 and now, gridlayout is screwing with me... :-/ Mar 09 03:28:33 http://pastebin.com/wNFkDnV2 Mar 09 03:28:35 which means its variable, it can be just 1 or 100's depending on the user Mar 09 03:28:48 i am using import android.content.SharedPreferences; Mar 09 03:28:48 but Mar 09 03:28:53 http://uppix.com/f-screenshot_08854fd137100187c1c.png Mar 09 03:29:10 does anybody know why the buttons aren't centered? Mar 09 03:29:10 what kind of design are you following there Mar 09 03:29:17 I don't have enough android experience to really guide you except let me share one piece of experience that I have. Mar 09 03:29:29 I used to do a bunch of development for PalmOS for the Palm Pre if you remember what that is Mar 09 03:29:48 That's what they used in the Flintstones, right? Mar 09 03:29:49 and the tendency there was that every app (very close to every app anyway, vast majority) had its own dedicated sqlite for that app Mar 09 03:29:51 :D Mar 09 03:30:04 as a developer/hacker I really appreciated that Mar 09 03:30:20 that's how it is on Android too Mar 09 03:30:22 because the files were easy to back up, and easy to get on a desktop or whatever and attach to with the sqlite client and see what was n them and how they work Mar 09 03:30:23 yeah Mar 09 03:30:32 so I was just going to say, on android you can do the same thing, Mar 09 03:30:36 (considering many of the architects worked on Palm OS, kinda normal) Mar 09 03:31:04 Anybody see my pastebin above? Mar 09 03:31:10 and what that gives me IMO is a way to peer into things whether they're working or not and the interface is SELECT * FROM and UPDATE and INSERT or whatever, not "try to figure out some jackass's custom format" Mar 09 03:31:17 Now don't get me wrong, sqlite is kind of a piece of crap Mar 09 03:31:35 woah Mar 09 03:31:36 but for this kind of thing, it feels like quite a good fit ... Mar 09 03:31:59 why is sqlite crap? Mar 09 03:32:00 haha ok maybe that was too strong a way to put it. Mar 09 03:32:16 for bigger applications and stuff like at work though i mean Mar 09 03:32:31 its meant to be an emdedded db. thats all. Mar 09 03:32:34 transactional support, overall reliability, concurrency, language support Mar 09 03:32:38 oh absolutely I get it Mar 09 03:32:41 It's called SQLite :) Mar 09 03:32:43 I don't think it should be mariadb or oracle Mar 09 03:32:44 yeah i know Mar 09 03:32:49 sqlite is a replacement for fopen Mar 09 03:32:58 and compared to a lot of the alternatives out there it's great don't get me wrong Mar 09 03:33:59 honestly for just stored little ints with lists of little ints as their value i think im gonna use shared preferences Mar 09 03:34:07 sure Mar 09 03:34:19 sqlite really can do the same thing, you can make your own preferences table with key, value Mar 09 03:34:31 that approachw ould set you up better for the future, Mar 09 03:34:38 but if you don't need more than shared settings, it's way overkill Mar 09 03:34:45 so hopefully that helps you decide Mar 09 03:35:05 my shared preferences thing is stupidly simple, i mean it's Mar 09 03:35:13 SharedPreferences prefs = getSharedPreferences(GreenlightSettings.PREFS_NAME, 0); Mar 09 03:35:42 gets the preferences thing, then you have to create a SharedPreferences.Editor to create a "putString()" or whatever operation, then editor.commit() Mar 09 03:36:03 then to read it back it's like sharedPrefs.getString(KEYNAME, DEFAULT); Mar 09 03:36:08 it's butt ass simple and it just works Mar 09 03:36:34 I need something that can be queried on the ui thread, specifically in a list Mar 09 03:39:32 Do you suspect SharedPreferences is not threadsafe or something? Mar 09 03:39:45 not fast enough Mar 09 03:39:48 OH Mar 09 03:39:51 or scalable enough Mar 09 03:40:07 I really haven't explored concurrency issues in android yet, and I don't quite know what to expect. Mar 09 03:43:49 CanyonMan: it's a decent class, the first part isn't even in android (or wasn't last year) Mar 09 03:43:59 anybody? http://pastebin.com/wNFkDnV2 Mar 09 03:44:17 concurrency is easy to mess up Mar 09 03:44:40 the class teaches some useful abstractions android offers on top of basic java concurrency mechanisms Mar 09 03:45:02 yeah? hmm Mar 09 03:45:21 Do any of you use spring on android? Mar 09 03:45:37 i started to but decided to go with individual modules instead Mar 09 03:45:47 the cloud services for android class is all about spring Mar 09 03:46:32 i did get spring social demo working on android Mar 09 03:46:40 was it painful? Mar 09 03:46:42 for facebook Mar 09 03:47:07 once i figured out the facebook app hardwired into the demo was dead and replaced it with my own facebook app info it worked ok Mar 09 03:47:22 and that you can no longer get all friends of a user, just their friends that also use the app, but that's facebook specific Mar 09 03:47:26 there doesn't seem to be good guice support for android :( Mar 09 03:48:02 there's a project named RoboGuice but it looks iffy to me Mar 09 03:48:08 (and there was much rejoicing) Mar 09 03:48:28 JesusFreke: if it's working (whatever it is) you're supposed to shout EUREKA! Mar 09 03:48:34 http://stackoverflow.com/questions/7812885/does-it-make-sense-to-use-guice-for-android Mar 09 03:48:58 CanyonMan: no, I meant there was much rejoicing about not having good guice support for android :p Mar 09 03:49:09 use dagger, much better Mar 09 03:49:29 we used Guice for three years Mar 09 03:49:30 worked well Mar 09 03:49:36 I freakin love guice Mar 09 03:49:39 especially compared to spring Mar 09 03:49:40 LOVE Mar 09 03:49:51 but I used it a shit ton with jersey (jax-rs) Mar 09 03:50:11 and when jersey wen tover to using HK, you had to use an HK to Guice bridge Mar 09 03:50:18 and it became essentially UNWORKABLE Mar 09 03:50:25 that's the only reason I started using spring Mar 09 03:53:59 Are there any rules on displaying Google ads in app? Mar 09 03:55:00 pardelkat: https://support.google.com/admob/answer/2753860?hl=en Mar 09 03:55:26 You'll find plenty of info about what you can and can't do on the relevant site for your ad provider Mar 09 03:58:24 I don't see any rules about providing users with a reward for clicking on an ad, are there rules against that? Mar 09 03:59:12 I wouldn't try that pardelkat , a friend on mine clicked on my ads too often and I got banned from Google ads Mar 09 03:59:13 I'm not familiar with the rules :) Mar 09 04:09:20 CanyonMan: i went with a simple sqlite database, it was easy enough Mar 09 04:12:05 If you get the performance you need out of it, I think you'll be happy in the long run that you went this way Mar 09 04:19:24 hmm, what would a good table structure be if i just need to associate one integer with multiple integers Mar 09 04:20:02 a one to many mapping table, first column the integer you need to associate, second column one of the target integers, no unique key Mar 09 04:21:44 something like "CREATE TABLE posts ( parent INTEGER, children INTEGER)" Mar 09 04:22:04 yep Mar 09 04:22:07 danke Mar 09 04:22:10 np Mar 09 04:23:26 Afternoon gang! Mar 09 04:23:54 I would like a login screen on my app, is there an API for this? or do I need to roll my own? Mar 09 04:24:06 roll your own Mar 09 04:24:56 I noticed there is an example in Android studio however it depends on a higher API and requires stupid permissions like call log Mar 09 04:25:21 well there's a lot of concerns Mar 09 04:25:29 you might want 3rd party auth with oauth Mar 09 04:25:32 dont you call the call log permission stupid Mar 09 04:25:35 phix iosched 2014 has a google+ login , you can see how they did that Mar 09 04:25:36 it worked very hard to get where it is Mar 09 04:25:40 myke: Would I be better using JAAS or a similar auth API? Mar 09 04:25:48 you might want to let the user store login/pass on the app side, there's a user manager for that Mar 09 04:25:51 desmin88: hehe Mar 09 04:26:37 if it's your own app (and presumably there's a server) you can store an auth token instead of user/pass directly Mar 09 04:26:37 myke: I don't want to use oauth, then again, depending on the API I use on the server end, I could use oath Mar 09 04:26:41 oauth* Mar 09 04:26:55 It is my own app and server Mar 09 04:27:14 you can store user/pass directly and use http auth on your REST api, that's what i'm doing, but it's not very slick Mar 09 04:27:31 the server side is running django (with djangrestframework) and client side has retrofit as restful client Mar 09 04:28:06 myke: hmmm, I would need that to tie into django's auth system, apparantly DRF supports this, as well as a token and oauth Mar 09 04:30:14 myke: do you recommend I use JAAS? Mar 09 04:31:18 phix: no Mar 09 04:31:31 i've never heard of JAAS and it seems to have been around for over a decade Mar 09 04:31:37 as a small project, i'd like to automate a simple game (think tic-tac-toe) i've been playing. Is this feasible? Mar 09 04:31:40 doesn't sound like something that caught on Mar 09 04:31:48 buck1: yes Mar 09 04:32:02 myke: would i use uiautomator or something else? Mar 09 04:32:34 JAAS is a terrible awful thing Mar 09 04:32:41 you know it's funny Mar 09 04:32:51 I'm having ac onversation about single sign on for rest services right now on another channel Mar 09 04:32:59 CanyonMan: it's a hot topic Mar 09 04:33:03 yeah Mar 09 04:33:07 I've made soem decisions htough Mar 09 04:33:14 buck1: never heard of uiautomator Mar 09 04:33:18 I'm wokring on a microservices architecture with an authentication/authorization service bus Mar 09 04:33:26 and i decided to use this for the token format Mar 09 04:33:41 myke: could you help me figure out a very rough sketch of libraries? Mar 09 04:33:43 https://developer.atlassian.com/static/connect/docs/concepts/understanding-jwt.html Mar 09 04:33:50 buck1: probably not Mar 09 04:34:07 so my plan is that my auth microservice will connect to OpenIDC, SAML2, or LDAP based on your plugins Mar 09 04:34:18 or, prior art in open-source for this kind of thing Mar 09 04:34:18 bu it will issue tokens like a token vending machine in the form of these JWT tokens Mar 09 04:34:28 There seems to be good support for JWT in a few languages Mar 09 04:35:09 jwt looks interesting Mar 09 04:35:19 dspite the fact that the devil wrote it, the first half of this is interesting (until it becomes a commercial) if you're interested in this topic https://msdn.microsoft.com/en-us/library/bb417064.aspx Mar 09 04:35:27 i was referring to http://developer.android.com/tools/help/uiautomator/index.html Mar 09 04:35:54 anyway not to derail the conversation, I just saw that and wanted to chime in that federated login approaches that exist today suck bloody ass for rest services Mar 09 04:36:08 My chief complaint is that the popular ones all assume you're 1) human 2) using a browser Mar 09 04:36:24 so a lot of the embedded stuff I do, it just can't do that without a shit ton of heavy libraries and baggage, and it blows Mar 09 04:36:42 So I'm looking for a way to separate these things out, have a user get a token and have that token be meaningful and last a long time Mar 09 04:36:58 then in android land, if I discover that token became invalid, well THEN start a WebView, make the guy log in and obtain a new one Mar 09 04:39:29 i expect it to keep changing for a while Mar 09 04:39:53 myke: what made you say it was feasible? Mar 09 04:40:27 buck1: i thought you meant reimplent the game, not pull it off a ui running elsewhere Mar 09 04:40:44 yes reimplement the game would be much simpler Mar 09 04:41:08 i'd like to make a player for the existing app Mar 09 04:48:18 i am new to android development, i have finished the tutorial in the udacity and i want to check out how people organize their apps, is there any open source apps that i can check out ? Mar 09 04:48:42 shafox you can look at google iosched Mar 09 04:48:49 shafox, search github Mar 09 04:48:58 there are tons Mar 09 04:49:10 g00s: thanks. Mar 09 04:49:27 man, i wanted to install rhodecode on my ec2 instance butg now i'm having trouble finding how how the hell to get to the 20 or less free license without having to talk to a sales guy Mar 09 04:49:28 pfn: searching there, but little weak on keywords Mar 09 04:49:42 android... Mar 09 04:50:19 pfn, honestly you'd get libraries more than apps with that keyword Mar 09 04:50:55 anything that builds into an aar has a pretty similar code structure to an app Mar 09 04:51:11 working with views, resources, etc Mar 09 04:51:42 still tons of good stuff to learn from Mar 09 04:53:00 lol just got a reply on a github issue I created two years ago Mar 09 04:53:14 Reply was: "can you make a PR", lol nooooope Mar 09 04:53:47 Typical open source fan response Mar 09 04:54:48 You're not allowed to complaing (i.e. file bugs) about a project unless you're ready to fix it yourself Mar 09 04:55:26 CedricBeust, I've sent lots of PRs but if you haven't updated your project and haven't bothered to reply to an issue in 2 years. Honestly, I don't use your project anymore and it's clear that you don't care about it either Mar 09 04:57:07 Afzal: Which project? Mar 09 04:57:30 CedricBeust, why do you wanna know? Mar 09 04:58:22 Because I'm a bit surprised by the claim but willing to investigate Mar 09 04:58:54 Afzal: did you mean to address that complaint to CedricBeust personally, or were you being rhetorical? Mar 09 04:58:57 I updated and published new versions of JCommander and TestNG this past month alone so maybe it's another project you're referring to? Mar 09 04:59:12 CedricBeust, sure, https://github.com/eldarion/eldarion-ajax-demo/issues/3#issuecomment-77766252 Mar 09 04:59:29 Nope, not your project Mar 09 04:59:36 Yeah I have no idea what this project is Mar 09 04:59:41 Honestly, I don't even know how correct that PR is. Mar 09 04:59:48 I mean issue Mar 09 04:59:50 not PR Mar 09 05:00:56 Afzal: So maybe go a bit easier next time you want to attack someone on a channel with 400+ people? Mar 09 05:01:04 Huh? Dude Mar 09 05:01:11 Read your reply okay? Mar 09 05:01:20 * CedricBeust shrugs Mar 09 05:01:23 * Iskarlar has quit (Ping timeout: 245 seconds) Mar 09 05:01:23 lol just got a reply on a github issue I created two years ago Mar 09 05:01:24 * himcesjf_ (~cesjf@unaffiliated/him-cesjf) has joined #android-dev Mar 09 05:01:24 Reply was: "can you make a PR", lol nooooope Mar 09 05:01:24 Typical open source fan response Mar 09 05:01:25 You're not allowed to complaing (i.e. file bugs) about a project unless you're ready to fix it yourself Mar 09 05:01:28 CedricBeust, I've sent lots of PRs but if you haven't updated your project and haven't bothered to reply to an issue in 2 years. Honestly, I don't use your project anymore and it's clear that you don't care about it either Mar 09 05:01:32 Here I'll paste it for you Mar 09 05:01:41 Afzal: just stop Mar 09 05:01:47 Yeah I'll stop Mar 09 05:02:13 Some people are way too defensive even when nobody's talking about them Mar 09 05:02:26 I have no idea why you responded what you did after my cheeky observation on open source in general Mar 09 05:02:52 but if you're going to make me look like a jerk in front of 400 people, yeah I'll get a tad defensive Mar 09 05:03:07 Lol man, I didn't make you look like anything Mar 09 05:03:09 CedricBeust: he was talking in the abstract, talking to the owner of the project who isn't here - he didn't mean to address the comment to you directly Mar 09 05:03:18 the "you" I used was a general thing, not you you Mar 09 05:03:24 Ah alright, point taken Mar 09 05:03:43 plain-text English is hard :) Mar 09 05:03:47 hi all, I have a class that extends AsyncTask, I would like to pass a List argument to it apart of the url to call, Mar 09 05:03:54 Sorry for overreacting, I take this kind of complaint on projects I run seriously Mar 09 05:04:01 https://bpaste.net/show/30788870f5ae Mar 09 05:04:36 and the code to call it asyncPostAdapter.execute(optionList); Mar 09 05:04:47 zoraj, what's the problem? Mar 09 05:04:49 how would I do it Mar 09 05:05:00 Erm, what have you tried Mar 09 05:05:01 :) Mar 09 05:05:21 Afzal, I can't figure out ho to pass the List argument Mar 09 05:05:28 zoraj: Change your second type parameter to List. Right now you have two Strings Mar 09 05:05:59 s/second/first Mar 09 05:06:18 CedricBeust, the Void parameter ? Mar 09 05:06:18 Yup, and then just do arg0[0] in doInBackground to retrieve it Mar 09 05:06:28 No, he mean the first param Mar 09 05:06:35 Next be aware that there are a lot of issues with AsyncTask, especially with configuration changes and backing out of the task before it's complete Mar 09 05:06:46 Rx addresses a lot of these issues Mar 09 05:07:21 Is it okay to use Rx for all async stuff? Or is there any downside to that? Mar 09 05:07:38 well, for now I can't modify the code to use Rx, maybe later, I have to make it work first Mar 09 05:07:49 well, I mean besides the extent of manual control with ExecutorService Mar 09 05:07:55 zoraj: Fair enough, stick to AsyncTask Mar 09 05:08:01 public class AsyncPostAdapter extends AsyncTask Mar 09 05:08:10 to public class AsyncPostAdapter extends AsyncTask, String> ? Mar 09 05:08:26 No Mar 09 05:08:28 AsyncTask, Void, String> Mar 09 05:08:34 List, Void, String Mar 09 05:08:55 zoraj: http://developer.android.com/reference/android/os/AsyncTask.html (seciont "AsyncTask's generic types) Mar 09 05:09:00 section( Mar 09 05:09:03 section* Mar 09 05:09:06 thank you Mar 09 05:09:47 it requires me to add the @Override method protected String doInBackground(List... params) { Mar 09 05:10:05 but now how I can retrieve the url to be passed ? Mar 09 05:10:19 zoraj: Read the link I gave you Mar 09 05:10:29 I have to pass a List argument and a String the url Mar 09 05:10:34 ok ^^ let me read it Mar 09 05:10:39 I get eerily suspicious when my app just works the first time Mar 09 05:10:46 why do you need to send the URL? Mar 09 05:10:51 there has to be a bug somewhere. Mar 09 05:10:54 which part of the url is not static? Mar 09 05:11:06 desmin88: There is, you're just only testing the happy path :) Mar 09 05:11:35 Afzal, the goal of my class is call a url, by posting an Array of Integer Mar 09 05:13:01 if the URL is never changing, just make it static Mar 09 05:13:06 then you won't need to pass the URL Mar 09 05:13:14 it changes Mar 09 05:13:27 I need to call lot of WebService Mar 09 05:13:43 I have no idea what you're doing so I can't really say more Mar 09 05:13:44 but every WS, I have to pass some Array Argument Mar 09 05:13:55 Then create a holder that contains both the url and the list of integers? (still not sure I understand your problem well) Mar 09 05:15:01 let me explain it, I have a Webservice http://localhost/ws/post/option Mar 09 05:15:18 yeah pretty sure I can't click that :) Mar 09 05:15:45 yes I know, just to help you understand what I want to do, Mar 09 05:15:51 Go on Mar 09 05:16:16 for GET method, I just do this asyncAdapter.execute(url) Mar 09 05:16:43 asyncAdapter is an instance of public class AsyncWsAdapter extends AsyncTask Mar 09 05:16:55 but right now I need not to GET, but POST thing Mar 09 05:16:57 zoraj, just so you know, for all your network-related problems, there's Retrofit Mar 09 05:17:08 Yeah I was going to recommend retrofit too Mar 09 05:17:15 so was I Mar 09 05:17:20 JakeWharton: You don't say Mar 09 05:17:34 It changed the landscape of network requests on android lol Mar 09 05:18:04 I still managed to find a scenario where retrofit is now an option, though Mar 09 05:18:10 not an option* Mar 09 05:18:26 do elaborate, so i can fix! Mar 09 05:18:33 haha Mar 09 05:18:33 JakeWharton: I dare you Mar 09 05:18:39 JakeWharton: One word for you: web sockets Mar 09 05:18:43 ' Mar 09 05:18:50 web sockets are tricky indeed Mar 09 05:19:02 I still dare you Mar 09 05:19:07 I'm finishing off the WebSocket support in OkHttp right now Mar 09 05:19:14 JakeWharton: Music to my ears Mar 09 05:19:34 Retrofit sounds like really interesting, but for now I cannot modify my base code lack of time Mar 09 05:19:48 JakeWharton: Can you please finish finishing? It's been in the works for a while :p Mar 09 05:20:26 yes it has. did you see Facebook's Stetho? well I wrote one of those quite some time ago and my intolerance for other web socket libraries is why I never finished my Chrome DevTools thing and instead started writing my own web socket implementation Mar 09 05:20:34 I'm familiar with stetho yes Mar 09 05:21:07 I need to restructure my app, users switching list contents are getting info from old callbacks that never finished Mar 09 05:21:13 My code base is pretty schizophrenic because of that: clean, nice JSON REST code with retrofit and dirty protobuf websocket based with another library I shall not name (but which doesn work) Mar 09 05:21:14 w/ retrofit Mar 09 05:21:28 which does* work Mar 09 05:22:08 Can't believe it's 2015 and irc still won't let me edit my last sentence. I've been spoiled by slack. Mar 09 05:22:28 yeah i really don't know how I'd do web sockets with Retrofit. How do you know what message to use for deserializing a frame? Mar 09 05:22:50 what protobuf message, that is Mar 09 05:23:03 Haven't really given that much of a thought, I know the upgrade mechanism of web sockets is pretty gnarly Mar 09 05:23:29 (and super hacky too) Mar 09 05:23:57 i mean specifically how do you do it? or is every frame the same message type? Mar 09 05:24:21 No, multiple message types (not much point otherwise) Mar 09 05:24:28 is the message type early in the protobuf header? Mar 09 05:24:55 I'm attempting to grab data from XML elements on a server, and I'm able to do so for every field but one, and have it display Mar 09 05:24:56 ah, yeah i forgot you can write the type in the bytes itself Mar 09 05:25:25 we obviously never do that for request/response endpoints because they're always known Mar 09 05:25:31 However, there's one element (formatted as ) that I'm unable to get to display. Instead my app crashes Mar 09 05:26:20 I've gotten it to display with the data of a separate element (such as Bob Dylan) Mar 09 05:30:42 Any ideas? Mar 09 05:31:27 WheatThins: "My app crashes" is not useful, what is the error exactly? Mar 09 05:31:49 Hold on while I cause it to happen again Mar 09 05:37:19 CedricBeust, ZygoteInit$MethodAndArgsCaller.run() line:905 Mar 09 05:37:32 Also, ZygoteInit.main(String[]) line:694 Mar 09 05:38:08 Variables are this, and ex Mar 09 05:39:01 WheatThins: did you define your main method in your android manifest? Mar 09 05:39:41 android:name=".MainActivity" Mar 09 05:39:42 android:label="@string/title_activity_main" > Mar 09 05:39:42 Mar 09 05:39:46 Yes Mar 09 05:40:17 The application does its job entirely, except for one element it isn't able to pull from Mar 09 05:40:23 Which, if I enable, causes this crash Mar 09 05:40:45 it looks like there's no way to send events from my app to another without root. correct? Mar 09 05:40:58 touch / key events Mar 09 05:40:58 buck1: intents? Mar 09 05:40:59 All the ones that work are being requested from the same .java file as the one that doesn't work Mar 09 05:41:20 myke, forgot to highlight Mar 09 05:42:19 desmin88: touch / key events Mar 09 05:44:07 buck1: service/servicebinding? Mar 09 05:44:16 or broadcast events Mar 09 05:44:25 content provider - content resolver Mar 09 05:44:38 CedricBeust, http://i.imgur.com/chY65GG.png I'm doing this for now as a test to see if it reads the values. Everything is read, but those returns/blank areas should read as Attribute: (Yes/No here) Mar 09 05:44:49 The data is being pulled from http://www.papademas.net/cd_catalog3.xml Mar 09 05:44:51 desmin88: the recieving app would need to listen for keypress broadcasts yes? Mar 09 05:45:09 touch* Mar 09 05:45:21 you should use service and service bindin Mar 09 05:45:31 that way you can directly cal methods in the other application Mar 09 05:45:51 desmin88: the other application is not mine. will that still work? Mar 09 05:45:58 sounds like they'd need to provide the api Mar 09 05:46:00 the fuck Mar 09 05:46:14 what is the other app Mar 09 05:46:27 desmin88: he's trying to make a bot to play someone else's game Mar 09 05:46:35 .. Mar 09 05:46:37 * desmin88 done Mar 09 05:47:24 WheatThins: that's a weird error to get after app launch, maybe you found a way to break whatever xml parser you're using Mar 09 05:47:49 .. i'll take that to mean it's impossible without root Mar 09 05:48:13 myke, presently I'm getting information via Mar 09 05:48:14 if(localName.equalsIgnoreCase("title")) Mar 09 05:48:14 data.setTitle(elementValue); Mar 09 05:48:31 s/title/artist for artist, etc Mar 09 05:48:46 I can get that blank space to display Attribute = (title here) or any other element Mar 09 05:49:06 But it crashes if I do (localName.equalsIgnoreCase("CD")) and data.setCD(elementValue) Mar 09 05:49:28 setCD and getCD in a separate file are modeled just like the title/artist fields as well Mar 09 05:49:38 WheatThins: compare to "cd" for starters. Next, what is the crash exactly? Mar 09 05:50:14 "cd" instead of "CD", even though there's equalsIgnoreCase on there? Mar 09 05:50:32 I never remember if it's necessary, probably not. Either way, not the cause for the crash Mar 09 05:50:45 RxJava has any cool method to merge 10 streams at once? Mar 09 05:50:48 The crash is that zygote thing I pasted above. The application itself just closes Mar 09 05:51:08 You linked to nonexistent lines in ZygoteInit.java, not sure what that means Mar 09 05:51:28 Stack trace Mar 09 05:51:29 ? Mar 09 05:51:49 I'm still rather new to android dev, is the stack trace the LogCat? Mar 09 05:52:08 What is the crash? Mar 09 05:52:16 stack trace is universal to java, but yes Mar 09 05:52:43 no, stack trace is not logcat Mar 09 05:53:26 I have console, tasks, problems, executables, LogCat, Variables, Breakpoints, and Debug Mar 09 05:53:46 CedricBeust, what do you mean what is the crash? Mar 09 05:53:52 The error given? What happens in the emulator? Mar 09 05:54:01 WheatThins: Whatever makes you think your app crashed, pastebin it Mar 09 05:54:21 Leeds: for his purposes yes, making the association that logcat is where you get your stack traces Mar 09 05:54:38 stack traces usually dump out in logcat Mar 09 05:55:16 right, but logcat is a lot more than stack traces Mar 09 05:55:23 its spam ! Mar 09 05:55:36 spam, spam, and more spam Mar 09 05:56:03 and eggs Mar 09 05:56:06 i've gotten a lot of insight into android just reading unfiltered logcat Mar 09 05:56:26 when i read my unfiltered logcat, its amazing the phone runs at all Mar 09 05:56:28 Good for you, unfiltered logcat mostly gives me headaches Mar 09 05:56:36 its like everything is constantly crashing and blowing up Mar 09 05:56:42 was_supplicant * 40 per second Mar 09 05:56:46 yep, it confirmed that for me, which i'd suspected before Mar 09 05:57:11 CedricBeust, http://pastebin.com/gFh1eXqp http://pastebin.com/8ciRNx21 http://pastebin.com/4hJaQRte here are my three classes Mar 09 05:57:24 There's also a login.java, but that's working just fine so I didn't link it. Mar 09 05:57:31 Leeds working on anything new / exciting ? Mar 09 05:57:35 WheatThins: I don't care, how hard is it to show the crash info?!? Mar 09 05:57:39 * CedricBeust shrugs Mar 09 05:57:45 CedricBeust, you told me to pastebin Mar 09 05:57:56 pastebin the crash, the stack trace, the error message, anything Mar 09 05:57:58 WheatThins: he wants you to pastebin the stack trace you get in logcat Mar 09 05:58:04 Whatever makes you think your app crashed Mar 09 05:58:21 Trying to figure out how to copy the logcat info in eclipse Mar 09 05:58:23 Then we can look at your sources and diagnose Mar 09 05:58:26 ah there's a save button Mar 09 05:58:30 g00s: not that exciting, but waiting for a spec/funding for a prototype for a security/event-management tracking sort of thing Mar 09 05:58:35 Select + copy/paste, no need to save Mar 09 05:58:50 ironically it's all the crashing that sold me on java...that jvm layer lets you run a lot of crappy code that would be unworkable native Mar 09 05:59:23 http://pastebin.com/0GZ1xtRn Mar 09 05:59:34 CedricBeust, ^ Mar 09 05:59:44 myke, thanks Mar 09 05:59:51 lol Mar 09 06:00:15 WheatThins: Look at lin 4968 of that log Mar 09 06:00:30 man Mar 09 06:00:41 my app i just developed should be in /data/app/something right? Mar 09 06:01:25 03-08 23:08:06.022: E/AndroidRuntime(2085): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.parser/com.example.parser.MainActivity}: java.lang.ArrayIndexOutOfBoundsException: length=0; index=0 Mar 09 06:02:04 pastebin lines 197-214 has your problem Mar 09 06:02:39 ^^ Mar 09 06:02:46 thats a big logcat :| Mar 09 06:02:49 CedricBeust, I think it's between line 79 and 89 of MainActivity Mar 09 06:03:06 WheatThins: you know you can filter for messages just from your app right? Mar 09 06:03:13 WheatThins: Close enough, line 93 Mar 09 06:03:28 WheatThins: Do you see the stack trace in the log now? Mar 09 06:03:47 You need to learn to identify those and interpret them. Pretty trivial most of the time. Mar 09 06:03:54 Line 93 of mainactivity.java is whitespace Mar 09 06:03:57 What do you mean? Mar 09 06:04:23 Well then you modified the source since that stack trace. Or it's an older stack trace. Either way, this should be information enough to find the bug Mar 09 06:04:36 Does your MainActivity ever call get() on a List? There's your bug Mar 09 06:05:15 myke, how do I filter it for just the app Mar 09 06:05:37 WheatThins: Your IDE logcat view allows that (eclipse or Android Studio) Mar 09 06:05:38 I restarted eclipse + the emulator and went right to debugging, so this crash should be with the most up to date source Mar 09 06:06:22 ah I get it, CedricBeust I found it Mar 09 06:06:22 http://pastebin.com/W3XFbBqw Mar 09 06:06:32 63 begins crash Mar 09 06:07:10 WheatThins: You got it. Mar 09 06:07:25 WheatThins: In the future, avoid pasting entire logcats like this, you might be leaking private information to strangers Mar 09 06:07:25 But where does that point to in mainactivity? I'm having trouble reading this Mar 09 06:07:44 whaley: Ok, see all the packages of the stack trace? Find the first one that belongs to your package Mar 09 06:07:45 Thank you for the advice. I did set the pastebin expiration short in case of that Mar 09 06:08:02 android.app: not yours, android.os: not yours Mar 09 06:08:07 com.example.parser: sounds like yours Mar 09 06:08:18 03-09 01:04:33.198: E/AndroidRuntime(1121): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2298) Mar 09 06:08:56 03-09 01:04:33.102: I/err on handler(1121): println needs a message is happening where attribute should be printed Mar 09 06:09:20 Which indicates to me that the arraylist isn't being populated for attribute Mar 09 06:11:02 CedricBeust, how do I tell from the logcat where to look in MainActivity? Mar 09 06:11:13 WheatThins: The line number is right there Mar 09 06:11:37 2298? Mar 09 06:11:52 For the line above, yes, but that's not your class so ignore it Mar 09 06:12:03 MainActivity:89 is yours Mar 09 06:12:32 Ah my bad it was several lines further down the logcat from where I was looking Mar 09 06:16:11 CedricBeust, so seemingly it's not syntax or logic from what I can tell in mainactivity. If I modify getAttribute in XMLGettersSetters (which it calls in MainActivity on line 89) to grab any element other than attribute, I get no such error Mar 09 06:19:04 why does android studio xml autocomplete like to sometimes stop working Mar 09 06:19:23 does this happen to anyone else? Mar 09 06:21:18 hello im trying to get internet working on my android emulator Mar 09 06:21:42 networking doesnt work at all, its not just application specific Mar 09 06:21:43 desmin88 yeah it doesn't work on support lib stuff very well, or custom things defined in my own project Mar 09 06:22:08 i added dns server flag in my ./emulator invocation Mar 09 06:22:17 but no dice. Mar 09 06:24:02 i haven't tried starting an emu in about a year Mar 09 06:24:08 that thing sis worthless crap Mar 09 06:25:21 it does have a lot of issues Mar 09 06:25:29 do you just test on actual hardware? Mar 09 06:25:44 yes Mar 09 06:26:00 the following code works all well but when I execute it from onResume() the text is lightgray instead of black https://paste.xinu.at/0dWQTg/ Mar 09 06:26:08 is that expected? Mar 09 06:30:10 does anybody else get this annoying java segfault whenever they close android virtual device manager Mar 09 06:30:24 doesnt affect anything it seems, just annoying Mar 09 06:32:17 CedricBeust, sorry to keep bugging you, but I'm still unable to figure this out Mar 09 06:32:55 Wow, > versus >= cost me an hour. Mar 09 06:33:12 That's the worst Mar 09 06:33:24 anyone? Mar 09 06:35:00 hey thepoosh ! Mar 09 06:38:38 WheatThins: Like I said, look for a call to List#get Mar 09 06:41:32 Ooh, I got marginally further this time Mar 09 06:41:41 It actually gives a toast reading "Redirecting..." before crashing Mar 09 06:43:29 wee Mar 09 06:43:44 I wonder if the ads on sshdroid go away if i pay the 3 dollars Mar 09 06:43:58 Their play store description does not make that clear Mar 09 06:44:03 or use adaway Mar 09 06:44:05 * Ashiren hides Mar 09 06:44:15 so according to one forum i read, Mar 09 06:44:20 if you do that, it refuses to run Mar 09 06:44:25 it can detect somehow Mar 09 06:45:07 maybe it downloads some data from ads Mar 09 06:45:21 woulnd't that be horrible? Mar 09 06:45:34 that's a horrible evil thought Mar 09 06:46:31 maybe i should just try something else, there are tons of other options besides sshdroid Mar 09 06:46:51 CanyonMan, I'm pretty sure you can pay the 3 and just refund the purchase if not Mar 09 06:48:15 CedricBeust, I am, but I'm unable to find out why attribute still won't populate with information. The ArrayList itself will populate with information, just not the information I need Mar 09 06:48:36 WheatThins: Now would be the time to pastebin that method Mar 09 06:49:12 actually probably the whole class Mar 09 06:49:21 but seriously, you should be able to find the bug now Mar 09 06:49:26 You're in trouble if you can't Mar 09 06:49:31 I'm tearing my hair out over this Mar 09 06:49:34 I'm not sure what I'm missing Mar 09 06:52:57 CedricBeust, I'm trying to populate attribute at line 77-84 of XMLGettersSetters: http://pastebin.com/UnSLZvWH Which is being called from MainActivity on line 89 and displayed on line 116: http://pastebin.com/EqGdBZVz and also line 68 of XMLHandler: http://pastebin.com/VAQerbgA Mar 09 06:53:57 The logcat gives: 03-09 01:47:09.906: I/Sold out?:(1451): 1997 Mar 09 06:53:57 03-09 01:47:10.153: I/Choreographer(1451): Skipped 64 frames! The application may be doing too much work on its main thread. Mar 09 06:53:59 WheatThins: Pretty obvious from this code Mar 09 06:54:05 good morning ladies Mar 09 06:54:22 WheatThins: i is going from 0 to the size of getTitle() but you use it to to access other arrays Mar 09 06:55:17 good morning lemonxah :) Mar 09 06:56:11 Google said that Lollipop was the biggest improvement of Android OS since the beginning of mankind, and they were right. Mar 09 06:56:11 CedricBeust, ok but why is it only complaining about CD/attribute and not title, artist, country, company etc Mar 09 06:56:12 lol Mar 09 06:56:53 And even further, why is it not crashing if I make it display title/artist/etc in the attribute field Mar 09 06:57:31 Even using the size of getTitle, the above situation works just fine Mar 09 06:57:42 alrighty then Mar 09 06:57:55 randomly going down the 30 item list of possible emulator devices solved my problem Mar 09 06:57:59 are you siberian or american ginseng ? Mar 09 06:59:07 no ruski here Mar 09 06:59:16 why? Mar 09 06:59:49 CedricBeust, If I tell it not to grab information and just print: http://i.imgur.com/chY65GG.png If I tell it to grab the wrong information intentionally and print: http://i.imgur.com/mrQDPYD.png Mar 09 06:59:57 Whereas if I tell it to grab the correct information, it fails Mar 09 06:59:59 ginseng just joking, nm ;) Mar 09 07:00:15 via changing line 78's return value, and nothing else Mar 09 07:00:20 of XMLGetterSetter Mar 09 07:01:51 Rather than messing with adapter positions and view types when my endless scroll reaches it page limit, I just hide the progress bar Mar 09 07:01:53 am i a bad person? Mar 09 07:06:37 Anyone good with retrofit? I'm having issues where my async callbacks are dumping data in my listview when i dont want them to. Mar 09 07:06:56 desmin88: Shoot Mar 09 07:07:40 Basically my callbacks just add data to my adapter set. You can switch between 2 'sets' of data pulled from retrofit/rest api. Mar 09 07:07:55 If a callback for set 1 is fired off, but doesnt complete and the user switches to set 2, they can see set 1 data in set 2 Mar 09 07:10:12 CedricBeust, I realized that I had an error in XMLGettersSetters with this.CD etc. I have the app not crashing now, though the ArrayList still does not populate and reads null. I view this as progress, but I'm still tearing my hair out Mar 09 07:10:21 basically need a way to stop all current pending/requests once i switch sets of data Mar 09 07:10:56 desmin88: Stopping in flight is generally not feasible, just make sure you only add to your adapter once you have the whole data Mar 09 07:12:02 You can also version: once you start adding to your adapter, keep track of a version number that corresponds to the network call Mar 09 07:12:11 only add to the adapter while that number doesn't change Mar 09 07:13:04 is there any way to convert a String with value "1,2,5,6" for e.g to an ArrayList of Integer ? without looping through the String Mar 09 07:13:47 zoraj: trivial with rx. Without, a loop is probably the easiest: split(",") then convert each individual value Mar 09 07:14:49 CedricBeust, ok thanks Mar 09 07:15:44 g00s: ! Mar 09 07:16:08 :) Mar 09 07:16:26 thepoosh do you know anything about kanban ? Mar 09 07:16:28 anyone tried to use Bolt w/ OkHTTP? any example code? Mar 09 07:16:36 just noticed a new kanban book from MS press is out' Mar 09 07:16:37 g00s: we have kanban Mar 09 07:16:40 i don't like it Mar 09 07:16:56 i prefer JIRA Mar 09 07:17:02 without all the crap Mar 09 07:17:45 i'll probably pass on the book for now anyhow, not like i can apply it myself :) Mar 09 07:18:04 although, i did see another boo kon personal kanban. seems more like a philosophy Mar 09 07:18:32 thepoosh so how are things now, settled down a bit ? Mar 09 07:18:56 yes, planning on releasing a version in a month that is supposed to get us featured Mar 09 07:19:47 nice Mar 09 07:21:04 yes Mar 09 07:21:09 i hope it will work Mar 09 07:21:19 we have some guys working on this for a few months now Mar 09 07:21:27 I went in and out a few times Mar 09 07:21:36 changing to material design and some other things Mar 09 07:22:15 CedricBeust, There's no longer an error in logcat/stack trace for me to look into as it no longer crashes. However, the exception message on line 41 of XMLHandler is printing Mar 09 07:23:00 thepoosh use any libs for material stuff ? Mar 09 07:23:26 we used on for dialogs and all the rest with appcompat Mar 09 07:23:30 *one Mar 09 07:23:53 anyone here good with java lists? Mar 09 07:24:47 t0astt: ask Mar 09 07:28:07 Ok. So bear in mind it's 2:30am ish here and my brain is half dead. So I have a typed List that holds "Reservation" objects. Each Reservation has a pickupTime variable (Date type). I would like to parse that list and pull out all of those reservation objects with equal pickupTime values and put them into a Reservation array. Then, each Reservation array will go into a list that holds them Mar 09 07:28:15 Ok, I explained that really poorly Mar 09 07:28:29 CedricBeust, I attempted to hardcode it to data.setAttribute("1"); for CD, and interestingly enough, this resulted in the first attribute reading null, second reading 1, and third reading null again. Mar 09 07:28:58 This might make more sense (what I'm trying to do): I want to create a RecyclerView list that hierarchically sorts these Reservation objects by their pickupTime but groups Reservations with like pickupTimes together Mar 09 07:29:48 t0astt: comparator? Mar 09 07:30:02 Uhh, maybe? i've never heard of taht before ginseng Mar 09 07:30:04 compare by picupTime value Mar 09 07:30:15 Multimap maybe? Mar 09 07:31:06 you can build the comparator Mar 09 07:31:18 Uh, which of those can group them the best and still allow me to pull the original reservation objects out the best? Mar 09 07:31:18 and then run a sort that takes the comparator as a parameter Mar 09 07:32:04 this is the data that I'm looking to group... notice the pickup_time values http://pastebin.com/f79DmU6N Mar 09 07:32:29 well since the date variable is a member of the reservation object already they are already associated Mar 09 07:32:59 so the reservation objects will sort when you sort by the date Mar 09 07:33:03 Hello Mar 09 07:33:12 and stay associated/mapped Mar 09 07:33:15 How can I compile libsuperuser from command line? Mar 09 07:33:23 ginseng: alright. and can the comparator group them for me as well? Mar 09 07:33:24 Any ideas? Mar 09 07:33:43 so I would only see distinct pickup_time's? Mar 09 07:34:01 if you specify the comparator to sort by pickup time Mar 09 07:34:26 Thanks ginseng, I'll give it a lookover Mar 09 07:34:27 then the reservation objects with equal pickuptimes will go together Mar 09 07:34:38 np Mar 09 07:37:09 wait ginseng, the comparator itself won't do the grouping, though, right? I still have to create my own list or something to hold them? Mar 09 07:39:09 thepoosh what is the most material element you added to the app ? Mar 09 07:39:25 we have a FAB that behaves like the inbox fab Mar 09 07:39:44 make it yourself ? Mar 09 07:39:56 animating to a selecetion of buttons with a call to action Mar 09 07:39:58 yes Mar 09 07:40:01 not very hard Mar 09 07:40:33 since i'm the only one working on my app i pretty much stick to stock stuff / whats given in appcompat Mar 09 07:40:42 CedricBeust, I found the line responsible for the odd allocation of mixed nulls and data. I still can't get the right data in there, but I can get hardcoded or incorrect data in properly. Mar 09 07:42:49 CedricBeust: got a solution, making a custom callback and tagging it with a guid set per rotation of the device + the data set identifier Mar 09 07:43:21 CedricBeust: got a solution, making a custom callback and tagging it with a guid set per rotation of the device + the data set identifier Mar 09 07:43:46 CedricBeust: then run each callback adapter data set adding through a method that checks the current guid + set id versus the callbacks type Mar 09 07:45:19 It's feeding me year and I'm not even asking it to Mar 09 07:46:09 i dont really have a taste for year either Mar 09 07:46:12 im feeling month Mar 09 07:48:10 Argh, figured it was feeding year because it was located directly after year. I put it above title and it still feeds year. Mar 09 07:55:45 gingseng !!! DUDE I GOT IT!!! Mar 09 08:01:29 hi,good morning all. I'm using UIL to download urls,however UIL gives me different bytearray,so I cant check hash data if equal Mar 09 08:01:38 can anybody tell me what i can do ? Mar 09 08:01:51 universal image loader Mar 09 08:01:52 eugh Mar 09 08:06:47 * desmin88 waits for retrofit2.0 so his ugly hack of callback cancelling doesnt need to be a thing Mar 09 08:09:51 t0astt: gj! Mar 09 08:12:04 hey how do i add text to an existing notification? Mar 09 08:12:36 i'm using the same id but it just replaces the text Mar 09 08:14:25 get the old text then set it to be old text + new text Mar 09 08:14:44 that's the problem how do i get the old text? Mar 09 08:16:40 i need to store it somewhere? Mar 09 08:37:13 joroci, Mar 09 08:37:26 did you find a way to do it yet? Mar 09 08:38:26 dont know if you were looking here http://developer.android.com/guide/topics/ui/notifiers/notifications.html#Updating Mar 09 08:50:02 hey guys my emulator is blazing fast when i use the intel atom cpu but is super slow for anything with ARM Mar 09 08:50:16 yes Mar 09 08:50:19 because x86 can be virtualized, arm must be emulated Mar 09 08:50:21 i have an intel processor on my host machine so i assume that is why intel is fast Mar 09 08:50:26 wrong Mar 09 08:50:39 ok Mar 09 08:50:50 what is diff between virtuazlied and emulated/ Mar 09 08:50:52 ? Mar 09 08:51:23 (googling it now) Mar 09 08:51:31 is there any way to make the ARM emulation go faster? Mar 09 08:51:44 why are you using arm emulation at all Mar 09 08:52:12 idk it is available as a package in the sdk Mar 09 08:52:17 dont use it Mar 09 08:52:21 i assume some android devices have ARM and others have intel? Mar 09 08:53:12 yea Mar 09 08:53:24 virtulized is real instructions mapped emulation id read as an implementation of said architecture Mar 09 08:53:27 yes but if you don't use native libraries both work with the same code Mar 09 08:55:56 ok i got nexus 10 to work on ARM Mar 09 08:55:57 not too slow Mar 09 08:56:42 you shouldn't really be using an emulator at all Mar 09 08:56:44 let alone arm Mar 09 08:57:46 well if i want to test an app on say, Android TV, i have to use android tv arm Mar 09 08:57:49 according to the AVD Mar 09 08:58:25 technicality.. Mar 09 08:58:40 no there is an x86 android tv system image Mar 09 08:59:31 oh Mar 09 08:59:46 dl'ing from sdk manager now Mar 09 08:59:51 given that the Nexus Player - which is still the only actual shipping Android TV device AFAIK - has an Atom chip in it... Mar 09 09:00:18 if your app doesn't depend on the architecture use the emulator that's fastest on your machine Mar 09 09:00:38 so x86 Mar 09 09:01:57 Morning friends.... Mar 09 09:03:36 kindly help, i've been facing with serious challenge for the past couple of days.. i've been trying to add denpencies in android studio but keep saying failed to find dependency Mar 09 09:03:54 actually, i imported the project from eclipse Mar 09 09:13:05 Hello... Mar 09 09:20:41 Morning folks Mar 09 09:21:24 hackable: pastebin your gradle files Mar 09 09:28:31 mmm anyone knows why emulator is black with -gpu on but it boots up in android studio and even can deploy app Mar 09 09:28:54 or prehaps the api version Mar 09 09:29:22 some sort of graphics driver problem would be my guess Mar 09 09:29:29 I can never get that stuff to work for me Mar 09 09:30:53 well am targeting an api 10 i but it thin gpu on might require 15 Mar 09 09:47:38 I uploaded a APK to Alpha but I dont get a playstore testing link. Any help? Mar 09 10:15:29 Hello. I am getting a JRE error trying to start android studio: https://gist.github.com/vedant1811/ca662d6ff148b905b545 Mar 09 10:15:58 How can investigate this? Anyone else had a similar problem? Mar 09 10:23:51 Hello, i wanna start with APp Development.. My Question on the experts are, should i strat developing with pure Java or should i start with Phonegap, etc... Mar 09 10:24:08 With php/html/jquery i don't have any experiences... Mar 09 10:31:29 Kalio_, java Mar 09 10:32:04 Okay, can you say me why? Mar 09 10:32:36 its the native android language Mar 09 10:32:50 and youll find the most guides, tutorials etc for it Mar 09 10:34:07 Okay, nice... But when i have an app and i want to expand it.. To Ios, Windowsphone, etc... Mar 09 10:34:17 Is there a solution for? Mar 09 10:34:25 yes Mar 09 10:34:34 which? :) Mar 09 10:34:35 rewriting it in the proper language :p Mar 09 10:34:47 hehe, i thought it ... Mar 09 10:34:53 BUt okay... Mar 09 10:35:14 And a last question... Java and a Database... MySql or another database? Mar 09 10:35:36 you dont really have another option on android Mar 09 10:35:41 then sqlite Mar 09 10:36:11 oh okay Mar 09 10:36:34 you cant just install lets say.. mongodb on an android phone Mar 09 10:36:49 you can use sqlite, or do your on storage with files Mar 09 10:37:01 and there is a key->value preference storage Mar 09 10:37:07 but that it Mar 09 10:37:24 okay but when i wanna create an application which read and write to a global database Mar 09 10:37:34 whats the propper way? Mar 09 10:37:38 oh. well. then you can use whatever you want Mar 09 10:37:47 you can run your server with any database Mar 09 10:38:05 okay and for android it does not matters? Mar 09 10:38:07 and use a REST api to connect to your app for example Mar 09 10:38:22 you usually dont connect the app to the database directly Mar 09 10:38:34 you use a webservice where you do POST and GET requests Mar 09 10:38:56 AH okay... So i also need a php side which fill up the database Mar 09 10:39:25 yeah. Mar 09 10:39:36 every other solution is pretty unsecure Mar 09 10:39:39 ah okay... Mar 09 10:39:52 if you connect the app directly to the database, you have to store the db credentials in the app Mar 09 10:40:07 someone could reverse engineer the password and fuck up your server Mar 09 10:40:47 so for example.. The app has two fields.. name and age... SO the App send a POst Request to a .php side and the side fill teh server with the post statements Mar 09 10:41:10 exactly Mar 09 10:41:16 okay nice... Mar 09 10:41:36 DO you may have a tutorial of it? :) Mar 09 10:41:38 and if you search for a user in the app. it might go to http://your.domain/user/username Mar 09 10:41:53 and your server presents a document with the user information Mar 09 10:42:19 a tutorial for what? you asked about generic stuff Mar 09 10:42:39 yea i know :) I dont realls know the php stuff Mar 09 10:42:49 i thing it is really easy but the security thing... Mar 09 10:43:12 when i create a post method http://domain.com/?username="hans" Mar 09 10:43:31 and somone create a maual request on this url Mar 09 10:43:40 well.. this is a totally different topic then android. Its web stuff. And there are a lot of ways to secure this Mar 09 10:43:45 the database will flood with this request Mar 09 10:43:51 Okay :) Mar 09 10:43:55 you could use client-side certificates Mar 09 10:43:58 oauth Mar 09 10:44:08 give each user an account with password Mar 09 10:44:20 do encryption Mar 09 10:46:32 Okay but my app should be something like a Accidentsender... Everybody can load the app and send an accident with informations.. THis shoudl be saved to an database.. And an third party aplication will open this informations... Mar 09 10:46:51 I hope you understand this :) Mar 09 10:47:39 SO the app send all infos with a post request to an php script on my server and save this informations on the db Mar 09 10:47:41 you could for example have an ssl certificate saved in your app. to make a server request, the server checks that this certificate is valid Mar 09 10:47:52 ah okay Mar 09 10:47:56 then you can secure this certificate with an obfuscated password in your app Mar 09 10:47:57 this sounds good Mar 09 10:48:06 that would give you some kind of security Mar 09 10:48:22 not 100% secure but people cant just send requests then Mar 09 10:48:43 they would have to invest a lot of time to reverse engineer the certificate password, the certificate etc Mar 09 10:48:44 okay, so they can only send requests when the cert is valid Mar 09 10:49:17 the problem with android is you are never 100% secure Mar 09 10:49:19 and when they crack the cert and the password , they are only able to flood requests to the db... Mar 09 10:49:28 because java code can be reverse engineered Mar 09 10:49:31 but the db password is even secure on my server Mar 09 10:49:36 but you can make it really really hard for attackers :) Mar 09 10:50:23 lets say someone reverses your app (which is really hard if you use proguard and stuff like that) Mar 09 10:50:25 okay, really nice :) Mar 09 10:50:27 and gets the cert Mar 09 10:50:44 with the php frontend they still can only use the methods you provide with it Mar 09 10:50:54 they cant do stuff like dropping tables or adding rows ;) Mar 09 10:51:03 thats why you dont let them connect to the db directly Mar 09 10:51:12 okay, i understand Mar 09 10:51:23 very nice :) Mar 09 10:51:51 thank you so much Mar 09 10:51:59 I think i will try this :) Mar 09 10:52:03 also its much easier to change a frontend programm than the database Mar 09 10:52:14 lets say you ship a new version with a new row in the db Mar 09 10:52:26 you would have to update the app Mar 09 10:52:47 and all old apps would not work anymore because they dont know there is another column they have to fill Mar 09 10:53:00 with a php frontend you could just do an if() on the app version Mar 09 10:53:01 ah okay ... thats very shitty :) Mar 09 10:53:04 and fill a default value Mar 09 10:53:53 very good... okay i see java is much better than this phonegap thing... And with your tipps i can try to start coding :) Mar 09 10:54:14 good luck :) Mar 09 10:54:28 just ask here if you have any more questions Mar 09 10:54:42 okay i will :) Thanks so much Mar 09 12:09:35 how do i create a certain size array with information delivered by intent? http://pastebin.com/3dZni4d7 Mar 09 12:09:46 I want to decouple some code into some class in my fragment. However, that class need to update fragment's ListView. How can I decouple it? Mar 09 12:14:48 hmmp: What's not working? Mar 09 12:16:04 Kamol: It's really hard to understand your question. For example, what does "class in [...] fragment" mean? Mar 09 12:16:30 (Among other questions.) Mar 09 12:17:58 TacticalJoke: the app freezes and gets closed Mar 09 12:18:31 but is the problem elsewhere Mar 09 12:18:40 If it crashes, look at LogCat for the exception stack trace. Mar 09 12:18:57 TacticalJoke: thank you for your response. I have some chunk of code which I want to separate into other class. So, I could use that class instance in my fragment. However, I don't know how that instance can update fragment ListView. Mar 09 12:20:16 What is this new class called and what does it do? Mar 09 12:26:54 TacticalJoke: let's call it Someclass. this Someclass will do some async call to network and need to update ListView of the fragment. Mar 09 12:27:56 I can make this Someclass with constructor (ListView listview), but I am not sure it is a good practise Mar 09 12:28:20 Why not just have this "downloader" class give data to the fragment, allowing the fragment to update the ListView? Mar 09 12:28:41 void onFooDownloaded(String foo) { updateListView(foo); } Mar 09 12:29:23 sorry to interject but all you need to do is use a custom adapter for the listview Kamol Mar 09 12:29:26 Kamol, using a messagebus like EventBus makes that significantly easier. Mar 09 12:29:28 and on your adapter do the call Mar 09 12:29:57 Kamol, the class loading the data just sends a message with new data and components subscribed to that message get all the data as it updates Mar 09 12:29:59 and then just call notifyDataSetChanged() of the adapter Mar 09 12:30:07 that will redraw the listview with the new information Mar 09 12:30:09 lemonxah: Hello hahaha Mar 09 12:30:25 lemonxah: you are right Mar 09 12:30:55 sometimes I just forget so essential things :( Mar 09 12:31:01 its ok Mar 09 12:31:09 soz i wasn't reading before Mar 09 12:31:11 hope i helped Mar 09 12:31:25 lemonxah: thank you! :) Mar 09 12:31:48 Mavrik: and TacticalJoke: thank you guys for your help too Mar 09 12:36:45 Adapter part is clear, but how can I call ListView.setSelection() ? Mar 09 12:38:07 i didn't see that part what selection do you want to set Mar 09 12:41:50 lemonxah: after notifyDataSetChanged() The Someclass need to execute ListView.setSelection() in Fragments. Mar 09 12:42:27 so there is message busses or listeners Mar 09 12:42:34 Hello. I have my app call RESTful API via an AsyncTask, to which I feed URLs, formed from parameter HashMap each time I want a new request. I want to make a centralized class for data provider, which would have methods that call API and also would handle caching. What is the bast way to implement it in one place? Mar 09 12:43:01 you can make an interface and set the listener inside the adapter Mar 09 12:43:42 then make in instance of the interface with the code it needs to run inside the fragment and setting that on the adapter Mar 09 12:43:57 and then when the adapter method returns just call the method on the listener Mar 09 12:44:17 lemonxah: ok, so message bus or listener Mar 09 12:44:41 lemonxah: thank you again! :) Mar 09 12:45:50 no worries Mar 09 12:46:17 Do top app developers use frameworks and APIs or make the app from scratch? Mar 09 12:46:32 creitve, have you seen retrofit? Mar 09 12:46:47 pardelkat, it depends on what they want to achieve Mar 09 12:47:04 google has written tons of libraries Mar 09 12:47:07 if something has allready been done why re-invent the wheel if it is round and soft enough Mar 09 12:47:30 but sometimes the existing wheel is made of wood and stone and its not very round and its very hard Mar 09 12:47:44 in those cases you might want to make your own kind of wheel Mar 09 12:48:25 So should I use them as much as possible? Mar 09 12:49:25 Because that's sort of implying the message "only do stuff yourself if you have to" Mar 09 12:49:33 It depends on so many factors, pardelkat. Mar 09 12:50:27 mostly pardelkat there are 3rd party tools that can do most everything you need Mar 09 12:50:40 only very specific cases you will write it yourself Mar 09 12:51:39 but there is also the thing of .. there is always someone smarter and better than you and me .. always 1 guy better at something Mar 09 12:51:58 and if you look at how many hours and months have been spent building the 3rd party library Mar 09 12:52:18 they focus on that library on its own that is what they do Mar 09 12:52:24 Right Mar 09 12:52:26 so in your case for example Mar 09 12:52:39 you only need the library to get to your goal Mar 09 12:53:14 so would your time not be better spent focussing on your goal instead of having to focus on the tiny things before you get to your goal Mar 09 12:53:31 One of the most annoying cases is finding a library that seems perfect: it does everything you want. But then you find its performance is unacceptable for your use case. Mar 09 12:53:31 You're right Mar 09 12:53:37 but then again it depends on so many things like is your goal to have it very very fast and the current lib doesn't work as fast Mar 09 12:54:08 then your goal would involve writing a lib, but then you will have to spend many hours learning how everything works and get it as good as possible Mar 09 12:54:24 yeah TacticalJoke that was what i was getting at :) Mar 09 12:54:32 but for the normal app that is almost never the case Mar 09 12:54:40 lemonxah: I know it exists, but I'm new and I want to implement this by myself. But I suddenly found something in google, might try to read a bit before returning. Thanks! Mar 09 12:54:41 Yeah, it's rare. Mar 09 12:54:59 classic programmer dilemma. efficient app vs efficient time management Mar 09 12:55:16 overcrush, but why cant you have both? Mar 09 12:55:27 I think one good general principle is this: if that functionality is central to your app, and you must become a complete expert in that functionality, it's usually a good idea to write it yourself. Mar 09 12:55:42 I just want to create my first app... I had an idea for a game. Mar 09 12:55:58 well, that's the goal Mar 09 12:55:59 Frameworks and libraries seem helpful. Mar 09 12:56:49 pardelkat, then use libs and if you find them inadaquet then you have to become an expert in the field that lib covers to write a replacement then make that replacement opensource and give it away Mar 09 12:56:57 :) so that others dont have to do it again Mar 09 12:57:30 Or I can write it maybe Mar 09 12:58:05 pardelkat: What is this functionality that you're thinking of writing? Mar 09 12:58:31 (There are various game-related libraries you could be referring to, so it's hard to guess.) Mar 09 12:59:00 TacticalJoke: oh I was just saying, if I absolutely needed to I could write an addition or modification to one Mar 09 12:59:32 yes Mar 09 13:00:04 I still have to learn java though Mar 09 13:00:08 lol Mar 09 13:00:39 I'm getting way ahead of myself Mar 09 13:01:09 what langauges do you know pardelkat ? Mar 09 13:02:17 lemonxah: I'm good with lua, I was messing around with the love2d engine and ended up making a small game. Mar 09 13:02:28 That's a scripting language though Mar 09 13:02:43 scripting or not its a programming langauge at least Mar 09 13:03:38 Any other languages I should learn before Java? Mar 09 13:04:36 no just java Mar 09 13:04:50 but if you like lua's functional side then java is going to frustrate you Mar 09 13:05:01 you could do kotlin / groovy / scala Mar 09 13:05:11 i use scala for doing my android dev work Mar 09 13:06:11 I'm not really a huge fan of OOP to be honest Mar 09 13:06:25 then use scala :) Mar 09 13:09:48 about translate animations, http://developer.android.com/reference/android/view/animation/TranslateAnimation.html Mar 09 13:10:02 anyone know if the constructor params are in dp og pixels? Mar 09 13:12:12 Troffel, if its not mentioned, its usually px Mar 09 13:13:36 I figured, but I thought it was strange to use floats for pixels Mar 09 13:14:05 ^ Troffel, its almost always px, like getResources().getDimension(R.dimen.tutorial_cross_marginTop); gets the dp and makes it px to use in java Mar 09 13:14:16 you only use dp in the layouts really Mar 09 13:14:53 makes sense, floats just made me question it :) thanks Mar 09 13:15:31 well not really Mar 09 13:15:43 nvm wrong chatwindow Mar 09 13:15:52 yeah its a bit weird it returns floats while everything takes ints.. Mar 09 13:23:08 what's a good emulator which has ARM support? Mar 09 13:24:20 qemu Mar 09 13:26:41 nice, adq I'll try and build it Mar 09 13:51:45 Can I call getAssets in the onCreate method? Mar 09 13:51:57 I ask because I retreive null. Mar 09 13:52:45 tokam yeh should be Mar 09 13:53:17 ctx.getResources().getAssets(); Mar 09 13:55:05 public void onCreate(Bundle savedInstanceState) { Mar 09 13:55:05 super.onCreate(savedInstanceState); Mar 09 13:55:05 assetManager = getAssets(); Mar 09 13:55:21 that returns null Mar 09 13:56:24 getResources().getAssets(); returns null too. what is ctx? how to get the context object? Mar 09 14:11:26 tokam: Saying "getAssets()" in MainActivity.onCreate doesn't return null here. Mar 09 14:31:49 tokam: your Activitiy is the context Mar 09 14:32:16 I'm trying to make a view on top of another view in relativelayout Mar 09 14:32:31 I've tried before and after, but it always below the other view Mar 09 14:33:11 And I must use ReleativeLayout. The views are ImageButton (Fab) and CardVIew Mar 09 14:33:24 yoavst: What are 'before' and 'after'? Mar 09 14:33:31 in the xml file Mar 09 14:33:50 before the view and after the view Mar 09 14:34:07 as said "The easiest way is simply to pay attention to the order in which the Views are added to your XML file. Lower down in the file means higher up in the Z-axis." Mar 09 14:35:23 Okay. I'd expect declaring it after the view to put it on top of the view. Mar 09 14:35:54 yea, I've tried both Mar 09 14:35:57 same result Mar 09 14:36:19 http://pastebin.com/uzYeJLXS Mar 09 14:36:21 here is the layout Mar 09 14:37:44 hi Mar 09 14:37:53 hey John Mar 09 14:38:52 TacticalJoke: looks like make the card view inside FrameLayout fixes it Mar 09 14:39:03 Should I report it to google? Mar 09 14:39:09 I wonder whether it's using View.bringToFront. Mar 09 14:39:17 quinnjn: hi Mar 09 14:39:23 but why Mar 09 14:39:23 Not sure. I don't know much about CardView. Mar 09 14:39:40 http://stackoverflow.com/questions/25045261/cardview-doesnt-respect-z-index-order-in-relative-layout Mar 09 14:39:45 On Android L, CardView has an elevation set, which will make it appear above other views, regardless of their order in the layout. You'll need to either set an elevation on the button, or better, put the button inside the CardView. Mar 09 14:41:11 I see. Mar 09 14:44:21 TacticalJoke: but for me it does? Mar 09 14:45:46 tokam: Maybe you're doing something weird. I notice that your Activiy.onCreate override is public, which is not the specifier autocomplete would generate. Mar 09 14:45:48 can anyone point me to a very basic but comprehensive tutorial that teaches the fundamentals of Java. Ive been programming for 30 odd years but all the android stuff seems to assume a buttload more knowledge of java than i have.. Mar 09 14:46:25 sorry is not Mar 09 14:46:30 03-09 15:43:25.578: I/de.tu_darmstadt.fsr.headtracker(2645): assets-manager is:android.content.res.AssetManager@410f7ba8 Mar 09 14:46:35 http://docs.oracle.com/javase/tutorial/java/index.html Mar 09 14:47:01 I am getting an nullpointer exception here Mar 09 14:47:01 InputStream inputStream = assetManager.open("trained-led-data"); Mar 09 14:47:56 TacticalJoke thanks. I think i tried that one once and it still assumed prior knowledge but i'll give it another shot. Mar 09 14:48:19 it cant be any worse than anything else ive come across Mar 09 14:48:23 As far as I've seen, it doesn't assume much/anything. Mar 09 14:48:38 maybe im thinking of another one then. cool Mar 09 14:48:52 and thanks Mar 09 14:52:21 TacticalJoke: I found my mistake. Mar 09 14:52:41 The super constructor called a function of my class which required an variable to be initialized. Mar 09 14:53:11 unfortuntely the super constructor call is the first thing that to happen during the initialization of an object. Mar 09 14:53:18 Sounds like a scary relationship between those classes. ;o Mar 09 14:53:41 :D Mar 09 14:55:49 perhaps a bit of incest going on there Mar 09 14:56:54 ok.. if you just came here and read the last line, its a bit strange.. Mar 09 14:57:06 @ BitViper^^ Mar 09 14:57:24 context is everything :) Mar 09 14:57:31 ^^ Mar 09 14:59:07 context for president ! Mar 09 14:59:21 danijoo : short version - someone had a couple classes that were interacting badly Mar 09 15:00:08 id say F context, but you never know what you might catch Mar 09 15:16:12 tokam: never ever let a constructor call a method which is overridable by sub classes Mar 09 15:28:28 why is it a sort of rule that only games get splash screens? Mar 09 15:29:12 snapchat Mar 09 15:29:34 yea but there's a sort of rule that this shouldn't happen Mar 09 15:29:38 look at all Google apps Mar 09 15:29:42 Android is fast enough to not need a splash screen to cover loading times Mar 09 15:29:53 ^ Mar 09 15:30:05 ok so you're saying that a splash screen is to compensate for the speed of loading an app? Mar 09 15:30:18 doesn't have to be Mar 09 15:30:33 I wouldn't agree that its very fast, that's why we have to edit our themes to match that of the theme of the opening activity Mar 09 15:30:33 i've made one before that was just a Thread.sleep(2000) Mar 09 15:30:42 so that a "black screen" doesnt show Mar 09 15:30:46 nah that's just wrong man Mar 09 15:30:48 nvm Mar 09 15:40:07 i have some weird bug, the viewpager doesnt show fragments when app launch, some times, does any how have any info about this issue ? Mar 09 15:47:16 i have some weird bug, some times the viewpager doesnt show fragments when app launch . does any how have any info about this issue or have any 1 had same problem? Mar 09 15:49:01 john67: Not enough info Mar 09 15:50:50 yiati: i have a viewpager with FragmentStatePagerAdapter and a fragment, some times when the app is launch, the fragment isnt created, the viewpager is blank Mar 09 15:52:55 yiati: u want me to post my code? i got no error on my code Mar 09 15:53:54 hey has anyone recently worked with the mediacodec audio encoder/decoder? Mar 09 15:54:12 john67: what have you done to debug it? Mar 09 15:56:04 why do you use a stagepager? do you have that many items? Mar 09 15:56:33 yiati: have checked the sequence but nothing ,plus i have public void setUserVisibleHint(boolean isVisibleToUser) in the fragment Mar 09 15:56:57 danijoo: i use FragmentStatePagerAdapter not a stagepager Mar 09 15:57:30 yes. why? Mar 09 15:59:03 i just read it on the doc, http://developer.android.com/training/implementing-navigation/lateral.html . and since im a newbie, i just tried to use this Mar 09 15:59:20 what shud i do? Mar 09 15:59:24 use a fragmentPageradapter, not the fragmentstatepageradapter Mar 09 15:59:40 the statepageradapter is for large datasets Mar 09 16:03:49 danijoo what exactly quailifies as large? I have 7 fragments representing a week with a recyclerview does that qualify as large? Mar 09 16:04:04 danijoo: oki, i have about 400 datasets, shouldnt it be too much for fragmentpagerAdapter? Mar 09 16:04:14 the mediacodec class I'm talking about btw is this one I don't get the instructions: http://developer.android.com/reference/android/media/MediaCodec.html Mar 09 16:06:35 john67, then its fine :p Mar 09 16:06:42 memorion, 7 isnt large. Mar 09 16:06:50 large is like all sites of a book Mar 09 16:06:51 danijoo: plus the dataset are not fixed , it changes base on the event, thats why i took the FragmentStatePagerAdapter Mar 09 16:07:39 danijoo hm, but are there apparent drawbacks for using the statePager? Mar 09 16:09:15 memorion, they are recycled Mar 09 16:09:22 memorion: It's just a question of memory usage Mar 09 16:09:38 read the doc on both and youll see the difference Mar 09 16:10:17 yeah but I thought recycling them was desirable? Mar 09 16:11:46 Released my first self-published app on Friday. It's doing pretty good. Mar 09 16:16:21 memorion, statepager destroys fragment the moment the leave the screen. normal pager does keep the fragment to the left and right by default Mar 09 16:16:31 so switching is faster with it Mar 09 16:17:34 Not doing as well as my friend who made the iOS version, he's #1 in health + fitness right now Mar 09 16:18:03 you basically trade memory vs efficiency Mar 09 16:18:04 What is the most efficent way in NDK to read screen-rotation x,z coordinates? Mar 09 16:19:11 so if my data stuff in the fragments isn't expensive to recreate I can use the statepager? I already startet with that one Mar 09 16:20:01 if its a tabbed viewpager where the user constantly switched between few tabs, you want the other one Mar 09 16:20:16 because the fragments dont need to be recreated every time Mar 09 16:20:56 the statepager might cause slight lags on page switchs if the user quickly changes fragments Mar 09 16:21:59 ok, thanks :) Mar 09 16:36:58 hey guys, if i use android:screenOrientation="portrait" on my activity, can i add an exception to one fragment inside the code? Mar 09 16:39:04 luist, no Mar 09 16:39:08 only to activities Mar 09 16:40:17 danijoo: can i add an exception to a webview content maybe? Mar 09 16:41:25 you can change the orientation progmatically even if its set to portrait in manifest Mar 09 16:41:35 and change it back when the webview/fragment disapears Mar 09 16:51:19 I uploaded my Alpha APK but I dont see tester link even after adding google group? Mar 09 16:51:52 I need to test my IAP Mar 09 16:52:22 When I try to test without that I get "ERROR Authentication required. You need to sign into your google account." Mar 09 16:52:29 hey guys i have an issue... I have a textview and onClick I am getting the selected text start position and end Mar 09 16:52:32 but always is 0 Mar 09 16:52:49 int start = t1.getSelectionStart(); Mar 09 16:52:59 but as I said always 0 :( Mar 09 16:53:07 does anyone have solution for that Mar 09 17:15:18 anyone? Mar 09 17:24:52 apple's privacy stance on research kit is good news Mar 09 17:29:17 researchkit is open source \o/ Mar 09 17:31:18 ' Mar 09 17:34:12 Hey, how can I, in code, set the input type of an EditText to be a keyboard with just numbers. No symbols, just numbers? Currently I'm using "setRawInputType(Configuration.KEYBOARD_12KEY)", but that still shows up stuff like the # and * keys Mar 09 17:49:23 s73v3r, Mar 09 17:49:28 http://developer.android.com/reference/android/text/InputType.html Mar 09 17:57:10 Hello anyone know way to stream screen of device to desktop? Mar 09 17:57:39 Are there any good places to advertise/market apps for free? Mar 09 17:58:23 lasserix_ if fps isn't an issue, there is something that'll do that i know off top of head,but the fps is slow,it's like androidscreencast.jar or somethin Mar 09 17:59:04 hmm Mar 09 17:59:11 for demoing to client so probably want faster fps Mar 09 17:59:43 g00s: you got me in trouble! Mar 09 17:59:51 thepoosh how ? Mar 09 18:00:15 my boss was all like "what is that black window always open on your screen?!" Mar 09 18:00:33 vim Mar 09 18:00:38 i said "it;s my irc client, here look, this guy asked me about material stuff" Mar 09 18:00:47 :D Mar 09 18:00:50 he said "close this shit and start working" Mar 09 18:00:57 i noticed then you went offlince hahaha Mar 09 18:01:10 he stood by me and waited for me to close it Mar 09 18:01:17 oops Mar 09 18:01:22 no worries Mar 09 18:01:31 we are stressed because of the google thing Mar 09 18:02:16 thepoosh what google things ? Mar 09 18:02:37 they want to feature us, but it came with a tight deadline Mar 09 18:02:55 ah Mar 09 18:03:40 danijoo, adding that makes the regular QWERTY keyboard appear. Mar 09 18:04:00 adding what? Mar 09 18:04:28 setInputType(InputType.TYPE_NUMBER_VARIATION_PASSWORD); Mar 09 18:04:46 you want a password field? Mar 09 18:05:16 it's not a password. I just want nothing but numbers Mar 09 18:05:31 why you use TYPE_NUMBER_VARIATION_PASSWORD then? Mar 09 18:05:42 and not TYPE_NUMBER Mar 09 18:05:52 that appeared to be what I wanted if I only wanted numbers Mar 09 18:06:25 http://developer.android.com/reference/android/text/InputType.html#TYPE_CLASS_NUMBER Mar 09 18:16:11 has anyone ever done anything with mifare tags.. the nxp api? Mar 09 18:16:14 on android? Mar 09 18:24:10 IrishGringo: dunno about "nxp api", but there's this: https://github.com/codebutler/farebot Mar 09 18:26:24 I could use some help with Spannables. I'm using this modified TextView http://pastebin.com/ke4pvMZc but it has a flaw as you can see here: http://imagebin.ca/v/1uFsV5MlmqXU So the icon's size is as it should be, but I'd like it to be centered vertically, not smashed on the bottom. Any ideas? Mar 09 18:27:48 As you can see in line 68-77 I'm experimenting. Changing the Drawable's bound just seems to scale it. I think I need to wrap it in something. Mar 09 18:28:05 I got the NXP API running... on Eclipse... still working on it in AS Mar 09 18:28:45 groxx: thanks... have you had any expereince with that? Mar 09 18:29:21 IrishGringo: only as a user :) works pretty well. Mar 09 18:32:50 I'm looking for an API to transfer money between users. Any suggestions? It's kind of a splitting app. Money from one user is sent to 10 or so users. So, PayPal REST isn't an option since user has to authorize each transaction separately. But, I don't want to handle the money either. Mar 09 18:35:51 The_Phoenix android users don't have money. you are so funny ! Mar 09 18:38:55 g00s: True and thanks. Regardless, it doesn't have to an Android API. It can be a REST API. Mar 09 18:45:19 i am trying to follow android opengl 2.0 but stumble across : E/MyGLRenderer﹕ glUniformMatrix4fv ; glError1281 but sofar google doesn't help tomuch with a solution ( all there is left is making another project and use the provides source code to see if it results in same behavior Mar 09 18:46:02 on real device can't use the emulator because target is below required api Mar 09 18:57:51 Does anyone know how google's messager app uses the camera in a fragment? Mar 09 18:58:29 DadFoundMy, hangouts or what do you mean Mar 09 18:58:58 Adaptive payments with preapproval on PayPal was what I was looking for. Mar 09 18:58:58 Moter8: no google camera, it uses the camera in a small fragment, ill take a screenshot Mar 09 18:59:06 DadFoundMy no, but cyanogenmod does this http://www.androidauthority.com/cyanogenmod-mini-camera-tile-feature-234924/ maybe you can find out how in the cm source Mar 09 19:00:25 memorion: oh yeah i forgot about that Mar 09 19:00:36 if only google would make messager open sauce :( Mar 09 19:01:00 Moter8: http://imgur.com/5M8h4sb Mar 09 19:01:32 wat? Mar 09 19:01:58 Moter8: see how the camera is like in the app Mar 09 19:02:13 oh wow, that looks so much better than hangouts Mar 09 19:02:27 memorion: it is, i switched a while a go, its sooo much better Mar 09 19:02:38 oh, it's literally called messenger Mar 09 19:02:45 DadFoundMy noone uses texts in Germany so I never looked at it Mar 09 19:02:53 ^same here Mar 09 19:03:03 memorion: really, what do you guys use? whatsapp? Mar 09 19:03:11 yep Mar 09 19:03:19 SMS cost money Mar 09 19:03:26 yeah most people, but I use hangouts and facebook messenger for the most part Mar 09 19:03:41 well whatsapp was faster then the text flatrates here Mar 09 19:03:52 in 'murica everyone with iphones use imessage so that means everyone with android just texts Mar 09 19:04:06 when i was living in china everyone used a service call wechat though Mar 09 19:04:27 I use hangouts for messages because I can type from PC so easily with chrome extensions Mar 09 19:04:29 yeah, it'd be awesome if hangoust and imessage were built on an intercommunicating protocol Mar 09 19:05:12 but alas, it will never happen Mar 09 19:05:18 memorion: unfortunetly that's really the last thing apple has over android. I'm a teenager and int his demographic imessage is hugge Mar 09 19:05:29 I know, just dreaming Mar 09 19:05:55 its not even that imessage is any better than any of the other services, its just that it is integrated and has a huge member base Mar 09 19:06:12 yeah, if you can "shame" green people your messenger won Mar 09 19:06:23 hangouts is a bit sluggish for some reason Mar 09 19:06:41 but the benefit of typing from pc is awesome Mar 09 19:07:03 i didn't know you could type from the pc with hangouts, thats really tempting Mar 09 19:07:17 it's the only reason I use it Mar 09 19:07:20 as an app though messager is 10x better and has much better wear support too Mar 09 19:07:21 did you know there's a whatsapp webapp? Mar 09 19:07:29 https://web.whatsapp.com Mar 09 19:07:30 yes but your phone is the server Mar 09 19:07:36 not that ideal Mar 09 19:07:38 ScalaWilliam: yeah ever since they banned their pidgin plugin Mar 09 19:07:40 ScalaWilliam, yeah, but thats sucky Mar 09 19:07:41 which is good enough for me Mar 09 19:07:54 check out this one: https://chrome.google.com/webstore/detail/hangouts/nckgahadagoaajjgafhacjanaoiihapd Mar 09 19:08:03 getting pictures on hangouts on a desktop sucks also Mar 09 19:08:26 or this one if you want a round icon on top of everything all the time: https://chrome.google.com/webstore/detail/hangouts/knipolnnllmklapflnccelgolnpehhpl Mar 09 19:08:28 it looks nicer in their screenshots Mar 09 19:08:52 the floating thingy looks cool but doesn't work on osx Mar 09 19:08:54 memorion, what do you mean? Mar 09 19:09:20 Quacked I hate that it opens in the g+ thingy Mar 09 19:09:34 well Mar 09 19:09:47 I like that all pictures are then stored Mar 09 19:10:04 thats also a badass benefit of hangouts.. you dont have to backup your shit Mar 09 19:10:13 yes, a history is nice but the view is pretty slow in a browser Mar 09 19:10:15 what you send and what you type Mar 09 19:10:34 takes a few seconds to open the image if you want it large, yeah Mar 09 19:11:13 and sometimes the image is tiny but it's high res on the phone Mar 09 19:11:47 yeah, some weird bugs are still there Mar 09 19:12:01 its neat that you can see the entire album online of a conversation though Mar 09 19:12:19 I really hope they address hangouts on google io Mar 09 19:13:14 hey guys, is anyone here experienced with cardboard? Mar 09 19:14:14 How coders show empathy : http://uppix.com/f-screenshot_08954fdf08e00187cf4.png Mar 09 19:32:04 Why hasn't someone made a multiplayer app without multiple phones? I'd try it but have no idea. Mar 09 19:32:10 Ideas* Mar 09 19:33:49 pardelkat: http://playboard.me/android/channels/532f131cefb6a6fb0ee59408 Mar 09 19:39:38 is there Mar 09 19:40:11 any script that can be injected to an app that does not create vurlnability so i can have some of the logic sent from server for android? Mar 09 19:41:02 Nick-S: confused Mar 09 19:41:40 i have some logic i want to add to an app, but because its sent to thousands of users i don't want to re-publish the app to get some little part of it changed, i want to have a request to server for a script and use that Mar 09 19:46:13 you want to bypass the Play Store update system, in other words? Mar 09 19:47:12 sorry i was awasorry Mar 09 19:47:31 treelzebub: well for a very short part of the code Mar 09 19:52:42 if I understand your situation, you will still have to push an update to Play Store, so your users get the code that tells the app to update from a 3rd-party server. right? Mar 09 19:53:01 I'm pretty sure that pushing actual code isn't allowed Mar 09 19:54:10 if it's such a short part, I'd say make it more like dynamic, than actual code Mar 09 20:01:14 I think Google needs to review all the code so that won't work I don't think Mar 09 20:06:25 so if they see a script intrepter they won't take it? Mar 09 20:07:00 leeds: ya dynmaic, is there such a possibility? Mar 09 20:07:19 Nick-S_ do you really want to take the risk ? its clear from the Play TOS Mar 09 20:07:36 given whats been going on to devs with app take downs / account permabans Mar 09 20:07:36 g00s: they say no? Mar 09 20:07:48 Play TOS says you have to use Play to update your app Mar 09 20:08:14 g00s: there's some logic i would like to leave flexible, Mar 09 20:08:42 hook it up to a backend then Mar 09 20:08:43 hey, trying to install an apk onto a running emulator from the command line on Mac OSX.. but it gives me "error: device not found" Mar 09 20:08:50 "- waiting for device -" Mar 09 20:12:12 huh, that gold apple watch sells for $10k Mar 09 20:12:33 supay: Do you have multiple emulators, and have you tried turning adb on and off again Mar 09 20:12:46 s/multiple/multiple running/ Mar 09 20:12:57 yiati: no, single emulator.. i haven't tried turning adb on and off Mar 09 20:13:15 adb kill-server; adb start-server; Mar 09 20:13:25 trying Mar 09 20:13:53 ah, that worked! thanks yiati! :0 Mar 09 20:13:54 :) * Mar 09 20:15:25 <_Exclusive> Can I instanciate a listener-interface in an Activity / FragmentActivity ? How would i assign the listener? Plenty of examples for asynctasks and fragments, but not from an activity. Mar 09 20:19:17 _Exclusive: Why wouldn't you be able to? Mar 09 20:24:14 <_Exclusive> yiati: I cant seems to figure out how to assign the listener. Like the top answer on this post. http://stackoverflow.com/questions/994840/how-to-create-our-own-listener-interface-in-android , how can I assign the listener, or what do the listener want? (Sorry for my aweful desc). Mar 09 20:24:31 Hi, i am using ObservableScrollView library and i would like to add Material Navigation Drawer library. But the problem is that for Observable to work i need to exted MainActivity with ActionBarActivity and for Material Drawer i need to extend MyNavigationDrawer. Is there a solution ? Mar 09 20:25:28 <_Exclusive> I guess that would work in a asynctask and similare "simple-classes" but what would I assign as "MyListener" in a activity class? Mar 09 20:25:36 I am not sure if i explained this. xD Mar 09 20:25:49 this well* Mar 09 20:27:05 _Exclusive: You just have whatever class you want to be the "listener" implement the listener interface Mar 09 20:28:14 I think Google needs to review all the code so that won't work I don't think Mar 09 20:28:15 <_Exclusive> Yeah that part is fine yiati, but in the class "sending" the data, I need to assign the listener, in the example from stackoverflow he does it in the MyButton class. What would be the right solution if I want to send the data from an Activity? Mar 09 20:28:18 source? I'm interested Mar 09 20:28:27 Nick-S_ do you really want to take the risk ? its clear from the Play TOS Mar 09 20:28:36 can't find anything about interpreter/dynamic in here https://play.google.com/about/play-terms.html Mar 09 20:28:50 well ya ok i ditch the idea Mar 09 20:30:20 https://play.google.com/about/developer-content-policy.html Mar 09 20:30:29 "An app downloaded from Google Play may not modify, replace or update its own APK binary code using any method other than Google Play's update mechanism." Mar 09 20:30:56 ooh binary code. Mar 09 20:31:34 but accepting dynamic scripts, say, via ScriptManager, is completely fine, g00s ? Mar 09 20:31:35 _Exclusive: They are passing the listener to the MyButton class when they instantiate the MyButton class in the Activity Mar 09 20:31:52 MyButton m = new MyButton(this); // this is instanceof MyListener Mar 09 20:31:57 I mean ScriptEngine. Mar 09 20:32:23 maybe contact google to be sure Mar 09 20:32:57 and WebView :) Mar 09 20:33:19 there's also jsonviews Mar 09 20:33:37 prob. not binary code tho Mar 09 20:36:17 https://vec.io/posts/embed-javascript-in-android-java-code-with-rhino Mar 09 20:37:15 but why use js when you could use scala Mar 09 20:37:37 rhino is dead anyhow Mar 09 20:37:55 what do people use instead g00s ? Mar 09 20:38:31 ScalaWilliam i'm not sure what your requirements are Mar 09 20:39:11 I am only curious g00s, as the guy above asked about self-updating apps Mar 09 20:39:40 well, since self updating apps is against TOS, i'm betting most don't try it Mar 09 20:39:54 I am using this library : https://github.com/ksoichiro/Android-ObservableScrollView/ and Toolbar, is there a way to implement a material style navigation drawer that will not interfere with this library ? Mar 09 20:40:14 A lot of stuff can "self update" if you have it architected correctly, and hooked up to a backend that you control Mar 09 20:40:34 This is my mainActivity : http://pastebin.com/6WJcRzyx Mar 09 20:41:16 even th facebook app which has tons of A/B testing going on - ships the whole app to users, but each person sees something different Mar 09 20:42:18 you can change the behavior of your application by adding passive data to it, maybe like definitions for a printer for example, but trying to upload .class files and add them to your classloader is probably where you'll get in trouble Mar 09 20:43:53 Anyone ? :D Mar 09 20:46:14 understood g00s. Mar 09 20:48:08 ScalaWilliam i was going to add luaj to my app to allow users to extend some pieces and add hooks Mar 09 20:48:26 that is, if performance permits - i'd expect it to be pretty bad Mar 09 20:49:02 but thats not really myapp updating itself - so i think i'm ok Mar 09 20:50:12 g00s, is your app publicly available? Mar 09 20:50:18 not atm Mar 09 20:50:30 where would they add those hooks, via a web interface? Mar 09 20:50:41 text files to sdcard Mar 09 20:50:41 g00s: I’d expect luaj performance to be reasonable — luajit gets good native performance so there’s nothing re: language that should it back. Mar 09 20:50:44 Hi. How I can get data from xml string-array to listView where I don't know specified name ? For example i need to get values of string-array named 'class_2e' but I have that name in a variable. Mar 09 20:50:48 should hold it back, rather. Mar 09 20:51:30 ScalaWilliam i guess if i got fancy, there could be a repository where people could share their scripts and d/l them to the app but i'm nowhere near that Mar 09 20:51:35 jfpoole thats good to know Mar 09 20:51:55 g00s: I am assuming that luaj is competenly written :-) Mar 09 20:52:30 i think you have to use it so that it does no dynamic bytecode generation Mar 09 20:57:51 http://store.apple.com/us/buy-watch/apple-watch-edition?product=MJ3G2LL/A&step=detail ahahahhaa Mar 09 20:58:30 Moter8: what, you don't have $10k to burn? Mar 09 20:59:00 groxx, read again Mar 09 20:59:12 sounds like a great time to be writing apps for those. you know owners have lots of money :) Mar 09 20:59:39 are college kinds going to be walking around with them? of course not Mar 09 20:59:44 Moter8: I'm not seeing it Mar 09 20:59:52 hint: there are 17k$ ones. Mar 09 20:59:53 they'll have android watches :) Mar 09 21:00:48 ^^ Mar 09 21:01:16 i expect apple watch to enjoy the same success as apple tv Mar 09 21:01:25 I’m surprised at how many of interns we interviewed didn’t use a Mac or an iPhone. Mar 09 21:01:33 Windows + Android seems quite popular. Mar 09 21:01:35 yeah, $10k+. I'm just waiting for the iPhone6+-sized watch. Mar 09 21:01:42 :DD Mar 09 21:01:42 that is crazy! Mar 09 21:01:47 10k! Mar 09 21:01:55 quinnjn, 17. Mar 09 21:01:58 samsung'll make a huge Wear device, just watch Mar 09 21:02:01 DX Mar 09 21:02:02 its not crazy at all if you understand the economics of premium brands Mar 09 21:02:03 gotta have that bling Mar 09 21:02:35 Ahhhh, i am going to go crazy. Mar 09 21:02:45 the most wtf thing for me from that whole announcement is _gold laptops_. wt-flying-f. Mar 09 21:02:50 wonder what a can of gold spray paint goes for Mar 09 21:03:18 groxx, legit gold or just color? Mar 09 21:03:22 color Mar 09 21:03:27 just color. maybe legit gold in the color? dunno. Mar 09 21:03:32 nah Mar 09 21:03:36 a few atoms thick of gold costs like nothing Mar 09 21:03:41 but it does look good. Mar 09 21:03:56 ah, it's bizarro-world day, eh? Mar 09 21:04:00 imo of course. But 1 port only is _not_ funny Mar 09 21:04:14 that seemed inevitable Mar 09 21:04:26 i'll miss magsafe :( Mar 09 21:04:33 10 - 12k for a watch ? Mar 09 21:04:38 Is this a joke ? xD Mar 09 21:04:51 yeah, magsafe was a legit improvement in every way Mar 09 21:04:53 Nope this is 'murica Mar 09 21:04:56 Nightwalkerkg, 17. Mar 09 21:04:59 for the third time :D Mar 09 21:05:09 10 to 17k Mar 09 21:05:09 When I want to access resource i write "R.id.resid", it's similiar construction like R.id[resid] for example to get the resource that name was stored in a variable ? Mar 09 21:05:11 That's even worse. Mar 09 21:05:12 I assume it goes higher than 17? Mar 09 21:05:52 g00s: Yeah, Magsafe is (was?) great. Mar 09 21:06:56 based on the stupid comments i've heard about iwatch i have to assume it'll flop Mar 09 21:07:01 hm. 17 is the top. why is there no gold band? Mar 09 21:07:07 gotta compete with rolex somehow Mar 09 21:07:27 there was a claim circulating that the gold watch will have 2oz gold and at prjected demand consume 30% of the world's gold supply Mar 09 21:07:59 sell ur bitcoins, buy gold! Mar 09 21:09:04 dunno. at that price, there are more than enough iphone-toting rich people to make money off of. I'll wait and see. Mar 09 21:09:45 Narz: Not sure. But why do you want to? Mar 09 21:11:02 in the US, its becoming common for companies to shift their product lineup to higher end things. for example, GE and refrigerators - their lineup is quite premium. its because the concetration of wealth and the gutting of the middle class. 1% can buy more than all the other 99% - and those people are in completely different economies buying / purchasing completely different things than everyone else Mar 09 21:11:25 I have the many string-array's in the xml file (generated by Ruby script), I want to load specified one, based on "school_code" in my app. Mar 09 21:11:41 the aren't consuming more chipotle - they don't eat at chipotle at all Mar 09 21:11:59 g00s: untapped market! the 300-pointer burrito Mar 09 21:12:16 http://www.nytimes.com/2014/02/03/business/the-middle-class-is-steadily-eroding-just-ask-the-business-world.html?_r=0 Mar 09 21:12:35 thats from a year ago but still relevant Mar 09 21:13:28 here you go g00s http://officialandroid.blogspot.com/2015/03/android-51-unwrapping-new-lollipop.html Mar 09 21:13:48 JakeWharton awesome ! Mar 09 21:14:06 Narz: I haven't tried this but maybe it works: http://stackoverflow.com/questions/3648942/dynamic-resource-loading-android Mar 09 21:14:33 "support for multiple SIM cards" <- didn't that happen a while ago? they've had line1 / line2 sim-related methods since at least kitkat Mar 09 21:14:38 That host name looks so suspect. Lol. Mar 09 21:14:57 officialandroid.blogspot.com Mar 09 21:15:19 Lol, I just got a pushbullet with that link. Mar 09 21:15:38 * groxx just hopes it'll solve my random reboot problems. which are probably solving the memory leak problems. Mar 09 21:15:38 the 5.1 one Mar 09 21:20:13 now about those new macbooks - those batteries look slick but they said they were using a new chemistry. i think i would wait a little to see how that pans out :) Mar 09 21:20:58 its probably best to wait out until that gets a refresh so they work out all the kinks of the new stuff - like not buying a car completely redesigned that year Mar 09 21:34:12 How to get resource Id of string-array? I know name Mar 09 21:34:59 R.array.blah? Mar 09 21:35:24 I don't remember what the specific R subclass is, but it's likely something like that Mar 09 21:36:01 JesusFreke: I know this method, but blah I store in a variable. Mar 09 21:36:13 Narz: Did you see my link? Mar 09 21:36:47 http://developer.android.com/reference/android/content/res/Resources.html#getIdentifier(java.lang.String, java.lang.String, java.lang.String) Mar 09 21:37:08 I spent like 1.5 minutes googling that on my phone. I think I deserve at least feedback. Mar 09 21:37:22 http://developer.android.com/reference/android/content/res/Resources.html#getIdentifier(java.lang.String,%20java.lang.String,%20java.lang.String) (fixed link) Mar 09 21:37:37 :D Mar 09 21:38:04 JakeWharton i have a dumb question about okio. so if i'm creating these Buffers and read/writing stuff to multiple ones, they are pooling their internally allocated space and reusing them to mimimize garbage ? so if i was using a Pool of NIO ByteBuffers, I can use okio buffer kinda transparently with no explicit pooling ? Mar 09 21:38:43 that's the idea Mar 09 21:38:49 :D Mar 09 21:39:18 now that it has getByte() i can pass this directly to my ragel parsers ... ok sweet :D Mar 09 21:40:28 Worked :) Mar 09 21:40:32 Thanks ;) Mar 09 21:41:03 I used "string-array" badly instead of "array" Mar 09 21:57:15 is wrap_content on a listview take up the whole screen? Mar 09 21:57:38 just the amount of views it holds, afaik Mar 09 21:59:04 Is it possible to apply an animation to an image within the xml layout where the image is added? I want an image to slowly rotate continually. Mar 09 22:00:26 Don't use wrap_content on a ListView! Google that. Mar 09 22:02:34 i tried to follow android opengl tut for a bit but i get this on real device http://pastebin.com/w9W5YBZF Mar 09 22:04:04 glGetUniformLocation ; glError1282 suggest a invalid value Mar 09 22:07:52 <[1]webejammin77> What are the best steps I should take if I want to learn how to create custom ROMs? Mar 09 22:08:18 you find the correct channel Mar 09 22:08:27 [1]webejammin77 Step #1 : go to #android-root Mar 09 22:09:55 <[1]webejammin77> already there.. thx Mar 09 22:10:19 bankai_ http://imgur.com/JKHFQVP Mar 09 22:10:49 cute dog lol Mar 09 22:11:44 does anyone know if there is a way to view the debugging info in genymotion? I dragged and dropped a .apk file into genymotion and the app crashes, I would like to see why it crashed. Is there a way to do this? Mar 09 22:14:32 logcat Mar 09 22:16:06 adq: how can i view logcat in genymotion? I can get it working when I run the app from android studio, but how can i do it just by dropping the apk file into genymotion? Mar 09 22:16:47 you can use `adb' for that in a shell Mar 09 22:17:11 adb devices Mar 09 22:17:29 will list your devices, genymotion is often an ip adress like 192.168....:5555 Mar 09 22:17:46 adq: ok i see one device listed Mar 09 22:18:02 then adb -s 192.165.....:5555 logcat Mar 09 22:18:46 if you hav only one device don't bother with -s Mar 09 22:18:51 just do: adb logcat Mar 09 22:19:02 adq: awesome! thank you it worked Mar 09 22:19:07 np Mar 09 22:37:10 I have error with ViewPager + PagerTitleStrip, I saw that only first time the all fields are updated, next time some fields are blank.. what I do wrong ? I used getSupportFragmentManager() because I want compatibility with API 8+ Mar 09 22:51:38 hello everyone Mar 09 22:51:54 hi Mar 09 22:52:34 hi Mar 09 22:52:51 any android conference recommendations around here? my team and i are considering droidcon in montreal coming up soon Mar 09 22:53:48 I have a server that is banned from google API. so I cant use it to send to gcm. Is there anyway to get it unbanned? Mar 09 22:55:28 should i use okhttp? Mar 09 22:55:32 yes Mar 09 22:55:59 NEXT! Mar 09 22:56:38 NChief: yow. dunno. regardless, it's probably quicker to get a new IP address D: Mar 09 22:57:03 :/ Mar 09 22:57:06 probably Mar 09 22:58:48 * CanyonMan curses loudly Mar 09 22:58:59 NChief: the most-consistent place for android-team replies seem to be on the google groups list. that might work better? otherwise I guess you can wait to see if an androider appears here, but that seems pretty rare. Mar 09 22:58:59 It just took me 2 hours to write a unit test that's 5 lines long, Mar 09 22:59:20 because I couldn't remember how to use easymock to verify a listener callback that returns void Mar 09 22:59:25 NChief: otherwise I've seen "request for support / dispute X" forms for a variety of google services, but I can never find them when I want them. Mar 09 22:59:46 groxx: ok, thanks :) Mar 09 23:04:31 I need some help. I am trying to use this library : https://github.com/ksoichiro/Android-ObservableScrollView/ and this library : https://github.com/neokree/MaterialNavigationDrawer together. But here is the problem in order for the first one to work i need to extend MainActivity with ActionBarActivity and implement ObservableScrolViewCallback, and in order for the second to work i need to extend the MainActivity with Mar 09 23:04:31 MyNavigationDrawer activity. Mar 09 23:06:09 If i try to use the navigation drawer and call the first library inside the fragment then my code won't work because it's not extending the ActionBarActivity and i can't have it using ABA because it needs to be a fragment for the Drawer to work. Mar 09 23:06:13 And i am stuck. Mar 09 23:07:00 I just need someone to tell me that i am an idiot and that there is a better way that works. :D And point me to that way. :D Mar 09 23:07:19 I'll be happy to help with the first :D Mar 09 23:07:56 Everyone would. xD Mar 09 23:08:07 you'll likely need to dig into the navigation drawer library, and see if you can get it to work without the activity Mar 09 23:08:10 I charge a few dollars per insult, so I may not be able to help with the first. Mar 09 23:09:12 JesusFreke, is it possible to create a navigation drawer and use it from the main activity without the need for any external libs ? Mar 09 23:09:36 what do you consider "external libs" Mar 09 23:09:38 yes, if you want to write the nav drawer fvrom scratch Mar 09 23:09:48 Nightwalkerkg: like I said, you'll need to dig into the library and find out ;) Mar 09 23:11:15 JesusFreke, https://github.com/neokree/MaterialNavigationDrawer/issues/78 Mar 09 23:11:26 As far as i can see it's not yet possible. :/ Mar 09 23:11:53 pfn, libraries i need to get from the internet. :| Mar 09 23:12:10 Nightwalkerkg, just about everything comes from the internet these days Mar 09 23:12:40 pfn, yeah. xD But i mean the ones that were not made by Google like ReciclyerView or CardView or AppCompat... Mar 09 23:12:50 Like these two i am trying to use. Mar 09 23:13:10 ok, then support-v4 is a google library Mar 09 23:13:14 you can use that for your nav drawer Mar 09 23:13:45 pfn, http://www.android4devs.com/2014/12/how-to-make-material-design-navigation-drawer.html like this ? Mar 09 23:13:50 The more elaborate a regex becomes, the more it looks like the author dropped acid before writing it. Mar 09 23:14:32 man mac finder is so aweful, can't tell g means G Mar 09 23:14:42 hate mac :p Mar 09 23:14:45 such shitty UI Mar 09 23:14:51 only redeeming factor is it's unix Mar 09 23:15:16 yeah Mar 09 23:15:28 http://www.opengroup.org/openbrand/certificates/1201p.pdf Mar 09 23:15:34 and for people who insist on disputing, there's their certificate Mar 09 23:19:35 AS 1.2 out :) Mar 09 23:19:49 now i need to learn whats been added to intellij 14 Mar 09 23:20:06 Whoa. Mar 09 23:20:17 1.2 isn't based on IntelliJ 14, though, is it? Mar 09 23:20:22 1.2 Preview 1.0 Mar 09 23:20:32 yes Mar 09 23:21:11 1.2? where? Mar 09 23:21:16 I'm updating. Mar 09 23:21:25 TacticalJoke not so sure i'm going to touch this ... maybe i'll wait for an rc Mar 09 23:21:27 64MB patch. Mar 09 23:21:47 ok TacticalJoke is updating for science :D Mar 09 23:21:57 nothing here. Where? http://tools.android.com/recent Mar 09 23:22:07 that would be great if they updated to Google Gold theme Mar 09 23:22:27 ScalaWilliam you're on the wrong internets Mar 09 23:23:13 ScalaWilliam: http://tools.android.com/download/studio/canary/latest Mar 09 23:23:42 thanks TacticalJoke. That page links to this one, which is 404. http://tools.android.com/recent/androidstudio12preview1 Mar 09 23:24:20 It's asking me to import my settings. Weird. Mar 09 23:24:25 Good thing I had them backed up, I guess. Mar 09 23:24:37 Same here, ScalaWilliam. Mar 09 23:24:52 Okay, I have a bad feeling about this. lol Mar 09 23:25:07 It's downloading Android SDK components. :[ Mar 09 23:25:17 Any quick way to force refreshing ViewPager fragments when I swipe left or right ? Mar 09 23:26:36 I have tried with notifyDataSetChanged() but I get StackOverflow error Mar 09 23:27:13 TacticalJoke there used to be a custom setting so that it didn't Mar 09 23:31:30 Ugh. I'm having to set the local Gradle directory and everything. Mar 09 23:33:36 What could a FileNotFoundException (permission denied) error be if im pretty sure my manifest is set up correctly? Mar 09 23:44:26 DadFoundMy: pastebin the actual error? Mar 09 23:44:34 It doesn't recognise my unit-test package as being a source-set thingy now. Mar 09 23:45:20 TacticalJoke using gradle-plugin 1.1.3? Mar 09 23:45:40 1.1.0. I'll try that. Mar 09 23:47:20 JesusFreke: http://pastebin.com/tExMmvM6 Mar 09 23:47:35 No joy. Mar 09 23:47:43 DadFoundMy: yeah, you don't have the read sdcard permission Mar 09 23:48:26 JesusFreke: http://pastebin.com/gkAgu28s Mar 09 23:48:35 Going back to 1.1. Mar 09 23:48:42 Abort mission! Mar 09 23:48:48 dont make fun of me if im being really dumb right now :D Mar 09 23:49:05 DadFoundMy: We need the stack trace. Mar 09 23:49:09 Or something. Mar 09 23:49:28 DadFoundMy: are you sure those are in the correct place in the manifest? Mar 09 23:49:35 JesusFreke: no Mar 09 23:49:41 one sec Mar 09 23:49:55 they have to be under , not Mar 09 23:50:07 http://pastebin.com/H6wHQnpm Mar 09 23:50:13 well that solves that Mar 09 23:50:17 its under applicaiton Mar 09 23:50:19 yep :) Mar 09 23:50:53 TacticalJoke: again, noob question, how do i get the stack trace? Mar 09 23:51:10 It'll be in LogCat (though it sounds like we didn't need the stack trace after all). Mar 09 23:51:40 DadFoundMy: your first paste was the error message. the stack trace would be just under that Mar 09 23:51:56 probably :) Mar 09 23:52:06 Oh, I missed that paste. Mar 09 23:52:12 JesusFreke: there was nothing under that. is it because i was sorting by error? Mar 09 23:52:24 it might not have been printed in that case Mar 09 23:52:30 since it looks like it was a handled error Mar 09 23:53:25 I hate reinstalling Android Studio. Mar 09 23:53:44 The amount of time it takes is too damn high. Mar 09 23:54:25 Ugh, 1.2 made a ~/.AndroidStudioPreview1.2 directory. Mar 09 23:54:36 D: Mar 09 23:54:46 (On Windows.) Mar 09 23:55:07 So %USER_PROFILE\.AndroidStudioPreview1.2 . Mar 09 23:55:14 % ^ Mar 09 23:55:18 sweet, another round of excellent release notes: http://tools.android.com/recent Mar 09 23:56:38 I'm uninstalling. I couldn't get unit testing working after around three minutes (which spells bad news, IMO). Mar 10 00:02:42 The Android Studio bundle for Windows is 817 MB. I remember downloading 500MB stuff on 56k and spending like a week. Mar 10 00:02:52 You had to be so dedicated in those days. :D Mar 10 00:02:53 <3 the future Mar 10 00:02:55 if i save a pic to external storage but there is not external storage do i get an error? Mar 10 00:03:13 TacticalJoke: i remember irc back in 1998 download stuff Mar 10 00:03:21 TacticalJoke: jk i wasnt even born then Mar 10 00:03:42 817mb - might want a few 9600 baud modems going at once :) Mar 10 00:03:51 You're 16 years and a couple of months old at most? Mar 10 00:04:06 TacticalJoke: yeah ill be 17 in a few months Mar 10 00:04:50 Doesn't that mean you were born in 1998? Mar 10 00:04:55 Or is my brain malfunctioning tonight. Mar 10 00:05:13 yeah i kinda goof'd on the years Mar 10 00:05:31 june 26 1998 Mar 10 00:05:45 in the 56k days, my parents were on dialup, paying almost $100/month, tying up their single phone line, for over a year while my brother and I were trying to convince them to switch to DSL (same company!) for $60/month. Mar 10 00:05:54 All right. You were boring in 1998 but you were not using IRC below the age of one. Checks out. Mar 10 00:05:56 born* Mar 10 00:06:05 Not sure where 'boring' came from. ;o Mar 10 00:06:16 TacticalJoke: you dont know that. i could have been an elite haxor at 9 months Mar 10 00:06:24 brain malfunction Mar 10 00:07:08 I remember racking up a huge phone bill for my parents on 56k. Mar 10 00:07:30 Just from visiting sites (no, not those kinds) occasionally. Mar 10 00:07:33 Stuff like Google. Mar 10 00:07:44 now racking up the phone bill is with like 10gb Mar 10 00:07:50 times have changed i guess Mar 10 00:07:53 Don't you get unlimited? Mar 10 00:08:00 not in murica Mar 10 00:08:05 unless t-mo Mar 10 00:08:11 I guess you mean cell phones. Mar 10 00:08:12 Okay. Mar 10 00:08:40 oh yeah i dont even want to know how much desktop bandwith i use Mar 10 00:08:49 I had to call America the other day. Cost me like $10 for a few minutes. Mar 10 00:08:58 if i had to guess its probably >100gb a month Mar 10 00:09:08 Just on my phone I use like 100GB per month. No idea how much I use on this computer. Mar 10 00:09:08 TacticalJoke: why didnt you use like skype or viber haha? Mar 10 00:09:11 yeah, pretty sure I'm >100gb Mar 10 00:09:12 (On Wi-Fi.) Mar 10 00:09:23 DadFoundMy: Oh, it was some company. Mar 10 00:09:27 i only really use my phone for reddit and snapchat Mar 10 00:09:34 Yeah, I mainly use mine for reddit. Mar 10 00:09:40 im always consuming media on my pc though Mar 10 00:10:08 I almost never use my tablet. Mar 10 00:10:36 i should download a program to track my data usage on my pc, im kinda scared to see it though Mar 10 00:10:50 the ammount of games, movies, and other shit i download everyday Mar 10 00:10:51 It'd be interesting to see it per site. Mar 10 00:10:56 Mine would mainly be imgur, I guess. Mar 10 00:11:08 Just from reddit clicks. Mar 10 00:11:16 i think youtube would be more just because each piece of content is sooo much more Mar 10 00:11:21 Ah, true. Mar 10 00:11:33 Video is huge, yeah. Mar 10 00:11:48 i dont even know if imgur would be my top anymore after unsubbing from a lot of the "funny" subs Mar 10 00:12:47 Gawd, /r/funny. It's like... it's not even the opposite of funny. It's somewhere else entirely on the continuum: somewhere you couldn't even imagine. Mar 10 00:13:48 so i'm trying to make my code "look nice" is this decent enough to read? https://gist.github.com/DylanRedfield/0fad9b0b05338b3962bf Mar 10 00:13:51 ./r/trashy and /r/cringepics are pretty good. Mar 10 00:14:17 except for those instance variables, im realizing now i should organizae those Mar 10 00:14:34 TacticalJoke: i go on /r/trashy but dont sub. /r/cringepics is great Mar 10 00:14:40 i sub to wayyy too many subs Mar 10 00:16:07 I'm subscribed to around 80 now. Mar 10 00:16:52 how do you check? all i know is when i check all my subs in res it loads 7 apges Mar 10 00:17:36 jesus christ im at 178 Mar 10 00:18:01 How did you check? Mar 10 00:18:07 I knew only because my app told me. Mar 10 00:18:09 http://www.reddit.com/subreddits/ Mar 10 00:18:18 you make a reddit app? Mar 10 00:18:45 Ah, yeah. I wasn't logged in when I visited that page. Mar 10 00:18:52 Yeah, but it's not released yet. Mar 10 00:19:00 178 is a lot. Damn. Mar 10 00:19:11 yeah i should probably purge some of those Mar 10 00:19:14 reddit shows only 50 at once (unless you have gold or whatever). Mar 10 00:19:35 yeah when i use never ending scroll with res i have to reload every hour or so Mar 10 00:19:42 how many are you at? Mar 10 00:19:48 82. Mar 10 00:20:07 filthy casual Mar 10 00:21:21 Quantity does not a good reddit experience make. Mar 10 00:21:37 if there quality subs it does Mar 10 00:21:56 id say most of mine are pretty quality Mar 10 00:23:33 I'm definitely gonna be asking you to beta-test my app. 178 subreddit. Holy bajezzus. Mar 10 00:23:40 bajeezus* Mar 10 00:23:52 one sec im cutting down on some right now Mar 10 00:24:03 The API only allows us to download 100 at once. I might have to write special stuff just for people like you. Mar 10 00:25:04 im down to 145 Mar 10 00:25:52 I'm not a redditer, but does it count that I have 155 rss feeds? Mar 10 00:26:11 i have redditing down to a science at this point. i wrote a script to upvote every post on my screen, this hides them, and then i just upvote everything i see on mobile Mar 10 00:26:12 Yeah, that counts for something. Mar 10 00:26:30 groxx i bet you hated the day reader was OEL'd Mar 10 00:26:33 i never see purple links anymore Mar 10 00:26:36 DadFoundMy: Isn't there a "hide visited links" option? Mar 10 00:26:47 That's exploiting the vote system though. :p Mar 10 00:26:48 TacticalJoke: not that im aware of Mar 10 00:26:50 g00s: found newsblur. I like it better. Mar 10 00:27:11 when Google Reader eas EOLd i thought my life was over. weird thing, i just didn't find any replacement and don't read as much news Mar 10 00:27:12 TacticalJoke: is it though? i just upvote evrything i see lol Mar 10 00:27:43 I'm starting to understand why some posts have +5,000 and the top comment is "This is terrible. Who upvoted this?" :D Mar 10 00:28:09 I never got on well with RSS for some reason. Mar 10 00:28:12 i asked this before but a lot more people haev seem to gotten on. Does anyone know how google has the camera in a fragment in Messager? Mar 10 00:28:26 TacticalJoke: same i dont really use rss much Mar 10 00:28:34 I kinda feel the same way about Twitter. Mar 10 00:28:40 It's too short or something. Mar 10 00:28:45 TacticalJoke: same, went this long without it Mar 10 00:28:56 DadFoundMy: I do cameras in fragments. no problems here, aside from the normal camera problems. Mar 10 00:29:05 and normal fragment problems Mar 10 00:29:08 Though Twitter is particularly horrible. Trying to follow a conversation almost requires being a computer. Mar 10 00:29:16 groxx thats a lot of normal problems :D Mar 10 00:29:23 groxx: is there anything special you have to do? Mar 10 00:29:29 TacticalJoke: I suspect I don't twitter correctly. only follow 48 people, and I read every tweet. Mar 10 00:29:30 it just takes up like half the screen? Mar 10 00:30:14 Yeah, the tweets are easy enough. But have you seen the conversations? @FirstPerson @SecondPerson @ThirdPerson @FourthPerson this is some quoted text this is a reply Mar 10 00:30:14 DadFoundMy: if you're using a SurfaceView, you're in for a world of hurt if it doesn't essentially fill the screen (you can overlay stuff, but that's about it). use a textureview and it's like dealing with a normal view. Mar 10 00:30:38 yeah, twitter conversations reach a level of suck never seen elsewhere Mar 10 00:30:57 no branches to follow, it truncates the straight line at weird points, etc Mar 10 00:31:04 And like every reply has to have every name. And now and then a new name pops up. Argggggh. Mar 10 00:31:20 "Let's bring Richard Dawkins into this conversation!" Mar 10 00:31:28 groxx: you should see those conversations when they involve a bunch of whiny teenage girls bitching at eachother. probably why i never use twitter Mar 10 00:31:46 I unfollow people who tweet more than once or twice per day on average :) Mar 10 00:31:48 hello there! Mar 10 00:31:51 they'd be dropped in no time Mar 10 00:31:58 groxx: That's your secret. :D Mar 10 00:32:03 TacticalJoke: yup! Mar 10 00:32:25 I only reall follow grammar obsessives and philosophy people. Mar 10 00:32:28 really* Mar 10 00:32:28 it's why I'm stuck around 50 Mar 10 00:32:35 whats the best way to view an image fullscreen? should i jsut use google's library? Mar 10 00:32:36 primarily coders and friends here Mar 10 00:32:52 Though the grammar people post so much off-topic stuff. "Happy Internation Women's Day, everyone!" x 7. Mar 10 00:33:18 DadFoundMy: `` as the only view in the activity? Mar 10 00:33:31 i havea problem/question with fragments Mar 10 00:33:55 tksko: the latter does tend to create the former, yes Mar 10 00:33:55 groxx: thats what i was thinking, but is there an easy library to include zooming and panning? Mar 10 00:33:55 DadFoundMy: Do you subscribe to /r/tumblrinaction? I see a lot of that stuff. Mar 10 00:34:07 TacticalJoke: yup that and KiA Mar 10 00:34:12 ? Mar 10 00:34:25 DadFoundMy: there are some github projects that I've poked at, but not happy with any of them. wrote my own. Mar 10 00:34:35 groxx: care to share :D ? Mar 10 00:34:36 tksko: :) what's the question/problem? Mar 10 00:34:51 does picasso handle that sort of stuff? Mar 10 00:35:01 DadFoundMy: still pretty ugly. but yeah, I intend to when I finish the main release of this app. Mar 10 00:35:07 i am using this navigation form https://github.com/rathodchintan/Fragment-Back-Stack/blob/master/FragmentBackStack/src/com/chintanrathod/fragmentbackstack/MainActivity.java Mar 10 00:35:12 like this example Mar 10 00:35:23 hello how do i found out what version of google play services i have Mar 10 00:35:29 Picasso doesn't do ImageView zooming, no. Mar 10 00:35:35 sdk manager gives some rev. number but i need version Mar 10 00:35:53 I mean, like, pinch-zooming. Mar 10 00:35:58 I maintain a stack of fragments, i push or pop fragments from my stack and i call onPause and onResume when pop and push Mar 10 00:36:08 TacticalJoke: what about double tap? Mar 10 00:36:22 Nah, Picasso doesn't deal with that stuff. Mar 10 00:36:30 I think it's easy to create a zoomable ImageView, though. Mar 10 00:36:39 And there are various implementations which look good. Mar 10 00:36:44 the problem is when the MainActivity sleep and then recover (onPause and onRseume) Mar 10 00:36:54 tksko: ouch. tbh I think that implies a misunderstanding of fragments. when you remove them, they go through pause -> stop -> destroy. also the fragment manager has its own back stack which you could use instead. Mar 10 00:36:57 it calls all of the stacked fragments onResume Mar 10 00:38:12 ok i found it 10 directories down from extras/ Mar 10 00:38:20 feel like sdk manager should display it >.< Mar 10 00:40:35 ok i will try to use the fragment manager stack Mar 10 00:40:56 tksko: what are you trying to do here, btw? just show a single fragment at once? Mar 10 00:41:07 yse Mar 10 00:41:08 yes Mar 10 00:41:18 My acytivity has a navigation drawer Mar 10 00:41:38 tksko: you probably want to use transaction.replace(), and .addToBackStack(). that'll remove the old fragment, and when they hit back, bring it back. Mar 10 00:42:03 i want it everywhere, so the main actyivity has an "iframe" and i replace the content there Mar 10 00:42:09 i am currently using add method Mar 10 00:42:12 perhaps tahts the problem Mar 10 00:42:20 hello guys, question here: I'm building a custom TextView and i would like to recover the ID set on xml as plain string. How can i do that? Mar 10 00:43:09 tksko: it kinda depends on what you want. if you don't need the old fragment (unless they hit back), you probably want to use .replace() because it's essentially gone and done for. if it's likely they'll come back / you really don't want to destroy the old one, there's also .detach() and .attach(). Mar 10 00:43:38 tksko: but if you're not removing them, they're just eating up a bunch of memory / wasting CPU, when they aren't needed. Mar 10 00:43:56 abara: getId() Mar 10 00:44:03 yes , you are right Mar 10 00:44:09 abara: oh, you mean the name of the ID? Mar 10 00:44:18 groxx: yes. Mar 10 00:44:25 and waht about if i have custom logic on fragment.. for example a refresh every X seconds Mar 10 00:44:37 is the onPause() method called? Mar 10 00:44:56 so i can stop the timmer or do something else? Mar 10 00:44:58 abara: afaik you essentially can't. when the app is built, that's converted directly into the R.id integer value, the original string isn't saved anywhere. Mar 10 00:45:15 abara: if you _really_ need to, you can _guess_ by searching all the R values with reflection, but it'll be slow. Mar 10 00:45:35 tksko: in the "current" fragment, or one of the old ones? Mar 10 00:45:41 groxx: i see. well thanks Mar 10 00:46:15 nevermind, i can call a "custom" method before replacing the fragment on the transaction Mar 10 00:46:58 then when i recover the old fragment again, i made some inicializations... Mar 10 00:47:37 i am currntly using onPause and onResume to do stuff before the fragment is poped and when is pushed from the stack Mar 10 00:48:45 tksko: those will be called for you, fwiw. and by calling them directly, you may be messing up some of the underlying fragment's state information, since the transaction is asynchronous. Mar 10 00:49:06 i will try it and if i found any problem i will ask again Mar 10 00:49:11 thanks groxx Mar 10 00:49:35 tksko: np. fragments are unfortunately more complex than they first seem / than it seems they should be. good luck! Mar 10 00:50:42 what do you think about the new material design buttons? Mar 10 00:50:57 the floating buttons for "add" entities to a list for example Mar 10 00:51:04 i dont like the floating buttons :S Mar 10 00:51:21 i am stating a new app with some CRUD Mar 10 00:51:41 but i dont know if i will add floating action buttons.. or continue to use the toolbar actions Mar 10 00:52:07 I'm not totally sold. especially with the gharish neon pink over purple thing they tend to use in demos. but it has some merits. Mar 10 00:52:40 A lot of apps use them where they don't make sense. Mar 10 00:52:43 i am still using appcompat libraty for all android versions.. Mar 10 00:52:58 i used to set the minSdk to 8 or 9.... Mar 10 00:53:03 but know i am starting to use 14 Mar 10 00:53:13 for very-common things, say "compose new email", it doesn't really make sense to put them in the actionbar. and it's quite a bit easier to hit one-handed on phablets, because the actionbar is so far away. for _that_, I kinda like it. Mar 10 00:54:18 i need to find a compat library for floating actions in pre lolli Mar 10 00:54:21 (I say it doesn't make sense in the actionbar because it'll be grouped with other much-less-frequent things. it's no longer a first-class action. FAB does essentially solve that.) Mar 10 00:59:11 Hey guys! Big question on the link http://pastebin.com/AL0tKuY9 Mar 10 01:01:34 best snackbar library? Mar 10 01:02:04 i'm using nispok Mar 10 01:02:18 https://github.com/nispok/snackbar Mar 10 01:02:26 pretty good Mar 10 01:04:03 abara: http://developer.android.com/training/custom-views/create-view.html#customattr + layoutInflator.inflate(, this) <- inflate it into yourself (so, assumes you're customizing the parent view), which will preserve the layout info, unlike passing "null". you should almost never pass null. Mar 10 01:05:05 groxx: ok, and how can i get passed over the XML on the format of reference? "@layout/model_id" Mar 10 01:05:41 an getAttributeInt is enough? Mar 10 01:07:32 abara: you'll very likely need to pass that in through a custom attribute, which the first link shows both defining and using (right below defining). Mar 10 01:07:34 can i compade String "mode" like this mode.equals(@string/mode) Mar 10 01:09:02 abara: at the end of it all, people using your widget (including you) will need to have something like xmlns:whatever="http://schemas.android.com/apk/res/auto" + whatever:spinnerModel="@layout/blah" on your widget. Mar 10 01:09:17 hmmp: No. Mar 10 01:10:41 groxx: got it. Mar 10 01:10:56 groxx: thanks mate Mar 10 01:11:35 abara: good luck! the custom view tutorial is probably worth reading btw, though it doesn't cover everything :| Mar 10 01:15:58 What would we do without diff tools? Programming would be so much harder. Mar 10 01:16:33 heh. yeah, very glad to be programming now rather than before all this fun stuff :) Mar 10 01:16:44 granted, I'll probably think the same thing in another 10-20 years. Mar 10 01:19:22 this radiobutton stuff is really confusing. Am I supposed to first radiogroup.getCheckedRadioButtonId() and then compare that to radiobutton.getId() one by one to know which one that is? Mar 10 01:25:13 i hate when android studio gives you an R error when some xml is wrong Mar 10 01:25:20 it doesnt give you any information Mar 10 01:27:59 hmmp: Can't you just say this? switch (radioGroup.getCheckedRadioButtonId()) { case R.id.foo_radio_button: doFooAction(); break; /* etc. */ } Mar 10 01:34:11 in one activity i cant access my R file at all. any ideas? Mar 10 01:34:28 normally when AS gives me an xml issue i cant access it in any activity Mar 10 01:34:58 Maybe you need to import it. Mar 10 01:35:23 * DadFoundMy head desk Mar 10 01:35:30 TacticalJoke: thanks for saving me a few hours Mar 10 01:35:42 its alwayssss the little things i forget Mar 10 01:38:02 TacticalJoke: oh, yeah, of course. thx Mar 10 02:15:19 Whats the concensus on paid + ads versus ads + iap to remove ads Mar 10 02:23:33 desmin88: are you looking for optimal money or user experience? Mar 10 02:24:01 define both Mar 10 02:24:29 well do you want to make as much money as possible off the app, or do you value how users feel? Mar 10 02:24:40 both are valid but i think it warants two different answers Mar 10 02:25:13 i have a rather huge userbase(in the millions) so lets go with most money Mar 10 02:26:00 desmin88: than i think in app purchases would be your best bet considering those millions will be exposed to those iap no matter what Mar 10 02:26:05 im curious whats your app? Mar 10 02:26:22 not released yet Mar 10 02:26:46 Is it an app of a website? Mar 10 02:26:49 or similar? Mar 10 02:26:51 yes Mar 10 02:27:02 plus large social media outlet Mar 10 02:27:04 can i ask what site or is that too much info haha? Mar 10 02:27:05 outlets* Mar 10 02:27:16 the main site is http://www.ucatholic.com/ Mar 10 02:27:47 oh cool Mar 10 02:28:12 plus various facebook/instagram/twitter with thousands to millions of likes Mar 10 02:28:51 do you think free + paid two separate apps is better for the ux? Mar 10 02:29:40 This is mostly coming from an user perspective because im pretty new to android development, but i deffinetly prefer iap as a user Mar 10 02:33:43 part of the purpose of splitting the paid from the free is to split the reviews. for good or bad. dunno what'll make sense for you. Mar 10 02:34:34 groxx: oo i never even thought of that Mar 10 02:34:50 though I will parrot the old saying, "don't count your ARPU before your APK ships" :) Mar 10 02:36:06 Note to self, write good code instead of going back and making it look nice later Mar 10 02:36:26 finally release notes are up http://tools.android.com/recent/androidstudio12preview1 Mar 10 02:41:59 What do you guys think about Kotlin? Mar 10 02:43:34 wow, this is cool ... Silent Circle (Blackphone) is launching their own app store . apps must be reviewed for privacy - and there are multiple tiers of vetting Mar 10 02:47:32 Kamol: A lot of people like Kotlin here Mar 10 02:48:17 @CedricBeust: hahaha but why? Mar 10 02:49:24 because it's better than java Mar 10 02:50:01 Kamol: https://docs.google.com/document/d/1ReS3ep-hjxWA8kZi0YqDbEhCqTt29hG8P44aA9W0DM8/edit?hl=en&forcehl=1 Mar 10 02:50:28 everyone loves to quote jw's paper Mar 10 02:51:15 @CedricBeust hahaha Mar 10 02:51:18 thank you! Mar 10 02:51:44 pfn how you compare it to Scala? Mar 10 02:52:04 I don't care for kotlin Mar 10 02:52:21 it's a simpler language Mar 10 02:56:13 libraries and fp isn't as extensive Mar 10 02:57:58 pfn: sorry, what is "fp"? Mar 10 02:58:32 functional programming Mar 10 02:59:16 function pointer Mar 10 02:59:23 frame pointer Mar 10 02:59:52 Maybe if someone ported scalaz, it'd be more attractive to me **** ENDING LOGGING AT Tue Mar 10 02:59:58 2015