**** BEGIN LOGGING AT Thu May 01 02:59:59 2014 May 01 03:00:52 although, it's probably been long enough that everyone's using it now May 01 03:01:40 http://stackoverflow.com/questions/23400375/updating-background-bounds am i missing something here? May 01 03:01:49 ok ill check out the view flipper May 01 03:02:11 I'd love to see some of the app some of you guys have developed. May 01 03:02:31 a/ct May 01 03:02:33 oops May 01 03:02:45 anyone had any luck porting ios apps to android with apportable? May 01 03:03:04 bjork May 01 03:03:13 :) May 01 03:03:18 * pfn has a bunch in market for sale and all open source on github May 01 03:03:47 Oh? Could I have a look? May 01 03:03:58 github.com/pfn May 01 03:04:11 some apps should have links to play May 01 03:04:41 all personal stuff, of course May 01 03:05:04 Ahh sweet - quite a few then! May 01 03:05:23 Ill be having a look, especially for good programming practices. May 01 03:05:37 A lot of Scala. May 01 03:05:46 I think only one android app is in java May 01 03:05:48 heh May 01 03:06:31 Any particular reason? May 01 03:06:54 That it's in Java? too lazy to rewrite May 01 03:07:36 No, I mean that you used Scala May 01 03:08:01 pfn: may i ask about how much you make per month from the android app store? May 01 03:08:32 Hello. Does anyone here use an iPhone? May 01 03:08:54 ir7466: perhaps youd have better luck in iosdev? May 01 03:09:02 It's an android question :) May 01 03:09:12 ask away, who knows? May 01 03:09:21 You know how on iPhone, if you scroll down on some pages - the search bar appears at the top? May 01 03:09:30 So it doesn't appear by default, only if you scroll down May 01 03:09:44 I'd like to achieve the same thing in my android app May 01 03:09:49 Like twitter has for writing a new status when you scroll up? May 01 03:09:58 to like search within the page? May 01 03:10:00 ir7466 if you don't see that micro-interaction in android land, i would skip it May 01 03:10:14 Jesperhead: yes, I have a listview that I want to filter May 01 03:10:16 Jesperhead, not a lot, a couple hundred May 01 03:10:18 android has its own idioms of when to show search, etc May 01 03:10:27 I don't really try to monetize May 01 03:10:36 Anthaas, Java sucks May 01 03:10:39 I like the UI on Spotify's app. May 01 03:10:44 g00s: what do you suggest that is android-ish then? May 01 03:10:47 pfn couple hundred per month ? May 01 03:10:47 pfn: How and why? May 01 03:10:58 g00s, yeah May 01 03:11:06 My heart is not set on the iOS style, I just thought that is the nicest I've seen May 01 03:11:08 pfn wow, thats pretty good May 01 03:11:24 Anthaas, lots of reasons that I'm not gonna go into May 01 03:11:34 g00s, yeah, it pays my phone bill May 01 03:12:57 pfn: Hmm, I appreciate that, but its the same reason I hear from anyone and everyone that says that about Java. May 01 03:13:00 ir7466 i suppose http://developer.android.com/guide/topics/search/search-dialog.html May 01 03:13:11 kinda surprised there isn't more about it in the design docs May 01 03:13:27 maybe its in there but tucked away under navigation May 01 03:13:34 since search is a kind of navigation May 01 03:13:42 both are information foraging :) May 01 03:13:43 ir7466: http://www.androiduipatterns.com/2012/08/an-emerging-ui-pattern-quick-return.html and https://plus.google.com/+RomanNurik/posts/1Sb549FvpJt May 01 03:14:22 in brief, verbosity, weak type system, etc May 01 03:14:49 java8 solves some of it, I suppose May 01 03:15:12 thanks Jesperhead May 01 03:15:28 the second link has a link to a github May 01 03:16:18 hey May 01 03:16:24 anyone here use android studio? May 01 03:16:37 what is that May 01 03:16:38 ... is that a trick question ? May 01 03:16:42 haha May 01 03:16:53 i am wondering how to disassociate a project with github May 01 03:17:00 and then create a new repository May 01 03:17:08 i kinda messed up and now it wont sync May 01 03:18:12 rm -rf .git May 01 03:19:05 i will try that :-) May 01 03:19:17 ymmv May 01 03:19:54 noooo! that will remove git from the internets! May 01 03:20:03 ehhhhh May 01 03:20:05 :-( May 01 03:20:10 aright May 01 03:20:11 what do i do now :D May 01 03:20:14 anyone here particularly proud of their animating skills? im having trouble with something May 01 03:20:18 Probably better to nuke the iml files and re import from the gradles May 01 03:20:27 ok May 01 03:21:05 J-Head what do u need help with animating? I am not great but maybe i can send u in the right direction May 01 03:21:23 Well it's using a transparency mask May 01 03:21:29 should i also get rid of the app.iml? May 01 03:22:34 The intended effect is to just see the background... then the transparency layer translates to the right "sliding off" of the company logo, which is a separate image May 01 03:23:31 im able to create a transparency mask and mask the logo, but cant seem to animate just the mask within the view May 01 03:24:47 I tried rm -rf internets:://*.* but the p0rn is still there !?!?!?! May 01 03:25:17 you haven't heard of offline porn? May 01 03:25:27 you save your porn? May 01 03:26:03 heh - tried to clean the internets for straight-up citizens May 01 03:26:05 nuclear bomb:cockroaches::rm -rf internets:p0rn May 01 03:26:20 Those UK types really hate that stuff :p May 01 03:26:38 you can't do that dummy, without porn there would be no internet! May 01 03:27:10 quick, think of an way to connect this back with the channel topic May 01 03:27:27 Android Porn? Not sure I want to... May 01 03:27:29 well im still looking for animation help :) May 01 03:27:38 if you have a list view, and you put items in it using an adapter May 01 03:27:46 is it possible to put an item in there using XML? May 01 03:28:03 such that the XML item (say a line of text) always appears at the top of the list view until you scroll down? May 01 03:28:14 in which case you start scrolling through the items put in there from the adapter May 01 03:29:19 can anyone tell me of a TOTALLY free audio recorder that can stream the data DIRECTLY to my google drive account? May 01 03:29:31 it has to be free because im 100% completely and utterly destitute May 01 03:29:43 i would already be on the streets if i had no friends May 01 03:29:45 ir7466: yes it is possible May 01 03:29:55 not is it possible. does it exist May 01 03:30:18 i need a way to securly record all police encounters and NOT have the recordings locally stored May 01 03:30:19 shmooz: is it as easy as putting something between the tags and letting the adapter do the rest? May 01 03:30:30 I440r: they were not talking to you May 01 03:30:33 oh you were responding to someone else lol May 01 03:30:54 yea i figured that, alot of ppl mystype my nic so... May 01 03:31:56 I440r: I guess that's your answer as well May 01 03:32:11 shmooz, ? May 01 03:32:40 it's possible if you're programming, if you're just looking for some app you should ask #android May 01 03:34:07 i did. you can ask a question in there and never get any replies to it for months even if you ask every 2 minuts May 01 03:34:40 ask every 2 mins and people start ignoring May 01 03:35:05 I440r: there's stuff like ustream apps that do audio and video remote recording for those situations May 01 03:35:23 ustream thank you May 01 03:35:29 none that save to the cloud and are free May 01 03:35:31 that i can find May 01 03:35:32 I440r: consider ustream May 01 03:35:45 looking at ustream May 01 03:35:47 is it free? May 01 03:35:52 its video + audio, but your videos are saved to their servers May 01 03:35:59 no May 01 03:36:01 it was the last time i looked May 01 03:36:31 i know you want google drive, but thats as good as it gets as far as i know May 01 03:36:33 Damn, as a British I have never really appreciated the destructive force of tornadoes and the like. We just never really get anything like that. Floods perhaps. But wow. I've just seen a video on YouTube of someone going through a tornado. Like, it happens and wrecks their house on camera with them in the house. May 01 03:36:49 I just....wow. May 01 03:36:57 Jesperhead, thats a non solution unless they are giving me HOURS of recording time May 01 03:37:03 Anthaas: yeah terrifying bits of nature May 01 03:37:10 I440r: take a look, they might be May 01 03:37:10 and yes encounters can last hours May 01 03:37:27 id be more worried about your phones battery lasting that long May 01 03:37:30 Yet the first thing these guys do is "We need to see if our neighbours are OK, we need to get to them". Their house is in bits. Absolutely shredded. May 01 03:38:00 For those that might be interested: https://www.youtube.com/watch?v=HFrgSVoJi1U May 01 03:38:16 I440r: what's the time limit on ustream ? May 01 03:38:57 shmooz no idea. every recorder ive been able to find tht can stream to the cloud limits all recordings to 3 minutes or so. May 01 03:39:20 i hate crippleware. ill NEVER pay for any crippleware even if i had the funds to do so May 01 03:40:03 write your own May 01 03:40:10 if i had the skills i would May 01 03:40:31 if only there were an android development channel, huh ? May 01 03:41:10 yah, then we could learn to do things instead of complaining that free code isn't up to our standards May 01 03:41:20 this isnt something i need 6 months from now and it would probably take me WAY longer to develop this, im not a real android developer. not until i can develop 100% of all my apps in 100% pure assembler/forth with zero java May 01 03:41:22 i.e. never May 01 03:41:22 ustream has a 10GB limit May 01 03:41:25 As a British person, I like complaining. May 01 03:41:38 indeed ;) May 01 03:41:57 im not complaining, i have a need and was asking of anyone knew of an app that fit the bill May 01 03:43:29 I440r: and the pro plan offers 50GB storage May 01 03:43:54 shmooz I440r like large numbers, give it to him in bytes ! May 01 03:44:00 shmooz "utterly destitute" May 01 03:44:28 if the pro version cost 0.01 i could not afford it May 01 03:44:40 thats 429496729600 bits ! May 01 03:44:40 thers a nice smallish number for you May 01 03:44:52 0.01 what? May 01 03:44:54 flickr can auto upload oyur videos May 01 03:45:00 and you get 1tb space and it's free May 01 03:45:01 I440r: it's your best option for now for free you get 10 GB May 01 03:45:12 and g00s of course your not being a dick here. May 01 03:45:14 amirite? May 01 03:45:19 and don't mouth back to the cops too much when they beat you ;) May 01 03:45:20 nope :) May 01 03:45:37 it's not worth it even if you're getting it on tape May 01 03:46:00 Its how g00s shows love. May 01 03:46:13 he's into pain May 01 03:46:21 one of 89785734857348958657 ways :) May 01 03:47:00 anyone want to write a simple audio recorder that can save to google drive as it records for me? if i had any money i would pay for that May 01 03:47:10 No. May 01 03:47:26 pass May 01 03:47:30 However, if you go to #android someone may already know of an app that does what you want. May 01 03:47:36 OR May 01 03:47:39 You might check out Evernote. May 01 03:48:02 that channel is active for about 5 minutes a day max May 01 03:48:03 if that May 01 03:48:23 other than ppl coming in, asking a question, waiting 4 hours and leaving with no replies May 01 03:48:36 "I'll gladly pay you Tuesday, for an Android app today?!" May 01 03:48:43 Right, but your type of question isn't what this channel is for. May 01 03:48:55 I wouldn't go into #php and ask a JS question. May 01 03:49:07 Anthaas: oh come on, give it a try ;) May 01 03:49:16 bankai_au: brb ;-) May 01 03:49:24 Seeing how long it takes me to get told to May 01 03:49:27 f*** off May 01 03:49:36 or go to #java and ask a question about JS ;) May 01 03:49:44 Hahaha yes! brb! May 01 03:49:48 "what? javascript ... it's got 'java' in it.." May 01 03:50:23 "Hi guys, I'm wondering if you could help me with a problem Im having with JavaScript." May 01 03:50:50 "i asked in #javascript, but no one was around" May 01 03:51:05 hahaha May 01 03:51:14 I've been ignored it seems. May 01 03:51:26 https://developer.mozilla.org/en-US/docs/Debugging_JavaScript May 01 03:52:25 Haha, I got: "no anthaas, because hamsters" May 01 04:08:57 * g00s gets the impression I440r is the kinda guy who would get his ass kicked by the police, no matter how benign the situation could be May 01 04:09:44 I440r if you are destitute, check out http://www.amazon.com/Divide-American-injustice-age-wealth-ebook/dp/B00EBRUB02 May 01 04:14:50 heh --^ that May 01 04:15:13 actually, the Popehat site might interest him :) May 01 04:16:20 it would start off when I440r points out how inferior the police tech is because the stuff isn't written in forth May 01 04:16:35 and go downhill from there :) May 01 04:17:37 he's wind up with 987345893478957893475983475 life sentences May 01 04:18:28 That's all? May 01 04:18:40 Man them judges is lenient lately May 01 04:19:55 I thought you had to be a big time torrenter to get that many May 01 04:26:30 p_l in the US, you just have to be poor and in the vicinity of a privately run prison ;) May 01 04:27:35 even then :P May 01 04:29:55 Privately run? May 01 04:30:15 yeah, for profit May 01 04:30:33 pfn: so there's profit incentive to increase prisoner count and length of stay May 01 04:30:37 Does don't exist May 01 04:30:53 those May 01 04:31:14 Correction Corporation of America, or the CCA is the biggest May 01 04:31:18 maybe asylums May 01 04:31:19 was using android studio earlier. what do you have to set the RAM at to make the emulator open in a reasonable amount of time? May 01 04:31:45 ram makes no difference May 01 04:31:46 * capella still can't believe we do that May 01 04:32:00 "conflict of interest" anyone? May 01 04:32:10 pfn: CCA definitely exists May 01 04:32:19 yes it does May 01 04:32:23 pfn: what makes the difference then? May 01 04:32:23 use an x86 emulator with haxm May 01 04:32:36 I'm not familiar with CCA then May 01 04:32:51 pfn: biggest for-profit prison company in USA May 01 04:33:06 65 prisons or something like that May 01 04:33:07 they loby to make laws that snag lots of people on stupid shit May 01 04:33:14 truly evil May 01 04:33:32 probably world, as we incarcerate more people than anyone ... land of the free has gotten embarrasing May 01 04:33:47 everything's a federal crime May 01 04:34:55 part of the supply chain for Soylent! May 01 04:35:04 lol May 01 04:35:04 capella: OBEY or you'll see more planes flying into buildings! May 01 04:35:33 The beatings will continue until morale improves ! XD May 01 04:35:33 capella: doesn't have to be federal crime... May 01 04:37:04 * p_l only recently read about yet another case where State refused to stop prosecuting people on laws that were deemed unconstitutional May 01 04:37:41 still, I can't figure how for-profit run prison is not a bad idea May 01 04:39:20 xit May 01 04:39:50 p_l: the prison will kill all it's inmates to make money ? May 01 04:40:00 p_l a small town here was building a prison ; there was some agreement in place to keep it at a minimum occupancy - otherwise it wouldn't be profitable, amazing May 01 04:40:29 SirLagz not using the cocktail oklahoma tried :| May 01 04:40:34 SirLagz: the opposite. a dead prisoner means no upkeep fees May 01 04:40:40 g00s: what happened there ? May 01 04:40:45 They should operate as a non profit... May 01 04:40:52 SirLagz i'll try to find the story May 01 04:41:01 p_l: kill them, but say they're still alive? then keep taking in prisoners May 01 04:41:03 pfn: a non-profit in USA is afaik easily twisted to make a lot of profit, from what I recall May 01 04:41:12 p_l: I'm going all conspiracy theory there though haha May 01 04:41:26 p_l, yes, you pay yourself a salary May 01 04:41:35 SirLagz: well, depends on how the cashflow works out. Remember that people might want to see them May 01 04:41:38 but there is some oversight there at least May 01 04:41:44 p_l: true May 01 04:42:01 SirLagz: and too many 'accidents' are problematic May 01 04:42:07 haha May 01 04:42:16 safety shmafety :P May 01 04:42:34 p_l actually currently the big issue is DOJ not prosecuting people for things that /are/ illegal May 01 04:43:06 on-the-fly law re-writes / looking the other way ... May 01 04:43:10 capella: USA is big enough mess that I really, really don't want to go there May 01 04:43:17 but overall, it's a mess May 01 04:43:22 ninja'd May 01 04:43:56 SirLagz well, here is a general story but they didn't mention Eloy, AZ http://www.motherjones.com/mojo/2013/09/private-prisons-occupancy-quota-cca-crime May 01 04:44:07 g00s: thanks, I'll have a look a bit later May 01 04:44:12 I really should get some work done =/ May 01 04:44:18 * p_l has a standing joke that even if he were to travel to USA, his visa application wouldn't go through May 01 04:44:20 hmm....wonder why my USB stick doesn't work in my tablet =/ May 01 04:44:27 SirLagz: check in dmesg May 01 04:44:55 p_l: don't have access to dmesg on my tablet lol May 01 04:45:04 time to root the thing? :> May 01 04:45:16 p_l: can't be bothered rooting it haha May 01 04:45:35 oh yeah... just about everyone that wants to go to the US needs a visa... so dumb May 01 04:46:13 not me! May 01 04:46:18 https://esta.cbp.dhs.gov/esta/ May 01 04:46:19 pfn: and I'm in the category of those that don't get near-automatic B-1 visa May 01 04:46:23 everywhere is mess in some way... May 01 04:47:01 a us passport has its privileges May 01 04:47:13 wabz: VWP mostly means automated granting of B-1/B-2 visa unless otherwise blocked May 01 04:47:23 pfn: except when it comes to taxes May 01 04:47:35 or banking in EU, recently May 01 04:47:52 taxes are quite high regardless of where you live these days May 01 04:47:59 oh. I assumed visa waiver mean the visa is waived :p May 01 04:48:15 pfn: the problem is that with US passport you're taxed twice May 01 04:48:40 Sure, if you're an expat May 01 04:48:58 there's iirc only one other country in the world which uses the same system for tax applicability May 01 04:48:59 but out of country work isn't often reported to the irs May 01 04:49:20 pfn: unreported out of country work is pissing the most dangerous three letter agency ;) May 01 04:49:41 unreported is the norm when possible May 01 04:50:02 quite often the case for cash work here domestically May 01 04:50:04 pfn: recent actions to crack down on that led to some banks in EU stop serving US citizens May 01 04:50:22 we had trouble with that here May 01 04:50:41 alot of US retirees were having trouble getting their pension payment May 01 04:50:45 s May 01 04:51:13 hmm phone is about out of battery :-/ May 01 05:00:41 JakeWharton: are you around? May 01 05:01:59 Depends May 01 05:02:31 How to touch a CheckBox Automatically when touch a textview? May 01 05:03:09 i found many public methods May 01 05:03:09 vicarious touching May 01 05:03:21 but i dont know what is i want May 01 05:03:33 setChecked? or cause a touch event? May 01 05:03:38 I'm not sure if you saw what I wrote yesterday, after our chat about using volley and picasso together. Anyway, I thought I should clarify: The 'Bitmap Fun' sample project I talked about, by Google, is now called 'DisplayingBitmaps' in case that helps. May 01 05:03:47 touch event May 01 05:04:07 why May 01 05:04:47 The other thing, I wondered if you've heard of or encountered an issue where the DiskLruCache becomes corrupt, for no apparent reason - I can't manage to log the journal entry being deleted, or declared corrupt, but if I close and reopen my app many times, eventually the artwork will disappear, as if the cache has become corrupt May 01 05:05:16 because i want the square of check in the right, so, i set the text of checkbox to empty and add a textview on the left of checkbox May 01 05:05:20 Wondering if you have any ideas of what I could try - I can't willingly reproduce the issue, but I've had plenty of e-mails from users complaining that every few days they have to redownload their artwork May 01 05:05:58 guess i'm saying why not just setChecked in your textView onClickListener&do you logic May 01 05:06:19 The only thing that seems to make sense is the diskLruCache is being cleared for some reason, but again - none of my log calls are called (I'm pretty much logging any journal.delete call) May 01 05:07:37 because i want to make the textview as a part of checkbox, if user still touch the textview the checkbox still touch too May 01 05:09:28 why not just create one view that'll do what you want, instead of doing the same things with multiple view objects May 01 05:10:06 can use a textview compound drawable and set rightdrawable to your checkbox states with 9patch etc May 01 05:10:55 no method or something to do that without creating custom view? May 01 05:11:25 JakeWharton: My question to you is this: Have you experienced yourself, or had any reports of the DiskLruCache becoming erroneously deleted/corrupted? May 01 05:12:22 malekalrwily: textview with drawableRight, and in your onclick check states to set your drawable right to what you want May 01 05:12:45 "Depends" has just become "No". May 01 05:13:15 thanks May 01 05:14:19 Hehe I don't blame him May 01 05:14:20 Forgive me if Im being dumb, but is this not what "CheckedTextView" is? May 01 05:15:15 never used it Anthaas, be good suggestion if name implies his desires May 01 05:15:29 can you set check right/left? May 01 05:15:47 I've never used it, only noticed it, but the same would imply that that is what it is... May 01 05:15:47 tmalseed: nope May 01 05:15:52 Never had problems May 01 05:16:12 Anthaas: only stipulation is he wants on right May 01 05:16:17 You can set "Check Mark" in xml, it takes a drawable. May 01 05:16:33 location is key May 01 05:16:53 Alright, thanks for the reply - and sorry for the wall of text. It's one of those difficult-to-describe pain in the ass bugs, that's hard to reproduce and even harder to debug. May 01 05:17:09 Might be possibly to modify it, change the style, or extend it or something? May 01 05:17:32 That is assuming it doesnt do that already. May 01 05:17:35 sounds like he wants to stay away from to much work May 01 05:17:52 Technical debt. May 01 05:17:55 I'm in the process of rewriting my entire image loading pattern. I wish I could use Picasso - but I have some fairly non-standard requirements, May 01 05:18:40 tmalseed: if is read DiskLruCache to writing a file, can always create a checksum of the file & do checks May 01 05:18:47 if is read? dunno what i meant, but if creates a file, checksum it May 01 05:19:03 Hello.... I have followed the advice at http://stackoverflow.com/a/23401691/2884981 to put a edittext box at the top of a listview. it appears fine, however when you tap inside it the cursor doesn't seem to stick May 01 05:19:06 I'm wondering if I should spend a little time today and see how hard it would be to swap in Picasso for Volley for image handling May 01 05:19:19 So when I start typing, nothing is getting inserted May 01 05:20:30 does anyone know what could be causing that? May 01 05:21:40 I could - but.. Well if the jorunal entry is becoming corrupt, which would explain why artwork can't be retrieved from the diskLruCache, I would expect my logging of the journal corruption handling to print some messages May 01 05:22:25 tmalseed: are you sure that a corrupt journal is the only reason it would choose to reload? May 01 05:22:28 tmalseed: i'm just saying you are relying on a bunch of theories, of if broke should show, but isn't showing&isn't logging, so start adding more logging? May 01 05:22:45 I have logged the shit out of it. May 01 05:23:09 Leeds: I'm not 100% confident, but.. I have spent a lot of time on this, checking other methods as well, and I can't think of any other reason May 01 05:23:37 well there is a reason, maybe post some relevant code etc May 01 05:23:42 How else can I explain maybe 1 in 10 times when you open the app, the artwork disappears May 01 05:24:08 disappears, doesn't show, data is 0, you gotta be more detailed May 01 05:24:11 yes, you're explaining the user-visible behaviour May 01 05:24:31 dive deeper May 01 05:24:37 The artwork doesn't show, no longer exists in the disk cache until it is re-downloaded May 01 05:24:46 is cache 0 May 01 05:24:58 or can't read May 01 05:26:18 That's a good question. The reason it's hard to answer, is I can't reproduce the issue at will. Maybe I reopen the app 40 times and reproduce the error once. Yesterday I spent half an hour and couldn't reproduce it. May 01 05:27:08 So I couldn't tell you what the state of the cache is, that's a good question and I guess I should log even further. I've only been logging calls to delete the cache, maybe I need to log any call to anything to do with the cache. May 01 05:27:20 well it seems to have todo with reading, if cache is present, if cache is not present all data gets downloaded, or only missing entries? May 01 05:27:38 It's hard to explain what's happening... if you click the edittext box the soft keyboard appears. The word "done" appears for a split second as does that line where it gives typing suggestions. May 01 05:27:42 Only missing entries - but in this case when I can reproduce the bug, all entries are gone May 01 05:27:57 then both go away, and I'm just left with the soft keyboard which has no focus on the edittext field May 01 05:27:59 maybe create a test case, or writing to cache with valid data, then reading, then writing bogus data,and reading and check what gets called when May 01 05:28:03 You've given me an idea, I'll throw some more lgs in there May 01 05:28:37 If I click repeatedly (10 or so times over and over) in the edittext box it seems to give it focus May 01 05:28:40 log *all the things* May 01 05:28:51 Yep May 01 05:29:22 Don't know why i wasn't. I wasn't lying when I said I've logged the shit out of it. But I'm logging things expecting an error, I should log everything and see if it's consistent each time, and then see what goes wrong when I get the bug. May 01 05:30:03 Is there anything special about the way I am putting the edittext box in the adapter that could be causing it not to retain focus? May 01 05:30:48 tmalseed: basically work backwords from point of error. so if failing reading cache and viewing, makes you redownload ALL data, work back from reading cache, make sure reading was successful. if not, go back, etc...work backwords May 01 05:31:30 Yep, I'm on it. Inspired now ;) May 01 05:31:43 We'll see how I feel in a few hours lol May 01 05:32:47 bah sounds like something silly got overlooked. just stay on point and always work back from error, error means final destination, but at some point things worked :) May 01 05:33:28 Yep, no problem - thanks. I guess I'm not used to errors which I can't reproduce, especially when they don't throw an exception May 01 05:34:08 could it be because I haven't specified an ID for the edittext view? May 01 05:34:11 yeah, there are soooo many devices out there, it's hard to get em all right on first go, but just knowing logic&finding why something doesn't work will get ya covered May 01 05:34:22 I don't know, I'm really just clutching at straws now May 01 05:35:05 ir7466: why no id? data not needed? May 01 05:35:22 I haven't got around to adding it yet May 01 05:35:54 Not sure if I need to do it programatically May 01 05:36:03 so it got put on the too hard basket for the time being May 01 05:36:55 set the id in xml May 01 05:38:18 just tried adding an id May 01 05:38:20 no difference May 01 05:38:49 could it be because i am using an inflator? May 01 05:38:57 find out what's taking focus May 01 05:39:06 how do I do that? May 01 05:39:06 inflator for what May 01 05:39:26 show your layout, how much dynamic view adding are you doing in source? May 01 05:39:34 okay, one second May 01 05:41:46 See: http://pastebin.com/hYNPun6Z May 01 05:42:22 so I'm inflating that control_search_bar May 01 05:42:37 I needed to add a style to the edittext (and I don't think you can do that programatically) so I inflated that May 01 05:44:26 and obviously the rest of the code is just identical to that in the SO link as above: http://stackoverflow.com/a/23401691/2884981 May 01 05:46:16 ir7466: not sure why you are adding a search at index 0 of a listview, but think you want to rethink that. I wouldn't spend too much more time going that path with your problems. Why you adding search to the first index? what if the list is 20,000 items? May 01 05:46:46 well like I said in that SO link I would have preferred to do it some other way May 01 05:47:04 just have a layout with an edittext above your listview? May 01 05:47:20 I want the space the search box will take up May 01 05:47:28 what you mean? May 01 05:47:31 so I want the user to be able to scroll it out of view May 01 05:47:43 u use action bar? May 01 05:48:02 or support devices with a search hw button? May 01 05:48:14 hide it when not needed, show it when requested May 01 05:48:16 I looked at http://developer.android.com/guide/topics/search/search-dialog.html May 01 05:48:38 wasn't really impressed by what I saw there May 01 05:48:39 they have to persue an action to get it to show is what i'm saying May 01 05:48:46 not just scrolling to top of a big list May 01 05:48:54 you can make it anyway you want May 01 05:49:09 just add an action somewhere on open space of screen May 01 05:49:20 how do you mean? May 01 05:49:31 add a search icon May 01 05:49:35 show a screen shot May 01 05:49:38 i'll tell you where May 01 05:50:22 if you utilize action bar, it's simplier May 01 05:50:56 ok, hang on May 01 05:51:26 if not it isn't crazy, seeing how quite a few devices don't have a HW search button, you create an actionable object on screen to setVisibility(View.VISIBLE); on your edittext, then handle whatever gets entered¬ifyDataSetChanged on your adapter May 01 05:51:59 http://postimg.org/image/5htpukmt9/ May 01 05:52:16 the device i am targeting doesn't have a search button on the hardware, so it needs to be in the software May 01 05:52:28 up where it says Tasks, is that an action bar, or just some title? May 01 05:53:00 how can I tell for sure? May 01 05:53:15 It's probably just the default that eclipse put in when I created the activity May 01 05:54:29 it's your code? how is Tasks string being set to it? basically add an android search icon to that and do your code May 01 05:55:07 look at all that open space, can add quite a few actions/shortcuts up there May 01 05:55:50 as far as I can tell, the only way that strng gets added is in the manifest where the call is made: android:label="@string/title_activity_tasks" for the activity May 01 05:58:18 ir7466: there are several paths you can take, all fairly simple. You really just need to read May 01 05:58:58 http://www.androidhive.info/2013/11/android-working-with-action-bar/ ? May 01 05:59:44 in your screenshot you don't have an action bar, so guessing targeting 2.3 or less. Just do some reading, it'll come to you May 01 05:59:59 I'm targeting jelly bean May 01 06:00:13 oh May 01 06:00:14 hang on May 01 06:00:25 you have compatibality libraries added? May 01 06:01:13 android:minSdkVersion="14" May 01 06:01:19 android:targetSdkVersion="18" May 01 06:01:39 in that case actionbar should have been added May 01 06:02:03 so do some checking, it's really not to hard to implement a search action May 01 06:02:35 just depends on what you make for action bars, custom, or libraries May 01 06:22:52 http://hothardware.com/News/FSecure-Report-Notes-Over-99-Percent-Of-Mobile-Threats-Target-Android/ May 01 06:23:34 "During the Q1 2014 period, these malware were available for a short May 01 06:23:34 period in the Play Store. All these threats have since been removed" May 01 06:23:46 not good folks May 01 06:25:48 same with windows, just don't be gullible May 01 06:27:19 canvs2321? May 01 06:27:24 I have done as you suggested May 01 06:27:33 I have put the search box in the action bar May 01 06:27:44 The smart thing to do. May 01 06:27:50 Using a SearchView? May 01 06:27:54 I have used http://www.androidhive.info/2013/11/android-working-with-action-bar/ as a guide May 01 06:28:05 android:actionViewClass="android.widget.SearchView"/> ... yes May 01 06:28:08 At the extreme it comes down to freedom or not. Most of these apps are malicious in the sense that they do not offer what the claim to offer in the app descriptions, but they do exactly what the apps permissions allow them to do, and nothing else. May 01 06:28:12 i have a question though May 01 06:28:26 it talks about creating another activity to process the results May 01 06:28:38 how do I avoid that, and just have it filter the list view in the current activity? May 01 06:29:33 So if you ARE looking for a replacement for the default SMS app, make sure you select one from a reputable company... May 01 06:29:50 If your list view has an adapter, onTextChanged (or the equivalent thereof) call a function in your adapter which modifies the working dataset (always keep a copy of the original untouched) and notifyDataSetChanged May 01 06:30:03 yes I am using the adapter May 01 06:30:35 I guess I'm confused as step 11... "11. Create a searchable configuration file under res ⇒ xml folder named searchable.xml" May 01 06:30:39 I say if, it SHOULD have an adapter haha May 01 06:30:53 do I need to create searchable if I'm not using a new activity to process the results May 01 06:31:16 Put it this way, follow the instructions, get it COMPLETELY working, and then modify it to do what you want. May 01 06:35:47 http://stackoverflow.com/a/14804818 -> says there is an setOnSearchClickListener? May 01 06:35:53 I don't see that as an option for my searchview? May 01 06:36:10 When you type text in, does your keyboard have a magnifying glass key? May 01 06:36:14 ah sorry May 01 06:36:20 I typoed in eclipse May 01 06:36:25 false alarm ;) May 01 06:36:26 ahh ok May 01 06:36:54 You'll find generally you get a better response if as soon as you hit a problem, you don't paste it in here, but try and figure it out for yourself. May 01 06:37:24 Once you've tried, you've googled, you've tried again, and then googled again, if you still can't find a solution then ask in here :-) May 01 06:37:31 Also, StackOverflow is your bible. May 01 06:38:00 Right, Im off out. Ciao for now! May 01 06:38:09 canvs2321: Well, I'm able to outcomment a particular method in the DiskLruCache, and prevent the bug from occurring, but I don't feel any closer to understanding the cause or solution.. May 01 06:38:12 Right, Im off out. Ciao for now! May 01 06:38:17 that is why I ask quickly :) May 01 06:38:27 because you never know when the person helping you is about to leave May 01 06:38:54 Someone else will be able to help! You should try and teach yourself rather than be given the answer though, otherwise next time round you are none the wiser. May 01 06:50:09 test May 01 07:05:06 Hi all May 01 07:05:23 can some one please help me in a issue with SeLinux ? May 01 07:09:06 anyone ever do expansion file apk downloading? May 01 07:28:57 What is SUGGEST_COLUMN_INTENT_DATA used for in SearchManager ? May 01 07:58:34 if I want to force the soft keyboard NOT to appear when some textview (in my case a search view) gets focus, what should I do? May 01 08:26:12 How do I ask the user to install/update Google Play Services? May 01 08:26:35 shvelo i don't think they have control over that May 01 08:28:16 g00s_, hm ok May 01 08:28:28 so, the maps won't work on Android 2.2 and lower? May 01 08:28:58 i think for froyo you need different play services library, its in the sdk manager May 01 08:29:39 'Google Play Services for Froyo' May 01 08:29:49 never used it ;) May 01 08:30:08 <2.2??? May 01 08:30:48 por que May 01 08:30:49 ? May 01 08:31:18 just curious May 01 08:31:58 I want to integrate maps in my app, I'll just set the minimum SDK to Android 2.3 May 01 08:32:52 you do know that <=2.2 is about 1.X% of users, right? May 01 08:33:18 shvelo, if the google play services check will fail, you'll get an intent returned May 01 08:33:38 if you'll call startActivity on that intent, the dialog to ask user to update play services and proper redirect will popup automatically May 01 08:33:43 also yes, new Maps v2 needs Android 9= May 01 08:33:45 9+ May 01 08:34:37 Mavrik interesting, i thought google just pushed out updates - outside anyone's control May 01 08:34:55 they do May 01 08:35:00 but they're not instant May 01 08:35:00 I have minimum 8, don't remember why. I'll just make it 9 May 01 08:35:18 g00s_, you can also uninstall it May 01 08:35:23 g00s_, you can easily get a device which has at that moment older GPS version than you require May 01 08:35:44 and you just get a "You should update services" intent back from the check that redirects the user to GPS play store update page May 01 08:36:01 hm May 01 08:36:02 all in the doc :) May 01 08:36:55 btw why doesn't Android tools support generating Gradle scripts? May 01 08:37:08 because Gradle support is still effectively alpha. May 01 08:37:18 hence the all 0.x versions everywhere. May 01 08:37:25 I had to write Gradle scripts myself :( May 01 08:37:37 thats good :) May 01 08:37:37 even for AppCompat library May 01 08:37:50 yeah I learned some stuff May 01 08:38:01 no, that's not good May 01 08:38:20 we'll disagree; i think the gradle DSL is the final authority May 01 08:38:26 wasting time with the build system is never good... for some reason toolkit devs rarely realise that :P May 01 08:38:55 any dialogs that allow you to much with things will then of course have to go back and edit the DSL; i'd rather just edit it myself May 01 08:39:02 thats why the DSL is …. nice, relatively speaking May 01 08:39:13 to *muck May 01 08:39:58 if it was up to me, any adjustments would only be done to the DSL; there would be no Project Structure dialog at all May 01 08:40:08 :) May 01 08:41:07 well, that's what most of us are doing anyway May 01 08:41:17 just with something less dumb as gradle :P May 01 08:42:15 ;) May 01 09:13:53 guis to manage build systems are all pretty fail May 01 09:15:33 pfn is up late :O May 01 09:19:21 does tag remove from android ? adt doesn't autocompelete it May 01 09:39:52 how do i set up an android development in Ubuntu 14.04 May 01 09:40:02 the ia32-libs does not exist in 14.04 repo May 01 09:40:15 i believe that is required, so how do i set it up ? May 01 09:54:09 on the related matter, why doesn't Google release a 64-bit version of Android SDK? At least the damn platform tools May 01 10:17:16 shvelo, probably because there's no great need for two versions May 01 10:19:02 noob question, how do I remove GTalk app from my rooted phone May 01 10:19:18 rm -rf /data/data/Gtlak/gtalk.apk ? ? May 01 10:20:38 just disabling it is usually a way saner idea May 01 10:29:33 fair enough, but I was looking for some thrill in my life :-( May 01 10:34:21 Looney, mv /system/app/Talk.apk /sdcard/Talk.apk May 01 10:34:44 hello May 01 10:35:16 should I use HttpURLConnection for consuming rest apis ? May 01 10:35:46 You could use Retrofit with OkHttp May 01 10:35:48 gdrc you could use retrofit May 01 10:36:02 Ok, will at least give me a placebo effect when I won't see Talk.apk in its place :-D May 01 10:36:04 Mmh I don't know it thanks May 01 10:44:59 and retrifit uses HttpURLConnection, yeah :) May 01 10:45:20 hi May 01 10:46:43 i want detect face in camera or image and cut it and use it , how can i do this? is there a lightweight library for this May 01 10:48:35 not really :/ May 01 10:48:48 there's face detection in camera API but only when taking pictures and only on some devices May 01 10:49:00 oh May 01 10:49:13 sorry, there's built-in facedetector, forgot :) May 01 10:49:33 molavy, http://developer.android.com/reference/android/media/FaceDetector.html May 01 10:50:14 Mavrik: Or OkHttp if on the classpath May 01 10:50:43 OkHttp is just one of the implementations of HttpURLConnection interface :) May 01 10:52:14 Mavrik: it work odd , http://android-er.blogspot.com/2010/05/android-facedetector.html May 01 10:52:54 i want whole face in circle not in rectangular May 01 10:53:27 and not center of face May 01 10:54:33 huh May 01 10:54:40 what are you talking about out? May 01 10:54:45 it just gives you face position data. May 01 10:54:49 what "squares"?! May 01 10:55:36 Mavrik: I know, but it's currently *the* implementation of HttpURLConnection May 01 10:56:51 i want face with hairs , in fact i want head, head and face May 01 11:00:17 Mavrik: can i give you what i want ? May 01 11:00:30 I want to make emulator skins from Nexus device PSDs May 01 11:00:43 I'd be rather you didn't. May 01 11:00:57 Also, you're grossly overestimating face detection libraries. May 01 11:01:12 You'll (scary I know!) have to code some of that yourself! May 01 11:01:20 I'll tell you what I want, what I really really want... May 01 11:03:43 thanks for making sure I'm not getting that song out of my head today :P May 01 11:04:07 what I really really *really* want is... May 01 11:04:52 Mavrik: so, how can i code it my self , any glue example code(any any language) or anything else that let me know how to cut head and face from picture, if it is not one day project , how can i let user cut her/his head from picture using a circle , is there any library that let me put a circle in picture and let user select face position and cut and use it May 01 11:11:53 i want to debug a native application, i can set breakpoints, but when a breakpoint is reached and i want to inspect a variable then the expression view of eclipse shows: "Error: Multiple errors reported.\ Failed to execute MI command: -var-create - * image Error message from debugger back end: -var-create: unable to create variable object\ Unable to create variable object" May 01 11:14:18 any idea? May 01 11:15:02 in android documentation said for public static Animation loadAnimation (Context context, int id) ; context Application context used to access resources . i this command: AnimationUtils.loadAnimation(Main.this,R.anim.animation); what does Main.this mean ? it means loadAnimation method find the R.anim.animation from current class ? i can not understand it what is Main.this meaning as a context here May 01 11:15:27 **in this command... May 01 11:31:22 got it! i had NDK_TOOLCHAIN_VERSION set to 4.8. when i switched it to 4.6 or commented it out, it works! May 01 11:33:20 why does Google Play show "offers in-app purchases" on all apps? May 01 11:40:07 it doesn't May 01 11:41:14 mintux, it's any of the available contexts May 01 11:41:26 in your case it's probably the activity May 01 11:41:45 mintux, I STRONGLY suggest you look up on what a context is and which classes act like a context... it's essential to Android development. May 01 11:42:51 Mavrik: i read about context that is give you some information about your environment like resource and ... can you translate this line in simple language: Animation anim = AnimationUtils.loadAnimation(Main.this, R.anim.animation); May 01 11:43:25 I tried Android studio when released. I tried it 3 months ago. I tried now. It just sucks as fuck as always. May 01 11:43:35 from loadAnimation and later May 01 11:44:02 gdrc: really ? it made by perfect company May 01 11:44:19 nah, AS is awesome. May 01 11:44:32 mintux, it loads animation in res/anim/animation.xml May 01 11:44:32 I just create a brand new project May 01 11:44:37 2000000 errors May 01 11:44:40 and it needs a context because it's loading something :) May 01 11:44:43 I didn't edit nothing May 01 11:45:07 Mavrik: so what does Main.this say here ? May 01 11:45:16 mintux, it's a context. May 01 11:45:26 I will try it next year. I'm going to start my new project with eclipse May 01 11:45:27 you have to pass an instance of a class that derives from context May 01 11:45:36 mintux, as I said, that's going to be your activity instance in 90% of cases May 01 11:45:46 they probably have an activity with name of Main May 01 11:45:58 if you don't know what .this does, I suggest you look for a Java book :) May 01 11:46:19 (it gives you access to "this" of certain class when you're inside an anonymous / internal class) May 01 11:49:13 Mavrik: yes it does. but i would like to understand it here (inside activity) . i know main and also i know this it's whole of my code: http://codepad.org/0UdJzCHm im looking for a relation between animation context and Main.this . for example we use Main.this because we wrote our code inside onCreate ? this refer to onCreate that is inside Main? May 01 11:50:09 mintux, ok, so it's like that: "Main" is your Activity class May 01 11:50:18 and Activity (like Service and some other things) is a Context. May 01 11:50:37 mintux, so usually you'd just say AnimationUtils.loadAnimation(this, ...) in any of your activity methods and it would work May 01 11:50:40 mintux, BUT! May 01 11:51:11 in you're case, you're calling loadAnimation inside of a "onClick" method which is inside OnClickListener class May 01 11:51:26 which means, that "this" in the onClick method will mean "OnClickListener" you're creating, not "Main" May 01 11:51:35 Mavrik do you know how to freeze the logcat in AS ? May 01 11:51:42 so you have to be more explicit - you have to say "Main.this" because you mean this of "Main" class :) May 01 11:51:44 mine keeps scrolling, even when i've gone up May 01 11:51:45 g00s, you just scroll up May 01 11:51:54 nah, mine keeps scrolling shit May 01 11:51:55 at least that's how it works in IDEA 13.2 May 01 11:51:57 gaaaaah May 01 11:52:33 oh, you have to click on a line May 01 11:52:56 ah :) May 01 11:53:18 mintux, the OnClickListener is an anoymous inner class in your case, see http://www.beingjavaguys.com/2013/10/what-is-anonymous-class-in-java.html May 01 11:56:06 Mavrik: let me read your answer over and over and analyst it May 01 11:58:26 mintux, maybe it's a little bit clearer if I rewrite your method like this: http://pastebin.com/v1Ldrpfe May 01 12:00:37 Mavrik: finally this in Main.this refer to onCreate ? May 01 12:01:03 or Main itself May 01 12:05:20 Mavrik: just say this in Main.this refer to which method (or Main class itself? ) then i find relation myself May 01 12:07:58 that "this" in the onClick method will mean "OnClickListener" you're creating, not "Main" May 01 12:08:09 so it refers to OnClickListener May 01 12:08:35 mavrik going for karma points :) May 01 12:17:39 Why does Android have OnClick? May 01 12:19:34 Probably because the first devices did not have touch screens. May 01 12:20:39 didn't know that May 01 12:21:57 And FWIW, I connected a bluetooth keyboard to my N5 yesterday and keyboard support on Android is actually pretty decent. May 01 12:22:14 * g00s has BT woes May 01 12:22:55 kjeldahl, unless you need to change the keyboard layout May 01 12:23:59 shvelo: Yeah, I didn't try much stuff. I just got one of the "multi-device" keyboard (Logitech K811) and just had to try it out on a phone as well. May 01 12:25:11 btw Android works really well on my touchscreen laptop, but if Android-x86 guys don't add support for EFI boot and GPT-formatted HDDs I can't install it :( May 01 12:33:24 good morning everyone. is there anyone here that uses Parse and is familiar with their relational data operations? May 01 12:42:04 burmat: are you doing a survey? May 01 12:43:31 thepoosh: no, i’m struggling wiht getting data May 01 12:43:44 well, ask the real question May 01 12:47:28 okay. Data store #1 has a list of “items”. Data store #2 has a list of user “likes”. if a user “likes” an item, a new entry is stored in data store #1. I need to be able to join these two together so that I get every “item” from store #1 and if an entry exists in #2 for a user “like”, that too May 01 12:47:52 if a user “likes” an item, a new entry is stored in data store #2***** May 01 12:48:28 so essentially, i need to get a list of things and whether or not the current user has already “liked” the thing or not. Social network 101 i suppose May 01 12:49:19 the problem is, i’m using Parse and I’m trying to read the docs and it only looks like I can do the reverse with their relational queries. May 01 13:02:11 how can i style the textcolor of an item in the overflow menu? May 01 13:02:29 hey, how can i center the activity label in the action bar? May 01 13:05:22 i have a style with #ff00ff00 but android seems to use "textColorPrimary" May 01 13:12:36 should have used "android:itemTextAppearance" May 01 13:40:13 why my GA4 don't work? I followed this: https://developers.google.com/analytics/devguides/collection/android/v4/campaigns and this: https://developers.google.com/analytics/solutions/testing-play-campaigns and I get only this as result: Thread[GAThread,5,main]: No campaign data found. May 01 13:41:33 speeder: have you seen this: http://stackoverflow.com/a/13226356/1056359 May 01 13:41:34 ? May 01 13:42:13 brb May 01 13:48:09 I got an email from adbuddiz today saying they have a better monetenizing way , is this a spam or? May 01 13:52:29 i get tons of crap like that May 01 13:52:57 i think its because google didn't do a good job of obfuscating the email links somewhere May 01 13:57:20 some apk's that i download using the phones web browser dont have the green android icon, just a gray down arrow, does any one know why that is? May 01 14:07:33 I built a project from the command line and loaded into Eclipse. Gettig error missing manifest but there is a manifest. Tried using Android | Fix project properties. May 01 14:08:06 never mind, build project fixed it May 01 14:22:55 hi May 01 14:24:12 how can i make range gray to black colors in bitmap to transparent, i need it and search alot , but just found change certain color to transparent , but i need gray to black colors range converted to transparent May 01 14:25:31 i found this too, May 01 14:25:32 http://stackoverflow.com/questions/3889667/making-specific-color-in-bitmap-transparent May 01 14:25:49 but its just for white colors , not range gray-black May 01 14:26:25 nothing does that, sorry May 01 14:27:34 (other than actually going through the bitmap and first analyzing the colour to get "gray" out of possibly RGB data and making it transparent by manipulating alpha component) May 01 15:06:19 anyone know a good and easy method to get jar from maven repository? May 01 15:06:55 use maven :D May 01 15:06:56 just download it? May 01 15:07:09 * p_l uses intellij's library manager for that May 01 15:07:11 just download it May 01 15:07:16 it's just a website May 01 15:07:55 I'm missing something guys May 01 15:08:10 use search.maven.org May 01 15:08:29 why do you need to download manually? May 01 15:08:38 I don't want to use gradle May 01 15:09:11 then use maven May 01 15:09:44 sources.jar right? May 01 15:09:48 no May 01 15:10:01 i'd first see if the jar is available from the project website; they may have an "uber" jar May 01 15:10:19 if you grab something from maven website, you may or may not get what you need May 01 15:10:20 I already checked that May 01 15:10:37 https://github.com/gabrielemariotti/cardslib this is the lib May 01 15:11:52 just use gradle May 01 15:11:54 do not resist May 01 15:12:20 i think gdrc is using eclipse May 01 15:12:24 * Mavrik slaps pfn. May 01 15:12:28 ha May 01 15:12:34 * g00s slaps Mavrik May 01 15:12:44 I don't like AS and gradle May 01 15:12:46 well, I don't use gradle, but that's besides the point :p May 01 15:13:39 gdrc what will you do when google just abandons the ant shit ? May 01 15:13:50 afaik at last i/o they said it was being deprecated May 01 15:13:56 O.o May 01 15:14:00 g00s, nothing? May 01 15:14:04 because Ant is just a build system? May 01 15:14:10 it invokes other Android tools? May 01 15:14:36 g00s: I hope they have already fixed android studio :) May 01 15:14:49 gdrc i think its ok :| May 01 15:15:08 I tried Android studio when released. I tried it 3 months ago. I tried now. It just sucks as fuck as always. May 01 15:15:13 Mavrik does the ant stuff work with aar based library projects ? May 01 15:15:32 if you write a script to unpack them right. May 01 15:15:42 fun May 01 15:15:46 the ant stuff does not May 01 15:15:49 also Maven works well with aar project May 01 15:15:55 maven works ok with aar May 01 15:16:05 not to mention it supports bunch of other stuff where Gradle plugin is still incomplete May 01 15:16:13 like NDK packaging, RenderScript and other stuff May 01 15:16:21 the scala builder IIRC works as well May 01 15:16:27 but I don't know about AAR support May 01 15:16:37 the scala builder works, but it's so godawful slow May 01 15:16:58 well Gradle is shitslow as well May 01 15:17:07 so can't be that worse :) May 01 15:17:22 gradle is daemon mode is reasonable, but the scala support is just as shitty May 01 15:19:26 mnjeh May 01 15:20:17 gdrc you can use Buck :D May 01 15:20:31 * pfn wonders if anyone even uses buck outside of fcbk May 01 15:21:01 hmm, they have about 700 *s on github May 01 15:21:05 so I guess a reasonable amount May 01 15:22:25 Quick Start May 01 15:22:25 Note: Buck works only on Mac OS X and Linux. Windows is not supported. May 01 15:22:28 that's pretty shitty, heh May 01 15:23:18 a good start yea :) May 01 15:23:31 pfn: at least it's quick May 01 15:23:36 "Move on, look elsewhere" May 01 15:23:42 why the hell google doesnt update intel haxm? May 01 15:23:58 it has been updated sometime in the last month or so... May 01 15:24:32 Oh god, Intel released the pached exe in dicember and google have the bugged version that make windows 8 bsods May 01 15:26:27 yeah i thought the haxm in sdk manager was very recent May 01 15:26:58 I've been developed for iOS in that last 6 months. The development environment of Apple is more x 10 of the one(s) of android. And Xcode is not very stable.. May 01 15:29:01 a lot of people say that. the verge guy asked Duarte about it in the last interview, he acknowledged also May 01 15:29:11 On Intel website there is Haxm 1.0.8, on Android repo 1.0.6 May 01 15:29:11 "we're working on it" :) May 01 15:29:26 who is Duarte? May 01 15:30:14 oh I got it. I follow him on g+ May 01 15:30:22 matias duarte. he's not high in ranks but decided to say something anyhow May 01 15:30:32 heh May 01 15:33:06 I hope that May 01 15:40:44 im noticing that the latest Android Studio a) doesn't generate new Activities, Fragments, etc. using the wizard and b) keeps changing my build.gradle file. Anyone else noticing this? May 01 15:52:20 i hate it when it changes my gradle file May 01 15:58:33 in 0.5.7, if I start a new project that uses fragments, and tabbed swipeable views, gradle can't find two of the three support libraries it needs, despite SDK manager showing I've downloaded the support repository. May 01 15:59:56 does your local.properties point to the correct SDK? May 01 16:00:05 they also bundle on inside of AS May 01 16:00:33 sdk.dir=/Applications/Android Studio.app/sdk May 01 16:04:24 Hey guys May 01 16:06:28 can I ask my question? May 01 16:07:10 fire away May 01 16:08:58 http://pastebin.com/N6fxkd9L - I have this problem. When I try to change the textview with the id postTime it changes the textview with the ID postTitle. That is so weird. Should I also post my Adapter? May 01 16:10:31 do I have to worry in the slightest about ipv6 implementation in an android app? May 01 16:11:05 Probably should post it. Not seeing anything in there. May 01 16:12:00 http://pastebin.com/LrPCJmKT aleios May 01 16:13:00 e.g. when validating a textpreference that is supposed to contain an IP... should I even bother about IPv6; what percent of people with an android device have working ipv6 connectivity May 01 16:14:10 Trandroid: Some have ipv4 and ipv6 and some are going/gone ipv6 only. May 01 16:15:39 trying to find that damned statistic... May 01 16:16:09 hami: What does the value change to? May 01 16:16:28 aleios not the values. It's the style :D May 01 16:16:41 I made the time italic but the title gets italic e.g. May 01 16:16:48 oh I see May 01 16:16:49 aleios: about ipv6-only networks (on mobile devices), i assume that most if not all will have 4to6 gateways... on the ISP side May 01 16:17:10 but it seems like not too long ago android's ipv6 stack was broken completely May 01 16:17:25 > Android, 4.2 (Jelly Bean), Partial May 01 16:19:17 Yeah that's correct. May 01 16:20:44 if I am wanting to do CHOICE_MODE_SINGLE on my listview, and it uses a custom XML for list items, is there a way to have the background color change when selected without having to implement checkable? May 01 16:21:16 If anyone is familiar with Parse.com cloud code, please help me fetch ~2000 objects from a class. http://stackoverflow.com/q/23410360/3488870 May 01 16:22:08 hami: Oddly enough... I tried everything and can't reproduce the result. May 01 16:22:36 does it work for you? May 01 16:24:22 Yep I thought it was your fontFamily but it doesn't seem to be the case May 01 16:25:56 That's so weird. I tried reinstalling the app on the Emulator May 01 16:25:57 :S May 01 16:26:19 I mean I tried to remove it first May 01 16:26:23 and then install it again :D May 01 16:26:39 You didn't by chance have italics on that textview before did you? May 01 16:27:04 no no.. May 01 16:27:38 hmm... done a clean and rebuild? May 01 16:27:57 I will try a clean now. I was thinking about it before. May 01 16:29:35 that was it :D May 01 16:29:39 a clean fixed it. May 01 16:29:43 thanks May 01 16:30:25 :P May 01 16:30:43 Thought it might have been a sync issue May 01 16:32:27 well glad it's fixed :) now back to shader debugging :'( May 01 16:32:49 what Game engines do you use on Android? May 01 16:33:08 if you make a custom Layout class, can you inflate it with an XML layout? I am trying to create a Layout class that implements Checkable and just changes the background of the item. I don't want to declare everything dynamically though, just overide the checkable functions. Does that make sense? May 01 16:33:51 I just wrap opengl myself usually otherwise a popular one seems to be libgdx May 01 16:34:18 oh yeah... unity too. May 01 16:34:41 I hate the Unity editor :/ especially because it doesn't run on Linux May 01 16:36:00 shvelo: who the hell does use linux. In game industry there is no use for linux editors they say.. May 01 16:36:15 i guess their feedback board is totally useles sin their case: http://feedback.unity3d.com/forums/unity/suggestions?utf8=%E2%9C%93&status=0&category=&view=most_voted May 01 16:36:24 since they anyway don't care about their devs feedback May 01 16:36:33 Application name is not set. Call Builder#setApplicationName. //// Anyone has this message in the log? I cant connect my Android client to the Appengine server. I see that message in the log. May 01 16:37:05 I'm not a game developer, mostly I do web, and web development is impossible on Windows unless you're a masochist May 01 16:37:23 lol May 01 16:38:09 shvelo: you can reaplace web development by nearly anything else :) just had to work 2 hours now on windows, and am pi** liked hell again of this system... May 01 16:38:15 No use for them in the industry because directx is the almighty and windows is the main target. May 01 16:38:46 Gaben is the savior who delivers us from DirectX into OpenGL May 01 16:38:51 OpenGL will one day rule the world again! May 01 16:39:00 Gaben be praised May 01 16:39:21 shvelo, timroes why is web development impossible on windows? May 01 16:39:31 install drivers for usb sticks? never get lazy of this, j ust install it for the very same usb stick for every other usb port on the pc you plug it in... accept FAT32 partitions on usb sticks..? no thanks, you have another encrypted partition on this usb stick, I don't want to see your fat partitions anymore.. May 01 16:39:57 mattblang_, because you can't use command line tools, unless you want to work with vomit-inducing CMD May 01 16:40:06 need to reboot for every update and work around 15 minutes to fix registry on next boot (never got the sense of that) May 01 16:40:42 gotta remove that rootkit that made it past your firewall and anti-virus. May 01 16:40:45 mattblang_: I didn't say web developtment is inpossible on windows, it was shvelo, I just said every productive working is impossible :) [some of the points see above] May 01 16:41:14 aleios, lol :D May 01 16:41:58 lot of Windows software bundles adware crap May 01 16:43:08 shvelo: i just installed something called.. ehm .. web connector or so, which overlays ad to nearly every website .. I only have installed around 2 applications on the windows and nearly never use it.. no idea how this came on there, so I would totally aggree with that May 01 16:44:11 Downloaded filezilla yesterday and sourceforge tried to give me useless crap with it. Had no idea they sold their souls to the devil. May 01 16:45:31 download software... thats so windows :D May 01 16:45:39 sudo apt-get install filezilla :D May 01 16:46:14 sudo apt-get install office -> not found May 01 16:46:28 lol :) May 01 16:46:35 lol May 01 16:47:19 yeah libreoffice is not a good replacement, looking forward to stable version of kingsoft office May 01 16:47:43 (though their alpha version is more stable then most beta software i've seen so far) May 01 16:48:13 I need new monitor (fuck!) May 01 16:49:59 gdrc: http://developer.android.com/tools/help/monitor.html#usage May 01 16:50:30 desktop pc monitor :D May 01 16:50:34 If anyone is familiar with Parse.com cloud code, please help me fetch ~2000 objects from a class. http://stackoverflow.com/q/23410360/3488870 May 01 16:50:39 (yeah, I'm offtopic) May 01 16:50:49 lol you didn't punch it did you? May 01 16:51:07 lol no May 01 16:52:34 how can I stop logcat to change log text all the time in android debug monitor ? It's impossible to read any log May 01 16:52:52 WantToCode: could it be a connection timeout? May 01 16:53:17 acropole: are you filtering by pid? application name? tag? May 01 16:53:27 Other jobs are working fine. May 01 16:54:20 so? May 01 16:55:11 The console.log messages which should come in between loops are also not displayed May 01 16:56:07 thepoosh : it doesn't matter, the log text is changing all the time May 01 16:56:27 and when the app close everything disapear May 01 16:56:31 acropole: if you'll filter it, it wont May 01 16:56:40 it does May 01 17:01:32 thepoosh: this is the screenshot of Job Status http://puu.sh/8uWOi.png and this of log and this of log (even after starting the job nothing shows up) http://puu.sh/8uWP7.png May 01 17:03:14 thepoosh: the other job "job_get_data_for_all_newspapers" is long too, query of 1000 length and then some computation, but it works fine. May 01 17:04:48 WantToCode: I have no XP in Parse May 01 17:05:02 ok thanks anyways. May 01 17:14:01 so I've got this error... May 01 17:14:22 Could not find any version that matches com.android.support:support-v4:0.0.+. May 01 17:14:27 in Android Studio May 01 17:14:48 When I downloaded AS from the site, it was 0.4.6 May 01 17:14:58 when I started it up, it said I should switch to 0.5.7 May 01 17:15:00 so I did May 01 17:15:10 which made my sdk folder within the app disappear May 01 17:15:37 so I downloaded the SDK again, separately, and put it into the place where AS thinks it should be, and then pointed AS to that location May 01 17:15:54 did you download the actual support files? May 01 17:15:59 is there something missing in the standard SDK that is present in the AS SDK? May 01 17:16:09 shekibob_: run android in your console May 01 17:16:10 yeah, jumped into the SDK Manager and downloaded all the extras May 01 17:16:32 did you download the android version you're looking for? May 01 17:16:54 downloaded the latest SDK, I think May 01 17:18:06 all the help I can find on this says to just download the support repo in the sdk manager May 01 17:18:26 but having done that, it seems there must be more to it May 01 17:21:43 looking in /Applications/Android\ Studio/sdk/extras/android/support/, v4, v7, and v13 are all there... May 01 17:23:38 and ../extras/android/m2repository/com/android/support/ has appcompat-v7, gridlayout-v7, support-v4, support-v13 May 01 17:25:51 if, in the build.gradle file, I comment out the lines ` compile 'com.android.support:support-v4:0.0.+'` and compile 'com.android.support:gridlayout-v7:0.0.+'`, the app will build without the errors and run May 01 17:27:48 does any of this make sense to anyone? May 01 17:30:44 So my app was built using c2dm, and it's not working anymore May 01 17:31:06 it's saying that it can't find the action "com.google.android.c2dm.intent.RECEIVE" May 01 17:31:16 I haven't touched that bit of code in years May 01 17:34:47 here's my gcmintentservice https://gist.github.com/KorvinSzanto/ff925e1d5fc61fbd5bba May 01 17:35:14 Create a server-key and configure allowed IPs. What should I set the IP to? my own computers? What should I use if any IP will do? May 01 17:35:30 This is for the appengine backend server key May 01 17:41:21 Accept requests from these server IP addresses May 01 17:41:38 what server IP, mine on appengine? how would I know its IP? May 01 17:42:21 hey guys May 01 17:43:08 I have a rooted Samsung Galaxy S4 (jfltecan) running Cyanogen Mod and I can't seem to get Eclipse to recognize my phone and run my app on it. May 01 17:43:28 install the adb drivers May 01 17:43:31 I have the Google USB Driver installed May 01 17:43:48 actually install it May 01 17:43:53 add hardware -> load the inf May 01 17:44:16 in device manager, my phone shows up at SGH-I337 May 01 17:44:20 as* May 01 17:44:46 is your phone set to debug mode? May 01 17:45:03 developer mode rather May 01 17:45:21 yes May 01 17:45:50 I have Android Debugging checked in the Developer Options menu May 01 17:46:19 does it say that it's connected as debugging when you plug it in? does an unknown device appear in device manager? May 01 17:47:01 pfn, it says it's connected as a mass media device. May 01 17:47:13 then you didn't enable usb debugging May 01 17:47:17 hmmm May 01 17:47:21 connected in camera mode? May 01 17:47:38 I have the camera mode option as well, but it's in Media device mode May 01 17:48:04 I've scrolled through my developer options multiple time. May 01 17:48:06 you need to enable usb debugging May 01 17:48:13 fancyfetus: pfn is right May 01 17:48:32 http://tarunmittal5477272.buzznet.com/user/journal/17358610/enable-usb-debugging-samsung-galaxy/ May 01 17:48:37 the best I could find was: Android debugging - Allow Android debug mode, the adb interface on USB (or on network) May 01 17:48:45 fancyfetus: os? May 01 17:48:50 dunno, ask #cyanogenmod May 01 17:49:01 pfn, alright, I'll try it out :) Thanks guys May 01 17:49:11 gdrc, Windows 7 and Cyanogenmod 11 May 01 17:49:21 fancyfetus: install pda.net May 01 17:51:01 gdrc, the app or the sketchy website? May 01 17:52:02 http://pdanet.co/a/ May 01 17:53:01 what does it do? May 01 17:53:57 It turns your phone into a portable hotspot? May 01 17:54:13 yes that's the main feature May 01 17:54:46 but I suggested you becouse contains most drivers May 01 17:56:06 ahh, I see May 01 17:56:21 I'll do that if the i can't figure it out witht he help of #cyanogenmode May 01 17:56:26 mod* May 01 17:57:06 ;) May 01 17:58:29 damn, they're helping a guy troubleshoot his installation in there. May 01 17:58:43 so very little time for responses to others. May 01 17:59:34 I'm certain that I enabled my usb debugging. May 01 17:59:40 so it must be my drivers. May 01 18:05:53 hello everybody. I posted this in the #android room, but I'll post here too. May 01 18:06:19 I'm looking for someone with experience getting new OEM hardware product certified for the carriers (especially Verizon). May 01 18:06:48 i need someone who does this for a living. May 01 18:07:07 i need someone who does this for a living (this is not a hobby or kickstarter project). May 01 18:07:49 Is there an attirubute I can set to a view in XML to show its contents that are being cut off. I believe in css there was something called overflow or something. May 01 18:10:33 gdrc, thanks a lot! May 01 18:10:41 pdanet got the drivers installed May 01 18:11:03 and i was able to run my hello world app on my device! May 01 18:11:18 happy for that May 01 18:11:26 eghdk like an ellipsis for text? May 01 18:12:50 mattblang_: not exactly. its just a custom view that I need to set the height and width, but when you click it, the view does something but it gets cut off. May 01 18:26:25 I have come to the conclusion that I am incapable of napping. May 01 18:32:36 So lets say you develop a 2-person game using appengine as backend. How would you test this if you only had 1 phone? Is it possible to write a Chrome client? Or just a Python script? May 01 18:34:38 senior: yeah, that's kinda what appengine is good for May 01 18:35:43 sure May 01 18:35:45 it's a web service May 01 18:36:21 as long as you don't do anything mobile-specific, like gcm May 01 18:36:23 senior: it's probably easier to use the emulator though May 01 18:41:52 Does anybody here know Parse.com Cloud Code? Please help me fetch all objects from a class. Been trying for ours now. http://stackoverflow.com/q/23410360/3488870 May 01 18:47:57 I am working on something that uses a cmake build system to build android projects. I want the android ndk to use the clang toolchain - I read that the environment variable "NDK_TOOLCHAIN_VERSION=clang" is sufficient to do that but my build seems to be overriding the environment variable and using gcc 4.8 anyway. May 01 18:48:26 Sorry for the ill-defined question - but any pointers on what I could do to ensure it uses clang? May 01 18:56:40 with android studio, where do I change the version name / id May 01 18:57:04 I changed it in my manifest, but it's not updating in the buildconfig clas May 01 18:57:06 class May 01 18:57:30 when I edit the buildconfig class I get a warning May 01 19:00:43 oooh I see it May 01 19:13:35 i'm trying to make a tri-state play button (play/pause/loading). i made it as a custom view that is defined in xml as a framelayout. this view is put inside an adapter row and an onitemclickedlistener is attached to it. if you touch the row the click event is trigger. if you touch the same row again, it is not. it's not triggered again until another row is clicked. May 01 19:13:52 what am i doing wrong? May 01 19:15:39 can one use the NDK to build COFF format binaries? moreover, can android run such binaries? May 01 19:16:37 no May 01 19:16:48 everyone uses ELF binaries now... May 01 19:17:05 it can probably build them (it is GCC after all) but I doubt any Android kernel has COFF support in May 01 19:18:00 Niya, copy/paste maybe for helping you.. why you don't change the label of that button May 01 19:19:40 the label? May 01 19:20:36 the text button, maybe I don't understand what you want to do May 01 19:21:19 Hello! Can someone please tell me if "-pix_fmt yuv420p" is a safe option when using ffmpeg to make android-friendly x264 videos? The rest of the options I'm using do include setting the video profile to baseline. Thanks for any help! May 01 19:21:26 Mavrik, pfn, thanks May 01 19:23:59 Hello. I am trying to build a simple c code using ndk but I couldn't manage to do it. The problem is, I am using libgcrypt and it says "fatal error: gcrypt.h: No such file or directory". I can compile it for native desktop java applications but failed for ndk so far. Android.mk file is as follows: http://pastebin.com/F6qFUN18. Any help would be appreciated. Thanks May 01 19:24:57 aamederen, NDK uses gcc like compiling on desktop. May 01 19:25:13 so just like on desktop you'll have to pass it include path for .h and library path for linking May 01 19:25:32 and, of course, you'll have to build libgcrypt for all required architectures on Android you want to support. May 01 19:25:41 When using Android Studio, if I create a new Fragment -- it should create both a class and a layout, correct? May 01 19:25:50 ^^0.5.7 May 01 19:25:59 How do I reopen a project creaated with android studio? I tried just opening the project's root dir, but it didn't pull in my /app dir May 01 19:26:23 Mavrik, so should I compile libgcrypt for arm for example? May 01 19:26:38 which ARM? May 01 19:26:42 android supports 4 architectures. May 01 19:27:11 armeabi - ARMv5TE May 01 19:27:17 armeabi (that's ARMv5), armeabi-v7a (that's ARMv7+), x86 and mips May 01 19:27:31 is it possible to support them all? May 01 19:27:35 yes. May 01 19:27:43 aamederen, you'll have to compile libgcrypt if you want to use it May 01 19:27:52 how else will the crypto code work on ARM cpu :) May 01 19:28:08 I'm not sure if this is a bug or not May 01 19:28:10 Mavrik, I thought ndk would handle it for me May 01 19:28:42 NDK is just a make script May 01 19:29:08 it's not gonna magically detect you link against a non-compiled external library, run it's own custom build system (magically) and then properly figure out what to link May 01 19:29:33 What about putting the source code to the jni folder? May 01 19:29:50 what would that do? May 01 19:30:23 I mean, if I put the source code for gcrypt, would it compile them all? May 01 19:31:04 again. May 01 19:31:12 you're presuming some magic from NDK which is just a makefile format May 01 19:31:12 hello. Does anyone know a method to turn off the phone screen using the proximity sensor without using the powermanager partial wake lock? May 01 19:31:22 it'll compile what you tell it to compile in Android.mk May 01 19:31:33 if you'll translate libgrypts automake scripts to Android.mk scripts then it will May 01 19:31:39 otherwise it won't. May 01 19:32:01 oh ok. May 01 19:32:32 If I compile gcrypt for the 4 archs, then how can I add them to ndk? May 01 19:34:06 *sigh* May 01 19:40:10 hello. Does anyone know a method to turn off the phone screen using the proximity sensor without using the powermanager partial wake lock? May 01 19:44:37 Mavrik, isn't it possible to tell in Android.mk to include a compiled library? May 01 19:44:52 it is. check the docs. May 01 19:44:59 oh ok thanks May 01 20:05:11 For anyone who's interested, there's a new doc up on s.android.com, describing android's graphics architecture in detail: http://source.android.com/devices/graphics/architecture.html May 01 20:11:03 thx May 01 20:24:03 is there any trigger which is called before on boot completed? how about systemapps? do they have higher priority then the on boot completed event? May 01 20:25:20 Anyone creating any bitcoin apps (or planning to)? May 01 20:26:20 misterli, there's a boot completed event. May 01 20:26:23 er. May 01 20:26:24 intent. May 01 20:26:25 >D May 01 20:26:41 yes, sure. This is why im asking. I know ACTION_BOOT_COMPLETED, but are there any triggers/events which get called BEFORE those? May 01 20:27:02 not that I'd know of May 01 20:27:17 how about ACTION_SCREEN_ON? Is this triggered "_BEFORE_" May 01 20:28:26 afaik ACTION_BOOT_COMPLETED is triggered when all systemapps are "started" and then android will start registering all apps who've those receivers registered, isnt it? May 01 21:06:48 hey fellas, anybody know a more convenient way of looking at sqlite databases created in an app than just adb pull -> sqlite? May 01 21:07:08 (i mostly don't want to do that because sqlite complains that the database is encrypted) May 01 21:09:44 I can't recall if the sqlite3 binary is included on a "release" build by default or not. If so, you can do something like: May 01 21:09:45 adb shell run-as com.your.package.name sqlite3 May 01 21:10:03 assuming your app is debuggable May 01 21:10:25 actually, you probably want to do adb shell May 01 21:10:31 and then the whole run-as thing from within adb shell May 01 21:10:42 iirc, running a command directly from adb shell doesn't hook up stdin May 01 21:12:43 JesusFreke, that works! May 01 21:12:50 JesusFreke, thanks very much, I never thought to do that May 01 21:12:53 :) May 01 21:13:00 side note, i have root access so I didn't need to mess with any run-as hullabaloo May 01 21:13:10 ah, yeah. that makes it a bit easier :) May 01 21:15:00 hi May 01 21:15:10 I May 01 21:15:15 want to program!!! May 01 21:18:53 i want a million dollars!! May 01 21:19:10 I want to not be frustrated at fragments May 01 21:20:00 huh May 01 21:20:02 I want peace on earth, and goodwill towards man. May 01 21:20:03 what? May 01 21:20:35 gregor2, http://developer.android.com is a fantastic place to start. if you have specific questions, people here are really helpful with those May 01 21:20:49 but why are the apps for andrtoid programed in java and not c++? May 01 21:21:03 c++ is faster i think right> May 01 21:21:03 (i want to jump on the bandwagon too, but I just got helped out so I feel like i have to pay something forward) May 01 21:21:04 ? May 01 21:21:05 java drew the short straw May 01 21:21:20 gregor2, java is what the creators decided on. May 01 21:21:35 bankai_au lol! May 01 21:21:39 but why alwaaays java? May 01 21:21:47 gregor2, and there is JIT as far as i know, so the performance difference is mitigated at least somewhat May 01 21:21:55 gregor2, java is easy May 01 21:22:07 oh you can also programm apps in c++ right? May 01 21:22:14 is that a good idea? May 01 21:22:22 i woudln't May 01 21:22:25 If you want support in here, no. May 01 21:22:38 not unless you're doing something like a game, where you're drawing the entire ui yourself May 01 21:23:01 in which case you'd probably use libgdx May 01 21:23:05 if i programm in c++? is the language running faster? May 01 21:23:22 could be... could be a hell of a lot worse too May 01 21:23:51 gregor2: Faster than your non-existing Java app? May 01 21:24:16 Your hypothetical C++ code might be faster than nonexistant Java code. May 01 21:24:32 gregor2: if there's some performance critical piece of code, you can write that in c/c++ and then use JNI to call it from java May 01 21:24:44 And there hardly ever is for normal apps. May 01 21:25:04 yeah. typically for things like an FFT, or video/audio decoding/encoding, etc. May 01 21:25:12 yah May 01 21:26:30 but what is the disadvantage of using c++ on those apps? May 01 21:26:40 you have to call the c++ code with java? May 01 21:26:45 yes. May 01 21:26:45 community support May 01 21:26:58 Community support and most great libraries are Java libraries. May 01 21:27:07 ah May 01 21:27:19 java is more popular than c++? May 01 21:27:35 On Android, yes. By far. May 01 21:28:19 i want to start programming May 01 21:28:28 i never programmed bevor! May 01 21:28:32 You have no prior experience with programming? May 01 21:28:33 Oh May 01 21:28:38 no May 01 21:28:49 but i want to lern about it! May 01 21:30:56 if i have time i will start trying that! May 01 21:31:04 programming android apps! May 01 21:31:22 i think i will ask a lot in this channel! May 01 21:33:01 gregor2, a little bit of advice. programming is really really hard. REALLY hard. so you really should have taken "java is easier" as the end of the discussion. May 01 21:33:26 gregor2, because if you've never programmed before, then you really need to start small, start with easy things. forget performance, get something to work. then talk about making it fast. May 01 21:33:44 oh May 01 21:33:57 you mean programming a pc app first? May 01 21:34:08 no, no, android is as good a place as any to start out if you ask me. May 01 21:34:33 i just mean you're sitting there going "who cares if java is easier, C++ is faster", but we're telling you it isn't faster by enough to matter, and makes things a lot easier. May 01 21:35:18 oh May 01 21:36:19 i first have to find out the basics of programming May 01 21:37:19 what is source code? what happens if it got compiled? Whats the difference between java and c++? what are librarys? May 01 21:37:23 stuff like that May 01 21:37:42 figuring out answers to those would be a good start, yes May 01 21:38:18 oh and how can i acess the different sensores cameras and the touchscreen of a android phone! May 01 21:39:23 there is one thing i dont understant May 01 21:39:27 The page on layouts says "Even though a view can define a padding, it does not provide any support for margins". This seems wrong. May 01 21:39:30 gregor2, the level of help it seems like you are looking for is probably beyond the scope of this channel, but if you can find an IRC channel, you should be proficient enough to find android development tutorials on youtube or google. May 01 21:39:34 You can give any view a layout_margin. May 01 21:39:41 java is running on something like a virtual machine right? May 01 21:39:45 on a emulator? May 01 21:39:51 gregor2, http://developer.android.com has all the software tools you'll need to get started May 01 21:41:04 that has the reason that java can run on any os which has a java runtime environment right? May 01 21:41:47 http://developer.android.com/guide/topics/ui/declaring-layout.html#SizePaddingMargins says "Even though a view can define a padding, it does not provide any support for margins." May 01 21:41:55 Why does it say that? Seems clearly wrong. May 01 21:43:31 but you can compile c++ code for windows and linux? May 01 21:43:45 so it also can run on erery os! May 01 21:44:37 so the emulator for java makes it esier to programm for multiple plattforms and oses? May 01 21:44:38 gregor2, java, the programming language, typically compiles into code that can be run on universal java virtual machines, you are correct May 01 21:45:08 gregor2, when you write an application for android, you use the java language, but it gets compiled into code that cannot be run on regular java virtual machines, instead it must be run on a special one that is only available for android devices May 01 21:45:24 oh May 01 21:45:50 It's generally easier to compile from bytecode to machine code than from C++ (or the like) to machine code. May 01 21:46:16 that breakes the sense of the virtual machine! May 01 21:46:18 huh? May 01 21:46:28 TacticalJoke, margins are handled by layout May 01 21:46:34 padding is handled by view May 01 21:46:45 and no, compilers to native code are "easier" May 01 21:46:49 it's just VMs have useful features May 01 21:46:58 and on java it is easyer to compile for multiple platforms? May 01 21:47:21 pfn: Compiling from bytecode to machine code is generally way less complex than compiling source code of an HLL to machine code. May 01 21:47:40 what is bytecode? May 01 21:47:53 whats the difference between source and bytecode? May 01 21:48:01 TacticalJoke, sure, you take out the entire language aspect of it May 01 21:48:08 gregor2, these are things you really should be reading about through a google or wikipedia search May 01 21:48:10 but compiling to bytecode is just as complex May 01 21:48:22 gregor2: Android apps are compiled from Java source code to Dalvik bytecode. Then, on the device, compiling from Dalvik bytecode to machine code. May 01 21:48:41 compiled* May 01 21:49:04 they are not compiled on-device May 01 21:49:09 ART does something similar, but not quite May 01 21:49:21 They are JITted before ART. May 01 21:49:37 JITting is compiling. May 01 21:49:38 The only thing I've heard about ART is that it compiles the entire app to machine code and then I guess caches it May 01 21:49:47 I think ART compiles at install time. May 01 21:49:53 Rather than at run time (as Dalvik does). May 01 21:50:03 and if it is compiled to machine code you cant change the programm? May 01 21:50:11 I suspect that's a gross oversimplification or just wrong though. May 01 21:50:12 gregor2: lolwt May 01 21:50:14 wut* May 01 21:50:24 I wonder if there'll be a talk on ART implementation details and whatnot at the next I/O May 01 21:50:25 Nilium: What is? May 01 21:50:29 Oh. May 01 21:50:35 so you cant make changes to the programm annymore if you only have machinecode right? May 01 21:50:38 I dunno. It makes sense to compile at install time. May 01 21:50:48 gregor2: It's not impossible, but it's difficult. May 01 21:50:57 gregor2: Why the weird questions? :) May 01 21:51:49 so would it be possible to find out the source code of microsoft windows only from the machine code? May 01 21:51:52 TacticalJoke: I meant my explanation of what ART was. I don't know what its actual purpose or goals were or what it even does differently, so I assumed my explanation was wrong or missing important details. May 01 21:51:53 haha May 01 21:52:02 gregor2: Machine code is so hard to read. May 01 21:52:11 i asked that question because of open source! May 01 21:52:30 You could technically decompile Windows or anything else but that doesn't mean you'd get usable decompiled results. May 01 21:52:38 linux is open source and everyone can write its own distribution! May 01 21:52:38 Well, disassemble, I should say. May 01 21:52:59 There's no guarantee the disassembly will be useful. May 01 21:53:04 and windows is closed and no one can reprogramm it! May 01 21:53:09 Who cares? May 01 21:53:33 How many people do you think want to go in and screw with a kernel? The number's actually not that high. May 01 21:53:50 gregor2: People sometimes edit games to get around cheat protection and stuff. May 01 21:53:54 And they're editing the machine code. May 01 21:54:07 But it's so hard. May 01 21:54:18 very complicated? May 01 21:54:23 Extremely. May 01 21:54:27 lol May 01 21:54:30 And time-consuming. May 01 21:54:44 And mostly pointless. May 01 21:55:05 Humans are dumb. Computers are geniuses. May 01 21:55:08 That's what it boils down to. May 01 21:55:21 no May 01 21:55:31 computers where build by humans! May 01 21:55:43 They're still cleverer than us in many ways. May 01 21:55:44 Actually, no, computers are dumb, but they follow orders fairly well. May 01 21:55:44 And fairly quickly. Much more quickly than a human would, anyway. May 01 21:55:49 Compare a calculator against a mathematical prodigy. May 01 21:55:53 by many, many humans, but they where build from them! May 01 21:55:56 The calculator will destroy the human at arithmetic and such. May 01 21:56:13 gregor2: It doesn't follow that a creation is less intelligent. May 01 21:56:18 Either way, I think this whole topic is kind of meaningless. May 01 21:56:20 I mean "it doesn't hold". May 01 21:56:44 yes a computer can calculate faster thats right! May 01 21:56:48 gregor2: Could you ever beat a calculator at an arithmetic challenge? May 01 21:56:58 no\ May 01 21:57:04 Yes, and stuff like faster calculation is what we label "more intelligent". May 01 21:57:25 Actually, you could beat a calculator at an arithmetic challenge if the result went outside the range it can represent. May 01 21:57:57 Another example is chess. May 01 21:58:03 or maybe a brain of human can but the awareness isnt able to acess that abilaty! May 01 21:58:03 Chess engines are now better than any human player. May 01 21:58:10 Nilium: ... depends what calculator you're pitted against ;P May 01 21:58:11 The best player in the world cannot stand up against a good chess engine. May 01 21:58:29 I don't know what the original topic was anymore. May 01 21:59:14 Computers do things faster and more accurately than humans do. They just need to be introduced to the domain. May 01 21:59:17 Nilium: Same here. haha May 01 21:59:37 TacticalJoke, i just noticed you came in after he said this, but he's never written a line of code before May 01 21:59:44 K. lol May 01 22:00:05 p_l: "depends on …" can be said for almost anything, so eh. May 01 22:00:08 Is gregor2 one of those rooter people I so loathe? May 01 22:00:18 'Cause I do loathe me a root fanatic. May 01 22:00:23 Maybe gregor2 is just interested in software. :D May 01 22:00:31 computers are dumb, they just follow instructions quickly May 01 22:00:35 yes i am! May 01 22:00:40 Nilium, I am not sure about that. but he is definitely not a programmer May 01 22:00:41 I should start calling them jailbreakers again just 'cause it annoys them.. May 01 22:00:43 pfn: It's the same with the human brain. May 01 22:00:50 what do you mean by rooter people? May 01 22:00:53 The human brain is just following instructions programmed by natural selection. May 01 22:01:04 it's a bit more complex than that May 01 22:01:08 no i want to learn programming May 01 22:01:17 I mean people who think rooting their Android phone is cool and we should support them breaking crap May 01 22:01:20 We are robots with sentience. May 01 22:01:28 Our brains are basically computers. May 01 22:01:44 Must smack root people for their inane expectation of support May 01 22:01:46 a brain of a human is based on hormones May 01 22:01:50 and neurotransmitter May 01 22:01:55 gregor2, i really think you should be looking these things up on the internet. many of these questions are not things we can explain to you in depth May 01 22:02:05 Yeah, but the basics are the same: input --> processing --> output. May 01 22:02:18 lol May 01 22:02:21 A lot of them are also probably entirely philosophical and subjective May 01 22:02:21 * p_l goes off, because two years of studying brain construction makes him too angry seeing such gross oversimplifications May 01 22:02:22 right! May 01 22:02:44 p_l: I've dabbled with neuroscience a little. May 01 22:02:48 I don't see any issues with what I'm saying. May 01 22:03:08 I'm drawing an analogy between brains and computers on the topic of "being programmed to follow instructions". May 01 22:03:09 for axample if we are afraid adrenaline is getting distributed May 01 22:03:30 p_l: This is how I feel when people talk about how easy writing a book is ("just sit down and write, how hard could it be"). May 01 22:03:41 TacticalJoke: you had less errors, but it went to the level of vagueness that started to become meaningless May 01 22:03:46 TacticalJoke: at least to me :) May 01 22:04:05 and some organs and the brain is reacting to them! May 01 22:04:10 On the other hand, I still feel obligated to hate people who praise Fifty Shades of Grey... May 01 22:04:29 gregor2: It's just a system state. May 01 22:04:34 gregor2: Computers do similar things all the time. May 01 22:04:42 A computer system could go into "panic mode" and shut down services, for example. May 01 22:04:48 Nilium: o/ May 01 22:05:13 but i think a computer is not very similar with a brain May 01 22:05:27 cos a brain has feelings May 01 22:05:33 it is comparable but very different May 01 22:05:36 it's a matter of architecture May 01 22:05:47 feelings are hormones May 01 22:05:52 that has a pc not! May 01 22:06:01 I'd say that the brain *produces* sensations when given particular input. May 01 22:06:12 then computers are not so similar with brains May 01 22:06:12 What is love? Baby, don't hurt me… May 01 22:06:23 The topic is intelligence, though, not consciousness. May 01 22:06:47 Can we talk about virtual machine implementations instead of the idea of intelligence? May 01 22:06:54 I feel like that's more interesting. May 01 22:07:16 Also probably less likely to give p_l an aneurysm. May 01 22:07:49 the brain consistently releases a certain set of chemicals, including the neurotransmitter hormones, dopamine, norepinephrine, and serotonin, the same compounds released by amphetamine, stimulating the brain's pleasure center and leading to side effects such as increased heart rate, loss of appetite and sleep, and an intense feeling of excitement May 01 22:07:53 that is loe May 01 22:07:55 love May 01 22:08:25 I think gregor2 missed the joke May 01 22:08:30 lol] May 01 22:09:07 hormones can influence our thoughts! May 01 22:11:31 a pc is always calculating cold numbers May 01 22:11:56 and will always get the same result! May 01 22:13:28 if we think about something our brain always gets more arguments for that direction our hormones are directing us! May 01 22:13:30 gregor2: Depends on the system. May 01 22:13:46 gregor2: Consider a system that picks an item of text from a file at random and displays it on the screen. May 01 22:14:11 "At random" could mean anything. It could involve complex physics. May 01 22:14:26 for example if we see a pice of chokolate and think about if we will eat it or not we will our brain will automatically search for arguments to eat it! May 01 22:15:37 what do I use as ORM? I use ORMLite but I've heard it's inefficient as it uses reflections May 01 22:15:38 but it would be interresting rebuilding a organismus with programming! May 01 22:15:46 I don't like chocolate May 01 22:16:07 call me an alien or something but I don't like it May 01 22:16:11 Stack machine vs register machine. Debate. Have fun. May 01 22:16:12 You may also discuss other machines. May 01 22:16:23 Note: picking stack machine makes you inherently wrong May 01 22:16:44 than take the same example with a little heroine! May 01 22:17:17 Heroin or heroine? May 01 22:17:18 A little heroine is probably admirable, a little heroin is probably a sign you've got a problem. May 01 22:17:28 everyone likes that because it replaces opium, the neurotransmitter of satisfaction May 01 22:17:45 anyone? May 01 22:17:53 i mean heroin May 01 22:17:57 shvelo: Did you have a neuroscience question? May 01 22:18:17 TacticalJoke, yes, I want to fire all my neurons at once May 01 22:18:21 :D May 01 22:18:23 Sounds fun. May 01 22:18:24 then smoke weed May 01 22:18:35 or weed May 01 22:18:45 that are psychoactive matirials May 01 22:18:45 gregor2: So you wanna become a programmer, huh? May 01 22:18:51 yes May 01 22:18:58 why May 01 22:19:05 me too May 01 22:19:13 Just wondering. May 01 22:19:19 you also never programmed befor? May 01 22:19:26 What motivates you to try programming? (Don't say "hormones".) May 01 22:19:32 no May 01 22:19:35 "So you want to become a programmer?" "Yes." "So why the hell are you hand-waving neuroscience crap on IRC instead of programming?" May 01 22:19:38 only for fun! May 01 22:19:56 i want to programm later May 01 22:20:02 maybe tomorrow May 01 22:20:10 I feel so good when I compile it and it works May 01 22:20:28 Programming is hard. Takes years to get good. May 01 22:20:35 Though could take days/weeks to build *something*, I guess. May 01 22:21:01 but i even want to try it May 01 22:21:23 maybe i will never get something to run but i dont think so! May 01 22:21:37 Oh, you will. May 01 22:21:39 just watch videos and you'll learn a lot May 01 22:22:10 but how about learning two languages May 01 22:22:20 can you learn c++ and java? May 01 22:22:22 i'm learning java n objective c May 01 22:22:53 Learn one language. May 01 22:22:55 but dont you confusing them? May 01 22:23:00 no May 01 22:23:27 unless im drunk, no May 01 22:23:30 i will learn one first May 01 22:23:45 gregor2, can't stress this enough. if you are interested in developing for android, learn java, end of discussion. May 01 22:23:48 not two at once because i think i will get confused May 01 22:23:59 it's ok May 01 22:24:06 gregor2, if a need arises for learning C++ it will be easier to pick that up once you know java. but until then, learn java, end of discussion May 01 22:24:25 Java is a good first language. Powerful enough and simple enough. May 01 22:24:32 I've always thought that C++ was a horrendous first language. May 01 22:24:38 im more interrested in c++ because i think its running directly at the cpu core and java is running on vm May 01 22:24:38 (It's also a horrendous language.) May 01 22:24:49 my first lang was LUA May 01 22:24:51 I would not recommend C++. Trust me. May 01 22:24:53 C++ has changed a lot over the years May 01 22:25:10 i wouldn't recommend fooling with the template metaprogramming as a beginner May 01 22:25:29 gregor2: Learn Java. May 01 22:25:33 gregor2, don't worry about vm's and cpu cores May 01 22:26:17 gregor2, those problems have been solved. there are more interesting problems to solve. "how do i get this portable super computer with a touch screen to give me exercise advice", for example. May 01 22:26:25 we have 70-80 years of life, most of us May 01 22:26:31 gregor2: You have an Android phone, right? May 01 22:26:36 we can either choose to figure out the exercise advice problem May 01 22:26:51 or figure out whether vm's or cpu cores are better May 01 22:26:52 "those problems have been solved" May 01 22:26:54 usually, not both May 01 22:26:56 I take issue with what you say May 01 22:27:11 Nilium, it's not exactly like nuanced explanations are getting through here, so i'm oversimplifying May 01 22:27:25 in any case, if you want to program for Android, you'll have a steep curve ahead if you're not a programmer and are starting with Java, but you'll have a steeper curve with any other programming language. May 01 22:27:41 there are 'app makers' that may be easier to make simple stuff with, though May 01 22:27:51 Yes. C++ would be significantly more difficult. May 01 22:27:55 You shouldn't even bother mentioning things to gregor2 because he's so easily distracted May 01 22:28:01 so, either use one of those, or learn Java w/ Android's flavor May 01 22:28:02 I find C++ easier than Java. May 01 22:28:12 C++ is enormously more complicated than Java. May 01 22:28:16 do not learn C++ for Android if you have never programmed. you will be wasting your time. May 01 22:28:29 However, I am also insane. May 01 22:28:33 lol May 01 22:28:35 Nilium, i agree, i am beginning to think that not only is this guy not serious, he's actually trolling us May 01 22:28:36 Maybe you're used to that language. May 01 22:28:53 i do like to give people the benefit of the doubt, but there's a limit May 01 22:28:59 C++ is fine for non-Android, but for Android, you really need Java at some point if you're going to make anything in a reasonable amount of time. May 01 22:29:03 I'm used to a lot of languages. May 01 22:29:03 Except VB and PHP. May 01 22:29:03 I'm actually incapable of properly learning either of those for some reason. May 01 22:29:17 VB is a mess - there's your reason May 01 22:29:45 PHP seems like an absolute mess. May 01 22:29:51 I've never used it either, but I have read about it. May 01 22:30:03 PHP's pretty poorly designed, though the new management is fixing that to some extent May 01 22:30:10 The sheer number of programming languages I've used (not proficient in, just used for various projects) has taught me one thing: the more layers there are, the more things I have to worry about. So, C++ suits me pretty well because there's very few layers to consider. May 01 22:30:26 VB, i don't remember it being that bad, but that was back with like 1.0 or 2.0 or something May 01 22:30:43 and i didn't use it, i just messed with it once :P May 01 22:30:49 C is nice too, but I think C++ has the right number of tradeoffs. May 01 22:30:57 Nilium: You seem to be conflating the programming language and the API. May 01 22:31:18 I tried VB 5.0 once and then VB.NET much later, but each time I just found it nearly impossible to grasp May 01 22:31:28 TacticalJoke: No, I'm not talking about APIs May 01 22:31:30 idk, pretty easy May 01 22:31:41 VB.NET is C# in a wheelchair. May 01 22:31:54 Why anyone would use VB.NET... I don't even. May 01 22:31:56 When I say layers, I mean things like the VM, an interpreter, a garbage collector, etc. -- things that're unavoidable in language choice. May 01 22:32:23 You get to choose APIs (usually). May 01 22:32:26 I see. May 01 22:32:28 TacticalJoke, I used to work at a firm with blokes who learned all their software development chops in the 80s May 01 22:32:34 TacticalJoke, they LOVED vb.net May 01 22:32:38 lol May 01 22:32:49 I was so happy to learn C# when it came out. It was so incredibly neat. May 01 22:32:54 by which i don't mean that they stopped programming when the 90s hit May 01 22:32:55 thankfully i work mostly with stuff that has no garbage collecting, nor need for it :P May 01 22:32:57 I like BASIC languages, by the way, I just don't like VB. May 01 22:32:59 The idea of someone holding onto their VBness was surprising to me. May 01 22:33:08 i just mean, they stopped learning. literally, and proudly May 01 22:33:10 Lua's very much a BASIC-ish language, FreeBasic is nice, BlitzBasic is nice, etc. May 01 22:33:28 why are there so many May 01 22:33:29 ? May 01 22:33:30 But I just can't get VB May 01 22:33:38 So many what? May 01 22:33:41 languages May 01 22:33:43 gregor2: Different goals, etc. May 01 22:33:44 languages? May 01 22:33:46 Different people. May 01 22:34:04 People design different languages as different approaches to different tasks and so on. May 01 22:34:34 gregor2, sometimes it's just politics. C# for example, has very similar syntax to Java, but uses a different set of libraries. a cynic would say Microsoft made it that way so people would be locked into Microsoft software May 01 22:34:35 TacticalJoke: the .NET runtime is crappy as hell, and .NET IL is waaaay overdesigned. C# alone has a number of ridiculous design issues (delegating events or something, IIRC; stuff like { int foo; } { int foo; } being invalid code) May 01 22:34:56 TacticalJoke: would rather work with Java any day May 01 22:35:14 (note: most of my code is C, followed by C++) May 01 22:35:42 due to different tasks and all, not because VM languages suck ;) May 01 22:35:43 I'd like to use C# but that's based on my experience using C# 2.0 May 01 22:35:50 I don't know what's changed in the meantime. May 01 22:36:08 ok by i will go now!! May 01 22:36:23 by!! good luck May 01 22:36:34 thanks by! May 01 22:36:53 Nilium: none of the stuff I think sucks about C# / .NET have changed :P May 01 22:37:22 I don't see much reason to prefer or hate VM languages. Any language could have more than one target -- Java could be compiled directly to machine code if you really wanted to do that. May 01 22:38:22 Nilium: there's some differences that essentially mean C code written for speed will always be faster than Java code written for speed May 01 22:38:37 Nilium: but that's a pointless discussion May 01 22:38:41 that was mean of me, i have to admit May 01 22:38:43 WinForms was pretty awful. May 01 22:38:48 Especially that flicker. Gawd. May 01 22:38:52 And dat lack of features doe. May 01 22:39:00 you choose a programming language because it does what you need it to do easily, and you can maintain it May 01 22:39:32 Eh, speed mostly comes down to having it where you need it. May 01 22:39:35 mostly that means using a language somebody else chose for you May 01 22:40:07 In other words, you have to pick your fights. May 01 22:40:26 Nilium: note i did not mention speed in how you choose the language May 01 22:41:16 I don't really attribute speed to a language except in the time it takes to implement a thing. May 01 22:42:08 I'm actually doing a project in Python, on a Cortex-A8 (not a phone) at the moment, because it fits the purpose :P May 01 22:44:06 * Nilium shrugs May 01 22:44:34 Python's not my cup of tea. Significant whitespace rubs me the wrong way. May 01 22:45:07 I'd say cup of coffee but I haven't been able to tell different types of coffee apart yet, except for folgers. I can tell folgers apart because it tastes worse. May 01 22:45:51 I love Python's syntax! :) May 01 22:45:52 So simple. May 01 22:46:19 It's nice, I just need explicit markers for scope or my brain explodes. May 01 22:49:18 do you guys prefer android studio, netbeans or something else for development? May 01 22:49:44 IJ all the way May 01 22:49:47 I use IntelliJ. May 01 22:52:09 thats IDEA right? May 01 22:52:28 Yep. May 01 22:52:36 I use Eclipse. I like it May 01 22:52:37 . May 01 22:52:57 * Nilium disregards everything TacticalJoke has ever said and will say May 01 22:53:37 haha May 01 22:53:49 I'll move to Android Studio once they "support" JVM unit tests. May 01 22:53:58 Define "support" however you like. :D May 01 22:54:24 i had an issue with the emulator in android studio yesterday and am looking for something else May 01 22:55:07 Google still recommends Eclipse. May 01 22:55:35 My understanding of Android unit testing is that it's hell on earth and you might as well just throw your genitals in a vise and you'd get the same result. May 01 22:55:49 Yes. May 01 22:55:54 All I do is JVM tests. May 01 22:56:00 hows the support community for eclipse? May 01 22:56:18 they hate it too May 01 22:57:12 Everyone who likes Eclipse actually hates Eclipse but hasn't switched to anything else because they'd have to learn to do something different and they hate that too. May 01 22:57:28 so much hate .... May 01 22:57:45 Basically Eclipse is a swirling mass of hatred for itself and developers. May 01 22:57:49 This is not at all hyperbolic or sarcastic. May 01 22:58:15 Let me know when Android Studio building time is no longer twice that of Eclipse May 01 22:58:23 For the realistic option: pick whatever you can work well in. May 01 22:58:34 then I'll say "oh that's interesting" and continue to work with what I know May 01 22:58:49 Nobody cares what you're using because you're using it, not them. May 01 22:59:14 Maybe I have Stockholm Syndrome. May 01 22:59:22 I mainly use Sublime Text, IntelliJ, and a shell because I don't do anything build-related in an editor. May 01 22:59:23 Note that I come from Visual Studio. May 01 22:59:28 I miss Visual Studio. May 01 22:59:30 Eclipse's refactoring is a zillion times better. May 01 22:59:31 God I love its debugger. May 01 22:59:49 I didn't. May 01 23:00:02 I hate everything else about VS but the debugger (at least in Visual C++) was my favorite thing. May 01 23:00:07 It usually failed for any real debugging, and windbg had to be used instead. May 01 23:00:19 android studios build time is atrocious as well May 01 23:00:29 Not sure if it's changed since then. May 01 23:00:29 "then" meaning when I last used it over 6-7 years ago. May 01 23:00:46 Gradle is so slow. May 01 23:01:07 I use sbt. May 01 23:01:16 Works for me. May 01 23:03:44 im gonna try out IJ and eclipse now. bbl May 01 23:03:46 thanks May 01 23:21:33 bricked my nexus 5, hell yea May 01 23:21:42 Dough. May 01 23:21:47 doughnuts ? May 01 23:22:21 Lesson learned: doughnut root your phone. May 01 23:22:41 it was rooted, I just wanted to flash stock fw May 01 23:22:51 TacticalJoke: oh mate ... such a dad joke. love it! May 01 23:22:59 :D May 01 23:23:45 so I'll try with 4.4 image May 01 23:25:06 idk why it's stuck at bootanimation May 01 23:30:30 ... May 01 23:30:32 that's not bricking May 01 23:30:35 >_> May 01 23:30:52 soft brick then? May 01 23:30:57 also, connect to computer and run logcat, you'll find out why it bootlops May 01 23:30:58 archive does not contain 'boot.sig' May 01 23:30:58 archive does not contain 'recovery.sig' May 01 23:30:58 archive does not contain 'system.sig' May 01 23:31:11 wtf May 01 23:31:38 Allavaz: bootanimation is a program that starts once linux itself is already loaded. May 01 23:31:47 so if you get any animation, it's not bricked May 01 23:31:54 okay May 01 23:32:07 and usually logcat runs as well May 01 23:33:03 archive does not contain 'boot.sig' May 01 23:33:05 what about this? May 01 23:33:13 Allavaz: where you're getting it? May 01 23:33:23 ... Because I have a weird feeling you're doing something utterly wrong May 01 23:33:35 https://dl.google.com/dl/android/aosp/hammerhead-kot49h-factory-02006b99.tgz May 01 23:33:35 My girlfriend just sent me a book called "Cooking with cum". There is a video on there of a guy mixing it into a mojito. I just vomited. What a ridiculous idea. May 01 23:33:43 Had to share that. Sorry. May 01 23:34:47 Allavaz: and where you're trying to apply that? May 01 23:35:05 what do you mean? May 01 23:35:15 I followed this guide May 01 23:35:16 http://www.droid-life.com/2013/11/05/how-to-flash-nexus-5-factory-images/ May 01 23:35:16 Allavaz: ... how you're trying to apply the factory image to the system? May 01 23:35:33 then you probably forgot to factory erase the phone May 01 23:35:54 at the very least, you will need to wipe dalvik-cache May 01 23:36:16 k May 01 23:36:52 anyway, logcat should tell you why you get a bootloop May 01 23:37:29 * p_l actually has access to one device that started displaying normal linux console boot messages at boot... May 01 23:38:00 how to see logcat messages? May 01 23:38:33 adb logcat with the device connected May 01 23:38:41 ah May 01 23:39:19 it says waiting for device May 01 23:39:51 maybe it doesn't give logcat on stock... May 01 23:40:12 anyway, you can probably sideload alternative recovery (without flashing) to do necessary modification May 01 23:40:55 I can flash twrp and do the wipes May 01 23:43:26 "E: unable to mount storage." May 01 23:43:48 unable to mount /data and /cache May 01 23:45:12 you can get a shell on the recovery May 01 23:45:29 anyway, ask more in #android-root. I don't have N5 to test against, only my daily N4 :) May 01 23:45:49 k May 01 23:47:06 i have a fragment and a preferencefragment in a viewflipper. the preference fragment appears to be consuming the touch even so i cant invoke the viewflipper. thoughts? May 01 23:47:31 i can flip from the fragment to the preferencefragment, but not back again May 01 23:48:17 bankai_au combineLatest + subjects is turning out to be pretty handy coordinating things in a fragment May 01 23:48:40 aww nice nice May 01 23:48:57 for example, i have a prefchangeSubject, serviceConnectedSubject, and a few other ones that merge into combineLatest May 01 23:51:32 It IS faster! Over five million... May 02 00:04:04 is there anyway to get an image from WebView May 02 00:04:06 ? May 02 00:30:55 in the target list, whats the difference between like id: 2 or "android-12" and id: 5 or "Google Inc.:Google APIs:12" ? May 02 00:38:06 samsung silver shine eh May 02 00:38:10 omg May 02 00:40:25 Moving away from Samsung phones is the best thing I did. I had the S, S2, and S3. May 02 00:40:30 I now have the Nexus 5. May 02 00:42:04 rumor is the nexus line is going away May 02 00:42:10 :O May 02 00:42:19 Gutted. May 02 00:42:25 I really like the Nexus line :( May 02 00:42:35 Im assuming they will replace it with something bigger and better? May 02 00:46:04 I <3 my N7, but it's usb connection is pretty flaky May 02 00:46:31 I <3 my N7 too. Any of you guys know any really cool apps? Doesnt matter what they do or are for? Good UI etc is a bonus. May 02 00:46:35 Tablet or Phone. May 02 00:47:13 I am targeting api 12, I have android:theme="@android:style/Theme.NoTitleBar.Fullscreen" however the top bar is still present. The same application targetting 19 worked fine, any ideas? May 02 00:52:07 capella yeah mine too May 02 00:52:33 What I dont understand is how the USB connection on them seems to be upside down? May 02 00:52:47 It's gotten pretty bad ... constantly wiggling it to maintin a connection when running robotests May 02 00:53:17 my GS3 connection is like a rock May 02 00:58:57 ideally i would use a wireless charger and adb over wifi to preserve the usb port May 02 00:59:24 Heres an interesting thought. May 02 00:59:31 Devices with more than 1 usb port. May 02 00:59:43 Is there a reason the port needs to be dead centre? why not have 2 both just off centre? May 02 00:59:58 charger port, other device port. May 02 01:00:08 Opens up to more plug-in hardware for devices May 02 01:00:40 too many holes May 02 01:01:12 Never has a guy said that before. May 02 01:01:16 Also how so? May 02 01:01:21 Headphone jack and 2 usb ports? May 02 01:01:33 what's the second usb port for? May 02 01:01:43 Anything. May 02 01:01:44 yeah micro usb just sucks, there needs to be a better connector May 02 01:01:50 ^ May 02 01:02:00 I know for one, charging is better when the device is plugged into the mains rather than a USB port. May 02 01:02:09 so one could be into the computer, the other could be into the mains. May 02 01:02:18 Or it could be used for plugable hardware? May 02 01:03:57 pair programming sucks so much May 02 01:04:26 You not like the guy you have to work with? May 02 01:05:56 no, but it takes away one's sense of ownership May 02 01:06:22 Yeah but if there is a shitty bug that you cba to deal with, you can pass it off to the other guy ;-) haha May 02 01:06:32 :D May 02 01:07:19 it's like, if you were running a company, would you want JakeWharton to pair with some noob? hell no May 02 01:07:25 Yes May 02 01:07:26 I would May 02 01:07:53 Imagine if Jake could show this guy a few things, make this noob a decent programmer rather than letting him wing it and become an OK programmer. This noob would then also become a valuable asset. May 02 01:08:25 but code reviews do this asynchronously May 02 01:08:51 blocking the UI thread is bad May 02 01:08:58 haha May 02 01:09:06 So is unnecessarily propogating Exceptions. May 02 01:09:15 ;-) May 02 01:09:19 this is true May 02 01:09:49 So, JakeWharton has just been referred to as a UIThread, and a try catch statement. May 02 01:10:09 I am targeting api 12, I have android:theme="@android:style/Theme.NoTitleBar.Fullscreen" however the top bar is still present. The same application targetting 19 worked fine, any ideas? May 02 01:10:37 You've posted the same question several times. May 02 01:10:40 Have you googled it? May 02 01:10:57 this is the second time, and yes May 02 01:11:26 everyone says thats how you do it, I'm just wondering if perhaps it wasnt possible entirely on 12 yet May 02 01:11:39 maybe I need to target something more recent? May 02 01:11:41 I've found a solution already. May 02 01:11:51 I used to do it on 8. May 02 01:13:12 care to share the link? May 02 01:13:30 Nope. You havent looked clearly. It was quite literally the top link of my search. May 02 01:13:41 to be honest I'm not even sure what this little bar is called, its got 3 dots on it May 02 01:13:56 You talking about the action bar? May 02 01:14:23 maybe, it highlight a bit when you click on it, it doesnt do anything besides that though May 02 01:14:45 The bit inside the activity with the activity title on, or the bit on the phone with the battery life and system time etc? May 02 01:15:34 http://i.stack.imgur.com/frofO.png Are you on about number 1 in this image, or the bar above it with the time in? May 02 01:15:53 none of those May 02 01:16:03 get an image of what you mean May 02 01:16:12 Oooh May 02 01:16:15 its black, has 3 dots next to each other May 02 01:16:31 Do you mean the 3 dots on the device next to the back, home, and recent history buttons? May 02 01:16:40 it takes the place at the top of the screen, but depending on the orientation could be on the bottom as well May 02 01:16:47 Send an image! May 02 01:16:49 Show me what you mean May 02 01:16:53 ill try and find one May 02 01:17:34 http://www.whatsapp.com/img/faq/en/android/3-dots-in-action-bar.jpg OR http://android.calengoo.com/pagedoc/pageinstallation/styled/pagemenubutton_files/samenubutton6.png ??? May 02 01:17:38 ah it looks like this https://www.google.com/search?q=android+3+dots&es_sm=93&source=lnms&tbm=isch&sa=X&ei=E_JiU56rNsugyASG14LACg&ved=0CAgQ_AUoAQ&biw=1157&bih=736#facrc=_&imgdii=_&imgrc=maOYmRog01jJQM%253A%3B9LpatIKazergfM%3Bhttps%253A%252F%252Fd2r1vs3d9006ap.cloudfront.net%252Fs3_images%252F963417%252FCapture_inline.PNG%253F1380296600%3Bhttp%253A%252F%252Fcommunity.phonegap.com%252Fnitobi%252Ftopic May 02 01:17:38 s%252Fremove_the_android_menu_button%3B474%3B102 May 02 01:17:40 if you whip out your android phone and hit up the play store, there's the three dot symbol on any of the cards May 02 01:17:40 er May 02 01:17:49 it's like a spinner May 02 01:17:52 click "view image" May 02 01:17:57 you have the google wrapper link. May 02 01:18:08 here https://d2r1vs3d9006ap.cloudfront.net/s3_images/963417/Capture.PNG?1380296600 May 02 01:18:09 yeah May 02 01:18:36 It has a different purpose in different places though May 02 01:19:09 if it helps at all, my program is ndk + opengles2 May 02 01:19:23 but yeah on api 19 its not there, on 12 it is May 02 01:19:34 As you described it or in an action bar, is it a menu button within the app. If it is within the system back buttons etc, like on a Nexus 5, it provides support to applications where the ActionBar isn't available and provides a menu button like the device menu button on a Galaxy S series device. May 02 01:20:48 it looks exactly as in the image i linked May 02 01:21:10 its rendered on the screen, rendered over my application obstructing it somewhat May 02 01:27:00 anyway if you have any idea how to remove this on earlier api levels let me know, I need to go for now, ttyl May 02 01:53:12 If you have a fragment that has a remove button in it, is there a better way of telling the activity that contains the fragment to remove the fragment other than passing "this" to a method on the activity? May 02 01:53:56 So that the activity can remove the fragment from the FragmentManager? May 02 01:55:28 bankai_au still there ? May 02 01:58:22 I need help about sqlite3 error "register_localized_collators() failed" everytime I try to open a .db on Terminal Emulator May 02 01:58:33 can anyone here help me? May 02 02:06:35 hey, do any of you guys have malaria ? May 02 02:07:03 The band's good. May 02 02:07:08 guess whats the most dangerous animals on the planet? tthats right, mosquito May 02 02:08:15 I need help about sqlite3 error "register_localized_collators() failed" everytime I try to open a .db on Terminal Emulator May 02 02:08:17 can anyone here help me? May 02 02:10:01 cycl0ps: a) don't do that, and b) this isn't the right place... you could try asking in #android-root, but I wouldn't expect too much May 02 02:11:00 the fella that sits next to me at work had/has it May 02 02:11:42 if anyone was in here earlier, ive decided to use intellij May 02 02:16:34 How do I justify an argument with my colleague to use top Sliding Tabs instead of the bottom one (he's an iOS dev) May 02 02:18:26 piracyd3: It's standard which is nice for a lot of reasons.. But other than that, why argue about it? May 02 02:18:27 I've found that in the guidelines that I shouldn't use bottom tabs as it will confuse with the softkeys. But I can choose what I want. May 02 02:19:03 So my app runs on my sony + nexus tablet fine but on various samsung devices it crashes and ACRA also doesn't seem to be working as it should be. Any ideas how i can find out where its crashing? May 02 02:19:23 Because we already have an app for iOS, so most likely they want Android version to look the same. Haha May 02 02:19:41 It's just random topic May 02 02:19:54 I guess I'll pull this off gently May 02 02:25:35 g00s: yeah just moving desks - stupid re-orgs May 02 02:26:54 bankai_au is rx doOnEach for side-effects ? May 02 02:27:09 good question :) May 02 02:27:37 looks like it, i'm reading https://github.com/Netflix/RxJava/issues/40 May 02 02:27:56 "Thus, I think the do operator will be executed each time just like other operators when subscribed to." this is what is confusing me May 02 02:28:26 ... I read that as execution (killing) of the operator (person) -_- May 02 02:28:37 I need to sleep more May 02 02:28:46 or more coffee May 02 02:29:09 trying to understand the last comment in there May 02 02:29:44 i was wondering how i would do a filter chain, this seems to be it May 02 02:30:14 I need help about sqlite3 error "register_localized_collators() failed" everytime I try to open a .db on Terminal Emulator May 02 02:30:24 can anyone here help me? May 02 02:35:17 uh, git strikes again. takes a stash of unstaged stuff and pops it as staged May 02 02:35:51 i think the key to understanding git's UI is, "wtf would surprise me most here?" .. because thats whats going to happen May 02 02:36:14 model so simple and elegant, cli & ui so .. ugh May 02 02:36:40 well, it's a dumb content database abused in by surrounding layers May 02 02:38:17 anyone? May 02 02:38:40 cycl0ps try #sqlite maybe May 02 02:40:45 G'day May 02 02:40:56 huh? May 02 02:41:15 popping a stash doesn't stage for commit May 02 02:41:20 I want more information about the offline voice recognision in JellyBean and above May 02 02:41:22 you're doing it wrong May 02 02:41:39 Can someone link me to the docs? I can't seem to find them May 02 02:42:34 pfn it did in my case, very weird May 02 02:42:55 i used --keep-index , not sure if that did something May 02 02:43:50 thx g00s May 02 02:43:56 yw May 02 02:45:01 * phix sets up camp May 02 02:50:00 g00s, that probably did something, you probably staged it before May 02 02:51:29 pfn i had A B C staged, D E unstaged. I then 'git stash save --keep-index', checked in A B C (since they were left behind and staged) and then git stash pop - D E became staged May 02 02:51:30 I generally dislike stashes vs branches though May 02 02:51:52 I use branches May 02 02:51:53 this is the only time that happened to me May 02 02:52:14 i think it was a combination of --keep-index and a merge conflict, everything became staged, so weird May 02 02:52:50 but then again I came to this channel for some Android development information, not git May 02 02:53:57 but yeah, stashes are messy and a bitch to track May 02 02:54:34 They sure are May 02 02:55:02 so Android documentation on Voice recognision in JellyBean+? May 02 02:55:37 is that a play services thing ? May 02 02:55:45 may have to look there May 02 02:55:58 I am not sure, that is why I am asking :) May 02 02:56:44 I can't seem to find it in the Android API docs (android.speech is the API lvl 3 stuff). I would like offline usage using the JellyBean API May 02 02:57:19 Is that an extension API? If so, what is it called? May 02 02:57:34 i should look into that too, i was wondering if it was possible yet to have arbitrary voice actions May 02 02:58:11 wasn't at the time so i left it alone May 02 02:58:39 g00s: Apparantly it is possible using the offline API that is available from JellyBean and above, however I can't find any links to the documentation or official site for it **** ENDING LOGGING AT Fri May 02 02:59:58 2014