**** BEGIN LOGGING AT Fri Mar 06 02:59:58 2015 Mar 06 03:00:32 Im actually really excited about the Shield Console Mar 06 03:04:47 mrfu: afaik you should always be using the ./gradlew thing. I'm not totally clear on the why though. Mar 06 03:04:56 it does at least work, and in theory match whatever android studio is doing Mar 06 03:06:20 can use any compatible version of gradle Mar 06 03:06:34 gradlew is just a convenience Mar 06 03:07:24 so its just a use whatever is closest sort of thing? cool thanks Mar 06 03:13:57 < drose379> If I call a method from within a class that is on another thread Mar 06 03:14:03 that's not how that works Mar 06 03:14:12 the method will be called on the current thread Mar 06 03:14:19 even if you have another thread Mar 06 03:14:34 objects aren't bound to threads Mar 06 03:15:03 usually all threads have access to all memory, so all objects, filehandles, and other references to things Mar 06 03:15:43 if you want a method call from thread A to execute on thread B you have to do it explicitly Mar 06 03:16:19 by running a thread explicitly, or using a message passing system with only the specific thread acting on it, or etc Mar 06 03:17:40 And whatever you do, never use the Thread class directly Mar 06 03:18:55 should i be able to mutate the toolbar's menu (toolbar.getMenu().doStuff()) after I say setSupportActionBar() ? things aren't working as i expect Mar 06 03:21:34 those callbacks for optionsMenu are awkward; onCreateOptionsMenu() and onPrepareOptionsMenu() ... just as there is setContentView why couldn't there just be setMenu() :| Mar 06 03:21:44 and their timing is pita too Mar 06 03:21:47 g00s: that's crazy talk Mar 06 03:21:57 onPrepareContentView should be a thing Mar 06 03:22:13 lol Mar 06 03:22:22 along with onAreYouSureYouWantContentNowView() Mar 06 03:23:27 let me look at the lolcycle Mar 06 03:23:45 all the menu callbacks are called after onResume() Mar 06 03:26:03 unrelated lol: favorite android version of the day spotted in Flurry: "Android Jelybing" Mar 06 03:26:16 heh Mar 06 03:27:25 we also have a "Android 7.7.7 កប់សារី " - I should alert the media. Mar 06 03:27:44 "android jackpot spotted in the wild - WHAT DOES IT MEAN???" Mar 06 03:57:15 hm, if i say toolbar.inflateMenu( ... ) then setSupportActionBar(toolbar) no menu shows up Mar 06 03:57:25 so retarded Mar 06 03:58:50 just came across this from 5 months ago "Will appcompat automatically theme dialogs to look like the Lollipop version?" Mar 06 03:58:58 Chris: Not yet, but it's on the todo list. Mar 06 03:59:34 must be lots of work Mar 06 04:09:30 Has anyone tried to render tex (or mathml) formulas on Android? Mar 06 04:10:13 doing the tutorial on action bars in building your first app. I got the the point where 3 things seem to be missing, openSearch() and openSettings() in onOptionsItemSelected. am i doing something wrong.. or missed a step Mar 06 04:10:53 good luck android nice os Mar 06 04:11:30 groxx still there ? Mar 06 04:11:48 yup Mar 06 04:11:56 waiting on a train :| Mar 06 04:11:58 hi groxx hi g00s Mar 06 04:11:58 groxx : this should be obvious, but what is the point of using setSupportActionBar() for new Activities ? does it do things that simply putting a ToolBar in the layout can't do? Mar 06 04:12:50 g00s: not a clue. haven't used it yet. Mar 06 04:12:56 :( Mar 06 04:13:02 how can I make an app that can also be built for desktop (java webstart or a single jar)? Mar 06 04:13:05 probably makes upgrading less painful? Mar 06 04:13:14 ;[ < says hi Mar 06 04:13:35 is there a common graphics and audio API that is for android and desktop? Mar 06 04:13:43 groxx there is the AppBar, ActionBar, and Toolbar - i'm just wondering if setSupportActionbar(toolbar) gives it special powers Mar 06 04:13:53 ;[-<] <- snake thing says pppppppp Mar 06 04:14:05 hi groxx Mar 06 04:14:05 that a regular toolbar sitting anywhere else would not have Mar 06 04:14:36 g00s: ¯\_(ツ)_/¯ Mar 06 04:14:41 hehe Mar 06 04:14:41 saml_: unity? :) Mar 06 04:15:37 napster: sounds like fun. nope. webview + mathjax or whatever? Mar 06 04:16:11 linuxuz3r: howdy Mar 06 04:16:46 webvew + mathjax appears to be inefficient. Mar 06 04:16:55 I was looking for a java library that can do the thing Mar 06 04:17:12 return an imageview or something when mathml is passed Mar 06 04:17:24 it will be great project idea as well guys. :) Mar 06 04:17:32 if someone is interested Mar 06 04:17:42 jmathtex is there Mar 06 04:18:00 not very good in different aspects. Mar 06 04:27:57 if i already have intellij, do i need to download android studio? or is there a list of plugins i can install in my existing intellij to turn it into android studio? Mar 06 04:29:06 better to just grab android studio Mar 06 04:29:45 ah thanks Mar 06 04:32:07 oh i already had it installed before haha Mar 06 04:34:21 is udacity video lessons better than documentation? Mar 06 04:34:53 no Mar 06 04:34:55 saml_: I would say just stick with intellij, if you already have it Mar 06 04:35:11 saml_: coursera also has android classes, for free Mar 06 04:36:13 thanks. let me see how quickly i can write hello world app and test it on my phone Mar 06 04:37:36 BitmapConfig has no 8-bit GL_RED option. Don't think I want to create OpenGl context etc just for that.. Mar 06 04:38:22 android hello world involves appcompat, navigation drawer, about 15 files: several gradle.build files, smattering of xml, generated code, etc :D Mar 06 04:40:05 few clicks away in android studio Mar 06 04:40:19 i don't kow what i'm doing Mar 06 04:41:32 clicking the night away .... Mar 06 04:42:02 Chumbawamba :D Mar 06 04:42:15 hrm memory maxes out Mar 06 04:42:23 lol Mar 06 04:45:17 Looks like bastard RGB_565 is the best I can do Mar 06 04:45:44 or....A_8 and just some trick to somehow get this into greyscale Mar 06 04:45:51 without overdraw :-/ Mar 06 04:52:57 anyone know if calling setText and setSource etc will check if the set is actually an update or just blindly re-set the same data? Mar 06 04:53:14 especially setText Mar 06 04:54:17 knapper_tech: nope. check the source. Mar 06 05:07:30 hey Mar 06 05:07:40 anyone to speed up android studio Mar 06 05:07:59 anyway* Mar 06 05:09:19 ludkiller get 16G memory, ssd Mar 06 05:09:31 I got 8GB Mar 06 05:09:55 8GB is quite some amount Mar 06 05:10:06 yeah that should be enough Mar 06 05:11:30 do i need to set the ACtionBar space? Mar 06 05:11:54 i am adding elements to it, but they all show up in the context menu regardless of how much spave is there Mar 06 05:16:05 How do I deauthorize my app after I get an oauth2 token for a google service?? Mar 06 05:16:23 So I've tried to get an oauth2 token but it threw a UserRecoverableAuthException, which caused me to fire off an intent and eventually have my app authorized. Now I want to undo that so I can test the authorization logic again Mar 06 05:23:08 can anybody recommend a cell phone sim unlock web service? Mar 06 05:24:17 phubarr,does that even exists ? Mar 06 05:26:05 certainly Mar 06 05:26:29 you're in a developer channel and you aren't aware of a sim unlocking service? Mar 06 05:28:16 no Mar 06 05:28:33 note how this is "Android application development" Mar 06 05:28:38 rather than #android Mar 06 05:29:10 or maybe not Mar 06 05:29:18 I haven't came across such service Mar 06 05:29:19 yet Mar 06 05:32:57 its ok... Mar 06 05:33:01 there are quite a few Mar 06 05:33:12 not to be confused with bootloader unlocking Mar 06 05:33:19 or rooting, obviously Mar 06 05:34:45 I have heard of services which provide bootloader unlocking Mar 06 05:34:59 that is a new one for me Mar 06 05:35:07 for htc one m8, Sunshine provides s-off services Mar 06 05:35:12 are you sure you aren't getting the two crossed? Mar 06 05:36:09 ahh ok Mar 06 05:39:04 How are SQLiteDatabase.insert() calls handled? There seems to be a slight delay between when I insert a row and when it becomes available for reading. I'm inserting a row, then sending an intent to my service that reads the row and performs an action based on it. But, it seems that I need to wait a few seconds before I trigger my service otherwise the row doesn't get read Mar 06 05:40:01 jerk is there like an update call or something you can do after the insert? to refresh the database or something Mar 06 05:43:00 Not that I see in the list of methods available in SQLiteDatabase Mar 06 05:50:52 Anyone finding Nexus 6 skin a little buggy. Launcher always crashes. Mar 06 06:05:43 Hi, android's internal dns-resolver or dns-client supports DNSSEC, or not ? if this command shows "AD" in answer flag then dnssec validation is enabled: dig @127.0.0.1 com. soa +dnssec Mar 06 06:06:04 * donniezazen wonders the benefit of using two shortcuts Ctrl+F11 and Ctrl+F12 when there are only two ways screen could rotate. Mar 06 06:07:28 quick question: I have an apk in alpha, trying to add products to my iap list, and it says I don't have any apks with the BILLING permission. I can look at my apk, and it does have that permission, both in my manifest and on the console. Mar 06 06:07:36 what am I doing wrong? Mar 06 06:08:05 alpha Mar 06 06:08:16 you need a release I think Mar 06 06:08:24 though saying it seems not quite right Mar 06 06:08:52 all the propaganda seems to say it should work Mar 06 06:09:06 I would think I could test that without just going live Mar 06 06:09:11 hmmm, cant remember but I had an issue similar or exact Mar 06 06:09:55 do you know Napalm? Mar 06 06:10:05 why I can't add products to an apk in alpha? Mar 06 06:10:28 I have the BILLING permission in my manifest, and it shows on the apk in the console Mar 06 06:53:07 Yay: https://android-review.googlesource.com/#/c/135501/ Mar 06 06:53:08 Merged. Mar 06 07:44:37 For the material light theme, what should the background color of the nav drawer be? Mar 06 07:51:39 why might I tag a view and provide tag indexes except to have multiple tags? Mar 06 07:51:52 use cases ever popped up? Mar 06 07:51:53 "@color/background_material_light" probably. Mar 06 08:08:12 http://tylerdavis.info/post/ngandroid-intro/ Mar 06 08:12:17 g00s is that website wordpress? Mar 06 08:12:28 no idea Mar 06 08:12:43 nm Mar 06 08:13:16 ngAndroid: horrible name. Mar 06 08:13:20 Looks interesting, though. Mar 06 08:22:21 I'm facing an issue with Android Studio, and think I might be barking up the wrong tree so far. In my project I have three modules; "app" and two others that it depend on. AS had no issue with this as long as they were Java-only, but once I added native code to the modules, it started shouting at me because some of the files it looks for in android.mk do not exist until one of the modules has been built Mar 06 08:24:19 but I seem unable to figure out how to make the module compile barely gets started at all before it stops since it can't find the *.so generated by one of the modules (which is then referenced by LOCAL_SRC_FILES in the "app"'s android.mk) Mar 06 08:24:55 well that was missing some text. *make "app" compile after the other module Mar 06 08:27:06 starting to wonder if the way to go might be to write a shell srcipt that does the compilation and copying of files, and having that run before the project compiles in AS, but it would feel somewhat dirty Mar 06 08:39:59 http://appleinsider.com/articles/15/03/05/oracle-bundles-askcom-adware-with-latest-java-for-mac-installer Mar 06 08:43:38 Ok, my properties editor of views disappeared. And when I got it back it does not seem to work... Mar 06 08:44:01 Eclipse is great for android programming right ? Mar 06 08:44:13 :) Mar 06 08:47:49 Is this the correct way to get the properties editor back ?: window->show view->other->general->properties ? Mar 06 08:48:09 It is not showing the properties of the stuff selected in the outline ... Mar 06 08:48:14 Just an empty window Mar 06 09:04:50 Why are you still on eclipse? Mar 06 09:20:31 Morning all! Mar 06 09:24:14 having rows with different layouts is a pita Mar 06 09:50:22 does anyone know if google analytics v4 tracks fragments automatically with activities? Mar 06 10:12:26 Hi ! I have two machin's installs of Android Studio in latest version with Oracle Java 7. But compilation blocks on one, not the other !!! This is when I try to compare an Object typed variable with false (obj_var != false) Mar 06 10:14:19 I'm okay that not necessary comparable, but how can one install accept that, and have it to work, while the other one with the close config refuses to compile it ? Mar 06 10:14:43 why are you comparing those two Mar 06 10:15:02 I must precise that I copied the project folder from the compiling one to the failing one ! Mar 06 10:15:40 Because I have a param with can be either String or Boolean ! Mar 06 10:15:55 sounds like some bad coding Mar 06 10:15:59 paste the code Mar 06 10:15:59 So I used the base type : Object Mar 06 10:18:25 desmin88: I'm no asking if this is "good" or "bad", but why Java can act different on two install, this is my concern ! Mar 06 10:18:47 then this isnt relevant to android development, try ##java Mar 06 10:19:13 Code : Object toto; if (toto != false) .... Mar 06 10:20:56 desmin88: So you're sure that a difference in Java install ? Not a setting in AS for example ? Mar 06 10:21:03 that's Mar 06 10:39:31 hackkitten: you around? Mar 06 10:46:22 desmin88: They don't understand too ! Mar 06 11:05:50 zebu1er: That code you pasted doesn't make sense. Mar 06 11:08:21 with sharedpreferences, is the saved data encrypted in any way? Mar 06 11:08:59 No. Mar 06 11:09:09 It's a plain-text XML file. Mar 06 11:09:21 But it's in your app's private directory. Mar 06 11:10:12 TacticalJoke: so no other app can read it? Mar 06 11:14:56 TacticalJoke: It worked ! Mar 06 11:38:26 vompatti, unless the phone is rooted, yea ;) Mar 06 12:17:42 hi guys Mar 06 12:18:10 I need some help with a problem and I've posted it on stackoverflow Mar 06 12:18:18 is it ok if I post the link here? Mar 06 12:20:16 johnny_and1: yes Mar 06 12:20:24 or just ask the question here as well Mar 06 12:23:49 http://stackoverflow.com/questions/28897487/why-does-my-application-randomly-crashes-with-sigsegv-when-it-tries-to-start-an Mar 06 12:29:57 hmmm Mar 06 12:41:39 Any headstarts on making a custom kernel for AOSP? Mar 06 12:58:20 wrong channel mtyamantau Mar 06 13:26:56 Hello.. I am trying to monitor http requests and responsed with xposed but i cannot figure out how to get the get/post data and the responses. so far i only could get the urls by hooking the java.net.HttpURLConnection constructor. Has anybody a helping idea? Mar 06 13:31:19 do you guise know a good camera lib for android ? Mar 06 13:31:31 or should I dev the implementation myself from scratch ? Mar 06 13:38:21 blusky: for requesting a photo using a camera app or for implementing your own camera app? :) Mar 06 13:39:08 implementing my own, I need some HUD, and I want it to look like the same (as possible) on all devices Mar 06 13:39:43 I already tried some intent for camera app, but it's a different app for nexus, samsung, motorola ... too hard to make something "clean" I think Mar 06 13:40:39 blusky: right, if you absolutely have to have your own hud then using the image capture intent wont work. Mar 06 13:41:16 i thought so :-) Mar 06 13:41:32 so in order to implement my own, should I do it from scratch, or is there some interesting lib. for that ? Mar 06 13:42:00 requiring the same camera look on all devices is a bit wonky imo since users are usually used to how the camera app of their choice looks and works :) Mar 06 13:42:03 (cause there's a lot of feature to concider: front/back cam., auto focus, flash, zoom...) Mar 06 13:42:18 blusky: don't forget bugs :\ Mar 06 13:42:30 appel1: snapchat have the same "feeling" for all devices, isn't it ? Mar 06 13:42:43 hmm Mar 06 13:42:50 there was a rather good camera lib Mar 06 13:42:59 this one: https://github.com/commonsguy/cwac-camera Mar 06 13:43:19 blusky: yes, and lots of apps tries to behave and look like their iOS counterparts as well. Doesn't mean it is a good idea. Mar 06 13:43:31 Mavrik: is there a "but" ? :D Mar 06 13:43:35 but if you are making your own camera app then of course it makes sense for it to look the same. Mar 06 13:44:45 blusky, um, not that I know of, I haven't used it Mar 06 13:45:00 blusky, implementing custom camera stuff is painful and sucks, so if it helps minimally you're way better off Mar 06 13:45:07 since there's ton of special cases depending on hardware device Mar 06 13:45:23 such as ? Mar 06 13:46:05 I just need front/back, flash and autofocus. I don't know if it's concidered as "hard" Mar 06 13:46:23 cwac-camera seems to handle it Mar 06 13:46:28 i'll try this one later :) Mar 06 13:51:36 trying to write a provider… “this file cannot be opened as a file descriptor it is probably compressed" - i’ve set aapt to not compress pdfs any other suggestions? Mar 06 14:07:18 Hey guys has anyone used the MediaCodec Encoder recently Mar 06 14:18:48 hi! Mar 06 14:19:33 anyone can help me? https://stackoverflow.com/questions/28899252/align-menu-itens-vertically-in-center?noredirect=1#comment46057923_28899252 Mar 06 14:19:54 do you give your updateMyObject() DB function an object constructed with the same values as it had before it had to be updated? Mar 06 14:22:19 cause inside update Im grabbing all the object's properties, meaning they will all be null Mar 06 14:22:30 if I update using that newly created object I think stuff will be overwritten Mar 06 14:23:25 its difficult to theorize like thise, there should be an easy way to look at the database of my app Mar 06 14:27:02 How to create listview dividers like these : http://material-design.storage.googleapis.com/publish/v_2/material_ext_publish/0Bx4BSt6jniD7QU52RF9tMlY1RUk/components_lists_keylines_two8.png Mar 06 14:27:33 view Mar 06 14:27:47 or some property given from the listview in xml Mar 06 14:27:52 I usually use a view Mar 06 14:29:38 not sure I understand Mar 06 14:30:28 yeah dividers android:divider Odaym Mar 06 14:31:21 I need them to start after the profile images like in the picture above. Mar 06 14:31:38 then you must use a view Mar 06 14:31:49 you set padding on the listview, everything will be padded, not what you want Mar 06 14:32:11 you want a view that appears at the bottom of the cell's layout, and it has padding left and right Mar 06 14:32:44 hmm, I was thinking a custom divider drawable could be created for that. Mar 06 14:32:55 whatever it is, it has to be in the layout of the cells Mar 06 14:33:04 oh Mar 06 14:33:16 no you can't set padding on the property of divider Mar 06 14:33:24 you'll end up setting the padding for the whole listview Mar 06 14:33:53 they have a view and they say to it "alignStart" of the textviews above it Mar 06 14:34:00 so it starts from that point and has match parent Mar 06 14:35:08 Odaym thank you Mar 06 14:35:27 ok Mar 06 14:42:34 yea im pretty sure that updating the DB with an object that's missing its properties will cause it to have null written to all those missing properties Mar 06 14:43:06 if you start a contentvalues object and do get on it from the object passed, get will result in null Mar 06 14:43:10 you break the universe Mar 06 14:43:54 Odaym: you can set the padding of a divider Mar 06 14:44:08 really? Mar 06 14:44:12 how, its a property Mar 06 14:44:19 never heard of another one called dividerPadding Mar 06 14:44:50 http://stackoverflow.com/questions/14054364/how-to-assign-padding-to-listview-item-divider-line Mar 06 14:45:00 duh Mar 06 14:47:10 you didn't answer yesterday Napalm, where do you work? Mar 06 14:47:13 just intersted Mar 06 14:48:04 Hey all Mar 06 14:48:10 Odaym: i have my own company Mar 06 14:48:16 ah Mar 06 14:48:25 ceo who is a coder Mar 06 14:48:28 recipe for success Mar 06 14:48:45 you 32 or something? Mar 06 14:49:13 Does anyone know off hand how to customize the Holo themes to get the little bar on the bottom of my CAB a different color? Mar 06 14:49:25 CAB? Mar 06 14:49:32 show picture Mar 06 14:49:51 Hold on a sec Mar 06 14:50:01 not that Im going to know it, but you should show a picture Mar 06 14:50:02 The contextual action bar Mar 06 14:50:14 Uploading screenshot to Dropbox Mar 06 14:50:17 a contextual action bar? Mar 06 14:50:27 you mean an actionbar that you've set a menu for? Mar 06 14:50:33 Odaym: he means ActionMode Mar 06 14:50:46 https://www.dropbox.com/s/dnhhxo0maplmmuk/2015-03-06%2008.50.12.png?dl=0 Mar 06 14:51:06 that's its name? I have that i just call it the actionbar Mar 06 14:51:11 For long pressing on an item Mar 06 14:51:12 of course its going to have actions in it Mar 06 14:51:21 that shows the text of the menu item Mar 06 14:51:25 I've always heard of contextual action bar Mar 06 14:51:35 yea you're right Mar 06 14:51:35 TechGeek01: did you look at any of the theme attributes? http://developer.android.com/reference/android/R.attr.html#actionModeBackground Mar 06 14:51:36 :P Mar 06 14:51:45 No Mar 06 14:51:52 well then.. go do that Mar 06 14:51:53 :P Mar 06 14:51:55 I wasn't aware it was refered to as ActionNode. Lol Mar 06 14:52:55 TechGeek01: if you want to use it with AppCompat remember the attributes are without the "android:" prefix Mar 06 14:53:51 that causes the items to go into the overflow Mar 06 14:54:02 I'm not manupulating the items Mar 06 14:54:25 That colored band at the bottom (the green one), I'm looking to change the color of that Mar 06 14:54:37 And that's the aaccent bar at the bottom, not the whole bar itself Mar 06 14:54:49 that's with the theme Mar 06 14:54:51 change the theme Mar 06 14:55:06 thanks for the divider padding Napalm Mar 06 14:55:06 Odaym: ive already stated that Mar 06 14:55:18 Is it? Mar 06 14:55:41 Does Speech to Text API always work offline or does it ever need a connection Mar 06 14:58:28 how do i get these distributed evenly? http://pastebin.com/TvW3Pw9G <-> http://i.imgur.com/spDItKL.png Mar 06 14:58:57 ahhhh Mar 06 14:59:03 crashes KitKat Mar 06 14:59:03 lol Mar 06 14:59:29 Aby udea wgy http://i.imgur.com/09dEr9f.png happens? Mar 06 14:59:42 Any idea why* Works in another project. Mar 06 15:00:09 repos are all there Mar 06 15:00:57 Moter8, is the project only published in jcenter Mar 06 15:01:02 and you have mavencentral added? Mar 06 15:01:11 tried w jitpack too Mar 06 15:01:55 Ah, I think I know, I had added it to repositories {} but not to buildscript{} Mar 06 15:02:00 gradle is weird Mar 06 15:02:08 TechGeek01: figure it out yet? Mar 06 15:03:13 Moter8, yeah, because it uses different repositories for dependencies it needs to build and dependencies that go into end artifact: ) Mar 06 15:03:57 AS now gave up Mar 06 15:04:06 Napalm: Nope Mar 06 15:04:09 gah Mar 06 15:04:27 There's tons of docs on styling an action bar, but not really anything on styling a CAB Mar 06 15:04:46 CAB? Mar 06 15:04:59 The contextual action bar Mar 06 15:05:04 arg Mar 06 15:05:09 he means ActionMode's Mar 06 15:05:10 For context on long clicks Mar 06 15:05:38 never heard of that :D Mar 06 15:06:00 the docs have it wrong anyway Mar 06 15:06:33 Lol Mar 06 15:07:20 Moter8: I was trying to take https://www.dropbox.com/lightbox/home/Camera%20Uploads and change the green hairline at the bottom of the ActionMode to some other color Mar 06 15:07:50 TechGeek01, wrong link Mar 06 15:08:09 https://www.dropbox.com/s/dnhhxo0maplmmuk/2015-03-06%2008.50.12.png?dl=0 Mar 06 15:08:12 Lol whoops Mar 06 15:08:53 Oh now i get it Mar 06 15:10:07 http://i.imgur.com/WKFVTL3.png :( Mar 06 15:10:28 And there is documentation on the action bar styling, and how the same properties can be applied to the ActionMode, but not anything on that little hairline Mar 06 15:10:36 and stopping this makes AS unresponsive Mar 06 15:11:09 Dang Mar 06 15:12:16 is there really no way to get file creation time in Android? Mar 06 15:12:23 I don't want lastModified() Mar 06 15:13:28 ctime is not creation time Mar 06 15:15:06 and I suppose the answer is no Mar 06 15:15:20 so Android does not track file creation time Mar 06 15:15:53 MooGoo, on which filesystem? Mar 06 15:16:01 use fstat in jni Mar 06 15:16:11 access ctime Mar 06 15:16:22 and no, ctime is still not creation time Mar 06 15:16:35 Linux does not track creation time Mar 06 15:16:45 Mavrik: hm? just a file saved to internal storage Mar 06 15:16:53 well. Mar 06 15:17:01 MooGoo, that depends on filesystem on the device and if it stores that. Mar 06 15:17:05 Alot of them don't. Mar 06 15:17:10 I suggest you find another solution ;) Mar 06 15:17:59 one hack I saw was to call "stat" from the shell Mar 06 15:18:06 but I suppose that would just return ctime Mar 06 15:18:52 linux doesn't generally track that, so, no Mar 06 15:18:58 posix filesystems do not have creation time Mar 06 15:19:01 period Mar 06 15:19:28 ctime is close, though Mar 06 15:20:30 hey guys… im trying to download a file, and i changed my code to use BufferedReader. How can i save the downloaded content? i was using byte[] buffer and input.readLine() reads String: http://paste.ofcode.org/RjQ2p2hpzPbGbLDT5hhJpa Mar 06 15:24:42 hey all Mar 06 15:24:47 I need some help plz Mar 06 15:24:56 use reader for text data, not. binary Mar 06 15:26:08 I want to make an app like a digital magazine Mar 06 15:26:14 what do I need to do ? Mar 06 15:26:38 write it Mar 06 15:27:12 yes but I dont know how to push data Mar 06 15:27:21 where to save data in order to be pushed Mar 06 15:27:34 what layout to use that is like flipboard app Mar 06 15:27:46 Hi guys Mar 06 15:27:53 I have a noobie question. Mar 06 15:29:22 say I have a large image of a complex table I would like to embed into an acitvity. It contains too many rows and columns to be clearly read on a phone. So my plan is to have an activity which contains some sort of mystery control which would allow the user to pinch and zoom the large image. Mar 06 15:31:04 what's the easiest way to display a high resolution image, with the ability to zoom. Mar 06 15:31:17 w/o learning. Mar 06 15:34:27 any help ? Mar 06 15:34:37 how can i force my download to read/save an UTF-8 file?? http://paste.ofcode.org/364d2kRrNy3wUTLqhb3R4N2 Mar 06 15:38:08 luist, http://stackoverflow.com/a/17145587/1473536 Mar 06 15:39:05 quinnjn: can i download images using string? Mar 06 15:39:34 quinnjn: you will need an http client likely Mar 06 15:39:42 s/quinnjn/luist/ Mar 06 15:39:53 luist, you can. Why do you want to though? there are tons of libraries out there to handle that for you.. Mar 06 15:40:28 quinnjn: basically, download a file and save in Context.MODE_PRIVATE Mar 06 15:41:29 luist, Looking at your code you're trying to get a XML file. Why not just use a library that loads a XML file? Mar 06 15:42:45 hey guys, can i use account manager to save a token(a string which makes web request), and if user clears app data, that string is removed too ? Mar 06 15:44:48 sci-fi: if you store it in your apps directory then yes Mar 06 15:46:01 any help how to do app like flipboard app where should I save data and what method to use to push data Mar 06 15:46:52 quinnjn: im using one to parse a xml, not to download it Mar 06 15:47:43 quinnjn: well the code is working, except that id like to force utf-8 because the encoding seems wrong Mar 06 15:48:46 luist, what are you using to parse? Mar 06 15:49:15 luist, pretty sure jsoup offers downloading of the XML Mar 06 15:50:15 :( there are much better options than jsoup Mar 06 15:50:44 quinnjn: javax.xml.parsers.DocumentBuilder Mar 06 15:51:13 wondering if android studio permits that i write openGL codes ? Mar 06 15:51:17 yiati, examples? I've only ever used jsoup/BeautifulSoup Mar 06 15:51:31 quinnjn: Retrofit + Simple Mar 06 15:51:55 http://simple.sourceforge.net/ Mar 06 15:52:03 which retrofit supports Mar 06 15:52:13 hey guys, has anyone used TYPE_ROTATION_VECTOR for sensors? I have the result coming in ok, but it seems that the x and y are reversed Mar 06 15:52:40 yiati, neat. I'll have to check this out in the future Mar 06 15:53:19 i figured using using any tool such as openGL is very tedious and time consuming.. Mar 06 15:53:46 like making a simple triangle takes about 60 or more lines of code Mar 06 15:54:00 yoLo_, yeah. The GF is in her last year of CS and is struggling but enjoying openGL in a graphics class Mar 06 15:54:14 and 3D is even worse how do people even manage to make games with this, damn Mar 06 15:57:25 quinnjn: have you done any openGL ? Mar 06 15:57:50 yoLo_, I tried drawing a triangle way back (3-4 years ago) and failed pretty hard Mar 06 15:58:13 can universal image loader deform image bytes ?, because i have to check image byte array hash data Mar 06 15:58:44 yoLo_, use a library, like gdx Mar 06 15:58:52 gl is painful Mar 06 15:59:02 uil bitmaps generated different hash, so it deforms i guess. anyone got a idea ? Mar 06 15:59:08 *an Mar 06 16:01:34 so seriously, what type of tools do android game developers uses ? other openGL ? Mar 06 16:01:50 other than openGL* Mar 06 16:01:57 unity, gdx, et Mar 06 16:01:58 c Mar 06 16:02:17 yoLo_, I made a makeshift pong game using libGDX Mar 06 16:02:24 2D though Mar 06 16:03:31 so unity works Mar 06 16:05:34 I have a friend dabbling with unity Mar 06 16:05:52 IIRC, there are some licensing required for mobile Mar 06 16:06:13 i see Mar 06 16:06:30 nope :) not with unity 5 i guess Mar 06 16:06:34 huh Mar 06 16:06:37 OpenGL is fun :) Mar 06 16:07:00 it's not that hard once you actually read the docs... the API is crappy though, alot of boilerplate Mar 06 16:07:02 Unity 5 Professional customers who earned/received less than $100,000 in revenue/funding in the previous fiscal year can deploy with included iOS and Android support with the Personal Edition splash screen. Mar 06 16:08:49 Mavrik: ridiculously tedious = openGL Mar 06 16:09:22 yeah, tedious is not fun Mar 06 16:10:12 i saw a simple 3D wood box made with openGL and that was 400 lines of code Mar 06 16:10:30 just the box alone Mar 06 16:13:29 MarkyC_, how did that quadrant image drawable workout for you? Mar 06 16:28:10 Hi, I wrote this last night, but I am in desperate need of an ADT-1 Developers cable. Does anyone have one they would sell? When I received my ADT-1 it did not come with one Mar 06 16:30:42 is it not some existing form of cable you can just buy at the store Mar 06 16:32:30 unity 3d can be written in java right ? Mar 06 16:32:35 or only c# ? Mar 06 16:32:41 yoLo_ c# or Javascript Mar 06 16:32:49 you're prob better off using c# Mar 06 16:33:17 yiati: cable looks like this http://www.3dnews.ru/assets/external/illustrations/2014/12/08/906400/Cable.JPG Mar 06 16:33:21 some funky y-cable Mar 06 16:33:46 its like 1 mini 8pin usb / and 2 usb-a ends Mar 06 16:33:52 cant find anyhting like it Mar 06 16:34:22 I imagine startech would have something Mar 06 16:34:27 android supports C# Mar 06 16:34:39 i only know of java and perhaps python Mar 06 16:34:42 i looked at a few startech hdd cables Mar 06 16:34:47 couldnt find an 8 pin Mar 06 16:35:45 sitedude: monoprice might, they have tons of cables Mar 06 16:36:14 sitedude, can you use adb over ip to connect to it? Mar 06 16:36:39 sitedude, normal usb should work, the extra end is to increase current Mar 06 16:36:42 ya that works, problem is tho Wifi is not enabled at startup so it makes it impossible to root Mar 06 16:37:27 pfn: how would i increase current to power it tho Mar 06 16:38:14 sitedude, you don't have to root it https://developer.android.com/tv/adt-1/index.html#setup Mar 06 16:39:46 I am trying to get that parallax scrolling effect when scrolling like in the news stand app. Anyone know a way to do this or a library ? Mar 06 16:41:08 What i am trying to do is on the second image : https://github.com/ksoichiro/Android-ObservableScrollView/ But i don't understand how to implement this library at all ( new to android :S :/ ) Mar 06 16:41:33 sitedude, so a normal cable doesn't work at all? Mar 06 16:41:41 no :( Mar 06 16:41:50 think it supplies extra voltage not sure Mar 06 16:42:19 needed to root it so i could use extra usb storage Mar 06 16:47:31 hi Mar 06 16:47:37 hi john Mar 06 16:47:58 Odaym: hi , problem solved Mar 06 16:48:12 good! Mar 06 16:49:28 yeah, need to publish now on the google play hehehehehe Mar 06 16:50:33 its publishable? Mar 06 16:50:40 test for 1 week first, really Mar 06 16:52:45 Odaym: yeah,i have it on my tablette and phone Mar 06 16:52:54 tablette Mar 06 16:52:55 lol Mar 06 16:53:25 john67, what is the app? Mar 06 16:53:40 quinnjn: its not publish yet Mar 06 16:53:45 Hi. Is there a correct orientation for landscape mode? Mar 06 16:54:17 john67, what is the idea of it though Mar 06 16:54:31 quinnjn: is a simple app, to share info Mar 06 16:54:39 sounds useful bro Mar 06 16:55:03 john67, if you want some feedback / testing post a crashlytics beta link Mar 06 16:56:32 panda81: What options are there for a "correct" orientation in landscape mode? Mar 06 16:56:44 landscape mode is an orientation Mar 06 16:59:17 Is there a way to hide something based on a condition in my layout/menu xml? For example, I only want some button to be visible if a debug flag has been set somewhere in my application (either at runtime or designtime -- doesn't matter which) Mar 06 17:01:44 Good mornin' Mar 06 17:01:48 oh Mar 06 17:03:03 yea jerkface03 Mar 06 17:03:06 Im doing that now :P Mar 06 17:03:10 ..right now Mar 06 17:03:26 Odaym: figure it out yet? if so, please share :D Mar 06 17:04:04 I asked last night, and spent a while trying to hack it, but, is there an easy way to see if theActionBar is in Split mode? Mar 06 17:04:10 its too simple, I cant tell you Mar 06 17:04:27 :X Mar 06 17:04:34 not ask worthy Mar 06 17:09:55 hey guys, anyone know how to correct the TYPE_ROTATION_VECTOR for different orientations? It's fine in portrait, but x and y axis are swapped in landscape Mar 06 17:09:57 really stumped Mar 06 17:10:54 I'm sure I've found the solution in the Nvidia tegra whitepaper, but just not working right Mar 06 17:12:34 imagine if you programmed the way this guy plays the guitar https://www.youtube.com/watch?v=8B6jOUzBKYc Mar 06 17:12:37 yiati: my app is landscape. Some user reports it's upside down. Mar 06 17:13:32 yiati: like you said I don't know why whether 'landscape left' or 'landscape right' is considered upside down Mar 06 17:25:10 any of you guys use rxjava ? Mar 06 17:29:13 Jitpack broken for anybody else? Cant get anything to download/compile Mar 06 17:32:59 quinnjn: Plenty of people in here do Mar 06 17:33:36 http://i.imgur.com/JeRHaCJ.png lool Mar 06 17:33:54 panda81: http://stackoverflow.com/questions/12059447/screen-orientation-landscape-upside-down-why Mar 06 17:34:02 panda81: What's your minSdk Mar 06 17:34:05 I'm trying to figure out cache() for a web request observable, but it's not working for me. Mar 06 17:35:50 yiati: reported were on 4.x devices. Mar 06 17:36:18 yiati: I see the thread though I have a hard time visualizing Mar 06 17:37:58 Regexes get out of hand so quickly. Mar 06 17:47:58 panda81: Dunno, you need to be able to repro to fix it. minSdk would still be something to look into though, just because someone reports something on a certain OS doesn't mean that bug couldn't have happened to them on a different device with a different OS. Probably not the case here, but something to keep in mind Mar 06 17:48:55 TacticalJoke: yep, but at least they are fun! Mar 06 17:49:09 and they are finite state machines so that is always nice Mar 06 17:49:23 Yeah, they are definitely fun. :) Mar 06 17:56:10 When I press the "App button" (the white circle with the six dots in it) on my Nexus 5, the app picker with all the apps opens. A small animation morphs the circle to a square window that fills the screen. Anyone know how to make something like this? I suppose is some Material feature. Mar 06 18:01:11 how can i get SharedPreferences in Application subclass? Mar 06 18:02:36 gitr: getApplicationContext().getSharedPreferences(...) maybe? Mar 06 18:05:03 Zta its throwing NPE. I think getApplicationContext returns null here. Mar 06 18:05:50 gitr, where are you accessing the SharedPreferences? Mar 06 18:06:12 isnt it application constructor, is it? Mar 06 18:06:31 it shouldn't be in the constructor, onCreate or later in the lifecycle Mar 06 18:06:42 eeyup Mar 06 18:07:13 in the constructor of the subclass. I also tried to get them in onCreate method but still they are returning null. Mar 06 18:07:41 after super.onCreate ? Mar 06 18:07:56 context shouldn't be null after super.onCreate Mar 06 18:10:51 oh yes....its working now. I think i omitted the call to super earlier!! Thanks quinnjn Mar 06 18:11:06 np dude Mar 06 18:11:13 You don't need "getApplicationContext()" in an Application subclass, BTW. Mar 06 18:11:20 Just "getSharedPreferences(...)". Mar 06 18:11:28 ah Mar 06 18:11:49 TacticalJoke, are you @TacticalJoke on twitter? Mar 06 18:11:54 Nah. Mar 06 18:12:12 hm? Mar 06 18:12:29 Are you TacticalJoke from the TacticalJoke gaming forums? Mar 06 18:12:33 sigh Mar 06 18:12:40 just say yes if it is so Mar 06 18:12:53 I'm neither of those people. This name seems strangely popular. Mar 06 18:12:55 TacticalJoke: Are you a Tactical Joke? Just say so if so plz. Mar 06 18:13:01 >.> Mar 06 18:15:47 I'm getting a "Rendering Problems" error with the Preview pane in Android Studio? any one faced this? Mar 06 18:16:13 TacticalJoke, I wanted to tip you 2 dollars or so, but if you cant confirm that is your twitter handle it'll be difficult^^ Mar 06 18:16:48 What are you even talking about. Mar 06 18:17:11 tipping you via changetip in bitcoins Mar 06 18:17:15 the wizard money Mar 06 18:19:56 l0pher, click the refresh button Mar 06 18:20:14 --> http://i.imgur.com/A9uw3l0.png Mar 06 18:21:30 you think I'd not have done that? :-), Moter8 Mar 06 18:21:59 change themes? it worked for me Mar 06 18:23:35 I tried quite a few ones, but all in vain Mar 06 18:25:57 morning Mar 06 18:26:24 g00s, something something harrison ford flying SOLO Mar 06 18:26:46 He could make a movie about that. Mar 06 18:26:50 "Based on a true story." Mar 06 18:27:17 Dont think Ford wants to make a movie about a senior moment he had while flying a plane over a golf course ;p Mar 06 18:27:56 Is there a way to implement that scrolling header like in the googles Newsstand app ? Mar 06 18:28:25 horizontalscrollview and a handler? Mar 06 18:32:05 someone should make a game, FlappyFord Mar 06 18:32:39 hey is there an file explorer object I can implement into my app? Mar 06 18:32:44 yoLo_, if you're still in here I have a game idea for you Mar 06 18:38:37 I'm having trouble with my linear layouts.. I'm building a simple calendar. I have 7 horizontal linear layouts for each day of the month. I want a row above that spans the entire width (to show the name of the month), but can't seem to get it to show up. Disappears when I try to put a full row at the top. http://pastebin.com/0CfRv700 Mar 06 18:39:54 Hmm, on Android, \w is equal to [\p{Ll}\p{Lu}\p{Lt}\p{Lo}\p{Nd}], but on Java \w is equal to [a-zA-Z_0-9]. Mar 06 18:40:41 Surprised to see a difference here. Mar 06 18:41:30 what's it do, quinnjn ? Mar 06 18:41:44 FlappyFord Mar 06 18:41:53 yea what is it about Mar 06 18:41:56 "Harrison is having a elder moment, keep him up in the air" Mar 06 18:42:04 blndidiot: Can't you use a GridLayout or something? Mar 06 18:42:08 nice Mar 06 18:42:19 with the face of Harrison and like a little bird body? Mar 06 18:44:50 with cute little X.X eyes Mar 06 18:44:53 why dont you make it man Mar 06 18:44:57 maybe a tongue sticking out Mar 06 18:45:20 pick up Corona SDK Mar 06 18:45:25 1 night, flappy bird clone Mar 06 18:46:06 or you could just leave Mar 06 18:46:14 TacticalJoke: i was originally using a TableLayout and saw someone suggest using linearlayouts instead, not sure if that's the best course of action or not Mar 06 18:46:20 i want to create the actionBar with theme.xml , but it doesnt create it, this is the theme.xml http://pastebin.com/qcfrNimq i took it from the doc https://developer.android.com/training/basics/actionbar/styling.html Mar 06 18:46:56 Using seven LinearLayouts for a calendar? Doesn't sound great, to be honest. Mar 06 18:47:15 I'll try going back to the tablelayouts I guess Mar 06 18:47:45 What about GridLayout? Mar 06 18:48:13 I didn't know that existed, I'll check into it Mar 06 18:48:13 thanks Mar 06 18:50:42 this is the second time I face this, unsure if I want to approach it in the same way I did the first time Mar 06 18:51:04 I have a listview with little checks in each cell, depending on the state of the object in each cell, the checks show or dont Mar 06 18:51:18 do you also set a "checkmark_shown" property on the object? Mar 06 18:51:28 if object.isCheckMarkShown() Mar 06 18:54:46 I want to make an activity only show up at the first time it has been started -- just like on some google apps Mar 06 18:55:15 I tried doing some SharedPreferences boolean that would start the real activity but it was always visible that it was changing activites Mar 06 18:55:32 the first time the app has been started* Mar 06 18:55:44 TacticalJoke: Yeah.. doesn't look like I can use a gridlayout either if I want to have all the day columns to fill the width of the screen. Mar 06 18:55:58 TacticalJoke: Documentation suggests linear layouts too: ""GridLayout does not provide support for the principle of weight, as defined in weight. In general, it is not therefore possible to configure a GridLayout to distribute excess space in non-trivial proportions between multiple rows or columns ... For complete control over excess space distribution in a row or column; use a LinearLayout subview to hold the components in t Mar 06 18:57:36 When your fragment becomes 1100 lines... Mar 06 18:57:45 you’re gonna have a bad time Mar 06 18:57:50 ouch Mar 06 18:58:03 It started as an experiment.. Mar 06 18:58:03 "fragment" Mar 06 18:58:10 ha Mar 06 18:58:11 haha Mar 06 18:58:15 MainFragment Mar 06 18:59:12 gotta split this up.. Mar 06 19:02:21 I find having 8 tabs in a method weird :D Mar 06 19:13:49 mh Mar 06 19:15:38 back Mar 06 19:22:23 has anyone on mac installed jdk 8 u 40 ? did they notice ask.com toolbar getting installed on their system? Mar 06 19:22:43 http://www.zdnet.com/article/oracle-extends-its-adware-bundling-to-include-java-for-macs/ Mar 06 19:23:20 g00s: I thought they always had that little box there defaulted to be checked Mar 06 19:23:31 i never saw it on mac Mar 06 19:23:45 I did see it on Java 8 at least Mar 06 19:23:47 on mac Mar 06 19:23:50 huh Mar 06 19:23:53 why did you install java 8? Mar 06 19:23:53 I thought I did on 7 Mar 06 19:24:18 to have the latest and the greatest Mar 06 19:24:34 the latest and greatest ask.com toolbar that is :) Mar 06 19:24:36 lambda powers, method references, streams Mar 06 19:24:49 :P yeah it's bs they have that there Mar 06 19:25:17 android still doesnt support it Mar 06 19:25:22 yeah I know Mar 06 19:25:36 You can use java 8 Mar 06 19:25:42 while building with Android Mar 06 19:25:53 ahaha this is funny, about android waitch and wearables : "The vertical model is just fundamentally better to introduce new product categories," said one executive with a company making an Android watch. Mar 06 19:26:54 they were speaking of apple of course Mar 06 19:36:19 TIL: @string/recursive results in e.g. "@2174658273" when you getString(R.string.recursive) Mar 06 19:39:36 but all resources are ints.. Mar 06 19:39:54 ah no you used getString Mar 06 19:44:33 yeah. and it's "@"-prefixed, which just seems random to me Mar 06 19:45:30 this was shortly after discovering that you can @string/other_string to 'reuse' strings with contextual names. immediately after announcing this discovery at work, I got requests to try recursive and cyclical-reference arrangements :) Mar 06 19:46:16 (e.g. Yo! + @string/a + getString(R.string.b) = "Yo!" Mar 06 19:47:38 which is both neat, and slightly disturbing. I mean, I guess it's "just" a resource like any other, but it's a _string_. probably quoting it fixes that. Mar 06 19:52:23 hm good stuff. TIL http://blog.danlew.net/2015/03/02/dont-break-the-chain/ Mar 06 19:54:29 Hi, what is/where is the best way to comment on Android Studio being inaccessible to screenreaders? I found this bug but cannot comment: http://code.google.com/p/android/issues/detail?id=82716 Mar 06 19:55:32 I am getting the 'failed to find Build Tools revision 19.0.3' error when building with gradle, but I have confirmed that ANDROID_HOME is correctly set and that version of platform tools is indeed installed.. can anyone suggest of what else can be causing this? Mar 06 19:58:25 yan_, it doesnt answer your question, but why are you not using the 21 SDK? Mar 06 19:58:57 Moter8: a few reasons, a) have an existing code base that i'm trying to get building, b) want to target an older API level Mar 06 20:01:39 A slightly verbose problem I'm having trouble figuring out how exactly to approach. http://pastebin.com/YCEhyUdS Mar 06 20:05:42 g00s: yeah I read that, I've been wondering why something like that isn't bundled right into RXAndroid Mar 06 20:06:06 but it looks like there is a RXJavaTools and RXAndroidTools package he was talking about that might have them so that would be neat Mar 06 20:08:17 Good day everyone. Mar 06 20:09:29 I have a perfect scope question. How many, skilled, developers would it take create an app in the scope of Yelp in under 6 months? Mar 06 20:09:38 Project scope* Mar 06 20:09:38 g00s: ah there it is, one of his comments, "I'd use the RxJavaPlugins (and soon-to-exist RxAndroidPlugins) to make all schedulers immediate." Mar 06 20:09:50 yiati yeah saw that Mar 06 20:10:15 I love how Flickr fails so badly at its basic function: displaying images. Mar 06 20:10:22 By 'love' I mean 'hate'. Mar 06 20:10:50 almost everything struggles with images on android Mar 06 20:11:03 Oh, I meant the site. Haven't tried the Android app yet. Mar 06 20:16:04 totally offtopic: http://www.jqueery.com/ Mar 06 20:16:59 TacticalJoke: the recent app update makes it actually decent. it was pretty painful before. Mar 06 20:18:34 lol Moter8 why is it incomplete? Mar 06 20:18:43 oh lol just clicked Mar 06 20:19:44 Is anyone interested in working on a yelp type app? Im looking for a team to create a price estimate proposal. Mar 06 20:20:22 dauntless26, yelp does price estimation? Mar 06 20:20:32 No. Lol Mar 06 20:21:05 I want to find a team so i can propose an estimate is the production cost to the client. Mar 06 20:21:12 Of* Mar 06 20:21:57 " No bots, and no advertising please, jobs or otherwise" Mar 06 20:22:17 yeah, no job advertising please :) Mar 06 20:22:22 I'm not advertising. Mar 06 20:22:28 yes, you are Mar 06 20:22:33 I'm just inquiring Mar 06 20:22:43 Ok. I apologize Mar 06 20:23:13 Afzal, hahaha Mar 06 20:23:21 Where would be an appropriate place to inquire about this? Mar 06 20:23:46 Craigslist Mar 06 20:23:50 freelancer job sites? Mar 06 20:23:52 "I want to make another yelp" seems like a bad idea. Mar 06 20:24:03 But: /r/forhire and other sites Mar 06 20:24:05 recruiting agencies? Mar 06 20:24:17 linkedin? Mar 06 20:24:17 Ok. Thank you guys. Mar 06 20:24:41 http://www.reddit.com/r/shittykickstarters Mar 06 20:25:04 lol Mar 06 20:25:58 Afzal, the site was obviously a parody on jquery crap: interferring with scroll&click behaviour, etc Mar 06 20:27:01 that's not what it was Mar 06 20:27:04 but it was funny Mar 06 20:27:16 well that's half of what it was Mar 06 20:27:36 dauntless26, http://www.reddit.com/r/androiddev/comments/1swj53/best_place_to_hire_android_devs/ Mar 06 20:28:18 that we work remotely site looks interesting Mar 06 20:49:08 Hey All, I'm having trouble identifying a fix for an issue. Basically on some devices I'm receiving an error for my onBackPressed and most recently I received the following Exception for "Fragment Already Added" http://pastebin.com/DL3z6jyH. Here is the code for my onBackPressed and the method that executes when someone is click items in my navigation drawer: http://pastebin.com/TP9GkxpG Mar 06 20:50:57 I guess I'll try asking again: http://pastebin.com/YCEhyUdS Mar 06 20:51:02 The exception seems to be triggered by the super.onBackPressed() Mar 06 20:53:19 codepete: hm. not sure, but could your setItemChecked be changing fragments? Mar 06 20:54:06 newbQ, I read your pastebin. Try start out with figuring out how to generate a TimePicker with a unix timestamp and go from there. Mar 06 20:55:50 quinnjn: just set a Calendar to the timestamp, then grab the hour minute and AP_PM from that. Mar 06 20:55:59 groxx: Currently, any menu item clicked triggers my selectItem() method. setItemChecked only changes the state of the Navigation Drawer. Mar 06 20:56:03 thats the easy part Mar 06 20:58:27 newbQ, k cool. GridView takes in an adapter so build a ListAdapter that generates your TimePicker views with the data. Mar 06 20:59:53 quinnjn: but I need to get those TimePickers and a button into a TableRow first Mar 06 21:00:54 Finished my first android app today. Pretty satisfied with myself :P Mar 06 21:01:06 jerkface03, nice man. What's it do? Mar 06 21:01:11 jerkface03, link? Mar 06 21:03:55 An app is NEVER finished imo :D Mar 06 21:11:32 'lo. is there a way to completely unambiguously have a method called *once* when a view goes offscreen, and *once* when a view comes onscreen, in a ListView or GridView? the adapter getView method may be called any number of times by ListView and GridView, and the same apparently applies to the RecyclerListener (and the methods may be called in arbitrary orders too!) Mar 06 21:13:54 rmk0, what are you wanting it to do? Mar 06 21:14:07 call analytics or something that the data was shown? Mar 06 21:15:29 i have a gridview where each element has some state that needs to be preserved (so there are N views for N adapter items, as opposed to the usual M views for N adapter items, where M is some fixed number roughly equal to the number of cells visible onscreen) Mar 06 21:15:55 but at the same time, those cells contain images that need to be pushed out of memory when a view goes offscreen, and pulled back in from disk when the view comes back Mar 06 21:16:04 otherwise i run out of heap for large lists Mar 06 21:16:31 for the second part, just use picasso for image memory management imo. Does it all correctly and efficiently. Mar 06 21:18:10 is there a command in AS that is the equivlent to "ctrl+ shift+ f" on eclipse? Mar 06 21:18:18 the one that formats code correctly Mar 06 21:18:20 i'll consider it, but i don't think i can integrate it right now (have a release due in a while, and it'd involve changing quite a few things) Mar 06 21:18:44 DadFoundMy: ctrl+alt+l Mar 06 21:18:49 or code->reformat code Mar 06 21:18:53 JesusFreke: thanks Mar 06 21:19:23 ctrl+alt+l Mar 06 21:19:32 ctrl+shift+f searches Mar 06 21:20:01 ctrl+alt upArrow or downArrow moves lines up/down Mar 06 21:20:31 alt+enter opens the "hint" thing Mar 06 21:21:11 there should be a format on save if you wish as well. Mar 06 21:21:42 Moter8: i use a vim plugin for most of that Mar 06 21:21:45 I have this bad habit of saving super randomly though, and it screws up the formatting Mar 06 21:21:49 rmk0: I think by default they will be eligible for garbage collection if you're doing things right (i.e., not holding onto those bitmaps). Mar 06 21:21:50 Ah I see Mar 06 21:22:12 Moter8: the move line up/down is pretty interesting though Mar 06 21:22:16 TacticalJoke: that's the main reason i need to know when a view leaves the screen, so that i can detach the views Mar 06 21:22:31 Detach them from what? Mar 06 21:22:46 detach the image views from the layout inside a ListView or GridView cell Mar 06 21:22:48 So I can't seem to find any meaningful documentation on .onResume for auto refreshing a ListView Mar 06 21:23:32 rmk0: Why do you need to do that manually? Doesn't ListView/GridView already do that? Mar 06 21:23:33 I'm looking for a finish() from a child activity, and then I'm looking to refresh the list of data pulled from the database, but I'm not sure how to go about doing that Mar 06 21:24:02 TechGeek01: onActivityResult Mar 06 21:25:15 I saw something about that, but was a bit confused as to how to work with the result from an activity Mar 06 21:26:21 You don't have to do things in any particular way. That method will be called every time the startActivityForResult activity finishes. It can just be a cue. Mar 06 21:27:20 Hmm Mar 06 21:27:55 onResume doesn't sound like what you want -- that runs *every* time your activity shows. Mar 06 21:28:03 Okay Mar 06 21:28:14 Yeah onActivityResult is a good choice Mar 06 21:28:42 Anyone know how to force a file read from a USB-connected mass storage device to go to the actual device and not get it from file system cache? (NDK or java is both fine, I am writing this in C) Mar 06 21:28:48 posix_fadvise doesn't seem to be working Mar 06 21:28:54 I take it I can tack a .putExtra onto the end of a startActivityForResult? Mar 06 21:29:16 putExtra on the Intent. Mar 06 21:29:34 Ah. Right. Read my typing wrong. Mar 06 21:30:14 What do we do for the result request? Mar 06 21:30:22 If I'm migrating from a startActivity Mar 06 21:30:55 Not sure if "result code" or "request code". Mar 06 21:31:09 requestCode Mar 06 21:31:32 Make sure it's greater than or equal to zero. Mar 06 21:31:36 It doesn't really matter much. Mar 06 21:32:26 And then if I need to load a ListView, I can put all that crap in a function, and call the function when we first create the activity, and onActivityResult? Mar 06 21:32:47 Nope, that's not allowed. Mar 06 21:32:52 Just kidding. :D Mar 06 21:33:01 XD Mar 06 21:33:05 Yes, that's everyday Java/programming/whatever. Mar 06 21:33:18 And will simply reassigning a listAdapter to a ListView redo the eleements, or do I have to clear the old first? Mar 06 21:34:06 I wouldn't reassign the ListView's adapter. You can simply tell the adapter about the new data and call notifyDataSetChanged. Mar 06 21:34:17 Alright, Mar 06 21:35:45 look at my horse, my horse is amazinggg Mar 06 21:36:29 Also, how do I remove a bookmark in AS? Mar 06 21:36:38 TechGeek01: About your method question -- note that it's good practice to put separate stuff into separate methods regardless of duplication and so on. Mar 06 21:36:43 I somehow accidentally made one, and it's bothering me Mar 06 21:37:13 Ctrl+Shift+A --> bookmark Mar 06 21:37:37 if I want to have settings and different settings result different amount of buttons, should i have different xml for them or if there's other concept what is the term i should use to google help Mar 06 21:37:38 I have a TableRow layout with 2 textviews. how do I add this to an adapter and change the text fields of both the TextViews in a loop? Mar 06 21:38:08 My God that's convenient. Lol Mar 06 21:40:27 TechGeek01: Yep it helps you learn shortcuts nicely too Mar 06 21:41:29 newbQ: Associte data with adapters not views Mar 06 21:42:14 i dont always bookmark, but when i do, i never go back to that page again Mar 06 21:42:38 hmmp: It depends on the exactly details. We can haz more details? Mar 06 21:42:38 exact* Mar 06 21:42:39 yiati: I have no idea how to do that or even where to look to learn Mar 06 21:43:08 And I'm calling both .clear() and .notifyDataSetChanged() from the ArrayAdapter, not the ArrayList, correct? Mar 06 21:43:21 TacticalJoke: i have rows of ImageButtons Mar 06 21:45:49 TechGeek01: If you call ArrayAdapter.clear you won't (assuming that mNotifyOnChange is set) have to call notifyDataSetChanged. Mar 06 21:45:54 mNotifyOnChange is set by default. Mar 06 21:46:15 newbQ: Let the adapter handle creating the views Mar 06 21:46:18 TechGeek01: You should probably use BaseAdapter though. Way more powerful. Mar 06 21:46:21 Or at least "a simpler path to power". Mar 06 21:47:25 yiati: how do I do that? Mar 06 21:48:07 Well, I have to clear it, and then after, repopulate it from the DB Mar 06 21:49:03 newbQ: What kind of adapter are you using? Mar 06 21:49:10 In that case, it's probably better to use List.clear. Mar 06 21:49:42 Then only one notifyDataSetChanged call happens. Mar 06 21:50:04 BTW, you should be working with List, not ArrayList. ArrayList is an implementation detail. Mar 06 21:50:58 I can pastebin you the onCreate we're referencing the arrayadapter in Mar 06 21:51:21 http://pastebin.com/R6Rx8Jws Mar 06 21:51:24 yiati: no idea. All I wanna do, is add a dynamic number of these (http://pastebin.com/v0YP63w7) to a GridView and dynamically change the individual values in the text of the TextViews Mar 06 21:51:40 That's the onCreate where we're using the adapter, and the relevant variable declarations above it Mar 06 21:51:41 in a dynamic way Mar 06 21:51:45 If you have recommendations Mar 06 21:52:15 newbQ: Then you will be using a ListAdapter, http://developer.android.com/reference/android/widget/GridView.html#setAdapter(android.widget.ListAdapter) Mar 06 21:52:50 TechGeek01: I think I'd hold onto the List as a field and use that. Mar 06 21:53:00 Though really I'd just use BaseAdapter. ArrayAdapter is so restricted. Mar 06 21:53:19 With your own BaseAdapter subclass you could create a "setList" method which calls notifyDataSetChanged, etc. Mar 06 21:53:22 why isnt itemList every populated? Mar 06 21:53:38 ever* Mar 06 21:53:48 Odaym: It's populated indirectly via ArrayAdapter.insert, etc. Mar 06 21:53:53 why? Mar 06 21:54:05 just populate it with the db result, setListadapter as the adapter you created Mar 06 21:54:14 so unclear Mar 06 21:54:29 why iterating over db results in oncreate Mar 06 21:54:35 Yeah. Mar 06 21:54:37 your db function should return an arraylist that is ready to go Mar 06 21:55:09 The DB is a list of those items that I want to be able to individually manipu;ate Mar 06 21:55:46 I don't use all that info in the list, though, just two fields in the form for easy visual IDing, and a UID from the DB Mar 06 21:56:35 The database code should be on a background thread, really. Mar 06 21:56:40 Too much potential to block the main thread. Mar 06 21:57:46 Alright. I'll add that to my todo list then Mar 06 21:57:56 what you need to do is take out lines 28 to 39 and place them where they belong Mar 06 21:58:14 then you have listAdapter = new ArrayAdapter<>(this, R.layout.match_list_rows, db.getAllMatches); Mar 06 21:58:15 done Mar 06 22:00:06 Odaym: That's still not ideal, though. It still blocks the main thread. Mar 06 22:00:06 Well, that wouldn't necessarily be .getAllMatches(), as we're not looking to grab all the data, just a few fields, but I see where you're coming form Mar 06 22:00:15 So if I use the .clear() on the list, that's off of the itemList ArrayList then? Mar 06 22:00:24 honestly I've never done my db code in another thread Mar 06 22:00:28 but do know that it should be that way Mar 06 22:01:17 I dont get what you mean by on another thread though Mar 06 22:01:19 TechGeek01: Whenever you call ArrayAdapter.notifyDataSetChanged, it'll populate your ListView with whatever is in your list. Mar 06 22:01:28 I start a thread everytime I want to do a db operation Mar 06 22:01:29 ? Mar 06 22:01:47 Right, but to clear the list, the .clear is off of the ArrayList? Mar 06 22:02:18 Was that what you were referring to by the List? Mar 06 22:02:27 Yeah, just clear the list. Mar 06 22:02:32 Then do whatever and call notifyDataSetChanged. Mar 06 22:02:34 Odaym: Yeah. Mar 06 22:02:39 but that's insane Mar 06 22:02:48 all Android docs code say you write a class Mar 06 22:02:48 That's just normal asynchronous programming. Mar 06 22:02:58 never seen a thread in a SQLiteOpenHelper class Mar 06 22:08:07 can I use java 8 in android studio? Mar 06 22:08:53 probably, but Android VMs won't run it Mar 06 22:09:53 Mavrik: I thougth the VM runs some sort of bytecode Mar 06 22:10:04 yep. Mar 06 22:10:21 And Java 8 bytecode is incompatible. Mar 06 22:10:36 Mavrik: ok Mar 06 22:10:40 Dalvik/ART run Java6 + some java 7 features Mar 06 22:10:42 if the reason you want to use 8 is for lambda, there is a gradle plugin for that Mar 06 22:11:53 quinnjn: I want all the functional stuff Mar 06 22:11:54 and it's true what they say. it's like injecting pure unicorn glitter into your code. Mar 06 22:12:04 coming from javascript, I cant stand how verbose java is Mar 06 22:12:17 bel3atar maybe look at kotlin Mar 06 22:12:39 not that its really a functionaly language, but has lamdas, higher order functions, etc Mar 06 22:12:50 Java being verbose is really the least of your problems. Mar 06 22:13:09 kotlin looks pretty cool but I need more examples to get into it. Any suggestions? Mar 06 22:13:13 in some ways the android apis are verbose, and no language will fix that Mar 06 22:13:14 Can I use groovy? :p Mar 06 22:13:21 bel3atar you can Mar 06 22:13:27 g00s: in android studio? Mar 06 22:13:32 yes Mar 06 22:13:39 g00s: shut up and take my money Mar 06 22:13:53 how to add a .jar file to an android studio 1.1 project Mar 06 22:13:56 ? Mar 06 22:14:09 g00s: how do I get started? Mar 06 22:14:33 IrishGringo, place it into src/libs Mar 06 22:15:04 app\libs, sorry Mar 06 22:15:30 bel3atar look for some presentations from Cédric Champeau Mar 06 22:15:34 or modify your gradle build's compile fileTree(dir: 'libs', include: ['*.jar']) line Mar 06 22:15:43 g00s: thanks Mar 06 22:15:51 actually, he's looking for a new job since pivotal disowned groovy Mar 06 22:15:53 heh Mar 06 22:16:16 bel3atar you are probably better off going with kotlin from a tooling support story Mar 06 22:16:22 groovy is like a slower, bigger version of Kotlin, I don’t see much point in using it on Android Mar 06 22:16:48 jaana you are probably right Mar 06 22:17:25 Also, the future of Groovy is uncertain now that it no longer has any funding Mar 06 22:17:37 So I never figured out the ActionMenu pinstripe styling Mar 06 22:18:00 I can style the whole bar's background, but I want to try and change the pinstripe at the bottom from green to something else Mar 06 22:18:13 Kotlin is from JetBrains right? Mar 06 22:18:18 yes Mar 06 22:22:46 So why do you think apps built with Ionic and Phonegap are not as smooth. Is it because they are having to do software rendering, whereas native apps are leveraging video resources? Mar 06 22:23:16 the UI is the biggest downside Mar 06 22:24:32 you find yourself writing the logic behind a toggle Mar 06 22:25:17 because javascript and dom suck Mar 06 22:25:19 duh Mar 06 22:26:02 yes Mar 06 22:26:46 yeah, I'd just assume it's because html layout / interaction is so hugely expensive that it costs you some frames in responsiveness. and it seems most web devs are aggressively horrible about avoiding repaints, and that translates _horribly_ to mobile devices. Mar 06 22:27:31 pfn, Odaym, groxx Expensive, and can't use the video resources? Mar 06 22:27:53 dont know what that means Mar 06 22:27:54 not sure what you mean by video resources. phonegap for video playback or something? Mar 06 22:28:12 just dont do cross platform Mar 06 22:28:27 unless maybe a game Mar 06 22:29:05 you cannot build a business application in cross platform and please both platforms, apps are not supposed to look the same on both platforms Mar 06 22:29:25 Odaym I know you mean well, but you don't have to give me the lecture. I do native Android and iOS. Mar 06 22:29:31 html-like that compiles to native code + widgets does seem like a nice tradeoff though. not sure how well it works out in practice / in current implementations. Mar 06 22:29:33 I already gave it to you Mar 06 22:31:18 pfn, groxx, Odaym When I say video resources I mean the GPU. The system views are able to leverage the GPU for rendering right. So any of the HTML5 options are having to do software rendering. That is just my guess. I'm trying to just get a sense of why they suffer Mar 06 22:31:51 somewhat. JS+CSS+HTML is notoriously difficult to render efficiently + hardware accelerate. Mar 06 22:31:54 those apps don't open a browser for your app to run in, they use the system you're running on so I think they also use the GPU Mar 06 22:32:26 meanwhile, native UI frameworks are typically optimized for efficient rendering and hardware acceleration Mar 06 22:32:43 s/optimized/designed from the very start to support/ Mar 06 22:33:18 plus community is so poor Mar 06 22:33:21 groxx I wonder what it would take for HTML5 to be more optimized Mar 06 22:33:22 except for maybe Titanium Mar 06 22:33:29 mattblang: removing CSS? Mar 06 22:35:36 groxx, Odaym I completely agree that hybrid isn't good enough for quality apps. But to think about a world where the same language and frameworks could be used on all platforms is an incredible thought. Mar 06 22:35:47 also, if you built your average modern website in native widgets, it would still perform terribly. very deep trees, very very complex layout logic, arbitrary shadows, touch/mouse/scroll/etc events on literally everything... you can optimize things a lot if you assume they're static, but there's no way to be sure without dramatically limiting what you can do Mar 06 22:35:47 in the html Mar 06 22:35:58 groxx, Odaym As far as the "look", you already have the Material design initiative Mar 06 22:36:10 sure there are tons of people working on this right now Mar 06 22:36:15 especially Titanium Mar 06 22:36:26 yeah. also, react native looks really interesting Mar 06 22:37:34 groxx, Odaym I think what gets me is how much time goes into that little bit of extra performance. Doing native dev is a lot more time. I've seen some hybrid apps that are really nice, but they just aren't quite performant enough. Mar 06 22:38:01 that is the argument I got when I first started at a company that only does cross platform Mar 06 22:38:20 still can't prove it wrong cause who can run such benchmarks Mar 06 22:40:26 mattblang: ask people who have built performant hybrid apps. it's possible. it just takes about as much time as doing native dev for all the platforms :) Mar 06 22:40:55 and you get quality shit Mar 06 22:41:02 Odaym haha Mar 06 22:41:16 groxx, Odaym so what about React native. Wonder what it will be like. Mar 06 22:41:33 yeah, and it's still worse than native. you can make really surprisingly good hybrid apps, but there's just too much code between you and the display - you can't _actually_ match native. Mar 06 22:41:36 groxx just looked it up after yu mentioned it Mar 06 22:42:05 react native is what I've thought is roughly the right approach. declarative UI, native widgets. It just _looks_ like HTML and CSS. Mar 06 22:42:45 declarative + allows you to have fine grained control = _immensely_ difficult to build, though. dunno if this is it, but it looks more promising than most I've seen. Mar 06 22:43:28 and if it doesn't support what you want to do, you have to understand a incredibly complex system in order to modify it / step outside it. Mar 06 22:44:41 Error: Plugin with id 'kotlin-android' not found. Mar 06 22:44:58 I have installed the plugin through settings Mar 06 22:45:42 first it failed at this line: classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:0.1-SNAPSHOT' Mar 06 22:45:52 then I removed it and go the above error Mar 06 22:45:56 s/go/got Mar 06 22:47:26 bel3atar: http://kotlinlang.org/docs/reference/using-gradle.html says "To use a snapshot, you need to configure a snapshot repository in the build.gradle file." - have you done that? snapshot builds are not typically maven-able. Mar 06 22:53:42 well this is awfully strange, in my adapter I grab a reference to the parent element Relative Layout and want to change its background color inside a clicklistener in the adapter Mar 06 22:53:51 I can't do it, works outside the listener though Mar 06 22:54:56 I want to speak to Google Mar 06 22:55:26 MikeWallaceDev you here? Mar 06 22:55:39 Why yes, I am. Mar 06 22:55:51 Actually, I wasn't, but I'm here now :D Mar 06 22:56:23 I have a pic for you, hold on Mar 06 22:56:48 you know why it isnt working? Mar 06 22:57:16 its not working because the adapter has lost the reference to the view Im talking about Mar 06 22:57:38 I can change the background color of the element im pressing on though, because it passes me the View instance that was clicked Mar 06 22:57:53 yep Mar 06 22:58:53 you wha?? Mar 06 22:59:00 Ok, this is weird... Mar 06 22:59:07 MikeWallaceDev: My programming partner is here: http://i.imgur.com/rUhyXBv.jpg Mar 06 22:59:18 oh crap, just realized I'm on a different nick Mar 06 22:59:22 Ok Mar 06 22:59:43 You changed your handle!!! No wonder I was freaking out! Mar 06 22:59:46 heh Mar 06 22:59:59 I was like : STALKER!! Mar 06 23:00:06 Hah, yeah it was changed because I was messing with a friend at my school a few days ago on IRC Mar 06 23:00:17 He's Hamclock and I changed my nick to HamcIock Mar 06 23:00:21 I need to consecutively scan barcodes and compare if they exist in a db. How should I solve it, 1. Download the latest db-data e.g. on app execution to a structure and do the comparison against it locally on the phone (the data is not even a MB, so it’s small), 2. or send like e.g. a list of barcode data from phone to a web service and do the comparison server side? What should be the fastest and most efficient way? Mar 06 23:00:22 Also, sometimes we may not have access to data network. Mar 06 23:00:23 ... Mar 06 23:00:27 god damn genius Mar 06 23:00:28 it works Mar 06 23:00:49 I changed the background color, I want my trophy Mar 06 23:01:09 mEck0, what kind of barcodes, what kind of usecase and how big is a full DB? Mar 06 23:02:48 Is there a public collection of man pages that is relevant to Android specifically? Trying to determine which POSIX flags system calls support Mar 06 23:03:02 i.e. O_DSYNC/O_RSYNC flags don't seem to be supported for open() Mar 06 23:03:09 mEck0, it's pretty obvious that you have to download it if you wont have access to the netword. Mar 06 23:03:16 network, even. Mar 06 23:03:44 yan_, I very much doubt anything lower than Java is documented Mar 06 23:04:43 Mavrik: a usual barcode to start with, no qr. Equipment in the field usually have a barcode each and I need to scan these and check if they already exist in the db. If yes, then I can change their data. A full db currently is like 90kb, not much data are stored mostly text’s. Mar 06 23:05:11 Mavrik: figured. :-/ Mar 06 23:05:15 mEck0, as long as DB stays under 20-30MB or so, just package it Mar 06 23:05:27 mEck0, you can do syncing if youll have to update it Mar 06 23:05:41 MikeWallaceDev: yes, I’m thinking of such a solution. Download it locally and maybe populate a HashMap or is it faster so use some kind of list to do fast searching/comparison? Mar 06 23:05:48 but standard barcodes are typically just rather short numbers and arent really big when stored in a DB Mar 06 23:06:01 mEck0, just store them in sqlite and do a query Mar 06 23:06:01 Mavrik: Yes it’s definitely smaller than that Mar 06 23:06:02 Thinking baout creating a package for each heavy duty fragment/activity Mar 06 23:06:08 do/don't? Mar 06 23:06:15 mEck0, add index on the barcode field and its gonna be plenty fast Mar 06 23:06:30 Mavrik: yes, either manually sync on demand or have a sync timer preference. Mar 06 23:06:36 yep, I'm with Mavrik , Sql and query Mar 06 23:06:42 yan_, might find something here: https://source.android.com/devices/tech/index.html Mar 06 23:06:45 lots of base classes and interfaces Mar 06 23:06:57 Mavrik: I must re-check but I think that the barcodes already have some kind of index. Mar 06 23:07:06 mEck0, I mean SQL table index. Mar 06 23:07:10 in sqlite. Mar 06 23:07:33 Mavrik: do you think it’s faster than searching through a HashMap/Set/list? Mar 06 23:08:03 it will be just as fast, but less trouble. Mar 06 23:08:12 great! Mar 06 23:08:15 mEck0, definitely Mar 06 23:08:26 don’t do that hasshes of arraylist of hash Mar 06 23:08:26 because you'll already have a DB, what are you going to do, load the db into a hashmap? Why? Mar 06 23:08:43 it’s a mega pain to come back to Mar 06 23:08:49 mEck0, loading full database in RAM is stilly Mar 06 23:08:50 damn, I have to concentrate. Later guys! Mar 06 23:08:51 (been there, done that) Mar 06 23:08:54 mEck0, when you just need to look up one number Mar 06 23:08:58 later Mike Mar 06 23:09:04 MikeWallaceDev: sound unnecessary if I can do it easilty and faster in sqlite Mar 06 23:09:07 mEck0, where doing it in 50ms or 15ms doesnt make a difference. Mar 06 23:09:22 you'll have to store it SOMEWHERE on the disk and sqlite DB is built for that Mar 06 23:09:47 plus, you’ll hone in on your db skills Mar 06 23:09:57 seems liek you already have your map/list/set skills down Mar 06 23:11:21 Thanks for the input, I’ll read some more about sqlite and try it out :) Mar 06 23:11:55 man, gradle doesn't make sense to me at all Mar 06 23:12:03 O.o Mar 06 23:12:11 it's quite simple really. Mar 06 23:12:29 break it down for me then please Mar 06 23:12:52 I've tried going through gradle docs, and it still makes no sense Mar 06 23:12:59 Gradle has tasks. They execute in order and depend on each other. You trigger gradle by telling it which task it has to run. Mar 06 23:13:09 You see list of tasks by running ./gradlew tasks Mar 06 23:13:14 yup, I know that part Mar 06 23:13:15 or if you want them all, ./gradlew tasks --all Mar 06 23:13:24 so, how do I know what the configuration options of a task are? Mar 06 23:13:48 or for instance, let's say I want an external module dependency only in certain builds Mar 06 23:13:57 herriojr don't forget there is also #gradle Mar 06 23:13:59 can I do that with flavors, etc. Mar 06 23:14:20 herriojr, explain more what do you mean certain builds, do you want to have different output versions of the app? Mar 06 23:15:59 Mavrik: basically the issue I'm having is I need to use an external library which has ARM .so's and nothing for x86 — and I want to use HAX x86 so developing on an emulator isn't awful — so I want to have it configurable to either build with or without the external dependency Mar 06 23:18:53 hmm Mar 06 23:19:04 do other people experiences excessively log gradle build times from android studio? Mar 06 23:19:25 heater89, depends on what's going on Mar 06 23:19:37 and what kind of tasks you have defined Mar 06 23:20:24 Mavrik: it seems to slow the longer it is used vs always being slow Mar 06 23:20:31 Mavrik: I guess my issue is, I don't fully comprehend what is configurable (as in what I can configure for each task) or specifically how to do it — and I've read through the gradle docs, and I'm still confused Mar 06 23:21:08 yeah, the thing is that android gradle plugin is crappily explained Mar 06 23:21:19 and the fact that it generates tasks at runtime doesn't help Mar 06 23:21:56 too bad xavier isn't on here anymore Mar 06 23:22:22 herriojr, ok, apparently you should create two flavors, "arm" and "x86" Mar 06 23:22:28 herriojr, and give them names Mar 06 23:22:49 after that you can just do "armCompile" and "x86Compile" instead of usual "compile" in dependency block Mar 06 23:22:58 I'd avoid big letters and numbers in flavor names tho ;) Mar 06 23:23:13 Mavrik: so i have many sub projects, but code isn't changing in those projects. I assumed gradle was incremental and wasn't needing to build those. AFter the first run the tests are not ran, after that it is multidex, minified, and signed. nothing i feel is out of the ordinary Mar 06 23:23:38 heater89, look in gradle console and see which task is taking so long Mar 06 23:23:43 Mavrik: yeah, that's the direction I was heading down was with flavors, but I haven't found anywhere where I specify different external dependencies Mar 06 23:23:45 also do ./gradlew assemble --info Mar 06 23:23:56 in console so you'll se if any task is taking a long time Mar 06 23:24:13 herriojr, SO to the rescue I guess http://stackoverflow.com/questions/18196974/how-to-define-different-dependencies-for-different-product-flavors Mar 06 23:24:24 herriojr, the Android specific Gradle documentaiton is utter mess Mar 06 23:24:33 not to mention it's a single wiki article with all crap thrown in Mar 06 23:24:38 and no javadoc -_- Mar 06 23:25:11 the new stuff on the official site is even worse than the wiki article Mar 06 23:25:12 yes, I saw that, but what if, for example, I wanted actionbarsherlock in the Pro and not the Free? Mar 06 23:25:30 herriojr, I don't understand the question Mar 06 23:25:48 you then just say "proCompile "com.actionbarsherlock..."" Mar 06 23:25:48 so in that link you provided, there's a Free and Pro Mar 06 23:26:02 ok Mar 06 23:26:16 ty, I'll try that Mar 06 23:29:08 Mavrik: looks like proguardDebug, shrinkDebugMultiDexComponents tasks are raking the longest Mar 06 23:29:17 ah Mar 06 23:29:27 heater89, proguard has always been slow Mar 06 23:29:37 and it WILL take awhile, especially on larger projects Mar 06 23:29:42 disable it on debug builds. Mar 06 23:30:34 Mavrik: alright I will see if that helps speed it up. thanks for the help. just think it is odd it gets slower the more i build Mar 06 23:31:08 *shrug* Mar 06 23:32:06 Mavrik: yea... thanks. Much appreciated :0 Mar 06 23:32:08 :) ** Mar 06 23:36:02 Mavrik: disabled proguard/minify for debug and sped it up quite a bit. Mar 07 00:09:25 I dont get why I should use fancy over webapi Mar 07 00:21:00 because you are classy broad Mar 07 00:26:11 So I added an activity and then undid it with Ctrl + Z. It removed the activity, but it seems like my project is "remembering" it, even though it doesn't exist. It errors whenever I do a gradle rebuild/clean, and my AndroidManifest.xml keeps adding the activity back even after I remove the activity line. Any ideas? Mar 07 00:39:52 Did I just see a popover ad in facebook app Mar 07 00:39:53 ? Mar 07 00:40:24 tricknology: no clue. But I stopped using the facebook app a year ago Mar 07 00:40:36 just use m.facebook.com now. No battery drain, much less notifications Mar 07 00:40:39 It's rather nice Mar 07 00:40:59 hmm.. I might try Mar 07 00:42:41 not bad.. Mar 07 00:42:51 this is what I expect a cordova or phonegap app to look lilek Mar 07 00:56:52 also Tinfoil for facebook Mar 07 00:57:00 its just a wrapper basicly Mar 07 01:17:12 Anyone know why a view might not appear in a relative layout when all it has is center in horizontal? Mar 07 01:18:27 lasserix: I've had relativelayout draw views in a different order than they're declared in XML. I have no clue why though. Mar 07 01:18:51 lasserix: if you're sure everything else is correct, try adding a view somewhere (like the bottom left corner) and see if the other view appears :| Mar 07 01:19:14 so i changed height to 100 dp and it works Mar 07 01:19:26 was it... zero height? Mar 07 01:20:14 no Mar 07 01:20:20 a;; ptjer views are working Mar 07 01:20:33 now that i give the parent a height it works Mar 07 01:24:12 hello guys Mar 07 01:24:46 I have an XT1100, and I want to make it an XT1103, is that possible? can I just change the baseband of the device? is that enough to change the bands the device listens to or is there some hardware differences between the 1100 and the 1103? Mar 07 02:16:05 I have an XT1100, and I want to make it an XT1103, is that possible? can I just change the baseband of the device? is that enough to change the bands the device listens to or is there some hardware differences between the 1100 and the 1103? Mar 07 02:16:32 samuel wrong channel, try #android-root Mar 07 02:16:46 oooh, thanks! I had not thought of that Mar 07 02:17:25 TIL: view.getDisplay().getRectSize(r) and view.getResources.getDisplayMetrics() (comparing width/height) are not _always_ updated at the same time. Mar 07 02:18:11 this, I think, deserves a headdesk. slknubivuyn Mar 07 02:20:10 ditto for view.getWindowVisibleDisplayFrame(r). it seems to follow the getResources() values, though at this point I'm hardly confident that they're 1:1 the same. Mar 07 02:50:59 Cedric, you there by any chance? I was wondering if I could ask you an API design question - concerning android BLE apis. Mar 07 02:51:01 before I go AFK for a bit: should I report this as a bug? sometimes a rotation will result in the getDisplay updating to match the new orientation, then a layout pass occurs, then the getWindowVisibleDisplayFrame updates, then a layout pass occurs, then getResources().getDisplayMetrics() updates. This seems buggy to me, and it only happens about 1% of the Mar 07 02:51:01 time. Mar 07 02:51:15 or is that documented in some dank corner of the code? Mar 07 02:51:18 g00s: Not sure I can help but shoot Mar 07 02:51:25 Not very familiar with Bluetooth Mar 07 02:51:51 CedricBeust thats OK, its a high level problem. ok here it goes Mar 07 02:52:03 doesn't even require any knowledge of BLE ;) Mar 07 02:52:22 The BLE apis are quite unpleasant to work with - I was trying to make a convenience wrapper for them. I've come up with a few designs I'm not happy with. There are really 2 main issues Mar 07 02:52:41 (1) although operations are *asynchronous*, only one can be in flight at once. Its up to developer to queue operations Mar 07 02:52:41 g00s: If it's going to take a few lines to describe, consider pastebin :) Mar 07 02:53:34 (2) there is only one god-callback for the entire connected session, as opposed to a callback / listener for each operation. This makes it difficult to associate request with response, because you can not provide any context / token that is given back to you on the callback. Mar 07 02:53:54 I am getting an BadTokenException on this code, anyone know why? http://pastebin.com/Wm2JPDbx Mar 07 02:54:06 g00s: You can't even pass a userData for each call so you can correlate responses to calls? Mar 07 02:54:22 CedricBeust no Mar 07 02:54:30 so ... i'm debating whether my wrapper should even attempt matching request / response (make operations cold observables which attempt to match response, and then return that) - or if i need to propegate the 'hot observable'-ness of the BLE callbacks throughout the application Mar 07 02:54:31 That's... bad Mar 07 02:55:01 yeah. i'm trying to make assumptions based on timing Mar 07 02:55:16 g00s: Is there anything at all you can use to correlate a response to a query? anything? If not, no matter what you try to use, it will be prone to mismatches, right? Mar 07 02:55:45 absolutely nothing at all Mar 07 02:56:00 So you're thinking about using timing? How would that work? Mar 07 02:56:17 yeah, i dont think it work work ... very well :| Mar 07 02:56:24 Looks like it. Sad. Mar 07 02:56:33 I'm having a hard time believing that's how the API is built. That's terrinle Mar 07 02:56:43 CedricBeust here are the callbacks https://developer.android.com/reference/android/bluetooth/BluetoothGattCallback.html Mar 07 02:56:51 you dont really have to know anything about BLE Mar 07 02:57:16 but you can't pass in any kind of token or context, and get those back in any of these Mar 07 02:57:18 Rx is not going to be of much help if you can't correlate responses to queries :( Mar 07 02:57:38 Unless you serialize things yourself, which sounds like it woul defeat the purposes Mar 07 02:57:48 (I mean Serializable in the database isolation level sense) Mar 07 02:58:06 i can't tell you what a pita it is to mutate state on a device in a number of steps when you can only drink out of a firehose (these callbacks) Mar 07 02:58:45 and then of course, these get called on arbitrary binder threads, the objects aren't thread safe, etc - but lets ignore that for now Mar 07 02:58:55 * g00s so depressed Mar 07 02:58:56 Then serialize: don't send another query until the previous one has returned? Then you're sure about the query-response match Mar 07 02:59:13 CedricBeust yes, thats basically what i have right now Mar 07 02:59:23 How much of a performance hit is that? Mar 07 02:59:29 CedricBeust one sec, can i post some code to pastebin ? **** ENDING LOGGING AT Sat Mar 07 02:59:58 2015