**** BEGIN LOGGING AT Sun Dec 28 02:59:59 2014 Dec 28 03:19:46 man, my hotel room so blinh Dec 28 03:19:51 bling Dec 28 03:20:03 only downside is that it's a bit pink Dec 28 03:20:59 my shower even has a stripper pole Dec 28 03:24:47 does the stripper pole come with a stripper though? Dec 28 03:24:55 kinda useless otherwise :p Dec 28 03:32:45 pfn is it rent by hour O.o Dec 28 03:32:53 swanky Dec 28 03:34:35 pfn is rented by the hour? Dec 28 03:35:02 sounds like a good deal, if you have scala questions. Dec 28 03:35:59 as long as he brings his own pole... Dec 28 03:37:26 anybody possibly see what's wrong with this? I'm trying to make a timer (chrono) start whenever I let off of two buttons at the same time, but then stop whenever I tap either one. this code looks so right to me, but my timer won't even start right now :/ Dec 28 03:37:28 https://gist.github.com/anonymous/ed7c943f7c3adabd564a Dec 28 03:41:24 sorry idk what happened or if anyone answered lol Dec 28 03:42:53 drinfernoo: I haven't looked at it much, but the first thing that jumps out at me is the first if statement, where you set the left or right field Dec 28 03:43:16 in particular, you don't seem to take MOVE events into account Dec 28 03:43:18 Does anyone know how to find the battery level of a wearable? Dec 28 03:43:28 Programmaticall Dec 28 03:43:31 Programmatically Dec 28 03:44:21 It seems to me that you would only want to set left or right to true if you get a DOWN event, and then only set them back to false when you get an UP event. But you're setting them to false on any non-DOWN event. e.g. a MOVE event. Dec 28 03:44:41 Actually.. Dec 28 03:45:11 yeah, that should do it, I think Dec 28 03:47:29 anyone? Dec 28 03:51:48 thanks guys Dec 28 03:52:18 you're welcome Dec 28 03:52:38 opiop65: always glad to ignore questions I don't have the answer to :) Dec 28 03:54:23 JesusFreke, so I have it returning is its not up or down now, and still no dice :( lol Dec 28 03:54:29 if* Dec 28 03:54:55 if (action != MotionEvent.ACTION_DOWN && action != MotionEvent.ACTION_UP) Dec 28 03:55:17 drinfernoo: add some logging :) Dec 28 03:55:19 before the first if Dec 28 03:55:47 lol k Dec 28 03:55:50 I'll see Dec 28 03:56:02 I've been trying to figure this out for like three days lmao Dec 28 03:56:28 nexus 9 lte(volantisg) successfully rooted! Dec 28 03:56:57 bynarie: it's not that hard too root nexus devices.. ;) Dec 28 03:57:03 also, #android-root :) Dec 28 03:57:17 they're sorta meant to allow you to do that. Dec 28 03:58:48 drinfernoo: I suspect you might need to inspect the non-primary touches in the MotionEvent Dec 28 03:59:27 I don't recall what getAction() will return in that case, if you are putting a second finger down Dec 28 03:59:44 ohhhh OK I'll look Dec 28 04:00:00 look at getActionIndex() Dec 28 04:00:34 JesusFreke, yes im aware Dec 28 04:00:50 BUT there is no recovery available for the nexus 9 LTE yet Dec 28 04:14:28 i liked that dave thomas 'death of agile' talk Dec 28 04:26:31 does anyone use genymotion on Linux? How do I enable host GPU? Dec 28 04:36:23 hello Dec 28 04:37:16 hi everyone Dec 28 04:47:21 g00s, it's a couple thousand a night or something stupid Dec 28 04:47:33 free upgrade too strong Dec 28 04:54:24 Guys, can anyone help me out with intents? I read the manual but am having a hard time using an intent Dec 28 04:56:24 How do I call a class from an intent? (an activity) Dec 28 04:57:46 Shit, do I have to add all Classes to the Manifest? Dec 28 04:59:08 yes, everything except dynamically registered BroadcastReceivers Dec 28 04:59:49 So i just add a line Dec 28 04:59:53 ? Dec 28 05:00:20 sure. that will allow you to send an explicit intent to start that activity Dec 28 05:00:52 Ok, whats the point of using an intent as opposed to just doing startNewActivity(Class_Name); Dec 28 05:01:18 intents are a more generic way of hooking things together Dec 28 05:01:29 you can add data and other pieces of information to them Dec 28 05:01:41 Like a string I want to pass or something? Dec 28 05:01:46 and for implicit intents, the intents could be handled by different applications Dec 28 05:02:30 Wait, do I need an when I add this activity? Dec 28 05:02:34 like, you could send a VIEW intent with a specific url, and another application could declare that it handles VIEW intents with that type of url (like, a specific website or something), and it would be eligible to receive the intent Dec 28 05:02:44 an intent-filter is only needed for implicit intents Dec 28 05:02:58 What do you mean by implicit? Sorry.. Dec 28 05:02:59 an implicit intent is one that doesn't have a component explicitely set Dec 28 05:03:16 So kind of open ended Dec 28 05:03:39 right. that's what I was trying to explain with the VIEW intent example above Dec 28 05:03:45 http://developer.android.com/reference/android/content/Intent.html Dec 28 05:03:51 see the "Intent Resolution" section Dec 28 05:04:00 Got it, thanks a lot Dec 28 05:04:00 for info on explicit vs. implicit intents Dec 28 05:04:21 So I can make a new intent ClassName.class Dec 28 05:04:30 then setActivity(intentName) Dec 28 05:04:51 Lets see if she runs ah Dec 28 05:06:29 JesusFreke I'm still getting an error\ Dec 28 05:06:36 With the intent Dec 28 05:07:36 I hope you're planning on being a little more explicit than that :) Dec 28 05:07:49 :) Dec 28 05:07:58 constructor intent.intent(intent) is not applicable Dec 28 05:08:17 Argument mismatch; Class cannot be converted to Intent Dec 28 05:08:53 yep. there isn't a constructor that accepts just a single Class argument Dec 28 05:09:04 you can see the list of constructors on http://developer.android.com/reference/android/content/Intent.html Dec 28 05:09:09 this is pretty basic java stuff :) Dec 28 05:09:25 Im looking at that page right now Dec 28 05:09:34 at the public constrctors section Dec 28 05:09:55 the Intent(Context packageContext, Class cls) is likely the constructor you want Dec 28 05:10:00 Would I use this one? Intent(Context packageContext, Class cls) Dec 28 05:10:05 ah, cool! Dec 28 05:10:17 and your Activity object is a context, which you can use for the first argument Dec 28 05:10:37 Ive seen the context thing before, I dont really understand it Dec 28 05:10:41 I.e. "this", in the current Activity Dec 28 05:10:46 Right Dec 28 05:10:55 why does it need the current context? Dec 28 05:11:13 http://www.doubleencore.com/2013/06/context/ is a decent explanation of contexts Dec 28 05:11:42 Ok, so new Intent(this,Classname.class) should work? Dec 28 05:11:46 Yeah Dec 28 05:11:57 In this case, the context basically specifies the application that contains the class that you want to use Dec 28 05:12:15 The application? Dec 28 05:12:17 if you wanted to specify a class from a different application, then you could use a context for that other application Dec 28 05:12:39 So that would be used if my application was to communicate with another application Dec 28 05:12:46 via an explicit intent, yeah Dec 28 05:13:05 most of the time, you would be using an implicit intent to talk to.. the outside world. Dec 28 05:13:13 Ok Dec 28 05:13:23 so the intent needs to know that the class is here Dec 28 05:13:26 in this Dec 28 05:13:29 and then the class name Dec 28 05:13:42 yea Dec 28 05:13:58 CoolCool, thanks Dec 28 05:14:05 And that class has to be listed in the AndroidManifest.xml Dec 28 05:14:18 Right, just tried to run it and still getting that eror Dec 28 05:14:55 I doubt you're getting the exact same error :) Dec 28 05:14:56 cannot be converted to string? Dec 28 05:15:25 And then Intent(Context,class) is not applicable Dec 28 05:15:48 I think it has something to do with the context, it thinks were inside of the inter class Dec 28 05:15:56 oh Dec 28 05:15:58 inner Dec 28 05:16:01 do OuterActivity.this Dec 28 05:16:18 Whats OuterActivity? Dec 28 05:16:26 Just a generic for the class outside what I'm in Dec 28 05:16:27 to reference the instance of the outer class Dec 28 05:16:49 It's just a placeholder. use whatever your Activity class is actually called :) Dec 28 05:17:13 The one that contains the inner class with the error Dec 28 05:17:45 I knew that..... :p Dec 28 05:18:37 Do you run Android Studio? Dec 28 05:18:52 well, I usually use IntelliJ IDEA Dec 28 05:19:05 which is more or less the same thing Dec 28 05:19:21 Does it have a built in compiler? Dec 28 05:24:32 yes Dec 28 05:25:06 so now the code compiles but when I click a button on my phone ( when the intent is supposed to trigger) the app crashes Dec 28 05:25:42 Looks like just an Xml problem Dec 28 05:26:06 you're familiar logcat, hopefully? :) Dec 28 05:26:15 Yup Dec 28 05:26:52 Forgot to add a layout_width and height to a textview Dec 28 05:27:08 Im trying to write my code in a regular text editor and just compile it in Ansroid studio Dec 28 05:27:14 why? Dec 28 05:27:30 Writing java code in a text editor is just.. painful :) Dec 28 05:27:49 Writing code in an IDE is so much more efficient Dec 28 05:28:07 Well for one I'm running an 09 macbook with 2GB ram, so running any large application while trying to follow along with a youtube video or even browse the web is TOO frustation Dec 28 05:28:14 frustrating* Dec 28 05:28:52 Second I forget who but someone told me its a good thing to do as a beginner, learn to do the file structuring and remembering to import things.. etc without the IDE doing ll the work Dec 28 05:29:37 yes, better to know how than not Dec 28 05:29:52 JesusFreke, I tried figuring out the action index, and it looks like the index is always 0, but I'm getting more ACTION_MOVE than anything else Dec 28 05:30:02 like a lot of them more than I expected Dec 28 05:31:00 yeah, you'll get a lot of them. even when you're holding your finger down in the same place, it's actually moving slightly Dec 28 05:31:37 will a macbook air work fine for AS/Eclipse ? Dec 28 05:32:29 How much ram? Dec 28 05:33:39 4GB Dec 28 05:33:53 I would go for 8GB Dec 28 05:34:20 Ill tell you that Im running 2GB right now and running AS is not too fun Dec 28 05:34:32 go for 8GB Dec 28 05:34:35 128 GB flash storage, 1.3 Ghz dual core intel i5 for $899 Dec 28 05:34:41 Not worth it Dec 28 05:34:49 refurbished by apple Dec 28 05:34:51 Spend the extra money, you'll be happy you did Dec 28 05:34:58 Get a pro, screw the air Dec 28 05:35:08 man, that is me spending extra money! Dec 28 05:35:26 I know I know, I'm in the same boat as you, my laptop right now was $295! :) Dec 28 05:35:36 But hey, I love er Dec 28 05:35:39 I like how thin the air is Dec 28 05:35:59 Meh Dec 28 05:36:11 What are you running AS on now? Dec 28 05:36:16 my HP laptop I bought 3 years ago is still a good deal today Dec 28 05:36:28 Why you getting rid of it? Dec 28 05:36:40 I just want a macbook air Dec 28 05:36:51 so I can do iOS dev too Dec 28 05:37:05 True, I'm just starting out with android, wbu? Dec 28 05:37:12 I like thin laptops Dec 28 05:37:21 haha, well alright then Dec 28 05:37:36 but I don't like paying an arm and a leg Dec 28 05:38:08 Neither do I, not for anything. But if its for something I really enjoy doing and am passionate about, and I know its worth it, then yeah Ill spend the money Dec 28 05:38:08 ok well I'll see if there's a 8GB version Dec 28 05:38:11 IF I have it Dec 28 05:38:34 seems macbook airs are all 4GB Dec 28 05:38:43 Thats why I am looking to go with the pro Dec 28 05:38:54 Im gonna be buying a computer for school in a few months Dec 28 05:39:02 and was planning on getting a refurb from apple too Dec 28 05:39:24 man why are these IDE's such memory pigs Dec 28 05:39:31 Anyone know if genymotion is known to have bugs recarding dimens? Dec 28 05:40:13 shmooz thats why I'm writing the code in a regular text editor and building it in AS Dec 28 05:40:14 i have a dimen = 160dp and it comes back 400dp in genymotion emu Dec 28 05:40:23 saves me from a shit load of lag Dec 28 05:40:28 shmooz: they have 8gb Dec 28 05:40:39 lasserix: do you mean 400px? Dec 28 05:41:00 JakeWharton: I don't see it in the refurbished section Dec 28 05:41:03 No, getDimen comes back 400 getDimenPixelSize comes back 400 as well Dec 28 05:41:11 then yes, you mean 400px Dec 28 05:41:18 notice the word 'pixel' in the method name Dec 28 05:41:21 I'd like to get refurbished to save money Dec 28 05:41:31 getDimen comes back 400 Dec 28 05:41:33 What about straight up used from eBay? Dec 28 05:41:34 no pixel Dec 28 05:41:42 those are pixels Dec 28 05:41:55 getDimen returns the value? not the pixel size? Dec 28 05:42:00 shmooz could you help me with some Java? Dec 28 05:42:01 no Dec 28 05:42:03 those are pixels Dec 28 05:42:05 for the 5th time Dec 28 05:42:25 what's the difference between getDimen and getDimenPixelSize? I though pixelSize does the conversion for you? Dec 28 05:42:32 they're both pixels Dec 28 05:42:36 one is a float, the other int Dec 28 05:42:41 ahh Dec 28 05:42:51 thanks that explains a "bug" i was suffering from earlier Dec 28 05:43:00 is there anyway to get the raw Dimen value? Dec 28 05:43:03 oh I found one Dec 28 05:43:04 (not pixel) Dec 28 05:43:11 why would you want that value? Dec 28 05:43:21 I need it for doing bounds Dec 28 05:43:25 *bounds checks Dec 28 05:43:27 the whole point of specifying dp is that it scales for you Dec 28 05:43:32 you should be doing those in pixels Dec 28 05:43:36 crap it's only 11 inch, anyway, close Dec 28 05:44:13 JakeWharton: I have a keyboard where you can set a line in a textfile to set the size, which I use dp to do that, hence for my configuration activity i want the raw dp value for bounds checking (since 160 dp is the smallest) Dec 28 05:44:28 i guess 160 is just hard codable then Dec 28 05:44:53 ok found it, this is the best deal for a 8GB macbook air http://store.apple.com/ca/product/G0P02LL/A/refurbished-133-inch-macbook-air-17ghz-dual-core-intel-core-i7 Dec 28 05:45:03 lasserix: you should be using an integer for that Dec 28 05:45:07 not a dimen Dec 28 05:45:11 JakeWharton: ahh Dec 28 05:45:12 or yes, hard code it Dec 28 05:45:18 yeah that makes sense Dec 28 05:45:22 thanks Dec 28 05:45:33 1489 for a pc? what are you, millionaires Dec 28 05:45:37 $1489.00 hmmmmmmmmmmmmmm Dec 28 05:45:48 she aint cheap Dec 28 05:45:55 i have my good ol acer working super fine Dec 28 05:46:05 do you run AS? Dec 28 05:46:11 yup Dec 28 05:46:22 Smoothly? Where can I get me one of those? Dec 28 05:46:28 My macbook shits the bed with AS Dec 28 05:46:47 I should rob a bank Dec 28 05:46:54 JakeWharton: heh thanks again that would have really frustrated me operating under that assumption Dec 28 05:47:19 Whats the difference from Dec 28 05:47:26 String.valueOf() Dec 28 05:47:30 and just valueOf() Dec 28 05:47:42 Cause I had the first one, then changed it to the second one and got an error Dec 28 05:48:10 whats the benefit of OSX Dec 28 05:48:18 drose379: that depends on entirely where you are calling it from Dec 28 05:48:20 i can install dual boot of OSX Dec 28 05:48:35 an inner class Dec 28 05:48:39 onItemClick Dec 28 05:49:20 i cant find any reason to not use linux over osx Dec 28 05:49:56 Then stick with linux Dec 28 05:50:26 JakeWharton how come it only works with I have String. ? Dec 28 05:50:34 i have no idea what you are doing Dec 28 05:50:34 Guessing String is a class Dec 28 05:50:39 oh geez Dec 28 05:50:48 im open minded Dec 28 05:51:02 JakeWharton I know string is a string Dec 28 05:51:18 But IDK why it would only work if I had String.methodName Dec 28 05:51:28 Unless its a class Dec 28 05:51:34 Want to see a few lines of code? Dec 28 05:52:56 Yeah, string is the class and .valueOf is the method Dec 28 05:54:28 Whats the difference between a constructor and onCreate? Dec 28 05:56:46 everything Dec 28 05:57:25 whatitis- elabborate? Dec 28 05:58:33 I ask because I dont really understand what the Bundle of savedInstanceState is? Dec 28 06:00:14 you are asking basic java questions Dec 28 06:00:25 ah Dec 28 06:00:34 Any easy way to explain it? Dec 28 06:00:52 yea, go read about java and objects Dec 28 06:01:00 I know what those are Dec 28 06:01:16 What about a bundle? Whys it called savedInstanceState Dec 28 06:01:24 Why do I need it Dec 28 06:01:28 because it represents the saved instance state Dec 28 06:01:38 so it does its thing automatically Dec 28 06:01:41 you need it if you need to save instance state on the object Dec 28 06:01:57 no, you have to write to it Dec 28 06:02:05 Only if I need it Dec 28 06:02:08 correct Dec 28 06:02:31 basic example of using it? Dec 28 06:02:38 I want to know if it is possible to store some user data in Android wear's local database instead of on smartphone Dec 28 06:03:52 drose379: http://stackoverflow.com/a/6525808/132047 Dec 28 06:04:10 Thanks, another question if that ok.. Dec 28 06:04:26 In my intent I want to pass a param to a new activity Dec 28 06:04:38 Can i just do ActivityName(param).class? Dec 28 06:04:50 no, that is not valid Java Dec 28 06:05:47 so I can past in where i do startActivity(newIntent(param)) Dec 28 06:05:53 pas it* Dec 28 06:06:02 Intent works like a map Dec 28 06:06:11 you can add data to it with a corresponding key Dec 28 06:06:19 a key Dec 28 06:06:48 a string key Dec 28 06:07:03 drose379: look up 'android intent putextras getextras' Dec 28 06:07:40 Looking at those methods now Dec 28 06:08:12 How come all the PutExtra methods need a string and an int Dec 28 06:08:18 when I just want to pass a string Dec 28 06:08:41 there are overloads for other data types Dec 28 06:08:56 So I can do just string Dec 28 06:09:22 yes Dec 28 06:09:35 then I can do onCreate(String whatever) Dec 28 06:09:37 Then use it Dec 28 06:10:26 no Dec 28 06:10:33 :0 Dec 28 06:10:38 the intent is separate from the saved instance state Dec 28 06:11:01 Right, I didL Dec 28 06:11:10 protected void onCreate(Bundle savedInstanceState, String selected) Dec 28 06:13:00 Would that work? Dec 28 06:13:37 no Dec 28 06:13:48 you cannot arbitrarily change the signature of methods Dec 28 06:14:06 I can't have onCreate accept a string? Dec 28 06:14:31 it's not main(args... Dec 28 06:15:35 So if I can't have onCreate accept any strings, is the only way to pass the class a string with a constructor method? Dec 28 06:24:58 drose379: that's what intent extras are for Dec 28 06:25:16 Ok so I have to use getExtra Dec 28 06:26:30 so getExtra gets the values from the bundle? Dec 28 06:27:15 from the bundle in the intent, yes. which is totally different than the bundle that you get passed in onCreate as the saved instance state Dec 28 06:27:48 So I need to be able to access the bundle from the intent in the new activity Dec 28 06:28:20 getIntent().getStringExtra("SomeKey") Dec 28 06:28:23 we should have a new data type called Pile Dec 28 06:28:51 so you can put a Pile of Bundles on the Heap? Dec 28 06:29:22 yep just like we used to do on the farm Dec 28 06:29:22 so is the bundle from the intent automatically passed to the new activity? Dec 28 06:29:35 Hey there, what's the ideal dp size for a profile photo? I can't find it in the docs? Dec 28 06:30:20 All I can figure out is that in this image, there's 2 margins of 16 dp, and the whole thing is 72, telling me that it should be 40dp, but I want to be sure Dec 28 06:30:22 http://material-design.storage.googleapis.com/publish/v_2/material_ext_publish/0Bx4BSt6jniD7emVMNzVwSGE1MkU/layout_metrics_keylines_mobile2.png Dec 28 06:31:48 Docs say .getIntent method was deprecated? JesusFreke Dec 28 06:32:11 no they don't.. Dec 28 06:32:12 http://developer.android.com/reference/android/app/Activity.html#getIntent() Dec 28 06:32:12 drose379: no it's not? Dec 28 06:32:14 no they don't Dec 28 06:32:15 http://developer.android.com/reference/android/app/Activity.html#getIntent() Dec 28 06:32:24 ollien: yes Dec 28 06:32:48 JakeWharton: got it. Is there a place this is explicitly documented? Dec 28 06:33:03 Sorry I was looking in the intent class Dec 28 06:33:32 ollien: there's not necessarily a recommended size. it's more based on the keylines of the activity in general Dec 28 06:33:49 plus the keylines might change on a table (and thus the image size as well) Dec 28 06:33:59 JakeWharton: doesn't DP take care of that? Dec 28 06:34:05 no Dec 28 06:34:21 dp ensures things are the same size across densities, not different device sizes Dec 28 06:35:10 JakeWharton: wait, maybe I'm missing something. What are keylines? Dec 28 06:36:35 JesusFreke it says that getStringExtra is looking for a name.. would that be the name of the variable I passed in? Dec 28 06:36:44 drose379: It would be the key Dec 28 06:36:51 .putStringExtra(key,value) Dec 28 06:36:54 I did varName,0 Dec 28 06:36:57 would 0 be the key Dec 28 06:36:59 drose379: it would be the name of the string extra that you added to the intent, before you sent the intent Dec 28 06:37:00 varName Dec 28 06:37:06 ollien: the pink things! Dec 28 06:37:19 then what the hell is the 0 for Dec 28 06:37:19 JakeWharton: I mean what defines them? Dec 28 06:37:25 drose379: you define it like this Dec 28 06:37:29 Cause it gives me an error if I dont give an int after the string Dec 28 06:37:40 ollien: you do! although there are recommended keylines in the material docs Dec 28 06:37:43 72dp is one of them Dec 28 06:37:47 .putStringExtra("My key","myValue" Dec 28 06:37:55 ) Dec 28 06:37:57 ahh,ok Dec 28 06:38:04 I was using regular putExtra Dec 28 06:38:05 then you get myValue use my key Dec 28 06:38:05 Thanks Dec 28 06:38:08 no problem Dec 28 06:38:09 you just do the type Dec 28 06:38:16 Just a note that custom objects can be a bit of a bitch Dec 28 06:38:21 JakeWharton: Got it Dec 28 06:38:29 JesusFreke I finally got it Dec 28 06:38:30 damn Dec 28 06:38:30 just sorta how things are layed out Dec 28 06:38:32 ? Dec 28 06:39:14 ollien but theres no putStringExtra method Dec 28 06:39:26 drose379: in an intent object? Dec 28 06:39:32 myIntent.putStringExtra? Dec 28 06:39:32 Yeah Dec 28 06:39:43 I can't find it in the docs Dec 28 06:39:56 drose379: putExtra(String) Dec 28 06:40:04 drose379: Bah, I Apologize, I'm thinking of bundles Dec 28 06:40:10 warning: irc advise may contain inaccuracies ;) Dec 28 06:40:16 No problem! Dec 28 06:40:25 It should be .putExtra("MyStringKey", whateverVariableHere) Dec 28 06:40:43 ok Dec 28 06:40:44 putExtra(String, String) rather Dec 28 06:40:45 yeah Dec 28 06:40:51 well, it doesn't have to be a string Dec 28 06:40:54 yea Dec 28 06:40:56 So Key,Variable Dec 28 06:40:57 ? Dec 28 06:40:58 bingo Dec 28 06:41:07 ah, thanks guys Dec 28 06:41:19 the value can be any primitive, or anything that is serializable or parcelable Dec 28 06:41:22 Do I have to put the key in :: Dec 28 06:41:23 No problem Dec 28 06:41:24 "" * Dec 28 06:41:29 double quottes Dec 28 06:41:29 yes Dec 28 06:41:34 that's what defines a string Dec 28 06:41:40 it's a string.. yes. :) Dec 28 06:41:45 String myString = "Hello!" Dec 28 06:41:49 that's how you make a string literal in java :) Dec 28 06:41:51 single quotes are for chars Dec 28 06:41:54 but the variable name doesn't need them Dec 28 06:42:01 cause its already defined as a string Dec 28 06:42:03 not unless you're defining it there, no Dec 28 06:42:13 "myVariableName" produces a string with the value of "myVariableName" Dec 28 06:42:20 Right Dec 28 06:42:21 myVariableName produces the value of whatever is defined in myVariableName Dec 28 06:42:31 Yup Dec 28 06:42:38 :o Dec 28 06:42:45 Ight, im gonna try this Dec 28 06:43:09 drose379: and in the receiving activity Bundle extras = getIntent().getExtras(); if(extras != null) { userName = extras.getString("name"); ... Dec 28 06:43:32 so "name" would be the key Dec 28 06:43:41 Ok, but I'm only getting one value Dec 28 06:43:54 so could I do Activity.getIntent.getStringExtra("Key") Dec 28 06:44:14 drose379: yes, you can do that Dec 28 06:44:17 no, the name of the key Dec 28 06:44:29 well, you would do this.getIntent Dec 28 06:44:29 Well I know that Dec 28 06:44:37 ok Dec 28 06:44:46 actually the this.is redundant Dec 28 06:44:51 you would do getIntent() Dec 28 06:44:52 so dont need anything Dec 28 06:44:53 ok Dec 28 06:45:14 .getIntent or just getIntent Dec 28 06:45:24 Im thinking dot Dec 28 06:45:28 getIntent().getStringExtra("key") Dec 28 06:45:32 no dot Dec 28 06:45:36 Damnit Dec 28 06:45:57 Ok, I've got that Dec 28 06:46:05 Now to add it to the view :) Dec 28 06:46:08 \o/ Dec 28 06:46:26 Whats \o/ Dec 28 06:47:06 celebrating success, or general happiness Dec 28 06:47:15 raising your arms above your head ;) Dec 28 06:47:20 ah, got it Dec 28 06:47:25 drose379: it's two arms in the air and a head in the middle Dec 28 06:47:30 o/ also is a guy waving Dec 28 06:47:35 ollie what you celebrating? Dec 28 06:47:39 my girlfriend thought it was a dying cyclops Dec 28 06:47:40 lol Dec 28 06:47:43 hahah Dec 28 06:47:46 drose379: that you finally got it Dec 28 06:47:54 oh, wow. Thanks bro Dec 28 06:47:58 np Dec 28 06:48:14 You guys got any cool apps I can check out Dec 28 06:48:20 you can text that also when someone points a gun at you and yells FREEZE! Dec 28 06:48:30 haha Dec 28 06:49:47 So are you guys developers by hobby or for a living? Dec 28 06:50:01 drose379: for me, it's part hobby, part building a portfolio Dec 28 06:50:12 for something ahead? Dec 28 06:50:17 college/job apps Dec 28 06:50:25 HighSchool student ? Dec 28 06:50:26 a little bit of both Dec 28 06:50:27 apps being applications Dec 28 06:50:31 drose379: bingo Dec 28 06:50:36 Same here man Dec 28 06:50:38 Senior? Dec 28 06:50:44 Sophomore actually Dec 28 06:50:51 no way, how embarrassing for me Dec 28 06:50:57 nah, I started early :) Dec 28 06:51:01 how early? Dec 28 06:51:05 uuuh, 12? Dec 28 06:51:09 ish? Dec 28 06:51:12 damn, thats great Dec 28 06:51:14 What'd you start with Dec 28 06:51:15 Thanks :) Dec 28 06:51:24 C++ then python Dec 28 06:51:33 heh. that's probably around when I started. I can't recall. hmm. 6th grade.. I guess that would be about 12? Dec 28 06:51:44 qbasic ftw! :p Dec 28 06:51:59 ollien do you wanna go to college for computer science? Dec 28 06:52:06 drose379: Intend to. Dec 28 06:52:06 JesusFreke is this your career or hobby?\ Dec 28 06:52:17 Cool,same Dec 28 06:52:18 a little bit of both :) Dec 28 06:52:29 JesusFreke: ew QBasic Dec 28 06:52:30 anyone know the dp width of nexus 5? Dec 28 06:52:37 lasserix: it's xxdpi Dec 28 06:52:41 I think that's 480 Dec 28 06:52:42 JesusFreke no way, Turbo Pascal > * Dec 28 06:52:49 sure? Dec 28 06:52:54 g00s: hah, that was my next language :) Dec 28 06:53:05 ollien you got any tips for me Dec 28 06:53:18 it is 360 but thanks! Dec 28 06:53:20 drose379: I'm still working my life out :) No advice Dec 28 06:53:26 lasserix: where are you getting that number? Dec 28 06:53:41 For learning the language I meant haha Dec 28 06:53:55 stick with it and PRACTICE Dec 28 06:54:08 Android is not the place to learn Java, but once you grasp java, it's fairly touch and go Dec 28 06:54:15 drose379: you seem to be on the right track. You're obviously pretty new, and asking new-ish questions. but you seem to catch on Dec 28 06:54:37 lasserix: shows it's 480 Dec 28 06:54:38 http://www.reddit.com/r/Nexus5/comments/1qbcyk/much_improved_icons_with_dpi_change/ Dec 28 06:54:45 Thanks jesus Dec 28 06:55:34 When I learned OO PHP I had someone by my side guiding me on what to learn and how to practice it but now that I decided to branch off into something new Im kinda on my own, so I'm looking for some direction Dec 28 06:56:00 You're the type of person I don't mind helping. A lot of the time people come in and ask very basic questions and can't seem to grasp the basics even after someone tries to explain it to them Dec 28 06:56:18 drose379: Oh, so you already have the basic programming concepts :) Dec 28 06:56:49 drose379: think of simple apps to make and then you google a lot and get a lot of stackoverflow solutions Dec 28 06:57:05 drose379: my first app was a wreck actually Dec 28 06:57:10 It's still on the play store Dec 28 06:57:12 what was it? Dec 28 06:57:15 It was a flashcard app Dec 28 06:57:18 the source is... a disaster Dec 28 06:57:29 im gonna download it, whats the name? :) Dec 28 06:57:33 Flashcarder Dec 28 06:57:38 beware of bugs Dec 28 06:57:49 https://github.com/ollien/Flashcarder/ Dec 28 06:57:53 There's the source if you want it Dec 28 06:57:58 haha, thanks man Dec 28 06:58:02 What you working on now? Dec 28 06:58:08 Right now? Twitter app Dec 28 06:58:17 A twitter sub app? Dec 28 06:58:20 sub* Dec 28 06:58:34 drose379: Sub app? Dec 28 06:59:00 I mean like the actual twitter app Dec 28 06:59:03 Or a seperate Dec 28 06:59:10 Ah, it's a seperate client Dec 28 06:59:19 Like Falcon Pro for instance Dec 28 06:59:23 Cool, what other things havee you built? Dec 28 06:59:43 for Android? Not very much. I have a basic project that I made back when I had a phone without a notification LED Dec 28 06:59:53 What was that? Dec 28 06:59:53 basically just turns on the screen on notification Dec 28 06:59:58 Oh, cool Dec 28 07:00:02 It's not on the play store, but I have the source around here somewhere Dec 28 07:00:15 I've had lots of practice, but not very many projects Dec 28 07:00:28 Ever gotten a job from it freelancing? Dec 28 07:00:39 JesusFreke do you freelance? Dec 28 07:00:47 I can't atm :) Dec 28 07:00:53 Too busy? Dec 28 07:00:56 Full time job? Dec 28 07:00:58 current employment doesn't allow it Dec 28 07:00:58 No freelance, but I have worked for CodeMentor for a bit Dec 28 07:01:00 2 full time jobs? Dec 28 07:01:08 ah, that sucks Dec 28 07:01:11 Good company though? Dec 28 07:01:14 yeah :) Dec 28 07:01:16 Also no time between this and school Dec 28 07:01:26 I feel you ollien Dec 28 07:01:33 Christmas break is the first real chance i've had to develop Dec 28 07:01:36 Jesus, thats good, is it writing code? Dec 28 07:01:43 yep :) Dec 28 07:01:48 Nice man, java? Dec 28 07:01:55 mostly Dec 28 07:01:59 Sweet Dec 28 07:02:08 ollie are you in America? Dec 28 07:02:10 Python and Java are my gotos Dec 28 07:02:12 Yeah Dec 28 07:02:23 Nice, long vacation this year Dec 28 07:02:31 thank the lord for that Dec 28 07:02:43 Right, got some coding to do :) Dec 28 07:02:43 I have off until the 5th? I think? Dec 28 07:02:58 I dont know mine Dec 28 07:03:45 You guys ever made an app that works with images? Dec 28 07:04:26 drose379: Sorta working on one right now Dec 28 07:04:31 not... exactly. Dec 28 07:04:41 Twitter avatars are images :P Dec 28 07:04:50 Thats true Dec 28 07:04:52 I wrote a live wallpaper, which obviously renders images to display as a background :p Dec 28 07:05:00 but doesn't deal with image files directly Dec 28 07:05:02 JesusFreke: Those scare me Dec 28 07:05:03 drose379: most apps have images Dec 28 07:05:12 ollien: scare you? Dec 28 07:05:22 Scared to work with them Dec 28 07:05:26 openGL isn't my strongsuit Dec 28 07:05:28 Im trying to think of an app idea that will cover a lot of essential basics Dec 28 07:05:31 oh, right Dec 28 07:05:39 yeah, this was the first time I had done anything with opengl Dec 28 07:05:57 drose379: make a video/audio player Dec 28 07:05:57 drose379: If you want something basic, why not a todo list? Dec 28 07:06:02 or that Dec 28 07:06:19 A todo list with images Dec 28 07:06:27 save the todolist to shared prefrences or sqlite Dec 28 07:06:35 a DB? Dec 28 07:06:38 yeah Dec 28 07:06:41 there's built in Sqlite Dec 28 07:07:07 I worked with DB a lot when I was doing web dev, I thought data would be stored on the phones local or external storage? Dec 28 07:07:20 Yes it would Dec 28 07:07:27 Sqlite is the more ... local version of mysql Dec 28 07:07:28 Oh, A DB in the local storage Dec 28 07:07:32 it also doesn't have quite a few things Dec 28 07:07:38 wth http://looknohands.me/ Dec 28 07:07:40 hence, lite Dec 28 07:07:45 hey g00s Dec 28 07:07:50 Right Dec 28 07:07:55 hey Napalm , happy holidays :D Dec 28 07:08:08 g00s: wat Dec 28 07:08:18 ollien I think I gotta keep going with the basics before I try to make an app Dec 28 07:08:24 drose379: of course Dec 28 07:08:27 experiment :) Dec 28 07:08:56 Right, you on here a lot? Dec 28 07:09:21 Nah, I just recently set my bouncer to freenode, so I'm gonna try and stay here a bit more than I used to Dec 28 07:09:42 Ah, cool. You're the first kid my age that I've found who's into this stuff Dec 28 07:09:54 Yeah, it's hard to find people with the same interests Dec 28 07:09:57 well, people of our age Dec 28 07:10:02 You got any friends who are into programming? Dec 28 07:10:10 One or two Dec 28 07:10:16 One who's all talk no walk Dec 28 07:10:18 Theres always the kids who can talk the talk Dec 28 07:10:21 hahah!! Dec 28 07:10:23 f-ck making configuration settings is a pain Dec 28 07:10:27 g00s: sounds pretty neat :) Dec 28 07:10:31 the nose designer thing. lol Dec 28 07:10:32 We said that at the same time Dec 28 07:10:35 but another who used to write lua scripts for game hacks Dec 28 07:10:41 I think they were for wow? Dec 28 07:10:48 Thats sweet Dec 28 07:10:54 I never really got into gaming too much Dec 28 07:10:59 JesusFreke how does it work when you have a cold :| Dec 28 07:11:04 g00s: yea, happy Crimbo and all that :D Dec 28 07:11:11 :) Dec 28 07:11:44 g00s: Simple. remove the nerves in your nose Dec 28 07:12:07 ollien what the hell does final mean Dec 28 07:12:10 I just dont get itr Dec 28 07:12:12 it Dec 28 07:12:16 drose379: final means you can't change the value Dec 28 07:12:21 for example Dec 28 07:12:21 ollien: you should always add a screenshot to your github projects Dec 28 07:12:35 final String TAG = "myLogTag!" Dec 28 07:12:50 you can't change value if it is primitive Dec 28 07:12:54 great, do your work while sniffing coke Dec 28 07:13:10 that really doesn't work too well Dec 28 07:13:29 Why would I use final? Dec 28 07:13:41 drose379: if you want to make sure the value of something doesn't change Dec 28 07:13:48 lasserix: Yeah, I should Dec 28 07:13:50 Ok, got it Dec 28 07:14:15 drose there's a somewhat caveat final EditText et = new EditText(this) et.setText(... ) is valid Dec 28 07:14:33 Hmmm Dec 28 07:15:37 you might use it if you use anonymous inner classes Dec 28 07:15:56 right, never really understood those either Dec 28 07:16:10 Instead of using an interclass, couldn't I just call another method? Dec 28 07:16:26 inner classes are useful if you only really want to use it in that class Dec 28 07:16:32 it's purley a stylistic thing Dec 28 07:16:35 (I think) Dec 28 07:16:39 Don't they go inside mthods Dec 28 07:16:40 methods Dec 28 07:17:34 drose379: Wait, are we talking about the same thing? Dec 28 07:17:40 can you show me an example of one? Dec 28 07:17:42 yeah they can Dec 28 07:17:54 are you talking about with stuff like OnClickListener? Dec 28 07:17:58 Yes Dec 28 07:18:01 setOnClickListener(new View.OnClickListener() { ... }); Dec 28 07:18:02 got it Dec 28 07:18:16 That line right there really confuses me Dec 28 07:18:17 You can define a new object there. OnClickListener is just an interface Dec 28 07:18:26 setOnClickListener requires an OnClickListener Dec 28 07:18:37 OnClickInterface has to be defined since it is just an interface Dec 28 07:18:41 *OnClickListener Dec 28 07:18:44 are you familiar with interfaces? Dec 28 07:18:55 I am, just a group of methods Dec 28 07:19:04 good Dec 28 07:19:17 so onClick is one of those methods Dec 28 07:19:26 You have to define it Dec 28 07:19:38 if you REALLY wanted, you could define it in its own class file Dec 28 07:19:49 class MyListener implements View.OnClickListener{ } Dec 28 07:19:58 then just put an instance of that in setOnclickListener Dec 28 07:20:03 but that's really not a great idea :P Dec 28 07:20:17 g00s: i just read that whole page about the designer.. you know what.. I wish she would have just put the video at the top.. https://www.youtube.com/watch?v=RAokWwilHGk Dec 28 07:20:42 ollien I'm having a problem with getIntent Dec 28 07:20:47 drose379: how so Dec 28 07:20:51 saying it can't find symbol variable Dec 28 07:20:56 do I need a . before it? Dec 28 07:21:03 Can you give me the lien? Dec 28 07:21:08 *line? Dec 28 07:21:21 userSelect = getIntent.getStringExtra("getSelection"); Dec 28 07:23:31 drose379: try MainActivity.this.getIntent.getStringExtra("getSelection"); Dec 28 07:24:17 Ok Dec 28 07:24:42 oh you forgot the () on the getIntent Dec 28 07:24:50 wtf Naplam Dec 28 07:24:52 ah shit true Dec 28 07:24:57 thats shmooz Dec 28 07:25:07 I had a friend who used the track pad to do graphic art, thought they were nuts. but this!? Dec 28 07:25:20 how did she even get into this? Dec 28 07:25:22 and I pasted what you wrote so I did the same Dec 28 07:25:31 at what point was she like? my nose is the key! Dec 28 07:25:47 thanks* shmooz Dec 28 07:27:09 Napalm: that's just incredible. Dec 28 07:28:21 yeah, that's pretty awesome Dec 28 07:30:48 she needs to work out her arms daily and stop that silly nonsense Dec 28 07:32:11 shmooz: I dunno, I could see some efficiency to it Dec 28 07:32:14 Guys, I'm out for the night Dec 28 07:32:21 o/ Dec 28 07:32:34 haha, see ya. Thanks again for all the help Dec 28 07:32:55 Good luck, talk soon Dec 28 07:32:58 take care drose379 Dec 28 07:33:07 You too Dec 28 07:33:32 I should turn in for the night as well Dec 28 07:33:33 o/ Dec 28 07:35:44 pro gamers actually put up with all the pain and then they say their body just gets used to it Dec 28 07:36:19 even though they become slightly mutated hunchbacks Dec 28 07:38:26 argh that reminds me i should make a standup work station Dec 28 07:46:21 lasserix: make a workoutstation with a treadmill and stationary bike Dec 28 07:47:44 ugh. I couldn't do that Dec 28 07:48:28 you would have to peddle to compile Dec 28 07:48:33 JesusFreke monocycle on treadmil ? Dec 28 07:48:46 g00s: I've been tempted to try that :) Dec 28 07:48:54 but not as a workstation :p Dec 28 07:49:00 or better yet, have to peddle to feed power to your computer or it will go off Dec 28 07:50:07 I want to try that, and try a unicycle on a slackline Dec 28 07:51:39 while juggling balls Dec 28 07:51:57 I don't really juggle, sorry :) Dec 28 07:52:02 like that old arcade game Kick Man Dec 28 07:52:10 I can barely do the basic 3-ball pattern Dec 28 07:53:32 JesusFreke you can attach a rocket to it http://www.gizmag.com/francoise-gissy-333-kmh-rocket-bicycle/34663/ Dec 28 07:53:45 Hello. Dec 28 07:53:49 that sounds like a great idea :) Dec 28 07:54:58 * JesusFreke has flashes of an immediate faceplant, followed by being pushed face-down on the pavement. Dec 28 07:55:07 lasserix ikea seems to have a good standing desk Dec 28 07:55:13 go grab it while you are in phx :) Dec 28 07:55:35 funny i built an electric bike and when i first rode it i was like uhhh... max is ~30 mph... now i wish I had overdrvie cause 30mph just isn't fast enough sometimes Dec 28 07:55:42 very fun to use to exercise Dec 28 07:56:11 hauling ass on a straightaway at ~36-38mph peak Dec 28 07:56:16 My first good bike got stolen last year... Dec 28 07:56:50 my first mountain bike got stolen off the patio as i was getting ready for the race, i went in to get a piece of pizza - came out - gone Dec 28 07:56:54 g00s yeah but no way to transport it back, between the cat and the two moniters and the minishelf of books :) Dec 28 07:57:05 Damn Dec 28 07:57:14 I can't believe mine got stolen at the library. Dec 28 07:57:28 I had a unicycle get stolen at a movie theater :/ Dec 28 07:57:46 who the heck steals a unicycle? lol Dec 28 07:57:54 another Freke :) Dec 28 07:57:59 Do they use the same wheel as a normal bike? Dec 28 07:58:07 not really Dec 28 07:58:07 Probably thicker ones Dec 28 07:58:10 JesusFreke: someone like yourself ;) Dec 28 07:58:15 it's a totally different hub, different cranks, etc. Dec 28 07:58:26 although usually the same rim/tire Dec 28 07:58:41 except without the blessing of Jesus Dec 28 07:58:49 Hmm. don't know why someone would benefit from stealing it though. Maybe for scrap metal but that would be really sad. Dec 28 07:58:56 yeah, exactly Dec 28 07:59:03 it's not like there's a huge unicycle market or anything Dec 28 07:59:11 my guess is it was just for the lolz Dec 28 07:59:17 Yeah some people are really desperate for money. Dec 28 07:59:20 he saw a part Dec 28 07:59:22 "Oh look, it's a unicycle! wouldn't it be funny if we stole it!" Dec 28 07:59:27 a wheel Dec 28 07:59:57 you could definatly pawn a unicycle Dec 28 08:00:11 here a few years back each bike was getting stolen 15 times Dec 28 08:00:16 I mean, it was a pretty expensive one. but it's not like it would be easy to sell. And it's not like they would actually know it was expensive Dec 28 08:00:19 but people who steal bikes should have something terrible as retribution Dec 28 08:00:19 they probbaly threw it up into the electrical wires with tied-together sneakers Dec 28 08:00:27 soemething cruel and unusual :) Dec 28 08:00:28 on average, statistics Dec 28 08:00:51 now they got these gps trackable rent-a-bike's Dec 28 08:01:07 they have a couple of smart locks on kickstarters Dec 28 08:01:18 Yeah. I was considering getting one of those trackr devices or something like that. But the coverage is probably bad. Dec 28 08:01:19 pretty cool, actually wanted to do it but now its already been done derp Dec 28 08:01:29 I've been keeping my eye on http://www.integratedtrackers.com/GPSTrack/spybikeseatpost.jsp Dec 28 08:01:35 I've seem some people steal the seat. I even lock my seat now. Dec 28 08:01:36 dunno why you couldn't just use gcm Dec 28 08:01:55 pager costs what a month? 2 bucks or something Dec 28 08:02:36 I found some cheap gps devices for like 15$ from ebay Dec 28 08:02:45 The issue is that they are too big to fit in the frame. Dec 28 08:02:51 what Linux tools could I use to debug an Android app? Dec 28 08:02:56 the problem with these things - is you'll have to recover the bike yourself. forget about the police Dec 28 08:03:04 why use gps? Dec 28 08:03:09 just use cheap cellular plan Dec 28 08:03:14 text only Dec 28 08:03:23 That would work. Dec 28 08:03:29 How would you get the exact location thoguh? Dec 28 08:03:29 have to imagine that it would be small and relatively cheap Dec 28 08:03:31 *though Dec 28 08:03:36 triangulation Dec 28 08:03:49 Ohh. So the device would send that information back? Dec 28 08:04:02 something like that Dec 28 08:04:03 Problem is that it would only be accurate within at least a 100 meter range Dec 28 08:04:17 combined with bluetooth or wifidirect Dec 28 08:04:23 long range + short range Dec 28 08:04:37 yeah then I guess you can get a pretty accurate reading Dec 28 08:04:46 Just like a smartphone Dec 28 08:04:50 not to mention i bet if you had it send burst every 15 seconds of directiion/ you could narrow it down Dec 28 08:05:12 lasserix it would be better to just put a taser in the seat post Dec 28 08:05:26 hahahahhaha Dec 28 08:05:27 Wonder if this would work Dec 28 08:05:27 http://www.ebay.com/itm/Vehicle-Car-Tracking-System-Device-GPS-GPRS-G-SM-Tracker-Mini-Locator-DX-/261661571153?pt=LH_DefaultDomain_0&hash=item3cec3eb851 Dec 28 08:05:34 Probably crap quality though Dec 28 08:05:43 g00s: that needs to be a thing Dec 28 08:05:51 brb Dec 28 08:06:04 are there any good android debuggers for Linux? Dec 28 08:06:18 toothe: java? or native? Dec 28 08:06:24 either-or Dec 28 08:06:40 any java ide should be able to debug java Dec 28 08:06:44 my goal is that I get an Android app binary and I can debug it. Dec 28 08:06:47 g00s heheh Dec 28 08:06:47 oh? Dec 28 08:06:56 oh, for something you don't have the source for? Dec 28 08:07:00 not really :) Dec 28 08:07:08 but head to #smali ;) Dec 28 08:07:09 you'd have to ra it and then recompile it? Dec 28 08:07:09 what you do is get a pink girls bike Dec 28 08:07:19 noone steals those Dec 28 08:07:27 then you just gotta find out who got admitted to the hospital from tazer to ass :) Dec 28 08:07:48 probably not that many .. but SF, dunno Dec 28 08:07:49 that works, i have a very nice road bike with handle bars + seat = several years old and look like sh*t , no one will steal it even though it costs a couple grand Dec 28 08:08:32 you might be surprised.. :) Dec 28 08:08:37 I thought the same about my unicycle Dec 28 08:09:04 we go cycling every now and again... I rent a bike for $6-$7 Dec 28 08:09:12 hi hi Dec 28 08:09:39 if i was president, we'd close all the roads to everything but bikes :) Dec 28 08:09:59 g00s for president! :p Dec 28 08:10:03 \o/ Dec 28 08:10:05 I'll vote for ya :p Dec 28 08:10:08 JesusFreke: for Linux, I generaly code Java using vi. Dec 28 08:10:09 a good road bike is awesome. it was the first "real" purchase i made with my first paycheck after working at a winery/vineyard Dec 28 08:10:15 JesusFreke: So...i dunno if that'll work Dec 28 08:10:33 and serious cyclists, they be a crazy bunch Dec 28 08:10:44 toothe: this isn't really the channel for discussing reverse engineering Dec 28 08:10:54 #smali and/or #apktool would probably be more topical Dec 28 08:11:00 fair Dec 28 08:11:54 lasserix i tried road bike, found it too uncomfy so I set up my hardtail mountain bike with slicks, the relazed geometry was easier on my back Dec 28 08:12:07 *relaxed Dec 28 08:12:29 i did 2 centuries on a mountain bike :) my friend was crazy though, training for ironman Dec 28 08:12:30 too uncomfy = crushed balls? did you try a different seat or is it just the fact you are leaning over? Dec 28 08:12:36 man, its too frikken cold here Dec 28 08:12:51 and overcast Dec 28 08:13:00 cold here too Dec 28 08:13:01 im going to back to bed Dec 28 08:13:03 heh Dec 28 08:13:23 g00s have you ever considered ultrathons? Dec 28 08:13:25 lasserix nah, i was too used to mountain bike i didn't like leaning over so much Dec 28 08:13:31 they have one from athens to sparta Dec 28 08:13:41 going to make myself a full english.. well most of one.. and then coasy up in bed with an audio-book Dec 28 08:13:43 if you survive/make it you get a badass medallion Dec 28 08:13:46 lasserix hmm ... not lately Dec 28 08:13:54 catch you guys on the flip side Dec 28 08:13:56 g00s ahh yeah Dec 28 08:14:00 Napalm: night Dec 28 08:14:07 Napalm: enjoy your tea Dec 28 08:14:20 oh, and a cuppa Dec 28 08:14:22 nice idea Dec 28 08:14:25 laters Dec 28 08:14:39 http://www.carnifest.com/events/greece/athens/678/spartathlon-ultramarathon-race-athens-to-sparta-2015.aspx Dec 28 08:14:40 the fastest i went on a downhill mountain bike was about 47 mph Dec 28 08:14:51 felt like 200mph though :| Dec 28 08:15:21 153 miles in two days :) Dec 28 08:15:25 g00s yeah Dec 28 08:15:39 on my electric it is unbeliavably fun Dec 28 08:16:07 and then they get pushed off a cliff by a guy yelling 'THIS IS SPARTA!!!' Dec 28 08:16:28 g00s, you should see that video Dec 28 08:16:54 Sculptor which video ? Dec 28 08:17:21 extreme downhill in chile https://www.youtube.com/watch?v=xIe6hYAdw_I Dec 28 08:17:31 oh yeah Dec 28 08:17:41 note the dog @ 0:35 Dec 28 08:17:53 that looks like it would be a blast on a uni :D Dec 28 08:18:24 lol the dog ! Dec 28 08:18:48 I've never done quite that many stairs in succession though Dec 28 08:20:51 another crazy video - 124kph motor pacing https://www.youtube.com/watch?v=iO7_Fq56g2c Dec 28 08:21:24 JesusFreke think you could clear the jumps ! ?? Dec 28 08:21:34 g00s: some of them definitely not :) Dec 28 08:21:43 nor the thing where he has to go on the side of the wall Dec 28 08:23:08 stairs aren't hard, suspension soaks that up Dec 28 08:23:17 not on a uni ;) Dec 28 08:24:12 it's actually the small landings in the middle of the flights of stairs that would get you more than anything though. You'll hit the landing, and won't have time to recover your balance before hitting the next set of stairs Dec 28 08:25:16 i found the trickies things about steep ledges, is when there is some obstruction in the way that stops the front wheel and make you go over the handlebars Dec 28 08:25:34 but going over the handlebars is for amateurs :) Dec 28 08:26:10 * capella_ been there Dec 28 08:26:43 'course I was 15 :p Dec 28 08:27:33 people are a problem too, if they don't realize you simply can't stop on 45' graven no matter what you do :) Dec 28 08:27:41 hit some of them too :) Dec 28 08:27:52 *gravel Dec 28 08:28:35 seems like it doesn't register with some, when you are sliding down with wheels locked up they may have to get out of the way Dec 28 08:29:40 brilliant anti-parking in the bike line video https://www.youtube.com/watch?v=2V6RnX97Vmc Dec 28 08:36:26 Hello I have a question that has been bothering me, how can you connect voice chat between android app and web platform? Dec 28 08:39:31 You can stream audio I guess. People here probably can suggest a more efficient way. Dec 28 08:44:51 If you use an audio track you can save and read the data then stream it. But I think that way you would need another stream for the incoming data. Dec 28 08:50:53 andreyonadam, i know i'm able to stream.. but what is the method that support those to dofferent platforms? i tought about webrtc but it's not a working solution Dec 28 09:26:30 dun dun dun Dec 28 09:35:47 whats the best way to convert pixels to dp? Dec 28 09:40:51 lasserix: TypedValue.applyDimension Dec 28 09:41:43 http://developer.android.com/reference/android/util/TypedValue.html#applyDimension(int, float, android.util.DisplayMetrics) Dec 28 10:36:57 anyone using Google's Volley library here? Dec 28 10:37:23 got a question regarding Volley's DiskBasedCache Dec 28 10:43:30 Hi... I'm looking for a library that can give me strings like "some seconds left" or "6 minutes left" and such in localized strings, is there such a thing? Dec 28 10:47:59 joda? Dec 28 10:48:09 joda may do that Dec 28 11:22:06 * TTilus is trying to get adb on debian jessie to see usb-connected samsung galaxy s2 with standard samsung android 4.2.2 Dec 28 11:23:17 already tried adding udev rule and running adb as root Dec 28 11:23:59 still `adb devices` shows empty list Dec 28 11:24:11 lsusb sees the phone Dec 28 11:24:24 Bus 002 Device 063: ID 04e8:6866 Samsung Electronics Co., Ltd GT-I9300 Phone [Galaxy S III] (debugging mode) Dec 28 11:25:00 (apparently several devices share the id 6866) Dec 28 11:26:58 Hello Dec 28 11:27:11 I am trying to install hte ADB windows driver so that I can install fastboot. I am not having much luck though. Could anyone help me with this problem please? Dec 28 11:28:12 Braden`: which instructions you have been following? Dec 28 11:29:17 http://www.gizmochina.com/2014/03/10/finally-android-4-4-kitkat-is-available-for-mediatek-mt6589-chipset/ AND http://trevorsullivan.net/2012/07/03/forcibly-installing-the-android-usb-driver-in-windows-7/ Dec 28 11:29:19 Those Dec 28 11:29:56 and how far you can get? Dec 28 11:34:41 Well Dec 28 11:35:00 I can't get CWM installed Dec 28 11:35:09 Nor can I get fastboot working Dec 28 11:35:39 Sorry for the delayed response, I was reading on websites trying to figure out what to do Dec 28 11:41:16 Any assistance you could provide would be greatly appreciated Dec 28 11:41:22 I think I have hit a wall on my attempts Dec 28 11:58:24 Braden`: probably better off in #android-root Dec 28 12:01:23 Braden` i'd try xda forum Dec 28 12:04:15 I've checked xda forums :/ Dec 28 12:08:17 No results for the MT6589 chipset Dec 28 12:10:06 what phone Dec 28 12:10:19 WindowManager﹕ android.view.WindowLeaked: Activity pl.na1noc.teeed.java.android.twigit.BookReaderActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView{308df0d0 V.ED.... R.....I. 0,0-1794,264} that was originally added here Dec 28 12:10:31 is it normal when changing orientation? (using MediaController?) Dec 28 12:11:05 hwo to fix this shit :D Dec 28 12:19:37 "has leaked window" -- i've seen this before with dialogs if the activity is killed, then you're hiding (or showing?) a dialog Dec 28 12:20:12 you've probably got something happening in an sync thread Dec 28 12:20:20 mMediaController.hide(); Dec 28 12:20:28 most people say to call mMediaController.hide(); Dec 28 12:20:33 in onSteop/onPause Dec 28 12:20:42 and that is what Google says Dec 28 12:20:48 but it does not fix the problem Dec 28 12:20:53 exception is still here. Dec 28 12:20:56 are you calling it elsewhere? Dec 28 12:21:33 yep Dec 28 12:21:37 but it does not fix anything Dec 28 12:29:44 Sculptor: MyPhone Agua Iceberg 2 Dec 28 12:29:50 (sometimes just called Iceberg) Dec 28 12:39:25 Hello I have a question that has been bothering me, how can you connect voice chat between android app and web platform? Dec 28 12:55:32 Hi Dec 28 12:56:37 What is the correct way to use the plus + sign in gradle dependencies? Dec 28 12:57:16 I want to get latest google services Dec 28 12:57:21 compile 'com.google.android.gms:play-services:5.0.77' Dec 28 13:08:14 hy cowok Dec 28 13:08:25 help me please Dec 28 13:08:49 MalekAlrwily, com.google.android.gms:play-services:6.5.+ Dec 28 13:08:55 note that 5.0 is ancient :P Dec 28 13:10:01 hello, i'm using the android emulator (4.1) on windows with haxm on and every around 5 secs the emulator freezes for 1 second... i allocated 2GB for it Dec 28 13:13:23 Mavrik: :D Dec 28 13:13:43 MalekAlrwily, also, you could do 6.+, but that's not recommended Dec 28 13:14:01 since Google does breaking changes on minor version change and your app might not compile after a month or so without fixies Dec 28 13:14:20 Mavrik: ah Dec 28 13:30:12 hi! Dec 28 13:30:26 can someone help me compile an example project with ndk-build? Dec 28 13:55:57 whats the required magic to get adb to see my nexus 5 on debian jessie? lsusb lists phone, usb debugging is enabled, but `adb devices -l` gives empty list Dec 28 13:56:22 adb is installed from jessie packages Dec 28 14:00:49 TTilus: just to check... firstly, do you see a debug notification on your phone when you plug it in? Dec 28 14:01:41 and then to double-check... "adb kill-server ; sudo adb devices" Dec 28 14:03:43 hi all, is there a way to install build targets via the command line? Dec 28 14:03:52 I'm trying to work within a VM and can't launch GUI tools Dec 28 14:05:40 build targets? do you mean tools? Dec 28 14:06:36 negative. I have the tools installed and I need to install "android-19" Dec 28 14:06:50 the usage commands of the `android` cli tool doesnt seem to list options to install targets Dec 28 14:09:43 AphelionZ, does this help http://tools.android.com/recent/updatingsdkfromcommand-line ? Dec 28 14:11:09 EPG: yes! Thank you. Dec 28 14:11:31 you'll probably have to add the --all option to list all packages Dec 28 14:16:38 You're not allowed to type "lol" in #python. Weird. Dec 28 14:17:04 lol Dec 28 14:25:09 it's an attempt - a successful one - to keep the signal-to-noise ratio up Dec 28 14:31:26 people werent taking python seriously enough Dec 28 14:32:56 just because it's named after a comedy group, that's no need to laugh about it :) Dec 28 14:39:07 I seem to remember writing something in Python and getting annoyed at the lack of static typing. Dec 28 14:40:02 Man I wish there was an easier way to design UI for android. What we have now is just horrible. Dec 28 14:40:46 Even worse if you have to do design your self and you suck at it. Anyhow I design it in Photoshop it's wow so sexy I put it in app looks horrible Dec 28 14:42:20 neredsenvy: Don't worry; you'll become institutionalised soon. Dec 28 14:42:44 xD Dec 28 14:43:07 It's the multi screen support that kills me the most. Dec 28 14:43:28 What kind of UI are you designing? Dec 28 14:48:12 Right now just buttons. Looking all simple and nest in photoshop http://i.imgur.com/Ks3EUlg.jpg scaled down to 72px for hdpi and then http://i.imgur.com/IvFpTet.jpg the uggo in live app. Dec 28 14:48:48 Austria! Dec 28 14:49:04 : ) Dec 28 14:49:32 How does it look on a device? I haven't used Genymotion, but I wonder whether the display is accurate. Dec 28 14:49:50 I know that, for me, the Android emulator makes stuff that looks nice on a device look awful. Dec 28 14:50:22 Iv been trying to make buttons look like the GoogleMap buttons. Looks stretched a bit not that good either. Dec 28 14:50:32 On HTC One mini Dec 28 14:55:11 I have a ViewGroup which has it's onMeasure method called 6 times in fast succession when the Activity is created. The reported height bounces between 0 and 1200 (the true height) during each call. Can anyone suggest what is happening here? Dec 28 14:56:34 The measure specification mode changes between AT_MOST and EXACTLY between each onMeasure call, too. The ViewGroup sits inside a RelativeLayout. Dec 28 15:00:56 where can I find how to build android project from command line? Dec 28 15:01:02 *not with gradle Dec 28 15:01:11 what with then? Dec 28 15:01:26 ejcweb: I don't know much about that, but I'd be interested to see the layout file. Dec 28 15:02:41 HunterD: ? Dec 28 15:03:30 well, what is the standard way? I want to use command as external tool from one of Itellij;s IDEs (clion) Dec 28 15:03:48 the standard way, now, is gradle Dec 28 15:03:55 the standard way, before, was ant... Dec 28 15:04:00 the old standard :) Dec 28 15:04:04 ant so Dec 28 15:04:22 I will search more on building and deploying with ant Dec 28 15:04:47 HunterD: Why are you spending time on the old method? Dec 28 15:05:04 We have limited time on this earth; wouldn't it be better to put it to its best use? Dec 28 15:06:21 I find gradle a bit complicated.. will have to check if I can use it as external tool (in clion, which is still EAP) Dec 28 15:06:25 TacticalJoke: The layout file is this: http://pastebin.com/V5imSS4q. Super simple example. The view CameraView has onMeasure called 6 times when the activity is created. Dec 28 15:06:25 if you're starting a new project, you should start it the new way Dec 28 15:06:29 Oh, you're doing NDK stuff. Dec 28 15:07:01 ah... Dec 28 15:07:12 yes, early acces preview version of C/C++ IDE from Intellij, setting up a project to develop/debug on windows and deploy on android Dec 28 15:07:40 so will go with ant for start Dec 28 15:07:48 I see. Dec 28 15:08:07 I think if you're doing C/C++, the answer is make, not ant Dec 28 15:08:17 but I don't really know Dec 28 15:09:16 I build with make from clion ide for windows, with ndk-debug for android libs.. now I need to deploy.. so ant or gradle I will try to use as external tool from clion for easy to use depoly Dec 28 15:10:32 Whenever I see your name, I think of the hunter2 thing. Dec 28 15:10:47 what hunter2 thing? Dec 28 15:11:00 http://www.bash.org/?244321 Dec 28 15:11:23 (Which is probably fake.) Dec 28 15:11:37 Though a lot of people seem to think it's real. Dec 28 15:12:34 OMG Dec 28 15:12:37 so funny Dec 28 15:12:39 :)))) Dec 28 15:12:54 dat AzureDiamond Dec 28 15:12:57 :D Dec 28 15:12:59 epic Dec 28 15:27:16 Why do movies always have happy endings? I kinda want to see happiness degrade into tragedy. Dec 28 15:30:04 TacticalJoke: Go to Opera Dec 28 15:30:32 some just want to see the world burn Dec 28 15:30:40 iirc, tragedy ending is a requirement for an opera Dec 28 15:30:56 also, what about bittersweet endings? :D Dec 28 15:31:12 Ah. I've not seen much opera. Dec 28 15:34:17 in China, where relevant, movies have to have the police/government winning at the end Dec 28 15:46:47 though sometimes it can be a bit of weird definition of winning, IMO... Dec 28 15:47:13 (though it depends on whether it was deemed relevant, too) Dec 28 15:47:38 particularly in gangster-type movies Dec 28 15:48:26 it's not unknown to have alternate endings just to get past the Chinese censors... Dec 28 16:00:37 IntelliJ's default setting of adding a "Created by on ." comment seems bad. Dec 28 16:00:43 For classes or whatever it is. Dec 28 16:08:58 So setting my custom ViewGroup to be the only view in my layout (as a child of a parent RelativeLayout), the onMeasure method is still called 6 times, and alternates between reporting a w:h of 1080:1071 (the activity dimensions) and 1080:1500 (the dimensions I've set). Dec 28 16:09:12 It always ends with the correct dimensions, so in one sense this is fine. Dec 28 16:09:37 But I have a hard time understanding the intermediate measurement steps. Dec 28 16:10:32 TacticalJoke: you can edit all of those templates if you want Dec 28 16:10:49 ejcweb: I wonder whether this is something Android does always? Dec 28 16:11:03 Regardless of view and container. Dec 28 16:11:32 p_l: I thought so, but it's a bad practice to encourage, IMO. Dec 28 16:11:53 A revision-control system should be used to store that data. Code shouldn't be littered with it. Dec 28 16:12:35 TacticalJoke: I imagine so. Nonetheless, it makes it tricky for me to know when I can actually trust the dimensions. Dec 28 16:13:50 ejcweb: I'm reading this right now: https://www.google.co.uk/search?q=android+onmeasure+called+times Dec 28 16:14:00 Seems to have a lot of relevant results. Dec 28 16:15:32 TacticalJoke: Yep, I've read some of those results. The outcome seems to be "this happens sometimes". Not much clearer on good ways to deal with it. Dec 28 16:29:39 Anybody have any ideas on this question http://stackoverflow.com/questions/27643990/exception-thrown-when-calling-getfriends Dec 28 16:36:05 I'm developing a phonegap android application Dec 28 16:36:07 Would it be better to store chat history in a local database such as SQLite or to use the file system methods such as FileReader and FileWriter Dec 28 16:38:09 ? Dec 28 16:41:55 not that I know of Dec 28 16:54:12 I have 4 images/resources hdpi/xhdpi... Is there a way to know which one is being used Dec 28 16:54:53 from which folder Dec 28 16:56:05 MetalHead77: Databases are more reliable. Dec 28 16:56:08 Do you need realiability? Dec 28 16:56:24 For example, databases take care of making sure that buffers are flushed immediately. Dec 28 16:56:31 So a list adapter is a way to link an array of data to a View basically? Dec 28 16:57:03 Basically, drose379. Dec 28 16:57:11 TacticalJoke: Ok. So do you think the 50 - 80 MB size limit for SQLite on phonegap might be a issue? Dec 28 16:59:14 Ek SQL on Android Dec 28 16:59:28 MetalHead77: I don't know. I think it depends on your app. Dec 28 16:59:33 I don't know anything about PhoneGap, BTW. Dec 28 16:59:43 When the constructor for ArrayAdapter says (Context,int resource) Dec 28 16:59:48 What does it mean by int resource? Dec 28 17:00:08 drose379: The view to use. Dec 28 17:00:28 ArrayAdapter is kind of lame. If you're gonna learn about ListAdapters, you might as well just subclass BaseAdapter. Dec 28 17:01:00 Really? How would i go about doing that Dec 28 17:01:11 ArrayAdapter is a convenience thing whose use cases are very limited. Dec 28 17:01:19 googling and reading Dec 28 17:01:50 So your saying Create my own class that extends BaseClass? Dec 28 17:02:25 If you're wanting to learn how ListAdapter works, I would recommend subclassing BaseAdapter, yes. Dec 28 17:03:22 When you say subclass do you mean create my own class that extends base? Dec 28 17:03:26 Yeah. Dec 28 17:04:01 OK, then I would just do .setAdapter(theMethodInMySubClass) Dec 28 17:04:02 Note that BaseAdapter is an abstract class. Its only purpose in life is to be subclassed. Dec 28 17:05:25 Ok so instead of doing ListAdapter x = new ArrayAdapter(x) I should do new MySubClass Dec 28 17:05:28 hey all X) Dec 28 17:05:46 drose379: Yeah, you'd instantiate your BaseAdapter subclass instead of ArrayAdapter. Dec 28 17:05:48 having the same issue as the poster here: http://stackoverflow.com/questions/17191870/mediarecorder-start-failed-38-on-some-devices Dec 28 17:05:50 drose379: What is your end-goal here? Dec 28 17:06:05 My suggestion is made presuming that you're wanting to learn about how ListAdapter works. Dec 28 17:06:21 my question is whether I can check for, and stop services that are already running Dec 28 17:06:37 Yes, Im trying to do that TacticalJoke Dec 28 17:06:41 Okay. Dec 28 17:06:44 specifically the AudioRecord service Dec 28 17:06:45 I'm trying to find a good tutorial, but I'm failing. Dec 28 17:06:46 Just creating a list view from an array Dec 28 17:06:50 I'm finding a lot of bad tutorials. Dec 28 17:07:00 Damn Dec 28 17:07:04 Thanks for looking man Dec 28 17:07:09 drose379: Oh, if you're just creating a ListView and loading it from an array then ArrayAdapter is fine. Dec 28 17:07:33 Well I should learn how to do the more advanced stuff, dont you think? Dec 28 17:07:49 Im just learning, not trying to get something done the fastest or easiest way or anything Dec 28 17:07:51 Have you managed to load a ListView from an array yet? Dec 28 17:08:01 Yeah, it works Dec 28 17:08:30 But I was following a tutorial, so I'm going back through now and making sure I understand it all Dec 28 17:08:32 And I guess you're using android.R.layout.simple_list_item_1 for the view. Dec 28 17:08:44 I was, but I made my own layout Dec 28 17:09:22 Just curious -- which tutorial were you following? Dec 28 17:09:58 Hello everyone. I was hoping that somebidy with more Android programming experience cloud help me with this problem I'm having. I have about 8 buttons on a form, and a connection manager class. When the buttons are pressed, they each send a message over a socket. Problem is, I can't network on the main thread - and spawning a new thread for each simple send is too slow. How can I make it faster? Dec 28 17:10:05 (The Send() method of the connection manager spawns a new thread to send the message, and that's simply called on each button press event. Dec 28 17:10:14 TacticalJoke https://www.youtube.com/watch?v=rhj4_KBD6BQ&list=PLGLfVvz_LVvSPjWpLPFEfOCbezi6vATIh&index=5 Dec 28 17:10:58 drose379: Did you also subclass ArrayAdapter (as he does in the tutorial near the end)? Dec 28 17:11:44 No, I only reached half way through the tutorial before I decided to pause and mess around with it myslef Dec 28 17:11:51 To get better understanding before moving forward Dec 28 17:11:56 Okay. Dec 28 17:12:11 What about this: http://ocddevelopers.com/2014/extend-baseadapter-instead-of-arrayadapter-for-custom-list-items/ Dec 28 17:12:33 Yeah, that doesn't look too bad. I am looking at it right now (hence my asking whether you subclassed ArrayAdapter). :) Dec 28 17:13:03 ah :) Dec 28 17:13:35 Ill be back in a min Dec 28 17:18:01 TacicalJoke what is arrayAdapter actually doing when I instantiate it Dec 28 17:18:44 Nothing special. ArrayAdapter is just a BaseAdapter subclass. It's the ListView mechanism that makes the magic work. Dec 28 17:19:11 After ListView.setAdapter, the ListView calls Adapter.getView and so on when populating the list. Dec 28 17:20:00 So it uses a layoutInfltor under the hood Dec 28 17:20:11 inflator Dec 28 17:20:34 Yeah, ArrayAdapter does. Dec 28 17:20:45 If you subclass BaseAdapter, your code will be doing the inflation. Dec 28 17:21:45 ArrayAdapter I have found isn't very helpful though unless all you want a single TextView. Dec 28 17:21:56 Also Hi everybody :) Dec 28 17:22:07 Hey Radther Dec 28 17:22:10 drose379: ArrayAdapter is fairly simple: https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/widget/ArrayAdapter.java Dec 28 17:22:45 Hey, Radther. How's the thing going? Dec 28 17:23:08 So I just need an array, a list adapter,and a list view Dec 28 17:23:27 TacticalJoke: Haven't been able to look into it much today as I have a driving test first thing tomorrow morning. I have however decided that mediaWiki seems to be the way to go. Dec 28 17:23:32 and the list adapter will instantiate my nedwclass that subclasses BaseAdpater Dec 28 17:24:10 drose379: A BaseAdapter is a ListAdapter. Dec 28 17:24:16 Your BaseAdapter subclass will be a ListAdapter too. Dec 28 17:24:36 How come the guy in the tutorial I watched did ListAdapter x = new ArrayAdpater etc.... Dec 28 17:24:55 That kinda confused me Dec 28 17:24:58 ListAdapter is just an interface that BaseAdapter (and any subclasses, including ArrayAdapter) implement. Dec 28 17:25:30 Ok, I gotta make this class Dec 28 17:25:41 how can I access the ActivityManager class? Dec 28 17:25:54 Only problem is I have no idea what to put in there\ Dec 28 17:26:05 drose379: This is a pretty good guide on getting stuff into a custom array adapter. Goes through all the stuff including a viewholder patten which is quite a good thing to learn. Dec 28 17:26:08 https://github.com/codepath/android_guides/wiki/Using-an-ArrayAdapter-with-ListView Dec 28 17:26:27 Thanks Dec 28 17:26:38 Radther: That's a bad idea, IMO. Dec 28 17:26:46 TacticalJoke: Why? Dec 28 17:26:46 Not a great idea to subclass ArrayAdapter. Dec 28 17:26:53 Oh yeah. Dec 28 17:27:03 But in the case of learning how it works the guide is good. Dec 28 17:27:07 ArrayAdapter is pretty limited. Much more natural to subclass BaseADapter. Dec 28 17:27:10 BaseAdapter* Dec 28 17:27:10 So I need to find one of those that subClasses baseClass Dec 28 17:27:19 BaseAdapter\ Dec 28 17:27:40 drose379: The link you posted () seems pretty good for this. Dec 28 17:27:51 Ok, ill read into it Dec 28 17:28:00 IIll prob have a ton of questions though Dec 28 17:28:12 As far as I can think, you just need to subclass BaseAdapter, implement the required methods (getCount, getView, getItem, and getItemId), and you're good to go. Dec 28 17:28:53 What about the inflator Dec 28 17:29:33 drose379: Create a constructor that takes a Context. Call "LayoutInflater.from(context)" and store that. Dec 28 17:29:48 Then, in getView, use this stored LayoutInflater. Dec 28 17:30:28 Dont I need to accept the type of data in the constructor too? Dec 28 17:30:34 Like the array of data I'm making a list out of Dec 28 17:30:43 Yeah, you could. Dec 28 17:30:57 So if I only accept an array would I do Dec 28 17:31:09 String[] Dec 28 17:31:19 Why does Android stretch my images http://imgur.com/9WGp2pN I have resources for xhdpi (720x1280) but here it seems it's taking hdpi or mdpi and stretching it or just xhdpi and stretching it. Dec 28 17:31:31 Context context,String[] data Dec 28 17:31:51 drose379: Yeah that would work. Dec 28 17:32:19 Not sure whether my last messages went through: Yeah, you can pass the array (or whatever) in the constructor. Dec 28 17:32:42 OK, cool. So you said earlier BaseAdapter is an abstract class? Dec 28 17:32:44 Are you sure you want to use an array, by the way? Lists are often a better idea in general. Dec 28 17:33:07 Ill start with the array, then mess with it and use a list after, it'll help me make sure I know what I'm doin Dec 28 17:33:28 Yeah, it exists only to be subclassed. Dec 28 17:33:30 But, so BaseAdapter is abstract so anything that extends it has a set list of methods that it needs to use Dec 28 17:34:28 It looks like it has quite a few methods, I dont have to use all of those do I? Dec 28 17:34:38 No Dec 28 17:35:12 Ok, I thought thats what an abstract class was though? Dec 28 17:35:14 drose379: Your IDE will tell you what you need to implement. Dec 28 17:35:25 Im using subliime to write my code Dec 28 17:35:28 drose379: Abstract classes implement some methods themselves. Dec 28 17:35:48 Just, getCount getItem, getView Dec 28 17:35:54 They do? I thought it was basically just a list of required methods Dec 28 17:36:15 To be honest, it's just better to use an IDE. A text editor doesn't know much (or anything) about Java or Android. Dec 28 17:36:25 Text editors are dumb, really. Dec 28 17:36:25 They have a bunch that are pre written that you can override if you want as well as a few that needs to be overridden, Dec 28 17:36:39 drose379: You're probably thinking of an interface. Dec 28 17:36:44 Yeah, sublime is great but it's no android IDE. Dec 28 17:36:45 Shit, I am Dec 28 17:37:17 Im only using sublime because I have a laptop with only 2GB of ram so typing or doing anything with android studio is really laggy Dec 28 17:37:27 drose379: In Eclipse, I just type Ctrl+1 and Enter, and then all the required methods are implemented. Dec 28 17:37:32 Probably the same in Android Studio. Dec 28 17:37:59 Ok, I gotta learn how this inflator works Dec 28 17:38:12 TacticalJoke: In AS you press cmd+n and get a few options like making constructors and overriding stuff. Dec 28 17:38:13 drose379: Eclipse is way lighter in my experience. Only problem is they're not officially supporting it anymore (I think). Dec 28 17:39:10 Do I need to import the inflater class? Dec 28 17:39:36 android.view.LayoutInflater? Dec 28 17:39:41 Yeah. Dec 28 17:39:47 This is another thing an IDE would do for you automatically. Dec 28 17:39:58 Just what I was about to say. Dec 28 17:40:17 I will be happy to use the IDE after I learn the language better Dec 28 17:40:43 For now, I would be using it as a crutch and thats only going to hurt me in the long run, better to learn and understand and then use a convenience Dec 28 17:41:16 drose379, choose the easiest and quickest way to learn Dec 28 17:41:51 Easiest way to learn is by making mistakes and fixing them Dec 28 17:42:02 I remember something I messed up on yesterday, and I wont make that same mistake again Dec 28 17:42:10 drose379: To be honest, I think that you'll learn faster with an IDE. A text editor just slows you down unnecessarily. Dec 28 17:42:19 TacticalJoke: Exactly. Dec 28 17:42:37 You may be right.... I may be crazy Dec 28 17:42:43 A lot of stuff like remembering to import things is just a time waster. Dec 28 17:42:44 drose379: Aren't we all? :) Dec 28 17:42:59 drose379: You could try Eclipse if Android Studio is too slow. Dec 28 17:43:04 Even though it's not really supported anymore. Dec 28 17:43:13 Then I would have to run 2 IDEs Dec 28 17:43:25 Yeah eclipse is definitely the best option at the moment. Dec 28 17:43:26 Cause I still use AS to build the program and move it to my phone Dec 28 17:43:45 You could just build in eclipse...? Dec 28 17:43:47 drose379: Can't you use AS then? Dec 28 17:44:11 I could, its just really laggy. But I gotta build this class!! Dec 28 17:45:58 Okay, one thing at a time. Dec 28 17:46:12 :) Dec 28 17:46:31 So protected LayoutInflater inflater Dec 28 17:46:34 then in the construct Dec 28 17:46:36 private. Dec 28 17:46:52 inflater = LayoutInflater.from(context) Dec 28 17:46:56 Right. Dec 28 17:47:06 Where does LayoutInflater come from? How can I just use its name like that Dec 28 17:47:33 would I do inflater = inflater.from Dec 28 17:47:42 LayoutInflater.from is a static method. Are you new to Java? Dec 28 17:47:48 Anybody have any ideas on this question http://stackoverflow.com/questions/27643990/exception-thrown-when-calling-getfriends Dec 28 17:47:51 Yes Dec 28 17:48:07 LayoutInflator is a class and from is a method Dec 28 17:48:24 which returns an inflator from the context. Dec 28 17:48:55 So since I imported LayoutInflater, I can just use its static methods without instantiating? Dec 28 17:49:01 I do understand what static is Dec 28 17:49:13 Yes. Dec 28 17:49:36 Ok, got it Dec 28 17:49:46 drose379: What is your programming background like? Dec 28 17:49:59 1 year of OO PHP Dec 28 17:51:00 A static method is basically a global function. There are some differences (such as having to use ClassName.methodName), but not very many. Dec 28 17:51:10 Right Dec 28 17:51:19 so next method I need is.. Dec 28 17:51:37 getCount Dec 28 17:51:43 To get the size of the array> Dec 28 17:51:44 ?* Dec 28 17:53:07 Yeah. Dec 28 17:53:27 Why do I need the size of the array? Dec 28 17:53:38 ListView calls that method to determine how many items to display. Dec 28 17:53:38 ruler501, could it be you are trying to do network calls on main-thread? Dec 28 17:54:03 Ok, next is getItem Dec 28 17:54:16 But it is passed an integer called position Dec 28 17:54:20 lasserix: here? Dec 28 17:54:21 Will this be used in a loop? Dec 28 17:54:39 havchr yes it is doing network calls, so I should be running this in a different thread from the main thread? Dec 28 17:54:52 drose379: you can just read the source for it Dec 28 17:55:09 ok Dec 28 17:55:13 drose379: You can just ignore getItem and getItemId. Your ListView will not call either. Dec 28 17:55:39 drose379: http://grepcode.com/search/usages?type=method&id=repository.grepcode.com%24java%24ext@com.google.android%24android@1.5_r4@android%24widget@Adapter@getCount%28%29&k=u Dec 28 17:55:49 ruler501, sorry, I just skimmed. I now beleive you may have to do something to returnFriends so that it can post it back on main-thread/looper Dec 28 17:56:03 getItem is for setting information usually Dec 28 17:56:15 TacticalJoke so I just need the getView? Dec 28 17:56:25 You need getView and getCount, I guess. Dec 28 17:56:26 havchr it signals the main thread when returnFriends is called Dec 28 17:56:37 getView looks confusing Dec 28 17:56:39 I mean, you have to override getItem and getItemId for things to compile, but you can just return null and -1. Dec 28 17:57:01 ruler501, what does returnFriends do? I could not see the code for it. Dec 28 17:57:05 Oh yeah, do I need to override all these methods Dec 28 17:57:33 hmmmmm Dec 28 17:58:15 TacticalJoke Im completely lost on the getView method Dec 28 17:58:25 havchr it is a native method(I'm primarily using the ndk) http://pastebin.com/YTtuUXqy is the method Dec 28 17:58:42 drose379: are you implementing a listview adapter or reading the source? Dec 28 17:59:17 Trying to learn about baseAdapter Dec 28 17:59:19 drose379, the getView method on the listview is a bit complicated to get right, there are some patterns which is non-obvious. If you do a google search for listView adapter viewholder , you should get som articles explaining stuff. Dec 28 17:59:20 by subclassing it Dec 28 17:59:35 drose379: getView is an abstract method of all adapters Dec 28 17:59:41 not only BaseAdapter Dec 28 17:59:46 Right Dec 28 17:59:59 it's basically the method that creates the listview cell Dec 28 18:00:09 and puts all the relevant information to show in it Dec 28 18:00:09 When I call this class from another activity Dec 28 18:00:19 Do i have to do .getCount and .getView Dec 28 18:00:29 you should NOT call getView on your own Dec 28 18:00:37 ListView calls getCount and getView. Dec 28 18:00:38 the listView will do it for you Dec 28 18:00:46 how? Dec 28 18:01:07 when you scroll, the lisview tries to draw the new cells on the screen Dec 28 18:01:22 it does that by calling getView and getCount on the adapter Dec 28 18:01:31 drose379: Because you call ListView.setAdapter(yourAdapter). Dec 28 18:01:33 and then draws the relevant view on the screen Dec 28 18:01:50 I understand learning without using an IDE, but you should never not use the resources of the internets/books to get a solid understanding of things, you will just learn slower and with holes in your knowledge which can end up causing hard-to-find bugs. Dec 28 18:01:52 The ListView knows that any adapter given to it has getView, getCount, etc. Dec 28 18:02:17 Ok, what are the int position, view convertView and ViewGroup parent Dec 28 18:02:18 because they're abstract (meaning they HAVE to be impelmented by the developer) Dec 28 18:02:22 that getView needs Dec 28 18:02:35 yes Dec 28 18:02:54 I have no idea what anyone of those are Dec 28 18:03:01 BaseAdapter also requires you to implement getCount and the getItemForPostion Dec 28 18:03:06 and getPositionForItem Dec 28 18:03:12 drose379: http://developer.android.com/reference/android/widget/Adapter.html#getView(int, android.view.View, android.view.ViewGroup) Dec 28 18:03:30 thepoosh: Subclasses don't need to override those. Dec 28 18:03:35 hmmm Dec 28 18:03:37 sure? Dec 28 18:03:43 Yeah, I've never had to. Dec 28 18:04:56 havchr and the problem is that onComplete is never called if I put in Looper.prepare(). Dec 28 18:04:58 So can i do getView that just shows a list Dec 28 18:05:10 and doesn't go to a specific place in the list Dec 28 18:05:20 ruler501, okay, I'd update your stackoverflow to reflect that. Does it work if you are not doing a native call? Dec 28 18:05:29 no Dec 28 18:05:35 you should never be calling getView Dec 28 18:05:48 I need to create it though Dec 28 18:05:53 yes Dec 28 18:05:59 havchr it is never called so I wouldn't think the native call inside of it should affect anything, but I can try removing it Dec 28 18:06:01 so the listview knows what to draw Dec 28 18:06:17 so it needs a position Dec 28 18:06:26 I need to supply a position, dont i? Dec 28 18:06:43 'lo. i'm having a surprising issue porting a package i've written to android. specifically, the test suite. i'm looking for opinions on what would be the sanest way to proceed Dec 28 18:06:44 the listview knows what positions are being drawn at any moment Dec 28 18:06:59 Ok, whats convert view? Dec 28 18:07:23 hmmmm Dec 28 18:07:32 drose379: ListView recycles views for efficiency. Dec 28 18:07:34 drose379: you need to do some reading Dec 28 18:07:47 I did, it says the old view to reuse Dec 28 18:07:49 I dont get that Dec 28 18:08:03 What old view? Dec 28 18:08:29 It creates only a few views and reuses them, for efficiency. Dec 28 18:08:40 If it has done so, convertView will not be null. If not, convertView will be null. Dec 28 18:08:50 The idea is that you inflate only when convertView is null. Dec 28 18:09:14 ok Dec 28 18:09:17 havchr once I remove the native calls it still never calls any of the methods except thinking Dec 28 18:09:19 then what about the View parent? Dec 28 18:09:27 Hey guys im trying to create different layouts for landscape and portrait. I have a layout and a layout-land folder. Both the layout xmls are named the same but when i run my app only the portrait layout is display in both orientations. Dec 28 18:09:34 That's useful to pass to LayoutInflater.inflate. Dec 28 18:09:38 that is the cell in which the view is inflated Dec 28 18:09:49 drose379, https://www.youtube.com/watch?v=wDBM6wVEO70 watch this :) Dec 28 18:10:03 YES! Dec 28 18:10:15 Thank you! Dec 28 18:10:22 drose379: Do you want a really simple example? Dec 28 18:10:30 It'll answer most of your questions, I think. Dec 28 18:10:32 You found one? Dec 28 18:10:47 Well, I made one. Dec 28 18:10:50 drose379, the listview is one of the most advanced things in android. Don't get me started on trying to animate stuff in the listview (head explodes) :) Dec 28 18:10:59 lol Dec 28 18:11:04 Also in my manifest i have configChanges keyboardhidden|orientation|screenSize Dec 28 18:11:06 Yeah, my head is about to explodee I think Dec 28 18:11:15 TacticalJoke you made one? Yeah id love to see t Dec 28 18:11:17 it* Dec 28 18:11:22 It's fundamentally simple. Dec 28 18:11:27 But the details can be complicated. Dec 28 18:11:31 (I mean this whole topic is.) Dec 28 18:11:58 TacticalJoke: Romain Guy said he still doesn't understand list views Dec 28 18:12:02 and he fucking wrote it Dec 28 18:12:04 hey all X) Dec 28 18:12:07 hi Dec 28 18:12:12 r u serious hahaha Dec 28 18:12:13 http://pastebin.com/kn5QcWE7 Dec 28 18:12:24 anyone know what the 'com.google.android.googlequicksearchbox:interactor' process does? Dec 28 18:12:28 Note that I always rename "convertView" to "recycledView". Dec 28 18:12:33 "convertView" is a terrible name, IMO. Dec 28 18:12:58 TacticalJoke: getItem should return the array[position] Dec 28 18:12:58 service i mean Dec 28 18:13:02 dauntless2425, have you checked to see that your phone isn't orientation-locked ? Dec 28 18:13:09 TacticalJoke: It really is a terrible name. Dec 28 18:13:41 dauntless2425: or in the manifest, the activities can be locked to portrait Dec 28 18:13:43 It rotates the screen and the layout Dec 28 18:13:48 thepoosh: Generally, I guess. Dec 28 18:14:04 So TacticalJoke I need to import view and viewGroup? never used viewgroup Dec 28 18:14:07 It's only a convenience method, though. I think ListView never calls it. Dec 28 18:14:16 Oops, sorry. Forgot about the imports. Dec 28 18:14:20 It just doesnt use the landscape layout data Dec 28 18:14:40 Not a problem TacticalJoke Dec 28 18:14:57 TacticalJoke: it's for the developer usually, for the onItemClickedListetners Dec 28 18:15:09 Yes, you need to import android.view.ViewGroup. Dec 28 18:15:15 For that 'parent' parameter. Dec 28 18:15:26 and view.View too, right? Dec 28 18:15:33 Yes, android.view.View. Dec 28 18:15:53 That's the simplest possible BaseAdapter implementation that does something, I guess. Dec 28 18:16:02 While respecting the recycled-view thing. Dec 28 18:16:20 You'll want to replace android.R.layout.simple_list_item_1, probably. Dec 28 18:16:26 so let me try to translate that ternary Dec 28 18:16:37 I can do this.. just wait :) Dec 28 18:16:43 TacticalJoke: don't forget to bring your holder Dec 28 18:17:12 Yeah, ViewHolders are the next step (but not needed in my example because there's only one View). Dec 28 18:17:25 I think it's best for drose379 to start with a single view. Dec 28 18:17:36 dauntless2425, must be something in the manifest. It should recreate the activity on rotation. You could try and log a bit in your activity to see if it is being recreated or not. Dec 28 18:17:39 if (inflater.inflate(android.R.layout.simple_list_item_1, parent, false)) {View view = (recycledView == null)} Dec 28 18:17:56 is that right tactical? Dec 28 18:17:59 Ok I'll try Dec 28 18:18:29 drose379: View view; if (recycledView == null) { view = inflater.inflate(...); } else { view = recycledView; } Dec 28 18:18:40 Though the ternary operator makes that all neater, IMO. :) Dec 28 18:18:48 It does, yeah Dec 28 18:19:38 so setAdapter() does all this for us Dec 28 18:19:39 TacticalJoke: https://skillsmatter.com/skillscasts/6088-the-worst-programming-language-ever#video Dec 28 18:19:50 Like passes our methods the params that they neeed Dec 28 18:19:51 setAdapter lets your ListView know that this is the adapter to call. Dec 28 18:20:07 It'll call getCount at first. Then it'll call getView every time it needs to display an item. Dec 28 18:20:22 I haven't seen that yet, thepoosh. :) Dec 28 18:20:25 I'll check it out. Dec 28 18:20:31 it's awesome! Dec 28 18:20:32 Why do you need those 2 last methods? Dec 28 18:20:55 Anyone able to help me out ? Dec 28 18:21:16 drose379: Only because the Adapter inteface defines them. Dec 28 18:21:25 so they dont do anything for now? Dec 28 18:22:11 neredsenvy Dec 28 18:22:11 I think getItemId is called only for ListViews with "stable IDs". Not sure about that; never used it. Dec 28 18:22:12 ? Dec 28 18:22:15 getItem can be used by your code. Dec 28 18:22:41 Your getItem override could say "return array[position];". Dec 28 18:23:04 what does it even do? Dec 28 18:23:07 But you might never use that. You probably have the array already. Dec 28 18:23:14 ?! Dec 28 18:23:15 Havchr i confirmed it is changing orientation. OnConfigurationChange is being called when orientation changes. Its just not changing the layout. It rotates the portrait layout but never calls the landscape xml Dec 28 18:23:16 NO Dec 28 18:23:17 drose379: If you implement it, you can say "myAdapter.getItem(5);". Dec 28 18:23:32 ah, ok Dec 28 18:23:37 drose379: it will return the data that is shown for a position Dec 28 18:23:48 so why the -1 Dec 28 18:23:48 dauntless2425, but is the activity being recreated? is onCreate called when orientation changes? Dec 28 18:23:54 so if you have an onItemClickedListener set to the listview Dec 28 18:24:05 you can get the pointed data for the position Dec 28 18:24:08 eith getItem Dec 28 18:24:12 *with Dec 28 18:24:17 whats -1? Dec 28 18:24:18 Havchr let me check that Dec 28 18:24:48 The thing is, I'm not sure that it's a good idea to use ListView.setOnItemClickListener. Dec 28 18:24:57 Note that RecyclerView doesn't implement such functionality. Dec 28 18:25:22 TacticalJoke: would you rather having an onClick for each cell?! Dec 28 18:25:27 madness!!! Dec 28 18:25:32 drose379: You could return "position" if you want. As far as I know, Adapter.getItemId is used only for ListViews with "stable IDs". Dec 28 18:25:35 Then ListView calls Adapter.getItemId. Dec 28 18:25:40 Havchr no its not Dec 28 18:25:45 thepoosh: You can just set an onClickListener for the View. Dec 28 18:25:56 then there is one for each cell Dec 28 18:25:56 Could i return null Dec 28 18:26:06 that is wasteful Dec 28 18:26:16 drose379: no, it requires an int Dec 28 18:26:19 thepoosh: Couldn't you set the ViewGroup's onClickListener? Dec 28 18:26:21 int cannot be null Dec 28 18:26:23 how about 0 Dec 28 18:26:25 yes Dec 28 18:26:34 drose379: "-1" often means "no value"; that's why I returned that. Dec 28 18:26:36 Hi Dec 28 18:26:40 ah, ok Dec 28 18:26:41 Though I guess it's just as arbitrary as any value. Dec 28 18:26:49 Ill brb, about 20 mins Dec 28 18:26:57 Will you guys be here? Dec 28 18:27:01 Yeah. Dec 28 18:27:04 TacticalJoke: since there is always more than one cell in view, there will be more than one listener alive Dec 28 18:27:06 Ok, thanks a lot man Dec 28 18:27:07 dauntless2425, what does your android:configChanges in the manifest say? Dec 28 18:27:12 not needed and wasteful Dec 28 18:27:17 nope, the channel will be empty in 20 minutes, sorry! ;) Dec 28 18:27:25 Oh he's JesusFreke Dec 28 18:27:28 hey* Dec 28 18:27:29 funny Dec 28 18:27:30 o/ Dec 28 18:28:16 thepoosh: I'm divided on this one. Dec 28 18:28:27 i'm not Dec 28 18:28:31 trust me Dec 28 18:28:32 Havchr keyboardHidden|orientation|screenSize. But I thought onCreate only gets called once. Not when orientation changes. Dec 28 18:28:40 In some cases, the ItemClickListener thing makes no sense: the views each need their own click listener. Dec 28 18:29:00 I think that's why RecyclerView doesn't implement anything like setOnItemClickListener. Dec 28 18:29:07 My understanding is that they simply decided that it's a bad pattern. Dec 28 18:29:22 Having said this, I do see cases where it's handy to simply use setOnItemClickListener. Dec 28 18:29:28 TacticalJoke: 1. it's in the ListView not in the adapter Dec 28 18:29:43 I am getting exception when trying to obtain a token using GoogleAuthUtil.getToken() Dec 28 18:29:44 com.google.android.gms.auth.GoogleAuthException: Unknown Dec 28 18:29:48 2. it's not sensible only if you have an onClick on a single item in the cell and also then not always Dec 28 18:29:59 dauntless2425, when you have orientation and screenSize in the configChanges, your activity will not be recreated with landscape layout when you rotate, it means you must handle setting the new layout yourself. remove orientation and screenSize from configChanges and try it. Dec 28 18:30:20 thepoosh: But what's the harm in setting an onClickListener for each view? I think that has trivial overhead. Dec 28 18:30:32 And that would also make it easier to move to RecyclerView in future. Dec 28 18:30:52 it's prone to memory leaks Dec 28 18:31:36 Havchr ok its crashing with a npe let me see why Dec 28 18:32:09 Hm using Button and setting background to drawable I get very ugly image displayed kinda looks stretched. But when using ImageButton and using src instead of background I get very crisp clear button : / Dec 28 18:32:43 Havchr sweet! It works! Thank you so much! Dec 28 18:32:56 For some reason Button:background will take image from the correct folder xhdpi but it will stretch it : / while ImageButton:src will load it as it should Dec 28 18:36:11 JacobTabak's answer here is weird; lol: http://stackoverflow.com/a/26196831 Dec 28 18:37:12 People seem to like it, though. Dec 28 18:38:35 Havchr sweet! It works! Thank you so much! Dec 28 18:38:52 dauntless2425, no problem :) Dec 28 18:41:08 This video looks good, thepoosh. :) Dec 28 18:41:14 I love the casual PHP insult at the start. Dec 28 18:41:15 XD Dec 28 18:41:23 PHP is so horrible. Dec 28 18:42:17 PHP was fun for me Dec 28 18:42:26 easy Dec 28 18:42:40 i never understood why object.method wasnt enough for the developers of php.... Dec 28 18:42:44 shmooz: you probably love perl as well Dec 28 18:42:47 you twat! Dec 28 18:43:00 thepoosh: I do, but not as much as php Dec 28 18:43:05 omg Dec 28 18:43:09 I'm dying here Dec 28 18:43:09 Sorry, shmooz. Guess I have a certain hatred for some languages (mainly PHP, C++, and JavaScript). :D Dec 28 18:43:14 but yeah there are some perl tricks that are great Dec 28 18:43:17 i mean who came up with "lets use arrows instead of ." ? Dec 28 18:43:32 danijoo_: cpp Dec 28 18:43:36 It kinda blows my mind that JavaScript not only exists but is popular. Dec 28 18:43:41 and it was dumb Dec 28 18:43:46 TacticalJoke: C++ is god of all languages Dec 28 18:43:51 TacticalJoke: it has very good parts Dec 28 18:44:01 crockford has a series of lectures on this Dec 28 18:44:28 I liked PHP because it was a lot like C Dec 28 18:45:12 you are a disturbed person Dec 28 18:45:13 This is one of my favourite anti-programming-language rants: http://eev.ee/blog/2012/04/09/php-a-fractal-of-bad-design/ Dec 28 18:45:22 I think the -> vs . notation is nice in c++ because it helps the programmer differentiate between a pointer to something and the actual object, which in c++ is a very important distinction. Dec 28 18:45:38 I love the level of detail of that article. Dec 28 18:46:29 havchr: yes. but php doesnt have pointers ;) Dec 28 18:47:43 The only PHP pointer is "Stay the hell away". :D Dec 28 18:48:07 I've just realised something: I love programming-related rant. Dec 28 18:48:09 rants* Dec 28 18:48:18 That anti-C++ thing was great, too (the FQA thing). Dec 28 18:48:32 I wrote a whole conspiracy theorist torrent website using nothing but PHP Dec 28 18:48:37 Linus ranting against Subversion. Dec 28 18:48:50 it has shoutbox and chat and forum and everything Dec 28 18:49:24 I guess it's powerful and easy to get up and running with. I think the design is just really awful, though (stuff just hacked on arbitrarily). Dec 28 18:49:43 shmooz: and people did big things with MUMPS Dec 28 18:50:16 good on them Dec 28 18:50:25 hi there. if an app requires the permission: Dec 28 18:50:26 “Device ID & call information Dec 28 18:50:27 * read phone status and identity” Dec 28 18:50:27 Will it be able to read the name/email of my Google Account? Dec 28 18:51:52 Not sure, eightfold. Someone might know in #android. Dec 28 18:52:08 It's kinda cool that people starting programming today might never have to use a really bad language. Dec 28 18:52:11 TacticalJoke: trying there Dec 28 18:52:16 They might never have to use C++, for example. Dec 28 18:52:52 Even Java isn't great but its design is far superior to that of C++ or whatever. Dec 28 18:53:04 If Java is the worst language a new programmer has to use, they are so lucky. Dec 28 18:53:25 Hey gusy Dec 28 18:53:27 guys Dec 28 18:53:33 Hey Dec 28 18:53:35 oh oh Dec 28 18:53:45 We were dissing PHP while you were gone. ;o Dec 28 18:53:46 lol Dec 28 18:53:51 Is that right?? Dec 28 18:53:55 :D Dec 28 18:54:24 You can't blame them. It's too easy to diss. Dec 28 18:54:28 I expect most people who call themselves programmers to know C/C++ Dec 28 18:54:48 I like C. It's simple; it does what it needs to do. I just don't like the mess that is C++. Dec 28 18:54:52 What about java Dec 28 18:55:21 not important Dec 28 18:55:24 I've started to like Java, I guess. But it's showing its age. C# is a better Java. Dec 28 18:55:52 Am I wrong for learning java as my next language then? Dec 28 18:55:59 no argument there :) Dec 28 18:56:08 Oh, no. Java is where Android programming is at. Dec 28 18:56:17 Good morning. Dec 28 18:56:24 most universities stopped teaching how hardware is connected to software in their CS courses Dec 28 18:56:24 the only problem java has is the incredible amount of code you need to do simple things. Dec 28 18:56:35 but for a that "old" language, its fine i think Dec 28 18:56:36 andreyonadam: Evening. Dec 28 18:56:41 Haha nice. Dec 28 18:56:48 yeah, java had a lot of... little annoyances. Dec 28 18:56:51 has* Dec 28 18:56:53 Yeah, I think Java is ingenious given the constraints at the time. Dec 28 18:57:08 shmooz: That's why I'm just changing my major from CS to EE Dec 28 18:57:13 a lot of stuff that c# was able to learn from/improve on. Dec 28 18:57:18 Whats EE stand for Dec 28 18:57:22 Electrical Engineering Dec 28 18:57:24 andreyonadam: good choice Dec 28 18:57:29 You dont like CS? Dec 28 18:57:30 I want to get a little background in that. Dec 28 18:57:34 The thing about C# now is that it's becoming bloated. It's sad for me to see. Every little idea is being implemented. Dec 28 18:57:44 I do. But that can be self taught. I would assume it would be harder to teach yourself electrical engineering. Dec 28 18:57:45 It's hard to describe C# in a simple sentence now. Dec 28 18:57:48 heh, yeah. I haven't actually done anything with it in years Dec 28 18:58:00 in CS the first thing I would teach students is hardware and how electricity travels through it to translate to software for us Dec 28 18:58:10 from my java perspective, i always get eye cancer when I see C# guys capitalizing method names :D Dec 28 18:58:19 For example, is C# a statically typed language or not? The answer is "mostly". Dec 28 18:58:21 and then a intro to Assemblers Linkers and Loaders Dec 28 18:58:26 The answer used to be "Yes". Dec 28 18:58:31 and then how all that can translate to higher level languages Dec 28 18:58:38 shmooz no way, you would have to go into device physics. electricity? wires? too high level Dec 28 18:58:43 pfft :) Dec 28 18:58:57 semiconductor physics Dec 28 18:58:58 I'd probably go with 6.001 or similar, then do assembly Dec 28 18:59:03 shmooz: In a way, it makes me sad that new programmers won't be exposed to stuff like that. Dec 28 18:59:10 But, at the same time, they probably don't need to anymore. Dec 28 18:59:19 honestly, they're exposed if they want to be exposed :) Dec 28 18:59:22 True. Dec 28 18:59:32 I went through an assembler thing, and it helped me to understand C and the like. Dec 28 18:59:37 I was going to UIC this semester. I'm a freshman in college. I love CS I've been on and off Android development since my freshman year in highschool. But I thought EE would give me some extra leverage. I told myself I can still get a CS job because I looked on some requirements for some job postings and they take engineering grads. But the bigger thing for me is imagine if I took CS and then I probably wouldn't know what was hap Dec 28 18:59:37 pening behind everything, unlike the case being a EE graduate. Dec 28 18:59:41 But does it help me with Android? I'm not sure. Maybe in some ways. Dec 28 18:59:48 Yeah, the course I does is a lot more focused on building real products then learning the nitty gritty about how the computer works. Dec 28 18:59:50 It might not help in 20 years. Dec 28 18:59:52 after teaching them ASM and C/C++ I would make them implement their own OS Dec 28 19:00:17 Everything helps with Android. Just make your way in Java. And honestly things don't change much. They have to evolve from older things to change in the first place. Dec 28 19:00:30 danijoo_: I agree. Lol. Looks so weird to me now. Dec 28 19:00:36 And yet I used to write code like that! Dec 28 19:00:41 shmooz: pft, it sounds like you want to teach them to be a well-rounded developer! we can't have that, now can we? :p Dec 28 19:01:35 I've been thinking. How much would an electric bike cost? Dec 28 19:01:35 gotta spit those new developers out as quick as possible! no time for all that! ;) Dec 28 19:01:55 andreyonadam: might I suggest a http://solowheel.com/ :D Dec 28 19:01:58 Got interested. Probably won't get one though. It defeats the purpose of exercise. Dec 28 19:02:12 JesusFreke: they don't want you to learn things that are powerful, or you'll be a threat to the big corporations Dec 28 19:02:23 Ohh nice. You can still use your bike as a bike. Dec 28 19:02:30 I do get nostalgic when I see people talking about assembler and so on. Dec 28 19:02:36 Programming can be very emotional, it seems. Dec 28 19:02:47 shmooz wut Dec 28 19:02:52 TacticalJoke: that hasn't changed, hardware is still the same Dec 28 19:02:54 Though I never enjoyed assembler. Dec 28 19:03:03 TacticalJoke: I still enjoy the occassional assembly-level programming :) Dec 28 19:03:05 True, there's that foundation all the time. Dec 28 19:03:06 when programming in Common Lisp, I'd often look up an assembler listing Dec 28 19:03:17 TacticalJoke, which inflater method did you use? Dec 28 19:03:25 mostly whenever I need to change anything in my keyboard firmware. Dec 28 19:03:28 and what is a viewgroup Dec 28 19:03:32 drose379: How do you mean? Dec 28 19:03:46 Theres a bunch of different inflate methods that accept different params Dec 28 19:03:51 Oh. Dec 28 19:03:52 Lol So its a wheel. No bike. Dec 28 19:04:11 You want to give it a parent without attaching it to the parent (or something; I forget the details). Dec 28 19:04:19 I think that particular call gives it the parent LayoutParams. Dec 28 19:04:41 If you pass "true" at the end you'll get an exception at run-time in this case. Dec 28 19:04:42 whats the ,false part? Dec 28 19:04:49 That's whether to attach to the parent. Dec 28 19:04:59 The parent being the current activity Dec 28 19:05:03 The ListView. Dec 28 19:05:15 andreyonadam: it's pretty neat. I got to try a co-workers a few month's ago Dec 28 19:05:20 Aernt I bulding a list view Dec 28 19:05:26 How's battery life? Dec 28 19:05:31 drose379: The adapter returns a single item in a ListView. Dec 28 19:05:38 The ListView uses the adapter to get its children. Dec 28 19:05:39 10-15 miles or so, I think Dec 28 19:05:48 That's amazing for something of that size. Dec 28 19:05:51 So the parent is the ListView. You're implementing the children. Dec 28 19:06:01 (One child at a time.) Dec 28 19:06:07 Why dont I want to attach? Dec 28 19:07:02 I think because ListView doesn't work like that. It can't have attached children. I'm not 100% sure. Dec 28 19:07:15 Ok,and parent is just a placeholder? Dec 28 19:07:20 ListView's children are virtual children, basically. Dec 28 19:07:22 ListView is kinda complex. Dec 28 19:07:38 Yeah, whys it have to be so complex? Dec 28 19:07:52 Because it has great power. Dec 28 19:08:01 It's amazingly powerful, really. Dec 28 19:08:04 and with great power, comes great responsability ! Dec 28 19:08:11 like, all the responsability ! Dec 28 19:08:14 if (inflater.inflate(R.layout.list_layout,parent,false)) Dec 28 19:08:15 You could return items containing 20 different widgets. Dec 28 19:08:23 That's wrong, drose379. Dec 28 19:08:31 parent is wrong right Dec 28 19:08:36 LayoutInflater.inflate doesn't return a boolean. Dec 28 19:08:41 'parent' is right. Dec 28 19:08:56 If I have an image and its 1080p. I am using it for an image view. Do i have to copy the image into all the dpi folders? Eg mdpi, hdpi, xhdpi, etc Dec 28 19:08:59 drose379: http://pastebin.com/kn5QcWE7 Dec 28 19:09:21 Right, I'm trying to convert your ternary into a regular if elsde Dec 28 19:09:50 It's just this: View view; if (recycledView == null) { view = inflater.inflate(...); } else { view = recycledView; } Dec 28 19:11:08 Note that almost nobody uses this "recycledView" naming (though IMO they should). Dec 28 19:11:34 Yeah I like recycled better Dec 28 19:11:52 I don't understand how "convertView" makes sense. Is 'convert' being used as an adjective there? Dec 28 19:12:29 I need some serious listView practice after I finish this Dec 28 19:13:49 drose379: Are you planning to make a particular app after this? Dec 28 19:13:58 Nay, just learning Dec 28 19:14:02 Okay. Dec 28 19:14:05 Why? Dec 28 19:14:13 Note that there is a new version of ListView (called RecyclerView) that is said to be better. Dec 28 19:14:22 I will note that Dec 28 19:14:30 But I don't know much about it and I've heard that it's harder to use in some cases. Dec 28 19:14:32 Do most people only learn Android java if they have an app in mind Dec 28 19:15:01 Or is it common to just learn it to learn it and have the ability to create an app? Dec 28 19:16:01 I'm guessing most put in the time and effort only if they have an app in mind. But there are probably many people who simply enjoy learning something new and fun. Dec 28 19:16:35 Well I started with java and quickly got bored of command line interfaces and text only stuff Dec 28 19:16:40 I see. lol Dec 28 19:16:43 and knew that android was written in java Dec 28 19:16:48 Anyone know if I can just save an image into one dpi folder or do I need to save it into different folders even though its the same size and density? Dec 28 19:16:48 so hey, why not Dec 28 19:16:55 Most of my programming has gone like that, drose379. Dec 28 19:17:01 drose379: android was not written in java Dec 28 19:17:07 I meant the apps Dec 28 19:17:12 TacticalJoke hows it gone for you? Dec 28 19:17:42 It worked out well. I've been exposed to a lot of stuff. :) Dec 28 19:17:54 A lot of languages and APIs and frameworks and so on. Dec 28 19:18:02 I was told when I was learning OO PHP to stick to one thing and learn it well Dec 28 19:18:04 drose379: you can make apps applets and J2EE stuff too Dec 28 19:18:06 And I followed that for a while Dec 28 19:18:16 but that's all kind of old now Dec 28 19:18:16 But decided there so much more out there Dec 28 19:18:24 Right, shmooz Dec 28 19:18:32 drose379: Android is certainly huge. It's not a bad idea at all to get into Android programming. Dec 28 19:18:36 It's also not about to die. Dec 28 19:18:50 drose379: Are you younger than 25? Just curious. Dec 28 19:18:53 drose379: you should do one app using Canvas and some graphics, and another that uses AWT or Swing stuff Dec 28 19:19:19 TacticalJoke Im 18, thats another reason I left PHP for Java, I want to get ready for CS Dec 28 19:19:26 drose379: or just do android and forget about boring stuff Dec 28 19:19:29 Ah, cool. A great age to get really deep into programming. Dec 28 19:19:53 Would you say android is deep? Dec 28 19:19:57 Or shallow Dec 28 19:20:11 Or that in the middle of the pool area where kids go who can kinda swim but not really Dec 28 19:20:11 It can get deep, I think. I'm still fairly new (around a year of experience). Dec 28 19:20:29 Oh, cool. What language did you come from? Dec 28 19:20:42 C# was the last language I used. Dec 28 19:20:50 Why'd you leave/ Dec 28 19:20:52 ?* Dec 28 19:21:01 drose379: yes it expects you to be familiar with some concepts and you need to learn new ones as well Dec 28 19:21:03 .NET was kinda dying when I left. (I guess it still is.) Dec 28 19:21:08 Also, I liked the idea of creating phone apps. Dec 28 19:21:23 You got anything on the market? Dec 28 19:21:42 Not yet. Making an app right now that could get popular (if I do it right). Dec 28 19:21:51 No way, what is it? Dec 28 19:21:55 Or is it a secret? Dec 28 19:22:01 A reddit app. Dec 28 19:22:08 Like a reddit client? Dec 28 19:22:40 Yeah. I'm inspired by RedReader (though that is so limited). Dec 28 19:22:54 Inspired by others, too, I guess. But I'm not a huge fan of Android reddit apps in general. Dec 28 19:23:03 Hows it coming along? Dec 28 19:23:42 The complexity isn't as painful as I had expected. Dec 28 19:23:49 reddit makes things easy since it has a JSON API. Dec 28 19:23:55 Man is there a website with android resources that isn't filled with trash adverts Dec 28 19:24:02 Freaking popups Dec 28 19:24:07 neredsenvy: Adblock FTW. Dec 28 19:24:15 Lightbox Dec 28 19:24:29 neredsenvy: or you could use NoScript too but you have to train it Dec 28 19:25:11 so TacticalJoke I can use the word 'parent' Dec 28 19:25:15 in my inflate? Dec 28 19:25:27 Yeah, it's the parameter passed to your Adapter.getView override. Dec 28 19:25:47 shit, forgot Dec 28 19:26:33 drose379: I would strongly recommend moving to an IDE when you can. It makes your life way simpler. (Even if that means buying a new laptop.) Dec 28 19:26:36 BTW. Dec 28 19:26:41 So whats the textView part at the bottom of the getView method Dec 28 19:26:47 I will be doing that ASAP Dec 28 19:26:54 Yeah, I would tend to agree Dec 28 19:27:15 The adapter returns a view for the ListView to display. In my example, I just used android.R.layout.simple_list_item_1 for simplicity (that is a layout with a single TextView). Dec 28 19:27:31 But the view returned could be complex (a ViewGroup with five Views, perhaps). Dec 28 19:27:50 Doesn't this line do that: Dec 28 19:27:52 ListView theListView = (ListView) findViewById(R.id.list1); Dec 28 19:28:12 Well thats a list were the textViews go Dec 28 19:28:21 That's for your Activity (or whatever) to find the ListView. The adapter returns a ListView row, which is a child of the ListView. Dec 28 19:28:36 Lunch is ready, will you guys be here in a few? Dec 28 19:28:58 Most people stay here for hours (I know I do). :) Dec 28 19:29:06 OK, talk soon Dec 28 19:29:10 Thanks for the help Dec 28 19:29:30 No worries. Dec 28 19:31:19 FourThirds: Did you get an answer about your networking question? Dec 28 19:31:30 I don't believe so. Dec 28 19:31:40 My internet's being choppy today. Dec 28 19:31:47 So if I did, I don't know about it. :) Dec 28 19:33:10 Would you mind repeating it? Dec 28 19:34:20 So, I have an activity with a few buttons on it. When the buttons are pressed, they call a "Send()" method, which in turn spawns a new thread, sends the message over an already-connected socket, and terminates. My issue is that spawning the thread is slow - this needs to be as close to realtime as possible. Dec 28 19:35:16 Is it possible to keep the connection open so that you don't have to worry about creating threads and connecting again and stuff? Dec 28 19:35:27 You could use a thread-pool, but I don't know whether it'll be faster. Dec 28 19:35:43 The connection already is open. The problem is that I can't do anything with it without spawning a new thread. Dec 28 19:37:30 Here's what my Send() looks like. http://hastebin.com/zobufaxiyo.coffee Dec 28 19:38:14 Yeah, it sounds like having a worker pool would likely be the way to go, if you don't want to have to start up a new thread Dec 28 19:39:16 Yeah. New threads would be fine if what I'm connecting to were a little less time-sensitive. Dec 28 19:39:34 Would a game-style UI (custom buttons and such, drawn on a canvas) w/ polling be better? Dec 28 19:41:08 I don't see how that would help with your thread problem :) Dec 28 19:41:27 Nevermind, I got it. Dec 28 19:41:27 You just need to have a background thread, or a pool of them. Dec 28 19:41:47 I don't need to spawn a new thread because I simply have a PrintStream that takes care of it for me :D Dec 28 19:41:54 Ah, I don't know why I didn't see that. Dec 28 19:42:12 FourThirds: But you can't call PrintStream.print on the UI thread, right? Dec 28 19:42:39 Any networking stuff has to run on a background thread. Dec 28 19:43:53 Ello Dec 28 19:44:01 It can be called on the main thread. Dec 28 19:44:04 Which I believe is UI, yes. Dec 28 19:44:45 Well, there are onTouchListeners set, so maybe those have their own threading system? I don't know. Dec 28 19:44:47 TacticalJoke so I already have a textView in the layout where I am having the list Dec 28 19:44:54 Should I get rid of that? Dec 28 19:45:11 Or can I grab it by the id and write to it Dec 28 19:45:20 If you'd rather use your layout, refer to that instead of to android.R.layout.simple_list_item_1. Dec 28 19:45:45 so in my layout I have 1 textView Dec 28 19:45:48 Is that OK? Dec 28 19:45:50 Yeah. Dec 28 19:45:59 That's fine. If you have anything else you'll have to change the Adapter.getView code. Dec 28 19:46:09 So I need to grab the textview by ID Dec 28 19:46:12 and setText Dec 28 19:46:14 ? Dec 28 19:46:18 No, you don't need to do that. Dec 28 19:46:25 How do I write to it Dec 28 19:46:28 Since there is only one TextView, the result of LayoutInflater.inflate is that TextView. Dec 28 19:46:44 If you had another view, you'd have to start using findViewById. Dec 28 19:46:55 drose379: It's there in the example. Dec 28 19:47:24 so since my layout only has one textView Dec 28 19:47:42 TextView tx = (TextView) view Dec 28 19:47:47 grabs the textview in the layout? Dec 28 19:48:01 Yeah. If that view in your layout were not a TextView, that cast would fail at run-time. Dec 28 19:48:32 Right, now I setText an array? Dec 28 19:48:43 LayoutInflater.inflate returns the root view in the layout. In this case, the root view is the only view. Dec 28 19:48:55 Root view? Dec 28 19:49:18 The top-level view, which could alternatively be a ViewGroup containing child views. Dec 28 19:49:28 Ok Dec 28 19:49:44 On this line: TextView tx = (TextView) view; Dec 28 19:49:49 what is the view at the end Dec 28 19:49:52 Its not defined anywhere Dec 28 19:50:13 "tx" and "view" are the same thing. Dec 28 19:50:43 You have to cast to access TextView-specific methods. Otherwise you can't use TextView.setText. Dec 28 19:50:58 I feel like you've really dived in at the deep end here. :D Dec 28 19:51:13 Yeah, this stuff is reallllllllly confusing Dec 28 19:51:31 I'm guessing you're the kind who learns quickly. Dec 28 19:51:46 I try Dec 28 19:51:55 drose379: I can't recommend this book enough for getting you through the basics of android. http://www.bignerdranch.com/we-write/android-programming.html Dec 28 19:51:58 But I'm also trying to take this bit my bit Dec 28 19:52:08 drose379: I do the same thing. Jump in so deep I'm drowning. Dec 28 19:52:16 It's the fastest way, from what I've seen. Dec 28 19:52:31 It teaches by example and does a really good job of explaining basics. Dec 28 19:52:32 haha, you serious? Or being sarcastic ? Dec 28 19:52:39 Tactical Dec 28 19:52:56 Serious. You can learn things so quickly by getting in deep right away. Dec 28 19:52:57 Radther Ill check that out thank you Dec 28 19:53:14 Thats true, Im not backing down from this now Dec 28 19:54:14 I gotta walk the dogs thougbh Dec 28 19:54:29 So ill be back soon Dec 28 19:54:38 Thanks again Dec 28 20:18:52 hello Dec 28 20:19:45 anyone knows if you can still have some java code in your project when using a NativeActivity? Dec 28 20:20:17 you know, if anyone in this channel uses NDK at all Dec 28 20:21:16 maybe i can at least make some java class and call it through the JNI? Dec 28 20:24:43 TacticalJoke in the setText() you put in position Dec 28 20:24:48 Do you think a small graphing library would be good to make and publish? Dec 28 20:24:49 but position is an integer? Dec 28 20:25:16 hmm okay i think i might be able to pass the android context from java to my C++ main and go from there Dec 28 20:25:19 bye ;) Dec 28 20:25:44 yeah Dec 28 20:25:51 drose379: x and y. right? Dec 28 20:26:05 I dont kno Dec 28 20:26:09 Yeah Dec 28 20:26:15 What do you mean Dec 28 20:26:17 If its a position. Its a float for the x and y Dec 28 20:26:22 Do you want to reposition the view? Dec 28 20:26:23 Its an int Dec 28 20:26:33 Im creating a listview Dec 28 20:26:58 drose379: What do you exactly want to do though? Dec 28 20:27:31 drose379: That's array access. If you don't know how Java arrays work you really need to learn Java. That's an absolute fundamental. Dec 28 20:28:06 Ohh snap. Your talking about arrays. I though he somehow like change views in a listview. Dec 28 20:28:37 ohhh its grabbing a value from an array Dec 28 20:28:40 array[1] Dec 28 20:28:48 would get the second value in the array Dec 28 20:28:53 Yeah. It starts at zero. Dec 28 20:28:57 Zero is the first placeholder. Dec 28 20:29:07 Then it keeps going. Dec 28 20:29:22 You can make a for loop and echo out everything to see what each thing has inside. Dec 28 20:29:30 *print Dec 28 20:29:46 TacticalJoke would I need a for loop to display everythihng in the array with this? Dec 28 20:30:19 drose379: You would use an ArrayAdapter Dec 28 20:30:42 No. The ListView does that. That's why there is a 'position' parameter. Dec 28 20:31:31 Ok and why do i have to return textView at the end? Dec 28 20:33:25 Eclipse is no longer the official IDE? Dec 28 20:36:51 Im severely lost Dec 28 20:37:03 drose379: ListView calls getView when it needs an item to display. Dec 28 20:37:47 why is it returning? Doesn't it just set the text and be done Dec 28 20:37:51 if I am trying to allow people to use the front camrera, do I need to include uses-permission android.hardware.camera AND android.hardware.camera.front? or only the latter? Dec 28 20:38:01 The ListView uses the return value as the item to display. Dec 28 20:38:30 If the ListView needs to show five items starting from position 0, it'll call getView five times with 0, 1, 2, 3, and 4 as the 'position' parameter. Dec 28 20:38:39 Then what about setText Dec 28 20:38:50 That sets the text of the view that we're giving to the ListView to display. Dec 28 20:39:11 Don't the return and the setText do the same thing Dec 28 20:39:44 No. If you don't return that view, then your setText call is meaningless. Dec 28 20:40:19 The idea is to set up the view (by setting its text, say) and then give it to the ListView (by returning it from getView). Dec 28 20:40:35 Anyone here familiar with onLocationUpdate(String, int, int, LocationListener) method. You provide both miliseconds between updates & meters. Can it be by just one for instance that it updates only on 1 meter ? Should I just set the miliseconds super high than and leave 1 m. Dec 28 20:41:04 so what does the method setText actually do? Dec 28 20:41:27 Set the text of the textview Dec 28 20:41:30 drose379: The TextView you're calling setText on is not visible. Dec 28 20:41:43 There's no visible thing having its text set. Dec 28 20:41:55 Its not? Ok Dec 28 20:42:01 It's a thing that's going to be visible after ListView has got it. Dec 28 20:42:22 Alright, I guess I'm ready to call this adapter then Dec 28 20:43:28 subBaseAdapter = new subBaseAdapter(this,array) Dec 28 20:43:54 God, the docs about IAP are awful. Dec 28 20:44:59 drose379: Note that class names should be in PascalCase, not camelCase. Dec 28 20:45:19 yeah, just caught that Dec 28 20:45:25 Variable names use the latter, though. Dec 28 20:45:28 Guy, idk what id do without you Dec 28 20:46:10 Thank you, although I suspect a bunch of errors about to be thrown in my face Dec 28 20:47:05 so for context should I pass this? Dec 28 20:47:12 Yes. Dec 28 20:47:30 Shall I try to run her Dec 28 20:49:06 You think the best way to practice this is by just doing examples over and over/ Dec 28 20:49:17 I suspect you'll want to learn Java at some point. Dec 28 20:49:32 Why? Dec 28 20:49:48 yes, why? Dec 28 20:50:01 one does not want to learn java. one must :v Dec 28 20:50:11 Literally Dec 28 20:50:29 You would say android java is separate from actual java? Dec 28 20:50:59 no no, it is java Dec 28 20:52:19 oh ok Dec 28 20:53:20 Shit, 12 errors TacticalJoke Dec 28 20:54:43 Cannot find symbol baseAdapter? I must have to import it Dec 28 20:57:25 that's why IDEs come in handy :) Dec 28 20:57:42 automatically generated imports FTW :D Dec 28 20:58:27 4 errors! Dec 28 20:59:07 3 errors!! Dec 28 20:59:18 we don't need a blow-by-blow account ;) Dec 28 20:59:40 2 errors!! Dec 28 20:59:46 ... Dec 28 21:00:00 its with the .size() method , thats legit right? Dec 28 21:00:13 yes we do.. we need play by play =] Dec 28 21:00:41 What size method? Arrays have a length field, not a size method. Dec 28 21:00:58 in the getCount method Dec 28 21:01:10 return Array.size() is giving me an error Dec 28 21:01:10 I used 'array.length' in the example. Why not copy that? Dec 28 21:01:31 haha bynarie you like the play by play action Dec 28 21:01:39 Shit, idk what happened Dec 28 21:02:01 yes sir Dec 28 21:02:30 TacticalJoke still getting an error with the .length() method Dec 28 21:02:35 It's not a method. Dec 28 21:02:45 The heck is it Dec 28 21:02:54 It's a field. No parentheses. Dec 28 21:03:00 This is a Java inconsistency. Dec 28 21:03:15 An IDE would've caught all of this, BTW. Dec 28 21:03:20 :) Dec 28 21:03:36 I actually have AS on power saving mode so it doesn't do anything Dec 28 21:04:35 Goin to try to run it on my device now Dec 28 21:05:00 Damn, it crashed Dec 28 21:05:17 Look at LogCat for the exception trace. Dec 28 21:05:42 For some reason logical was blank, (prob frozen) so I'm gonna run it agian Dec 28 21:07:16 java.lang.ClassCastException: android.widget.LinearLayout cannot be cast to android.widget.TextView Dec 28 21:07:32 Your layout file contains a LinearLayout at the root. Dec 28 21:07:44 That it does Dec 28 21:07:46 Is this bad? Dec 28 21:07:57 The code requires that it contain a single TextView. Dec 28 21:08:06 Not a LinearLayout with a single TextView. Dec 28 21:08:17 So just a textView in the entire file? Dec 28 21:08:22 No linear layout around it? Dec 28 21:09:21 Doesn't it need a list view ? Dec 28 21:10:02 It's a row to be used in a ListView. Dec 28 21:10:19 So the textView has to go inside of the list view? Dec 28 21:10:32 x_x Dec 28 21:10:39 Your layout file should contain a single TextView element declaration. Dec 28 21:10:49 And thats it? Dec 28 21:11:10 eeyup Dec 28 21:11:27 then that getView makes as many rows as many items in list Dec 28 21:11:32 what about the listview Dec 28 21:11:47 the adapter is 'attrached' to listview Dec 28 21:12:18 Yes it is attached to a list view element that is inside of the XML layout file I am working with Dec 28 21:12:26 If I delete it, it wont be attached to anything Dec 28 21:15:30 am I making sense Dec 28 21:16:02 quick question hopefully... I'm wanting to use an ObjectAnimator to run an animation that last for 500ms, and 500ms later, call a method Dec 28 21:16:12 how would I do that? Dec 28 21:24:36 im getting an Error inflating a class fragment at this line This "world's worst programming language" talk is hilarious. Dec 28 21:34:06 Hi. I want to make a CheckBox look like a *standard* RadioButton. Where do I find the graphics used for RadioButtons in Android? And are the even available? I cannot seem to find them anywhere. Dec 28 21:35:03 I can find some graphics, but they aren't the right ones. Dec 28 21:36:53 Is there a way to have icon fill the ImageButton image if you set the drawable with either src or background property it seems to scale the image down a bit and center it in side. Dec 28 21:44:12 Is there a simple or regularly used way to tell the user that a notification was added to the tray? Dec 28 21:50:04 dauntless2425: users can see the tray icons from nearly, cant they? :) Dec 28 21:50:09 nearly everywhere* Dec 28 21:50:35 Yes. But just in case theyre not paying or theyre a new user. Dec 28 21:51:06 Paying attention* Dec 28 21:53:01 i wouldnt do something else Dec 28 21:53:06 you could play a sound though Dec 28 21:53:36 Ok thats a goos idea. Dec 28 21:53:44 Good* Dec 28 21:54:19 but if its not a mail for messaging app, this will annoy users (just to warn you) Dec 28 21:54:20 Thanks Dec 28 21:55:33 Its a one time thing. When the user activates the service. Dec 28 21:56:25 then its fine i think :) Dec 28 22:00:01 TacticalJoke you there? Dec 28 22:04:31 Yeah. Dec 28 22:05:16 Ok, so if I remove everything from my XML file and just leave the TextView Dec 28 22:05:43 Then where do I point my ListVIew to? Cause I'm currently pointing it to a ListView element inside the layout XML file Dec 28 22:06:07 What do you mean by "point my ListView". Dec 28 22:06:23 ListView theListView = (ListView) findViewById(R.id.list1); Dec 28 22:06:34 list1 is a ListView element in the XML file Dec 28 22:06:49 Then I do : theListView.setAdapter(adapter); Dec 28 22:08:07 Is that not working? Dec 28 22:08:59 It compiled but it crashed on the device and gave an error with the LinearLayout thing Dec 28 22:09:04 Remember it did that earlier? Dec 28 22:09:31 Could you post everything to http://pastebin.com/? Dec 28 22:09:52 Yea,one sec Dec 28 22:13:23 http://pastie.org/9802754 Dec 28 22:13:41 And the exception is Dec 28 22:13:42 if you guys do "fastboot devices", do you actually see the devices listed there? or is that only for when you're in fastboot mode? Dec 28 22:13:42 java.lang.ClassCastException: android.widget.LinearLayout cannot be cast to android.widget.TextView Dec 28 22:13:43 at dylanrose60.listview.SubBaseAdapter.getView(subBaseAdapter.java:35) Dec 28 22:14:23 drose379: The TextView for the adapter should be in a different layout file. Dec 28 22:14:53 That is weird, why? Dec 28 22:15:26 A ListView's children are virtualised and totally separate from an Activity's layout file. Dec 28 22:15:56 so I put the textview alone in an xml file Dec 28 22:16:00 Yes. Dec 28 22:16:11 No linear layout wrapper or anything Dec 28 22:16:45 Right. Dec 28 22:17:02 But how does the program know to use that textView in the other file Dec 28 22:17:04 I never refer to it Dec 28 22:17:19 You refer to it from the adapter class. Dec 28 22:17:33 Where? Dec 28 22:17:36 "inflater.inflate(HERE,parent,false)" Dec 28 22:18:00 still with the listview drose379 ? Dec 28 22:18:06 Yup Dec 28 22:18:15 TacticalJoke I thought I refer to the layout file there? Dec 28 22:18:30 So I never really refer to one layout file, only the list view and the textview element Dec 28 22:19:11 Can I get you guys opinion on this simple interface? http://imgur.com/WhRt1SF Dec 28 22:20:11 Its for a service app so all I really needed was an imagebutton and some text Dec 28 22:21:19 drose379: As I said earlier, LayoutInflater.inflate returns the root elements from a layout file. Dec 28 22:21:28 element* Dec 28 22:23:13 It doesn't like this : http://pastie.org/9802766 Dec 28 22:23:42 hi Dec 28 22:23:54 Wiat dont look at that pastie Dec 28 22:23:58 Because you have "xmlns:android" and "layout_width" and "layout_height". Dec 28 22:24:15 drose379: I feel like I'm having to tell you every tiny thing. Dec 28 22:25:32 yeah its been a rough day Dec 28 22:26:12 drose379: inside your adapter's getView() you do View vi = inflater.inflate(R.layout.item, null); and then TextView textView = vi.findViewById(R.id.item_textview); Dec 28 22:26:36 and item.xml would contain your layout for the row Dec 28 22:26:50 Well, no need to find the TextView yet because it's the only element in the layout. But if there were more elements then that would be needed, yeah. Dec 28 22:27:12 there will be more elements Dec 28 22:27:17 so he might as well start now Dec 28 22:27:26 For some reason I keep getting an unbound prefix error with my xml Dec 28 22:27:33 I know, but he's a complete beginner. :) Dec 28 22:27:35 One step at a time. Dec 28 22:27:59 In fact, I'm surprised that drose379 is doing this. It's not really a beginner topic. Dec 28 22:28:31 What in the hell is wrong with this? http://pastie.org/9802772 Dec 28 22:29:25 You need to declare the Android namespace. Dec 28 22:30:02 xmlns:android="http://schemas.android.com/apk/res/android" Dec 28 22:30:03 ? Dec 28 22:30:05 Yeah. Dec 28 22:30:46 What about the android:tools one Dec 28 22:30:55 No need. Dec 28 22:31:26 Ok, I think I have to put something special around that Dec 28 22:31:31 It threw off all my syntax Dec 28 22:31:46 You have to place it within the TextView declaration (at the top). Dec 28 22:32:22 Got it Dec 28 22:32:42 After I get this running, I'm gonna direct it bit by bit Dec 28 22:32:50 disect* Dec 28 22:33:32 Theres a lot of little stuff Dec 28 22:34:43 Darn she still crashes Dec 28 22:35:03 Same error Dec 28 22:35:16 It hates this line: TextView tx = (TextView) view; Dec 28 22:35:24 Your adapter code should use the single-TextView layout. Dec 28 22:35:28 Not the MainActivity layout. Dec 28 22:36:07 It does Dec 28 22:36:24 What does the "inflate" line look like? Dec 28 22:36:33 view = inflater.inflate(R.id.text1,parent,false); Dec 28 22:36:51 It could be because when I call this class from the main, I pass "this" as the context Dec 28 22:37:12 Can you post text1.xml. Dec 28 22:37:29 text1.xml isn't a file Dec 28 22:37:33 text1 is a id Dec 28 22:37:57 It should be "R.layout.insert_xml_file_name_here". Dec 28 22:38:11 What is the name of the XML file containing the single TextView? Dec 28 22:38:23 except the .xml extension Dec 28 22:38:29 text_layout Dec 28 22:38:37 R.layout.text_layout Dec 28 22:38:45 it bugs me a bit that the message api for android wear needs a node ID and the DataApi does not need a node-ID Dec 28 22:38:58 Running her Dec 28 22:39:14 Want play-by-play? Dec 28 22:39:27 I'd rather have a TL;DR. Dec 28 22:39:31 Compiles, installing to device now.. Dec 28 22:39:42 whats tl dr Dec 28 22:39:50 pop the champagne! Dec 28 22:39:51 Finally!! Dec 28 22:39:54 lol shmooz Dec 28 22:40:18 She runs boys Dec 28 22:40:29 drose379: Given how much effort went into that, you should probably release now. Dec 28 22:40:43 drose379: is she hot ? Dec 28 22:40:54 Release it now? Dec 28 22:40:59 Nah, she's still in beta :) Dec 28 22:40:59 On Google Play. Dec 28 22:41:23 hahaha, maybe someday Dec 28 22:41:36 shmooz she's very hot Dec 28 22:41:49 Ok, now time to disect this and learn what the hell is going on Dec 28 22:41:49 I saw in tech news that someone released an app called Virus Shield that does nothing, just shows gui like it's doing something, and it was a super popular app Dec 28 22:41:51 Then re-write it myself Dec 28 22:42:00 hahaha, I bet Dec 28 22:42:38 Thanks for the help today guys Dec 28 22:42:38 drose379: You need to use an IDE. Seriously. Dec 28 22:42:41 So much of that pain would've been avoided. Dec 28 22:42:45 guuuuuys. im getting this error -> android.view.InflateException: Binary XML file line #89: Error inflating class fragment on I will be using an IDE for now on Dec 28 22:43:04 from* Dec 28 22:43:34 I'm AFK for a bit. Dec 28 22:43:49 Talk later man Dec 28 22:44:25 shmooz .. Next: adding images to each list entry Dec 28 22:44:40 drose379: sounds like fun Dec 28 22:44:50 drose379: it's good that you learned without IDE first Dec 28 22:45:06 You think so? Dec 28 22:45:35 yes, especially if you're starting Dec 28 22:46:02 like I always say, better to know than not Dec 28 22:46:05 Ive heard that from a few people, why is that? Dec 28 22:46:11 Right Dec 28 22:46:24 so you have a better idea of what happens under the hood Dec 28 22:47:23 See when I got into programming I thought I _was_ doing things under the hood Dec 28 22:47:39 drose379: if you want to add images per row, you have to do like I said before and make an item.xml or row.xml representing each row layout Dec 28 22:47:40 Who knew the under the hood had a hood that had things happening under it Dec 28 22:47:58 and then inflate the item.xml in your adapter's getView() Dec 28 22:48:29 Yeah, later tonight Im gonna go through and take each line and write comments above it exhaling to myself what they do Dec 28 22:48:36 Just to make sure I get a good grip on it Dec 28 22:48:38 It's also good to be doing it, on the hood Dec 28 22:48:45 Then hopefully ill be ready to expand it Dec 28 22:49:07 on the hood? Dec 28 22:49:15 on top of the hood Dec 28 22:49:28 The programming hood or the hood under programming Dec 28 22:49:31 :) Dec 28 22:50:23 Is it possible for android malware to disguise as a "native linux process"? Dec 28 22:50:42 drose379: and you'd add an imageView to getView() like ... View vi = inflater.inflate(R.layout.item, null); and then TextView textView = (TextView) vi.findViewById(R.id.item_textview); ImageView imageView = (ImageView) vi.findViewById(R.id.item_image); Dec 28 22:51:29 shmooz are you pro? Dec 28 22:51:35 or hobby? Dec 28 22:51:36 I'm just saying, If you're digging in the hood, you might not end up making code that actually does something. Sometimes/very often, it's perfectly fine to read what it says on the tin and then just use the library, instead of trying to understand exactly how the library does it. Dec 28 22:52:09 havchr that true, I just gotta understand how to write the code in the future then Ill be content Dec 28 22:52:15 drose379: I'm hobby still Dec 28 22:52:22 I really needed to be walked through what I was doing today Dec 28 22:52:35 shmooz that cool, are you looking for a career in it? Dec 28 22:52:51 not really Dec 28 22:52:55 I just want to make my own apps Dec 28 22:53:02 hate working for bosses Dec 28 22:53:08 Freelancer? Dec 28 22:53:37 yeah Dec 28 22:54:17 Sweet Dec 28 22:54:25 What you working on now? Dec 28 22:54:42 video/audio player Dec 28 22:55:24 oh yeah, cool cool Dec 28 22:55:34 Do you use list views in it? Dec 28 22:55:45 yes I do Dec 28 22:55:53 And how'd you learn those Dec 28 22:56:29 drose379: I searched for examples, tried a few and settled for the LazyAdapter example Dec 28 22:57:16 So your using code you found online? Dec 28 22:57:37 so if there's undeterminate number of rows to scroll through, it only loads what it needs to dislay on the screen and what it needs to buffer Dec 28 22:57:52 listviews gets interesting/annoying when you need floating headers, or if the listview needs to push something like a videoplayer that lives outside of the listview. Dec 28 22:58:16 drose379: yes, but I modified it so much, it looks nothing like the original Dec 28 22:59:12 and scrolling to an item in a listview.. wow, there has been a lot of cursing with that. Dec 28 22:59:32 what you working on hatcher? Dec 28 22:59:35 havchr* Dec 28 22:59:38 havchr Dec 28 23:00:22 hello guys! there is a way to access, from activity, widgets loaded on a fragment? Dec 28 23:00:27 a lot of different apps for clients, but my main pet project is an alarm clock that I've been developing with a collegue Dec 28 23:00:53 Cool havchr Dec 28 23:00:57 Good luck Dec 28 23:01:02 abara: Do you mean access the activity that was loaded in a fragmnet? Dec 28 23:01:02 abara: if you have reference to fragment and can get access to its field Dec 28 23:01:08 errm Dec 28 23:01:10 sup ollien Dec 28 23:01:14 get access to the activity that loaded the fragment Dec 28 23:01:20 drose379: not much, just changed vps hosts Dec 28 23:01:21 Ashiren: if no problem at all? Dec 28 23:01:24 trying to get my other one from dying Dec 28 23:01:26 with* Dec 28 23:01:30 you? Dec 28 23:01:34 abara: eeyup Dec 28 23:02:18 Not much, Virtual private server? Dec 28 23:02:21 yeah Dec 28 23:02:26 I use one for IRC Dec 28 23:02:37 What do you mean? Dec 28 23:02:46 It's not a problem on freenode, but on other networks I can use it to hide my IP Dec 28 23:02:55 ohhh gotcha Dec 28 23:02:57 Ashiren: ok Dec 28 23:02:58 drose379: basically, my vps is always connected to IRC, and I connect to it Dec 28 23:03:04 basically it's just a middle man Dec 28 23:03:07 Yeah, thats cool Dec 28 23:03:08 and a good iea Dec 28 23:03:08 Ashiren: i will try it Dec 28 23:03:10 idea Dec 28 23:10:04 Im out for a bit giys Dec 28 23:10:06 guys Dec 28 23:10:07 Talk later Dec 28 23:10:11 Thanks for the help Dec 29 00:12:13 Hi, I have an idea for a Boxee app but wonder if there is an api to control the media extender? Or how can I for instance reach functions to play, pause etc.? Dec 29 00:12:25 mEck0: Boxee still exists? Dec 29 00:12:31 I thought Samsung bought them out Dec 29 00:12:51 ollien: No, they are not developing any more updates for the box, unfortunately Dec 29 00:13:39 mEck0: The only API I can find by googling is the app API, but if you want to get a bit hacky you could send custom IR signals to it with an external remote :D Dec 29 00:14:16 does it support keyboards? Because if it does you could prolly set something up to send play pause key signals via a keyboard, triggered by a socket Dec 29 00:14:21 But I have one and it works okay except that the original remote control started to be buggy a couple of months ago. Now there exists some remote control apps for Android which works better, but I thought of maybe develop one myself that works even better :P Dec 29 00:14:38 Ah Dec 29 00:15:19 I just don’t know how these apps work, how they have managed to control the box Dec 29 00:17:12 One that I’ve tried searched for a connected Boxee Box on the wlan, if at least one is found you connect to it. Then the app looks like a remote control and its possible to do pretty much the same things as with the original remote. If entering a textfield, an on-screen keyboard appear Dec 29 00:17:48 mEck0: No Idea. Can't find anything. If you can't find anything, you could packetsniff those apps :) Dec 29 00:18:13 ollien: packetsniff? Dec 29 00:18:35 mEck0: Packet Sniffing is something you can do to read traffic on a wifi network Dec 29 00:18:53 I could see that a packet went from point a to point b, and the data sent via it Dec 29 00:18:58 ah :) Dec 29 00:19:12 you could see all traffic going to the box from the phone, and see what comes up :) Dec 29 00:20:15 Interesting, I’ve done some packet sniffing in school a couple of years ago with a program called Wireshark Dec 29 00:22:53 Otherwise, first step in a project like that would be to create a function that searches for Boxee Box-devices on the current wlan. Dec 29 00:22:58 I'm having some problem with bluetooth and audio on lollipop. Namely, if I am connected to a bluetooth audio receiver, the alarm stream no longer gets played on the phone. If the bluetooth receiver is out of range, it also seems to try to route it to the bluetooth receiver and my phone behaves as if on mute. Dec 29 00:23:34 Anyone know a reason Dialog might not dismiss when you click outside it's border ? Dec 29 00:25:16 you've set it to be not cancellable Dec 29 00:43:34 so LocationClient is deprecated. That's no bueno. Dec 29 00:53:00 use LocationServices and a google api client. Dec 29 00:53:35 I was told to ask here for a twitter feed reader for wear Dec 29 00:54:27 williefff: To read a twitter feed? Dec 29 00:54:37 Yeah Dec 29 00:54:40 On wear Dec 29 00:54:59 I haven't used it, but apparently Talon has wear support Dec 29 00:55:15 Awesome. I'll check it out. Dec 29 00:55:32 Bunting is supposed to, but I can jigger it. Dec 29 00:56:12 williefff: Also, you could use Wearable Widgets and some twitter client with a feed widget, lol Dec 29 00:56:45 What's talon exactly Dec 29 00:57:59 I see all these themes Dec 29 01:10:55 i tried to make an imlicit intent for calling a number, but after running the code it started skype to make the phone call, i used the ACTION_CALL for the intent and CALL_PHONE for the permission Dec 29 01:48:08 regarding my last question whether I use the CALL_PHONE permission or not Android starts skype instead of normal caller Dec 29 01:52:37 Is it possible to have an app that's compatible wit API 8 to API 21 and have DrawerLayout will I need two main Activities basically one that runs checks api version and than switches to that one or ? Dec 29 01:52:58 Can FragmentActivity from the support lib support the DrawerLayout as well ? Dec 29 01:54:57 Hi everybody Dec 29 02:00:22 HI guys... turns out my previous problem was that TCP was pausing to collect a packet, and then sending in bulk. creating a sleep delay was a temporary solution that caused some minor problems. I've moved to UDP, and the problems completely cleared up. Now, an Android specific issue has arrisen. With the android multi-touch devices, in this case 4.4.2 (untested on others), the first press has ID[0], the 2nd press has ID[1], but Dec 29 02:00:32 becomes ID[0], which causes some pretty nasty problems. Dec 29 02:01:09 is there are specific flag I can check to keep the ID's matching which order which inputs are in? Dec 29 02:02:00 I would simply detect on ID[0] release, but if you press that finger down again, it reclaims the ID[0], which is pretty weird. Dec 29 02:02:44 By ID, i'm talking about MotionEvent.getActionIndex(); Dec 29 02:07:26 ahh, nevermind... turns out MotionEvent.getPointerId(MotionEvent.getActionIndex()) gives me the true ID Dec 29 02:25:34 Komak57 consider 0mq ? Dec 29 02:26:03 on android you can use https://github.com/zeromq/jeromq Dec 29 02:27:20 I told you about them 3rd party libs XD Dec 29 02:28:22 oh yeah, sorry nm Dec 29 02:28:33 well then go read stevens tcp book Dec 29 02:28:56 it's cool, i swapped to UDP and it's working flawlessly... for the most part Dec 29 02:30:29 it's just not sending my touch up/down messages, even if it's registering them. same code as the touch[0] move, just isn't sending. Dec 29 02:49:57 g00s: I've been considering trying to implement SCTP (with Happy Eyeballs-style fallback) Dec 29 02:50:53 i'm sure p_l will figure it out ;) Dec 29 02:51:38 there ARE ways to packet things over udp identically to tcp Dec 29 02:52:32 well yeah, but you'll have to do retransmission, packet reordering ... Dec 29 02:52:36 yourself :) Dec 29 02:53:49 have you thought of RAW sockets? Dec 29 02:55:51 sometimes i forget that udp isn't guaranteed to send packets :/ Dec 29 02:56:25 still isn't my problem right now. i forced a touch press command and it's crashing, ignoring all my try/catches everywhere Dec 29 02:59:19 oh there it is... Dec 29 02:59:35 duh, couldn't send a Toast inside a thread... Dec 29 02:59:47 wish my usb debugging worked properly Dec 29 02:59:50 would save considerable time **** ENDING LOGGING AT Mon Dec 29 02:59:58 2014