**** BEGIN LOGGING AT Sun Aug 31 02:59:59 2014 Aug 31 03:03:03 framework specific questions Aug 31 03:03:18 basically I want freeform markers without having to connect our hardware to remote devices Aug 31 03:05:14 holy fuck google maps. Aug 31 03:05:18 Shouldn't be a problem with a limited number of markers. Aug 31 03:05:31 Does anyone have a canocial guide to using google maps within a fragment? Aug 31 03:05:56 If you create it with xml, it crashes anytime you close and reopen the parent fragment (duplicate ID error) Aug 31 03:06:15 if you make it programatically, you're stuck in shits-creek without a paddle anytime you rotate the screeen Aug 31 03:06:19 I'm so lost now =/ Aug 31 03:08:38 AMomchilov I think both of those probs are maybe due to you not really understanding it Aug 31 03:08:56 No, i've been reading a ton on it Aug 31 03:09:04 duplicate id error …well dont allow creation of 2 instances of it then :) Aug 31 03:09:06 the fix for the first method is to remove the fragment in onDestory Aug 31 03:09:17 crash on rotate, well handle the rotation better :) Aug 31 03:09:20 which isn't always possible, depending on the state of the parent activity Aug 31 03:09:35 .isDestroyed requires API level 16, so I can't use it Aug 31 03:09:50 and without it you get Aug 31 03:09:52 java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState Aug 31 03:10:55 what do you mean state of the parent ? Aug 31 03:11:45 g00s: whats new player Aug 31 03:11:56 hm, i think i broke my foot Aug 31 03:12:03 oww Aug 31 03:58:43 Anyone know how to build cpp-netlib for use with the ndk? Aug 31 05:04:16 StingRay_: are you around? Aug 31 05:04:41 ya…was thinking maybe I need more coffee though Aug 31 05:04:43 6am here Aug 31 05:04:49 ahah Aug 31 05:04:55 intrevenous coffee (y) Aug 31 05:05:26 "java.lang.RuntimeException: Unable to start activity ComponentInfo{ca.mixitmedia.weaver/ca.mixitmedia.weaver.WeaverActivity}: java.lang.IllegalArgumentException: No view found for id 0x7f050021 (ca.mixitmedia.weaver:id/googleMapHolder) for fragment MapFragment{64e76390 #2 id=0x7f050021}" Aug 31 05:05:51 https://gist.github.com/amomchilov/a1abc26d41ef36991f6e Aug 31 05:05:53 dont paste in channel Aug 31 05:06:17 StingRay_: same timezone.. who needs coffee when you have dr.pepper and code :D Aug 31 05:06:53 AMomchilov so does R.id.googleMapHolder exist in the current viewTree ? Aug 31 05:07:07 what do you mean by "current" Aug 31 05:07:09 at what time? Aug 31 05:08:02 at the time of fragment manager complaining about it in that line ? Aug 31 05:08:06 btw i should note that that exception is thrown when trying to rotate the phone Aug 31 05:09:15 AMomchilov have you gone though the basic fragment tutorials ? Aug 31 05:09:22 come to think of it the android ones too ? Aug 31 05:09:54 no Aug 31 05:09:55 and yes Aug 31 05:10:28 man so many of those are so outdated, it's really disappointing Aug 31 05:10:28 cause you using a fragment to add a fragment to itself ? as in nesting it ? Aug 31 05:10:39 just use the ones on d.android.com Aug 31 05:10:45 how am I adding a fragment to itself? Aug 31 05:11:04 erm WeaverMapFragment extends Fragment <--- fragment Aug 31 05:11:14 I'm adding a MapFragment (com.google.android.gms.maps.MapFragment;) Aug 31 05:11:22 to a custom fragment class Aug 31 05:11:26 yeah that's nesting fragments Aug 31 05:11:31 then you are getting fragment manager to add MapFragment Aug 31 05:11:32 but that's not adding a fragment to itself Aug 31 05:11:37 it really is Aug 31 05:11:38 :) Aug 31 05:11:53 WeaverMapFragment ≠ com.google.android.gms.maps.MapFragment Aug 31 05:12:19 its nesting, yes, that's the point Aug 31 05:12:23 but i'm not adding a fragment to itself Aug 31 05:13:01 well yeah I mean nesting a fragment in a blank fragment Aug 31 05:13:06 seems kinda odd Aug 31 05:13:16 it's blank for now Aug 31 05:13:30 oh ok, you gonna add lots Aug 31 05:13:55 mhmm Aug 31 05:14:01 so let me ask you this… if you get a fragment that has a simple TextView Aug 31 05:14:12 and you have that in a fragmentActivity Aug 31 05:14:26 can you handle screen rotation fine with that ? Aug 31 05:14:33 and handle the fragments fine ? Aug 31 05:14:47 let's try it Aug 31 05:14:48 TextView that has some text set by user Aug 31 05:14:50 give me a second Aug 31 05:14:56 so EditText rather Aug 31 05:14:58 :) Aug 31 05:15:03 i won't do a text view, i'll just add one of my other fragments Aug 31 05:15:06 see if that's ok Aug 31 05:15:10 no Aug 31 05:15:15 ? Aug 31 05:15:16 EditText view Aug 31 05:15:19 set buy user Aug 31 05:15:22 pourquoi? Aug 31 05:15:33 well this is the basics Aug 31 05:15:39 101 that you should know everything about Aug 31 05:15:48 yeah I know how to do that Aug 31 05:16:07 why would I do that for debugging when I could use an existing fragment that i've made Aug 31 05:16:26 cause will teach you about states and lifecycle Aug 31 05:16:31 up to you though Aug 31 05:16:34 do what you want :) Aug 31 05:16:38 I've gone through that Aug 31 05:17:20 ok well whats the question about that exception ? Aug 31 05:17:27 no view found kinda says it all Aug 31 05:18:51 also you seem to have missed the bit about using fragmentManager and getting the old fragment back Aug 31 05:18:57 you sure you gone though the tuts ? Aug 31 05:19:26 one sec Aug 31 05:22:47 oops that onPause was meant to be an onDestroy Aug 31 05:22:51 doesn't really matter though Aug 31 05:23:06 i'm putting in some code to check if the view still exists Aug 31 05:28:48 "also you seem to have missed the bit about using fragmentManager and getting the old fragment back" elaborate? Aug 31 05:29:13 honestly read the docs Aug 31 05:29:15 and tuts Aug 31 05:29:25 tis there, dont really have time to give tutorials atm Aug 31 05:29:54 i have been... for the past several hours Aug 31 05:30:03 my code is ended up exactly like some of the samples i've found Aug 31 05:30:52 So far I know that the fragment is added properly Aug 31 05:31:19 and that everything messes up when the phone is rotated, when the OS saves, destroys, creates and restores the fragment in its new state Aug 31 05:31:46 you mean you save, you create right ? or re-attach Aug 31 05:32:11 hmm? Aug 31 05:32:40 thats not a direct simple question :) Aug 31 05:32:46 hmm? Aug 31 05:32:48 :) Aug 31 05:33:27 i'm infering that you're asking if I (personally) am doing the saving, destroying, etc. Aug 31 05:33:41 But that doesn't make sense, because I figure you'd know the OS handles that Aug 31 05:33:51 saving what ? Aug 31 05:33:58 the fragment ? Aug 31 05:34:02 yeah Aug 31 05:34:03 does it restore it also ? Aug 31 05:34:28 sec, i had a list of the methods called when rotated Aug 31 05:34:32 but yes Aug 31 05:34:47 honest, when you can do what I said Aug 31 05:34:54 simple fragment with edit text Aug 31 05:34:57 and rotate Aug 31 05:35:09 then when you can put that fragment 1 fragment down and nested, and rotate Aug 31 05:35:20 then you will have a good idea of how to deal with this Aug 31 05:35:22 Making fragments isn't an issue Aug 31 05:35:27 or this is my humble opinion Aug 31 05:35:28 I have several already Aug 31 05:35:37 it's the nesting i'm having an issue with Aug 31 05:35:43 I already have 10s of fragments Aug 31 05:35:53 user forms, compass, video players, etc. Aug 31 05:36:03 ok in the forms Aug 31 05:36:06 but that's beside the form Aug 31 05:36:08 when you rotate Aug 31 05:36:10 the point* Aug 31 05:36:12 brainfart Aug 31 05:36:19 what happens ? does it all restore fine ? Aug 31 05:36:22 yeah Aug 31 05:36:31 the form doesn't have any other fragments nested in Aug 31 05:36:48 I mean you tag it and findFragmentByTag then ? Aug 31 05:37:01 or you just create another every rotate ? Aug 31 05:37:48 niether Aug 31 05:38:07 so in the fragmentActivity Aug 31 05:38:18 I don't have a fragment activity Aug 31 05:38:26 I'm using a DrawerActivity Aug 31 05:39:36 I have no idea what that is Aug 31 05:39:38 sorry Aug 31 05:39:55 You know the sidebar in the YouTube app? Aug 31 05:40:04 yeah Aug 31 05:40:05 also used to be in the facebook app until recently Aug 31 05:40:06 that Aug 31 05:40:08 thats a drawer Aug 31 05:40:14 not a drawerActivity Aug 31 05:40:28 the former is a component of android, the latter I have no idea about Aug 31 05:41:01 oh hah I totes thought it was part of the API Aug 31 05:41:05 that's custom class :p Aug 31 05:41:08 that's not my part Aug 31 05:41:14 it's an Activity subclass Aug 31 05:43:25 you mean a fragmentActivity Aug 31 05:43:32 nope Aug 31 05:43:34 just Activity Aug 31 05:47:23 The exception that's thrown seems nondeterministic Aug 31 05:47:38 now it's java.lang.RuntimeException: Unable to destroy activity {ca.mixitmedia.weaver/ca.mixitmedia.weaver.WeaverActivity}: java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState Aug 31 06:03:59 AMomchilov just means whatever you are doing cannot be done at that point Aug 31 06:04:09 well, after onSaveInstanceState Aug 31 07:03:47 Hi guys! I am an android developer and I am a step behind to buy a mac book air 13" for my primary freelance development work, and for university. I would not to regret to having bought it, so I need your help Aug 31 07:05:30 Actually I have an Acer 5742G 15", that is so slow and buggy-ish that make me mad. Naturally I want to take a "customized" version with 8GB of ram and an i7 Aug 31 07:06:48 my fear is related to the 13" sized screen: can I develop, use graphic software, etc with that screen? Aug 31 07:07:32 I wouldn't care for a screen that small, but then again, I don't care for laptops in general :) Aug 31 07:08:11 I'll take a dual 24" setup over a laptop anyday :) Aug 31 07:08:31 Sorry, ironically my laptop crashed >.< Aug 31 07:08:32 * StingRay_ has quad 24 ips setup, only 3 on atm Aug 31 07:08:41 Of course, it doesn't help that I hate using a standard keyboard. Aug 31 07:08:47 can you repeat last things? >.< Aug 31 07:09:03 " I wouldn't care for a screen that small, but then again, I don't care for laptops in general " "I'll take a dual 24" setup over a laptop anyday :)" Aug 31 07:09:11 oh ok Aug 31 07:10:11 I don't know how the mac interface management works, even at big or small screens, so I want to ask an objective experience Aug 31 07:10:29 never used a mac either, so :) Aug 31 07:11:23 ok, there is someone who uses mac here, you know? :) Aug 31 07:14:35 me Aug 31 07:14:38 3 of them Aug 31 07:15:04 oh tell a lie, only 2 Aug 31 07:15:18 mac pro and macbook pro Aug 31 07:15:36 ok, so, what do you think about my question? Aug 31 07:15:42 macbook pro 17 though and refuse to get anything smaller…. but they dont make 17 no more :( Aug 31 07:16:02 13" is cool, for facebook and maybe few videos Aug 31 07:16:13 ichat and facetime too Aug 31 07:16:18 thats about it Aug 31 07:16:20 :) Aug 31 07:16:35 StingRay_: so for development, is a "no"? Aug 31 07:16:51 personal preference Aug 31 07:16:57 for me it is a no Aug 31 07:18:55 The problem is that I can't effort a bigger expense, but I'd like to buy a Mac, and I need to decide myself within the 09/7, because the education discount will finish :/ Aug 31 07:19:34 do you have a tip for me, that my max budget is the price of a Macbook Air 13" i7 8GB? Aug 31 07:19:59 yeah, get an i5 and get a 24" monitor also Aug 31 07:20:33 I've read that the i5 is buggish, isn't? Aug 31 07:20:38 with an external monitor Aug 31 07:20:46 dunno, not looked at air Aug 31 07:21:01 2nd hand ebay macbook pro then Aug 31 07:21:08 you common sense ;) Aug 31 07:21:52 what "flavour" of macbook pro? Aug 31 07:22:02 shiny one Aug 31 07:22:08 lol Aug 31 07:22:16 no seriously, what model? Aug 31 07:22:24 does it matter ? Aug 31 07:22:30 the one that fits your budget Aug 31 07:22:41 with a external monitor added Aug 31 07:23:27 I really don't know how macs behave, so I need a help for a laptop that will be my primary development board for next 3-4 years xd Aug 31 07:23:51 it's an intel laptop Aug 31 07:23:55 thats a bit overpriced Aug 31 07:24:02 thats it, nothing complicated Aug 31 07:24:10 EFI based ROM Aug 31 07:24:20 DST setup spec Aug 31 07:24:24 nothing to them Aug 31 07:24:30 BSD/Unix Aug 31 07:25:00 get a linux box instead Aug 31 07:25:10 you will get something twice as fast Aug 31 07:25:23 put linux mint on it and you get something that looks almost as good too Aug 31 07:25:25 :) Aug 31 07:25:40 * StingRay_ ..the great problem solver ;) Aug 31 07:26:18 I have already a linux box, but I need something stable (I used ubuntu for last 6 years, and it isn't absolutely stable) Aug 31 07:26:43 with 4gb ram and i3, it has serious ram management problem Aug 31 07:26:57 so get a better system with mint Aug 31 07:26:59 ;) Aug 31 07:31:02 yep, but the problem is that I want a machine works well out of box Aug 31 07:31:39 because after 6 years of linux, I have some experience; but I don't feel myself as productive as could be Aug 31 07:32:00 well use mint Aug 31 07:32:18 it's what ubuntu used to be like when it was good Aug 31 07:32:21 :) Aug 31 07:32:36 apps crashes continously, buggish graphics (I've optimus nvidia graphic card, but also with bumblebee etc it doesn't work very well) Aug 31 07:33:58 fix it then Aug 31 07:33:59 lol Aug 31 07:34:19 and try other distros Aug 31 07:34:43 I'm trying to fix it since 3 years I got this laptop, trust me xd Aug 31 07:35:02 laptop is the problem Aug 31 07:35:06 get a proper machine Aug 31 07:35:16 I can't, I go to university also Aug 31 07:35:34 and ? Aug 31 07:35:53 and I can't get a desktop pc Aug 31 07:35:56 I need a laptop Aug 31 07:36:05 not exactly true Aug 31 07:36:12 what do you need a laptop ? Aug 31 07:36:35 also because I'm often traveling Aug 31 07:36:48 and you want to develop while driving ? Aug 31 07:36:53 or on the train ? lol Aug 31 07:38:48 no, but I respond to customer's mail, and studying, and yes, sometimes I develop in traveling (I don't drive, in public transports) Aug 31 07:39:10 *study Aug 31 07:39:14 well use your existing laptop, or a tablet Aug 31 07:39:26 but have a nice dev machine at home Aug 31 07:40:08 no offence but just seems like you "want" a mac Aug 31 07:40:27 get one then lol… but this discussion is a bit unproductive so gonna have to bow out.. Aug 31 07:40:29 StingRay_: the problem is that this machine is going to be broken xd Aug 31 07:40:35 wish you well though Aug 31 07:40:52 is it possible to develop on a tablet? Aug 31 07:41:35 why on a tablet? Aug 31 07:41:37 no no StingRay_, I'm all other a macboy xd I don't *want* a mac, the thing is that I looked some mac videos, and seems to be more productive than linux and windows oses Aug 31 07:41:55 (I'm talking about OS now, not the machine itself) Aug 31 07:42:07 it might be nice, on a big one...I guess running Ubuntu or something Aug 31 07:42:14 lex93 I used to develop on Windows and then I switched to Mac Aug 31 07:42:22 it's a lot better Aug 31 07:42:33 and linux is terrible for people don't have time to tinker with it Aug 31 07:42:54 I use linux, its not that bad really Aug 31 07:43:14 once you get a stable workflow you just stick to it Aug 31 07:43:16 guys, I can say I'm a linux professionist, but I have not time to get it all working Aug 31 07:43:24 exactly Aug 31 07:43:28 linux works well once you figure it out Aug 31 07:43:42 each new thing takes time to learn and setup Aug 31 07:43:47 I don't have time Aug 31 07:43:48 I agree that its easy to get sucked into tinkering Aug 31 07:43:48 I have this laptop since 3 years, and there are some things I can't make work Aug 31 07:44:10 I've tried Suse, gentoo, ubuntu, etc Aug 31 07:44:16 leiux: same thing Aug 31 07:44:22 there is a lot of chasing new versions of stuff, linux has its own kind of "shiny" factor. Aug 31 07:44:48 I was saying that I use Ubuntu since 6/7 years, and I have NEVER see it functioning very well Aug 31 07:45:09 lex93 then stop using it and get Linux Mint Aug 31 07:45:16 i used also mint Aug 31 07:45:19 and run it on something other than a crappy laptop Aug 31 07:45:19 same thing Aug 31 07:45:34 your choices are the issue …not the OS Aug 31 07:45:53 linux is great for servers and such, but once you have UI and complex user facing tasks, then it breaks down Aug 31 07:46:00 StingRay_: with this laptop with Windows I can play last games with no problems, so isn't very "crappy" xd Aug 31 07:46:03 peripherals, drivers, etc Aug 31 07:46:15 lex93 all laptops are crappy Aug 31 07:46:22 including macbooks Aug 31 07:46:40 low power, crapped, prone to heat Aug 31 07:46:48 cramped* Aug 31 07:46:48 and I stopped messing with linux and just use mac, not 100% problem-free, but most things "just work" Aug 31 07:47:10 StingRay_: yep, I agree with you, but I'm stuck on laptop for some motivations Aug 31 07:47:17 *reasons Aug 31 07:47:23 lex93 no your not… you can have 2 Aug 31 07:47:28 just you want all in one Aug 31 07:47:34 that not the best imho Aug 31 07:47:34 MY CASH CAN'T XD Aug 31 07:48:09 hang on you are wanting an overpriced apple product … cash is something that you seem to be able to throw away Aug 31 07:48:16 :) Aug 31 07:48:56 I think linux is fine for dev and scientific applications, I admit its not the best media/gaming platform for I get a lot of stuff done using linux Aug 31 07:49:19 its good for projects. Aug 31 07:50:24 it's fine for media. lacking for games, just due to lack of selection though. Aug 31 07:50:43 still gotta have that windows partition around for gaming :/ Aug 31 07:51:13 Steam is making inroads, not there yet Aug 31 07:51:13 StingRay_: I'm making an investment for a thing must last 3-4 years and be good also between 4 years Aug 31 07:51:30 Carbonflux: gaming is not important for me Aug 31 07:51:42 lex93 well if you want most for money, get a desktop with linux Aug 31 07:52:10 leiux: what do you think? Aug 31 07:52:16 hi Aug 31 07:52:29 lex93: mac hardware is overpriced, that is for sure Aug 31 07:52:35 yes that I know Aug 31 07:52:49 like iPhone, the software and hardware are tightly integrated Aug 31 07:52:53 i have a list view, now when you tap on a row, it gets highlighted. I have 2 textviews in each row. On one of them I don't want to show the highlight, how do I go about doing that ? Aug 31 07:53:03 so it's a better user experience Aug 31 07:53:12 another downside is you can't upgrade the hardware Aug 31 07:53:19 leiux: but for development machine, is good or not? Aug 31 07:53:32 Mac is great for development Aug 31 07:53:36 I'm using it Aug 31 07:53:36 I used to develop for Android and it's much better Aug 31 07:53:44 leiux: considering that for some months/first year I can't go with an external monitor Aug 31 07:53:59 if you have an HDMI capable monitor, mac works great Aug 31 07:54:07 of you can get some converter cables Aug 31 07:54:40 No, I haven't monitors into my university "home" (is like a college) Aug 31 07:54:49 and of course, you can always dual boot with OSX and windows on a mac machine Aug 31 07:54:50 shmoon_ your question makes now sense, the answer is…well dont change it then Aug 31 07:55:13 StingRay_: it makes no sense ? Aug 31 07:55:35 well if you are changing both textViews based on x, and you dont want one of them to change Aug 31 07:55:40 simply dont change it then ??? Aug 31 07:55:54 leiux: You think I can develop effortless with a 13"? The question is this xd Aug 31 07:56:11 yea, if you have good eyes or good glasses Aug 31 07:56:30 though a second monitor shouldn't be *that* expensive Aug 31 07:56:32 lex93 thats opinion based, you have opinions, go try one at a store… Aug 31 07:56:40 but that depends on which country you live in Aug 31 07:56:46 lex93 you are taking this question round in circles Aug 31 07:57:24 StingRay_: so there are certain rows that have 2 textviews. for them I just want to highlight the second one, not the first one Aug 31 07:57:35 lex93 you can also consider buying a used Mac Aug 31 07:57:42 on tapping Aug 31 07:57:58 that can save some money, but then there are risks buying used hardware Aug 31 07:57:59 is there some property available on TextView views that I can set to false and it works like magic or some other way around ? Aug 31 07:58:14 shmoon_ well how are you highlighting them currently ? Aug 31 07:58:32 StingRay_: I'm not highlighting them, android does it by default apparently Aug 31 07:59:03 well android sets states on the views Aug 31 07:59:17 pressed, selected etc Aug 31 07:59:23 leiux: I have some fear to buy a used Mac, because is also a big expense. A thing is to make a secure expense, but another is to make a "risky" expense Aug 31 07:59:45 lex93 this is not android app dev now Aug 31 07:59:54 there are other channels for hardware buying support Aug 31 08:00:06 or maybe there are …never really looked Aug 31 08:00:07 :) Aug 31 08:00:56 StingRay_: ya so cna I make it false for the first view in certain rows? Aug 31 08:01:14 well does it work how you want…what visually happens at the moment ? Aug 31 08:02:44 visually the highlight happens over the entire row. I just want it to happen on the second textview for certain rows that have 2 textviews Aug 31 08:02:58 StingRay_: you are right, I'm sorry, I asked here because buying a laptop FOR development and asking if it was good for that activity IS an android development question :) Aug 31 08:04:37 lex93: let me put it this way, all the Android devs I know in Silicon Valley use Mac, but very very few developers bought their own because the company buys it for them Aug 31 08:05:05 with that I will respect not continue to talk about buying hardware in this channel Aug 31 08:06:11 shmoon_ so you should do what you need to in getView Aug 31 08:06:27 if it's outside the norm/default of what a listView does Aug 31 08:15:34 StingRay_: I do have a getView in my custom adapter, the question is what do I set ont he first textview on which I dont want highlight ? Aug 31 08:15:46 how do I do it basically, what funciton call what property ? Aug 31 08:16:08 you do it manually and you do "anything" you want Aug 31 08:16:22 if x then do y Aug 31 08:18:28 My question is, is there a function call or property I can set on the first TextView object due to which it will stop highlighting when I tap on the row in ListView ? Aug 31 08:18:54 not that I know of Aug 31 08:19:01 maybe setEnabled ? Aug 31 08:19:01 ok Aug 31 08:19:11 but that too will change visual look I think Aug 31 08:20:18 shmoon_ but based on what I think you want, you probably want manual control over it …so just do what you need to based on x in getView Aug 31 08:21:42 setEnabled(false) doesn't help Aug 31 08:22:07 StingRay_: yes, but I am not talking about full control over functionaility but UI Aug 31 08:22:18 the highlight thats happening by android by default Aug 31 08:22:29 basically I want to know the function calls that'll help as can't find much via googling Aug 31 08:23:08 Override areAllItemsEnabled and isEnabled in your Adapter Aug 31 08:23:19 Return false for views that shouldn't respond to item clicks Aug 31 09:21:04 SimonVT: when you say return false for views, you're talking abotu entire row Aug 31 09:34:53 shmoon_ listView controls the rows/items Aug 31 09:35:02 getView controls the views within those items Aug 31 09:35:27 well, should say within getView "you" control the views within a row/item Aug 31 10:22:06 Hi, i put my app on Play Store almost a week ago but it still does not show up in search results even when i type its exact name (Nano Timer). I can access it from a direct url though. Do you know what i should do? Aug 31 10:28:50 Morg0th: add quotation marks around the words and it will show up in search. To get higher up in the results you'll probably need to get some ratings, share it with some friends or something. Aug 31 10:30:28 Great it works! Thanks a lot Aug 31 10:38:55 is there some event that gets fired when tapped on a list item in ListView before click is done ? so something like onPressed state or onFocus Aug 31 10:40:07 shmoon_ that would be a touch event Aug 31 10:40:30 onTouchEvent I would think, why though ? Aug 31 10:40:47 you wouldn't normally need that, specially for what you want Aug 31 10:41:35 I was thinking maybe when the user presses it I can set the top views background color to transparent Aug 31 10:42:14 shmoon_ well simon said what you would need to do to disable the view select Aug 31 10:42:33 but I dont think you have explained enough about what you want for anyone to really help Aug 31 10:42:34 his method will disable selection from entire row, not a particular view Aug 31 10:42:41 an image or two maybe needed Aug 31 10:42:57 I'm basically doing something like this http://cyrilmottier.com/2011/07/05/listview-tips-tricks-2-section-your-listview/ Aug 31 10:43:12 fetching contacts from phonebook and sectioning them by alphabets Aug 31 10:43:30 the alphabets are views inside first row of every section Aug 31 10:43:47 the problem is when tapping on the first contact of every section, the separator also gets higlighted Aug 31 10:43:50 i want to prevent that Aug 31 10:44:22 you mean the row gets selected Aug 31 10:44:59 only 1 row should get selected, nothing else Aug 31 10:46:01 so basically if my sections are like this Aug 31 10:46:02 [s1, c1, c2, s2, c3, c4, c5] Aug 31 10:46:11 when I tap on c3, it also highlightes s2 Aug 31 10:46:24 since s2 is basically a TextView inside c3's layout file Aug 31 10:46:32 so basically they are the same layout file but different textviews Aug 31 10:47:18 A -> Adam, Aish B -> Brad, Bracken C -> Charlie, Chuck Aug 31 10:47:21 is what I am trying to achieve Aug 31 10:47:30 display contacts in ascending order and section them according to alphabets Aug 31 10:47:35 then have the headers as rows Aug 31 10:47:43 rather than putting them in a row Aug 31 10:48:05 ya i could do that, but he mentiones some disadvantages of that and hence goes on with this method Aug 31 10:48:16 OnItemClickListener is for a row, and it's handled entirely by the ListView Aug 31 10:48:21 It's all or nothing for OnItemClickListener Aug 31 10:48:30 so then handle it yourself in getView Aug 31 10:48:52 my question is how ? I really am unable to prevent the highlight on s1 and s2 Aug 31 10:48:55 like simon says…ugh….simon says, you are fighting listView here needlessly Aug 31 10:48:59 i jsut dont know what code to write that Aug 31 10:49:13 hm Aug 31 10:49:26 you no longer wanting to highlight a row Aug 31 10:49:50 basically i followed this tutorial, and now am stuck in a problem which is the section gets highlighted with the first row after it Aug 31 10:49:55 which is not a good UX Aug 31 10:50:33 just have them as a row Aug 31 10:50:48 and use getType to say this is not selectable Aug 31 10:50:58 or look into getType on the adapter Aug 31 10:51:12 that would be my shot at it neways Aug 31 10:51:28 well, easiest I can think of at this point for you to understand and implement Aug 31 10:52:19 ok Aug 31 10:59:22 usecase: accept waveform from user. ie: standard list(like SIN SQUARE etc) or accept a custom equation. | looking for widget that provide text input as well as a drop down button to choose so that user dont have to type standard items (AutoCompleteTextView dont fits the 2nd criteria) Aug 31 11:03:28 showing all option when AutoCompleteTextView text is empty is can be a possible solution? Aug 31 11:04:00 yes. Aug 31 11:19:27 ye gods. I love intellij but why the hell has moving my android sdk proved to be such a nightmare to reconfigure. aargh. Aug 31 11:25:13 Aha. Gradle ignores ANDROID_HOME etc and doesnt regenerate local.properties. Aug 31 11:27:59 rgr, use a good text editor, shell and ant (+ of-course sdk) im lov'in it(TM) --- and it also free you from bloatwares Aug 31 11:30:54 kuldeepdhaka: Where a good text editor == vim? Aug 31 11:32:32 flan3002, anything that is comfortable to use. i use Geany (earlier Notepad++) and i like their minimal but powerful abilities Aug 31 11:33:04 kuldeepdhaka: I suppose Geany doesn't have Java-specific tooling, right? Does it have plugins at all? Aug 31 11:33:05 they dont import project for 1 hour :p Aug 31 11:34:02 sublime-text Aug 31 11:35:30 flan3002, not sure for java specific plugin. neither i require that. :) | yea it have plugin interface and plugins. Aug 31 11:35:59 kuldeepdhaka: I suppose I confused geany with another editor then... Aug 31 11:38:09 kuldeepdhaka: please. being 1337 is for the linux channels..... a good text editor would be used by only an idiot in the face of complex android/java APIs and class libraries.... Aug 31 11:38:29 (where "good text editor" isnt a live parsing editor as in intellij and eclipse) Aug 31 11:39:12 and incidentally the issue was with gradle and not IJ ;) gradle is also 1337 command line.... Aug 31 11:43:29 Idios are the ones who don't need an IDE to do their thinking? Aug 31 11:44:02 rgr: Actually, vim + syntastic + saving after changes gets pretty close to the error-highlighting of IJ. Aug 31 11:44:18 i know people using only vim for andorid dv Aug 31 11:44:24 Not saying it's preferrable though. Aug 31 11:44:29 and its not that bad if you know how to work with it.. Aug 31 11:44:36 (Not saying it isn't, as well) Aug 31 11:45:21 danijoo: Do you happen to know if those 'people' have managed to get SDK auto-completion working? Aug 31 11:45:34 not really no Aug 31 11:48:19 i think most of the ppl using vim to do those stuff know the api anyways :p Aug 31 11:50:50 the only thing I would missing without an ide is the warning if I make stupid typos.. Aug 31 11:51:00 the rest is just 'getting into it' Aug 31 11:53:21 Sure and many use Emacs. Generally old stick in the muds who refuse to move on : languages move on and so do the tools. But the APIs are so huge personally I think its madness. You can dynamically query the docs, auto expand parameter lists, type match, etc etc. I tried with emacs but its crap in comparison. I find it hard to believe for one minute any competent developer can "only miss" error/warning messages . Even something as Aug 31 11:53:21 powerful as the built in refactoring or dynamic live parsing warnings for non completed interfaces etc etc etc make it a must. The time saving is incredible. Aug 31 11:53:53 anyways, spaeter. Working now. Gradle -= 1; Aug 31 11:54:43 rgr mad as always :p Aug 31 11:55:25 rgr, i wasnt being1337, but i had to use lighter environment because i dont have a that much big ram to feed a crippling+bloatware+bful IDE. it also help understand what is going one currently (opposite to just typing in the ide and fighting with settings) Aug 31 11:56:45 ^+1 for the understanding what going on Aug 31 11:57:28 a lot of people these days cant work without autocompletion. give them a paper and a pen and they cant do more then a HelloWorld without making errors in their code Aug 31 11:58:15 It is hard though... I don't think I could write any Rust code longer than 30 lines guaranteed to compile on paper, right now... Aug 31 11:58:19 Had to learn that the hard way in my first computer science exam that had to be done with pen'n'paper Aug 31 11:59:04 (Well, non-trivial code, with ownership and stuff...) Aug 31 11:59:14 yeah its hard but i think it makes you a better programmer. Aug 31 12:00:04 and i forget rgr, geany does give autocomplete facility (though not every java class api autocomplete -- just the opened files) Aug 31 12:00:51 kuldeepdhaka: You may can import autocomplete for the other classes. A lot of text ides just need to be pointed to the java docs Aug 31 12:01:34 danijoo, goda look on that ^ Aug 31 12:01:35 Of course. I'm using vim for Rust coding, IJ for Java. Java is fairly simple™ though, so apart from the Android API, I think I could write some Java code on paper... I've been writing bytecode-generating tools for some time, so I imagine I understand what's actually going on most of the time... Aug 31 12:01:37 Should I use an asynctask to get data from a database even if it's a very small amoutn of data? Aug 31 12:02:07 It's currently does this on the main thread and there is no visible affect to the user Aug 31 12:02:22 im using sublime for anything but android. also for simple java apps Aug 31 12:03:27 AKK9: best-practice-answer would be yes. You can never be sure if it may have an effect on a low level device that is under heavy load Aug 31 12:03:39 but im not following that always, too :p Aug 31 12:04:00 If you dont, you should do a lot of testing an low-end-specs though Aug 31 12:04:21 hmm yeah i didnt consider that Aug 31 12:04:37 ill follow best practice this time thanks :) Aug 31 12:04:47 and have a close look in your logcat searching for things like "Skipped xx frames! too much work on main thread" Aug 31 12:04:53 AKK9 unless there is a reason to process on main thread, why do it ? :) Aug 31 12:05:02 this is an indicator that your code might cause problems on other devices Aug 31 12:05:42 StingRay_, its just easier is all Aug 31 12:06:13 dont have to write bulky asynctask if i do on the main thread :) Aug 31 12:06:16 but im being lazy Aug 31 12:06:25 then just use a thread Aug 31 12:06:29 with a handler Aug 31 12:06:33 Or a Loader. Aug 31 12:06:58 AKK9: AndroidAnnotations lets you mark methods as @Background which executes them as an asynctask without you needing to write the boilerplate arround it Aug 31 12:07:00 Can i modify the ui in a thread in a handler? Aug 31 12:07:23 The DB might be locked by something else, causing your "small" query to take a significant amount of time Aug 31 12:07:30 if you post to the handler or runOnUiThread in the thread Aug 31 12:08:08 SimonVT have you got any further plans for your drawer ? Aug 31 12:08:28 Not really Aug 31 12:08:49 you still personally use it over android fluff ? Aug 31 12:08:56 SimonVT, yeah i didnt think about that either cheers Aug 31 12:09:01 StingRay_, how do i post to the handler? Aug 31 12:09:25 erm… post() Aug 31 12:10:06 Yeah, never switched Aug 31 12:10:10 Haven't even used the android one Aug 31 12:10:21 The API annoyed me a bit when it was released, so never paid it much attention Aug 31 12:10:41 ah this is way easier Aug 31 12:10:43 thank you Aug 31 12:12:23 not related to anythign i just sked about: how do i get a proejct from github so i can build it on my own? Aug 31 12:12:33 there is an app that the author has updated on github Aug 31 12:12:36 but not on play store Aug 31 12:12:42 and tehres a feature i like that i want Aug 31 12:12:49 AKK9: git clone it? Aug 31 12:12:51 can i just make it from his github and use that? Aug 31 12:13:30 Probably. Aug 31 12:14:08 ok thanks Aug 31 12:16:33 AKK9: If you have problems with that, we need to know what project you mean. Aug 31 12:17:11 flan3002, its this one: https://github.com/romannurik/muzei Aug 31 12:17:14 im giving it a go now Aug 31 12:17:35 Should work. Aug 31 12:21:19 when i open it in Android Studio its aksing about importing project from gradle Aug 31 12:21:30 and asking for a gradle home directory? Aug 31 12:24:10 Hello dudes! Not sure what to search, so asking. I'm developing a gps-powered android app, and now it is time for battery saving. My app consumes a load of batery due to continious real-time updates. What should I read to understand how google maps app and similiar handle real-time updates without heating up device & eating a load of energy? Aug 31 12:24:45 nekoxmachina: from my experience google maps is eating battery too :p Aug 31 12:25:50 half the battery in two hours of navigation ffs. Aug 31 12:26:01 AKK9: You have gradle installed? Aug 31 12:27:20 danijoo sqrrl: Hmm my feelings were that google-maps eat less energy (&heats the device much less than my app); will re-test than with some proper metrics.. thanks Aug 31 12:28:00 nekoxmachina, you can't have your cake and eat it Aug 31 12:28:15 accuracy, realtime, battery, choose two Aug 31 12:28:22 decide which you can worsen then work on that Aug 31 12:28:32 you didn't give enough information for us to give you better advice Aug 31 12:30:05 flan3002, yeah gradle is installed. i think i got it working now anyway Aug 31 12:30:17 Okay. :) Aug 31 12:36:21 Mavrik: okay, little bit more info :) I'm using GPS sensors to provide user with some audio-data based on objects near his location; I've chosen GPS due to need of precise data (~1 to 10 meters accuracy is OK, more is bad); I turn off GPS while mediaPlayer is playing (I assume that user is not moving at that time); this is pretty much everything I do to stop power consumption: all of the time when audio is not yet playing app is waiting for GPS Aug 31 12:36:22 updates; I get something like 2-3 hours of battery life with mediaPlayer once in a while + regular GPS updates, which I had a feeling was wrong. Aug 31 12:36:50 nekoxmachina, that's a basic usecase for geofencing API Aug 31 12:36:55 flan3002, i an error when i try to make the project 'execution failed for task :api:javadoc' Aug 31 12:37:02 nekoxmachina, look at Google Play Services Location API and see geofencing Aug 31 12:37:22 nekoxmachina, DO NOT have an active GPS polling running because there is no device out there that will run GPS chip for more than 3 hours on battery Aug 31 12:37:32 AKK9: Does it correctly output the .apk? Aug 31 12:37:53 nekoxmachina, so, basically, replace your current solution with one that sets up geofences for locations you're interested in and wait for callbacks Aug 31 12:38:01 Mavrik: thank you, reading the geofencing api doc-page. Aug 31 12:38:02 this is how Google Now works Aug 31 12:38:18 flan3002, no, there is no apk output Aug 31 12:38:20 you can even setup a "wide" geofence and then enable precise GPS only when you're near it Aug 31 12:39:12 AKK9: Really? What does find -name *.apk output? Aug 31 12:39:17 hi guys, anyone can explain why there are three dots after string like here Aug 31 12:39:19 protected Integer doInBackground(String... params) { Aug 31 12:39:49 BulleTime: I said you should go look up varargs. Aug 31 12:39:58 flan3002, oh wait yeah i can do this Aug 31 12:40:03 yeah i see the apk Aug 31 12:40:14 :) Aug 31 12:40:16 crashes in emulator though, i will try on my phone Aug 31 12:43:16 flan3002, working :D Aug 31 12:43:17 thanks Aug 31 12:47:04 thanks Mavrik (https://gist.github.com/furycomptuers/4961368) works for me :) Aug 31 12:49:15 kuldeepdhaka, um Aug 31 12:49:17 why do that Aug 31 12:49:25 when you can just set min limit to 0? O.o Aug 31 12:50:12 Mavrik, "When threshold is less than or equals 0, a threshold of 1 is applied" Aug 31 12:50:21 oh that Aug 31 12:50:29 makes sense then, carry on :D Aug 31 12:54:16 can i tell an adapter to only update a specific childview instead of everything like notifyDataSetChanged does it? I have images which are reloaded from the cache but only a text is updating which makes the ui lag. Aug 31 13:46:36 Hi, I'd like a way for an android app to download some configuration information automatically from a host on its same wifi subnet. Two ways I can think of to do this are either trying to get some information from the DHCP server saying "the config server IP is 10.1.2.3". Or send a IP multicast message saying "who is my config server?" Aug 31 13:47:14 1) are there any better ways than those two options that anyone can suggest? 2) which option is better? I'm not sure if I can tap into any DHCP information from an android app at all, so maybe multicast is the only answer? Aug 31 13:53:14 Well, someone has to tell the app which IP the config server is. Hardcoding is stupid, as long as you can't get e.g. a subdomain to link to your config server. Having another server to tell you the ip imposes the same problem and having the user input it is also not an option. Multicast sounds good, but you'd need to validate it really /is/ your server, not just saying it is. Aug 31 13:53:42 Hi, I'm using the following code http://paste.ubuntu.com/8197143/ to show an indeterminate progressbar in an activity but the progressbar never shows. Am i doing it wrong? Aug 31 13:54:39 If it doesn't show, it's wrong. :) Aug 31 13:55:13 Yeah, I guess so. Any way to get it working? Aug 31 13:55:32 Ah sorry Aug 31 13:56:19 My bad. Didn't read the doc clearly. the indeterminate progressbar is the circular one shown in the title Aug 31 14:01:00 Hello people Aug 31 14:01:21 so when you want to implement a search button Aug 31 14:01:24 do you use searchview? Aug 31 14:01:57 I'm targeting api 10, and SearchView is available from api 11 Aug 31 14:06:46 I feel like I'm changing to android 4.0 and above, what's your opinion? Aug 31 14:07:38 do it Aug 31 14:07:45 <4.0 is a minority Aug 31 14:08:02 Matip: why 10? Aug 31 14:08:54 I'm trying to find out what else I'm going to be missing if I don't target 4.0 Aug 31 14:09:10 any important feature you can think of? Aug 31 14:19:18 wow, 2012 -> 64%, 2013 -> 32%, 2014 -> 13% Aug 31 14:19:30 ok, I'm going to target 4.0 Aug 31 14:25:46 We support 10 at work, but only because it is in some contract from a customer, wouldn't target anything below 15 otherwise. Aug 31 14:26:53 hey, is there an onProgressChanged for WebViewClient ? Aug 31 14:31:56 hi, i'm running the latest version of android studio on windows 7 and whichever project i open, i get this error message: Error:Could not initialize class org.gradle.tooling.internal.consumer.loader.DefaultToolingImplementationLoader Aug 31 14:32:19 so i cant synch the project. google doesn't help me much, any idea please. Aug 31 14:35:21 try a gradle clean from the command line. Aug 31 14:36:52 rgr, on the project home directory? Aug 31 14:37:33 yes. or ./gradlew clean && ./gradlew assemble Aug 31 14:37:37 might work else no idea. Aug 31 14:38:14 too many unknowns. like how these projects were asse,bled, what gradle you're using, what target sdk, what android tool etv. Aug 31 14:38:23 assembled Aug 31 14:38:44 ass bled?? Aug 31 14:38:47 :D Aug 31 14:41:21 hello, I have a question about syncing and push notifications. What I realized that in order for Gmail app to automatically receive e-mails, auto-sync has to be on, but I've read on the Internet, that Gmail server uses push notifications to let the device know that the new e-mail is there (so the client (device) does not need to request the server in some intervals. The question: why do we even need sync on in apps that use push Aug 31 14:41:21 notifications? Aug 31 14:49:44 kristijonas: http://androidforums.com/samsung-galaxy-note/478575-how-make-sure-gmail-pushes-email.html Aug 31 14:49:48 explained a little. Aug 31 14:52:02 rgr,thank you. but still, like those sync and push concepts seem like opposite to me, the way I understand SYNC is it does regular: client sends request, server sends response back. As for PUSH - server sends some data without client asking. Aug 31 14:53:33 yes as explained in that thread. Seems to be a gmail android app shortcoming. Aug 31 14:53:41 dunno Aug 31 14:53:47 I use periodic syncing. Aug 31 14:54:09 (and K9) Aug 31 14:55:43 hello to everyone. I want to ask in which part of fragment lifecycle it is safe to call a method from the attached acitity Aug 31 14:55:46 having that difference would confuse the hell out of users Aug 31 14:56:05 sync disabled = do not sync mail. ever. Aug 31 14:56:06 push or no. Aug 31 14:56:17 Mavrik: +1 Aug 31 14:56:25 rgr, another issue: Twitter seems to have a setting for a sync interval and at the same time they say that use push notifications. Makes no sense. If they use push notifications (you get the data immediatly), why would anyone want to set sync intervals? Aug 31 14:56:48 i take take a nullpointerexception when i call a method from fragments onCreate, whereas everything works fine when i call it from onCreateview Aug 31 14:56:59 kristijonas, because pushes don't carry the same data Twitter client syncs in background. Aug 31 14:57:26 is it possible to take a nullPointer exception inOnCreateview? Should i call the method in onActivityCreated? Aug 31 14:59:31 Mavrik, so if the synch nterval is 1 hour, and phone receives the push notification (new tweet, mention, or whatever I have enabled notifications for), so it will cache that notification and will wait one hour and only one your will request the server and only after one hour the phone will show the notification? Aug 31 15:00:54 kristijonas, no. Aug 31 15:01:00 you're totally mixing up what's what Aug 31 15:01:16 Sync interval is used for SyncAdapters, push notifications are always delivered Aug 31 15:01:32 Ive been doing this now long enough not to be getting tied up with this arcane layout shit. Bloody hell. Aug 31 15:01:40 what is going on inside those sync adapters and in boardcast receiver for the push is totally up to the app. Aug 31 15:01:52 hes talking about syncing data on the phone app I think : ie poll frequency. Aug 31 15:02:16 he's talking about UI elements which translate to "whatever the heck the app wants to do there" really :P Aug 31 15:02:56 disabling sync just stops sync adapter callbacks from firing, push notification broadcast receiver is not changed Aug 31 15:03:12 Mavrik, but sync is based on that regular type of connection: clients requests, server responses, right? Aug 31 15:03:24 kristijonas, as I said. Aug 31 15:03:36 "Sync" can be whatever the heck the app wants to do Aug 31 15:03:51 it's a piece of code (ust like push callback) that is totally in control of app Aug 31 15:04:10 it can poll the server or it can sing a little song to you Aug 31 15:04:13 whatever :) Aug 31 15:04:28 * rgr is confused now ..... Aug 31 15:05:55 Mavrik, so sync can use any type of connections (both client-server and server-client)? Aug 31 15:06:05 kristijonas, sync doesn't even have to use a connection Aug 31 15:06:06 c'mon Aug 31 15:06:13 it can do ANYTHING Aug 31 15:06:27 THIS is what you see as a "sync" in UI: http://developer.android.com/training/sync-adapters/creating-sync-adapter.html Aug 31 15:07:20 Would this chanel be the right one, if you have a question about executing HttpPost requests? or is it more of a Java channel thing? Aug 31 15:07:58 Evilfish, I would guess that #java would be a more java channel thing, and #android-dev would be the Android app development thing :P Aug 31 15:08:45 Well, the code will be running on an android device. :D But I guess you are right. I'll head over there :D Aug 31 15:09:12 Evilfish, anyway, yes, this is the right channel Aug 31 15:09:24 Mavrik, The sync adapter component in your app encapsulates the code for the tasks that transfer data between the device and a server. (How would it transfer data between the device and a server WITHOUT a connection?) Aug 31 15:10:11 there is nothing in that stub that implies there has to be any connection to anywhere Aug 31 15:10:17 why is that so hard to understand? Aug 31 15:10:23 onPerformSync is called. That's it. Aug 31 15:10:50 the app does in there whatever it wants. Aug 31 15:11:43 Mavirk, transfering data between the device and a server DOES imply it has to be a connection. Aug 31 15:12:26 I would have expected a single layout weight in the first child and a fill_parent in the second would work for two siblings. Alas not. Oh well. Two weights it is so. Aug 31 15:12:34 Mavrik, was that "yes, state your problem" or "yes, use the java channel"? Aug 31 15:13:55 Mavrik, if you know a way how to transfer data from a client to the server without having a connection, I would be more than happy if you told me about it. Aug 31 15:15:21 kristijonas, you are utterly missing the point. Aug 31 15:15:37 Please review the APIs and Android features we're talking about and try again then. Aug 31 15:16:10 rgr, yeah, you need to set weights for everything more or less Aug 31 15:17:28 Mavrik, first of all, I am asking as an Android user rather than as a developer. Aug 31 15:17:55 You are on the wrong channel then. Aug 31 15:18:34 Well, I did mention this earlier as to what he was asking. It seemed clear enough and I wondered why you started confusing the issue for SynsLists or whatever. Oh well :) Aug 31 15:18:57 Mavrik, what makes you think so? Aug 31 15:19:01 rgr, because I think explaining people in terms of app development on #-dev channel was something that I could persume :) Aug 31 15:19:16 and it's way easier to explain to developers directly which APIs do what Aug 31 15:23:08 Mavrik, I know how annoying for a developer or any other professional is to try to explain concepts that s/he thinks s/he masters (but really doesn't) in a simple way, but hey - If you can't explain it simply, you don't understand it well enough. (Albert Einstein) Aug 31 15:43:58 got disconnected. any idea? Aug 31 15:48:42 Is the 3-dots connected by 2 lines image representing sharing your app available somewhere? Aug 31 15:49:00 This seems to be the standard symbol for sharing on Android so is it freely available? Aug 31 15:50:18 http://lmgtfy.com/?q=share+icon Aug 31 15:51:32 smitzer, there's a menu and other drawable icon pack available on Android design webpage Aug 31 15:56:38 http://www.icons4android.com/ Aug 31 16:37:57 Is ART a virtual machine, or just a compiler that compiles the bytecode to native code? Aug 31 16:39:52 It's a runtime. Aug 31 16:39:59 which is neither first nor second Aug 31 16:40:18 but ART phones do have a bytecode -> native code compiler as part of ART setup Aug 31 16:40:38 when installing my app it takes about 5 seconds to write stuff to the database. it is to long. can this make my app crash? should be a background thread/task? have some install fragment the first time? Aug 31 16:40:55 how can 45 writes to a database take 5 seconds? Aug 31 16:42:06 smitzer: does it have to happen on install? can it not happen on first run? And 5 seconds for 45 writes sounds long, yeah Aug 31 16:42:40 Mavrik, I don't understand what a runtime is, so meh Aug 31 16:43:28 autrilla, is a library that provides all behaviour required by Android Java (e.g. garbage collection, memory allocation, proper memory layout, function calling, etc.) Aug 31 16:44:04 Mavrik, oh, so the compiled bytecode still needs all that? Aug 31 16:44:11 autrilla, duh Aug 31 16:44:13 :) Aug 31 16:44:34 I thought compiling the bytecode would mean adding that stuff in Aug 31 16:44:38 yes Aug 31 16:44:49 and that's done by linking to libart.so ;) Aug 31 16:45:02 autrilla: http://en.wikipedia.org/wiki/Android_Runtime Aug 31 16:45:07 Which is needed at runtime Aug 31 16:45:24 autrilla, technically the compiler is part of ART as well so most people include it when talking about ART Aug 31 16:46:54 Thorbear, that doesn't explain what I'm asking Aug 31 16:47:17 I thought the graphic explained it quite well, but ok. Aug 31 16:47:57 Nah the graphic just explains that dexes are compiled and then run Aug 31 16:48:30 One would think ART wouldn't be necesary after compiling, but apparently it is Aug 31 16:48:40 hmm Aug 31 16:48:48 that's a strange way to put it :) Aug 31 16:49:02 even when writing C code you still need libc which provides the environment guaranteed by C language :) Aug 31 16:49:29 it's the same with ART - it has to replicate everything Dalvik (and other JVMs) do so the bytecode remains executable Aug 31 16:49:45 It's like the standard lib Aug 31 16:49:46 it just moves the actual bytecode -> native translation to installation time not the time of actual app execution Aug 31 16:49:50 Any reason why setClipBounds does not work on children in a viewpager? Specifically when I do my own PageTransform? Aug 31 16:55:36 Anyone know how to build cpp-netlib for use with the ndk? Aug 31 17:01:31 i have an activity with three tabs that represent three different fragments. with the activities oncreate, i parse an xml and create an arraylist of objects. i want to access the arraylist of objects in the fragments (specifically with a listview.) whats theb est way to do this? Aug 31 17:10:32 Has anyone tried the gitignore plugin for AS? Aug 31 17:10:35 .gitignore support is a plugin for .gitignore files in your Git project. Aug 31 17:12:15 AS? android studio? naa I havent tried .gitignore Aug 31 17:13:54 Demon_Jester: yes, Android Studio. Not .gitignore the file. There's a plug-in to edit the file. Aug 31 17:14:00 Meh, I'll try it... Aug 31 17:17:13 You can view intellij plugins online somewhere Aug 31 17:17:39 Hey guys I am trying to use list view to list connected clients back to my app, but whenever someone connects it just puts them on the same line it doesnt put it into the next line. Aug 31 17:26:51 Anyone familiar with Android Widget ListViews? Aug 31 17:27:12 I am actually trying to learn it too. lol what are you having trouble with? Aug 31 17:27:34 I'm trying to have the ListView get set to a certain list item Aug 31 17:27:49 I'm looking for an app that extracts UPC barcodes. However, the ones I found simply display it on the screen Aug 31 17:28:04 I want to return the code so I can use the value in my program Aug 31 17:28:05 I can do this in an app's ListView easily, but I haven't been able to get it to work for a widget Aug 31 17:29:55 what do you mean get set to a certain list item? Aug 31 17:30:49 For example you can use methods like setScrollPosition() but I haven't been able to find an equivalent that works for widget listview Aug 31 17:31:41 I basically want the list to be set (don't need to animate the scroll) to a certain item further down the list, not just at the top item (which is what currently happens by default) Aug 31 17:32:03 public void smoothScrollToPosition (int position) Aug 31 17:32:30 I believe I've tried that - can you confirm that you've used that and that it actually works? Aug 31 17:33:06 RemoteViews remoteViews = new RemoteViews(context.getPackageName(), R.layout.widget); remoteViews.setRelativeScrollPosition(R.id.widget_nodes_list, 10); Aug 31 17:33:25 that is the most current snippet I've tried which doesn't do anything Aug 31 17:33:32 that wont work with a listView Aug 31 17:33:33 either Aug 31 17:33:37 smoothScroll or setSelection Aug 31 17:33:39 iirc Aug 31 17:33:48 will 3sec white/blank screen crash an app? it only happens the first time the app is started because it initializes the database, 45 levels. Aug 31 17:34:56 @eckesicle Have you been able to make setSelection() work? Aug 31 17:35:03 smitzer, initialize it on another thread. Aug 31 17:35:06 wizardpoop: yes Aug 31 17:35:30 for a widget listview 100%? Do you have an example somewhere I can look at? Aug 31 17:35:37 eckesicle, but is there a risk for a crash? because i dont think the user will care, it is 3 seconds once Aug 31 17:35:38 I've been trying for weeks - I must be doing something wrong Aug 31 17:35:49 and the game is practically done, i dont want to redo anything Aug 31 17:36:06 smitzer, depends on the speed of the phone and available memory i guess Aug 31 17:36:20 yeah a bit unreliable then Aug 31 17:36:39 I would do those initializations in a background thread. Aug 31 17:36:49 At least display a progress bar or something Aug 31 17:37:05 it complicates things. then the app cant start until it is finished. Aug 31 17:37:26 If it's 3 seconds on a Snapdragon then it will definitely crash on a Galaxy S2 or slower Aug 31 17:37:58 Hello everyone, I was wondering how it is possible to get the currently active notifications. Googling that I found out that you'd need Android 4.3 to do that but I found some Apps in the Play Store that work with Android 4.2. So I'm wondering how they do it Aug 31 17:38:08 the bottom line is it must be done on a bg thread : dont hold up the main UI. Aug 31 17:38:17 @eckesicle Can you point me to a snippet or example link that shows the use of setSelection for a widget listview? Aug 31 17:39:35 wizardpoop look at this Aug 31 17:39:35 http://stackoverflow.com/questions/1446373/android-listview-setselection-does-not-seem-to-work Aug 31 17:40:05 yes, i got that as first hit with a 1 second google too... Aug 31 17:42:31 I'll take a peek at the stackoverflow link, but it looks as though it isn't taking into account the widget usage of listview Aug 31 17:43:47 i have an async task in an activity, how do i call for the listview adapter used in my listfragment to update? i know i use notifydatasetchanged but not sure how i call it from the activity Aug 31 17:58:20 @eckesicle Any specific part of that link you suggest I look at? I've read it and found nothing regarding a widget. There are some potential avenues to try, but if you recall what the hangups were when you implemented a Widget ListView and setSelection, that would be super helpful. Aug 31 18:00:49 well as documentation says Aug 31 18:01:09 and source of Listview Aug 31 18:01:10 http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/1.5_r4/android/widget/ListView.java#ListView.setSelectionFromTop%28int%2Cint%29 Aug 31 18:01:17 make sure you are not in touch mode Aug 31 18:01:55 so call requestfocusfromtouch first maybe Aug 31 18:02:17 ok, thanks I'll read that source and look into the touch mode issue Aug 31 18:02:52 guys, I'm stuck at this. I'm developing a rather simple app (on a very tight schedule, 1 hour left) and I have some kind of a log. The TextView containing the Log text is part of an Activity, and that activity is part of a tabhost. the other tabs contain other activities, and sometimes they need to log stuff (i.e. displaying text in the TextView of another Activity). What would be the best way to do this? Aug 31 18:04:04 I've tried making a static function in the log_activity, and while I can call this function from other activities, I can't seem to change any GUI elements within this function. Aug 31 18:04:09 Do all these activities share a base class? Aug 31 18:04:23 eckesicle: AFAIK, no Aug 31 18:04:31 So here's the quote from the source - "Sets the currently selected item. If in touch mode, the item will not be selected but it will still be positioned appropriately. If the specified selection position is less than 0, then the item at position 0 will be selected." That is all I want, the positioned appropriately part. Doesn't seem to be doing that, but I'll dig deeper. Aug 31 18:04:56 Yeah the documentation is wrong on this Aug 31 18:05:05 look at the source i linked Aug 31 18:05:12 Android <3 Aug 31 18:06:03 I'm looking at it now, what part is wrong specifically? Aug 31 18:06:16 Row Aug 31 18:06:18 1744 Aug 31 18:06:20 Yea Android <3 Aug 31 18:06:32 the if else thing Aug 31 18:06:51 it only sets the mRessurectToPosition Aug 31 18:06:59 but doesnt do anything with it elsewhere Aug 31 18:07:03 see it, !isInTouchMode Aug 31 18:07:05 I'm pretty sure I use set selection in a widget list view in qicr Aug 31 18:07:14 Maybe not, don't remember Aug 31 18:07:22 what is qicr? Aug 31 18:08:21 resurrectPosition in AbsListView Aug 31 18:08:43 hmm, nope, not in the widget Aug 31 18:09:04 There is a replacement for ListView Aug 31 18:09:09 @pfn because you couldn't get it to work? Or just didn't do it? Aug 31 18:09:11 which is not broken Aug 31 18:09:18 i forget what it is called Aug 31 18:09:20 what is the replacement? Aug 31 18:09:42 Is the replacement specific to widgets? Aug 31 18:09:58 yeah Aug 31 18:10:03 just didn't do it Aug 31 18:10:13 it works with what you are trying to do now Aug 31 18:10:18 transcript mode does what I need Aug 31 18:10:21 but it is virtually impossible to do the reverse Aug 31 18:10:30 i.e try to find out which scroll position you are at Aug 31 18:10:37 Interesting, yeah if you have any ideas of what that is called that'd be sweet Aug 31 18:10:53 recyclerview won't work in widgets Aug 31 18:11:33 @eckesicle thanks a ton for helping, I really appreciate it - hope soon I can resolve this once and for all :) Aug 31 18:12:17 np Aug 31 18:12:23 Can you maybe post your source? Aug 31 18:12:46 I wish I use qicr's widget more, it's so nice Aug 31 18:15:29 hey Aug 31 18:16:03 guys im having an issue with setOnClickListener, debugger says java.lang.NullPointerException Aug 31 18:16:13 then fix it Aug 31 18:16:22 npe is easiest problem to fix Aug 31 18:16:35 Hey, is there any way to get the correct progress value using webchromeclient? I am getting random values when loading like 10, 40, 20, 80, 50, 50, and so on Aug 31 18:16:36 -_- Aug 31 18:16:43 then halp me Aug 31 18:16:44 http://pastebin.com/KM4xKqch Aug 31 18:16:49 i think its ok Aug 31 18:16:54 cliffreich you need to go read more on basic java Aug 31 18:17:08 activity class dont need to implement onclicklister as far as i know Aug 31 18:18:11 wizardpoop: https://developer.android.com/preview/material/ui-widgets.html#recyclerview Aug 31 18:18:17 thats the fixed one Aug 31 18:18:49 ah yes but it doesnt work in widgets as pfn said Aug 31 18:19:57 any actual help instead useless and non specific suggestion Aug 31 18:20:30 hi Aug 31 18:21:05 if I create 3 synchronised methods, it basically means that those 3 methods are guaranteed to complete one after another. is that right? Aug 31 18:21:38 so if two threads want to run two different methods, one of those threads will wait for the first to finish? Aug 31 18:21:48 am i understanding this properly? Aug 31 18:21:59 there is no guarantee about "one after another" Aug 31 18:22:14 hello, which process/service handles Google Cloud Messaging (GCM) requests? (like in the list of running applications)? Aug 31 18:22:39 yeah that was bad wording, but does my second question make sense? Aug 31 18:22:44 AKK9 you can take a look at CountdownLatch to sync up threads Aug 31 18:22:47 AKK9, they will just grab an implicit lock when called - so they wont be able to run at the same tie Aug 31 18:22:58 there is no guarantee about order in which waiting threads will reactivate Aug 31 18:23:23 yeah no thats fine, dont need a guarantee for the order, that was bad wording on my part Aug 31 18:23:51 AKK9, do make sure to read up on how synchronized on a method works in Java so you won't have unpleasant surprises :) Aug 31 18:23:53 oh shit it was a silly copy paste error Aug 31 18:23:54 lol Aug 31 18:24:33 i want to make a DatabaseHelperHolder sort of class so I don't have to keep creating new db helpers and open and close connections all the time Aug 31 18:24:47 so i want to make the methods in that synchronised Aug 31 18:24:59 AKK9: look into ContentProviders Aug 31 18:25:09 yeah, content providers usually work better Aug 31 18:25:15 Question about fragments. The contact list tutorial uses a fragment to get the list of contacts, but doesn't define a layout. How can I add such a fragment to an activity? http://developer.android.com/training/contacts-provider/retrieve-names.html Aug 31 18:25:26 see https://github.com/mitmel/SimpleContentProvider Aug 31 18:26:34 elplatt: what do you mean it doesn't defined a layout? Aug 31 18:26:40 define* Aug 31 18:27:26 As far as I can tell it inflates a layout-file, like anyone would Aug 31 18:27:43 Ive finally put my image/resource loading and rescaling in a bg thread. I googled but not getting much success : is there a built in animationlist I can display (from the main ui thread) which shows a "loading" animation? I know it must be... Aug 31 18:28:37 The tutorial creates a ContactsFragment class that modifies the UI of its parent Activity. Not sure how to add such a Fragment. Aug 31 18:28:43 oh just use a progress dialog. Aug 31 18:29:01 rgr: tried setting empty-view? Aug 31 18:30:19 Thorbear, Mavrik, content providers seem quite big Aug 31 18:30:35 bit hefty for the simple data i want to store Aug 31 18:31:01 looks like there would be more code to create the content provider than i have in my sqlitehelper Aug 31 18:31:19 AKK9: They are only as big as you need them to be, and once they're in place, you can access it either asynchronously or on the same thread from anywhere. Aug 31 18:31:37 Thorbear, I think I'm partly confused because there are some bugs in the tutorial code. It inflates R.id.contact_list_fragment which doesn't exist. There is a contacts_list_view but the tutorial makes it look like that's associated with the Activity. Aug 31 18:32:40 Thorbear, how does it work if i have a lot of different tables? do i need to make insert/update/delete methods for every table? Aug 31 18:32:58 Do I have to declare a share intent in each fragment? or is it enough in the activity? (I have 1 activity and 5-6 fragments) Aug 31 18:33:28 Thorbear: empty-view? Aug 31 18:33:52 AKK9: No, you define different URIs for each table, and then implement one query/insert/update/delete method Aug 31 18:34:30 Thorbear, thanks, may give it a go Aug 31 18:34:50 rgr: http://developer.android.com/reference/android/widget/AdapterView.html#setEmptyView%28android.view.View%29 it will be visible in place of the list while your content isn't there yet. Aug 31 18:35:14 Once the first element is ready, it disappears Aug 31 18:35:19 Ah no. I have other stuff there. Thanks anyway, another good ting to know. Aug 31 18:36:16 (plus its not an adapter) Aug 31 18:38:04 I'm looking for an app that extracts UPC barcodes. However, the ones I found simply display it on the screen Aug 31 18:38:07 I want to return the code so I can use the value in my program Aug 31 18:40:27 https://github.com/zxing/zxing/wiki/Scanning-Via-Intent following a short google might help. Aug 31 18:40:33 elplatt: I think the idea of the tutorial isn't to provide a completed example, but to give you the parts you need. The layout of the fragment is up to you, and may even be just an empty linealayout. The ListView is loaded to have something to place the data in, and is loaded in "onActivityCreated()" which is a method you can override in fragments to know when an activity is created. To... Aug 31 18:40:35 ...read more on using fragments in your activity, check http://developer.android.com/training/basics/fragments/index.html Aug 31 18:41:36 that onActivityCreated is interesting. Its as much sense generally to create it in onCreateView too. Aug 31 18:42:15 Thorbear, thanks but I'm still confused about how the ListView relates to the layout fragment. Aug 31 18:45:19 elplatt: it is entirely possible that there are some inconsistencies in there :) Personally I'd just have a complete layout for the fragment, with a listview in it, and reference that view in onCreateView(), like rgr mentioned. Aug 31 18:45:51 @eckesicle Had to eat lunch :) Assuming your comment about posting source was to me, what would be the best way to do that with regard to IRC - I'm new to IRC Aug 31 18:46:03 OK, I think that makes sense, I'll give that a try :) Aug 31 18:46:48 wizardpoop: pastebin is generally a good alternative Aug 31 18:47:29 does a ShareIntent have to starta new Activity? Aug 31 18:52:06 @eckesicle http://derekknox.com/temp/dev/NodedWidgetProvider.java Aug 31 18:53:05 lol, so irc == twitter/facebook now? :p Aug 31 18:53:51 @eckesicle line 106 in onReceive method Aug 31 18:54:18 cliffreich: I know there are different opinions on how to place curly-braces and where to put spaces, but your code doesn't appear to align with any practice other than chaos. Also, if (foo == false), why not if (!foo) ? Or even better, if (foo), and just swap the two blocks of code. Aug 31 18:56:14 Can someone help me on how to create a Share action? I get the symbol up following http://developer.android.com/training/sharing/shareaction.html but dont get how to make something happen when I press it Aug 31 18:58:55 you did of course google first, smitzer? Aug 31 18:59:08 because this is pretty common and I'm sure there are tons of examples out there Aug 31 19:02:38 * rgr thinks this channel really could do with a FAQ bot like #emacs has ;) Aug 31 19:05:42 ravilov, I found out Aug 31 19:06:06 One thing though, I want to set my share link to the google play store address. Can I know this address before hand? Aug 31 19:06:22 given my package name I will now the address in the appstore? Aug 31 19:06:26 I have a widget with a listview and I have a button on the widget. When I click the button I want the list's position to be set further down the list. Does anyone know how to accomplish this with a widget ListView? I have it working for an app, but not a homescreen widget. Aug 31 19:06:34 or else I have to relase app then add sharing... Aug 31 19:07:02 smitzer, again, google... Aug 31 19:25:28 Anyone know how to build cpp-netlib for use with the ndk? I already have boost built Aug 31 19:29:20 how can i update an arrayadapter from another activity? Aug 31 19:30:13 is there some problem with having your app store link (https) as a string? Aug 31 19:31:56 https://play.google.com/store/apps/details?id=xx.yy.appname Aug 31 19:32:01 that becomes empty for me Aug 31 19:37:28 I believe the question mark is special, also possibly the equals sign Aug 31 19:37:41 this is not how you should form playstore urls anyway Aug 31 19:38:14 aaearon, handlers, messages, broadcast intents Aug 31 19:46:38 After I have used messaging as share action the share action occupies 2 "spaces" where one is the share action and the other the messaging icon. and even if i choose email instead the messaging icon is still there. I dont want any icon, i just want dropdown, how do I do? Aug 31 19:48:21 guys, i have a fragment and i want to store some of the values on the database, should i get a database instance on the fragment or call an activity method passing the params Aug 31 19:49:07 from the fragment Aug 31 19:51:24 ravilov, are broadcast intents still a good idea even if its just for 'inter-application' stuff? Aug 31 19:51:37 Hey. Anyone knows if on orientation change only the visible activity is re-created? Or all the other ones that are in the background, paused, re-create also? Aug 31 19:52:53 Or will the background activities re-create only when brought to front? Aug 31 19:56:10 aaearon, in that case you could consider using LocalBroadcast Aug 31 20:01:53 Isn't R.string.string_name the correct way to use strings in Android? Aug 31 20:02:32 If the string is a https link, does that matter? My string is empty when the program runs although it shouldn't be. Aug 31 20:02:49 there is not "correct" way to use strings Aug 31 20:02:56 also those are not strings, those are resources Aug 31 20:03:03 which can hold references to other resources Aug 31 20:03:09 s/hold/containt/ Aug 31 20:04:16 you should probably read up on resources in android since you seem to be unclear on the subject Aug 31 20:13:09 Hey guys I with listview how can I store "data" in it? What I mean is listview displays name and when I click the name it will display other info in textbox? Aug 31 20:13:59 implement your own adapter Aug 31 20:14:20 baseadapter? arrayadapter? Aug 31 20:14:23 My game keeps playing when the share icon is pressed and doesnt stop until the actual program to share with is chosen. Can I change this? Aug 31 20:14:37 Demon_Jester, whichever works best in your case Aug 31 20:15:02 ok I will take a look at both and see which one will be better to use. Aug 31 20:30:25 guys, i have a fragment and i want to store some of the values on the database, should i get a database instance on the fragment or call an activity method passing the params from the fragment Aug 31 20:53:22 fragments is the answer Aug 31 20:53:30 thanks for nothing dev channel Aug 31 20:53:50 i mean fragment interfaces Aug 31 20:54:00 :^) Aug 31 20:56:33 anytime! Aug 31 21:07:32 hey is there an intent i can receive that is a new focus in any app? Aug 31 21:08:56 What do you mean by new focus in any app? Aug 31 21:09:18 any time a new edittext, textview or anything's onFocus method gets called Aug 31 21:09:28 ? Aug 31 21:09:30 read docs Aug 31 21:09:44 know where i can find a list of intents? Aug 31 21:11:22 yeah i dont think thats possible actually Aug 31 21:11:26 system wide onFocus Aug 31 21:12:54 GoogleAuthUtil.getToken method throws GoogleAuthException message is "unknown", what is wrong? Aug 31 21:15:20 For ndk development what is a good library for http requests? I just need some get/post requests and their replies nothing fancy, would prefer not to have to go through the hell that is building curl. I've looked at cpp-netlib and that seems like it could be a good choice. Aug 31 21:37:11 1, how is building curl hell, 2 if you can't figure out how to build cpp-netlib, how is any other library going to be any better, 3 you can still call urlconnection or okhttp from ndk Aug 31 21:40:23 Hello, how can I search for devices in the lokal network like in the es file explorer? Aug 31 21:50:38 Laire: assuming you mean SMB shares, You can try something like http://jcifs.samba.org/ Aug 31 21:54:46 is that what es uses, I wonder, it's so slow Aug 31 21:55:01 no clue :) Aug 31 21:55:26 I want a cifs client that isn't ungodly slie Aug 31 21:55:29 slow Aug 31 21:55:45 I get like 8-16mbps if I'm lucky Aug 31 21:55:49 Good Night guys Aug 31 21:56:40 utorrent is easily able to get 45mbps on my wifi Aug 31 21:58:18 I wish es were open source Aug 31 21:58:36 they don't do ads, I wonder what their revenue stream is Aug 31 22:04:36 Can I pass arbitrary objects between activities? It seems like the Bundle type doesn't really do that, so there is no way to do that through the Intent. Aug 31 22:04:55 "compatible with Dropbox, Google Drive, SkyDrive, Box.net, Sugarsync, Yandex, Amazon S3, and Ubuntu One...), FTP client, and LAN Samba client. " Aug 31 22:05:02 You can if they implement Parcelable or Serializable Aug 31 22:05:11 i bet they are close to the 64k limit :D Aug 31 22:05:20 heh Aug 31 22:05:39 there was a guy in #smali the other day with an interesting way of getting around the 64k limit Aug 31 22:05:41 g00s, proguard, no problem Aug 31 22:05:55 dex loading, no problem Aug 31 22:06:01 basically, rewrite the bytecode so that it accesses all the "extra" methods that would normally be past the limit using relfection Aug 31 22:06:05 there's lots of ways around the limit Aug 31 22:06:18 right, but this was with a single dex file :) Aug 31 22:06:29 no extra dex loading needed Aug 31 22:06:30 JesusFreke, dex loading is a better solution, imo Aug 31 22:11:02 bah Aug 31 22:14:14 http://shrani.si/f/A/Lx/YUcwCYr/wtf.jpg why do I get GoogleAuthException(Unknown Source)??? Aug 31 22:17:18 hi, i'm new to app developement. I'm into c/c++ and wanted to make a port of my security toolkit to android, which software would u recomment 4 c++ and is the r.a.t. toolkit available in c too? If someone already got experiences on this, i would be glad if he shares his knowlege. Aug 31 22:18:32 debuser: just grab the ndk, look at the examples Aug 31 22:19:11 where do i get it? Aug 31 22:19:51 https://developer.android.com/tools/sdk/ndk/index.html Aug 31 22:20:03 thanks Aug 31 22:21:05 lala == sirlala ? Aug 31 22:21:44 nick? no. Aug 31 22:31:51 hm, does android BLE API have support for L2CAP dedicated channels ? Aug 31 22:33:01 shouldn't be in the GATT* classes ... Aug 31 22:40:18 ugh this isn't looking good Aug 31 22:55:30 ron_frown there ? Aug 31 22:55:41 yessir Aug 31 22:56:09 ron_frown would a BLE L2CAP connection oriented channel be an appropriate way for a peripheral to update its firmware ? Aug 31 22:56:22 seems like a good way to xfer a blob / image Aug 31 22:56:46 I'd def md5 that shit or something Aug 31 22:56:49 but seems reasonable Aug 31 22:56:55 I've not used ble itself for that Aug 31 22:56:59 its not gonna be quick Aug 31 22:57:51 yeah, slow of course Aug 31 22:59:32 man, apple even has bluetooth device guidelines to follow for your HW Aug 31 22:59:43 those guys are way ahead in areas like this Aug 31 23:02:21 hm, iOS has IOBluetoothL2CAPChannel. guess the iOS version will have more features than the android version, oh well Aug 31 23:04:16 hey guys. I am trying to set WebView to be invisible when onReceivedError() is called, but it doesnt seem to want to go anywhere Aug 31 23:05:31 I am using the same method to show and hide some ImageViews and that works fine Aug 31 23:18:11 i made a white notification icon for my app, but apparently on some 2.x systems notification area is also white. what's the best way of dealing with this? Aug 31 23:29:16 minsdk=15 Aug 31 23:29:58 system is supposed to invert icons automatically Aug 31 23:30:06 at least it will on L Aug 31 23:58:41 how can I check if my device is hdpi/mdpi? Sep 01 00:02:36 When I draw on a canvas in a view, if I draw a line between (x,y) and (x+10,y), is the line 10 px long or is it 10dp long? Sep 01 00:19:17 mhm Sep 01 00:19:18 Hey guys I am working on tcp socket server/client, and noticed android doesn't have any ondisconnect methods for disconnected clients, what would be best way for server to know that client disconnected? Sep 01 00:20:08 pfn: but I want to support old versions Sep 01 00:22:41 fuck old versions Sep 01 00:23:20 Demon_Jester, same way you'd do it in normal java Sep 01 00:23:31 ok I will take a look in java. Sep 01 00:29:35 pfn I have a question I and noticed most of code I see has server.close in same while loop as in server.accept if I am interpretting the code correctly its just accepting the server connection then closing it. Sep 01 00:31:55 depends on what it's doing Sep 01 00:32:15 if it's just an echo server, of course it'll close immediately Sep 01 00:32:37 it is there is streams Sep 01 00:32:50 some of them have thread sleep before it closes socket and serversocket Sep 01 00:41:58 :/ Sep 01 02:43:25 what tutorial or series of youtube videos would be a recommended start to learn android development Sep 01 02:44:28 youtube? bah... read the examples on d.android.com Sep 01 02:48:28 bankai_au you're holding down the fort tonight :) Sep 01 02:49:02 :) Sep 01 02:49:22 turns out one of the puppies, who's been eating the shit of the other, eats his own as well :-/ ... it's hilariously disgusting Sep 01 02:49:22 pylearner depends on the starting point Sep 01 02:49:36 StingRay_, I am a hello world type guy Sep 01 02:49:56 oh then there are some nice into java type vids and docs to be found Sep 01 02:50:04 ugh bankai_au gross! http://www.aspca.org/pet-care/virtual-pet-behaviorist/dog-behavior/coprophagia-eating-feces Sep 01 02:50:19 how did you get that link so quickly? Sep 01 02:50:21 sounds like you have a coprophagic puppy :) Sep 01 02:50:22 StingRay_, thanks for the heads up Sep 01 02:52:17 "Raiding the Cat Litter Box" aka "yum, taxoplasmosis smells yummy!" **** ENDING LOGGING AT Mon Sep 01 02:59:58 2014