**** BEGIN LOGGING AT Wed May 07 02:59:58 2014 May 07 03:37:33 hi May 07 03:37:51 does anyone know what the benefits are for using an actionbar rather than a custom top bar? May 07 03:38:44 can't think of any May 07 03:38:57 except user familiarity and you know the whole.. .implementation thing May 07 03:40:53 wabz, but making the popup option menu is easier with an actionbar than with a custom bar, right? May 07 03:41:46 hi all i have some problem with volley May 07 03:42:16 kate_r: yes, almost everything would be easier May 07 03:42:38 wabz, hmm what else is there though? May 07 03:43:28 i think a better question is - why do you want to make your own ? May 07 03:43:59 how do i clear cache in volley May 07 03:46:20 bankai_au, well, i'm trying to make some icons overlap the bar - like http://s27.postimg.org/t6mce0ucx/nim_SI.jpg May 07 03:46:33 could this be done with an actionbar or would i need a custom view? May 07 03:49:22 how do i clear cache in volley? May 07 03:54:34 i have some weird problem with volley lib May 07 04:07:42 any one there to help me with volley May 07 04:09:14 volley unfortunately got promoted, a bit, but never really got properly released May 07 04:12:22 its difficult to find volley support out there on web May 07 04:12:37 well, yes... on the other hand, you've got the source May 07 04:13:19 ya most of the ppl tweak it to work May 07 04:14:20 volley doesn't look all that great as an api May 07 04:15:06 we need to make it rxvolley May 07 04:15:10 XD May 07 04:15:11 only thing that looks interesting is the request queue May 07 04:15:42 presumably a few gapps use volley ? May 07 04:16:26 what you suggest for making network request in background ? May 07 04:16:40 but yeah, unless they consider it unready, it should be part of the support lib or alongside it or something May 07 04:17:00 It should absolutely not be in the support lib May 07 04:17:22 yeah second though, SL is for support May 07 04:17:27 it should remain tiny May 07 04:18:21 I have a futures library I write that I'll probably use in future java android projects May 07 04:18:31 wrote May 07 04:18:47 Was that a joke? May 07 04:18:53 no May 07 04:19:09 you can share it on git May 07 04:19:12 It should have been May 07 04:20:22 I have an out of date gist May 07 04:20:45 I have an async library I wrote that I'll probably use in java projects, whenever it's ready May 07 04:21:01 SEE WHAT I DID THERE? May 07 04:21:30 https://gist.github.com/pfn/9487660 May 07 04:21:44 it's out of date but works pretty well May 07 04:22:31 the drawback, in Java, is that it's incredibly verbose May 07 04:22:35 https://gist.github.com/pfn/55118e0bef6f61b6e849 May 07 04:23:17 is that like the guava listenablefuture May 07 04:23:18 I have a serialization library I wrote that I'll probably use in java projects, if I can read it May 07 04:23:43 g00s, similar, but more May 07 04:24:04 guava futures are listenable but not composable May 07 04:25:22 Hi I'm trying to write a basic 2-D drawing animation of a bending sunflower, I'm just using the canvas api and its going okay, but does anyone have any favorite drawing/animation APIs that they'd recommend? May 07 04:26:07 JakeWharton, yes, unintended pun, typing on phone is ripe for those May 07 04:26:22 I enjoyed it. May 07 04:26:51 Would be a good humor tidbit for the beginning of a talk May 07 04:27:31 g00s, in any case, my implementation is completely composable and is a proper monad May 07 04:28:14 i dont understand monads yet May 07 04:28:31 maybe i should get that new oreilly book 'being functional' May 07 04:28:41 Ha Ha these are good one liners. I literally loled May 07 04:29:02 MohitKanwal ah, you are the one with the 50k limit inn BeeTalk yes ? May 07 04:29:35 or maybe i got you confused May 07 04:29:48 g00s: yeah May 07 04:29:52 g00s, not much to understand, other than they're conceptual container objects May 07 04:30:18 MohitKanwal did you find a solution? May 07 04:30:34 g00s: i got a rough version of Dex file output working, https://gist.github.com/creativepsyco/57a232d3a2e2c90195f0 May 07 04:30:48 just need to write the ClassLoader implementation May 07 04:31:20 techically it should work. Will post a sample project when it does May 07 04:31:26 Hey did someone knows a better and fast way to load html into TextView than Html.fromHtml() ? May 07 04:32:43 JakeWharton: http://protolol.com/ May 07 04:36:44 Justin_T: Html.fromHtml() is pretty much the slowest possible way May 07 04:37:21 yeah I see May 07 04:37:40 I would like to have an alternative May 07 04:37:47 plus an answer depends on the type of text you are loading May 07 04:39:40 http://paste2.org/DW1JO0d7 May 07 04:40:39 I have access to the source, in case there arent any options for android May 07 04:41:07 sorry for my english is not my native language May 07 04:45:57 so JakeWharton what you say about that? May 07 05:20:18 I've ViewSwitcher > TextView in XML, and i try to set TextView visibility=gone, but it only works if i wrap it in layout (ViewSwitcher > *Layout > TextView), anyway to get it to work without the wrap? May 07 05:31:41 hmm probly surfaceview underneath it causing it :S May 07 05:53:25 what is a quick and dirty way to setError on a spinner? it has a textview as a label, but i cant seemn to get setError to work on a read only textview May 07 06:06:30 g00s, what's the name of those weather gadgets you like May 07 06:06:30 ? May 07 06:17:50 Hey there. May 07 06:19:22 Does anybody think developing an app using HTML5 for the interface and Python for the back-end would be a good/bad idea for cross-platform development? May 07 06:20:05 botulox its been discussed many times all over the interwebs :| May 07 06:20:10 that is an opinion based question May 07 06:20:21 therefore my answer is 42 May 07 06:20:39 g00s well I guess my google-fu sucks then. I haven't found anything useful on it. May 07 06:20:40 thepoosh are you the guy who knows why adams picked 42 :P May 07 06:20:57 He picked it randomly, just because it sounds good. May 07 06:21:15 g00s: I read on reddit last night that Steven Fry knows the reason May 07 06:21:23 but he said he'll take it to the grave May 07 06:21:51 yeah May 07 06:21:57 botulox you can start here https://www.tbray.org/ongoing/When/201x/2014/01/01/Software-in-2014 May 07 06:22:22 g00s thanks for the link, will take a look at it May 07 06:24:20 g00s: http://scifi.stackexchange.com/q/310 May 07 06:24:51 g00s (or anyone else) would you happen to know if there's any data on performance (and more importantly) battery consumption for these options? May 07 06:25:48 well users get pissed when every button requires fetching a page May 07 06:26:32 My project is a music player, unless I'm fetching specific data, we're talking about local stuff. May 07 06:50:09 hi, i'd like to intercept all connections both incoming and outgoing, and allow/disallow connections based on three informations: application (process id), remote host and port (both local for incoming and remote for outgoing) May 07 06:51:39 assume we have rooted device, is it kernel module i'm looking for? squid proxy seems like an overhead to me, but maybe i'm wrong. opinions? May 07 06:53:28 da3m0n22 there are firewall apps that do that, but i don't know how they work May 07 06:57:20 g00s: i know of them, already on my study list, however i need to create interactive dialog on per-connection and per-rule basis, where they usually use iptables to control specific application, but iptables won't do it interactively, only after-the-fact, which means app would have to make each request without rule at least twice May 07 06:58:16 i really wish android gave me more control over which apps were allowed to connect to the internet May 07 06:58:26 g00s: eg. https://github.com/ukanth/afwall and obsolete https://code.google.com/p/droidwall/ May 07 06:58:33 yeah May 07 06:58:50 that Swype + 4000 location requests / day fiasco is a perfect example May 07 06:59:13 g00s: afwall does this already, but i'm interested in host/port/app connection rules, it's ok for me that nytimes app connects to nytimes api, but not that they connect to google ads for example May 07 06:59:42 g00s: lol, didn't know about that pain ) May 07 07:33:54 Anyone familiar with Parse.com and ParseQueryAdapter? May 07 08:05:14 Anyone familiar with Parse.com and ParseQueryAdapter? May 07 08:05:42 Has anyone here worked with Kivy? May 07 08:12:49 When Matrix.setRotate is invoked it creates a rotation matrix, if I want to rotate first about X then about Y, and Z respectively, would I use Matrix.rotateM after that rotation matrix is defined? May 07 08:13:31 I'm modifying the basic rotate triangle example Android app to rotate around in 3D with your finger as a learning exercise, but its not behaving as expected. May 07 08:15:10 tubes4branes, have a look at this May 07 08:15:10 https://developer.android.com/reference/android/graphics/Camera.html May 07 08:15:29 thank you alex. May 07 08:16:19 right now I'm using this: May 07 08:16:20 https://developer.android.com/reference/android/graphics/Matrix.html#setRotate(float) May 07 08:16:34 Matrix.setRotateM(mRotationMatrix, 0, mAngle, 1.0f, 0.0f, 0.0f); May 07 08:17:05 though what I want to do is rotate first by x then by by y since rotations are order dependent. May 07 08:17:36 WantToCode, you bought it? May 07 08:18:20 the matrix setRotate only rotates around z May 07 08:18:33 the other params are for a center point May 07 08:18:43 Omnipotent: sorry? I am using free account on Parse.com May 07 08:18:58 WantToCode, so trial version? May 07 08:19:58 No there is a limit on 30 API request per sec for free version. You can increase that if you pay. There is no trial version or a paid version. May 07 08:20:07 hi May 07 08:20:17 alex_PP: I figured out how to drive the order, what I don't really have is the control interface working, taking the x, and y component of the angle didn't work to well, so I need something else to drive it. May 07 08:20:42 i need help with valley setup May 07 08:21:18 http://stackoverflow.com/questions/23508535/android-volley-last-request-post-call-on-network-drop May 07 08:22:29 is View.keepScreenOn() hooked into any lifecycle … that is, if i set this to true, and the fragment with the View goes away, is the flag cleared ? May 07 08:22:37 Hi all, somebody experience with osmdroid and offline zip? May 07 08:24:27 g00s, you can set it in XML, so i guess it's safe May 07 08:24:58 alex_PP hm, a few ways - through window manager, via child view - i'd like to have it as a preference May 07 08:25:13 so i'd have to check at runtime. maybe it should not even be a preference :| May 07 08:25:49 all the setter does is set a flag in the view May 07 08:26:02 something else is doing the work of keeping the screen on May 07 08:26:11 what a weird api May 07 08:27:33 looks to me like it's checked in onAttachedToWindow / onDetachedFromWindow May 07 08:28:35 yeah i see mParent.recomputeViewAttributes(this); May 07 08:29:13 http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.4.2_r1/android/view/View.java/#8106 May 07 08:30:53 alex_PP so it seems if i set that on a view and the view goes away (gets detached) it should be cleared ? May 07 08:31:13 looks like it May 07 08:31:38 i'll test, this probably hasn't changed since android 1:) May 07 08:31:44 but more spelunking might be necessary May 07 08:32:00 :) May 07 08:32:21 wonder if it needs wake lock permission??? May 07 08:34:30 i dont think so, that was the main + for this technique May 07 08:34:48 you can specify it on an activity in the manifest May 07 08:39:54 g00s, cool May 07 08:40:27 yeah its safer than wakelock May 07 08:51:03 huh, portable Virtualbox. I used to use portable apps at work :) May 07 08:52:23 Thank you guys for the help, I pretty much got it, though to properly implement the rotation so its intuitive will require a bit more logic to get right that I haven't implemented yet, but this should be sufficient for my OpenGL ES Android learning. May 07 09:00:38 Hi there. May 07 09:01:57 is it common to do heavy lifting inside an Adapter? May 07 09:02:36 at the click of a certain view, its listener, to do ...well, I don't know, I mean a lot of code inside the listener of a view inside a base adapter May 07 09:03:51 I'm starting to work with fragments... I need to implement something from activity into myClass that extends Fragment. So I need to convert this line of code: varCook = (Cook) getApplication; into something that will work with fragment. That line gives me an error within Fragment class: getApplication cannot be resolved to a variable. May 07 09:03:59 I have a big problem telling where code should and shouldn't go May 07 09:04:38 I depend solely on aesthetics right now to figure out if this big chunk belongs here or should be classed or functiofied May 07 09:08:37 how do you solve that May 07 09:08:59 how to hack May 07 09:11:12 can someone explain this android behavior to me? http://stackoverflow.com/questions/17839321/android-connect-to-tethering-socket May 07 09:23:18 Hello all, is ViewPager still in support.v4 in API level 19? Or is that functionality pulled into another class like the FragmentActivity is now part of the plane jane Activity? May 07 09:29:02 Hi everyone, I'm having an extremely annoying problem with a Spinner text not being aligned vertically. I've put android:gravity="center", and android:layout_gravity="center" in the spinner layout itself, but to no avail. Am I missing something? May 07 09:30:23 idanmiller: try android:gravity="center_vertical" May 07 09:32:12 shmooz: Same result, no good... May 07 09:40:58 Need to change the network type(2g/3g/4g) on a rooted phone.Is there anyway? May 07 09:42:04 i'm trying to make some icons overlap the actionbar - like http://s27.postimg.org/t6mce0ucx/nim_SI.jpg could i still use the actionbar with a custom view or something? May 07 09:42:11 or would i need a custom topbar? May 07 09:50:18 kate_r not even sure if that looks good :| May 07 09:50:29 of course, thats opinion May 07 09:50:47 g00s, oh? hmm what would u suggest? May 07 09:50:55 basically i'm just trying to fit a progress bar there May 07 09:51:16 have you seen how gmail do their progress bar? May 07 09:51:58 bankai_au, there's one? May 07 09:52:06 bankai_au do you think its just between the AB and content view ? May 07 09:52:17 kate_r go to gmail, Settings -> refresh May 07 09:52:18 g00s: yes May 07 09:52:30 pfft settings refresh, it's a slide down refresh May 07 09:52:31 oh that May 07 09:53:16 well, their progress bar might be a bit thin for my app May 07 09:53:17 kate_r but if you are doing a wizard, probably all thats needed is N dots like 16dp circles May 07 09:53:37 the current step has one dot brighter or something May 07 09:53:39 i'd like to inform the user about which step of the 3 steps they are currently at May 07 09:53:56 right May 07 09:54:16 Unless they can be selected as navigation then I would not put them on the top bar. May 07 09:54:19 g00s, but that wouldn't allow labels though May 07 09:54:37 need labels ? May 07 09:54:40 Jaq, yes, they can be selected as navigation May 07 09:55:00 g00s, 'Step X' are just fillers May 07 09:55:17 i would't put labels, imho May 07 09:55:45 g00s, they're supposed to be something like 'Create', 'Describe', etc. May 07 09:58:29 ADB server didn't ACK* failed to start daemon * error: cannot connect to daemon <-- any idea about this problem? May 07 10:02:48 Any ideas for my problem? May 07 10:07:41 alex_PP so, i'm doing view.setKeepScreenOn() … and its not working May 07 10:08:09 i query the view for that, log it … its definitely true May 07 10:08:31 meh, i'll just do the window manager May 07 10:20:38 i am back May 07 10:20:49 hey g00s May 07 10:20:59 I have no idea how i survived yesterday May 07 10:21:08 no sleep ? May 07 10:21:14 yup May 07 10:21:24 yeah i didn't sleep well either = trainwreck May 07 10:21:30 lol May 07 10:21:53 then i wound up sleeping to 9PM … now i'm screwed May 07 10:22:08 i managed to solve a bug yesterday though that had alluded everyone in the company... and its a big company May 07 10:22:22 i think it was because my brain was functioning in a completely different way to "normal" May 07 10:22:23 lol May 07 10:22:31 :D May 07 10:22:51 Napalm i saw a google group post, dianne commented on night mode; yeah they intended it only for car use May 07 10:22:59 yea, i got home yesterday and slept immediately and then woke up and 2am.. and snoozed until 8am May 07 10:23:00 lol May 07 10:23:02 so … setting car mode seems like a nono May 07 10:23:12 and getting around it seems like asking for problems May 07 10:23:25 fair enough May 07 10:23:33 but its stupid as hell May 07 10:23:39 WHAT WERE THEY THINKING May 07 10:23:52 well its easy to say that after the fact May 07 10:24:05 think back to 2.1-2.2 May 07 10:24:13 was a different world then May 07 10:25:40 and that was way different to 1.5 May 07 10:27:18 http://www.t-mobile.com/promotions/genericregular.aspx?&PAsset=Pro_Pro_G1 May 07 10:27:21 lolz May 07 10:27:30 heh May 07 10:29:45 wow May 07 10:30:08 i started on Android 1.5 on the G1 May 07 10:30:34 i know that was a damn long time ago, but it doesn't feel that long May 07 10:30:39 like it was just around the corner May 07 10:32:17 yeah because they only made progress in a few areas :| May 07 10:32:19 like Holo May 07 10:32:43 except for AS, gradle, seems like the same damn crap May 07 10:33:57 perception to time is compressed when nothing changes May 07 10:35:25 Can someone explain me this? May 07 10:35:36 I'm starting to work with fragments... I need to implement something from activity into myClass that extends Fragment. So I need to convert this line of code: varCook = (Cook) getApplication; into something that will work with fragment. That line gives me an error within Fragment class: getApplication cannot be resolved to a variable. May 07 10:36:10 you are casting Application to Cook ? May 07 10:36:12 wat May 07 10:36:15 Cook varCook = (Cook)getActivity().getApplication(); May 07 10:36:36 frojnd: ^ May 07 10:36:51 I found a bug in libgralloc - who do I report this bug to? May 07 10:37:11 google, and then wait a few years May 07 10:37:32 not like any 4.1 users are getting that fix :) May 07 10:37:51 hey johnflux__: i'm curious, what you working on that you are dealing with dralloc directly? May 07 10:37:52 Napalm: I've declaired it as argument, also if I do it like you suggested I still get: create getApplication; May 07 10:37:59 *gralloc May 07 10:38:42 Napalm: sorry: I get: getApplication cannot be resolved or is not a field May 07 10:38:43 frojnd: in your Activity before you went to Fragments you did getApplication(); to get a instance of your Cook? May 07 10:39:06 Napalm: yes May 07 10:39:27 frojnd: Cook varCook = (Cook)getActivity().getApplicationContext(); May 07 10:39:29 do that May 07 10:39:30 Napalm: working on drivers. I found that one of the android unit tests fails, (android.view.cts.DisplayRefreshRateTest) and it fails because of this bug in gralloc May 07 10:39:53 Napalm: it's calculating the refresh rate incorrectly. When I google for this failure, I find a lot of hits, so it's affecting a lot of people May 07 10:40:09 Napalm: I think just noone noticed the incorrect formula before May 07 10:40:11 johnflux__: go to http://b.android.com/ May 07 10:40:17 Napalm: well that last one worked. Can you fill me up with some docs so I can understand what's the difference please? May 07 10:40:26 Napalm: thank you in any case though! May 07 10:40:27 johnflux__: search for the bug.. if you cant find anything related, post it May 07 10:40:30 Napalm: thanks May 07 10:42:31 johnflux__: it might be good to cite the google search that revealed others having the same issue May 07 11:02:51 Priceless beyond belief. http://verizarape.com/view/Verizon-Sucks/370650/verizon-is-sexist.html May 07 11:05:13 I'm trying to figure out the version number of a few of the libraries I'm using. How could I do that for .jars that don't have a version number in their name? May 07 11:07:11 Syzygy well, why would you do that :P May 07 11:07:25 if they were nice packagers, it could be in the manifest file May 07 11:07:30 or not May 07 11:07:38 or in some weird string format May 07 11:07:40 Syzygy: open up the jar in a zip program and check the manifest May 07 11:07:47 but most don't actually set the version correctly May 07 11:07:52 I'm unfortunately reqired to update the papertrail of our previous releases May 07 11:08:13 good luck May 07 11:08:17 seems like I can actually do it via the pom file for this one library. May 07 11:08:26 thanks for the suggestion May 07 11:08:43 true, someone jar's contain pom's May 07 11:09:01 but normally they are tracked by the artifact id in the filename May 07 11:11:54 Hi guys. I'm experiencing a problem. My custom (and working) transition animation isn't called when I push the back key of my activity. But I've made a overridePendingTransition( // my effects) in the onBackPressed() method. Any idea? May 07 11:12:27 in the manifest.mf file of a .jar "created by" means the JDK version? May 07 11:19:46 Alright, the last library I need to check isn't a .jar but an included project. It's the facebook sdk. May 07 11:20:02 again, the version isn't in the manifest May 07 11:25:01 Syzygy this is why (a) use maven or (b) put jars in libs/ with full version string in filename May 07 11:25:17 going back, its almost futile May 07 11:25:31 obviously (a) is far superior, you know that :) May 07 11:26:24 yes. but most of this was done before I even joined the company. May 07 11:27:01 my boss already invited me to talk about ways to implement a working dependency system tomorrow May 07 11:33:48 I've got a problem extending FragmentPagerAdapter. My code Overrides method getItem() but I get an two error messages. One says my class did not override getItem() and another error which says I cannot override getItem() May 07 11:34:17 The signatures are the same. May 07 11:34:57 can you show us the exact error messages? May 07 11:35:51 error: MyAdapter is not abstract and does not override abstract method getItem(int) in FragmentPagerAdapter May 07 11:36:11 error: getItem(int) in MyAdapter cannot override getItem(int) in FragmentPagerAdapter May 07 11:36:36 can you put the code on pastebin or similar? May 07 11:37:04 I'm using the MyAdapter code from android documentation http://developer.android.com/reference/android/support/v4/app/FragmentPagerAdapter.html May 07 11:37:26 I mean your own code May 07 11:38:10 your import like "android.support.v4.app.FragmentPagerAdapter" May 07 11:38:26 I have cut that class from andriod developer resources and pasted it into my code so I am using that MyAdapter class as is May 07 11:38:53 import android.support.v4.app.FragmentPagerAdapter; May 07 11:40:48 Cook varCook = May 07 11:41:11 Napalm: (Cook)getActivity().getApplicationContext(); gives me nul pointer exception in Fragment class May 07 11:41:58 Fragment in "public Fragment getItem(int position) {" must be "android.support.v4.app.Fragment;" May 07 11:42:57 not user android.app.Fragment May 07 11:43:09 sukoom: this is for me= May 07 11:43:09 not using android.app.Fragment May 07 11:43:19 ? May 07 11:43:29 for jwhitemore May 07 11:43:39 sorry May 07 11:45:37 frojnd: are you attach Fragment class to activity? May 07 11:46:50 sukoom: thanks May 07 11:46:56 yes that's it May 07 11:47:23 Sorry I'm a bit confused by all the support.v4 classes when developing for post API 11 May 07 11:48:10 jwhitemore: you're welcome May 07 11:48:30 if you develop for API 14+ you could use android.support.v13.app.FragmentPagerAdapter which uses android.app.Fragment May 07 11:48:57 sukoom: yeah, within displayView(int position) { Fragment fragment = null; switch (position) { case: fragment = new HomeFragment(); break; ... } May 07 11:50:28 sukoom: Ah sorry, I get castException May 07 11:50:52 ok May 07 11:51:32 sukoom: Unable to start activity /cook/MainActivity java.lang.ClassCastException: android.app.Application cannot be cast to Cook May 07 11:52:32 frojnd: what is your Cook class May 07 11:53:09 sukoom: I was trying to run this line: Cook cook = (Cook) getApplication(); in my Fragment class so I converted it to Cook cook = (Cook) getActivity().getApplicationContext(); May 07 11:53:34 what is your Cook Class? May 07 11:53:41 extends from Activity? May 07 11:53:51 or extends from Context? May 07 11:54:23 sukoom: was originally imported to MainActivity but now I'm trying to use it with fragments May 07 11:55:52 frojnd: please show your Cook class declaration? May 07 11:56:27 how to use gradle in android studio? May 07 11:56:34 Could anyone explain me this behaviour? A login activity finishs when the credentials are valid, another activity is launched with Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_TASK_ON_HOME as intent flags. I put the application in the background. I go back to it, and the application isn't at the second activity, but is restarting to the login activity. May 07 11:56:34 I don't understand since my back stack is on my second activity, I shouldn't come back to the first. May 07 11:56:50 I paste compile 'commons-lang:commons-lang:2.2' in build.gradle and nothing happens May 07 11:56:53 still get errors May 07 11:59:10 hai gang May 07 11:59:24 Is gradle worth using? May 07 11:59:40 I just use what ever eclipse plugin uses (I assume ant) May 07 12:02:57 mrpyo : that you try to use maven dependency in gradle? May 07 12:03:08 yep May 07 12:03:51 please read userguide http://tools.android.com/tech-docs/new-build-system/user-guide May 07 12:04:09 How to show a list under button? May 07 12:05:09 dependency is like this "dependencies {compile 'com.android.support:support-v4:19.0.1' }" May 07 12:06:54 phix you can't really use gradle with eclipse atm May 07 12:07:06 afaik May 07 12:08:19 someone knows something about how to work with sms's in android? May 07 12:08:21 oh May 07 12:15:57 is it possible to show a menu like 3-dot button menu? May 07 12:17:26 MalekAlrwily: sure May 07 12:21:45 MalekAlrwily: why not May 07 12:23:18 sukoom: looking at support Fragments as opposed to using native Fragments. My current app uses native fragments all over the place but now to put tabs into one of those fragments I need FragmentPagerAdapter which uses the support Fragment. Is there a way to put Native Fragments into a Tabed fragment May 07 12:23:31 Otherwise complete rewrite to support Fragments. May 07 12:24:27 complete rewrite? The methods are nearly the same. May 07 12:24:32 just replace the imports.. May 07 12:25:05 Yeah I guess but it seems messy to me and a backwards step May 07 12:25:29 Since I've no interest in supporting old APIs May 07 12:26:50 android.support.v13.app.FragmentPagerAdapter May 07 12:26:52 :) May 07 12:26:55 jwhitmore: What's wrong with supporting the Google Nexus One! It is a classic phone May 07 12:26:58 this one supports native fragments May 07 12:27:40 its in the support package v13 May 07 12:27:48 meh May 07 12:28:05 What's wrong with a bit of indirection and abstraction? May 07 12:28:39 dunno. just answered the question :) If its up to me, he should support down to 2.3 May 07 12:28:47 danijoo: yeah I guess that's the two options but what is it with support libraries. Why is this functionality not pulled into the core framework. It's not like tabs are a rarity May 07 12:28:47 phix: How to? May 07 12:28:49 agreed May 07 12:28:59 2.3 == Google Nexus One <3 May 07 12:29:06 jwhitmore: that question should go to google. i dunno :) May 07 12:29:07 true May 07 12:29:10 API 10 for the win May 07 12:29:16 yeah May 07 12:29:28 danijoo: I know but google won't answer my calls ;-) May 07 12:29:29 over 5000 devices there May 07 12:29:40 jwhitmore: throw money at them May 07 12:29:41 phix: How to May 07 12:29:47 in MainActivity without fragments I did: Cook cook = (Cook).getApplication(); to get instance of Cook. Now I created class that extends from Fragment. So I should do like this: Cook cook = (Cook) getActivity().getApplicationContext(); however I get castException: android.app.Application cannot be cast tot Cook. Any ideas why is that? May 07 12:30:18 (Cook).getApplication()? May 07 12:30:36 are you casting you just like to use () around a class? May 07 12:30:38 phix: Don't have enough money to throw that they'd notice May 07 12:30:59 jwhitmore: The CEOs still earn $1 a year right? :) May 07 12:31:02 jwhitmore: why you hat including support libraries that much? its to clicks to import support v13. May 07 12:31:17 jwhitmore: give them $2 May 07 12:31:20 although i agree that its kinda strange you need that for fragment pager :/ May 07 12:31:34 phix: sorry, Cook cook = (Cook) getApplication(); in MainActivity May 07 12:31:42 danijoo: I'm just that lazy. And like I say seems messy probably grows the apk May 07 12:31:43 looks better May 07 12:31:47 frojnd: :) May 07 12:31:48 frojnd: whats the problem? May 07 12:32:01 Napalm: hi :) I get CastException May 07 12:32:06 jwhitmore: by about a Mb or two May 07 12:32:27 Ok ok I'm off to embrace the support libraries May 07 12:32:29 but you are working with an API10 compatible device. not a parking metre May 07 12:32:36 frojnd: are you implementing getApplication() in your Activity yourself? May 07 12:32:40 :D May 07 12:33:32 Any idea to get an app launching a dialog fragment as soon as the app starts? May 07 12:33:34 frojnd: post your activity class please (but use gist or sth) May 07 12:33:36 Napalm: android.app.Application cannot be cast to Cook. Napalm no I'm not. May 07 12:33:48 throw new TimeoutException("answer my question take over 15 minutes"); May 07 12:33:55 danijoo: ok in a second May 07 12:34:20 MalekAlrwily: :) } catch(TimeoutException) {} May 07 12:34:34 Lol May 07 12:34:38 frojnd: well it sounds like you are.. because getApplication() in a Activity returns the ApplicationContext which you were saying previously worked. May 07 12:35:06 MalekAlrwily: I forgot an e after TimeoutException, not that it really matters as I do nothing with it ;P May 07 12:35:27 :P May 07 12:35:47 <3 May 07 12:36:00 How to show a list like spinner's list when click on button? May 07 12:36:22 MalekAlrwily: adapter? May 07 12:36:30 like 3-dot button May 07 12:36:35 Button button = (Button) findSomethingById(R.meButton); May 07 12:36:35 maybe May 07 12:37:00 Mmmh. Don't see any ways to get the app starting directly with a fragment. May 07 12:37:01 Had the idea to have an activity, without view, which loads a fragment but it doesn't work :-/ May 07 12:37:01 I don't like the idea to make an activity behave like a fragment thanks to a theme :-/ May 07 12:37:11 button.setOnClickListerenr(new OnCLickListener() {....})'; May 07 12:37:19 MalekAlrwily: android does this nativly if you have an adapter on it so i dont understand your question. May 07 12:37:59 i want to show a list under specific button May 07 12:38:18 you asked for spinner.. May 07 12:38:37 when click, it will show, and when click again, it will hide May 07 12:38:44 If you want to show it under a button use PopupMenu Class May 07 12:39:19 http://android-er.blogspot.de/2012/03/example-of-using-popupmenu.html May 07 12:39:26 danijoo helpful <3 May 07 12:39:31 danijoo: Napalm package si.gorenjecetrtapot.mobicook; May 07 12:39:32 import java.util.ArrayList; May 07 12:39:32 import java.util.HashMap; May 07 12:39:32 import java.util.Map; May 07 12:39:32 import com.app07.adapter.NavDrawerListAdapter; May 07 12:39:33 you're welcome May 07 12:39:34 import com.app07.model.NavDrawerItem; May 07 12:39:36 import android.app.Activity; May 07 12:39:39 import android.app.Fragment; May 07 12:39:41 import android.app.FragmentManager; May 07 12:39:43 fuck off May 07 12:39:44 import android.content.res.Configuration; May 07 12:39:46 import android.content.res.TypedArray; May 07 12:39:47 stop May 07 12:39:47 :D May 07 12:39:49 import android.os.Bundle; May 07 12:39:51 import android.support.v4.app.ActionBarDrawerToggle; May 07 12:39:52 what a dick May 07 12:39:52 really? .... May 07 12:39:54 import android.support.v4.widget.DrawerLayout; May 07 12:39:56 wow :D May 07 12:39:57 import android.util.Log; May 07 12:39:57 someone kick him May 07 12:39:59 import android.view.Menu; May 07 12:40:01 import android.view.MenuItem; May 07 12:40:04 import android.view.View; May 07 12:40:06 import android.widget.AdapterView; May 07 12:40:08 Whos op? May 07 12:40:09 import android.widget.ListView; May 07 12:40:10 OP May 07 12:40:11 public class MainActivity extends Activity { /* May 07 12:40:13 frojnd: no May 07 12:40:14 * GUI AND WEB SERVICE May 07 12:40:15 well maybe he just dont know :D May 07 12:40:16 */ May 07 12:40:17 Napalm, do it please May 07 12:40:18 pfn May 07 12:40:19 private DrawerLayout mDrawerLayout; May 07 12:40:21 private ListView mDrawerList; May 07 12:40:24 private ActionBarDrawerToggle mDrawerToggle; May 07 12:40:24 SimonVT May 07 12:40:25 we are not io May 07 12:40:26 // nav drawer title May 07 12:40:27 op May 07 12:40:29 private CharSequence mDrawerTitle; May 07 12:40:30 fffffs May 07 12:40:30 isnt there a spam filter? May 07 12:40:31 // used to store app title May 07 12:40:33 dont worry about him May 07 12:40:34 private CharSequence mTitle; May 07 12:40:36 it is just text May 07 12:40:36 // slide menu items May 07 12:40:38 who cares May 07 12:40:39 private String[] navMenuTitles; May 07 12:40:41 private TypedArray navMenuIcons; May 07 12:40:44 private ArrayList navDrawerItems; May 07 12:40:46 private NavDrawerListAdapter adapter; May 07 12:40:47 !ops May 07 12:40:49 @Override May 07 12:40:49 xD May 07 12:40:50 blocked May 07 12:40:51 protected void onCreate(Bundle savedInstanceState) { May 07 12:40:53 thank god May 07 12:40:54 super.onCreate(savedInstanceState); May 07 12:40:56 setContentView(R.layout.activity_main); May 07 12:40:59 May 07 12:41:01 mTitle = mDrawerTitle = getTitle(); May 07 12:41:04 // load slide menu items May 07 12:41:06 navMenuTitles = getResources().getStringArray(R.array.nav_drawer_items); May 07 12:41:09 // nav drawer icons from resources May 07 12:41:09 what is this? he accidently pasted code or what? May 07 12:41:11 navMenuIcons = getResources() May 07 12:41:12 why do you put m before your variables. May 07 12:41:16 SimonVT to the rescue May 07 12:41:19 mSomeField May 07 12:41:21 thaks ^^' May 07 12:41:29 what is the signifinagnts? May 07 12:41:36 See, I knew he must be an op, considering he is rude like op sometimes May 07 12:41:37 :D May 07 12:41:46 :D May 07 12:41:50 xD May 07 12:41:59 SimonVT: we know your secret now May 07 12:42:00 :D May 07 12:42:05 Napalm: danijoo https://gist.github.com/anonymous/40c3674eb5bcbd3a1356 May 07 12:42:10 Sorry again guys May 07 12:42:11 frojnd: dont post code here May 07 12:42:13 I didn't know it was a secret May 07 12:42:17 so using m, what does that mean/ May 07 12:42:20 frojnd: what does m mean/ May 07 12:42:23 it's for mobile May 07 12:42:27 SimonVT, Obviously, it was a secret. May 07 12:42:31 thats why you didn't knew. May 07 12:42:43 frojnd: why mobile? does it matter if you prepend fields / variables with an m? May 07 12:43:05 phix: no it does not matter May 07 12:43:07 phix: most people do that.. its m for "member", s for "static" May 07 12:43:16 Napalm: ah May 07 12:43:28 Napalm: doesn't java call it a field instead of a member/> May 07 12:43:57 phix: same difference May 07 12:44:52 member methods, member fields? May 07 12:45:17 I just call them finctions and variables May 07 12:45:23 Anyways, any ideas about castException? May 07 12:47:37 Ah I even pasted twice into gist May 07 12:49:10 Hi guys, could you please tell me what would be the best approach in creating an application that runs as a widget and is being called right after a call it's made and while the call is being made? Should I create a background service that always runs and listens to some kind of event ? I'm new to all this mobile development . May 07 12:49:38 ;) May 07 12:49:48 Zenger, you create a broadcast receiver that listens for call intents May 07 12:49:53 if required THEN it starts service May 07 12:50:03 but if it's a short task you just handle it in the receiver itself May 07 12:50:13 you should avoid running stuff in the background if at all possible May 07 12:52:02 Mavrik: well I want to create an app that allows the user to flag the caller after the call ends, and show some statistics while the caller id is shown. I think a broadcast reciever would be a better approach than actually running a whole process as a service May 07 12:55:17 Napalm: any ideas? can't scroll up but I think you asked if I declaired getApplication() in MainActivity? May 07 12:55:52 frojnd: You should store a singelton of your application class in the application class and use this to get application context May 07 12:57:14 like this: http://stackoverflow.com/questions/9178245/android-application-as-singleton May 07 12:57:45 then whereever you are, ou can do: MyApplication.getInstance() to get your application class (and the context in this way May 07 12:57:49 wow, using 'monitor' for memory profiling for the first time in a while … this thing is … awful May 07 12:58:19 actually, i'd call it a disgrace May 07 12:58:58 monitor? May 07 12:58:58 frojnd: You should store a singelton of your application class in the application May 07 12:59:01 class and use this to get application context May 07 12:59:04 14:56 < danijoo> like this: May 07 12:59:05 mother fucker May 07 12:59:08 http://stackoverflow.com/questions/9178245/android-application-as-singleton May 07 12:59:11 14:56 < danijoo> then whereever you are, ou can do: MyApplication.getInstance() to get your May 07 12:59:29 Gonna ditch that mouse May 07 12:59:37 Mavrik 'android debug monitor' http://developer.android.com/tools/debugging/debugging-memory.html May 07 12:59:42 did you just insult me? ^^' May 07 12:59:51 ah that May 07 13:00:01 I prefer using Eclipse MAT for heap dump analysis May 07 13:00:05 danijoo: no :D thank you for example :) May 07 13:00:13 you are welcome May 07 13:00:15 danijoo: my mouse is not working as it should though May 07 13:00:17 whats the purpose of the label field on an activity in the manifest? May 07 13:00:27 Mavrik can I use MAT to analyze garbage ? May 07 13:00:45 i think i'm making too many small objects somewhere May 07 13:01:07 mhm May 07 13:01:09 then again the BT stack seems to be allocating a a char array for every byte its reading from the stream May 07 13:01:14 g00s, there's a button that dumps heap May 07 13:01:37 then run gprof-conv or whatever the tool is to convert dalvik heap to "normal" heap dump May 07 13:02:05 ok, can't remember if that was just for memory leaks or … i'd like to know what performance critical path is creating the garbage May 07 13:02:39 g00s, it won't tell you garbage over time May 07 13:02:48 but it will give you full snapshot of whatever it is on heap May 07 13:02:57 so you can see which objects hold which references May 07 13:03:01 I have a LinearLayout with children. I set the visibility of this layout to GONE. If I set it to VISIBLE later on, the children of the LinearLayout are still not showing. What is this? May 07 13:03:55 did u set the children to gone/invisible, too? May 07 13:04:53 i don't think so... maybe in xml.. mom May 07 13:05:22 nope May 07 13:06:20 Mavrik .. is MAT built in to monitor? or do i have to install eclipse and add MAT May 07 13:06:45 can you post the code please. it shouldnt act this way May 07 13:07:03 g00s, no. yes. May 07 13:07:19 hm, thx May 07 13:07:25 MAT is available as both an eclipse plugin and a standalone application May 07 13:09:34 not sure MAT will help much identify where the garbage is being generated; i'd use it to compare 2 hprofs for increases in count May 07 13:09:42 well May 07 13:10:00 you see which objects are holding the references? May 07 13:12:10 * g00s grabbing mat May 07 13:14:05 danijoo, sry i'm not really sure if i'm allowed to post this code :D May 07 13:14:15 thanks though May 07 13:44:59 if i want to sync one of my projects between 2 workstations that I'll be working from, what's the recommended way of doing this ? SVN ? May 07 13:47:26 Any versioning system is good if you have a server available May 07 13:47:53 anything I should be wary of when it comes to Android projects ? May 07 13:48:37 dont sync bin/, gen/, and all files IDE-related May 07 13:48:51 ok cool. Thanks May 07 13:48:56 might have to spin up a SVN VM then :D May 07 13:49:21 if you dont worry about your code being public, you have github May 07 13:49:44 yeah that was my other option May 07 13:49:50 but for now, I'd like to keep it private May 07 13:49:59 good time to learn SVN anyway :D May 07 13:50:03 thanks h3bus May 07 13:50:14 no problem man May 07 13:50:29 why... just use git May 07 13:50:46 pfn: why not github ? or why svn ? May 07 13:52:12 Any one can help me with volley May 07 13:52:42 rathodvikas10: ? May 07 13:53:50 Last post request is been called on network drop May 07 13:53:54 http://stackoverflow.com/questions/23508535/android-volley-last-request-post-call-on-network-drop May 07 13:54:35 You can see my question it has in detail log May 07 13:56:25 See if you can help me May 07 13:56:53 rathodvikas10: what is the timeout? May 07 13:57:40 rathodvikas10: it seems like an authentication error May 07 13:57:56 meaning wither the server is not saving your session pr you aren't May 07 13:58:10 Have you seen the log in pastbin May 07 13:58:30 yes, and the failures are AuthFailureError May 07 13:58:43 and TimeoutError May 07 13:59:32 uh, is this website just not working in the latest chrome? https://developers.google.com/events/io/2012/ May 07 13:59:36 rathodvikas10: I assume you had a timeout on the authentication request May 07 13:59:36 Yes true bt when you again do new request it give response of last post method May 07 13:59:50 g00s: works for me on Mac May 07 13:59:51 * g00s can't click on anything in the top bar May 07 14:00:07 Schedule .. example May 07 14:00:08 Anyone else have issues with Studio and Android tests? I'm trying to run tests and just get "Empty test suite" all the time May 07 14:00:20 SirLagz, because you want a private repo? May 07 14:00:20 * thepoosh is succeeding but it looks bad May 07 14:00:25 Yet co-worker has no issues on his PC with same run configuration May 07 14:00:29 and because svn sucks May 07 14:00:30 ff & chrome aren't rendering it right May 07 14:01:47 g00s: it's like government sites in Israel, supports only IE7 May 07 14:01:58 heh May 07 14:02:18 if you see them you will go insane May 07 14:02:20 actually i'm just trying to find the most recent advice on memory performance, mostly GC May 07 14:02:22 thepoosh see if you can find something May 07 14:02:39 and using the tools; i'm seeing a lot of GC but can't figure out where its coming from May 07 14:02:49 don't think MAT dominator tree is going to help May 07 14:03:01 rathodvikas10: I found something and pointed it out to you May 07 14:03:18 g00s: I found this on an Israeli government site - http://redd.it/1v4eg4 May 07 14:05:17 where you guys been all day May 07 14:06:04 OK thepoosh I can understand that it is either Timeout or auth error good bt when new post request is fired why I get old post request result May 07 14:07:07 uh, in android debug monitor, how do i tell it to reset allocation tracking. once its starts, it seems to always show stuff May 07 14:07:22 after stop, want to reset, baseline , start from 0 May 07 14:07:34 its like its always pulling from the ring buffer May 07 14:08:02 g00s, transient garbage is a part of using java, all local variables are transient garbage May 07 14:09:15 my second q, in the allocation tracker table, there is a column 'Allocated In' May 07 14:09:32 anyhow, when you click on a row, there are details below it May 07 14:09:53 but i see : 'at xxx.yy.zz …' like it got cut off May 07 14:10:01 g00s: that is cool May 07 14:10:13 transient garbage May 07 14:10:17 I like that term May 07 14:10:19 without the line #. if i hover over it, then the full thing shows up in the tool tip for a second ... May 07 14:10:33 until the log or some UI event and the tooltip goes away May 07 14:10:40 JESUS CHRIST THESE TOOLS FUCKING SUCK May 07 14:10:45 haha May 07 14:11:00 xcode was better than this 5 years ago May 07 14:11:25 Xcode much wonderful so wow May 07 14:11:29 Sure it was... May 07 14:11:49 Instruments alone can out benefit Eclipse lol May 07 14:11:54 ^^ no idea if true May 07 14:12:21 just participating in frustration May 07 14:15:17 pfn: because I'm paranoid lol May 07 14:15:49 there are open source tools for hosting git private repos May 07 14:16:05 hosting private git repos, as in locally ? May 07 14:16:07 like svn ? May 07 14:16:36 yeah May 07 14:16:45 i mean, if you have your own team May 07 14:16:46 yeah, that's what I was thinking, set up my own private svn repo May 07 14:16:58 well it's not really my own team, I just want to sync things between a few different workstatios May 07 14:17:29 in android studio you get tabs for every open file you've got. Eventually you get the more button. I saw someone who had 2 bars of open tabs.. where do I find that option? May 07 14:22:57 I am trying to use google cloud messaging and implment a http server. http://pastebin.com/cFPr5047 I keep getting "Server returned HTTP response code: 401 for URL: https://android.googleapis.com/gcm/send" I have censored my keys in the pasted code May 07 14:26:07 Click66, tabs in AS should be default May 07 14:26:11 no, wait May 07 14:26:15 Im thinking Tree May 07 14:26:17 horizontal May 07 14:26:21 don't know, bye May 07 14:35:46 hm, so even from the d.android site, here is a screen grab of allocation tracker http://developer.android.com/images/tools/monitor-tracker@2x.png May 07 14:36:23 the last line in th ebottom right pane has 'at com.example.android.navifation____ ..." May 07 14:36:38 how do i get the whole line? a lot of mine are getting cut off and its useless May 07 14:36:39 Eh, so I am trying to use sockets... but considering its synchronous, is there any way to "not loop constantly" to check for messages May 07 14:36:59 g00s: make the window bigger than the screen May 07 14:37:00 lol May 07 14:37:13 Napalm doesn't resize the stupid content May 07 14:37:29 g00s: reselect the row, try that May 07 14:37:39 nope May 07 14:37:42 :( May 07 14:37:46 have it full screen May 07 14:38:04 lots and lots of empty space after all the '…' May 07 14:38:38 wonder if android itself is chucking after a certain length May 07 14:40:15 hello I created library project in Android Studio, then added application as a module, problem is it can't see lib's classes May 07 14:40:38 do I have to put something in gradle? May 07 14:41:34 mrpyo make your gradle files by hand, its much better ;) May 07 14:41:53 Well, if I have dedicated thread, and I do blocking read... will it be CPU and battery intensive? May 07 14:42:01 SirLagz, git works best for that situation May 07 14:42:05 Is it possible to change the color of the action bar spinner divider? May 07 14:42:07 svn doesn't May 07 14:42:26 pfn: sounds like git will be the better choice then May 07 14:42:53 Need to change the network type(2g/3g/4g) on a rooted phone.Is there anyway? May 07 14:43:29 SirLagz, if you're paranoid, git is the best solution May 07 14:43:35 git does not require a server to sync different workstations May 07 14:43:40 it can sync directly off filesystem May 07 14:43:59 just git clone /path/to/your/original/copy May 07 14:44:02 And you can have private repositories on servers, for free. May 07 14:44:05 and you can git pull/push all day long May 07 14:44:21 you can do this over nfs, cifs, dropbox, google drive, whatever May 07 14:45:07 pfn: I guess I'll just have to have a server to be always on so I can do that May 07 14:45:19 but you don't need one... May 07 14:45:30 Mind_Hacker: you might want a more general channel (#android), but isn't there an option in the mobile networks settings bit? May 07 14:45:30 pfn: how am I going to sync from a computer that's off ? May 07 14:45:44 pfn: I don't keep my computers on 24/7 anymore, just my server May 07 14:45:45 weird, when adding modules to same project I would expect AS to create appropriate entries in build.gradle itself May 07 14:45:52 why would you need to sync at that time May 07 14:46:05 Anyone have any ideas on this question I have? May 07 14:46:06 http://stackoverflow.com/questions/23508807/disable-status-bar-android-4/23509191?noredirect=1#23509191 May 07 14:46:17 pfn: to work on the latest code from a different workstation ? May 07 14:46:19 mrpyo: AS only adds it to settings.gradle May 07 14:46:24 SirLagz, sync it when it's on.... May 07 14:46:33 I noticed May 07 14:46:35 pfn: I probably won't have both workstations on at the same time May 07 14:46:36 does not know about dependencies unless u explicitly tell it May 07 14:48:12 * pfn shrugs May 07 14:48:19 anyway, you can put it on your server on a cifs share May 07 14:48:21 easy May 07 14:48:44 ewwww cifs :P May 07 14:49:00 whatever you want to use then May 07 14:49:03 haha May 07 14:49:10 yeah I'll figure something out with git then May 07 14:49:13 pfn: thanks May 07 14:52:29 Estel:I'm talking about doing it with the api May 07 14:52:56 Mind_Hacker: #android-root then ^^ May 07 14:57:25 i have an AlertDialog, How to add clickable link to other activity? May 07 15:00:04 set the DialogInterface.OnClickListener of one of the AlertDialog's Buttons to fire an Intent that starts that Activity May 07 15:01:53 Can I build android apps with HTML,CSS and Javascript only May 07 15:02:05 yes, but you shouldn't May 07 15:04:35 just got off the phone with the VP of engineering for this OEM that makes bluetooth devices; their first sw app was for iOS so i got to ask him about the experience, and android. well, they were having plenty of problems with android & BT so thats not a surprise. May 07 15:04:36 doogan: Well I am a web developer and i wanted to know If I can build apps without having to learn Java May 07 15:05:02 so i don't feel so bad , its not just me May 07 15:05:09 bePolite: framework like phonegap allow you to do that May 07 15:06:02 but I dont know if you can "only" use html, css, js, I guess you should have to write Java at some point May 07 15:12:33 anyone find that within a fragment, getView.setKeepScreenOn(true) does not work ? May 07 15:12:54 i have to use the window manager, but i'd rather use the view May 07 15:14:30 without reading through the code, i'm guessing the window manager knows if there are attached views with keepScreenOn, so its doing some accounting May 07 15:14:32 is there any android ui library like twitter bootstrap? May 07 15:15:14 yeah, that would be great if google added more widgets to their support libraries May 07 15:15:36 or had a 'power pack' or something with stuff unrelated to support (not backported) May 07 15:16:15 but over the years, the attitude has generally been "do it yourself" May 07 15:16:19 :) May 07 15:19:01 g00s, something from square or others on the UI end? May 07 15:19:19 hmm .. square has a lot of libraries, for all kinds of things May 07 15:19:30 not sure about widgets though May 07 15:19:31 meadhikari: no May 07 15:20:05 JakeWharton, no one has built anything regarding UI yet? May 07 15:20:29 thanks h3bus May 07 15:20:36 I can now stop learning java May 07 15:20:44 Bye to Objective-C May 07 15:20:49 Unlike the web, Android ships with default themes that serve the exact purpose of bootstrap May 07 15:20:53 bePolite don't beStupid May 07 15:21:07 g00s: bePolite May 07 15:21:20 :) May 07 15:21:39 Is there a way to cleanup a Service when the phone's shutdown? May 07 15:21:49 JakeWharton, i mean to make a rounded button everyone reinvents the wheel? May 07 15:22:00 meadhikari I did May 07 15:22:12 the wheel was already invented in the shape drawables May 07 15:22:36 why didn't I think of those... May 07 15:23:13 JakeWharton, i mean more abstraction :) May 07 15:23:50 MohammadAG, are they on github? May 07 15:23:59 the button? no, not yet May 07 15:24:10 I think it's specific to my app though May 07 15:24:20 in the sense that I also draw pause and stop in it manually May 07 15:24:26 meadhikari but what do you mean by UI library ? May 07 15:24:41 like new widgets, StaggeredListView, ? May 07 15:25:04 g00s, i mean just like twitter bootstrap May 07 15:25:16 i thought i knew what that meant, but not sure now :) May 07 15:25:32 so, for anyone not using bootstrap, what do you mean XD May 07 15:25:37 by twitter bootstrap i only mean easier to create awesome UI May 07 15:25:44 meadhikari I think you're better off using a Button with a ShapeDrawable, but here you go https://gist.github.com/MohammadAG/c0047f254d323ec9133d May 07 15:25:58 i don't know if twitter bootstrap meant that or not xD May 07 15:26:43 what it looks like http://i.imgur.com/tDP8opp.png May 07 15:26:47 MohammadAG, thanks for sharing May 07 15:27:46 no worries, I'm probably open sourcing the whole thing when it's done May 07 15:28:03 http://i.imgur.com/uO0RRD0.png it has a couple custom Views I'm proud of :p May 07 15:29:08 MohammadAG thats very nice :) May 07 15:29:25 is there a way to make gradle build faster? May 07 15:29:44 yes, you simply decrease your heart rate May 07 15:29:46 g00s thanks, I only coded the thing, design was from https://plus.google.com/u/0/100445076424958439568/posts/1Q699aZLJ7g May 07 15:30:28 the round mic button is 250 lines alone though, I consider that a lot for a View May 07 15:30:59 MohammadAG, that g+ link is not working May 07 15:31:20 meadhikari works fine here May 07 15:31:46 it's on this group https://plus.google.com/u/0/communities/108674197167515140403 May 07 15:32:21 "or the post may not have been shared with this account" this could be the reason May 07 15:32:39 hm, String.format() creates a ton of garbage May 07 15:33:42 Are there any books or resources on the web, that teach about the android source and the OS... May 07 15:33:52 meadhikari probably a group thing, the post's public I think May 07 15:34:02 Mind_Hacker: d.android.com May 07 15:34:30 g00s how come? May 07 15:34:45 this is the user flow for one of my app's activities: http://i.imgur.com/lZ4wh0j.jpg - any ideas on how to introduce the app to the user? May 07 15:34:59 Mind_Hacker do you mean like 'Android Internals' :) May 07 15:35:10 MohammadAG probably harmony has crap implementation May 07 15:35:19 g00s:Yeah May 07 15:35:30 no idea what harmony is, so I'll just nod and agree May 07 15:36:10 Is it possible to disable the listview divider between certain items? And also, is it possible to change it's color? http://i.gyazo.com/527d7ef35289480f778be42053b594f3.png In this image, I'd want the divider to be white-ish and I'd like to remove the divider between the item and the header May 07 15:36:34 autrilla: definitely doable May 07 15:36:53 Mind_Hacker oreilly has a book about building and extending andoid, might have some about its architecture May 07 15:36:59 autrilla: i'd write some special case in getView() May 07 15:37:04 http://www.amazon.com/Embedded-Android-Porting-Extending-Customizing/dp/1449308295 May 07 15:37:24 Mango_Man, I already have getView() overriden, what would I need to do in it? May 07 15:37:29 i thought apress / packt had another one on internals but i can not find it May 07 15:37:32 autrilla: just make dividers a part of the view, and set the listview dividers to null/empty May 07 15:37:50 Is there any way to get htc connect on a nexus 4? May 07 15:37:56 g00s:Thanks a lot man. May 07 15:38:11 autrilla: what frankdoyle said - whenever you getView() on a header item, just disable the listview divider in the header item view May 07 15:38:28 frankdoyle, I don't think you can disable dividers on the actionbar spinner May 07 15:39:15 of course you can. underneath everything, it's just a listview. should be able to do it in styles somewhere May 07 15:40:05 is there a way to have a linear layout with two nested layouts, one of which won't take up any space until it has content? without having to dynamically change the layout in code? May 07 15:40:51 frankdoyle, yeah, but it would apply to ALL listviews May 07 15:41:36 mattblang_: yeah, sure. What are you trying to do? May 07 15:43:08 Estel I'm creating a master detail using fragments. I want to mimic the gmail app, which will show the list when you flip a table to landscape, but will then show the details if one of the list items (emails) is clicked May 07 15:52:22 how do i clear the text in a SearchView programatically May 07 15:52:29 widget May 07 15:52:39 its in the actionbar May 07 15:52:54 there is not .setText() May 07 15:54:29 anyone know how they did the scrolling numbers on the left in timely ??? May 07 15:55:37 Why would I get this: Error:Gradle: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.Holo.Spinner.DropDown.ActionBar'. if Widget.Holo.Spinner.DropDown.ActionBar existis on styles.xml? May 07 15:58:16 anyone see a ViewGroup like the windows phone tiles screen? where you can resize tiles, move them around and they reflow ? May 07 15:58:50 its not really staggered, i think everything is 1x1, 2x2, or 4x2 May 07 15:59:20 g00s, staggeredgridview? May 07 15:59:26 From etsy May 07 15:59:29 no ... May 07 15:59:39 all the edges must align May 07 15:59:46 drag and drop moving around, etc May 07 16:00:07 so it would look like http://images.gizmag.com/hero/windows-phone-8-getting-started-tips-13.jpg May 07 16:00:13 screen on the yellow device May 07 16:00:33 I see. No clue May 07 16:01:51 i actually hate that staggered crap May 07 16:01:57 * g00s likes edges aligned May 07 16:03:08 I wonder why there isn't a way to get the actual spinner in the actionbar May 07 16:09:22 g00s: staggeredgridviewdemo on github May 07 16:13:03 anyone here uses ParseQueryAdapter from Parse.com? May 07 16:14:32 dos000 i dont' really want uneven rows; just rows and columns of integral size of each other May 07 16:14:53 cant you set them to that ? May 07 16:15:13 i didn't think so May 07 16:15:28 so basically everything flows around this grid May 07 16:15:50 its hard to explain, have you played with WP home screen? May 07 16:15:52 and you want it to also handle touch events ? and reflow ? May 07 16:16:02 no ( May 07 16:16:12 its so much fun, i always mess with the tiles :) May 07 16:16:25 very fluid, nice animations May 07 16:16:28 i am happy with win7 May 07 16:16:35 g00s: comcast freeflow May 07 16:16:59 JakeWharton oh sweet May 07 16:17:10 YESS!!!! May 07 16:17:23 JakeWharton thanks, this is what i'm looking for May 07 16:19:50 guys .. how would you do the left scrolling numbers in timely ? May 07 16:25:17 GridAdapter giving me some issues: http://stackoverflow.com/q/23523104/2329391 May 07 16:26:20 just a general question. Parse.com provides ParseQueryAdapter for displaying listview. How can I check how much better/worse it is compared to Android's ArrayAdapter May 07 16:32:46 WantToCode, hugo by Jake Wharton May 07 16:32:49 is there a setting in AS to manually sync gradle files? sometimes i change it, but don't get that 'your files may need to be sync'd' notification May 07 16:33:04 gradle pane, refresh button May 07 16:33:18 aha, thanks May 07 16:34:03 grrr, NIO can be great.. but then it can also be a big huge pain in the ass May 07 16:34:10 why Java why May 07 16:34:18 because it's java May 07 16:34:19 duh May 07 16:34:19 :p May 07 16:34:30 doh May 07 16:34:45 autrilla: Thanks, should I include it in the getItem of the adapter? May 07 16:35:06 WantToCode, on the Adapter, whichever methods you want to time May 07 16:35:38 nio has an api that takes some getting used to May 07 16:36:29 Heck, is it just impossible to remove the separator from a spinner in the ActionBar? May 07 16:37:06 Napalm: what are you using NIO for? May 07 16:37:21 need to do some http proxying May 07 16:37:47 Right now both the adapters are just basic, didnt change much, I want to compare two different adapters in terms of speed. So should I just add @DebugLog above the getItem method, right? May 07 16:37:55 using it for the sinking and sourcing the buffers May 07 16:38:11 Napalm: might be worth looking at our Okio: http://github.com/square/okio May 07 16:38:23 There is no apparent way of getting a Spinner object from the actionbar.... May 07 16:38:36 autrilla: what separator? May 07 16:38:50 JakeWharton, wait, I'll get a pic May 07 16:39:21 Napalm: more info: http://corner.squareup.com/2014/04/okio.html May 07 16:39:22 http://i.gyazo.com/527d7ef35289480f778be42053b594f3.png See it there? It's black May 07 16:39:42 autrilla: why are you trying to get the Spinner? May 07 16:39:53 that's listDivider on the theme's dropDownPopupStyle May 07 16:40:11 Napalm, I'm not trying to get the spinner, I was just saying Android doesn't allow you to get it May 07 16:40:17 as it shouldn't May 07 16:40:23 it's an implementation detail of list nav May 07 16:40:40 JakeWharton: I want to compare two different adapters in term of speed. One is ParseQueryAdapter from Parse.com and other the native adapter. As suggested by autrilla, when using hugo, should I just add @DebugLog above the getItem method? May 07 16:41:09 sure, it will measure execution time of any method May 07 16:41:37 JakeWharton, hmmm... alright. However, I guess I'd have to set it to null, because I don't think I can just turn it off for some items and on for others May 07 16:41:46 right May 07 16:42:00 autrilla: you can May 07 16:42:07 Thanks JakeWharton would the getItem method suffice, or should I add it somewhere else like while setting adapter? May 07 16:42:51 Hey guys - I seem to be confused about Cordova May 07 16:42:53 Napalm, how? May 07 16:43:17 WantToCode you may also be able to use https://code.google.com/p/caliper/ May 07 16:43:20 autrilla: in your adapter imeplement areAllItemsEnabled() and have it return false. then implement isEnabled() in your adapter and have it return true only for the items you want dividers. May 07 16:43:27 I see a lot of confusing uses of "Cordova" and "Phonegap". To me, they are 2 different projects, split by Adobe. Kind of like Fedora is to Redhat May 07 16:43:43 Also, can cordova use plugins for phonegap? I can't seem to find a solid answer May 07 16:43:46 Thanks g00s May 07 16:43:46 historypeats this is native app dev :) May 07 16:43:54 g00s: Ah, okay =P May 07 16:43:54 Napalm, I already have that, and I guess I'd have to return false for the item before my header too, not just for the header May 07 16:44:39 heh, i see limpbizkit on a lot of google code projects May 07 16:44:44 autrilla: that would make that item not "clickable" May 07 16:44:45 * g00s wonder who it is May 07 16:45:16 autrilla: what are you trying to do? change the dividers.. remove them all? what exactly? May 07 16:45:18 Napalm, I suppose... but as it is right now, it shows a divider before the header May 07 16:45:42 Napalm, have white dividers (wonder why they're black over a black bg), and have dividers only where they're meant to be May 07 16:45:57 Aka no dividers on top or below disabled items May 07 16:46:12 because you screwed up your parent on your ActionBar style May 07 16:46:46 Napalm, I got the ActionBar theme from http://jgilfelt.github.io/android-actionbarstylegenerator/ May 07 16:47:07 so? May 07 16:47:36 just do what JakeWharton said.. change the divider color May 07 16:48:49 g00s: jesse wilson May 07 16:48:54 hehe May 07 16:49:11 autrilla: do this.. go into your styles.. find your theme.. find actionDropDownStyle go to the style it references and add a listDivider attribute with value @null May 07 16:49:15 that will remove your divider May 07 16:49:16 wondered if limbizkit switched careers :) May 07 16:49:22 if i remember right May 07 16:49:38 that or use @android:color/transparent May 07 16:49:58 Napalm,