**** BEGIN LOGGING AT Fri Jan 03 02:59:59 2014 Jan 03 03:22:46 If I set a view to gone how come it still counts it in the .getChildCount Jan 03 03:22:49 Its still there? Jan 03 03:22:55 JakeWharton Before I forget: thanks for making Hugo so simple that even I can get in on this log action. Realized I had to start using them to figure out what's going on with my fragments, but finding this tool before actually doing one manually definitely feels like cheating Jan 03 03:35:51 Hey, when doing an http request from android to a web server, should I hash the user password before sending? Jan 03 03:36:29 s3b`: it's not necessary on an ssl connection Jan 03 03:37:08 k cool Jan 03 03:38:55 s3b`: never trust the client, any secret key you embed in your app, someone can pull out Jan 03 03:39:19 s3b`: do trust TLS though (https)... because we don't have anything better to use Jan 03 03:39:36 I'm talking user password for an account, which they would have to have typed in once for it to store Jan 03 03:39:53 salting etc is server side Jan 03 03:40:58 s3b`: yeah, just use https for that, everything is encrypted that way Jan 03 03:49:24 you shouldn't store a password Jan 03 03:49:28 but an access token if you can Jan 03 03:49:40 that way, if it's compromised; the user can issue a new token Jan 03 03:49:41 Eeeeeee: sweet. glad it helped! Jan 03 03:49:50 s3b`: ^ Jan 03 03:50:10 my access token is currently "token", but I'm planning to go back and fix that before release... Jan 03 03:50:25 That sounds like exactly the thing I'd forget to go back and check. Jan 03 03:50:36 lolol man Jan 03 03:52:08 can someone help w/ this--->http://forum.xda-developers.com/showthread.php?t=2595337 Jan 03 03:54:23 This channel is for app dev, not random app support Jan 03 03:54:51 ~tech support Jan 03 03:55:56 k Jan 03 03:56:01 It's so very satisfying to press delete on 20000 unread emails. Jan 03 03:57:00 jalcine: Access token? Jan 03 03:57:03 * s3b` google Jan 03 03:57:12 until u find out 2 hot chicks emailed u about "you know what" lol Jan 03 03:57:18 then its a bummer! Jan 03 03:58:04 s3b`: when you login with the password, the backend should return an lengthy token that uniquely identifies and authenticates the user. Jan 03 03:58:14 So you store and transmit that thereafter, not the password Jan 03 03:58:23 so just another field in the user db? Jan 03 03:59:03 I'm not sure what's the best implementation (a user might want to log in on different devices, each of which could have a different token) Jan 03 03:59:07 but kinda, yeah Jan 03 03:59:40 cool. Jan 03 04:00:26 I'm trying to figure out how to authorize that a rest call is coming from my app and not someone CURLing or something Jan 03 04:00:48 There's no way to guaruntee that. Jan 03 04:01:08 i read up on some api key stuff, but if it's stored in the phone that should be relatively easy to ge Jan 03 04:01:38 s3b`: that's a losing battle... you can obfuscate as far as you care to, but someone will always be able to reverse it if they want to Jan 03 04:02:01 I was thinking of having an api key, and hashing it with something in the rest call, and comparing those on server side Jan 03 04:02:20 s3b`: a hash of an API key is just an API key Jan 03 04:02:45 {key: "dgsafldsglasjlfas", hash: hash(key + username), username: "s3b"} Jan 03 04:03:15 s3b`: that's kind of what oauth tried to do... it doesn't do anything meaningful in practice, as someone can always pull out your key (and you need a timestamp and a nonce if you go that route too) Jan 03 04:04:03 s3b`: you end up with headlines like this: http://threatpost.com/twitter-oauth-api-keys-leaked-030713 Jan 03 04:04:32 haha Jan 03 04:04:33 damnit Jan 03 04:05:00 s3b`: another thing you're going to find is 'certificate pinning', which can be useful for other reasons, but also doesn't solve your problem (just as a heads up) Jan 03 04:05:44 s3b`: the 'right answer' is that you have your server be on the look out for things done with your API that you wouldn't want done, then you ban users (or IPs) based on those things Jan 03 04:06:05 yeah that'd make sense Jan 03 04:06:07 but you can never keep someone for writing a client to your web sevice if they want to badly enough Jan 03 04:06:44 i'm trying to prevent mass post spamming, I guess I can just look out for accounts posting too much Jan 03 04:06:56 yeah, that's much safer, because you can actually reliably control that Jan 03 04:07:07 much more detectable yes Jan 03 04:07:12 Yeah, it's probably way easier to do that all server side. Jan 03 04:07:28 not sure why that didn't cross my mind two days ago Jan 03 04:10:22 that happens Jan 03 04:10:29 s3b`: a lot of people seem to have trouble with this particular thing, i'm not sure why Jan 03 04:11:04 I feel like, for self learners, security is often skipped over because.. never get big enough to worry about it Jan 03 04:11:34 to add to Estel's comment on storing access tokens: I typically have them stored in a separate table so people could log in from multiple devices. Jan 03 04:11:57 initially, I made the stupid mistake of just whitelisting certain requests from apps and completely overlooked spoofing Jan 03 04:11:59 that was hell Jan 03 04:12:49 s3b`: owasp.org has some great references Jan 03 04:13:08 maqr: thanks Jan 03 04:13:33 This stuffs interesting, I just learned the other day how salting actually works Jan 03 04:14:16 * maqr hums a few bars of somewhere over the rainbow table Jan 03 04:14:29 Lots of hash algorithms add the salt automatically. Jan 03 04:14:30 ha Yeah Jan 03 04:14:52 password hashing ones, yes Jan 03 04:15:04 salt is worthless without enough repetitions, though Jan 03 04:16:29 Hello Jan 03 04:16:39 * Estel hoists the "Use bcrypt" flag Jan 03 04:17:02 aes-256, say what? Jan 03 04:17:25 I am in need of some pointers. Anyone care to help out a learning android dev? Jan 03 04:17:34 azindiedev519495: just ask :) Jan 03 04:17:47 Lol, thanks! Jan 03 04:17:53 you mostly shouldn't be aware of pointers in Java... Jan 03 04:18:15 badum-tisch Jan 03 04:18:58 boo Jan 03 04:19:08 I have a button that is used to add players to a dynamic ListView. The ListView needs to track player names, 2 checkboxes for penalties, and a score. Jan 03 04:19:21 I know I need a custom Adapter, but here in lies my issue. Jan 03 04:19:23 jalcine: says "don't know jack shit about encryption"? ;) Jan 03 04:19:38 How do i remove an android view? Jan 03 04:19:52 I have the button set to display an AlertDialogue, which prompts for player name. Jan 03 04:19:58 leeds: hah Jan 03 04:20:10 That part works. Jan 03 04:20:27 AndreYonadam: parentView.removeView(view) Jan 03 04:20:36 But when you hit "Done" it crashes my app. Jan 03 04:20:48 view.removeView()? Jan 03 04:20:51 Often easier just to set the visibility to gone though. Jan 03 04:20:52 check your stack trace Jan 03 04:20:58 Estel: Thanks Jan 03 04:22:15 how do I check my stack trace? Jan 03 04:22:39 azindiedev519495: are you using Android Studio or Eclipse? Either way, there should be a panel that says Logcat. Jan 03 04:22:41 sorry, as I said, I'm learning. Jan 03 04:23:34 Eclipse Jan 03 04:23:37 I do have Logcat Jan 03 04:24:38 It should show the stacktrace after the crash. Jan 03 04:24:40 p_l: lol :D Jan 03 04:26:10 let me re-run my app and check the Logcat Jan 03 04:26:18 jalcine: while symmetric ciphers had been used in the past for hashing... they are really not the best idea most of the time Jan 03 04:26:45 I was saying it for the lulz D: Jan 03 04:26:50 I honestly think it's an issue with my main activity to be honest. But I couldn't tell you where at in the code. Jan 03 04:27:02 azindiedev519495: that's where the stacktrace should point. Jan 03 04:27:32 should I copy my logcat to pastebin for you? Jan 03 04:27:52 If you like, but check it over for anything obvious first. Jan 03 04:28:43 okay, so first thing I see in red... "FATAL EXCEPTION: main" Jan 03 04:28:43 then a NullPointerException after that Jan 03 04:29:18 Then an issue with .GeneralAdapter.getCount Jan 03 04:29:24 If you look down the lines afterward, you ought to come to a line in your package. Jan 03 04:30:30 There is about 12-13 lines of errors Jan 03 04:30:50 Leeds you mostly shouldn't be aware of pointers in Java... HA Jan 03 04:31:16 would you be talking about "com.example..."? Jan 03 04:31:53 Well, GeneralAdapter.getCount sounds like it's your class? Jan 03 04:32:36 yes, that is my adapter class Jan 03 04:32:56 this is my first time messing with adapters so I'm really confused by it all lol Jan 03 04:33:24 What class does generaladapter extend from? And what's on the line indicated in the logcat? Jan 03 04:33:24 just looked at about 50 different message boards and pieced it together. So my adapter most likely isn't setup right for me Jan 03 04:33:54 after 2 months of this issue, I am really feeling hopeless haha Jan 03 04:34:05 2 months? Jan 03 04:34:08 yeah Jan 03 04:34:21 I'm a patient person. I try figuring things out through trial and error... lots of error Jan 03 04:34:25 most of the time it works out for me haha Jan 03 04:34:25 Pastebin your adapter maybe? Jan 03 04:34:53 logcat should point to exactly which line the nullpointer is on Jan 03 04:35:00 ya me too, until i got stuck on adapters and realized i needed to learn at least a little java. Jan 03 04:35:05 er cursors rather Jan 03 04:35:28 meh, you just need to wing it, copy and paste and modify till the red lines stop coming Jan 03 04:35:52 I am going to post my logcat to pastebin, so you can look at it. Jan 03 04:35:54 lol ^ Jan 03 04:35:56 make things quick and easy Jan 03 04:36:02 that's what i do, and when i mean learned java i learn the least amount possible Jan 03 04:36:24 haha Jan 03 04:36:31 that's how I feel when i'm using scala Jan 03 04:36:37 lol Jan 03 04:36:53 http://pastebin.com/0xrJfsPv Jan 03 04:37:15 azindiedev519495: com.example.farklescoreboard.GeneralAdapter.getCount(GeneralAdapter.java:29) Jan 03 04:37:17 azindiedev519495: the :29 after GeneralAdapter implies the error is on line 29 of that file. Jan 03 04:37:20 the number at the end is the line number Jan 03 04:37:27 now go find what's on line 29! Jan 03 04:38:15 i have a silly issue. i'm trying to write a very basic Glass app. i have a Service that controls a Livecard. i need to get wifi info from WifiManager and post results to the Livecard. how can i get info from WifiManager to the Livecard? Jan 03 04:38:18 azindiedev519495: After that, each line number shows where that function was called, so if you need to go "back in time" to figure where things went wrong Jan 03 04:38:31 maybe silly is the wrong word.. Jan 03 04:39:28 hopefully you can decypher that. I don't know how to read logcat very well. Jan 03 04:39:55 azindiedev519495: Me and Estel just told ya. your error is on line 29 on com.example.farklescoreboard.GeneralAdapter Jan 03 04:40:07 which you can see by the :29 if you read one line at a time Jan 03 04:40:16 lol Jan 03 04:40:28 I assume it's because you're trying to get the length of an array that hasn't been initialised or something. Jan 03 04:40:34 sorry lol chat didn't update right away Jan 03 04:40:35 return info.size(); Jan 03 04:40:49 azindiedev519495: you should pastebin the adapter. Jan 03 04:40:54 The error is saying info hasn't been created Jan 03 04:41:02 if you read it in order, line 1: "You have a fatal exception so we stopped", line 2: "you're getting a null pointer somewhere", line 3: litterally "at", line 4: where you're getting it at Jan 03 04:41:57 azindiedev519495: You should take a few min and learn logcat errors, i bet it'll shave a month of your 2 month patience :0) Jan 03 04:42:08 pastebining the adapter Jan 03 04:42:19 lol Jan 03 04:42:53 http://pastebin.com/XmJgcZyP Jan 03 04:43:54 I'm one of those "Dive right in and hope I don't drown" kinda people. I do it with everything I learn Jan 03 04:43:59 a few minutes off of our lives as well Jan 03 04:44:10 Did it with LAMP/wordpress and linux Jan 03 04:44:17 same Jan 03 04:44:21 php Jan 03 04:44:39 managed that okay, figured, eh what the heck, I can tackle java/android Jan 03 04:44:48 Kinda unrelated, but as you're working with an Array of strings, you should consider extending GeneralAdapter from ArrayAdapter rather than BaseAdapter - it would save you some boilerplate Jan 03 04:45:06 Okay, I will change that now Jan 03 04:45:21 You'd have to change the rest of the class too! Jan 03 04:45:39 Haha, I just saw that Jan 03 04:45:52 don't mind doing that if it is going to make my life easier Jan 03 04:46:36 There are some decent stackoverflow answers with example arrayadapter implementations Jan 03 04:47:01 Yeah, that's where I pulled this from. Jan 03 04:47:07 well stackoverflow Jan 03 04:47:14 lol not the arrayadapter Jan 03 04:47:24 Sleep time for me Jan 03 04:47:25 so much fish, but no rods Jan 03 04:47:29 good luck Jan 03 04:47:40 Thank you Estel Jan 03 04:47:59 I guess it doesn't help that I don't exactly know how the adapter works Jan 03 04:48:07 even though I have read up on it Jan 03 04:48:57 looking through all the tutorials it seems like nobody does Jan 03 04:49:17 I think it adapts to the array of results returned from the db Jan 03 04:49:18 brb Jan 03 04:54:41 azindiedev519495 btw I checked out a couple books which I didn't like much. Got this one recently and it's really good thus far. if you end up breaking down I definitely recommend it "Addison-Wesley Java - An Introduction to Problem Solving & Programming 6th edition" Jan 03 05:31:08 Haven't fucked around with Studio since like 0.2.X Jan 03 05:31:11 downloading 0.3.2 now Jan 03 05:31:15 hoping for some good improvement Jan 03 05:33:09 on .4 Jan 03 05:33:13 and it's solid Jan 03 05:33:48 0.4 is released? O.o Jan 03 05:34:27 released dec 19 it says Jan 03 05:35:14 mine only says update to 0.3.2 Jan 03 05:36:21 apparently i'm on the canary channel Jan 03 05:36:48 settings > update Jan 03 05:36:53 Ah, I found it Eeeeeee Jan 03 05:36:54 thats strange Jan 03 05:51:42 Hey lestat following me?? Lol Jan 03 05:51:51 lmao Jan 03 05:51:53 Wut Jan 03 05:52:12 no, I just see new channel names and I click dem links Jan 03 05:52:31 Stalked much.. lol Jan 03 05:53:06 Wow my ping is 700ms... Jan 03 05:54:02 I could fap in the time it takes to send a msg to the channel Jan 03 05:55:19 Wrong window omg!!! Jan 03 05:56:43 Mmmm sexy muff fluff Jan 03 05:56:49 called out on the stalk, rough Jan 03 05:56:57 Lol Jan 03 05:57:05 Im enjoying it Jan 03 05:57:08 xD Jan 03 05:57:33 I feel loved!!!! Jan 03 05:59:14 This is weird. Freenode just responded that my up is 127.0.0.1. Wtf Jan 03 05:59:22 Ip Jan 03 06:00:16 localhost.gg Jan 03 06:00:23 Lol Jan 03 06:00:33 Strange Jan 03 06:01:21 I need some dihydrogen monoxide. Jan 03 06:02:43 Anyone keep score on how many devices you have bricked?? Jan 03 06:03:46 a big fat goose egg Jan 03 06:04:23 I bricked a galaxy s2 by accident. Jan 03 06:04:44 not like you'd do such a thing on purpose Jan 03 06:05:21 Some people would... this is irc... Jan 03 06:05:35 right ...... Jan 03 06:06:12 Bash.org lmao Jan 03 06:07:46 People are strange in the underbelly of society known as irc Jan 03 06:09:08 * Flu77er does not inhale. Jan 03 06:09:14 If by bricked you mean kissing your phone passionately, then: 3 Jan 03 06:09:55 Or Jan 03 06:10:06 Hello, is there an app that can use my s4 as a wireless repeater? Jan 03 06:10:08 !bitwise Jan 03 06:10:30 Wrong channel, eh? Jan 03 06:17:31 Lol Jan 03 06:18:45 LOL Jan 03 06:18:48 ercaps Jan 03 06:20:08 Sigh Jan 03 06:20:13 Android Studio is really being a pain in the ass Jan 03 06:20:18 got 4.0 installed Jan 03 06:20:20 fixing errors now Jan 03 06:20:21 >.> Jan 03 06:21:11 haha Jan 03 06:21:25 Ass pain.??? Jan 03 06:21:27 I can't help but think it's my fault Jan 03 06:23:24 Brian|CS: use IJ :) Jan 03 06:24:54 i didn't even know wikimedia had a books website Jan 03 06:25:28 just stumbled across their amazing java book en.wikibooks.org/wiki/Java_Programming Jan 03 06:29:29 bankai_, I'd like to give Android Studio a chance though Jan 03 06:29:30 :S Jan 03 06:30:08 you did, it didn't work out between you two. now ditch that zero and get yourself a hero Jan 03 06:31:02 Have you tried aide?? Jan 03 06:31:29 lol Jan 03 06:31:39 if I considered 20 minutes an honest try I'd never succeed on anything Jan 03 06:32:00 True Jan 03 06:33:10 Compiles native c++ , java and xml Jan 03 06:33:31 Haven't tried it but looks promising Jan 03 06:35:41 Reviews are not too hot. But like they say opinions are like... Jan 03 06:38:00 * all_your_r00t_r_ belong 2 us Jan 03 06:40:00 Bad 80486 w/root access trip. Jan 03 06:40:57 ok dicking around with this is clearly just causing more problems Jan 03 06:41:01 fuck it, clean install of AS Jan 03 06:41:16 Got Arm?? Jan 03 06:41:27 Brian|CS: it's like a bad first date - you know more or less straight away it's not going to work ( hehe ) Jan 03 06:43:39 What ports do they have for the as? Jan 03 06:43:59 Run on mac... t ha t just seems wrong... Jan 03 06:45:12 Kindof like a win95 x 64.... Jan 03 06:50:22 I did something weird.. i have an old tablet so i wiped the os got tccboot and ported to arm. Then i got the Linus kernel 3.13 source got ubuntu and everytime it boots it compiles the kernel. Nothing like the smell of.a fresh kernel in the morning. Jan 03 06:50:37 God I have so many fucking USB devices charging lol Jan 03 06:50:43 Nexus 7, Nexus 10, GS3, Pebble Jan 03 06:51:06 I got bored lol. Jan 03 06:52:07 does anyone use adnroid studio? i wonder if it's best to leave installation under user app folder or force it to class program files folder Jan 03 06:52:14 classic* Jan 03 06:52:22 LOL Jan 03 06:52:43 is that so? Jan 03 06:53:07 Its really user preference Jan 03 06:54:02 And i was laughing at a private msg Jan 03 06:54:06 well, I would think it wouldn't matter; however, I was watching one of the videos on Plurasight and the instructor mentioned something regarding this subject, one of the messages on the screen mentioned that it could cause some problems down the line in development if it's not under program files on windows system, but he nevr explained why Jan 03 06:54:28 Fucking Gradle.... Jan 03 06:55:10 Never had any problems.. mine is on a 32 g thumb drive Jan 03 06:56:04 cool Jan 03 06:56:32 i'm new to android, so, i still have a milk mustache... i'm from a .net world Jan 03 06:56:33 lol Jan 03 06:56:45 Not to say that i wont but i haven't knock on wood Jan 03 06:57:06 ok, apparently issue will be fixed by updating to 0.4.0 Jan 03 06:57:07 supposedly Jan 03 06:57:07 :S Jan 03 06:57:37 i'm running 0.4.0, a few bugs, but very impressive Jan 03 06:57:57 Thats a four letter word brian lmao Jan 03 07:00:31 Ok, I think I finally updated to 0.4.0 Jan 03 07:00:34 Please Google pls Jan 03 07:00:59 Also, don't you just LOVE when there are issues in default .gradle? Jan 03 07:01:12 you need help Jan 03 07:01:23 whats it telling you Jan 03 07:01:29 In the default .gradle file? Jan 03 07:01:33 What error? Jan 03 07:01:34 delete .gradle Jan 03 07:02:05 it was an issue of it having something X.X.+ Jan 03 07:02:10 whereas it should be X.X.1 Jan 03 07:02:13 because .+ had issues Jan 03 07:02:14 lol Jan 03 07:02:16 ya lol Jan 03 07:02:59 I say just delete it all smoke a fat one and have a six pack Jan 03 07:03:12 guess i just need a six pack Jan 03 07:03:25 Its legal in co Jan 03 07:03:30 Lol Jan 03 07:03:38 Still illegal in federal jurisdiction Jan 03 07:03:42 which is technically everywhere Jan 03 07:03:44 :p Jan 03 07:03:45 might be illegal here but who's countin Jan 03 07:03:56 jeebus Jan 03 07:04:02 lol Jan 03 07:04:05 lol Jan 03 07:04:07 Also, plenty of things are illegal, doesn't make them any less popular (Speeding, drinking underage, etc) Jan 03 07:04:32 i drank under age... but i was in the military and wasn't sure if i was going to make to my 21st Jan 03 07:04:56 I hope that doesn't include jailbait Jan 03 07:05:07 went to bars very young.. i'm in louisiana after all Jan 03 07:05:11 flu77er: me too lol Jan 03 07:05:16 Lol Jan 03 07:05:32 lol Jan 03 07:06:07 In moving to co... Jan 03 07:06:10 Im Jan 03 07:06:24 Move to amsterdam instead Jan 03 07:06:50 The mecca for stoners. Jan 03 07:07:10 that's definitely what o Jan 03 07:07:13 i've heard Jan 03 07:07:51 Still illegal there they just don't care Jan 03 07:08:03 From what i have heard Jan 03 07:08:06 Nope Jan 03 07:08:11 It's legal there Jan 03 07:08:20 in the netherlands Jan 03 07:08:30 Not according to wiki Jan 03 07:08:43 what really? Jan 03 07:09:01 no Jan 03 07:09:12 it's still illegal there technically Jan 03 07:09:25 Thereee we go Jan 03 07:09:27 Finally Jan 03 07:09:28 pretty sure the cafes have to secretive and shit when buying Jan 03 07:09:31 Launched test app from AS Jan 03 07:09:32 :D Jan 03 07:09:36 be* Jan 03 07:09:36 Now we are cookin with gas Jan 03 07:09:54 lol i wouldn't celebrate too quickly Jan 03 07:09:54 What kind of gas? Jan 03 07:09:55 lol jk Jan 03 07:10:24 Anal methane? Jan 03 07:11:28 What's funny is the fact that in on an android device right now. Jan 03 07:11:31 Im Jan 03 07:12:15 flu77er: i'm pretty sure you are once to have anything todo with android dev app in your words. Why do you stay? just bored? Jan 03 07:14:12 Im actually working on an app right now and in here in case i have an issue and im bored Jan 03 07:14:16 he talked about it earlier Jan 03 07:14:42 I'm dicking around with some casual app dev right now, since I'm not sure what work projects I've got to work on cause everyones out for the holidays lol Jan 03 07:14:55 been lot of talking, bout random crap, just seems unproductive Jan 03 07:15:22 Programmers rarely are lmao Jan 03 07:15:40 i've had a problem i could have brought up Jan 03 07:15:45 what exactly is the purpose of fragments? is it basically to prevent us from switching from activity to activity for a different window? Jan 03 07:15:56 so we can switch windows within activity Jan 03 07:15:58 Besides this is irc. That. Just screams procrastination Jan 03 07:16:10 serious Jan 03 07:16:19 bkboggy, Fragments are hugely impactful in the creation of tablet optimized applications Jan 03 07:16:26 also, they are generally just pretty awesome Jan 03 07:16:38 Once you understand how to leverage them effectively, they are totally cool Jan 03 07:16:39 bkboggy: it's to fill/unfill portions of your app without having to switch activities. It's more dynamic&less stress Jan 03 07:16:52 Anyone here use IntelliJ/Android Studio? Is there a shortcut to auto import missing things? Jan 03 07:17:13 they're still useful in phones though? outside of tablet environemnt? ie, my Note 2 Jan 03 07:17:23 if you find it tell me Jan 03 07:17:27 bkboggy: stick with fragments Jan 03 07:17:37 Brian|CS, shift + a Jan 03 07:17:43 if that's what you mean Jan 03 07:18:23 doesn't do anything lol Jan 03 07:18:39 Eeeeeee, Damnit, you're not much help lol Jan 03 07:18:44 Try alt + f4 Jan 03 07:18:54 Lol Jan 03 07:18:57 i could google it for you if you like Jan 03 07:19:09 sorry it's Alt+Enter Jan 03 07:19:14 not shift a Jan 03 07:19:27 not sure why I thought of Shift+a... odd Jan 03 07:19:30 Eeeeeee, Seems to be alt enter possibly? Jan 03 07:19:32 no Jan 03 07:19:39 lol Jan 03 07:19:43 but Alt+Enter imports missing libraries and stuff... if that's the problem Jan 03 07:19:50 that creates a test Jan 03 07:20:24 hes talking about importing packages like in eclipse i believe Jan 03 07:20:41 yeah, alt+enter Jan 03 07:20:51 hes on android studio now Jan 03 07:20:53 yeah Jan 03 07:20:56 i'm too Jan 03 07:20:58 no clue then Jan 03 07:21:04 it's alt+enter, i swear Jan 03 07:21:05 not working on mine lol Jan 03 07:21:12 do you have 0.4.0? Jan 03 07:21:13 will check it out Jan 03 07:21:13 Eeeeeee, auto imports is alt + enter for me Jan 03 07:21:15 yeds Jan 03 07:21:18 maybe it's a windows specific thing though Jan 03 07:21:32 oh windows? Jan 03 07:21:40 are you on mac? Jan 03 07:21:44 had me trippin Jan 03 07:21:47 linux Jan 03 07:21:53 probably command+ something Jan 03 07:22:18 i don't have it installed on the mac book pro.. so, can't help atm with that, but windows is alt+enter Jan 03 07:23:07 i'm an equal discriminator, i have ubuntu, mac os and windows 7 & 8 at home, all have shit wrong with them, lol Jan 03 07:23:32 * flu77er thinks the distro might make a diff Jan 03 07:24:12 I prefer Linux by a large factor for most things, except gaming Jan 03 07:24:17 gaming i still can't get off Windows Jan 03 07:24:18 D: Jan 03 07:24:26 dual bootin ubuntu/7 Jan 03 07:24:35 ya and adobe Jan 03 07:25:03 I've got the same setup Jan 03 07:25:04 usually play counter strike was playin war thunder with friend what you play Jan 03 07:25:06 Ubuntu/Win7 Jan 03 07:25:08 Brian|CS, well, Valve will remedee that, right? Jan 03 07:25:09 heh Jan 03 07:25:13 bkboggy, Thats the hope Jan 03 07:25:16 Lol Jan 03 07:25:23 The new steamboxes are a huge step Jan 03 07:25:24 lol Jan 03 07:25:29 but it's all speculation at this point Jan 03 07:25:33 that doesn't stand for compsci? Jan 03 07:25:36 in your name Jan 03 07:25:42 It does lol Jan 03 07:25:59 what do you play on steam Jan 03 07:26:43 CSGO? Jan 03 07:27:19 truthfully, I love Windows and Microsoft... mad respect... people hate on them, but after using mac and linux, man... I got to give it to Microsoft, they try to cover a lot of bases and make a lot of things backward and forward compatible, which is rare in other environments (looking at you Mac OS...), but there's a problem with that... covering so many bases means spreading thin and creating lots of bugs... hopefully a dedic Jan 03 07:27:19 ated OS by Valve for pure gaming will fix that issue Jan 03 07:27:33 I never saw the point of more than 1 os per drive. I have 11 hdds with diff win/ Linux Jan 03 07:27:49 Eeeeeee, I play random shit. I used to play TF2, CS:S, CS:GO, etc. Jan 03 07:27:56 still play Garry's Mod occasionally with friends Jan 03 07:28:03 get out of here windows lover Jan 03 07:28:08 Dota 2, and a lot of single player RPGs Jan 03 07:28:08 ;) Jan 03 07:28:11 GO ON GIT Jan 03 07:28:14 jk Jan 03 07:28:23 Mostly I play Guild Wars 2 though Jan 03 07:28:31 I'm a .NET guy, what can I say.. heh Jan 03 07:28:33 loved xp only problem was BSOD Jan 03 07:28:39 pays the bills Jan 03 07:28:43 and if you know what BSOD is Jan 03 07:28:50 nope Jan 03 07:28:56 damnit Jan 03 07:29:01 blue screen of death lol Jan 03 07:29:02 rarely got it Jan 03 07:29:19 probably bad ram lol Jan 03 07:29:25 98 gave me that, i think i only had it once with xp Jan 03 07:29:32 on sp1 Jan 03 07:29:33 Anyone heard of the bsodomizer??? Jan 03 07:29:48 hey i'm gonna post a stacktrace and afterwards you guys are gonna act like i'm not a total newb Jan 03 07:29:49 reading now: http://www.bsodomizer.com/ Jan 03 07:30:09 Its funny. Jan 03 07:30:32 pretty funny, but it's just easier to create a service to screw with them when certain action is taken Jan 03 07:30:40 hahahahahahaha Jan 03 07:31:18 Yea. Jan 03 07:31:52 shoot... want to feel like a total noob, talk to some hardcore C guys... I know x86 and make me look like I just took CIS-1 Jan 03 07:32:11 http://pastebin.com/GHn5TcXg Jan 03 07:32:25 I'm learning Obj-c at the moment Jan 03 07:32:26 well i'm not sure if sqliteopenhelper uses the ui thread Jan 03 07:32:52 hmm Jan 03 07:32:55 db issues ha Jan 03 07:32:56 or if this SQLiteAssetHelper library I'm using is Jan 03 07:33:05 How do you price your applications? Jan 03 07:33:09 Decidie Jan 03 07:33:11 Decide Jan 03 07:33:17 so it's using a different thread then Jan 03 07:33:29 I met a cobol programmer back in the day and was lost Jan 03 07:33:36 hahah Jan 03 07:34:00 my boss only knowns fortran, want to feel lost? Jan 03 07:34:01 lol Jan 03 07:34:15 heh - did cobol for awhile Jan 03 07:34:21 I've won things doing x86 reverse engineering, thats about as hardcore nerdin out I can do Jan 03 07:34:44 80 columns i was like huh? Jan 03 07:34:53 damn, i haven't done anything impressive... just a few ... cwacks.. Jan 03 07:34:57 cwack cwack Jan 03 07:35:19 * capella prefers assembler language but, hey? This object oriented stuff is fun too :D Jan 03 07:35:43 learning x86 can get really boring, but it's nice to know it Jan 03 07:36:07 MASM ftw \o/ Jan 03 07:36:12 ;) Jan 03 07:36:23 I made a bsod usb stick once in asm Jan 03 07:36:25 or BAl360, or x6502, they're all cool Jan 03 07:37:05 Lol Jan 03 07:37:08 Booted to a bsod on power on Jan 03 07:37:09 i can only give one advice, don't learn it with this book: Assembly Language for x86 Processors (6th Edition) Jan 03 07:37:11 total crap Jan 03 07:37:16 I taught myself the basics of assembly and c to cheat in video games when i aws in high school Jan 03 07:37:18 i lost count of how many times i fell asleep Jan 03 07:37:26 lol Jan 03 07:37:32 so like Jan 03 07:37:36 now when my college peers struggle with it Jan 03 07:37:38 sounds about right Jan 03 07:37:39 i just facepalm Jan 03 07:37:50 lol Jan 03 07:37:57 Lol Jan 03 07:39:06 I studied pascal and c in hs... man im old Jan 03 07:39:26 Pascal! :o Jan 03 07:39:38 I know right Jan 03 07:39:43 heh, what next ? ADA? Jan 03 07:40:20 No object oriented pascal Jan 03 07:40:34 PL/1? APL? BASIC??? XD Jan 03 07:40:40 I did Ada at university Jan 03 07:40:51 Small market, govt stuff ;) Jan 03 07:41:09 got me a graduate job offer - which I didn't take - working on fighter plane avionics Jan 03 07:41:22 Cool! I was right :) Jan 03 07:41:26 yup! Jan 03 07:41:42 My parents got me a vtech comp toy that used basic in middle school.. lmao Jan 03 07:41:44 So I guess "small market" was kinda wrong in truth Jan 03 07:41:49 Leeds taught Jesus how to program Jan 03 07:42:08 I did the PDP-8 in high school Jan 03 07:42:09 Omg lmao Jan 03 07:42:33 Im not that old Jan 03 07:42:40 Once a hacker, always a hacker! Jan 03 07:42:55 we were on 8-bit micros at school... Jan 03 07:42:56 Yup Jan 03 07:43:27 Leeds, PDP was 3 bit bytes -heh- octal Jan 03 07:43:28 I member the macii Jan 03 07:43:38 heh heh Jan 03 07:43:42 if anyone here played WoW... https://www.youtube.com/watch?v=0yKqKg6DfTY Jan 03 07:44:20 Leeeerrrrrooooyyyyy jeeeeennnnkkkkiinnnssss!!! Jan 03 07:44:32 omg Jan 03 07:44:37 was gonna type it Jan 03 07:44:45 but i was like youre better than this Jan 03 07:44:56 lol Jan 03 07:45:09 Lmao Jan 03 07:45:28 Hearthstone has a leeroy card, not sure if anyone plays that. Jan 03 07:46:15 Six cop cars across the street... Jan 03 07:46:26 they there for leroy Jan 03 07:46:38 Lmao Jan 03 07:47:12 Probably im on freenode at work. Jan 03 07:48:02 It is a bar, so who knows. Jan 03 07:48:08 lol Jan 03 07:48:14 your work? Jan 03 07:48:40 No. I work across the street lol Jan 03 07:49:12 lol Jan 03 07:49:40 Meat wagon just showed up. Someone is going to jail. Jan 03 07:50:07 Happy New Year! Jan 03 07:50:13 now spread em Jan 03 07:51:09 Lmao Jan 03 07:51:12 lol Jan 03 07:51:43 Smoke break brb. Jan 03 07:58:09 ./join fap Jan 03 07:58:10 off to bed, gnight fellas Jan 03 07:58:13 Ops Jan 03 07:58:23 Night Jan 03 08:00:49 Hahaha Jan 03 08:01:08 you again ! Jan 03 08:01:15 :p Jan 03 08:01:32 hmm Jan 03 08:01:44 The topic of #fap is goatse id hit it.... wtf?? Jan 03 08:01:47 Now that I'm up and running on AS, it doesn't seem noticably different Jan 03 08:02:22 Than Eclipse? or plain intelliJ CE? Jan 03 08:03:15 they just break gradle everytime Jan 03 08:03:20 probably nothing else Jan 03 08:03:40 Than Eclipse Jan 03 08:03:49 although Jan 03 08:03:53 System.out.println("what would capella do?"); Jan 03 08:03:54 it does seemt o eat less resources Jan 03 08:03:58 holy shit did Eclipse eat my computer alive Jan 03 08:05:30 * leroy_jenkins buys android for dummies. Jan 03 08:06:03 MOVE "KILL THE BUGZ" TO PRINT-LINE-DETAIL. Jan 03 08:06:04 PRINT PRINT-LINE-DETAIL 4 TIMES AFTER ADVANCING 3. Jan 03 08:06:25 laughs - stupid COBOL Jan 03 08:06:43 Lol Jan 03 08:08:18 I prefer oopascal Jan 03 08:09:02 Does it do "GOTO"? If not, it's ok :) Jan 03 08:09:20 And I mean preferable Jan 03 08:09:52 Yea lol Jan 03 08:10:52 Kinda like basic on acid Jan 03 08:11:09 Like a squirrel on crack Jan 03 08:11:30 Or a spider on meth Jan 03 08:11:40 heh - can't miss all those GOTO 10's... Jan 03 08:12:12 It can goto hell Jan 03 08:12:15 Lol Jan 03 08:12:25 spider on meth? I read a SciAm article about the web spinning structures spun by arachnids under various influences Jan 03 08:12:39 Cool pictures ! Jan 03 08:12:39 lol Jan 03 08:12:47 what influences Jan 03 08:12:50 Omg lol i was joking. Jan 03 08:13:14 Cant remember, but like acid and heroin and crack and stuff Jan 03 08:13:16 cn't jokes about spiders on meth these days, i mean what are you gonna do Jan 03 08:13:29 and of course weed Jan 03 08:13:41 wow i'm tired typocentral Jan 03 08:14:12 Lol spider on crack.... Jan 03 08:14:40 * capella Do I really want to ruin a good Win7 partition and upgrade it to Win8.1? Jan 03 08:14:58 Um.... no Jan 03 08:15:09 I can resinstall 7 later :) Jan 03 08:15:16 *reinstall Jan 03 08:15:35 um no Jan 03 08:15:37 Why go through the trouble Jan 03 08:15:39 Might do a project for Metro Jan 03 08:15:54 Use vm Jan 03 08:15:58 worst shit ever Jan 03 08:16:11 cool capella Jan 03 08:16:11 Not in the project plans - Metro is the target :D Jan 03 08:16:36 ah g00s - you weren't supposed to see that :) Jan 03 08:16:48 I can see the applications for touch devices but not for pcs Jan 03 08:16:58 same Jan 03 08:17:25 but i feel like i've talked about this in here like 10+ times Jan 03 08:17:46 Well it's the combination of Win as a DEV machine vs. Win as a home shopping device Jan 03 08:17:47 Ill stick with xp and win 98 se... jk Jan 03 08:18:15 windows, it's a lifestyle choice Jan 03 08:18:18 As a dev I don't need a touch UI, I need to type Jan 03 08:18:30 I enjoy making my life miserable Jan 03 08:18:43 MS Had me up to Win7, but they have a vision issue these days Jan 03 08:19:09 And every dev I interface with was laughing at me :D Jan 03 08:19:16 Speech recog is all the rage theese days Jan 03 08:19:21 lol Jan 03 08:19:29 lost me at vista Jan 03 08:19:38 well lost me at msdos Jan 03 08:19:42 when i was like a kid Jan 03 08:19:42 Anyone using AS know where the createfromassets pulls from? Jan 03 08:19:42 dose someone here? Jan 03 08:19:44 like what path Jan 03 08:19:56 CP/M Jan 03 08:20:01 does someone konw how to use the webDAV? Jan 03 08:20:01 You had me at linux.. new catch phradet Jan 03 08:20:07 Phrase Jan 03 08:20:15 lol Jan 03 08:20:19 nope - it's phradet now Jan 03 08:20:48 Lmao. Typo of the year Jan 03 08:21:11 choose the sardine or JackRabbit ? Jan 03 08:21:12 help me Jan 03 08:21:23 capella: do you konw that? Jan 03 08:21:32 leroy_jenkins: and you ? Jan 03 08:21:37 "Oh! Did you hear the new phradet from the Chuck Norris film"? Jan 03 08:22:04 I loved jazz Jackrabbit ! Jan 03 08:22:18 That's going on bash. Jan 03 08:22:43 lol this guy in here Jan 03 08:23:22 Lol Jan 03 08:24:30 I need some hydroxyl acid. Jan 03 08:24:42 what is it Jan 03 08:25:03 Dihydrogen monoxide Jan 03 08:25:34 capella: do you use the jackrabbit on android? Jan 03 08:25:35 hydroxylic acid Jan 03 08:26:02 It's common Jan 03 08:26:16 Capellas got it. Jan 03 08:26:26 Lmao Jan 03 08:26:44 :P Jan 03 08:27:06 capella: please help me Jan 03 08:27:11 Sometimes it just falls from the skies. Jan 03 08:27:14 lol Jan 03 08:27:20 Eeeeeee: help Jan 03 08:27:23 :( Jan 03 08:27:40 What do you need? Jan 03 08:27:49 leroy_jenkins: me? Jan 03 08:27:57 Yes you. Jan 03 08:28:00 my rule of thumb is don't google chemical names i've never seen before Jan 03 08:28:06 okay, this is mad - I've lost a domain Jan 03 08:28:09 Lol Jan 03 08:28:10 zhouhuakang can you google |sardine versus JackRabbit| Jan 03 08:28:11 and i'm not much of chemist lol Jan 03 08:28:25 capella: ok Jan 03 08:28:30 I've got 3 godaddy accounts, 1 joker account, about 15 domains... and I can't find the one I need Jan 03 08:28:46 their ui has sucked forever Jan 03 08:28:53 heh, godaddy … Jan 03 08:29:01 Why do i need to? Jan 03 08:29:19 g00s: legacy :( Jan 03 08:29:20 capella: no result Jan 03 08:29:41 try bing? :p Jan 03 08:29:42 Just skip Ui and use ftp. Jan 03 08:29:50 sardine versus JackRabbit Jan 03 08:29:51 capella: google Jan 03 08:29:59 without the || chief Jan 03 08:30:03 what the fuck are you guys talking about Jan 03 08:30:08 sardines Jan 03 08:30:08 sardine can used in android? Jan 03 08:30:10 i don't fuckin know Jan 03 08:30:11 zhouhuakang what do you need? You have me confused Jan 03 08:30:23 Me to. Jan 03 08:30:30 i hava find a email list Jan 03 08:30:40 WebDAV - Jackrabbit Jan 03 08:30:44 said that the sardine is not suitable for android Jan 03 08:30:45 I could bat you around for a little while or try to help Jan 03 08:31:21 zhouhuakang I don't know what sardine is in that context unless I google it - what is it? Jan 03 08:31:50 Fish? Jan 03 08:32:02 Jackalope ! Jan 03 08:32:06 (snark :) ) Jan 03 08:32:20 jackalope likes sardines Jan 03 08:32:26 milk out nose Jan 03 08:32:28 Pink taco?? Jan 03 08:32:40 pink taco really? Jan 03 08:32:50 Lol Jan 03 08:32:53 llol Jan 03 08:32:56 heeeeere we go :) Jan 03 08:32:57 https://groups.google.com/forum/#!topic/sardine-dav/FuDE2fuInOU Jan 03 08:33:04 i have fine this Jan 03 08:33:11 thank god Jan 03 08:33:23 find this Jan 03 08:33:56 does it mean that sardine is not suitable for android development? Jan 03 08:34:06 capella: Jan 03 08:34:17 leroy_jenkins: Jan 03 08:34:39 * capella reading Jan 03 08:34:45 Still reading Jan 03 08:35:10 :) Jan 03 08:35:18 this may take me awhile Jan 03 08:35:24 :) Jan 03 08:35:38 maybe it's a java library but not suitable for android Jan 03 08:35:46 Test Suite Software? Jan 03 08:35:48 while they're doing it for you, tell me how you get these guys to help you that well Jan 03 08:36:09 thank you for your help Jan 03 08:36:12 leroy_jenkins: Jan 03 08:36:14 capella: Jan 03 08:36:21 Eeeeeee: ask me? Jan 03 08:36:29 out loud Jan 03 08:37:26 ah http://code.google.com/p/sardine/wiki/UsageGuide Jan 03 08:37:28 Looks to be an os issue probably 2.2 or higher maybe tls is not supported on some devices. Jan 03 08:39:46 capella: i also read that before,but i am afraid that it is not suitable for android Jan 03 08:40:12 ok ... sorry I can't help then Jan 03 08:40:25 dose someone have used the webDAV before? Jan 03 08:40:35 capella: thank you all the same Jan 03 08:40:44 leroy_jenkins: and you ? Jan 03 08:41:01 Check the usage wiki i don't have any exp with that library Jan 03 08:41:31 ok Jan 03 08:41:38 thank you all the same Jan 03 08:42:28 distributed authoring tool / shared publishing kinda yah - looks like a desktop thing Jan 03 08:45:52 Has some tls/ssl/ssh from what i see prolly needs 4.0 to work. If it would at all. Jan 03 08:46:39 anyone here use hugo? Jan 03 08:47:22 Hugo to funky town?? Jan 03 08:47:27 lol Jan 03 08:47:37 * capella . o O ( Do I still have to figure out what Jackrabbit was? ) Jan 03 08:47:57 I hope not. Jan 03 08:48:06 Yah, sardine was enough XD Jan 03 08:48:11 if that was a yes, do you put it on every method or just certain ones Jan 03 08:48:41 Eeeeeee: i use it Jan 03 08:48:46 lol Jan 03 08:49:00 eat your own dogfood eh Jan 03 08:49:06 JakeWharton: jackrabbit? Jan 03 08:49:15 Yah, all you facebook phone people Jan 03 08:50:00 * Josh_Wheaton Energize. Jan 03 08:50:02 best practice to add to all methods, or just ones you want to log Jan 03 08:50:09 just ones you want Jan 03 08:50:19 use sparingly Jan 03 08:50:21 ok thanks Jan 03 08:50:31 did you have an alert on hugo? Jan 03 08:50:38 i do Jan 03 08:50:44 JakeWharton: do you use the jackrabbit? Jan 03 08:50:45 you came out the wood works :P Jan 03 08:50:54 how about barra? Jan 03 08:50:58 ....... Jan 03 08:51:14 Leeds: yeah. it auto-plays the YouTube of him dancing Jan 03 08:51:55 what's hugo? Jan 03 08:52:00 Insert ascii rick roll here!!! Jan 03 08:52:08 storkme: https://github.com/JakeWharton/hugo Jan 03 08:53:53 Sounds useful. I try to use java only when necessary. Jan 03 08:54:44 Ah! I'm a fan of logging ... that's nice shorthand Jan 03 08:55:45 JakeWharton hugo .. as in Weaving ? Jan 03 08:55:46 that is delightful JakeWharton thanks. Jan 03 08:55:52 g00s: yes Jan 03 08:55:58 that's the package name Jan 03 08:56:00 lol Jan 03 08:56:01 quality JakeWharton as always Jan 03 08:56:02 ah Jan 03 08:56:18 Maybe it could be made to start stop detail logging or something around blocks of interesting code Jan 03 08:57:28 Could be set to monitor certain connections or variables? Jan 03 08:57:45 in theory, yes Jan 03 08:57:59 i'm not a fan of scope creep, though Jan 03 08:58:05 out of interest how does it prevent the runtime code running out of debug mode? does the gradle task only run hugo in debug mode? Jan 03 08:58:19 storkme: correct Jan 03 08:58:30 ok. Jan 03 08:59:19 What if it was designed as a speechless and the program fell below it? Jan 03 08:59:30 Super c lass Jan 03 08:59:32 should i get more familiar with java before trying out some of these libraries, or Jan 03 08:59:38 I'm looking at butter knife Jan 03 09:00:08 There's not too much to get. These are very small, purpose-built libraries that do one thing only. Jan 03 09:00:23 so i've spent the last hour reading up about java 8, now I want to quit android until they support it. :/ Jan 03 09:00:53 storkme: install and play around with it on the desktop and you'll really want it Jan 03 09:01:14 doing a project it at the moment. Lusting so hard. Jan 03 09:02:39 Jake... like if i needed to log a connection i could wrap it in the debug class so in looking down and not across scope? Jan 03 09:03:07 Josh_Wheaton: i don't know what you mean by that. it logs the entrance and exit from methods only Jan 03 09:03:20 or are you asking a general question? Jan 03 09:04:12 In more of a general sense. Logging all activity from a method. Jan 03 09:06:44 Like a verbose console output but slightly more selective and controlable Jan 03 09:08:03 all on-the-fly var assignments and indented to match the code or something? Jan 03 09:08:23 :) just do magic stuff Jan 03 09:09:22 magic stuff? Jan 03 09:09:42 I r lost Jan 03 09:11:18 Am i making ny sense? Jan 03 09:12:08 that was you this whole time Jan 03 09:12:39 Who me? Jan 03 09:13:13 ole leeroy Jan 03 09:13:26 Yea lol Jan 03 09:13:49 Surprise Jan 03 09:15:08 That's Mr Jenkins lmao jl Jan 03 09:15:09 Jk Jan 03 09:15:40 if you put the sardine in your ear, it will translate your running program to audible logging Jan 03 09:16:09 That's a babelfish Jan 03 09:16:21 :) Jan 03 09:16:23 Not a sardine Jan 03 09:16:30 sardine works too Jan 03 09:16:36 Lmao Jan 03 09:17:08 Im not sticking that thing any where!!! Jan 03 09:18:03 Hmmm. Might wanna reword that... lol Jan 03 09:18:34 hey guys! Jan 03 09:18:36 using gradle, is there any api to exectue commands on connected devices? I would like to uninstal the app programmatically Jan 03 09:19:37 I still can't understand how to use Gradle ... :-( Jan 03 09:19:57 I dunno not something I've ever looked into. Jan 03 09:19:57 where you stickin that sardine Jan 03 09:20:12 L Jan 03 09:20:15 Is Gradle something like Visual Build Professional? Jan 03 09:20:15 O Jan 03 09:20:19 Lol Jan 03 09:21:06 Nowhere eeeeee. Jan 03 09:22:00 Except in the trash. They are nasty. Jan 03 09:22:43 * capella can't speak re: Gradle ... I haven't had to use it Jan 03 09:23:22 My location: Kansas City, United States Jan 03 09:23:47 Wtf???? Jan 03 09:23:51 hahahaha Jan 03 09:24:04 That's not cool!!! Jan 03 09:24:08 i'm gonna get the android dpi scaling factors tattooed to my body so i never forget Jan 03 09:24:36 dedication! Jan 03 09:26:18 I have 3.141569 on my ass. I was drunk and i just passed finals that day. Jan 03 09:26:30 lol Jan 03 09:26:53 Not my finest hour Jan 03 09:27:18 flu77er: proof photo or that never happened Jan 03 09:27:20 yeah i've done like a billion times worse, you're fine Jan 03 09:27:32 pics or never happened Jan 03 09:27:47 In at work... lol Jan 03 09:27:54 mugshot or lies Jan 03 09:28:13 Ill have to do it when i get off Jan 03 09:28:19 should have had it in the cloud Jan 03 09:28:40 Oh no.... Jan 03 09:28:56 Don't want that getting out. Jan 03 09:29:02 hahaha Jan 03 09:29:06 so an xxhdpi action bar icon is 96pxx96px right (with a 72x72px visual square) ? Jan 03 09:29:26 I'm 99% sure Jan 03 09:29:32 but I saw somewhere say it was 144x144 Jan 03 09:29:56 Depends on screen size Jan 03 09:30:46 Tablets with larger screens will look funny Jan 03 09:31:21 With micro icons or huge ones. Jan 03 09:33:31 <[E]sc> I'm a complete noob at this programming for android, but is Eclipse supposed to suck up so much RAM? it used up 20% of it,... I'm not sure if it's because i'm running it on Linux or is this a normal situation. It causes everything to lag, including the changing perspectives, debugging, launching the emulator, which also grabs another 15-20% RAM. Jan 03 09:33:38 Xxhdpi is scaleable but on a tablet with hdmi out a 144x144 looks weird on a 60 inch tv Jan 03 09:34:32 Schoentoon: all java programs have a fixed memory limit specified at the command line or launcher Jan 03 09:34:33 maybe Jan 03 09:35:23 sorry, [E]sc -- autocomplete failure. Jan 03 09:35:23 [E]sc eclipse shouldn't take more than 500mb Jan 03 09:35:47 yes, the memory limit set for eclipse is 512 MB for heap; though that means there's the permanent heap and other small shit like that on top of it Jan 03 09:35:51 make it about 700 MB and I agree Jan 03 09:36:27 my eclipse install usually used about 350-560mb Jan 03 09:36:35 err, 350-450 Jan 03 09:37:47 I give IntelliJ 3 GB of RAM but it never wants to use it all. Jan 03 09:37:58 good guy intellij Jan 03 09:38:04 <[E]sc> Thanks g00s & alankila. I'm not sure why it sucks up RAM like there's no tomorrow on my computer. I didn't go through the normal repository but via the eclipse & android website to install. Not sure if that is what's causing the problem? Jan 03 09:38:04 the fact it might never grow past a point is just because the periodic GC cycles may free enough heap before it has chance to grow to that point Jan 03 09:38:06 yeah but i want it to use it all Jan 03 09:38:10 I see this issue when runtime of apps on my pi running android 4.0 Jan 03 09:38:12 unused RAM is wasted RAM Jan 03 09:38:12 IIRC java programs run a GC at least once a minute Jan 03 09:38:17 true enough Jan 03 09:38:44 [E]sc: you haven't even given us numbers. 20 % could be 20 % of say 2 GB, approximately 400 MB. That would be fairly normal. Jan 03 09:39:32 I use like 5% but i have 8gb Jan 03 09:40:57 Off topic question. Jan 03 09:41:06 finally Jan 03 09:41:08 jk Jan 03 09:42:03 What Linux distro is good for 8 core amd? Jan 03 09:42:27 uh Jan 03 09:42:37 trick question, any distro Jan 03 09:43:27 use Ubuntu. Make all sys admins hate you. Jan 03 09:43:53 I have had trouble with fedora recognizing my processor Jan 03 09:44:06 Fx 8350. Jan 03 09:44:20 Counts as single core Jan 03 09:44:48 recompile the kernel Jan 03 09:45:01 menuconfig ftw Jan 03 09:45:46 I have it set up to recompile at boot time. Jan 03 09:46:02 Using 3.13. Jan 03 09:46:07 JakeWharton: it's not reasonable to give more memory to an application than it needs. One of the problems is that the GC cycles take longer to do, and this tends to have a pause effect Jan 03 09:46:29 if 300 MB is enough, but you give it 3 GB, you enjoy 10x longer pauses at 1/10 frequency, because the fundamental GC workload is the same Jan 03 09:46:51 however the 10x pause may be several seconds long, whereas the split-second pause at 300 MB might not be noticeable Jan 03 09:46:59 <[E]sc> ahh alankila ... sorry about that. The eclipse sucked up just over 700mb of RAM.... Jan 03 09:47:59 Remember when 256mb was more than enough?? Jan 03 09:48:43 80486 had 16mb and we were like omg that's huge Jan 03 09:48:51 [E]sc: sounds normal. that is because of the 512 MB working heap and some other pools which add up to about 700 MB. The general rule of thumb seems to be that add 50 % on top of heap size to get the final maximum size of the java program Jan 03 09:49:04 lol yeah, pretty sure it wont be long before we have 256GB lol Jan 03 09:49:27 I know... lol Jan 03 09:49:39 [E]sc: in my experience, eclipse rarely actually uses over 256 MB of memory internally -- if you like, you can shrink the heap in the launcher's config Jan 03 09:50:14 though I'd probably not go under 300 MB. It's a matter of project size and number of plugins and shit like that. It's a platform and platforms are kinda vague when it comes to memory usage, it depends on what the platform is used for Jan 03 09:50:41 just like you can't say how much RAM you should fit into a physical computer you buy, other than "as much as you can afford" Jan 03 09:50:47 i always grabbed the platform runtime and added ADT, which resulted in the smallest footprint ;) Jan 03 09:50:54 unless you have a fixed task in mind and can calculate what it must be able to do with Jan 03 09:51:05 Todays phones have 16mb of ram Jan 03 09:52:18 <_genuser_> have some design decisions. anybody care to think about it? Have a list of classes. Each class has a list of sections. Instead of creating a class obj with List and storing a main List. thinking of just doing List each obj can be class or section. that way it will be a linear list. Jan 03 09:52:43 <_genuser_> so list contents would be class1,sec1,sec2,...,secN,class2,sec1,sec2,sec3.... Jan 03 09:53:32 ..... Jan 03 09:53:33 <[E]sc> thanks alankila. This makes me feel a lot more sure of my computer's abilities. Guess it's time to upgrade to 1TB of RAM hahaha Jan 03 09:54:31 But what can your board handle... that's the big question. Jan 03 09:55:42 I can't remember the max on mine... i think maybe 32gb Jan 03 09:56:17 16 Jan 03 09:57:04 <_genuser_> anybody got ideas? Jan 03 09:57:06 Just other considerations to bear on mind Jan 03 09:57:58 Sounds like a preference. Is anyone else going to be editing this code Jan 03 09:58:48 If not i say do what is easiest for you t o implement Jan 03 09:59:03 <_genuser_> flu77er: that's for me? Jan 03 09:59:18 Yes sorry Jan 03 09:59:29 <_genuser_> flu77er: thanks for responding. Jan 03 10:00:29 <_genuser_> I guess I could implement an ExpandableListAdapter and it will be done properly. but on teh other hand, as long as I do order by correctly on my sql statement, it should all be in order. Jan 03 10:01:08 <_genuser_> hehe, later expansion could pose problems. otherwise, guess you're right. if no one else is gonna read it.... Jan 03 10:02:46 I think i have a problem. 900 ms pings Jan 03 10:03:37 Sorry if im delayed Jan 03 10:03:46 i Jan 03 10:03:50 'm right there with you Jan 03 10:04:10 <_genuser_> hehe, no worries on delays. Jan 03 10:04:23 ?? In ping time or me being slow? Lo Jan 03 10:04:24 Lol Jan 03 10:04:49 <_genuser_> I spend days sometimes thinking about how to implement somethign that then takes 1hr to impleemnts. Jan 03 10:05:22 That's called being a programmer Jan 03 10:05:22 <_genuser_> lol, no worries on either. It's a free choice statement. :p interpret as you wish. Jan 03 10:05:37 probably saving time in the long run Jan 03 10:05:45 Lol Jan 03 10:06:08 <_genuser_> yeah, agonizing over something and deciding one way help in the future. there's a goto solution ready. Jan 03 10:06:35 <_genuser_> my boss always says, who cares about design. just implement what crap needs to go in there. Jan 03 10:07:00 <_genuser_> then days later he thanks me for taking to time to keep is extensible and human readable. Jan 03 10:07:01 Must work for m$ Jan 03 10:07:24 get to it Jan 03 10:07:47 Lmao Jan 03 10:07:51 <_genuser_> no we work work on T&M basis. so hours=money. and customers tend to order more services as they move along. Jan 03 10:08:11 <_genuser_> helps to keep them happy so they order more. which makes my boss say who cares, just patch it with if-elses. Jan 03 10:08:29 Oh damn... Jan 03 10:08:39 Lol Jan 03 10:09:05 <_genuser_> when the customer see a shiny interface, they have no clue off the clutter behind it. Jan 03 10:09:24 <_genuser_> makes me wonder what the latest offering from any vendor is hiding behind flashy colors. Jan 03 10:09:48 I don't like doing that. I just end up looking at my own code Like who the f wrote this... oh wait Jan 03 10:10:10 <_genuser_> right, I have moments when I hope noone sees the code. Jan 03 10:10:27 <_genuser_> but sometimes, I implement whatever crap he wants. and between projects, I'll refactor it. Jan 03 10:10:30 why uninstallAll works just if you have one device attached? :S Jan 03 10:11:12 ???? Jan 03 10:12:58 I tried writing code high once.... didn't go so well. Jan 03 10:13:09 cocaine does wonders. Jan 03 10:13:26 Lmao Jan 03 10:13:33 Facepalm Jan 03 10:13:52 wtf is this // IntelliJ API Decompiler stub source generated from a class file Jan 03 10:14:16 <_genuser_> don't know about cocaine. Jan 03 10:14:21 Seems like it has a stubby! Jan 03 10:14:22 <_genuser_> used to write drunk, was a lot of fun. Jan 03 10:14:38 <_genuser_> c++, cheap malt liquor, star trek.... Jan 03 10:14:40 <_genuser_> college days. Jan 03 10:14:45 my file disappeared Jan 03 10:15:08 The input or the output? Jan 03 10:15:20 i wrote my last app mostly drunk Jan 03 10:15:22 came out okay Jan 03 10:15:28 except for the crashes Jan 03 10:15:32 but hey it works on my phone Jan 03 10:15:39 do they come out better drunk or sober ? Jan 03 10:15:42 That's what she said. Jan 03 10:15:45 <_genuser_> if you wrote it for yoruself, that's all that matters. Jan 03 10:15:53 little bit of both Jan 03 10:16:08 not entirely for myself Jan 03 10:16:13 <_genuser_> I haven't published my apps thru the market place. Jan 03 10:16:18 <_genuser_> I'm sorry ,I meant google Play. Jan 03 10:16:27 <_genuser_> as if that's better than "market place". Jan 03 10:16:37 Lol Jan 03 10:17:07 <_genuser_> you know if you're trying to install and you're thinking mobile phones have markets..... well you'll never think of "Play" coz it sounds like a game hub. Jan 03 10:17:22 <_genuser_> now there's an example of writing code being high that didn't pan out .... Jan 03 10:17:40 play games play music play store Jan 03 10:17:49 I wonder if there's a android port of the original pong Jan 03 10:18:13 <_genuser_> play magazines... see what I mean? writing code high didn't pan out. Jan 03 10:18:31 playboys Jan 03 10:18:39 Lmao Jan 03 10:18:49 <_genuser_> Playboys? or Play Boys? Jan 03 10:18:57 <_genuser_> you gotta clarify this is important. Jan 03 10:19:03 playgirl Jan 03 10:19:10 Michael Jackson? Jan 03 10:19:24 why we gonna move it to pm depending on my answer Jan 03 10:19:27 lol Jan 03 10:19:33 Catholic priest? Jan 03 10:20:02 Is that where this is headed? Jan 03 10:20:35 lol Jan 03 10:20:59 Donkeybox??? Jan 03 10:21:00 Unable to load the uploaded image in a server. Jan 03 10:21:34 Sounds like a name for a shock site. Jan 03 10:21:50 cuntpunch Jan 03 10:22:33 Wow Jan 03 10:23:29 Www.cuntpunch.org Jan 03 10:23:34 lol Jan 03 10:23:38 people hate that word Jan 03 10:23:45 the big c Jan 03 10:24:29 Forbidden. Do not have access to this server. Lmao Jan 03 10:24:41 stay classy guys Jan 03 10:25:08 Someone didn't configure apache Jan 03 10:26:29 I am so tired. What time is it where u are eeeeeeee? Jan 03 10:26:56 morning early Jan 03 10:27:15 Same here Jan 03 10:27:33 And cold. With snow Jan 03 10:28:09 yeah i'm freezing, but probably warm compared to you Jan 03 10:28:10 In mother Russia code program you!!! Jan 03 10:29:11 hahaha Jan 03 10:29:34 Says 9 degrees feels like negative 5 Jan 03 10:29:59 wow Jan 03 10:30:53 Did u hear... Jan 03 10:31:06 Snow white got fired Jan 03 10:32:42 if I'm using master detail fragment on tablet Jan 03 10:33:19 I think I'm opening the database more than once Jan 03 10:34:30 That could be an issue. Are you getting duplicated data? Jan 03 10:35:03 The activity is dying Jan 03 10:35:39 Sql? Jan 03 10:36:36 stupid question incoming Jan 03 10:37:05 Um... k shoot Jan 03 10:38:36 Or was it me that asked the stupid question. Jan 03 10:38:50 no Jan 03 10:39:32 K Jan 03 10:40:06 A/s/l. There now ask away Jan 03 10:40:15 lol cyber? Jan 03 10:40:38 Lol Jan 03 10:40:51 nm don't know what I'm doing wrong Jan 03 10:41:22 * capella too ... much ... snow ... Jan 03 10:41:40 I personally open databases multiple times Jan 03 10:41:54 one very nice feature of sqlite is writeaheadlogging which allows writers and readers act concurrently Jan 03 10:42:10 so you can make a large transactional update which doesn't disturb the UI Jan 03 10:42:13 Neither do i ... if your accessing an sql u can check the log file for errors on that end. Jan 03 10:43:20 and provides rollback Jan 03 10:44:02 To narrow down the problem. But it the. Activity is dying. Is this during update or init? Jan 03 10:44:05 using a contentprovider and a loader Jan 03 10:44:26 the database is large Jan 03 10:45:05 if I want to re-start Activity with just the same intent extras as it was started with - how do I get the intent the activity was started with? Jan 03 10:46:16 Sounds like a home button. Jan 03 10:46:54 Restart with same content. Jan 03 10:47:03 osmij_: in Activity: public Intent getIntent() -- Jan 03 10:47:03 Return the intent that started this activity. Jan 03 10:49:22 An goos Jan 03 10:49:32 Wb g00s Jan 03 10:49:43 bah Jan 03 10:49:45 :) Jan 03 10:49:57 lol Jan 03 10:50:57 I was being nice. Jan 03 10:52:47 I have that song stuck in my head eeeeee.... tell me lies tell me sweet little lies.... Jan 03 10:54:32 I need a new phradet. Jan 03 10:54:34 dunno it lol Jan 03 10:54:56 shouldn't have hacked this code together Jan 03 10:55:22 * flu77er recommends YouTube Jan 03 10:57:02 Thinking of an android vi.rus that give you. Bsod!!! Jan 03 10:57:32 lol Jan 03 10:57:52 Like win98 style. Jan 03 10:57:59 on capped bandwidth. need to learn to debug better anywa Jan 03 10:58:40 Me or you? Jan 03 10:58:56 me Jan 03 10:59:02 phradet :p Jan 03 10:59:26 Lol it was a typo. Jan 03 10:59:44 yah but will forever remember it Jan 03 11:00:18 If i see that on bash in coming after you. Jan 03 11:00:59 Lol Jan 03 11:08:04 I need a life Jan 03 11:08:08 same Jan 03 11:08:09 3 Jan 03 11:08:41 Oh cool pings down to 80ms Jan 03 11:10:31 Lol Jan 03 11:10:48 how can i change to design in fragment layout xml? Jan 03 11:10:55 at the bottom theres no design/text Jan 03 11:11:32 but when i switch to activity_main.xml there is. Jan 03 11:12:15 i haven't got them to show in designer either Jan 03 11:12:32 isn't it the activity you're designing? Jan 03 11:13:12 Aide on droid devices shows them... Jan 03 11:13:39 Eeeeeee: well getting started but the 'hello world' text is in the fragment so i thought i need to put widgets on it Jan 03 11:14:00 just cause once i put a switch on activity and it crashed Jan 03 11:14:07 I'm probably at the same level you aare Jan 03 11:14:35 i see Jan 03 11:14:43 except more lost Jan 03 11:17:32 I use it because it will interface directly with github and its more to the point easier to design with. And you can test apps directly on the target device Jan 03 11:17:57 After compile. Jan 03 11:22:29 I need to learn git dammit Jan 03 11:22:56 It's eating mercurial Jan 03 11:23:09 do you know anything? Jan 03 11:23:20 about git? Jan 03 11:23:22 they have a 15 minute tutorial thats pretty good Jan 03 11:23:25 ya Jan 03 11:23:51 yah, no ... just worked with mercurial and got used to it Jan 03 11:23:52 theres an interactive one at a github site Jan 03 11:24:08 ya that one Jan 03 11:24:22 that codeacademy or whoever it was made Jan 03 11:24:23 http://pcottle.github.io/learnGitBranching/ Jan 03 11:24:41 also http://try.github.io/levels/1/challenges/1 Jan 03 11:25:10 that's the one i believe Jan 03 11:26:07 Thanks, I'll do some more reading :) Jan 03 11:32:10 is there any way to send android notifications from a website? Jan 03 11:32:37 dear lord no Jan 03 11:32:38 cloud messaging Jan 03 11:32:53 from server rather Jan 03 11:32:57 i think Jan 03 11:33:10 ah right Jan 03 11:33:31 permissions involved Jan 03 11:47:13 eureka Jan 03 11:48:00 epiphany? Jan 03 11:48:30 his bath is overflowing Jan 03 11:48:44 oh dear Jan 03 11:52:04 lol nope closer enough for a minicelebration though lol Jan 03 12:07:08 I got to say that now that I updated eclipse a few weeks ago, and I just installed the j2ee thing, my god it's loaded with crap again. Takes a long time to start. Jan 03 12:12:42 In back!!!!!! Jan 03 12:14:22 Mmm pube pie.... Jan 03 12:15:44 fuck i'm getting coffee Jan 03 12:22:15 #freeloaders Jan 03 12:23:05 webDAV the library for android? Jan 03 12:23:12 who knows? Jan 03 12:23:16 you again ! Jan 03 12:23:19 lol Jan 03 12:23:20 yeah Jan 03 12:23:25 was bout to say same Jan 03 12:23:35 XD Jan 03 12:23:43 capella: i can not find a good library Jan 03 12:23:47 capella: sorry Jan 03 12:24:13 Good luck though :) Jan 03 12:24:25 capella: thank you Jan 03 12:25:30 maybe i should try the maillist to solve my problem Jan 03 12:28:04 is there a good way to deliver changes to an earlier activity to check for changes without abusing onResume? Jan 03 12:36:37 time to fix this mickey mouse bullshit Jan 03 12:37:09 i got my breaktfast club fingerless gloves Jan 03 13:08:35 well this is fun Jan 03 13:10:32 apparently there's no way to test subscription purchases Jan 03 13:12:54 can someone help me with http://stackoverflow.com/questions/20889469/tabhost-not-showing-anything-at-all ? Jan 03 13:24:39 I can tell you not to use tabs since they're horribly deprecated, but that's about it. Jan 03 13:29:13 Anybody familiar with force closing widgets when you resize them? Jan 03 13:29:28 I don't see anything in logcat Jan 03 13:47:03 Rating? http://gyazo.com/760fa307c4a64171e90a5a2419971770.png What would you change? Jan 03 13:50:27 lov, from your view code looks right,tho? Jan 03 13:51:49 can i just delete the fragment if i dont need it? i simply activity is more than enough for me Jan 03 13:54:38 if you like Jan 03 13:58:56 webDAV library for android? Jan 03 13:59:07 who knows? Jan 03 13:59:52 google it bro Jan 03 14:00:41 google told me http://stackoverflow.com/questions/5581431/implementation-of-webdav-client-on-android Jan 03 14:01:22 ;D Jan 03 14:01:37 ah heck - that page has sardine on it Jan 03 14:01:52 heeeeeeeeeeere we go :p Jan 03 14:06:53 Good morning! Jan 03 14:07:21 What is better. (When working with a long polling tcp connection). Waiting to recieve a push from the server or sending a push to the server? Jan 03 14:07:40 (Battery, Wakelocks, Performance) Jan 03 14:09:50 helicopter88: I didn't even look because I haven't touched tabs in like 4 years Jan 03 14:10:00 great Jan 03 14:10:09 I think I'll rewrite the app then Jan 03 14:10:13 probably a good idea Jan 03 14:10:56 i dont know whats the logic, but sometimes if i create a projec the fragment xml doesnt have at the bottom a design/text switcher and the text view is showing, now it has. Jan 03 14:13:11 misterli: "sending a push to the server" is the same as simple polling. no? in general, holding open a connection is far more efficient than polling the server. Jan 03 14:26:39 fmj47. Sure, but. Heartbeaths. Jan 03 14:27:04 Router has a timeout after a while (between a minute to 30 minutes) in a longpolling connection. And even when i set the socket timeout to 30 minutes i need to validate if the connection is still alive. Jan 03 14:27:28 I was wondering if there are good examples of ui samples. I'm just trying to learn the best practices and really like the youtube app style here the video shows but if you scroll it goes to the bottom. Jan 03 14:28:20 before i used several "Pushs" except gcm. XMPP, Mosquitto, HTTPR est, Deavon (using Meteor) but all of them were not efficient enough (client and serverside). now im coding a simple server which does the stuff. Currently i connect with the android device to the server with a 10 min socket connection timeout and the server itself send all 9,30 minutes a ping Jan 03 14:28:47 but battery drain is heavy. It's a service which return_sticky and register an observer to the connection-class. Jan 03 14:29:02 hey all, If I'm setting a GPS location in an activity and I want to then use that location in an async task that is called from a view in a separate class... how do I do that? Jan 03 14:29:27 listeners, intents Jan 03 14:29:47 AphelionZ: have you looked through: http://developer.android.com/training/location/index.html ? Jan 03 14:30:04 it's worth going through those Jan 03 14:31:01 so, fmj47. Any ideas? Keep in mind that it's within a "Service" which can be destroyed everytime Jan 03 14:31:09 "at anytime Jan 03 14:31:40 alexfu: yes, I have. thank you Jan 03 14:31:47 misterli: thanks Jan 03 14:35:33 scissor me timbers Jan 03 14:35:39 AphelionZ: Consider using a Service to control your location information. Jan 03 14:35:56 lov: examples? Jan 03 14:36:06 o_O Jan 03 14:36:16 i guess his problem is not getting the location. The Problem is notifiy other classes with the proper location, right? Jan 03 14:36:16 http://developer.android.com/guide/components/services.html Jan 03 14:36:29 The problem is really "delegating and centralizing LBS" Jan 03 14:36:35 and yes, you should register a service and "bind" it in another activity Jan 03 14:36:45 I mean, his other classes can always get the LocationManager and query the last location themselves Jan 03 14:37:02 that may not be what he wants, though; it might likely make more sense to have centralized access, even via a Singleton. Jan 03 14:37:18 And, in fact, you may want to do exactly that; use a Singleton instead of a Service (as long as you're smart about it) Jan 03 14:38:19 misterli, lov: yeah - I have my MainActivity, a SendButton class, and a NewFile asynctask that sends all the data out Jan 03 14:38:37 I can get my MainActivity context in the NewFile class... Jan 03 14:38:50 Why do you want this? : Jan 03 14:38:59 I'm starting to think I don't Jan 03 14:39:04 And yea, you can easy "store" the location in a file when you press the button Jan 03 14:39:15 and in the new class/task you can access the stored "preferences" again Jan 03 14:39:18 I think I might just do what lov said and get the LocationManager's last location in the task Jan 03 14:39:32 misterli: that could work too Jan 03 14:46:16 So basically, I've got libgdx-setup-ui generating me the android project, right, but having ADT try and run it without any modification gives me the lovely "ill-advised or mistaken usage of a core class" error Jan 03 14:47:29 the file structure looks kinda like http://puu.sh/683VO.png and I haven't yet been able to pinpoint exactly which android.jar reference causes that magical error Jan 03 14:47:45 I'm decent at Java, not so decent at Android Jan 03 14:48:16 Does anyone have any time or something to try and resolve this Jan 03 14:53:36 Hey everyone Jan 03 14:54:00 Mornin' markyosullivan Jan 03 14:54:04 Could someone help me with preferences? I'm struggling to make my app change when the user clicks on the desired setting Jan 03 14:54:22 If you could link me to a website which explains it, with sample code, that'd be execellent Jan 03 14:54:47 I tried YouTube tutorials but when I implemented the same code it didn't work :/ Jan 03 14:57:00 Like I have all the string arrays set up for my preferences Jan 03 15:00:11 lov: getting the last known location inside the task worked great, thanks! Jan 03 15:00:57 keep in mind that you need to make sure that the accuracy is well Jan 03 15:01:13 yes Jan 03 15:01:35 <[F_F]> Good morning Jan 03 15:03:08 http://hastebin.com/laqilajefu.txt ples hlep http://puu.sh/683VO.png Jan 03 15:05:19 Rating? http://gyazo.com/760fa307c4a64171e90a5a2419971770.png What would you change? Jan 03 15:05:40 the launchericon Jan 03 15:06:03 <[F_F]> Simple interfaces are simple Jan 03 15:06:19 <[F_F]> If they seem as if "something" is missing, then you are alright. Jan 03 15:06:58 misterli, meh Jan 03 15:07:09 [F_F], it doesn seem as if something is missing Jan 03 15:09:28 <[F_F]> autrilla: you may want to remove elements (like the little arrows) and do an A/B testing with a small group of reviewers Jan 03 15:09:31 <[F_F]> autrilla: http://en.wikipedia.org/wiki/A/B_testing Jan 03 15:12:36 [F_F], where do I get reviewers? Jan 03 15:14:54 autrilla: Go to google+ android development community, post about your app and say you need testers Jan 03 15:15:02 If people like your app they'll be willing to try it out Jan 03 15:16:06 <[F_F]> autrilla: I trully recomend A/B_testing, so you dont have to "worry" that much about UI, let the people decide, not you. Jan 03 15:16:06 <[F_F]> autrilla: Give them a choise, so you can know where to focus as Jan 03 15:16:06 <[F_F]> at* Jan 03 15:16:30 [F_F], thanks! Jan 03 15:16:38 markyosullivan, thanks! Jan 03 15:16:45 My app is not even close to finished, btw Jan 03 15:17:05 Could someone please help me out with preferences? Jan 03 15:17:27 I wouldn't ab test this app yet, unless there's more activities than this Jan 03 15:18:32 <[F_F]> autrilla: if your app is not even finished, let the "testers" decide what else it needs to be finished. Its called: "Test Driven Development" Jan 03 15:18:33 <[F_F]> autrilla: You save time "wondering" what to do next, or what else does your App need. Jan 03 15:18:40 Eeeeeee, there's 2 Jan 03 15:18:55 i agree about the turn signals Jan 03 15:19:14 [F_F], so basicly, go to Google+ Android dev, talk about what my app idea is, show what I've got Jan 03 15:19:19 And people will tell me what to add Jan 03 15:19:29 Eeeeeee, you would take it out? Jan 03 15:19:39 Don't tell them everything autrilla Jan 03 15:19:45 um are you changing them dynamically? Jan 03 15:19:48 You don't want someone to make your app before you do Jan 03 15:19:59 <[F_F]> Eeeeeee: But you can ab test the UI design. There is also ab testing on graphic design!!! Jan 03 15:20:00 <[F_F]> those where my 2 cents. good work autrilla Jan 03 15:20:09 Eeeeeee, sure, it's the distance to the place Jan 03 15:20:40 i've ab tested websites ads and landing pages for about 8 years Jan 03 15:20:43 markyosullivan, what is your problem? Jan 03 15:21:41 is it going to be a LEFT turn with a RIGHT arrow or will you update them dynamically Jan 03 15:22:42 Eeeeeee, ah, no. It's meant to show distance Jan 03 15:23:35 the arrow only confused then Jan 03 15:24:05 like turn right in 2km is what normal people see Jan 03 15:24:28 btw which card library are you using Jan 03 15:24:29 if any Jan 03 15:24:31 Eeeeeee, how would you show distance? Jan 03 15:24:33 None Jan 03 15:24:45 autrilla: I can't get my preferences working. I select a preference and it doesn't do anything. I've created a preference XML page Jan 03 15:25:10 it's fine the way you're doing it, just remove arrow, and make the distance part bigger Jan 03 15:25:13 markyosullivan, could you pastebin your code? Jan 03 15:26:01 Wait Jan 03 15:26:05 I know my problem now Jan 03 15:26:28 btw I think tester are able to rate your app, though I'm not sure if it's alpha/beta or both. know that going in because if they don Jan 03 15:26:43 Because I don't have my original activity finishing when I open up a new activity, then finish the new activity, it brings up the old activity which hasn't refreshed Jan 03 15:26:43 t like it they'll rate accordingly beta or not Jan 03 15:26:47 bbl Jan 03 15:28:29 Is there any way you can return to the previous activity when the previous activity has finished? Jan 03 15:33:12 <[F_F]> autrilla: this is exactly why you need to do A/B UI testing before continuing putting stuff on your Activity Jan 03 15:38:40 <_genuser_> so my android project doens't have the R file anymore. and it isn't building it automatically. Jan 03 15:38:53 .hasOnClickListener requires API 15... what's the old way of checking if a listener is hooked up? Jan 03 15:38:55 _genuser_: check for underlying resource errors. Jan 03 15:38:56 <_genuser_> anybody got an ideas on what gizmo to click on in eclipse to make itgenerate the R file. Jan 03 15:39:13 _genuser_: the R file won't be generated if your resources can't be parsed/compiled. Jan 03 15:39:20 _genuser_: log is right, check for errors in your layouts and resources Jan 03 15:39:34 _genuser_: I mean lov Jan 03 15:39:42 <_genuser_> nothing is highlighted in resources/layouts as erroneous. Jan 03 15:39:49 check the console output. Jan 03 15:40:01 try cleaning and rebuilding. Jan 03 15:40:11 <_genuser_> that helps. :) let's see what it's complaining about in red. Jan 03 15:40:54 <_genuser_> that fixed it, thanks all of you! Jan 03 15:41:00 [F_F], the thing is how to do A/B testing without giving the idea Jan 03 15:41:25 <_genuser_> I had created multiple down_arrow.gif/jpg/png in mspaint and it saved them all to the same folder causing resource conflict. Jan 03 15:42:00 <[F_F]> autrilla: your A/B testing must be final users, not programmers. Jan 03 15:42:12 unless your final users are programmers. Jan 03 15:42:20 If your final users are brogrammers, you may substitute bros. Jan 03 15:42:43 <[F_F]> autrilla: besides, if your application is THAT good, they are going to copy you anyways, TRUST ME. Jan 03 15:43:14 also watch for naming issues with resources... upper case and symbols can mess with your resources Jan 03 15:43:21 [F_F], It's not a million dollar idea :) Jan 03 15:43:36 So... how to find final users to whom I can give an incomplete app Jan 03 15:43:46 Who wish to do it for free Jan 03 15:44:26 Write a post about it on HackerNews title "Show HN: Computer vision app to find Waldo" Jan 03 15:44:42 <[F_F]> autrilla: final users? free? million dollar idea? good luck! Jan 03 15:44:55 [F_F], NOT a million dollar idea Jan 03 15:44:56 find a community that is your optimum target audience Jan 03 15:46:22 <_genuser_> has anybody implemented an ExpandableListView where group view contains buttons, etc? And the row can expand/collapse but the button does something else? Jan 03 15:46:30 <_genuser_> does this even make sense, before I go down this path? Jan 03 15:52:18 Is it possible to pause a timer for 30 seconds? Jan 03 15:52:27 So that for that period it doesn't run any tasks? Jan 03 15:55:00 BenOrnsin: Anything is possible. You should be alittle more detailed tho. is this a homebrewed timer or some class you are using etc...maybe put up some code Jan 03 15:55:05 [F_F], so.. if my app isn't a million dollar idea, and I want free testers... what should I do? Jan 03 15:55:24 xda-developers have a thread for testers Jan 03 15:55:56 autrilla: wait until your app is basically complete before sending it out for testers Jan 03 15:56:01 autrila: it's been awhile since i've logged into playstore developer site, but don't they have a beta part now to host your testing? Jan 03 15:56:17 Like I had just a little bit more to do for my last feature before I started posting about my app Jan 03 15:56:31 People got interested in it and I've got a small private testing community for my app Jan 03 15:56:31 then just find forums&the random person checking playstore that is searching for your app and put the word out Jan 03 15:56:52 <[F_F]> autrilla: nothing is free. Either figure out how to get A/B testers or be your own biased tester Jan 03 15:57:12 autrilla: Android Developers community is good Jan 03 15:57:37 <[F_F]> autrilla: just be sure to be nice at them Jan 03 15:57:45 canvs2321, it's java.util.timer Jan 03 15:57:50 <[F_F]> autrilla: and have lots of patience... they are slow Jan 03 15:58:02 I have patience Jan 03 15:58:14 I think I figured it out though: schedule an immediate task that makes the thread sleep for 30 seconds Jan 03 15:58:22 Apparently timer uses as single shared thread Jan 03 16:06:27 Which Mac IRC client gives that quitting message from patrick91 et. al.? Jan 03 16:07:27 markyosullivan, I fear that I'll have to change too much for when I tell people about it. I'm going to try looking for betatesters in a private spanish forum Jan 03 16:07:50 Have you got the majority of the features implemented for your app? Jan 03 16:11:21 can you help me? i have a layout named activity_main.xml but R.layout.<..> here i cant find it. Jan 03 16:11:45 also menu/main.xml Jan 03 16:12:14 tools:context=".ActivityMain" i have an ActivityMain.java Jan 03 16:13:15 markyosullivan, not even close Jan 03 16:13:26 right now, it's mostly the layouts Jan 03 16:13:51 Why would you need anyone to test it then? Jan 03 16:13:55 Wait until it's nearly done :) Jan 03 16:16:40 markyosullivan, feedback on UI.. app structure... Jan 03 16:17:30 If you need feedback on UI, there's an Android Design community on Google+ Jan 03 16:17:37 Post screen shots there Jan 03 16:19:21 jackneill, you've probably imported android.R Jan 03 16:19:52 Instead of the R from your own project (com.example.R) Jan 03 16:23:08 BenOrnstin: my project doesnt have an R Jan 03 16:24:53 jackneill: Then when you say your activity isn't showing up when doing R.layout. what is showing up Jan 03 16:26:05 canvs2321: R cant be resolved unless i import android.R Jan 03 16:26:56 what IDE are you using? if it can't be resolved, maybe there is an error in your xml that won't let it compile Jan 03 16:27:08 android studio Jan 03 16:27:30 canvs2321: the preview is okay so it compiles? Jan 03 16:28:05 any other xml files? did you do a clean rebuild? has it worked before? Jan 03 16:28:37 canvs2321: well i just deleted the basic files, the original .java and layout files Jan 03 16:28:47 and deleted some lines in strings.xml Jan 03 16:28:53 since it was no longer needed Jan 03 16:29:06 so then i created my own .java for activity and own layout Jan 03 16:29:08 guess just start pastebin'ing some code&some screenshots of your workspace etc. There are just soooo many ways for you to be on the path you are right now, but lack of details are slowing answers Jan 03 16:29:30 ok sec Jan 03 16:30:08 &you deleting basic files &such doesn't tell much except you just been deleting stuff Jan 03 16:31:43 canvs2321: https://gist.github.com/anonymous/fc2026bed392050eeabf https://gist.github.com/anonymous/216391722ca8c54c0812 Jan 03 16:37:08 jackneill: what is your target sdk? Jan 03 16:37:44 &min Jan 03 16:50:40 hi there Jan 03 16:50:57 DwrodKnight: think there left 36mins ago Jan 03 16:52:16 lol Jan 03 16:53:22 :) got any questions? Jan 03 16:56:46 nope I hoped to join some discussion but now the channel seems to be quiet/working :D Jan 03 16:57:02 Then be the discussion Jan 03 16:57:41 i'm trying to change the size of some imageviews inside a gridview using but some of the imageviews seem to be skipped over. http://pastebin.com/XDAa9KLy. any better way to do it? Jan 03 16:58:37 particularly the imageviews off screen seem to be skipped over Jan 03 16:59:04 arcode: why are you resizing? it some kind of setting? otherwise why aren't they sized in the xml? &with a gridview are you using a custom adapter? Jan 03 16:59:19 can't be a child if not visible Jan 03 16:59:49 maybe DwordKnight can chime in :) Jan 03 16:59:59 i'm resizing for a zoom feature Jan 03 17:00:30 where is that for loop located? Jan 03 17:01:02 im my MainActivity class Jan 03 17:01:04 &why would a zoom feature include all images? Jan 03 17:01:16 this project is killing me Jan 03 17:01:18 slowly Jan 03 17:01:18 it's for a game Jan 03 17:01:49 what game would use a gridview? Jan 03 17:02:19 a very basic one :) Jan 03 17:02:39 you touch the image and it changes lol Jan 03 17:02:47 then write up a basic idea of your game, then post it so we can go from that Jan 03 17:02:59 you touch an image and all images change? Jan 03 17:03:21 arcode If I understand you correctly you expect the imageviews that go offscreen when resizing to reposition on the screen so they are still visible. Jan 03 17:03:36 no i just want their size to change Jan 03 17:03:56 and that code doesnt change the size? Jan 03 17:04:13 it does but it skips some of the imageviews Jan 03 17:04:45 i need a reliable way of iterating through all imageviews inside a gridview (even when they are offscreen) Jan 03 17:08:09 arcode: if a view isn't visible why would you wanna do any processing on it? seems like overkill&waste of resources Jan 03 17:09:09 i just want all the imageviews to resize, resources is not an issue because there aren't many of them Jan 03 17:10:05 what i'm saying is only resize when visible, otherwise resizing when not&possibly never seeing the non visible but still resizing seems inefficent Jan 03 17:10:27 if you reiterate over the childs as you do there to check if the size has actually changed, we could say if the problem is because it skips childs (I'm thinking its not because of this) or not Jan 03 17:11:15 thanks, i will check for this now Jan 03 17:11:20 and iterating over child views of a gridview will only give you the visible Jan 03 17:11:43 you should iterate over your full list that you are supplying your gridview Jan 03 17:15:27 <_genuser_> guys, need a little help. I have a BaseExpandableListAdapter implementation. In this, when the group view has a button. when the button is clicked on I need to raise it back to the MainActivity. Jan 03 17:16:05 <_genuser_> I ended up providing a setOnGroupExpandListener (that I implement) just as the other click listeners are provisioned. Jan 03 17:16:08 _genuser_: set your onclicklistener in your adapter&do it Jan 03 17:16:48 <_genuser_> canvs2321: so my group listener is already set and doing expanding/collapsing. but in the gropu view there's a tiny button, that will hide the drawer and launch some other activity. Jan 03 17:17:02 <_genuser_> canvs2321: I need two different click handlers from teh same row. Jan 03 17:17:36 What im saying is if you have a custom adapter, set your onClicks based on visible views, and do what you want Jan 03 17:18:26 i'm not sure how to do that, i am using the google gridview tutorial. so i am supplying gridview with mThumbIds (a list of Integers). So i can't resize the Integers? Jan 03 17:19:02 <_genuser_> canvs2321: and if I have to add new click listeners, does it go against any android designs? Jan 03 17:19:54 canvs2321: sorry it took so long Jan 03 17:20:08 android studio froze gentoo Jan 03 17:21:10 i could talk about essays why that is a shit but: min: 8 target 16 Jan 03 17:21:12 jackneill: my next ? was what is your target&min sdk, i've never used Switch in xml, but it says the api is 14, are you setup for that Jan 03 17:21:27 well if min is 8 then switch won't work Jan 03 17:21:51 DworkKnight: it does seem to be skipping some child views as canvs2321 said Jan 03 17:21:57 therefore it might break your code Jan 03 17:22:25 canvs2321: hm i see so i little part is wrong than whole thing will broke Jan 03 17:22:35 _genuser_: setting click listeners breaks no android design; android design is setting margins and such to conform to layouts Jan 03 17:22:53 i rewrited it in AndroidManifest.xml now rebuild i guess? Jan 03 17:22:57 hi guys, do you know how to emulate a long touch with uiautomator? Jan 03 17:23:07 jackneill: what i'm saying is if your min sdk is 8&you use code based on >14 then you'll fail Jan 03 17:23:25 cavs2321: how can i iterate over the full list of image from this example: http://developer.android.com/guide/topics/ui/layout/gridview.html Jan 03 17:23:26 <_genuser_> canvs2321: :). I had heard once before in here that adding your own created listeners goes against the android framework design and events and data must be passed back using intents/bundles/etc. Jan 03 17:23:51 <_genuser_> canvs2321: but on some testing adding dev created listeners doesn't really break anything so far. Jan 03 17:24:09 arcode: you iterate over the full list using the list, not a child count from gridview as the child count may only be what is visible, so if your list is greater than what is shown it'll skip Jan 03 17:24:37 _genuser_: adding listeners on visible views won't break anything Jan 03 17:24:40 canvs2321 by list do you mean gridview? Jan 03 17:24:43 i do it all the time Jan 03 17:24:55 arcode: no i mean the list you apply to your adapter Jan 03 17:24:56 <_genuser_> canvs2321: good. thanks for listening and commenting. I appreciate it. :) Jan 03 17:25:41 canvs2321: now works indeed. thanks. Jan 03 17:26:04 _genuser_: basically if you have a view with things you want to listen to for actions, setting up those listeners are perfectly fine. as long as it is visible&touchable, do what you wish Jan 03 17:26:31 jackneill: awesome :) like i said, if R can't be resolved ever, there is a reason! :) Jan 03 17:26:38 <_genuser_> canvs2321: makes sense. now onto breaking some stuff. :) Jan 03 17:27:37 cancs2321: the list i am passing is "Integer[] mThumbIds" so will i have to resize the bitmaps rather than the imageviews? Jan 03 17:28:42 canvs2321*: which is populated with "R.drawable.sample_2" type items Jan 03 17:28:49 arcode: yes you resize the bitmaps, and your imageviews should conform to your settings Jan 03 17:29:09 cool thanks Jan 03 17:30:46 le sigh, guys i need some help. i have an app where i walk a folder and put all the file paths into a db however when you hit certian folders with lots of files 17000+ it locks up my app big time. I am even doing the walking in a seperate thread but that part finishes quick. It seems it is writing all that data into the DB that is locking it up. I do not really know how to fix this. Jan 03 17:31:42 i might be having the same problem Jan 03 17:31:57 :) time for a support group then Jan 03 17:32:05 nmcbride: move the database writing to a background thread as well Jan 03 17:32:10 nmcbride: just make sure everything is done off the UI thread? Jan 03 17:32:15 all db interactions should be off the UI thread Jan 03 17:33:10 I don't think it's a serious issue. A reasonably designed DB interaction is fast, sort of realtime Jan 03 17:33:11 i create a db helper in my service, which the service is part of the ui thread, then pass it to the background thread but apparently usint it that way it still runs on the ui thread? Jan 03 17:33:42 i think you might have helped me Jan 03 17:34:49 if we are suppose to use one dbhelper to avoid locking issues, and passing the dbhelper into the background thread still uses it on the ui thread, what is the right way to handle this? Jan 03 17:35:16 stacktrace is showing my content provider Jan 03 17:38:57 android-studio/sdk/docs/training/multiple-threads/index.html Jan 03 17:39:35 thanks evanc Jan 03 17:42:44 evance: any thoughts on the dbhelper issue? Jan 03 17:45:59 hey all, happy 2014! X) Jan 03 17:46:51 lacx: stop being so bossy! :) Jan 03 17:47:08 hahah im sorry! Jan 03 17:47:11 X) Jan 03 17:47:59 look at me and my imperative statements X) Jan 03 17:49:20 on a serious note, Im looking for an Android component that will allow me to expand an area when pressed, so I can display text/other stuff there. Id like to also be able to collapse it Jan 03 17:50:24 does anyone know of anything like that? Jan 03 17:50:59 using a listview or some other kind of adapter related view? Jan 03 17:51:13 ok this is messed up... I'm trying to alter my layouts in Android Studio and every time I make a change, it doesn't appear in the built APK. Code changes do appear, but layout changes do not. Jan 03 17:51:25 otherwise just visibility .VISIBLE .GONE etc.. Jan 03 17:52:17 hmm yea I have heard of ListViews canvs2321, I will look into them. How do you mean 'adapter-related'? Also id like to be able to ease/animate the collapse/expand Jan 03 17:53:29 lacx: what i'm saying is if you are soley wanting an animation based on a simple view then go that route, if using a list of sort that needs an adapter of list values then correspond accordingly Jan 03 17:53:42 does anyone know why passing a db helper declared in a service like: "private static DBHelper dbHelper;" and then passing the dbHelper into a background thread would still lock the UI thread when doing a lot of inserts? 17K+? Jan 03 17:54:11 canvs2321: resizing all the bitmaps seemed resource intensive with all the matrix operations, so i kept a list of imageviews as they were created and resized them. it now works, thank you. Jan 03 17:54:15 nmcbride: provide some code Jan 03 17:54:36 thanks canvs2321 X) Jan 03 17:54:59 arcode: awesome! :) just keep stuff to a minimum, if not visible don't do any heavy work Jan 03 17:55:15 ok :) Jan 03 17:56:25 hello guys! Jan 03 17:56:34 what about the gals? Jan 03 17:57:56 they're included at runtime by lazy loading Jan 03 17:58:38 I used adb to send sms to my emulator from terminal. Is it possible to send sms to a real device through this technique because the input event 21 cant go out of the text message input filed. Jan 03 18:01:00 canvs2321: http://pastebin.com/6VibKG5F Jan 03 18:01:19 hey can you help me? http://codepad.org/w5KSNYxp java activity code. Jan 03 18:01:39 when i try to compile it and run on device i got "unfortunately signalcontroller has stopped" Jan 03 18:02:08 canvs2321: the reason you see me making a smaller ListArray of 100 entries is because I was trying to pass it back in a handler message at one point, that is just residual Jan 03 18:06:21 nmcbide: if you have 17k+ entries&you are sending back to a handler on main UI every 100, that'll give you hiccups Jan 03 18:06:55 right which is why i changed it like you see now Jan 03 18:07:05 trying to add them to the db directly from that thread using the dbhelper Jan 03 18:07:58 but i think since i'm passing the dbhelper from the service thread, even though i'm running it in a background thread, it really is still running in the ui thread Jan 03 18:10:20 canvs2321: but even if i tried to make a new dbhelper, it requires the context to initalize which would be the context of the service so that'd probably lock it up any? Jan 03 18:10:36 *anyway Jan 03 18:19:39 Hi guys, I have a Mac OSX and I ca't seem to export an app, there is an error "Keytool Error" when I export the .apk, could this be privilege read/write problem? my Mac is not letting the eclipse program write on disk? Jan 03 18:23:29 man i'm so close guys i got everything off the UI thread it seems but now after I write 1000 entries to the db I get: android.database.sqlite.SQLiteCantOpenDatabaseException: unknown error (code 14): Could not open database Jan 03 18:23:37 why would i get that after 1000 inserts? Jan 03 18:25:48 need to reuse same sqlite db file for further insert, delete, update etc. but right now using sqlite in just code that every time creates db , tables and insert rows. how i can do it? Jan 03 18:27:24 may the question is stupid but still hope to get answer Jan 03 18:28:01 may be *** Jan 03 18:29:20 I don't understand the question, jaami-win Jan 03 18:31:09 nmcbride: We need code for inspection Jan 03 18:31:16 oh actually i want to send my sqlite db to a friend of mine who will update rows and send it back to me. and i dont want to send my code that is actually doing all updates and creats. i dont know how to update rows if i dont want to do it through my code Jan 03 18:31:47 jaami-win: Manual data entry Jan 03 18:31:49 you can use a database editor, jaami-win Jan 03 18:31:54 Firefox has an addon for it Jan 03 18:32:03 ok lets see what I can get you guys that would help Jan 03 18:33:36 leslie , thanks really in think i need to read more about sqlite before asking my questions on sqlite. if you give me a better link fot that. Jan 03 18:33:47 can I use adb to send sms using my android device(real device)? Jan 03 18:34:00 I don't really have anything at hand, jaami-win Jan 03 18:34:14 DarkSlay3r: this is my DB helper http://pastebin.com/NWn7SA3a Jan 03 18:34:25 leslie , thats ok, thanks Jan 03 18:35:31 DarkSlay3r: this is my thread trying to walk a large folder: http://pastebin.com/SEZHc55P Jan 03 18:36:27 I call the thread like: BinaryBlackoutFolderWalker fwalker = new BinaryBlackoutFolderWalker(getApplicationContext(), paths, handler); fwalker.start(); Jan 03 18:36:51 that would probably be everything needed I guess thank you for helping me Jan 03 18:37:00 nmcbride: i'm behind a firewall can't access paste bin Jan 03 18:37:09 -_- Jan 03 18:37:11 :) Jan 03 18:37:15 perhaps someone else might be able to help Jan 03 18:37:26 sorry Jan 03 18:37:46 if anyone can help me out I can send $5 or so your way as a thank you, been beating my head against the table for days now Jan 03 18:39:02 DarkSlay3r just asking, what is your question? want to make a tree? Jan 03 18:39:52 nmcbride: help please Jan 03 18:41:05 shadej: with what? Jan 03 18:41:29 nmcbride: can I use adb to send sms using my android device(real device)? Jan 03 18:41:44 I want to use my device as a modem. Jan 03 18:42:53 Is Messenger.send() buffering - https://developer.android.com/reference/android/os/Messenger.html#send%28android.os.Message%29 ? Jan 03 18:43:26 I.e. when I send two messages immediately after each other, will both be received by the receiver (service in my case)? Jan 03 18:43:48 ...that is what I expected, but it seems that the second one gets lost here. Jan 03 18:47:21 shadej: just send an intent from the command line Jan 03 18:47:48 google what intent you need to call to send a txt and what data it needs Jan 03 18:49:05 nmcbride: I am doing that and the message reaches the android device. The problem is input event 21 can not transfer focus from the text area to the send button. Jan 03 18:49:56 nmcbride: I am using the first answer of this. http://stackoverflow.com/questions/12841151/how-can-i-send-message-from-eclipse-to-device Jan 03 18:50:10 anyone good with online people are using 22 followed by 66 Jan 03 18:50:54 http://stackoverflow.com/questions/4043490/how-do-i-send-an-sms-from-a-shell Jan 03 18:51:50 anyone want to help me squash a bug? could probably spare $10 bucks or so as a thank you Jan 03 18:52:23 nmcbride: yeah 22 sorry Jan 03 18:52:35 are you doing both 22 and 66? Jan 03 18:52:52 yeah. Jan 03 18:53:02 nmcbride: not to rain on your parade, but please stop trying to hire people to fix your bugs in the channel Jan 03 18:53:22 I get that it's frustrating, but this is not the forum for that Jan 03 18:54:33 22 means left arrow key I think. if focus is on a button it may transfer focus to the next element but in this case focus is on textarea and the left arrow key results in getting to the next character in the input field. the key 66 add new line into the text area Jan 03 18:55:20 Mr. Charlton I under stand how you think I am 'hiring' people to fix a bug but it is more that I appreciate people who are willing to take the time and help others and from past experience I know it feels good to be rewarded for that. Jan 03 18:56:17 do you have a bluetooth keyboard? you can hook it up and see which key you need to simulate to (i guess what we are trying to do here) get to the send button and hit enter Jan 03 18:57:38 Is there a way to use a different value for the key to get a bitmap with Volley instead of using the url Jan 03 19:00:03 nmcbride: no I dont have that one. Jan 03 19:01:39 shadej: i'd guess it'd be a tab and enter if you are on the input field but I dont know for sure Jan 03 19:01:48 i gotta go try and figure out my issue now though :) Jan 03 19:02:15 I tried tab too. thank you anways. Jan 03 19:02:25 tab and enter? Jan 03 19:02:36 yeah Jan 03 19:02:44 tab add a tab to the text Jan 03 19:04:56 on my galaxy s4 tab takes you to the send button Jan 03 19:07:36 22 should be for the right arrow key Jan 03 19:08:27 Are there any guides on how to make a library project? In Scala? Jan 03 19:09:52 shadej: I got it to work on my device Jan 03 19:13:43 shadej: this works for me make sure you have the sms app set as the default for this intent or it wont work Jan 03 19:15:34 am start -a anroid.intent.action.SENDTO -d sms:########## --es sms_body "SOME MESSAGE" --ez exit_on_sent true && sleep 1 && input keyevent 22 && input keyevent 66 Jan 03 19:16:22 i'm gonna go try and fix my db issue now before I break my desk with my head :) Jan 03 19:25:35 how to send this _Socket = New Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp) with proxy Jan 03 19:27:12 NoobC0der, Apache HttpClient (which is included with the Android SDK afaik?) lets you do that Jan 03 19:27:55 if its HTTP(S) X) Jan 03 19:29:20 teag Jan 03 19:29:23 yeah Jan 03 19:29:26 it s https Jan 03 19:29:53 well I have used it only for HTTP but it should be similar Jan 03 19:30:40 ah yea its fine, check this out NoobC0der: http://hc.apache.org/httpcomponents-client-ga/httpclient/examples/org/apache/http/examples/client/ClientExecuteProxy.java Jan 03 19:32:45 tnx a lot i will Jan 03 19:33:17 no worries X) Jan 03 19:38:24 How can I create a new project from the command line with the gradle layout? Please! Jan 03 19:41:03 anyone good with working with sqlite that could help me out? Jan 03 19:52:10 ˝ţvü Jan 03 19:53:05 marrrk, android create project -g -v 0.6.3 Jan 03 19:53:15 Ah, thank you! Jan 03 19:53:43 I tried with Intellij but I think it adds a lot of unnecessary things. Jan 03 20:00:03 nah, it really looks the same Jan 03 20:00:36 What can I get rid of? anything starting in gradle? Jan 03 20:02:12 If I am really using pfn's plugin, that is Jan 03 20:03:25 Hi, Is this the proper place to talk about building the android sources? Jan 03 20:03:45 Yeah Jan 03 20:05:54 the issue I am having is I am trying to download the proper java jdk and have version 1.7.0_45 and it tells me with make I need version 1.6 but 1.6 is no longer around and the download pages on the downloading android pages don't link to the proper site for the downloads. Jan 03 20:08:42 is there a way to download the proper jdk for linux amd x64 with out creating an account which always ends in errors? Jan 03 20:15:10 nickgaw: what is forcing you to use JDK 1.6? All the new versions of Java can cross-compile for any version of java back to 1.3 so the actual JDK version shouldn't matter Jan 03 20:16:22 the android 4.3.3 source just downloaded with repo. I ran make and was told that I am running the wrong version of java jdk when I did install the jdk package on my debian stable system. Jan 03 20:19:58 I downloaded the .tar.gz java jdk and unpacked it into /usr/local/jdk1.7.0_45 and then added the bin directory to my path so java was runable by any user is this the proper thing to do? Jan 03 20:20:17 Should I make my graphing class a public library? Would it be usefull to the public? Jan 03 20:21:32 ============ Jan 03 20:21:33 Checking build tools versions... Jan 03 20:21:33 ************************************************************ Jan 03 20:21:33 You are attempting to build with the incorrect version Jan 03 20:21:33 of java. Jan 03 20:21:33 Your version is: java version "1.7.0_45". Jan 03 20:21:33 The required version is: "1.6.x" Jan 03 20:21:34 Please follow the machine setup instructions at Jan 03 20:21:34 https://source.android.com/source/download.html Jan 03 20:21:35 ************************************************************ Jan 03 20:21:35 build/core/main.mk:200: *** stop. Stop. Jan 03 20:21:56 nickgaw: don't paste multi-line pastes in-channel, use pastebin for that. Jan 03 20:22:38 nickgaw: also, try reading the error :) Jan 03 20:22:43 that is the error message I have been getting. Jan 03 20:23:02 hint: The required version is: "1.6.x" Jan 03 20:24:10 yes I got that that is what I am trying to fix can't find the downloads. Jan 03 20:25:00 no you didn't Jan 03 20:25:03 "I downloaded the .tar.gz java jdk and unpacked it into /usr/local/jdk1.7.0_45" Jan 03 20:25:11 jdk1.7.0_45 is not 1.6.* Jan 03 20:25:27 yes I can't locate 1.6. Jan 03 20:25:42 ls Jan 03 20:25:53 Oops. My goof y'all. Jan 03 20:26:10 nickgaw: did you look at the link mentioned in the error message? Jan 03 20:26:20 if I go to the download pages you are told to create an account and I have tried this process but no information after this. Jan 03 20:27:11 also: this channel is for android app development. not really the place to talk about platform development (yes, I see you ask and were told otherwise :)) Jan 03 20:27:37 #android is probably the closest match, although it's not specifically for platform development either Jan 03 20:28:36 also the account process ends with lots of errors should I join #android instead? Jan 03 20:29:11 marrrk, you can get rid of anything gradle/build out of the created project Jan 03 20:29:22 nickgaw: there is nothing on https://source.android.com/source/download.html that says to download the java sdk from oracle Jan 03 20:29:29 Yes, I just did and it still works, that's nice. Jan 03 20:29:32 lol Jan 03 20:29:44 I am now trying to set up a basic test and then I think I have a barebones project that I can reuse. Jan 03 20:29:46 nickgaw: oh, my bad. yes, there is :) Jan 03 20:29:59 look down a little lower, it gives you an alternate way to install it Jan 03 20:30:00 and yes I am on the page talked about in the error message are you talking about going to the git-scm.com? Jan 03 20:30:08 does anyone know why my sqlitedb would be stopping at 1000 rows? Jan 03 20:30:19 look at the "Installing the JDK" section Jan 03 20:30:31 nmcbride: It's expressing its anger. Jan 03 20:30:34 it talks about ubuntu but I am on debian. Jan 03 20:30:54 marrrk, android create project -g -v 0.6.3 then nuke gradle* build and whatever and it's good to go Jan 03 20:30:59 marrrk: yea but its really frustrating me lol Jan 03 20:31:01 you don't need local.properties or project.properties either, really Jan 03 20:31:03 nickgaw: ah, gotcha. I suspect you should still be able to install the package from ubuntu's repository though Jan 03 20:31:22 not positive about that though Jan 03 20:31:42 Can I change the dev name whenever I want? Jan 03 20:31:44 I mainly don't want to end up with a broken system. Jan 03 20:31:47 On oogle Play Jan 03 20:31:48 pfn right now I have only this: "build.sbt", "project", "src" and "target" Jan 03 20:31:56 that looks nice and clean and still works Jan 03 20:32:00 marrrk, yeah, that's all you need Jan 03 20:32:02 gitignore target Jan 03 20:32:06 and .idea Jan 03 20:32:18 okay, yes, I also need to add the idea plugin Jan 03 20:32:39 nickgaw: http://packages.debian.org/squeeze/sun-java6-jdk Jan 03 20:32:41 :) Jan 03 20:32:41 i moved my db operations to a backend thread and that was the symptom, only writing 1000 rows Jan 03 20:36:19 pfn what about .idea-modules ? Jan 03 20:36:26 marrrk, ignore that too Jan 03 20:36:30 all those get generated by gen-idea Jan 03 20:39:41 pfn do tests in the new layout go to src/instrumentTest/scala/com.package/SomeTest.scala ? Jan 03 20:39:56 marrrk, anything under instrumentTest/scala is fine Jan 03 20:40:01 you can choose to have package directories or not Jan 03 20:40:04 recommended is yes Jan 03 20:40:16 <|Agent> Android Studio can't build if the pathname has spaces in it. What is this, the 80s? Jan 03 20:40:43 |Agent: Not the SPAGE age yet. Hrmpf Jan 03 20:40:48 <|Agent> lol Jan 03 20:40:57 space* Jan 03 20:42:12 <|Agent> Or maybe that's not the problem…aapt is failing with error 138, and removing spaces from the path didn't fix it. Jan 03 20:42:18 pfn: The example file says to run the tests with adb shell am .... I presume this changes when using your plugin, right? the documentation says android:test is that it? Or are these other types of tests? Jan 03 20:43:46 Hmm, android:test runs through. Let me try to make the test fail. Jan 03 20:48:41 ok now at least make starts the building process but as I just ran make with no targets prebuilt tools give me errors about files not found is this normal? Jan 03 21:05:12 why do I get the following error message from the make scripts prebuilts/tools/gcc-sdk/../../gcc/linux-x86/host/i686-linux-glibc2.7-4.6/bin/i686-linux-g++: No such file or directory Jan 03 21:07:56 How would I go about implementing an ImageCache with Volley if I can't rely on URLs to be a good key Jan 03 21:09:07 basically how could I use something other than the URL for a key Jan 03 21:09:26 yiati: you can set the cache key to be whatever you want Jan 03 21:09:49 there is the putBitmap(String url) function that Volley calls automatically with the url Jan 03 21:10:17 yiati: override getCacheKey() to return whatever is unique about the request Jan 03 21:10:29 Request#getCacheKey(), that is Jan 03 21:23:44 YEAH Jan 03 21:23:51 JUST GOT MY GNEXUS in the mail Jan 03 21:23:57 yay Jan 03 21:24:01 wait Jan 03 21:24:06 galaxy nexus? Jan 03 21:24:11 the phone from like 2012? Jan 03 21:24:24 Yeah. Its a secondary phone. Main phone is iPhone 5. Jan 03 21:24:34 Its frozen Jan 03 21:24:34 lol Jan 03 21:24:37 so cold Jan 03 21:25:32 evanc: Where do I hand off the overriden Request.getCacheKey()? Jan 03 21:26:01 to be fair, at least in my opinion, the gnex is a Jan 03 21:26:05 great device. Jan 03 21:27:54 not really Jan 03 21:27:59 battery is suck ass on that bitch Jan 03 21:28:01 can't evefn last 8 hours Jan 03 21:28:33 usually lasted a full day for me Jan 03 21:28:34 i hope thats the big improvement area of devices for 2014 Jan 03 21:28:46 i want 4-5 days :) Jan 03 21:28:55 4-5 days of what Jan 03 21:28:58 just sitting in standby? Jan 03 21:29:01 lots of devices can do that now Jan 03 21:29:09 that's what featurephones did Jan 03 21:29:16 pfn: My friend changed the kernal Jan 03 21:29:17 it's not like you were staring at their screen for 2 hours every day Jan 03 21:29:19 And the Radio Jan 03 21:29:31 He gets like 2 days standbuy and like 5 hours of screen Jan 03 21:29:46 on a gnex? I call bullshit, unless he has radio's disabled altogether Jan 03 21:29:51 No Jan 03 21:29:55 This kernal he has Jan 03 21:30:00 Sets it to 2g when its locked Jan 03 21:30:19 he has the GSM so it doesn't have 4g i think Jan 03 21:31:11 pfn: My iPhone 5 has 4 days battery if you turn off the radio Jan 03 21:31:13 airplane mode Jan 03 21:31:16 with wifi on Jan 03 21:34:05 my moto x will easily last 5 days in airplane mode Jan 03 21:34:20 with wifi on Jan 03 21:34:57 Moto g is crazy battery Jan 03 21:34:57 it all depends on how well the gapps are behaving. seems like i have had 2 updates (one to services, and one to gmail) that caused the battery to be drained quickly Jan 03 21:35:17 people have screen on for like 10 hours on that Jan 03 21:35:28 Hello world! I've never really created a multipane layout, but I'm just wondering if I should be creating an activity to handle the "multipane", or if I should try to use the same activity. Jan 03 21:35:58 you mean like viewpager? Jan 03 21:40:15 OK, I got it to work with a java test Instrumentation test (yay, my first Android test). I don't get how to translate the test to Scala, though. If I do class FooTest extends ActivityInstrumentationTestCase2[Foo] {} Jan 03 21:40:20 what do I have to tap like 50 times to get the devloper options egain? Jan 03 21:40:38 IntelliJ complains that it cannot resolve constructor. Jan 03 21:40:41 Nvm got it build number Jan 03 21:42:02 Quick question, i gotta pick up an android device to develop on and I keep seeing tablets. Would it be bad to get one of those to work on? Jan 03 21:42:12 target being for phones Jan 03 21:42:38 you'll have trouble doing layout Jan 03 21:42:41 you keep seeing them where exactly? Jan 03 21:42:43 but you can use the emulator for that Jan 03 21:43:06 durka42: are layouts done differently or is it just tougher to scale? Jan 03 21:43:24 I just mean, there's more space and so you'll have to be careful designing for a smaller screen Jan 03 21:43:38 Argh, I think I got it. Jan 03 21:43:45 plus sometimes a tablet changes the layout entirely Jan 03 21:44:16 egh well it could hold me over a few weeks until I get a new phone Jan 03 21:44:36 e.g. http://cdn3.pcadvisor.co.uk/cmsdata/features/3418647/Nexus_Daydream_1_thumb.png Jan 03 21:44:47 on a phone you won't get that two-pane thing Jan 03 21:44:48 Ahhh Jan 03 21:46:23 Can you mock GPS on an emulator? Jan 03 21:48:08 you can set a gps coord on the emulator, yeah Jan 03 21:50:04 yiati: Volley will read it when caching the response Jan 03 21:50:35 evanc: right I just don't see where I could hand off a custom Request class Jan 03 21:50:56 It seems pretty ingrained into volley Jan 03 21:51:57 yiati: what do you mean hand off a request class? Jan 03 21:52:17 you just put requests into the request queue; just subclass Request (or ImageRequest, in your case) as necessary Jan 03 21:53:30 hello all. I'm looking for help on fixing a bug involving radiogroup. I'm using singletop launch mode and when I switch to a new activity using a radiobutton I call the "OnNewIntent()" to check the proper button in the new activity. Usually this works and the new proper radiobutton is selected. However sometimes my program rechecks the original button from the old activity before checking the new one Jan 03 22:00:13 Hi everyone, how can I have a LoginActivity set as launcher activity and when the user has successfully logged in I change the launcher activity to another one? Jan 03 22:05:42 There may be some standard approach (hopefully someone else will answer), but I'd probably have the launcher activity be the main activity, and have it automatically start the login activity if the user isn't logged in. Jan 03 22:06:44 pfn, it seems that android:test doesn't load the scala library, I get java.lang.NoClassDefFoundError: scala.Predef$ Jan 03 22:07:01 xalbo: well I was going to say have the login activity just start the main activity if the user _is_ logged in Jan 03 22:07:06 but both of us are making up answers :) Jan 03 22:07:06 marrrk, no, you need to -keep class * extends junit.framework.TestCase Jan 03 22:07:14 marrrk, because test cases aren't kept by default Jan 03 22:07:17 I added that in build.sbt Jan 03 22:07:22 is that the wrong place? Jan 03 22:07:56 because it didn't help Jan 03 22:09:19 clean and rebuild Jan 03 22:09:27 you need to clean after any proguard config changes Jan 03 22:09:47 ah yes and now Jan 03 22:09:57 Unexpected keyword 'members' in argument number 119 Jan 03 22:10:57 what exactly did you put in Jan 03 22:11:01 wrong proguard config Jan 03 22:11:25 I copied what's on the website Jan 03 22:11:36 proguardOptions in Android ++= Seq( "-keep public class * extends junit.framework.TestCase", Jan 03 22:11:37 "-keepclass members class * extends junit.framework.TestCase { *; }") Jan 03 22:11:40 meh, stupid lol snowdown ended, I can't buy that sivir skin :( Jan 03 22:11:48 you have a space in there Jan 03 22:11:54 you didn't copy it, or I typoed Jan 03 22:12:00 space where? Jan 03 22:12:05 hmm, I typo'd Jan 03 22:12:08 it's -keepclassmembers Jan 03 22:12:12 ah okay yeah I get it now Jan 03 22:12:13 makes sens Jan 03 22:12:14 e Jan 03 22:12:27 I'll fix it next time I push Jan 03 22:12:45 Of course, I never assumed that it could be someone else's mistake. Jan 03 22:13:31 Very cool, so now this works too! Jan 03 22:18:53 bah, iBooks Author still doesn't export epub Jan 03 22:19:32 exports pdf, but Play Books had pdf disabled in the last release Jan 03 22:20:37 and the platform wars continue Jan 03 22:20:53 uh, so how the hell does one go about producing a nice epub that works in Play Books Jan 03 22:22:35 does google recommend a specific toolchain ? Jan 03 22:22:43 epub specs are pretty flimsy Jan 03 22:23:07 Google doesn't care about "nice" Jan 03 22:25:11 well, Amazon has Kindle Writer; Apple has iBooks Author, what does google have :) Jan 03 22:29:39 g00s: a search engine ;) Jan 03 22:35:32 anyone decent at sqlite and android willing to chat and see if we can figure out my db issue Jan 03 22:35:34 ? Jan 03 22:36:57 just ask your question Jan 03 22:37:31 my sqlite db is only letting me add 1000 rows Jan 03 22:39:05 What happens when you try to add more? Jan 03 22:40:39 also, note topic http://imgur.com/jacoj Jan 03 22:41:29 saving that…. SO applicable Jan 03 22:44:25 well i am walking a large folder Jan 03 22:44:30 in this case .thumbnails Jan 03 22:44:35 for me that is about 17k+ Jan 03 22:45:01 had an issue where it would lock up the UI thread so i made a dbhelper object in the 2nd thread and walk the folder there Jan 03 22:45:20 i get an arraylist of quite a few paths and am trying to write them itno the db Jan 03 22:46:01 orignally the db writing would error out at 49mb worth of data Jan 03 22:46:12 moved it out of internal storage to external so it had a 4gb limit Jan 03 22:46:27 however now it only writes 1000 records which is about 97kb Jan 03 22:46:46 lets see if i can find my pastebins from trying to get help earlier Jan 03 22:48:25 this is my simple thread when i was trying to do 100 entries at a time Jan 03 22:48:26 http://pastebin.com/Fq8gGLDz Jan 03 22:55:59 Does anybody know of any references on the OS footprint on non-Google android distros (Kinde et. al.)? Jan 03 23:28:21 How would I set an indeterminate progress bars drawable via remote views in java Jan 03 23:28:47 With an image view I'd do remoteViews.setImageViewResource Jan 03 23:29:01 But I don't a see anything for progressbars Jan 03 23:36:59 it looks like calling abort() in NDK code causes the app to vanish and not bring up an "Unfortunately, ... has stopped" dialog - is there a way to force that to happen? Jan 03 23:43:29 j4cbo: divide by 0 Jan 03 23:43:56 ... no. Jan 03 23:44:03 :) Jan 03 23:44:26 unless a SIGFPE on a background thread causes that dialog to show up, but neither SIGABRT nor SIGSEGV do Jan 03 23:44:29 which doesn't seem to be the case Jan 03 23:45:52 j4cbo: do a sleep for 10 min on the UI thread? Jan 03 23:46:10 j4cbo, ndk code that crashes will not produce a stopped dialog Jan 03 23:46:15 j4cbo, because it has no usable stack Jan 03 23:46:21 well, it kinda does, but not really Jan 03 23:46:58 pfn: in this case it's a thread that was created by Java, so i could call into the JVM if need be Jan 03 23:47:35 j4cbo: does this help: http://stackoverflow.com/questions/13961053/does-android-send-crash-reports-in-google-play-for-ndk-c-crahses Jan 03 23:47:40 Again: What is the proper way of doing a long polling tcp connection and keep the connection alive? Establishing a Socket with a Timeout (for example 5 min) and send a (1~byte) packet all 5 minutes from server to client or is it better to send a packet from client to server in nMinutes with a Wakelock? Jan 03 23:48:39 gverig, i'd actually like to know if they send them for java apps too Jan 03 23:49:10 gverig: that references breakpad, which takes stackdumps, but i don't think it communicates the crash to the user Jan 03 23:50:53 gverig, nvm. i completely misread your post Jan 03 23:50:55 misterli: generally TCP should not close sockets for inactivity. Are you observing this behavior on a specific server, specific client, etc? Jan 03 23:51:08 meh, com.android.tools.build 0.7.3 breaks api compatibility again, how annoying Jan 03 23:51:14 well, sure it should not BUT, wifi -> 3g - Jan 03 23:51:31 and/or network disconnect->connect (yeah, broadcastreciever) or no signal for a second Jan 03 23:51:57 or .. service get destroyed by gc, there are several reasons for validating. AND routers are usually "forget" the route when there is inactivity Jan 03 23:51:58 misterli: err... if you switch between networks you *will* break TCP connection. You are getting new addresses and switching interfaces. Jan 03 23:52:16 yeah, but not with low signal Jan 03 23:52:26 misterli: Android might have some recovery baked in but in general you just need to put soem fault tolerance in it Jan 03 23:53:25 there are by far hundres of trys to implement a proper push (and not use gcm, c2dm, gxmp). One is using MQTT, other is XMP; other is Mosquito, other is HTTP Rest but long polling seems to be the best but android do not like it when a background service is ... Jan 03 23:53:30 misterli: I'm confused, sorry. Yes, you socket could break for a number of reasons. And no, sending pings will not prevent eviction from running (I don't think it's GC but that's details) Jan 03 23:53:36 And i need to make sure that there is less battery-usage Jan 03 23:53:52 yeah, this will not but it will throw an IO Exception (which means not connected anymore) Jan 03 23:54:10 currently i send a package from server to client each 300 seconds. The Socket on the clientside has a timeout of 305 seconds Jan 03 23:54:47 misterli: So, if your question is about how to properly *detect* a disconnect (not how to keep the connection open) then yes, pings are the only sure option. Jan 03 23:55:09 yes and no. "Keeping the connection open requires heartbeats Jan 03 23:55:22 but now the question is mainly if it's better to send from client to server or from server to client Jan 03 23:55:23 misterli: Next best thing might be to monitor networking interfaces and detect radio switches offline>3G>4G>Wifi>other wifi>offline. Jan 03 23:55:35 yeah, this is done already Jan 03 23:55:41 misterli: I'm assuming you've already considered gcm? Jan 03 23:56:12 sure. I tried different pushs already. HTTP REST, Mosquitto, XMPP, GCM Jan 03 23:56:40 But i try to avoid using google's own pushes since i can't validate that the push has been "recieved" and it's only for 2.2+ and it requires google play (&account) Jan 03 23:56:54 and yeah, i assume that gcm is using a longpolling connection too Jan 03 23:57:13 last try (which was working great) was deacon and a meteor-server Jan 03 23:58:59 misterli: So, no, I don't think that "Keeping the connection open requires heartbeats". Detection that connection died might require heardbeat but connection should stay open fine barring any server-specific behavior. Jan 03 23:59:34 trust me, usually keepalive connections should sent a "validation package" (and yeah, its called heartbeat. Android (or TCP) does not do this automatically and routers will forget the connection after a timeout Jan 03 23:59:37 misterli: 2.2 is not that much of a restriction considering the version footprint but that's your call, who am I to judge. Jan 04 00:00:23 Its mainly that i need to validate that the package has been sent and that it's used in companys (which dont uses google accounts for security reasons) Jan 04 00:01:33 misterli: I trust you... sort of but that's against the TCP spec. Said that, there are all sorts of optimizations that are against he spec. So yes, if you want to know that your socket is open you want a heartbeat (and yes, I know it's called that; I also know it's not required for well-implemented TCP but you are right with telco and home routers all bets are off. Jan 04 00:02:31 misterli: I don't know whether it would be any better but you could have one-way heartbeat coming from the server, that way you don't need to wake up the chip yourself. Again, I don't know whether it would help. Jan 04 00:02:46 yeah :/ and there are some providers aswell which does not even "timeout" when just one byte is send. "Telecom", germanys biggest provider does not TIMEOUT when just one byte is send via a keepalive conncetion Jan 04 00:03:04 so you guess it's more performant to send the push from the server? Jan 04 00:03:19 instead of using an alarmmanager (all 300sec) and send a ping from client to server? Jan 04 00:03:55 misterli: that's my guess. It's totally unsubstantiated. Jan 04 00:04:42 thank you for that! Well the annoying stuff is that i did it already this way. And it drained the battery within 2 hours Jan 04 00:04:52 misterli: I would also take a loooong and hard look at the tolerance of your app. Maybe an HTTP REST ping (as you mentioned) every 10 min is enough? Jan 04 00:05:10 HTTP Rest is overloaded since it needs a Header Jan 04 00:05:23 and a webserver of course Jan 04 00:06:25 Don't overthink it. If you send a ping every 10 min headers aren't a huge issue. You send an extra packet or two. TCP has so much overhead as is that concern about headers is overblown. Said that, you are controlling it, you can pick what to send. Jan 04 00:06:44 meteor (webserver) and deavon was fine but as soon as i got 40.000 ~ connections to the server the cpuload was at 100%. Same with the Memory (on a 32gig box with an intel core i7 3930) Jan 04 00:06:47 Well... you are sending those messages somewhere. You just change your server to a web server. Jan 04 00:07:05 webservers are not designed to have that many keep-alive connections :S Jan 04 00:07:58 misterli: I think you misunderstood my meaning. I didn't mean "abuse the web server", just accept that you will have a 10 min delay (at the longest) and then do update-disconnect Jan 04 00:08:34 If you do want/need to keep those connections, don't torture the poor web server. Jan 04 00:08:35 but yea. I see you have lots of experience and i will give all hints a try but i tried ALOT and the best solution was (right now) a keep alive connection to a java server which is running a socketwheel and creates a thread for each connection (less memory, less cpu, highly performant, and can be used on all boxes) Jan 04 00:09:28 o_O thread per connection generally eats up crapload of memory. Especially in java world. But I didn't play with that server. Jan 04 00:10:26 I see. Well, there are a few "restrictions" which should be take care about (it's my own restrictions since i want to sell those projects to companys and not use it only on my own server). A) use less software. Less = better. b) make it simple. It's not good to have several servers with different configs. c) make it stable and fast d) keep the connection alvie ALWAYS! when the client Jan 04 00:10:27 disconnect then reconnect and send the "missed" packages when available Jan 04 00:10:38 tried it with 40.000 connections. 220mb of memory, 1% cpu load :P Jan 04 00:11:17 sorry for distrubing you with that Jan 04 00:11:52 Depending on your needs (and I don't know what they are) I would look at some IM server or an MMO server Jan 04 00:12:03 IM? Jan 04 00:12:05 Instant Messaging? Jan 04 00:12:10 yes. Jan 04 00:12:17 what is mmo? MMorpg? Jan 04 00:12:27 yes Jan 04 00:12:33 Yep, did that. They are using XMPP Jan 04 00:12:46 Facebook uses MQTT. Used both of the protcols already Jan 04 00:13:08 XMPP with aSmack (the only one xmp client) and MQTT with Mosquitto (server) and the ibm's mosquitto (and paho) Jan 04 00:13:31 when you say SocketWheel, do you mean this http://www.javaspecialists.eu/archive/Issue023.html Jan 04 00:13:41 exactly! Jan 04 00:14:28 mmm... sorry to disturb you with that but it does not do a thread per connection :p Jan 04 00:15:25 gverig: it looks like it does to me Jan 04 00:15:26 well, at the moment i use the first example on the top (for testing). And this does :P Jan 04 00:15:27 then how is it handling connecitons? Jan 04 00:15:43 JesusFreke: Are you looking at the first class or the last one in the page? Jan 04 00:15:48 and yea, the bottom does the same. It synchronize the sockets in the loop but it uses one socket for each accepted connection Jan 04 00:15:49 first Jan 04 00:16:12 but yea, i didnt try the last example yet and i was still looking for a solution on clientside Jan 04 00:16:27 hey guys, im looking to build a real simple web app. Just wondering if anyone knew of an open-source one that i could peek at to feel my way around things Jan 04 00:16:44 http://pastebin.com/utWTC78W here you are. My Servercode at the moment which is VERY performant Jan 04 00:16:46 JesusFreke: That's not the SocketWheel. There is the last server class in the article Jan 04 00:16:52 gverig: yeah, I see now Jan 04 00:16:59 more or less have a web page displayed in my app with a few tweaks Jan 04 00:18:20 misterli: mmm... I think your server is missing "while(true)" bit, so your 'run' should exit as soon as it starts... no? Jan 04 00:18:21 Hi, Is it possible to have a relativelayout with children higher than itself? I'd like to implement a Collapse animation but my children always take match_parent height... Jan 04 00:18:45 erm, no? :) Jan 04 00:18:52 ah, there is a timer there... Jan 04 00:19:07 check the Server(int port). It runs forever Jan 04 00:19:30 misterli: yes, server runs forever but the threads that you open per socket die immediately Jan 04 00:19:48 What's left are timer tasks running on a single timer thread Jan 04 00:19:49 why do you think so? Jan 04 00:20:07 check line 48 to 50 Jan 04 00:20:50 misterli: yeah, while br.readLine()) != null, which will be emptied in one of two iterations. Add a println on exit and see Jan 04 00:21:04 Nope :P Jan 04 00:21:19 check the ( ) Jan 04 00:21:49 Ahh... it's blocking. Forgot that, sovvy. Jan 04 00:21:57 it waits aslong as it needs to recieve a package and (and socket timeout does not happen) Jan 04 00:22:26 i found one very good try but i dont want to use services for that (i prefer observers) https://code.google.com/p/android-random/source/browse/trunk/TestKeepAlive/src/org/devtcg/demo/keepalive/KeepAliveService.java Jan 04 00:22:30 misterli: What OS are you running on? Jan 04 00:22:35 Debian Jan 04 00:22:50 but at the end it should run on all which have jre/jdk running Jan 04 00:22:57 currently debian on jdk oracle Jan 04 00:23:46 Well... I have not done this in a while but when I did look at it there was more than significant overhead of spinning up a thread, mulitple megabytes. Jan 04 00:24:08 question guys. How should i name a package? Jan 04 00:24:11 so, what would you prefer instead? Jan 04 00:24:17 are there ay things people follow? Jan 04 00:24:44 AndreYonadam: the usual way is to use a domain name associated with the application Jan 04 00:24:57 myblah.com = com.myblah.myapp Jan 04 00:25:05 What if its on gitHub and its a lib? Jan 04 00:25:07 misterli: when I did this I preferred something more along the lines of the actual SocketWheel example, with async polling of sockets. But if it works for you, do that, it's not a religion. Jan 04 00:25:10 com.libraryname? Jan 04 00:25:13 leave it at that? Jan 04 00:25:19 mine is org.durka.appname Jan 04 00:25:21 or should I still put my name or domain Jan 04 00:25:21 AndreYonadam: I've seen people use com.github.blah. I'm not sure if that's recommended or not Jan 04 00:25:23 which is not a domain Jan 04 00:25:24 gverig, this servercode is "just for testing" :P Jan 04 00:25:27 http://docs.oracle.com/javase/tutorial/java/package/namingpkgs.html Jan 04 00:25:28 but I guess it's too late to change now :p Jan 04 00:25:52 thanks Simon14 JesusFreke Jan 04 00:25:56 it looks by far not good and it was a quick 3min code to check if the battery drain on the androido device Jan 04 00:26:03 misterli: oh, I know that but if that approach works, maybe Oracle changed the way threads are handled or maybe I'm getting senile. Jan 04 00:26:04 WtfF? simon14 lol I meant SimonVT Jan 04 00:26:08 Yeah, thanks Simon14 Jan 04 00:26:10 Yeah Jan 04 00:26:11 lol Jan 04 00:26:14 Good guy Simon14 Jan 04 00:26:27 haha Jan 04 00:26:55 gverig. Well, ill code the server in C and PHP aswell (later) but this is for the beginning just for testing. Doesnt matter if Threads or other solutions since i need to make sure that the android device keep alive Jan 04 00:28:01 AndreYonadam: as a random example: https://play.google.com/store/apps/details?id=com.github.aview.app Jan 04 00:29:00 Thanks. Would you reccomend using a name or domain Jan 04 00:29:01 ? Jan 04 00:29:12 if you have a domain, use a domain. Its just a validator Jan 04 00:29:32 Alright guess that's what I'm doing to do. Jan 04 00:29:34 Thanks guys. Jan 04 00:29:43 http://docs.oracle.com/javase/tutorial/java/package/namingpkgs.html Jan 04 00:29:46 misterli: right. Jan 04 00:30:02 but still the same problem. There are several cases when the connection "break" Jan 04 00:30:31 a) display off (maybe it needs a wakelock to reconnect) b) gc destroy the service c) wifi -> 3g d) no signal e) server disconnects for some reason Jan 04 00:36:03 misterli: yes. The answer depends on your case. Ideally, you take a hard look at your actual problem and say "you know, they don't really need to have the information right away" and just do HTTP poll (not a long poll, just poll) every 10 min. Jan 04 00:36:53 well, as "faster" as better since it's a push for (some cases) important packages. But yea, if it's not recived due no signal then 10 min is the LAST backup-time which may be happen Jan 04 00:37:15 But polling every 10 min (http) is not effective since it uses by far more battery then a long polling tcp connection Jan 04 00:37:55 misterli: if you need more immediate access, just a TCP, do keepalive ping ~ every 2 min. I don't know how much difference it makes but intuitively I would ping from the server. Jan 04 00:38:10 If client does not detect a ping, it reconnects. Jan 04 00:38:17 Are you intersted in this? If yes then ill try it. (and check which is more efficient)? Jan 04 00:38:41 That way messages will still come in. Delay will be at most 2 min (in normal conditions) Jan 04 00:39:05 repost: Does anybody know of any references on the OS footprint on non-Google android distros (Kinde et. al.)? Jan 04 00:39:15 well, im not sure if the client respond to "pings" without wakelock (always) Jan 04 00:39:37 i am having a problem where I have a button in a fragment_main and I am trying to call an action on it through setOnClickListener... and it throws a null exception at me, does anyone know how to fix it? I'm brand new with android Jan 04 00:39:43 misterli: I'm curious. side note: on my machine a simple thread test crashes with a thud after 8k threads. Maybe it's not rebuilt properly.... Jan 04 00:39:50 "OS footprint"? Jan 04 00:40:07 bkboggy: what's null? pastebin the stacktrace Jan 04 00:40:09 bkboggy: is the null pointer exception called when you press the button? Jan 04 00:40:20 doesn't even get to that point Jan 04 00:40:30 just crashes as soon as program starts Jan 04 00:40:50 gverig. specs? Jan 04 00:40:50 it should be telling you what line of code triggered the exception Jan 04 00:40:51 sec , let me get pastebin Jan 04 00:40:57 oh, i know what line Jan 04 00:40:59 durka42: In the wild, how are version distributed. Jan 04 00:41:02 i just don't know why Jan 04 00:41:28 it always depends on optimisation. Threads require memory to "load". Onec its allocated it's fine. The server itself uses lots of memory at beginning but getting better after a few seconds Jan 04 00:42:05 misterli: ... desktop. Xeon 6x, 24G RAM Jan 04 00:42:13 i guess a linkedlist "pre"allocate the memory aswell and then the gc collect/recycle unneeded memory? Jan 04 00:42:20 wtf. :D your computer? Jan 04 00:43:25 https://code.google.com/p/android-random/source/browse/trunk/TestKeepAlive/src/org/devtcg/demo/keepalive/KeepAliveService.java Jan 04 00:43:51 This sample seems to be tested and working. The client sends the heartbeat. Same within the MQTT Classes of ibm/paho Jan 04 00:44:31 misterli: work... Jan 04 00:45:48 misterli: http://pastebin.com/3SuvDfVt ... crude test, maybe I messed something up. Jan 04 00:45:56 misterli: the author of that drops by in here sometimes, just FYI Jan 04 00:45:56 haha, yeah. Well. But at least it looks like that its a better soluton to do the heartbeat from clientside. When is not success "reconnect". When the server accept the connection the client identify with the first header package. Then it can look in the wheel if this is already connected (and idle) Jan 04 00:45:58 (jasta) Jan 04 00:46:03 yeah? Cool Jan 04 00:46:23 gverig, let me test this on my box Jan 04 00:47:06 here's pastebin of the fatal error plus my MainActivityn code underneath Jan 04 00:47:07 http://pastebin.com/DGiyTA61 Jan 04 00:47:31 i thought that maybe by placing my code into fragment class it would work, but the same exact thing happens Jan 04 00:48:00 is R.id.buttontest correct? Jan 04 00:48:05 I guess we need to see the layout xml too Jan 04 00:48:10 k Jan 04 00:48:11 sec Jan 04 00:48:35 because setupViews() looks okay to me Jan 04 00:48:38 but I'm not expert on fragments Jan 04 00:48:39 http://pastebin.com/GDjMUnE0 Jan 04 00:48:55 3% cpu, almost 0 memory Jan 04 00:49:13 O.o the code for SSLCertificateSocketFactory is kinda bizarre, why are they using all these private impl classes like OpenSSLContextImpl Jan 04 00:49:18 bkboggy: that's res/layout/fragment_main.xml? Jan 04 00:49:22 yes Jan 04 00:49:53 i should mention i'm using Android Studio 0.4.0 Jan 04 00:49:54 30797 root 20 0 9111776 25616 7248 S 0.7 0.2 0:00.06 java Jan 04 00:50:13 bkboggy: the button view doesn't exist in the scope of the activity class Jan 04 00:50:17 01:50:09 up 8 days, 4:02, 2 users, load average: 1.41, 1.41, 1.32 Jan 04 00:50:20 You need to setup that view in the fragment. Jan 04 00:50:32 bkboggy: hmm I am wondering whether onCreateView is not actually called until after onCreate finishes Jan 04 00:50:35 in which case the button would not yet exist Jan 04 00:50:48 see https://developer.android.com/reference/android/app/Fragment.html#Lifecycle Jan 04 00:52:01 well Jan 04 00:52:16 misterli: it ran through to 40k? Is this a line from top? weird... this is not even near what it looks like to me. Oh well, I should read up on this then I guess :) Jan 04 00:52:23 i tried placing that cideo inside PlaceholderFragment class and it gave me the same behavior Jan 04 00:52:31 code* not cideo Jan 04 00:52:36 I don't see why you have a fragment at all here Jan 04 00:52:38 yeah. This is from top and yeah it run through Jan 04 00:52:51 durka42, default of android studio Jan 04 00:52:56 if i knew how to create without it, i would Jan 04 00:53:00 highest peak (tried again) was 1,4% (cpu) Jan 04 00:53:01 bkboggy: yes, but did you put the code in onCreateView or somewhere else Jan 04 00:53:06 bleh, android studio Jan 04 00:53:15 java version "1.7.0" Jan 04 00:53:21 durka42, i'll post what i had, sec Jan 04 00:53:56 same, just openJDK, not Oracle Jan 04 00:54:11 then you doing smth wrong :P Jan 04 00:54:20 3355 meteor 20 0 36068 8776 2248 R 83.4 0.1 3681:04 meteord da+ Jan 04 00:54:31 84% cpu load of meteord (which have only 120 keep alive connections at the moment) Jan 04 00:54:48 misterli: possible. It also shows 20G virtual memory reserved. Jan 04 00:55:31 ouch Jan 04 00:56:24 22608 gverig 20 0 22.0g 188m 11m S 0 0.8 0:06.34 java Jan 04 00:56:25 that's a lot of memories Jan 04 00:56:28 but i stil dont get it why he uses a service and not an observerable https://code.google.com/p/android-random/source/browse/trunk/TestKeepAlive/src/org/devtcg/demo/keepalive/KeepAliveService.java Jan 04 00:56:54 how long did it take to process all threads? Jan 04 00:57:13 misterli: Dude also still uses google code.. there's that Jan 04 00:57:18 It didn't. It froze at 9900 Waiting for me to kill it. Jan 04 00:57:42 what about "uptime"? Cpu load? average? Jan 04 00:57:53 SimonVT. What do you mean? GC? Jan 04 00:57:55 SimonVT: check the date. circa 2009 on that Jan 04 00:57:55 GCM? Jan 04 00:58:12 16:57:51 up 18 days, 7:04, 8 users, load average: 457.47, 117.60, 51.29 Jan 04 00:58:19 haha Jan 04 00:58:23 fix your system :) Jan 04 00:58:23 misterli: code.google.com Jan 04 00:58:40 JesusFreke: Ah, that explains it Jan 04 00:59:01 i see. But even when its from 2009 (and not on git or whatever) there must be "good" solutions of keep alive (excluding gcm) Jan 04 00:59:10 Amazon do it. Parse do it... and several other do it aswell Jan 04 00:59:59 i don't get it... Jan 04 01:00:02 now it's not giving me error Jan 04 01:00:10 when i put it into fragment code Jan 04 01:00:15 s Jan 04 01:00:15 maybe an android studio bug Jan 04 01:00:26 misterli: on why service... I am new to Android but wouldn't you want to use service if you want your app (or your keepalive) to work across your app executions? I assume you'll want yours to be a service as well... no? Jan 04 01:00:30 wouldn't be the first one Jan 04 01:00:52 No. I would lovely use a service which register an observer Jan 04 01:01:00 well, it's pre-release, not grudges against them Jan 04 01:01:03 and unregister when onDestroy and register when onStart ... Jan 04 01:01:30 isn't that what a bound service does Jan 04 01:01:38 ah... so you have a problem with how interaction is organized, not with the service itself? Jan 04 01:01:47 yes, right Jan 04 01:02:09 misterli: I don't get what the point of that service is Jan 04 01:02:25 I c Jan 04 01:02:40 wait, private static final String HOST = "jasta.dyndns.org"; Jan 04 01:02:44 Where is jasta Jan 04 01:02:58 havent seen him in a while Jan 04 01:03:00 When is jasta avilable? :) Jan 04 01:03:17 the poing is doing an efficient "push" without gcm and without a foreground service which confuses people Jan 04 01:03:30 to be fair, do you really expect him to remember much about code from 2009? :) Jan 04 01:03:50 JesusFreke: I expect him to explain himself :p Jan 04 01:04:00 haha Jan 04 01:04:07 misterli: There is no efficient way Jan 04 01:04:13 You need to keep a connection alive Jan 04 01:04:36 The only way to do that reliably is to have a foreground service Jan 04 01:05:14 well. Deacon does it very efficient. It reconnects when disconnected and it's almost "live". No battery drain. Highly performant Jan 04 01:05:40 You don't have to use a foreground service, there's just a higher chance it will be killed Jan 04 01:05:48 With GCM the system keeps a connection alive for you Jan 04 01:05:54 well, deacon is open source, so... Jan 04 01:06:01 http://pastebin.com/pshA5dg8 Jan 04 01:06:28 reboot Jan 04 01:06:44 and yes. They are using socket timeouts and i guess it uses push from the meteor (the meteor send push to the client) right? Jan 04 01:07:14 misterli: You know how the status bar icons changed color pre-kitkat.. That was whether or no the connection that GCM uses was open Jan 04 01:07:41 no, didnt know that, but thanks for the hint Jan 04 01:08:20 I'm having problems with my fillinintent Jan 04 01:08:24 http://pastebin.com/x3miKF5r Jan 04 01:08:55 when I click the button that has setOnClickFillInIntent on it, absolutely nothing happens Jan 04 01:08:57 SimonVT: oh is that how it checks to see if the wi-fi really has internet. neat. Jan 04 01:09:06 kitkat doesn't have that indicator? Jan 04 01:09:17 http://stackoverflow.com/questions/11789407/socket-connections-and-polling-which-is-a-better-solution-in-terms-of-battery-l the answer is very good. But still does not clarify if its better to send from client to server or from server to client Jan 04 01:09:21 Kitkat has the indicator in the drawer you get when you pull down with 2 fingers Jan 04 01:09:29 (if I remove the intenttemplate, tapping the button at least gives me an error that there's no template set) Jan 04 01:09:31 They just removed it from the status bar Jan 04 01:09:43 Either way, the system tries its hardest to keep the connection alive Jan 04 01:10:15 You don't have to spawn foreground services and whatnot to try and ensure push messages are delivered Jan 04 01:10:26 the docs on how to set up an intent template are really poor :( Jan 04 01:10:49 ah, it didn't work after all, i just forgot to call the method, so here's how i put it inside the context of the fragment, and still it doesn't work (i have xml, then code, then error): http://pastebin.com/70QMMh0L Jan 04 01:11:03 same error regardless of where the code is within that .java file Jan 04 01:11:47 happens on the line where i attach the listener Jan 04 01:13:01 for some reason button is null Jan 04 01:13:12 bkboggy: The fragments view is not added to the activity in onCreateView Jan 04 01:13:26 hmm? Jan 04 01:13:29 bkboggy: in lieu of an explanation, I offer a workaround… just do this in xml: https://developer.android.com/reference/android/R.attr.html#onClick Jan 04 01:13:30 That happens later Jan 04 01:13:41 So Activity#findViewById will not find the framgents view Jan 04 01:13:42 onattach? Jan 04 01:13:57 ohh Jan 04 01:13:57 nvm Jan 04 01:14:04 onActivityCreated? Jan 04 01:14:08 but i'm not pushing the cido within activity oncreateview Jan 04 01:14:15 i'm doing it withinf fragment's oncreateview Jan 04 01:14:19 within* Jan 04 01:14:22 code* Jan 04 01:14:23 Either call findViewById directly on the view in onCreateView, or use onViewCreated.. Jan 04 01:14:25 sorry for typos Jan 04 01:14:41 Also, you should put your fragments in their own java files Jan 04 01:14:55 SimonVT, default android studio stuff Jan 04 01:15:19 i don't enough to do that yet, i just want to click the damn button, lol and android studio complicates it Jan 04 01:15:31 didn't have issues with it in eclipse without fragments Jan 04 01:15:32 brb Jan 04 01:15:38 I don't think it's really the default to put every view in its own fragment Jan 04 01:15:59 pfn: The guy with the good battery uses this. http://forum.xda-developers.com/showthread.php?t=1367341 . I'll try it and tell you how it is. Jan 04 01:16:03 i didn't alter the application project in any way, i just put a button and the button code in it Jan 04 01:17:43 AndreYonadam, brilliant, it worked! Jan 04 01:17:48 onViewCreated() Jan 04 01:18:00 thank you so much Jan 04 01:18:03 Thank SimonVT Jan 04 01:18:05 lol Jan 04 01:18:11 Thank you SimonVT Jan 04 01:18:12 I said onActivityCreated by accident Jan 04 01:18:20 thanks to all really Jan 04 01:18:20 Not Simon14 haha SimonVT :D Jan 04 01:18:31 (Inside joke) Jan 04 01:19:00 most noob-friendly channel I've been on in a while along with x86 (those guys are nice) Jan 04 01:22:22 misterli: I'll re-test on Oracle VM when I have a chance. Same stuff after a fresh restart. I do recommend when you go to the real server you use async communication, single (or a few) threads and selectors. Jan 04 01:22:41 misterli: On keep alive I already gave all my thoughts but again, they are mostly theoretical. Jan 04 01:22:47 bkboggy: android x86 channel? Jan 04 01:22:56 no Jan 04 01:23:11 it's actually not just x86, it's asm period Jan 04 01:23:20 ahh that is awesome Jan 04 01:23:22 ##asm Jan 04 01:23:34 I love asm but dunno if I will ever code in it again lol Jan 04 01:23:35 bunch of nice guys over there, trying to preserve lost art, lol Jan 04 01:23:56 yeah, it's not... most exciting thing to play with, but it's good to know, I think everyone should learna little Jan 04 01:24:08 that an operating system architecture Jan 04 01:24:18 man, my typos out of line today Jan 04 01:24:24 yeah you really understand coding when you do it in asm Jan 04 01:24:54 greetings Jan 04 01:24:59 so close to metal that its only above literally using binary (well or just 0-fs anyway lol) Jan 04 01:25:26 yeah, a good portion is done in binary anyways Jan 04 01:25:37 it's fun to mess with flags Jan 04 01:25:47 " Jan 04 01:25:49 "fun" lol Jan 04 01:26:23 well, i'm off to get some food, thanks to everyone once for helping me, afk Jan 04 01:26:33 once again* Jan 04 01:26:34 god.. Jan 04 01:27:07 oh you forgot to turn off typoer? ;) Jan 04 01:30:58 What license do you guys use for android libraries? Jan 04 01:31:32 MIT Jan 04 01:31:53 yeah. I was deciding if I should use MIT or Apache Jan 04 01:32:01 Don't know the difference they seem very similar. Jan 04 01:32:02 lol Jan 04 01:33:51 funkbox: Might go with MIT http://stackoverflow.com/a/94233 Jan 04 01:34:05 I'm pretty confused, how do I set my appwidget to use holo light? Jan 04 01:34:09 as long as it's not any of the GPLs Jan 04 01:40:54 AndreYonadam: I like the simplicity of bsd Jan 04 01:41:20 really short and easy to understand Jan 04 01:43:11 JesusFreke: This site is nice Jan 04 01:43:15 tldhttp://www.tldrlegal.com/compare?a=MIT+License&b=BSD+3-Clause+License+%28Revised%29 Jan 04 01:43:29 Don't take my word for what they say though. Not sure if it is accurate. Jan 04 01:43:47 Idk I don't trust that site. Jan 04 01:44:52 AndreYonadam: well, you can always go with the wtfpl :) Jan 04 01:44:59 wtf is that lol? Jan 04 01:45:08 http://www.wtfpl.net/ Jan 04 01:45:15 HAha Jan 04 01:46:41 MIt looks the best. Jan 04 01:47:20 BSD 2-Clause also looks decent. Jan 04 01:47:21 but yeah, bsd/mit/apache are all more-or-less equivalent. The exact details may be a little different, but it's unlikely you'll ever run into a case where it would actually matter Jan 04 01:47:27 Might just go with MIT though. Jan 04 01:47:29 bsd ftw Jan 04 01:48:03 I use apache Jan 04 01:48:27 Github made http://choosealicense.com/ Jan 04 01:48:43 SimonVT: +1 Jan 04 01:48:44 lol Jan 04 01:49:19 Quick question what do they mean by patents? Jan 04 01:50:19 SimonVT: Is it true with Apache you must include changes in the software? Jan 04 01:50:42 AndreYonadam: no, that's gpl Jan 04 01:51:18 JesusFreke: http://choosealicense.com/licenses/apache/ Required : "State Changes" Jan 04 01:51:43 You also can't use a trademark according to "ChooseALicense.com" Jan 04 01:51:49 I have a design question. where is the best place to implement collecting data from my fragment views? in the activity? in the fragmentpageradapter? Jan 04 01:52:20 AndreYonadam: right, If you make a file available pubilcally that was based on an apache licensed piece of source code, you have to state (e.g. in the header) that the file was modified Jan 04 01:52:45 Ahh Jan 04 01:53:55 but you're not required to make any modifications public Jan 04 01:54:40 Still Its kinda worded confuszing. Lets say I control the origional branch on GIT and someone makes a commit will I have to write what changes they made? Jan 04 01:55:10 Its owned by me techniclytechnically Jan 04 01:55:14 *technically Jan 04 01:55:17 AndreYonadam: if you own the copyright, you don't have to do anything. Jan 04 01:55:24 it's yours to do with as you will Jan 04 01:55:37 JesusFreke: Alright thanks. That clears up a lot of misconceptions. Jan 04 01:56:09 the license is a contract between you and anyone who wants to use your source code. You're telling them what they can and can't do. Jan 04 01:57:19 IANAL, buyer beware, if your dog dies don't blame me, etc. etc. :) Jan 04 01:57:55 I see. BSD, Apache and MIT are all very close. Jan 04 01:58:08 yep Jan 04 01:59:28 JesusFreke: Thanks for the help. Jan 04 02:41:59 Hi guys Jan 04 02:42:26 do you happen to know what should be paid in order to create a *legal* app that plays music? Jan 04 02:42:43 for example in the case of spotify Jan 04 02:42:49 lots of license fees Jan 04 02:42:50 lastfm, or whatever else Jan 04 02:43:09 pfn, that's what I imagined, but I was looking for something more specific :P Jan 04 02:43:42 it doesn't really matter Jan 04 02:43:53 what doesn't? Jan 04 02:43:54 because you can't afford it, and if you could, you'd know the right people to get in contact with Jan 04 02:44:05 that can tell you what you need to pay Jan 04 02:44:21 I'm not asking because I'm going to pay Jan 04 02:44:27 I'm asking to know Jan 04 02:44:40 are you asking about licensing the music, or the codecs? Jan 04 02:45:14 just the licenses Jan 04 02:45:16 sounds like codecs Jan 04 02:45:22 do you have to pay to use mp3? O_o Jan 04 02:45:30 look at the various licensing filings Jan 04 02:45:47 because making app to listen to music needs codecs. some licenses is free since its open standard though Jan 04 02:46:12 nowadays mp3 is basically enough Jan 04 02:47:04 Mattx: http://en.wikipedia.org/wiki/MP3#Licensing_and_patent_issues Jan 04 02:47:16 * JesusFreke shrugs Jan 04 02:48:37 wtf? Jan 04 02:49:09 ok Jan 04 02:49:15 what happens if I use videos from youtube? Jan 04 02:49:16 :P Jan 04 02:49:30 the youtube gods smite you Jan 04 02:49:40 2 more years Jan 04 02:49:50 well less than 2 years now Jan 04 02:50:31 I hate smart phone market, over 100,000 patents Jan 04 02:51:14 240,000 actually Jan 04 02:51:27 <JesusFreke> the youtube gods smite you Jan 04 02:51:27 <XXCoder> 2 more years Jan 04 02:51:27 <XXCoder> well less than 2 years now Jan 04 02:51:33 I'm sorry guys, I lost the connection Jan 04 02:51:43 not much added Jan 04 02:52:02 I just said that I hated smart phones due to 240,000 patents Jan 04 02:52:27 ok, so the question was.. what if I use instead videos from youtube? Jan 04 02:52:44 I SUPPOSE I'm not responsible for what youtube have Jan 04 02:52:47 even if it's in my app Jan 04 02:52:57 youtube dont like other players Jan 04 02:53:04 expecially if downloads em too Jan 04 02:53:40 I'm fine using youtube's player if I'm not sued for playing music Jan 04 02:54:00 or videos, or whatever Jan 04 02:54:07 hmm I suppose if theres disclaimer or something? not a lawyer Jan 04 02:54:55 I guess a link to the original video (in youtube) would do Jan 04 02:55:37 Mattx: what are you trying to do? Jan 04 02:56:42 I've been learning android for some time now and I want to do something with music/videos/media content, so I wanted to know what the limits and legal issues are Jan 04 02:56:43 that's it **** ENDING LOGGING AT Sat Jan 04 02:59:58 2014