**** BEGIN LOGGING AT Sat Dec 27 02:59:59 2014 Dec 27 03:58:00 ron_frown heya Dec 27 03:58:49 What do you guys think is the best way to send events to Android device. Efficient + Scalable. Dec 27 03:59:55 yo Dec 27 04:00:04 yo Dec 27 04:00:05 ron_frown happy holidays man :) Dec 27 04:00:10 same to you Dec 27 04:00:12 how things going? Dec 27 04:00:19 merry xmas Dec 27 04:00:28 um, i find out in a week if i get some work :) Dec 27 04:00:40 new job? Dec 27 04:00:40 thebutton Dec 27 04:00:54 ron_frown yeah, new job. did you have problems with the preferences stuff corrupting ? Dec 27 04:02:31 cool Dec 27 04:02:34 dude Dec 27 04:02:37 like 5 times Dec 27 04:02:54 it was probably flaws in the rom Dec 27 04:02:58 but the services system should just be more robust Dec 27 04:03:21 its not like in windows where a service may fail on boot, and the whole machine doesnt just sit there and reboot and reboot and reboot and reboot Dec 27 04:03:58 have you looked at the preferences impl? its pretty cheesy Dec 27 04:04:01 hey all. I'm running my own bluetooth 'server' on a PC using java bluecove. I managed to discover it from android, but I'm unable to fetch the UUID of the device. when I run device.getUuids() I get null (device == BluetoothDevice). Any ideas why? any suggestions? Dec 27 04:04:38 yeah dude Dec 27 04:04:43 the way android does some shit Dec 27 04:04:45 boggles my mind Dec 27 04:05:03 dont ever blindly slap text into prefs Dec 27 04:05:14 we were encrypting shit and slapping it into a pref Dec 27 04:05:15 well Dec 27 04:05:21 at least in older versions Dec 27 04:05:25 system prefs get stored into xml Dec 27 04:05:30 and didnt encode text saved into them Dec 27 04:05:38 so you could save certain text encrypted there Dec 27 04:05:39 and Dec 27 04:05:40 bam Dec 27 04:05:48 cant decrypt anything related to that app Dec 27 04:05:55 i always thought SharedPreferences impl was such a piece of shit Dec 27 04:06:10 I just think about all the embedded applications I'd have for android Dec 27 04:06:13 that I just dont trust it for Dec 27 04:06:21 because shit like services framework etc is so fragile Dec 27 04:06:28 I wouldnt want it running critical systems Dec 27 04:06:35 or anywhere and actually expect it to be robust Dec 27 04:06:43 too many cases where a single app failure (in core stuff) Dec 27 04:06:48 ron_frown how many keys are you storing ? Dec 27 04:06:55 can take bionic out Dec 27 04:06:57 g00s a bunch Dec 27 04:07:27 ron_frown check out mvstore, it has encryption. its k/v - underlying engine of H2 http://www.h2database.com/html/mvstore.html Dec 27 04:07:41 wha? Dec 27 04:07:55 oh I dont care Dec 27 04:07:59 I still think I am gonna work more on my os Dec 27 04:08:03 well Dec 27 04:08:12 non android embedded linux gui shit Dec 27 04:08:24 Techdeck try http://developer.android.com/reference/android/bluetooth/BluetoothDevice.html#fetchUuidsWithSdp() Dec 27 04:10:42 ron_frown ronOs :) Dec 27 04:11:01 come on man, where is the first release? this is turning into fucking gnu herd Dec 27 04:11:12 haha Dec 27 04:11:19 you dont even know the shit I've been working on lately Dec 27 04:11:21 life has been nuts Dec 27 04:11:27 quit my day job to work at another company Dec 27 04:11:36 then my day job offered me something much better Dec 27 04:11:56 but now its kinda like meh... maybe I should have kept the other offer Dec 27 04:12:12 build embeddable db for my own purposes Dec 27 04:12:19 etc Dec 27 04:12:19 thanks g00s! Dec 27 04:12:22 matter of time Dec 27 04:12:27 that did it Dec 27 04:12:35 Techdeck ah nice, ;) Dec 27 04:12:36 biggest hurdle is the stupid gui drawing engine Dec 27 04:12:41 skia is capable Dec 27 04:12:54 but would be a massive moving target if I was trying to use that in my os Dec 27 04:15:09 ron_frown isn't skia being replaced by HWUI ? Dec 27 04:15:33 probably Dec 27 04:15:36 dont know exaclty Dec 27 04:16:04 yeah i think since HC Dec 27 04:16:09 too slow Dec 27 04:16:22 if I had to guess Dec 27 04:16:25 its still skia Dec 27 04:16:33 but underlying shit is hardware accelerated Dec 27 04:16:57 skia is not hw accel ? Dec 27 04:17:04 i mean, its not :) Dec 27 04:17:16 I know Dec 27 04:17:18 but what I am saying is Dec 27 04:17:24 oh well, you're porting this so i'm sure you know all about it Dec 27 04:17:41 well I havent had to mess too much with underlying shit in the gfx stuff to be honest Dec 27 04:17:45 but Dec 27 04:17:56 I know skia has had work done recently Dec 27 04:18:16 I'd guess they just made the "canvas" be provided by hwui vs skias own shit Dec 27 04:18:50 didn't realize there was a nice page here https://source.android.com/devices/graphics/architecture.html Dec 27 04:20:27 ron_frown do you still recommend those odroids for embedded android ? Dec 27 04:20:35 def Dec 27 04:20:40 I was looking at them today Dec 27 04:20:47 they have much better external device support etc Dec 27 04:21:05 lots of prebuilt modules Dec 27 04:21:08 g00s: I keep forgetting to read that. looks like it may have expanded since last I looked at it... Dec 27 04:21:12 like lvds monitors Dec 27 04:21:17 and preloaded emmc modules Dec 27 04:21:18 and shit Dec 27 04:21:38 g00s I amy be doing something up your alley as a startup actually =) Dec 27 04:21:46 hm, i would definitely like to get into HW again ... i think its the next 'big thing' if you have a product. Dec 27 04:21:54 sw is not enough ;) Dec 27 04:22:08 my startup is hardware but not like what I do on a daily basis Dec 27 04:22:47 embedded is kinda booming, yeah. though at the same time, flexible hardware is getting cheaper, you just need to program it. Dec 27 04:22:55 there are a few good books now on how a little guy can go from prototyping to medium-scale production. i just needed to learn the ropes Dec 27 04:23:17 groxx yeah, pretty exciting Dec 27 04:23:49 we did that Dec 27 04:23:55 prototyping to production Dec 27 04:24:01 costed us about 70k in engineering fees etc Dec 27 04:25:51 I have a editext with textchanged watcher, i have something else changing its value but i remove the watcher before changing it, then add it again after Dec 27 04:26:03 when i click into it, afterTextChanged gets called a few times Dec 27 04:31:25 lasserix: fwiw if it can be replaced with a filter, it's a lot easier. Dec 27 04:31:57 ? Dec 27 04:33:35 Good evening everyone Dec 27 04:34:00 I probably should've checked: since I assume you're lamenting something odd with textchanged watcher behavior, I personally have found textwatcher + changes to be a PITA Dec 27 04:34:29 sup dauntless Dec 27 04:34:41 Are there any android development podcast you guys can recommend? Dec 27 04:34:54 groxx yeah Dec 27 04:35:00 Hey arcanine Dec 27 04:35:35 i guess I should change it with a button that says update Dec 27 04:35:41 make life a lot easier Dec 27 04:38:19 is there an IntentService that doesn't end when done processing? Dec 27 04:38:47 I'd like the ability to use communicate with a service that keeps running with Intents rather than using broadcasts Dec 27 04:40:00 Tech plain old service class should do that Dec 27 04:41:08 can I keep communicating to it and from it using intents? Dec 27 04:41:51 oh I can, sorry for the stupid question then, I'll read a little bit more about it Dec 27 04:41:54 thanks dauntless2425 Dec 27 04:42:14 You're welcome. Dec 27 04:42:34 lasserix: what are you attempting to do? Dec 27 04:57:53 have a color picker and edit text, the edit text shows the html color code Dec 27 04:58:11 i want them to link Dec 27 04:58:27 such that changning the color picker updates the edit text and vica versa, but on text changed Dec 27 04:58:28 Does anyone know what the in-app billing "billing key" is? Dec 27 04:58:45 I am following https://github.com/poiuytrez/AndroidInAppBilling and stuck on the first step .-. Dec 27 04:58:56 may be too difficult to do with validation to boot Dec 27 04:59:38 anyoneeeee Dec 27 05:00:05 Hey guys. Theres an app called Timely. It has a really cool ui but I can't figure out how it was done with android. Anyone have any ideas? Dec 27 05:02:14 whats it do Dec 27 05:03:27 It's just a simple timer but the ui is out of this world Dec 27 05:05:58 it's an alarm clock - google bought the company/team that made it Dec 27 05:06:29 lasserix: aah. validation I might still suggest overriding LoginFilter.UsernameFilter (the source shows how to use it pretty well, it's simple), but you might be stuck with textwatchers over all. and I wish you luck :) I wish it were easier. Dec 27 05:06:32 dauntless2425: better to ask less vague questions... Dec 27 05:07:28 Leeds I'm wondering if this was made with a built in view or was it custom? Dec 27 05:07:44 what 'this' are you talking about? Dec 27 05:08:24 you know, whatchamacallit, that thing Dec 27 05:08:55 well, it was probably done using the doodah, the one from that blog post that time Dec 27 05:10:29 dauntless2425: be. more. specific. Dec 27 05:10:59 Ok. Let's start with the spinning wheel for the timer. Dec 27 05:11:47 I mean ive never seen anything like it so i don't even know what to categorize it as Dec 27 05:11:48 you assume we googled 'Timely' and found the screenshots and are looking at it Dec 27 05:12:19 I use timely every day... Dec 27 05:12:54 Ok never mind. Thanks guys. Android-Dev does it again! Yay! Dec 27 05:13:08 I remember they demoed it on All About Android Dec 27 05:13:58 dauntless2425: did you install your IDE ? Dec 27 05:14:15 I did Dec 27 05:14:46 did you write your hello world ? Dec 27 05:15:59 I am following https://github.com/poiuytrez/AndroidInAppBilling and stuck on the first step .-. Dec 27 05:16:04 help me anyone Dec 27 05:16:23 BILLING_KEY for in-app-billing equals? Dec 27 05:20:12 Agamemnus: You should get the key when you sign up for in-app billing, via the dev console. Dec 27 05:20:19 or at least, that's what I would assume Dec 27 05:21:00 dauntless2425: probably a custom view, though you can get a long way with just ImageView with a scale type of matrix. Matrix.postRotate is your friend. Dec 27 05:21:32 Thanks. Ill look into that. Dec 27 05:21:55 * groxx checks app Dec 27 05:22:09 probably a custom view :) Dec 27 05:22:43 canvas.drawX plus some basic geometry math is probably all that's necessary Dec 27 05:23:50 Hey guys, is the best way to call a method on a button click to use the android:onClick ? Dec 27 05:24:09 Or is that considered an older way? Dec 27 05:24:17 drose379: or find it in code, and .setOnClickListener. Dec 27 05:24:43 Is that a better way? Dec 27 05:25:06 personally I prefer code. a little better error detection when you start using multiple layouts. but they both work. Dec 27 05:26:09 What if I wanted to call a method from a dif class besides MainActivity Dec 27 05:26:22 onClick new ClassName.methodName() Dec 27 05:26:51 I'm not aware of any easy way. Dec 27 05:27:15 Really? You cant use another class besides the main? Dec 27 05:27:16 I haven't read the source, but I'd guess it only works on activities or fragments Dec 27 05:27:37 Oh alright Dec 27 05:27:37 oh, it'll bind to whatever activity inflates the layout Dec 27 05:27:46 What do you mean? Dec 27 05:28:32 Oh, like in the MainActivity onCreate method it calls the main_activity layout Dec 27 05:28:42 if OtherActivity calls setContentView(R.layout.that), it'll call OtherActivity.onClick(View) Dec 27 05:28:49 Makes sense Dec 27 05:28:50 y yeah ah Dec 27 05:28:54 One more thing if you dont mind? Dec 27 05:29:00 woah, funky autocorrect Dec 27 05:29:04 sure Dec 27 05:29:26 So i call a method on my button click, really simple stuff. Dec 27 05:29:38 But, why do I have to pass a view object into the methpod Dec 27 05:29:40 method* Dec 27 05:29:57 because it looks for a method with that signature :) Dec 27 05:30:13 What do you mean? Dec 27 05:30:21 Is activity_main passing the view object? Dec 27 05:30:28 if you have multiple onClick things, it's the only way to tell them apart Dec 27 05:30:31 drose379: that's to allow you to use the same method with different views Dec 27 05:30:45 What does the view class do? Dec 27 05:30:53 (Sorry, I'm new) :) Dec 27 05:31:03 http://developer.android.com/reference/android/view/View.html :) Dec 27 05:31:14 Read the class overview :) Dec 27 05:31:56 On it, thanks Dec 27 05:31:58 it's probably handled by the LayoutInflator. if I had to guess, it uses reflection to find the method on the activity you pass in. Dec 27 05:32:15 LayoutInflator? Dec 27 05:32:37 drose379: that's the thing that takes your xml specification and makes the actual Views from it Dec 27 05:32:50 the xml layout specification* Dec 27 05:32:59 Ok Dec 27 05:32:59 setContentView almost definitely uses it under the hood. it turns XML into views Dec 27 05:33:23 Right, I was following a tutorial and the guy made a method with (View view) in the constructor Dec 27 05:33:37 But never used it inside the method, so I guess I dont really need it, do I? Dec 27 05:34:28 yes, it has to have a View parameter Dec 27 05:34:50 because the LayoutInflater or whatever is looking for a method with a specific signature Dec 27 05:34:56 So the view is basically coming from the XML file that is set to view in the class? Dec 27 05:35:10 if your method doesn't match the signature it's expecting (i.e. with a single View parameter), it won't be able to find it Dec 27 05:35:48 (sorry, I'm walking and on phone. will be a little slow) Dec 27 05:35:50 what do you mean by find 'it"? Dec 27 05:36:02 the method Dec 27 05:36:03 No prob groxx , thanks for the help earlier Dec 27 05:36:11 The signature? Dec 27 05:36:38 it uses reflection to find the method with the name you specify Dec 27 05:36:58 And I specify the name inside the View Dec 27 05:37:08 and it searches for a method with that name, and with a specific signature (parameter types + return type) Dec 27 05:37:31 e.g. http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html#getMethod(java.lang.String,%20java.lang.Class...) Dec 27 05:37:46 So if I dont pass the method a (View view), it wont be found by the XML Dec 27 05:37:54 Is that what you mean? Or am I confused Dec 27 05:38:14 Yes. say you do onClick="myOnClickHandler" in the xml Dec 27 05:38:26 and then you have public void myOnClickHandler() { } Dec 27 05:38:50 an error will be thrown at some point, because it won't be able to find myOnClickHandler, because it doesn't have a View parameter Dec 27 05:39:34 So letting the method accept a view object allows it to be seen by the file Dec 27 05:39:35 and called Dec 27 05:39:59 more or less. although that's not quite the wording I would use :) Dec 27 05:40:11 Hey, its a start :) Dec 27 05:40:12 it's not that it lets it be seen, it's that it matches what is being searched for Dec 27 05:40:32 So what is inside the View class? Dec 27 05:40:38 Or object? Dec 27 05:40:42 Just the XML stuff Dec 27 05:40:50 Or, if you want to keep it simple, you have to because http://developer.android.com/reference/android/view/View.html#attr_android:onClick <-- that tells you to :) Dec 27 05:41:01 "This name must correspond to a public method that takes exactly one parameter of type View. " Dec 27 05:42:51 Ok, thanks a lot for the help Dec 27 05:43:22 For someone just starting out with android, and fairly new to java in general, any recommendations to learn before other things? Dec 27 05:45:08 no idea.. I usually just jump in head first :) Dec 27 05:45:49 Oh yeah? Dec 27 05:45:55 drose379 probably first thing to do, is sign up for anger management classes Dec 27 05:46:03 haha, you serious? Dec 27 05:46:18 android have a lot of issues? Dec 27 05:47:26 IM BACK \ ( ^_^ ) / Dec 27 05:47:42 So how is everyone doing today (D ^_^)D Dec 27 05:47:51 g00s, Dec 27 05:48:44 Anyone here got any cool apps on the market I can try out? Dec 27 05:49:22 sure Dec 27 05:49:34 https://play.google.com/store/apps/details?id=com.flyingsoft.safari.jigsaw.free Dec 27 05:50:00 but it's hybrid Dec 27 05:50:08 crosswalk/cordova Dec 27 05:50:22 Agamemnus: are you aware that your screenshots are mostly photos of animals? Dec 27 05:50:25 that way i keep the java to a relative minimum Dec 27 05:50:33 Leeds: yes. Dec 27 05:50:51 I found that to be the most effective. Dec 27 05:51:04 cats = installs Dec 27 05:51:06 duh. Dec 27 05:51:10 pictures of cats* Dec 27 05:51:18 So I have a color picker above an edit tex, the edittext shows the html color code value but is normally disabled. What's the best way to allow the user to enter the color code manually/ enable the edit text? Dec 27 05:51:19 Agamemnon keep java to a minimum? Dec 27 05:51:22 i do need more cats Dec 27 05:51:22 a button to the left? Dec 27 05:51:35 right, i only use it for device functions... Dec 27 05:51:58 Isn't that what the whole game is built off of? Dec 27 05:52:01 Or is it in XML? Dec 27 05:52:35 Downloading now... Dec 27 05:52:41 It is built off of Javascript mostly Dec 27 05:52:52 You can build android off of javascript? Dec 27 05:53:03 drose379: not that well Dec 27 05:53:24 hmm Dec 27 05:53:53 Game seems pretty cool to me Agamemnus Dec 27 05:53:59 Nice job Dec 27 05:54:25 thanks :d Dec 27 05:54:35 Do you see the "P" or "A" on the right? Dec 27 05:54:47 I did, Im working on the baby lion puzzle now Dec 27 05:55:12 did you try pressing it after you're done.. Dec 27 05:55:28 I will, yeah. How long you been doing Android dev? Dec 27 05:55:59 assuming you can call me one Dec 27 05:56:08 I started working with Java in September Dec 27 05:56:26 3 months and you already got this app going? Not bad! Dec 27 05:56:36 well like I said it's mostly Javascript Dec 27 05:56:42 But I had to do a lot of fiddling Dec 27 05:56:46 with the java stuff Dec 27 05:57:00 Do you do this for a hobby? Dec 27 05:57:04 Or for a living? Dec 27 05:57:15 kind of both Dec 27 05:57:20 i am a freelancer Dec 27 05:57:27 Whats your main language? Dec 27 05:58:14 Im guesing javascript? Dec 27 05:59:37 yes Dec 27 06:00:02 Cool, so you mostly do web dev? Dec 27 06:00:19 yes Dec 27 06:00:38 You enjoy it? Dec 27 06:00:53 sometimes Dec 27 06:00:58 Downsides? Dec 27 06:01:05 drose379: probably the most important and most problematic area is the Activity document. read it carefully, the lifecycle and configuration changes and task stack and lots of other important stuff is all introduced. Dec 27 06:01:15 when the client doesn't go "just one more thing... but oh, our budget for extras is 0" Dec 27 06:01:37 drose379 don't panic when android studio creates like 30 files for you just to say hello world Dec 27 06:01:55 oh, i don't use any IDE Dec 27 06:01:56 and the best language to use of course, if the best for profanity Dec 27 06:02:01 That made things harder Dec 27 06:02:04 probably french ;) Dec 27 06:02:07 groxx by the activity doc do you mean MainActivity.java Dec 27 06:02:13 The Android docs don't have imports lists for their examples Dec 27 06:02:17 which is pretty bad. Dec 27 06:02:30 Agamemnus imports lists O.o ? Dec 27 06:02:39 the things to import Dec 27 06:02:40 are you using vi or something ? Dec 27 06:02:42 import x.y.z Dec 27 06:02:45 Notepad++ Dec 27 06:02:51 lol wut Dec 27 06:02:56 drose379: I mean http://developer.android.com/reference/android/app/Activity.html Dec 27 06:02:58 almost none of the examples have that. Dec 27 06:03:08 do you guys use android studio? Dec 27 06:03:20 recently switched, yeah Dec 27 06:03:28 drose379 everybody except Leeds and Agamemnus Dec 27 06:03:41 and finally managed to get my work app migrated too Dec 27 06:03:42 Wait, so an activity is basically any class Dec 27 06:03:56 that does something for the user? Dec 27 06:04:09 Activity is a concept and a specific class (which you subclass) Dec 27 06:04:53 you probably have MainActivity extends Activity (or ActionBarActivity or something) Dec 27 06:05:04 Yeah, what the hell is ActionBaractivity? Dec 27 06:05:44 you discovered the mess right away Dec 27 06:05:52 it's an Activity that has an ActionBar, the common header-toolbar-thing in apps. Dec 27 06:05:52 ?? Dec 27 06:06:33 So if I made a new class that has a XML layout and interacts with user clicks and things, that would be an activity? Dec 27 06:06:35 its a compatibility shim so your code can treat pre-lolii and lolli about the same in that regards Dec 27 06:07:09 ---^ Dec 27 06:07:44 drose379: it's a little more complex than that :) activities can have fragments (kinda sub-activities) which also typically have their own view xml Dec 27 06:08:04 Ok, got it Dec 27 06:08:14 read the Activity doc, and fragments. Activity is pretty fundamental. Dec 27 06:08:24 so does every class have an onCreate method that runs when the class is called? Like a constructor? Dec 27 06:08:29 Or is that just for the main? Dec 27 06:08:37 fragments too, though they complicate things more than necessary for starting. Dec 27 06:08:45 drose379: you really need to spend some time on the tutorial stuff Dec 27 06:09:28 Yeah I know, these are just questions that are popping into my head before logging off Dec 27 06:09:39 every activity has that. and, in general, other "life cycle" parts of Android, because you don't directly instantiate them, the OS does. Dec 27 06:09:49 but other classes generally will not Dec 27 06:10:13 so class ! always .equal(activity) Dec 27 06:10:17 lol get it :) Dec 27 06:10:27 heh, yep :) Dec 27 06:10:52 One more question.... Whats the difference from a class and an activity? Dec 27 06:11:22 class is a language construct, Activity is a specific class. Dec 27 06:11:46 I thought a class is a specific class Dec 27 06:11:46 you know object oriented programming (at least a little?) Dec 27 06:11:53 Yes, I do Dec 27 06:12:13 class is the type of object. activity is a class. Dec 27 06:12:48 See coming from PHP, this stuff is a little different Dec 27 06:13:12 since PHP isn't an object-oriented language, that's understandable Dec 27 06:13:24 I was under the impression that _all_ objects are classes Dec 27 06:13:27 Morning.. Dec 27 06:13:35 yeah. I'd definitely suggest learning java in decent detail, it's kinda important :) Dec 27 06:14:05 Right, yeah Dec 27 06:14:26 Thanks for the help guys Dec 27 06:14:32 anyone use wizardpager here before? Dec 27 06:14:43 niruk wizardpager Dec 27 06:14:45 good luck :) Dec 27 06:15:01 Thank you Dec 27 06:16:48 also: generics are useful, but you don't need much to do most coding. don't worry about , stick to e.g. List for starters Dec 27 06:17:04 alas Dec 27 06:17:19 anyone use nurik wizardpager here before? Dec 27 06:17:50 dude, nobody warned drose about asynctask - how could you guys do that ! Dec 27 06:18:34 hackable: nope. personally, I'm inches from ripping ViewPager down to it's barest behavior, I've had endless pain from pagers in general Dec 27 06:19:22 g00s: can't reveal all your wizardry in the beginning :) otherwise they think you're mortal. Dec 27 06:21:17 heh Dec 27 06:21:55 groxx: yeap, actually i've been working on it for the past view days to create a student form. is there anyway i can load data from sqlite into the wizard and what the student select in the first pager will determine what student see in the next page?? Dec 27 06:27:19 hackable: there are a lot of moving parts there. you might be able to .setCurrentItem to the index they selected, assuming you fill the pager with all the data. off-hand I forget what's available, and I'm not able to check my code at the moment, but I think that worked. Dec 27 06:33:08 groxx: okay Dec 27 06:38:02 any way I can do this better, and make sure that the entries go into the ArrayList (times) in order? Dec 27 06:38:05 https://gist.github.com/anonymous/e22517c968ff7710688b Dec 27 06:39:51 shit Dec 27 06:39:58 aaaarghhhhh... Dec 27 06:40:05 just burned through $25 Dec 27 06:41:21 drinfernoo: probably: don't use HashSet (there's no defined order), and for simplicity probably put it in a json array as a string. Dec 27 06:48:19 groxx, is there a Set that keeps things in the order they're added? Dec 27 06:48:32 the docs say "in their natural order" Dec 27 06:49:17 drinfernoo: LinkedHashSet, though it won't be loaded as one from the preferences (or it isn't guaranteed) Dec 27 06:50:06 shared preferences are not a generic serialized data system, just a simple one. Dec 27 06:50:52 I just don't know anything about json lol Dec 27 06:52:29 if there are no commas in the data, just store it as list.join(",") and load it as .split(",") Dec 27 06:53:26 is that anything different than a simple string? Dec 27 06:54:30 nope, just a simple string. Dec 27 06:55:20 String.join()? Dec 27 06:56:32 array.join. or more likely use TextUtils, because java has some weird defaults (primarily in string.split) Dec 27 06:58:04 or maybe it's Arrays.join? I forget :| Dec 27 06:58:16 java arrays suck Dec 27 07:04:19 I figured out something that's working Dec 27 07:05:34 I think you've been the most helpful groxx lol Dec 27 07:15:18 groxx Dec 27 07:15:21 are you Groxx? Dec 27 07:15:25 Or is that someone else Dec 27 07:24:56 Does anyone have a guick comprehensive tutorial to implementing the methods of a customview group? Dec 27 07:40:09 lasserix chilly in phx tonight :) Dec 27 07:41:04 heh yeah Dec 27 07:41:18 is using focus changed a good place to control animations? Dec 27 07:43:45 g00s i think confirm / cancel input views should be lower on the screen, in reach of the thumb on phones/n7 if the action bar is purposely used only for secondary actions (clear, reset, dismiss) Dec 27 07:45:14 lasserix hm, yeah Dec 27 07:55:52 lasserix: iirc focus is also used for d-pads when "scrolling" through focusable elements. probably not quite what you want (though it may work). that said, I definitely lack the gestalt of the input system, so take my recommendations with a grain of salt or ten. Dec 27 07:57:09 Agamemnus: yep, groxx == Groxx. I think irc is not case sensitive? I generally prefer all lowercase anyway, easier to type, and "i" doesn't look like "L" Dec 27 07:57:51 groxx: couldn't you set the focus when it is appropiate to to fast forward "okay" for the user? Dec 27 07:58:05 not sure I follow Dec 27 07:58:31 like "next" from the keyboard? if so: yeah, absolutely Dec 27 07:58:55 for the dpad to scroll through? Dec 27 08:03:03 sorry, still confused :| Dec 27 08:05:58 Hi Dec 27 08:06:26 I have a listview which gets populated as the style I describe in the adapter class Dec 27 08:22:08 niru: congratulations Dec 27 08:23:29 yeah that was a cool story Dec 27 08:24:47 argh now I feel I have to rewrite my whole app from scratch and I'm too lazy Dec 27 08:25:00 shmooz: no :) I started to type something and stopped Dec 27 08:25:17 shmooz what happened ? Dec 27 08:25:37 it's all sphagetti code, I stuck everything in MainActivity Dec 27 08:26:53 my MainActivity has become almost 4000 lines Dec 27 08:27:02 holy shit ).o Dec 27 08:27:29 most of my activities are empty :) Dec 27 08:31:17 niru: are you extending BaseAdapter for your ListView ? Dec 27 08:31:39 shmooz: I have this Dec 27 08:31:40 http://pastebin.com/GEYDgvf8 Dec 27 08:31:52 shmooz you are obviously much smarter than I, because if I had that much in one file i'd be very lost :) Dec 27 08:32:12 And the problem is I want to have cat_desc under the cat_label Dec 27 08:32:19 A new line Dec 27 08:32:41 g00s: well you can find the matching braces and use Ctrl + F a lot to go back and forth Dec 27 08:32:54 desctextview.setText("\n "+cat_desc[position]); is working but its at some distance from the label Dec 27 08:33:23 I also use Ctrl + Z and then Ctrl + Y to get back where I was Dec 27 08:38:15 niru: \n is confined within the textview Dec 27 08:38:58 oh Dec 27 08:39:22 shmooz: this is my partial layout file Dec 27 08:39:24 http://pastebin.com/6zGY3XC2 Dec 27 08:39:27 not sure what you are trying to accomplish, but I think you would adjust that in your Item.xml representing the row layout Dec 27 08:40:18 niru: wrap those with a vertical LinearLayout Dec 27 08:40:32 if you want them to be one on top of another Dec 27 08:40:48 I wanted this ID Label Dec 27 08:40:57 and under that a small Desc Dec 27 08:41:13 so three items per row Dec 27 08:41:27 on top of each other ? Dec 27 08:41:27 or beside ? Dec 27 08:41:33 right now three items are coming like this ID Label Desc Dec 27 08:41:57 two beside and one under Dec 27 08:42:49 shmooz: so I can have another linearlayout for the desc which should be vertical Dec 27 08:43:23 niru: yeah you can nest two LinearLayouts or use another layout like RelativeLayout Dec 27 08:53:27 guys. I am inflating small view dynamically and adding it to linear layout. Orientation of that linear layout is horizontal. How I want is the view should be added to next line automatically when it exceeds screen width Dec 27 08:53:35 any suggesstions on this. Dec 27 08:54:04 it keeps on adding horizonally and does not go to next line Dec 27 08:54:10 how do I achieve this? Dec 27 08:55:43 neo3: change the orientation of the LinearLayout to vertical Dec 27 08:56:06 doing vertical would add the views vertically Dec 27 08:56:27 it should add horizontally Dec 27 08:56:36 but when it reached max screen size Dec 27 08:56:39 which is the same as going to the next line Dec 27 08:56:42 it should start fro mnew line Dec 27 08:56:54 oh Dec 27 08:57:03 well you have to do some math Dec 27 08:57:42 measure the screenwidth and the dynamic view width and see how many fits Dec 27 08:58:45 ohh Dec 27 09:04:02 neo3: look at this http://stackoverflow.com/questions/549451/line-breaking-widget-layout-for-android Dec 27 09:05:11 okay Dec 27 09:08:50 I need a little guidance. Dec 27 09:09:30 I have a Bootup Receiver that will loop through the database and add setted locations to geofence, but needs to check that locationClient is connected. Dec 27 09:09:35 I'll guide you , but first you have to buy a squirrel Dec 27 09:09:49 What's the best way of looping through it until locationClient is connected? Dec 27 09:09:55 shmooz: I love squirrels. Dec 27 09:10:07 detachYo: grilled or fried? Dec 27 09:10:26 Grilled, add garlic sauce please. Dec 27 09:10:58 squirrels are just rats with tails Dec 27 09:11:09 furry ones Dec 27 09:11:17 humans are just rats with brains Dec 27 09:11:46 * g00s looks over Leeds ' wiskers Dec 27 09:12:10 reaching out for help here: can anyone help me with renaming a member:method signature in a compiled lib.so ? Dec 27 09:12:22 yeah, I need a shave... keep trying to explain to the gf that it's winter and I want to keep my face warm, but she's not buying it Dec 27 09:12:34 gf? what is that Dec 27 09:12:36 yeaah, she's smart Dec 27 09:12:49 i never heard of that package Dec 27 09:13:25 I forgot how I should paste snippet here... Dec 27 09:13:41 detachYo you likes perl right ? Dec 27 09:13:46 @shmooz : that worked like a charm Dec 27 09:13:49 Thanks man :) Dec 27 09:13:59 g00s: love it. Dec 27 09:14:15 neo3: wow! you pulled it off ? Dec 27 09:14:18 congrats Dec 27 09:15:13 that looked like a lot of code to type just to do that Dec 27 09:16:11 g00s: why? :P Dec 27 09:16:17 you have a question? XD Dec 27 09:17:08 is there some "background" handler in android? Dec 27 09:17:11 detachYo just wanted to make sure my memory was working :D Dec 27 09:17:19 mostly i want to use it to delay some actions, in background, not ui Dec 27 09:17:23 g00s: :thumbs_up: hehe Dec 27 09:17:27 does anybody here have a Project Tango tablet? Dec 27 09:17:34 and this is most convenient way, but i cant create new handler in background Dec 27 09:17:34 :D Dec 27 09:17:55 Ashiren: i am kinda looking for the same thing Dec 27 09:18:15 Ashiren what do you mean background handler ? Dec 27 09:18:27 like UI thread, or not UI thread ? Dec 27 09:18:34 not UI Thread Dec 27 09:18:42 Ashiren: Look at the LooperThread class Dec 27 09:18:51 a Handler has to be associated with a thread that's running a Looper Dec 27 09:19:00 like some object, which has own 'handler' which changes i.e. one variable after 5 seconds Dec 27 09:19:34 you can spin up your own Looper thread, and the easiest way to do that is via the LooperThread class. Dec 27 09:19:39 Err, sorry. HandlerThread Dec 27 09:19:48 ok ill look into that Dec 27 09:19:50 thx Dec 27 09:20:16 JesusFreke: thx man :P Dec 27 09:20:34 detachYo: your welcome! I have no idea what for, but I'm glad I could help. Or something :p Dec 27 09:21:10 Well, I need something similar, but different. Dec 27 09:21:29 I am trying to sleep the process for a second, in a loop, until locationclient is connected. Dec 27 09:21:43 So I don't know if this is the most suitable. Dec 27 09:23:15 I found this on GitHub, which I am thinking of trying. https://github.com/NAWEB-USP/SmartAudioCityGuideAndroid/blob/40a4549f3ac68bb5b358b9f25b0ae069c775fde4/src/naweb/wonders/smartaudiocityguide/threads/LocationThread.java Dec 27 09:24:09 I am not sure how the loop stops there, since it says `while (true)` Dec 27 09:25:04 detachYo: yeah... that class doesn't make much sense Dec 27 09:31:21 JesusFreke: My hunch was right. :D Dec 27 09:34:19 Hi Dec 27 09:34:52 What is the purpose of "<<" in gradle task? Dec 27 09:37:20 MalekAlrwily: supposed to be <^.^> :P Dec 27 09:37:29 Its a sacrificial symbol to the devil. Gradle is a satan worshipper. Dec 27 09:38:11 MalekAlrwily: "The << operator is simply an alias for doLast" Dec 27 09:38:20 "The calls doFirst and doLast can be executed multiple times. They add an action to the beginning or the end of the task's actions list." Dec 27 09:38:31 from: https://www.gradle.org/docs/current/userguide/userguide_single.html :) Dec 27 09:39:05 originally in programming that would be the bitwise shift left operator ;) Dec 27 09:39:41 I would imagine it depends on how "originally" you want to get :) Dec 27 09:39:55 ok well C Dec 27 09:40:26 Well, anyway, I rooted the Project Tango tablet tonight. I'm wrapping it up as a nice one-click app and uploading it to the app store after I get something to eat. Any questions, fire away. Dec 27 09:40:53 chuckk: you meant #android-root perhaps? :) Dec 27 09:41:19 chuckk: also, if you mean uploading it to the play store, rooting apps aren't allowed on the play store. Dec 27 09:42:44 Btw, I released my first app to play store :P Dec 27 09:43:21 chuckk: did you make an app for Tango ? Dec 27 09:43:45 Yeah, I have quite a few. Dec 27 09:44:11 does the device have to be rooted to have them work ? Dec 27 09:44:24 A number of them I needed to get rooted to work on, and I figured other people would benefit from it Dec 27 09:45:00 chuckk: what apps did you make ? Dec 27 09:46:58 Well, logging and development in general is just easier with root anyway but my main thing is I need Ad-hoc Wi-Fi so I always have to build a custom ROM for my devices. I don't have the sources for the Tango so I had to dump them and decompile. Dec 27 09:51:34 JesusFreke: Thanks for helpful info Dec 27 10:05:28 I got a fragment with a viewpager . All inside DrawerLayout. Load the this fragment take time and there is lag on the screen (the drawer stay open for 0.5 seconds and it looks ugly). is there a way to excute code once it finish load? Dec 27 10:09:09 It seems that it is impossible to add << operator with task type, like: task myTask (type: JavaExec) << { ..... } Dec 27 10:15:27 I got a fragment with a viewpager . All inside DrawerLayout. Load the this fragment take time and there is lag on the screen (the drawer stay open for 0.5 seconds and it looks ugly). is there a way to excute code once it finish load? Dec 27 10:43:25 I got a fragment with a viewpager . All inside DrawerLayout. Load the this fragment take time and there is lag on the screen (the drawer stay open for 0.5 seconds and it looks ugly). is there a way to excute code once it finish load? Dec 27 10:59:10 I got a fragment with a viewpager . All inside DrawerLayout. Load the this fragment take time and there is lag on the screen (the drawer stay open for 0.5 seconds and it looks ugly). is there a way to excute code once it finish load? Dec 27 11:00:39 stop asking the same question Dec 27 11:23:10 Hi! How common is it to use GPLv2 for open source android apps? And which license is preffered and why? Dec 27 11:24:56 I have another issue with following the tutorial, using Android Studio. Dec 27 11:25:24 http://developer.android.com/training/basics/firstapp/starting-activity.html Dec 27 11:25:45 astroduck: I'm a fan of BSD myself. short and to the point :) Dec 27 11:25:55 hi there! can anyone recommend a really good open source app to learn from by reading the source? Dec 27 11:26:10 i'd like to see how other android devs structure larger projects Dec 27 11:26:43 well, I could point you to mine, but I wouldn't call it a paragon of android app development :p Dec 27 11:27:05 you might look through the system apps in AOSP Dec 27 11:27:11 hehe sure point me to it! Dec 27 11:27:43 oh i read that those are kind of tricky to compile Dec 27 11:27:54 Yeah, probably not exactly what you're looking for Dec 27 11:27:57 because they were meant to be built with the os Dec 27 11:28:01 yea Dec 27 11:28:18 #4 says, "At the top of the (MyActivity.java)file, import the EditText class" Dec 27 11:28:24 i'd like to see yours though! Dec 27 11:28:27 https://github.com/JesusFreke/Penroser - it's mostly just a little "toy" app Dec 27 11:28:35 cool thank you :) Dec 27 11:28:51 the EditText class is non-existing, though... Dec 27 11:28:54 it's fairly old - gingerbread/ICS-era Dec 27 11:28:55 what do you think about using intentservice with eventbus instead of intent/broadcast? Dec 27 11:34:09 erdos: also, you might look at f-droid.org Dec 27 11:34:18 ok thanks! Dec 27 11:34:29 it's basically an app "store" for open source apps Dec 27 11:34:52 oh nice this is perfect Dec 27 11:35:06 I think even my app is on there, although I didn't do anything to put it there. heh Dec 27 11:35:08 i can find functionality that i'm looking for on here before i start digging through code :) Dec 27 11:53:20 Hi guys! Um does anyone here want to let me join their android project? :( I'm beginner-intermediate. I just want to learn something while working on it. Thank you!! Dec 27 12:04:10 Hi, i want to add an "import csv" feature in my app, but i'd like to avoid adding READ_EXTERNAL_STORAGE permission if possible. How would you recommend to do that (if possible)? Dec 27 12:17:35 JesusFreke: Oh cool! I thought that most people use Apache Licenses Dec 27 12:22:04 Morg0th: READ_EXTERNAL_STORAGE is enforced since API 19, below that you don't need this premission. Dec 27 12:25:49 astroduck: hmm ok, but 43% of my users are using API 19 so i need to take that into account... i thought maybe something like opening the file from a file browser would suggest to open it with my app, but it would be nice to be able to do it from within my app Dec 27 12:34:26 Morg0th: I don't think you can do this without the permission specified in Manifest, but its a very normal permission, nothing too scary! :P Dec 27 12:35:18 Morg0th: But I am curious how you came to the number 43! Dec 27 12:37:28 astroduck: yes it's a "classic" permission, it's just that if i add it, my users will have to manually accept the update b/c of permission changes, and some of them would maybe not bother to do that and keep an older version Dec 27 12:37:57 yes i don't know why so many have android 4.4. maybe because my app is quite recent (got released on August 2014) Dec 27 12:38:11 min api is 8 so i don't know... Dec 27 12:38:59 unless you were asking how i saw it is 43%, in that case it's just in the developer console, "Statistics" page Dec 27 13:06:18 I'm trying to share a surface for rendering camera preview and some custom drawings (I'm not taking pictures in between) Dec 27 13:06:32 I setPreviewSurface(null) to start drawing custom stuff Dec 27 13:06:51 Once I'm done, I want to set it to the original surface again - but it seems to not work Dec 27 13:06:54 What might be the issue? Dec 27 13:18:57 anyone here using android studio on windows? I've font aliasing issue, my eyes are being destroyed Dec 27 13:48:39 mmm Dec 27 15:15:32 Where is the recommended place to go for starters when making android apps? I've downloaded android studio, and it looks all confusing to me. Are there video tutorials? Text tutorials? Dec 27 15:25:51 ..sure, there are :s Dec 27 15:29:16 Also in my android studio project, in preview the top bar's not showing Dec 27 15:29:25 But it shows when I run it as an app on my phone. Dec 27 15:31:25 i think it wont show if youre previewing the fragment only Dec 27 15:31:44 CorgiSnowman: It's based on what preview you have set. Dec 27 15:36:06 CorgiSnowman: This button here allows you to change it. https://unsee.cc/dutosabi/ Dec 27 15:36:58 There's literally hundreds of themes to choose. Dec 27 15:39:04 Usually it's best to go with your apps theme as that is the one you will see when it is launched. Dec 27 15:39:24 It's already set to AppTheme Dec 27 15:39:50 Ahh ok... strange that the action bar isn't appearing then. Dec 27 16:48:22 is there any api available for dialing or we're confined to using Intents? Dec 27 17:10:31 Hi Dec 27 17:11:06 I can't find a view in my seconds fragment, findViewById() always returns null Dec 27 17:13:54 probably because it is null ^^ Dec 27 17:19:37 is there any fast offline documentation available? Dec 27 17:20:00 you can download it with an offline browser Dec 27 17:20:21 say, http://www.httrack.com/ Dec 27 17:20:58 The documentation is actually included in the SDK. Dec 27 17:21:07 one problem solved Dec 27 17:21:23 Go to the SDK folder and then docs and the open the index.html. Dec 27 18:00:41 im trying to save a picture taken from a camera intent to a folder in internal memory. but on my onActivityResult, when I launch the gallery to view the photo that i store in internal memory, the gallery never launches Dec 27 18:01:09 how do you launch the gallery Dec 27 18:01:26 Intent i = new Intent(Intent.ACTION_VIEW) Dec 27 18:01:55 and i setDataAndType(Uri.fromFile(photo), "image/jpeg)) Dec 27 18:02:42 this was working fine when i was saving the file using Environment.getExternalStoragePublicDirectory(Environment.Directory_dcim) Dec 27 18:02:52 but when i switched to internal cache, it stopped working Dec 27 18:03:21 perhpas its because gallery doesnt have access to internal storage :? Dec 27 18:03:36 oh maybe youre right Dec 27 18:05:02 so basicaly, i launch the gallery to verify that the image has been stored correctly, if the gallery doesnt have access to the internal storage, how can i verify the image has been stored Dec 27 18:05:02 ? Dec 27 18:07:34 well load the image by yourself Dec 27 18:20:54 HOW to get the values of mviewholder.wthirdLine from mybaseadapter.java?? http://paste.ubuntu.com/9630925/ Dec 27 18:22:48 Anyone there? Dec 27 18:24:03 capella-s3 http://www.extremetech.com/wp-content/uploads/2012/02/red-panda-firefox-taking-a-break.jpg Dec 27 18:24:05 heh Dec 27 18:28:07 PersonX: there are several ways Dec 27 18:28:25 Ashiren, please suggest one. Dec 27 18:28:34 PersonX: whats in wthirdline? probably something from the list Dec 27 18:29:06 you could in adapter override getItem(int position) return some_list.get(position) Dec 27 18:29:45 wthirdLine is a viewtext of the listitem layout. Dec 27 18:30:24 what I want is, when I click the like button from the layout, there should be a toast showing the text from this wthirdLine. Dec 27 18:30:32 Ashiren, ^ Dec 27 18:31:04 well, then you have onItemClickListener Dec 27 18:31:42 which has View argument, which is effectively convertView from the baseadapter Dec 27 18:32:21 and simply you can get that by ( (TextView) someview.findViewById(R.id.wthirdLine) ).getText() Dec 27 18:32:37 the like button contains "android:onclick="onlike". should this onItemCLickListener be added apart from this? Dec 27 18:32:42 in your onItemClick(AdapterView, View some_view, ...) Dec 27 18:33:01 oh Dec 27 18:33:36 why dont you like_button.setTag(wthirdLine) Dec 27 18:33:54 then in onclick v.getTag().getText Dec 27 18:34:00 I'm VERY new to android. I don't know what that means. Dec 27 18:34:30 can you post the entire mybaseadapter.java? at least the full getView part Dec 27 18:34:51 alright. :) just a sec. Dec 27 18:35:52 Ashiren, here you go : http://paste.ubuntu.com/9631019/ Dec 27 18:39:52 question guys Dec 27 18:40:20 Im making a timer, and I want it to only start if two buttons are pressed at the same time Dec 27 18:40:32 but then stop regardless of which one is pressed Dec 27 18:40:33 PersonX: something quickie http://paste.ubuntu.com/9631044/ Dec 27 18:41:46 drinfernoo: pressing two buttons at once might be tricky, as everything goes in UI Thread Dec 27 18:42:41 Ashiren, thank you sooooooooooo much! :D Lemme try that! :) Dec 27 18:42:43 two booleans that change from false to true according to button state? :) Dec 27 18:42:47 with an onclick listener Dec 27 18:43:11 eh, onTouchListener is what i mean Dec 27 18:43:34 sounds like a job for a xor Dec 27 18:44:05 you dont need a xor for that... if(buttonOneClicked && buttonTwoClicked) doStuff; Dec 27 18:46:58 danijoo, this is what I've got so far Dec 27 18:47:02 https://gist.github.com/anonymous/f8a321eece44aafb7d7e Dec 27 18:48:56 basically the bit with the "left && right" is what I'm having trouble detecting the right atate Dec 27 18:48:58 state* Dec 27 18:49:13 the stuff about inspection is working Dec 27 18:54:31 drinfernoo: try this: http://pastebin.com/nf5TsSem Dec 27 18:57:16 you have to check if its MotionEvent.ACTION_DOWN, ACTION_UP or anything else Dec 27 18:57:27 or your variables will be true for ever Dec 27 18:59:15 fooorever Dec 27 19:03:04 hi all Dec 27 19:03:34 you may also want to track the touch id btw.. to make sure the up event corresponds to the previous fetched down event. but try it without first Dec 27 19:05:28 i just found this and high hopes http://www.amazon.com/Design-Android-Apps-Ryan-Cohen-ebook/dp/B00M4FC97Q Dec 27 19:05:45 but man, it seems like nobody can write a book on Android UI Dec 27 19:05:55 like its some insurmountable task Dec 27 19:07:39 g00s: What woudl Dec 27 19:07:43 Whoop. Dec 27 19:07:44 s Dec 27 19:07:57 What would you want from an android UI book*? Dec 27 19:08:06 Stupid enter key... Dec 27 19:08:24 Radther i'd like to be able to understand the techniques roman nurik, chris banes use in their posts on how to do interesting things Dec 27 19:08:57 for example, to do drag and drop with recyclerview, stuff like that Dec 27 19:09:20 i mean interesting in the sense that - not the boring stuff of usinglayouts, etc Dec 27 19:09:50 So the more technical side of actually implementing the stuff? Dec 27 19:09:56 yeah ! Dec 27 19:10:46 This sounds like an awesome idea for a site, like an index, of how to implement certain design patterns. Dec 27 19:11:07 Literally an index of guides. Dec 27 19:17:17 g00s: have you already started reading it? Dec 27 19:17:36 danijoo no, just looked through the table of contents Dec 27 19:17:41 read the reviews, etc Dec 27 19:17:53 free for kindle, thats nice Dec 27 19:21:54 In my MainActivity, I launch a cameraintent, and save the photo in DIRECTORY_PICTURES inder external public storage. i then grab the Uri of the image and send it to ActivityB as a string via an intent. Once ActivityB starts, i grab the Uri string from extras, and perform Uri.parse. When I try to display the image in an imageview using setImageUri, it says that "resolveUri failed on bad bitmap uri: file:///storage/emulate Dec 27 19:21:54 d/0/Pictures/2124123.jpg" Dec 27 19:24:39 you need to use a content resolver Dec 27 19:24:46 you should never use setImageUri Dec 27 19:25:41 ok will look into it Dec 27 19:25:43 thx Dec 27 19:28:20 is there something going on with google/youtube? Dec 27 19:28:29 getting connection is not private error due to certificate Dec 27 19:28:51 no Dec 27 19:29:59 nvm, stupid me... i adjusted my system date for testing and it didn't play well with the certificate authentication Dec 27 19:32:24 anyone have any recommendations for picking up reactive programming? more based on theory / what is possible, not necessarily a 'cookbook' or a few tutorials. Dec 27 19:43:13 groxx rxjava wiki has https://github.com/ReactiveX/RxJava/wiki/Additional-Reading Dec 27 19:43:35 the wiki is pretty good though Dec 27 19:43:56 Ugh: http://www.reddit.com/r/androiddev/comments/2qjfzg/how_acceptable_is_it_to_have_an_exitconfirmation/ Dec 27 19:43:59 Exit dialogs can die in a fire. Dec 27 19:44:44 groxx ben christensen has given talks about it; they have changed as time goes on. earler ones cover more basic things. more recent ones - probably because he figure people know that stuff now - cover backpressure Dec 27 19:45:04 TacticalJoke: there is ONE place where I find it semi-acceptable: for apps which have to run in the background, and there's no easy way to kill them. sure, you can hide it in settings, but people don't notice that and complain about battery draining. Dec 27 19:45:08 the grokking ones (1-4) are pretty good Dec 27 19:45:17 JakeWharton: getting: "SkImageDecoder::Factory returned null" when using contentResolvers like this: "Bitmap bitmap = MediaStore.Images.Media.getBitmap(this.getContentResolver(), photoUri);" Dec 27 19:46:16 TacticalJoke: i dont even understand why op thinks pressing back must always close the app Dec 27 19:46:22 groxx here is one of the earler talks at GOTO https://www.youtube.com/watch?v=_t06LRX0DV0 Dec 27 19:46:36 i'd probably start there Dec 27 19:46:40 with a nav drawer you still have an activity hierachy that back pressing should follow Dec 27 19:46:45 g00s: thanks, I'll look at those :) I've been hoping to find something semi-recent, because though RxEtc has been around for a while, it seems like it has been progressing pretty quickly lately Dec 27 19:47:22 hm - most of the changes lately have been backpressure, and internally how they refactored code for 1.0 Dec 27 19:47:33 Right, danijoo. Dec 27 19:47:40 not that much really Dec 27 19:47:58 backpressure seems useful, yeah. I mean "progress" as in "wider usecases and different techniques" Dec 27 19:49:13 The OP likes the exit dialog in "reddit is fun". I'm kinda amazed that anyone would like an exit dialog in a reddit app. Dec 27 19:49:20 ah, yeah, the netflix talks are pretty compelling. not quite enough to take it and run with it though :) Dec 27 19:49:21 Most useless "feature" ever. Dec 27 19:49:37 TacticalJoke i still back out of apps regularly Dec 27 19:49:41 by mistake Dec 27 19:49:44 backstack sucks Dec 27 19:50:09 that just seems kinda weird :| Dec 27 19:50:14 I'd rather just go back to the home-screen, personally. Having to confirm my choice to exit every single time is horrible. Dec 27 19:50:37 If I back out by accident, I can easily get back in again. Dec 27 19:50:45 TacticalJoke: I have only just realised that reddit news also has an exit popup. Turns out I usually just hit home instead. Dec 27 19:50:47 g00s: backstack done wrong sucks ;) Dec 27 19:51:12 What risk is there in accidentally closing a reddit app? The worst-case scenario is an extra download. Dec 27 19:51:45 TacticalJoke its just a hassle to find the icon again :) Dec 27 19:51:57 and launch ... iwonder how many people do this on a regular basis Dec 27 19:51:59 That's what recents is for. Dec 27 19:52:34 Maybe the on-screen Back button should change its image to a "home screen" thing when it will go back to the home screen. Dec 27 19:52:45 Then again, this could be annoying. Dec 27 19:53:13 Also android cant know if the next back press will go back to home Dec 27 19:53:19 because its a runtime event Dec 27 19:53:21 That's true. Dec 27 19:53:21 Yeah, may end up looking like a bug or confuse the user even more like "Where has the back button gone how do I get back" Dec 27 20:00:46 maybe i'm not thinking here, but generally what is the point of android even having back from top level - > home behavior ? you can go home by pressing home. the way things are you have to know when back is going to take you back or drop you off the cliff Dec 27 20:01:52 I suspect it's at least in part because "back" != "home" in all cases - it can just return you to the app you came from (which is useful) Dec 27 20:02:49 but it might just be that it's a bit of a conceptual leak / something "obvious" when developing, but doesn't make much sense in practice. Dec 27 20:03:12 TBH a lot of developers don't fully understand how to properly handle the back button so you can never fully trust it as it can sometimes be very sporadic. Dec 27 20:04:03 doesn't help that even doing fairly simple (conceptually) task-stack management is ludicriously problematic Dec 27 20:10:28 back to home destroys app, home to home keeps instances running Dec 27 20:11:18 I think it destroys the main activity but doesn't kill the process. Dec 27 20:11:26 Usually. Dec 27 20:11:27 yea Dec 27 20:13:04 Hey guys! Dec 27 20:13:30 Ok so I quite like the idea that was said earlier about an index of some sort that collates simple guides for doing certain things in android like "how to implement drag and drop in recycler view" type stuff. Is there already something like this that I don't know about and if not would any of you guys be interested in something like this? Dec 27 20:13:38 can someone help me with that method: http://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.html#replace(java.lang.String, java.lang.String, android.content.ContentValues) WHAT row will it update?^^ I don't see where it specifies that ... even tho I used that method in some old code ... Dec 27 20:13:48 I forget - does back to home + alwaysRetainState still kill the activity's saved state? Dec 27 20:14:14 Radther: there are some android library demo apps, that's kinda similar Dec 27 20:15:08 groxx: The activity doesn't get a savedInstanceState after a Back tap. Dec 27 20:15:30 Radther: I was saying the other day that the people in here should make some kind of "Android tips" site/blog/whatever. Dec 27 20:15:59 Well, not "Android tips", but examples of stuff. Dec 27 20:16:02 groxx: I'm talk more like full guides explaining how it works with code samples. Like this http://www.bignerdranch.com/blog/recyclerview-part-1-fundamentals-for-listview-experts/ for example, but a searchable index of lots of them, some written by anyone that knows how to write as well as links to blogs that have a guide. Dec 27 20:16:05 Kinda like the MSDN examples. Dec 27 20:17:06 Yatekii: it depends on the table. if you include an ID, it'll update that. if you have a compound primary key or other unique keys, I would assume it replaces those as is appropriate. its probably shorthand for insert + conflict_replace Dec 27 20:17:58 If I make a google form would you guys be interested in posting any guides that you found and when I get a chance over the next couple of days I will try putting something together(not promising that it will be any good but it will be something). Dec 27 20:19:09 Radther: I like the idea, but will it take off? Dec 27 20:19:24 If a bunch of experts agreed to write articles, it might. If not, it probably won't. Dec 27 20:20:07 Well if I(we) don't stop adding stuff to it and then use it when someone asks questions then it will (hopefully) pick up traction. Dec 27 20:21:28 Radther: What do you think of the idea of a generic examples site? Everything ranging from "how savedInstanceState works" to that thing you said (how to implement drag-and-drop in RecyclerView). Dec 27 20:21:54 TacticalJoke: That's basically what it would be. Dec 27 20:22:18 Simple guides explaining basics. Dec 27 20:22:23 Radther did you see this ? https://www.youtube.com/watch?v=_t06LRX0DV0 Dec 27 20:22:32 i looked at the code, and didn't understand it ... Dec 27 20:22:33 That sounds good. Dec 27 20:22:59 how can i set an imageview to a file i have saved in exteranl storage public directory (DIRECTORY_PICTURES) given the Uri? I tried using setImageURI, using contentresolvers, and converting to bitmap, but i am getting "resolveUri failed on bad bitmap uri" and "SkImageDecoder::Factory returned null" Dec 27 20:23:00 would be nice if the snippet showed not only the code, but explained the principles and techniques required to accomplish this Dec 27 20:23:17 g00s: I saw it but haven't had a chance to look at it. Dec 27 20:23:31 just one example of many that are over my head :) Dec 27 20:23:34 Right, g00s. Dec 27 20:23:46 I think any site that aimed to copy what MSDN does would be good. Dec 27 20:24:42 It could be called ADN. :D Dec 27 20:24:50 I like it. Dec 27 20:28:08 http://goo.gl/forms/OFqprXAqAI Here is the link to the form, share it around as much as possible! I will probably post it a couple of times throughout the week assuming that's ok and won't get me banned for spamming and what not. Dec 27 20:29:20 hmm well I didn't specify an id or anything, groxx, in my old code ... so maybe I did it wrong :S Dec 27 20:31:48 Radther: Oh, it's just gonna be a catalog of external links? Dec 27 20:32:34 TacticalJoke: Hopefully a bit more then that but there are already a large amount of links available that it's a good place to start with a decent amount of content. Dec 27 20:33:18 groxx: thank you very much, I just found out I was doing it wrong probably Dec 27 20:35:10 TacticalJoke: Can you explain to me a bit more about how MSDN operates. I haven't really used it that much? Dec 27 20:40:09 danijoo, now it starts if I let off of one button, and stops when I let off the other lol Dec 27 20:40:12 (252) 26 IRC Operators online Dec 27 20:40:15 whoops Dec 27 20:40:38 https://gist.github.com/anonymous/b8a585d6364be0513258 Dec 27 20:42:05 damn he's gone lol Dec 27 20:44:29 drinfernoo: What is this code supposed to be doing? Dec 27 20:45:02 starting a timer if both buttons are pressed and then released, stop regardless Dec 27 20:45:56 What do you mean by stop regardless? Dec 27 20:46:43 once the timer starts, it should stop by just pressing one Dec 27 20:46:52 Radther: Okay, good idea. The key thing about MSDN is that basically every class has a use example (if I'm remembering correctly). Dec 27 20:47:10 So you can quickly sum up a class by looking at the example. The details fill in the gaps. Dec 27 20:47:29 TacticalJoke: Ahh ok that seems potentially doable, just might take a while. Dec 27 20:48:56 God, my neighbours are crazy. Two lesbians who fight constantly. Dec 27 20:49:03 Screaming and shouting over and over. Dec 27 20:49:19 sweet Dec 27 20:49:25 TacticalJoke haha Dec 27 20:49:31 I recommend investing in a pair of decent headphones. Dec 27 20:49:50 I'd recommend a decent pair of headphones regardless. Dec 27 20:49:56 Yeah. I actually had to buy earplugs, too. Sometimes their fights are really early. Dec 27 20:50:20 I'd recommend not using the earplugs in conjunction with the headphones though. Dec 27 20:50:28 Radther: I don't know of any apps like that, but I'd probably be interested if you tackle it :) Dec 27 20:50:49 Radther: Which markup language will you use? Dec 27 20:50:53 Markdown seems okayish. Dec 27 20:51:00 Radther: personally I've just wanted a wiki version of the android docs. so many documentation gaps / errors that haven't been fixed in years, since the barrier to contributing is so high Dec 27 20:51:11 Yeah, a wiki kinda thing would be nice. Dec 27 20:51:18 groxx: It would be a website rather than an app (at least to begin with) and hopefully it wouldn't be just me... Dec 27 20:51:27 website works too Dec 27 20:51:29 Radther: What about a markdown wiki? Dec 27 20:51:36 Markdown* Dec 27 20:51:41 I've debated building out my neocities site with something kinda like that Dec 27 20:51:55 Then again, a technical wiki might not work well. Dec 27 20:51:59 Only takes one n00b to n00b it all up. Dec 27 20:52:22 yeah, though wiki != wikipedia's setup :) Dec 27 20:52:26 True. Dec 27 20:52:28 Moderation will definitely be key. Dec 27 20:52:32 Restricted access could be cool. Dec 27 20:52:47 but yes. it's not a magical panacea, it would just be cathartic. Dec 27 20:52:58 Markdown will probably be very likely as it is quite widespread and very simple. Dec 27 20:53:17 TacticalJoke i think you ran into this the other day, but i'm noticing it a lot today because i'm refactoring - when you change a resource ID, you don't automatically get error feedback in the other files. i have to either build or open a file to see an error Dec 27 20:53:24 Radther: Do you have web space? Dec 27 20:53:49 Yeah, I notice that a lot, g00s. Dec 27 20:54:01 I do have hosting on dreamhost. Dec 27 20:54:07 but its also java code - i can rename a method and nothing happens until build Dec 27 20:54:07 Oh, nice. Dec 27 20:54:10 I used to use Dreamhost. :) Dec 27 20:54:12 TacticalJoke & g00s: in AS? tons. I hate it. Dec 27 20:54:17 Whether I will stick with that or look else where though I don't know. Dec 27 20:54:19 groxx yeah Dec 27 20:54:24 eclipse FTW :P Dec 27 20:54:32 I get that in Eclipse, I think, groxx. Dec 27 20:54:34 eclipse was much better in the realtime feedback dept Dec 27 20:54:43 If I'm understanding correctly. Dec 27 20:54:55 I used to get it in eclipse, but the past handful of plugin versions have been way better Dec 27 20:54:58 Radther, any ideas? Dec 27 20:55:00 Radther: I used to have that insane Dreamhost deal, where I'd have crazy bandwidth for like $10 per year. Dec 27 20:55:12 ooh Dec 27 20:56:13 TacticalJoke: I have unlimited bandwidth and a domain deal that I got through lifehacker in the summer for a year. It cost lie $25 or something for a year. Dec 27 20:56:19 Nice. Dec 27 20:56:52 The articles for this site could be peer-reviewed in here. Dec 27 20:57:52 drinfernoo: My guess is something to do with the on click being recognised when you don't want it to. Dec 27 20:58:27 TacticalJoke: Yeah, seems like the best place to do it. Dec 27 20:58:29 clear Dec 27 21:02:40 I wish they'd hurry up and add JVM unit testing to Android Studio. Dec 27 21:02:51 I've only been waiting for like a year or so. Dec 27 21:03:14 drinfernoo: Maybe do the check to stop the timer in the onTouch instead of on click. Something like if chrono.isRunning() then stop as I think the onClick might be confusing it somehow. Dec 27 21:03:15 Kinda annoying knowing that you'll have to change IDE soon. Dec 27 21:03:19 And not being able to change yet. Dec 27 21:06:30 TacticalJoke: Typing unit testing android studio into google gave me some guides on doing it. Is there something specific that I'm missing (haven't done unit testing before) Dec 27 21:07:03 Running unit tests on the JVM isn't really supported yet, as I understand it. Dec 27 21:07:07 hey all X) Dec 27 21:07:09 Running tests on devices, however, is. Dec 27 21:07:20 The former is faster and enables the use of JUnit 4. Dec 27 21:07:38 TacticalJoke: Ahh ok, can I ask when I would need to do unit tests? Dec 27 21:07:51 Radther: "always" ;) Dec 27 21:08:08 They check that code works now and ensure that code will work in future (after refactoring or whatever). Dec 27 21:08:14 And you can run thousands in milliseconds. Dec 27 21:08:19 Ok, what would I be testing with them? Dec 27 21:08:23 So, yeah, basically anytime. Dec 27 21:08:38 Testing that the code behaves as intended. Dec 27 21:08:48 For example in my todo list app, would it be stuff like adding and deleting tasks? Dec 27 21:09:12 has Lollipop introduced any changes with the OMXClient? My app crashes on 5 where it did not before with an error saying something like the encoder is already registered Dec 27 21:09:15 That sounds more like an integration test than a unit test, but that'd probably have value. Dec 27 21:10:08 A unit test might be checking that a list-like class reads itself from a stream correctly. Dec 27 21:10:10 Radther: think of unit testing as testing a specific class, or a specific method.. Dec 27 21:10:24 Ahh ok. Dec 27 21:10:25 The app could give some kind of file stream; the unit test, some kind of memory stream. Dec 27 21:10:28 like is the mic always listening for "Ok Google" or has that always been the case? Dec 27 21:10:35 basically, you want to isolate that one class/method as much as possible, and then feed it inputs, and verify its outputs Dec 27 21:11:03 of course, in a lot of cases, it's hard to isolate like that, and it can be hard to verify the functionality, or to feed it inputs. Dec 27 21:11:18 Ok, sounds interesting. I will definitely find some articles on doing this and add them to pocket. Dec 27 21:11:22 Yeah. Dependency injection is a strategy that often (but not always) helps. Dec 27 21:11:25 you basically have to design your code in such a way that it makes it testable Dec 27 21:13:04 Radther: A good book on this subject is Kent Beck's Test Driven Development by Example. Dec 27 21:13:20 I'm not a huge TDD fan, but that book is awesomely clear about the value of unit testing. Dec 27 21:14:08 Saved. Dec 27 21:14:11 heh, yeah. TDD is taking it a bit to the extreme, imo :) Dec 27 21:14:37 Basically, the idea is that you write all your tests before you write the actual code Dec 27 21:14:55 And then as you write the code, you ensure that what you're writing passes the tests Dec 27 21:16:15 A question: What Google plus app does when you rotate the screen? Does it load post from disk or what? Dec 27 21:16:58 Radther: As an example, here are some tests I wrote for a static method called TimeFormatter.getTimeDifference: http://pastebin.com/EVtSj2Kt Dec 27 21:17:00 An answer: heck if I know :) Dec 27 21:17:13 Actually, that's not the best example, since I'm gonna remove the code being tested eventually. Dec 27 21:17:24 But at least I know that the temporary code works. :D Dec 27 21:17:54 gdrc: seems likely to me that the list is a fragment, rotating it retains the fragment, and when it changes bounds it re-lays-out the list. everything stays in memory then, and you "just" change the layout behavior to two columns. Dec 27 21:18:18 I'll remove it mainly because it's not calculating the months and years correctly. I should use Joda-Time or something. Dec 27 21:18:59 groxx: how does it retains the list of post? The only way is use Parcelable right? Dec 27 21:19:47 TacticalJoke: Ok this testing stuff is sounding more and more *interesting* Dec 27 21:20:22 gdrc: parcelable will let you retain data across process deaths / restarts. the process doesn't stop when you rotate though, you can use fragment.setRetainInstance(true) or just stick it in a static variable somewhere. there's also onRetainNonConfigurationInstance which is a simple way to pass data between rotated activities. Dec 27 21:20:24 It's worth looking into. Dec 27 21:20:28 gdrc: (and other config changes) Dec 27 21:20:41 By unit testing, you can stamp out a whole class of bugs before you even run your app. Dec 27 21:20:45 Also in regards to "ADN" any recommendations of wikis/things for setting this up. Dec 27 21:21:05 this is more of a design question, but when using Parse in my application, is it better to create a singleton Parse class that contains relevant functions and the keys? im not familiar with the best practice Dec 27 21:22:34 Radther: ADN? Dec 27 21:22:53 Is Wikipedia's thing any good? Dec 27 21:23:03 MediaWiki or whatever it's called. Dec 27 21:23:25 Android developer network. I am planning on building a place where people can get links and guides on implementing things in android development. Dec 27 21:23:37 I'm just looking at that at the moment. Dec 27 21:23:37 mediawiki is good, powerful, and pretty specific to making Wikipedia-like sites (open modification, allow + allow reverts rather than review changes, etc). Dec 27 21:23:37 Then again, Wikipedia's markup language is (as far as I remember) annoying. Dec 27 21:23:49 Radther: like d.android.com? Dec 27 21:23:58 thepoosh: Like that but better. :D Dec 27 21:24:07 interesting Dec 27 21:24:28 More examples and guides collated from all over the web. Dec 27 21:24:45 You could even call it something like android-examples.com. Dec 27 21:24:52 Radther: would it be feasible to use a github.io page? then you can use pull requests as a request-to-modify system Dec 27 21:24:53 If you were interested in renting a new domain name. Dec 27 21:24:58 And editable(with moderation) by people. Dec 27 21:25:58 groxx: Maybe. This might be a slightly larger task then I had first thought. Might take a lot of planning. Dec 27 21:26:08 Are you sure you have time? :) Dec 27 21:26:24 I am going to say maybe. Dec 27 21:26:29 groxx: using fragment.setRetainInstance make the system calls anyway onCreateView and onActivityCreated Dec 27 21:26:51 Radther: which is why I advise the lean startup approach: make a minimally-useful thing, see if it gathers enough interest to even justify further work :) Dec 27 21:26:53 Getting it started it the hard bit, once it is up it will be (slightly) less work. Dec 27 21:27:16 it's not _too_ hard to migrate data. not compared to setup / maintenance / community management, certainly. Dec 27 21:27:32 That's how I feel about my current app. Getting it started is taking forever. Dec 27 21:27:37 gdrc: yeah, it does. but the fragment and all its instance data stay around Dec 27 21:27:49 groxx: minimum viable product is definitely the way to go with this. Dec 27 21:28:48 Radther: if you want absolute minimum, tiddlywiki is like a 2 minute setup, and a good amount of the markup will migrate to other wikis Dec 27 21:29:59 groxx: I'll take a look. Dec 27 21:30:33 groxx: around where? savedInstance is always null Dec 27 21:32:12 gdrc: I don't remember the rules for restoring fragments on config changes. _probably_ it has to have the same class and the same ID in both layouts, and a while back (and maybe still) I saw something claiming that nested fragments were losing state due to a support lib change. Dec 27 21:38:08 groxx: I don't think tiddly wiki will be best for this but I am definitely using this for organising my uni work. Dec 27 21:38:58 yeah, only intended as a "get some data presented for your adoring masses" :) I've used it a little, it's nice in its extreme simplicity. Dec 27 21:40:23 I have most of the android SDK tools, can someone tell me which one will let me decompile an APK? Dec 27 21:40:35 groxx: Good point. It would also work on github pages as it is literally just a HTML file Dec 27 21:41:03 groxx: ok, I got it. setRetainInstance(true) make the fragment to not be re-created, so it still alives after configuration changes. savedInstanceState's Bundle is null because Fragment class variables are still alive Dec 27 21:45:07 Annoying how the builder pattern doesn't play well with conditions. Dec 27 21:45:22 TacticalJoke: conditions? Dec 27 21:46:50 Something like "return new FooBuilder().add(x).add(y){if (bar) {.add(z).add(a)}}.add(b);". Dec 27 21:48:40 ah. yeah, though that's kinda Java too, since Object doesn't have anything like e.g. Ruby's .tap (which would let you do pretty much exactly that) Dec 27 21:48:58 Ruby: I'd tap that. Dec 27 21:49:19 I do love open classes. Dec 27 21:49:21 That looks really handy. Dec 27 21:53:03 Mannn: d) none of the above :) Dec 27 21:53:24 Im so confused Jesus Dec 27 21:53:26 Mannn: depending on what you want, you can use either baksmali, or dex2jar and a java decompiler Dec 27 21:53:39 but in any case, this really isn't the channel for that discussion :) Dec 27 21:53:53 however, there is #smali :) Dec 27 21:53:54 oh? What channel? Just regular #android? Dec 27 21:53:58 Lol. This guy is creating a search engine and broadcasting his screen: https://www.youtube.com/watch?v=keKg1ZIz5II Dec 27 21:54:18 or #android-root might be topical Dec 27 21:54:24 and #apktool Dec 27 21:55:08 is apktool made by Google, is it part of the SDK? Dec 27 21:55:15 no. Dec 27 21:55:45 yeah, not sure what the best channel would be. personally: apktool, dex2jar, and JD-GUI if you're just interested in reading. or apk2gold though it is occasionally broken. Dec 27 21:56:08 the sdk doesn't really have anything for reverse engineering an apk Dec 27 21:56:22 it might have dexdump, I'm not sure Dec 27 21:57:22 I don't how far I need to decompile the apk, I'm just comparing the normal version vs a cracked/patched version of the app to try to see how they do it Dec 27 21:57:55 Well, I'm a tad bit biased, but I would recommend baksmali :) Dec 27 21:58:09 and #smali.. :) Dec 27 21:58:19 will do Dec 27 22:50:10 As far as Signing Apps goes, you would always be able to tell a counterfeit app, unless the counterfeiter somehow got the original dev's secret key, right? Dec 27 22:50:19 how can i cookie an android device? Dec 27 22:50:32 So then every pirated app would fail that digital signature? Dec 27 22:52:33 arcanine69 please don't PM me questions Dec 27 22:52:44 sorry ;( Dec 27 22:52:56 Mannn: yep, exactly. so e.g. a real app can't be "updated" with a counterfeit, or vise versa. Dec 27 22:52:56 etiquette son ! Dec 27 22:53:03 Using "cookie" as a verb feels weird. Dec 27 22:53:19 Seems like something they'd do on Sesame Street. Dec 27 22:53:22 probably because it raises questions like "how do you cookie monster"? Dec 27 22:53:23 lol Dec 27 22:53:24 TacticalJoke: he verbed the noun. Dec 27 22:53:31 ok how can i place a cookie on an android device Dec 27 22:53:33 you can cookie your android like this http://recode.net/2014/12/26/keyboard-waffle-iron-sells-like-hotcakes-surpasses-kickstarter-goal/ Dec 27 22:53:40 just put it in the waffle iron Dec 27 22:53:59 haha. I saw that waffle iron the other day. so awesome Dec 27 22:54:05 call me when it includes the keypad Dec 27 22:54:15 number pad on the right Dec 27 22:55:12 Do you require functioning Num Lock? Dec 27 22:55:35 I require everything. Dec 27 22:55:42 Ok, I have created an example of how the site my work in regards to an item. In this case RecyclerView. http://radther.github.io/AndroidDeveloperNetwork/example.html Dec 27 22:56:57 Looks good. Though I wouldn't linkify terms repeatedly. Just makes the text harder to read. Dec 27 22:57:14 Radther just FYI there is part2 BNR on recyclerview now :) Dec 27 22:57:24 oh you have that Dec 27 22:57:28 g00s: Yup Dec 27 22:57:40 This could be awesome, if done right and given enough attention. Dec 27 22:57:49 TacticalJoke: That's the wiki softwares fault Dec 27 22:57:57 Radther: shweet. more links to read. thanks :) Dec 27 22:58:09 Would MS mind the use of "Developer Network"? Dec 27 22:58:11 If the word matches a "tiddle" then it links it. Dec 27 22:58:13 I guess it's a generic term, though. Dec 27 22:58:24 Yeah, seems generic enough. Dec 27 22:58:26 I love the name (if I can say that :D). Dec 27 22:58:29 is that tiddliwiki ? Dec 27 22:58:33 g00s: Yeah. Dec 27 22:58:46 oh sweet, i used that as my notepad back in 2008 Dec 27 22:59:10 Hmm, I think it might be better to have a full page for each article. Is that easy to do with that setup? Dec 27 22:59:17 Radther: http://www.tiddlytools.com/#DisableWikiLinksPlugin ? Dec 27 22:59:18 g00s: I'm planning on using for university as it seems pretty cool. Dec 27 22:59:20 Then again, I do kinda like the overview. Dec 27 22:59:23 Thing. Dec 27 22:59:35 (never used, just googled) Dec 27 22:59:37 Radther the only hard part was migrating versions, at least in the past Dec 27 23:00:28 Radther are you big into organizing information ? Dec 27 23:00:28 TacticalJoke: This is more of an example of how it might work, definitely looking for other solutions as this one doesn't seem to be very user editable for other people. Dec 27 23:00:37 Okay. Dec 27 23:01:05 g00s: I'm big into it in the "I need to organise my stuff more as it is currently a complete mess" way. Dec 27 23:01:26 Radther: If you do this, I'll help where I can. Dec 27 23:01:30 Though I'm not an Android expert. Dec 27 23:01:35 there was a great book on this, one sec Dec 27 23:01:36 I'm learning. Dec 27 23:01:49 TacticalJoke: Neither am I, I only started a couple months ago. Dec 27 23:02:07 I'm not a great developer in general. Dec 27 23:02:13 If it gets big, some heavyweights might take an interest. Dec 27 23:02:37 I can only hope as this definitely isn't doable by myself. Dec 27 23:03:29 Radther if you are interested , i have the pro edition which is a little beefier Dec 27 23:03:30 http://shop.oreilly.com/product/0636920034902.do Dec 27 23:03:35 groxx: That link is one of the worst sites I have ever been to, it hurts my eyes... Dec 27 23:03:35 From the quick preview you just created, I get the impression that you could probably do something good. Dec 27 23:04:09 Radther: lol, weaponized html Dec 27 23:04:11 God, yeah. That site is weird. Never seen anything quite like it. Dec 27 23:04:14 g00s: Looks cool, bit on the expensive side though. Dec 27 23:05:51 The thing on that page is moveable. Dec 27 23:06:39 Or 'movable', I guess. Dec 27 23:07:27 TacticalJoke: It has your favourite thing when you try to leave, a popup asking are you sure you want to exit... Dec 27 23:07:39 lol Dec 27 23:08:39 "ELS Design Studios was established in 1995, and specializes in interaction design, visual design, and information architecture. Through a combination of user-centric design, handcrafted production, and personalized service, our approach emphasizes the total visitor experience to produce highly effective feature-rich interactive applications, documents and on-line presentations for Dec 27 23:08:39 businesses, organizations, and individuals." Dec 27 23:08:47 I may leave this project until the morning before I get too invested tonight and don't sleep. Dec 27 23:09:02 That's easy to solve! Just show a dialog before that asking the user if they want to be asked to confirm exiting Dec 27 23:09:10 whats the best way of returning to a parentActivity from a childActivity? Should I create a new intent or is there a more resourceful/efficient way of doing it? Dec 27 23:09:33 * JesusFreke ducks Dec 27 23:09:33 finish(); Dec 27 23:09:46 Radther: Are you in the UK? Dec 27 23:09:54 TacticalJoke: Yeah. Dec 27 23:10:31 I'm close-ish to London. Dec 27 23:10:48 I'm close to coventry/birmingham Dec 27 23:10:50 Oh, you can set your name on that page (via a dialog). Dec 27 23:10:59 Well, on the front page. Dec 27 23:11:18 They have a chat room. Dec 27 23:11:42 That is the strangest site ever. Dec 27 23:11:48 When is it ok to override the selection param inside the query method of a ContentProvider? Dec 27 23:13:53 patrick91: I'll probably say "never". too likely to cause bugs, and what's the benefit? Dec 27 23:14:31 groxx: I'm using a URI like this: /route?from_id=xx&to_id=xx Dec 27 23:16:46 patrick91: ah. and you want to allow them to add other selection params in addition to that? Dec 27 23:16:59 groxx: no Dec 27 23:20:27 no additional parameters, I don't like the idea to use an URI plus selection (& arguments) Dec 27 23:26:26 No matter how many times I try it, Allocation Tracker won't track stuff being allocated in my background thread. Dec 27 23:26:42 Any ideas here? Dec 27 23:36:09 Hmm. The stand-alone version seems to work. Dec 27 23:36:21 Just not the Eclipse-plugin version. Dec 27 23:37:42 TacticalJoke you are trying to use a chicken to measure it, thats the problem Dec 27 23:38:40 A chicken? Dec 27 23:38:49 :D Dec 27 23:39:58 The stand-alone one suddenly stopped showing my background thread. Doh. Dec 27 23:42:13 im back \ ( ^_^ ) / Dec 27 23:47:37 ugh I am so close on this time thing, but it's never quite right Dec 27 23:47:38 lol Dec 27 23:49:29 ugh, /r/androiddev has this at the top "[BuyAndroidAppRanking.com] Try us risk free! 30 Installs for $5. We can provide up to 100K installs" Dec 27 23:51:25 wtf Dec 27 23:51:51 60c a install? Dec 27 23:51:52 thats expensive Dec 27 23:52:26 yeah I could give my buddy a nickel Dec 27 23:55:16 so onClick is only triggered on an up movement right? Dec 27 23:55:30 and onTouch fires anytime the screen gets interacted with? Dec 28 00:11:58 I'm in android studio, but the top bar's not showing in the preview. My screen looks like this: http://prntscr.com/5lnq63 Dec 28 00:12:12 What I'm expecting is something like this: http://cdn2.raywenderlich.com/wp-content/uploads/2014/10/screenshot_android_studio_select_avd_manager-700x422.png Dec 28 00:22:56 does it make sense to use a SyncAdapter for search stuff? I've an API for getting bus schedules and a content provider which I use to store routes, if I run a query and I get no results from the local db I'd like to run an HTTP get to my API Dec 28 00:26:46 how does one place cookie on android device Dec 28 01:08:14 arcanine69: for web requests, or for webviews, or something else? Dec 28 01:08:29 web requests primarily. Dec 28 01:08:38 for authorization. Dec 28 01:08:54 going to sign a cookie on the server side place it on the device. Dec 28 01:09:02 what request system are you using? OKHTTP, httpurlconnection, etc? Dec 28 01:09:03 everytime the device makes a request, it has to use the cookar. Dec 28 01:09:12 none. Dec 28 01:09:16 i haven't used any yet. Dec 28 01:09:23 trying to discuss it before implementation. Dec 28 01:09:27 and write it down on my blueprint. Dec 28 01:09:28 ah. most have their own thing. Dec 28 01:09:37 well whats the most low level thing. Dec 28 01:09:47 i want to use simple HTTP. Dec 28 01:09:52 make a simple http req Dec 28 01:10:14 i was thinking of storing the cookie in a sqlite db on the users phone Dec 28 01:10:28 well wherever is the most secure spot Dec 28 01:10:30 i want to store . Dec 28 01:11:05 web server is going to return a bunch of json Dec 28 01:11:12 mobile app is going to utilize that json Dec 28 01:11:16 and display content Dec 28 01:12:40 all internal folders (your app's folders, not the sdcard) are "secure" - only your app can read it. aside from root apps, but you can't really block them anyway. Dec 28 01:13:05 also, "most low level" is probably the opposite of what you want :) if you can use OkHttp, use that - it's Android's current library, and it's pretty solid. Dec 28 01:14:34 if you go that route, there are googleable results like this: https://stackoverflow.com/questions/25461792/persistent-cookie-store-using-okhttp-2-on-android (I haven't used that though, not sure if there's something simpler) Dec 28 01:19:42 hm. I noticed that my OpenGLES app doens't work in Android 4.4 (KitKat) and higher. While it works fine in Android 4.2 (JellyBean). Does the support of Android 4.4 require any extra steps? Also Hello OpenGLES (a program from the tutorial on OpenGLES from http://developer.android.com/training/graphics/opengl/index.html) doesn't work in Android 4.4 (and higher) either! Dec 28 01:21:59 nexus 9 lte root anyone??? Dec 28 01:22:17 theres probably nothing low level about android Dec 28 01:22:21 too much abstraction Dec 28 01:42:48 arcanine69: the most secure place to store passwords would be theoretically off the device on some secure remote server Dec 28 01:43:57 shmooz: well .. duh but you need handle sessions and you don't your server doing that because it's extremely bad Dec 28 01:45:38 shmooz: hence the use of cookies Dec 28 02:53:47 So does using Google Play Game Services cost money? I currently just have a leaderboard. Dec 28 02:54:33 hey guys Dec 28 02:56:00 my app is now start 2x the same activity! every time i press the back button it returns to the same activity, and then on the second time it returns to previous activity **** ENDING LOGGING AT Sun Dec 28 02:59:59 2014