**** BEGIN LOGGING AT Wed Jan 15 02:59:59 2014 Jan 15 03:00:40 i'm currently using the code provided by eclipse when creating a project, swiping etc Jan 15 03:00:54 so yeah, three different layouts, how does one do that? Jan 15 03:02:26 http://developer.android.com/training/implementing-navigation/lateral.html Jan 15 03:04:11 yes, i'm indeed using the Title Strip, how can i set three different layouts? Jan 15 03:04:18 inflater.inflate(R.layout.fragment_ + ARG_SECTION_NUMBER, Jan 15 03:04:18 container, false); doesn't work Jan 15 03:04:46 and then naming the xml files fragment_1.xml fragment_2.xml and fragment_3.xml Jan 15 03:06:12 case switch the inflater? Jan 15 03:06:41 <|0xD34D|> or use an int array with the layout IDs and index them accordingly Jan 15 03:08:33 emm, google to the rescue. Jan 15 03:11:11 |0xD34D|, i found http://stackoverflow.com/questions/14787718/how-to-create-views-with-an-android-layout-with-a-pagertitlestrip but i don't know what the answer means? :( Jan 15 03:25:48 what's a good practice when passing objects to service in local process? bind with an interface to pass the said object? Jan 15 03:41:35 ruser: depends what kinda data and how much, there's a few different approaches Jan 15 03:43:19 bankai_: well, i want to have a service that spawns and controlls receiver and transmittor threads for network, so i need to pass server information data Jan 15 03:43:27 that the service would manage Jan 15 04:37:47 Hi I wanted to know where to look to develop an App with communication like Snapchat Jan 15 04:39:40 datandroiddude: you're not going to find a tutorial like that if thats what you're looking for Jan 15 04:40:46 d.android.com ( i really don't know what snapchat is, but this is a great resource ) Jan 15 04:41:22 No im looking for how it works and what I am required of.. Jan 15 04:45:18 nobody is going to just tell you how an app like snapchat works and how to build one Jan 15 04:45:58 you're gonna need some knowledge of basic networking, android development etc Jan 15 04:47:04 and a great marketing team ;) Jan 15 04:48:53 datandroiddude you could buy the snapchat dev a beer and ask him about it Jan 15 04:48:57 :D Jan 15 04:49:15 or if he/she is like me, offer some bacon Jan 15 04:49:32 bankai_: I think d.android.com is an okay resource, when it's correct Jan 15 04:49:34 bacon beer? Jan 15 04:49:45 that ... Jan 15 04:58:04 oh great google, is bacon beer "A Thing"? Jan 15 04:58:13 M18ZcTthh9KB Jan 15 04:58:15 erm Jan 15 04:58:21 http://rogue.com/beers/voodoo-bacon-maple.php Jan 15 04:58:27 the internet delivers, yet again Jan 15 04:58:38 now I have to find what site that was the password for, and change it :p Jan 15 04:59:39 bacon beer seems like motherhood and apple pie Jan 15 05:00:17 JesusFreke: wonder if theres rule 34 for beer :P Jan 15 05:00:27 forget beer, snapchat won't tell you crap even if you offer them 4 billion dollars Jan 15 05:00:40 XXCoder: for bacon, more likely Jan 15 05:00:51 what is rule 34 Jan 15 05:01:02 result found in single search Jan 15 05:01:09 not surpised Jan 15 05:01:11 oh Jan 15 05:01:15 O.o Jan 15 05:01:19 g00s: http://www.youtube.com/watch?v=mScdJURKGWM Jan 15 05:06:44 we need a tool called Inspector Gadget Jan 15 05:22:31 when you import a .p12 file via Settings -> Security -> Import from SD card … is there a place to see the result ? Jan 15 05:22:51 if i import trusted credentials, i can view those Jan 15 05:57:00 Hello room Jan 15 05:58:23 channel Jan 15 06:14:16 Yay, only taken me 2 days to find a solution to my problem Jan 15 07:30:58 is this the channel for app development on android ? Jan 15 07:31:51 slick2: what are the first three words of the channel topic? Jan 15 07:32:18 Leeds : thanks Jan 15 07:32:37 Leeds : what IDE do you use on application development ? Jan 15 07:32:42 Help please! Importing in Android Studio tells me this: org/gradle/tooling/ProgressListener Jan 15 07:32:44 I don't - I use vim Jan 15 07:34:03 Does anyone know of any current & historical currency exchange rates for AED & TWD? I'm looking for some kind of XML/CSV/JSON/etc file or other filetype that can be easily parsed by a programming language Jan 15 07:48:47 can't find a data source :( Jan 15 08:06:31 How can I find out what exchange rate Google uses in sales & financial reports? Jan 15 08:06:46 I need to convert between currency_of_sale + item_price to EURO Jan 15 08:07:01 and in order to do that I need the exchange rate from currency_of_sale to EURO Jan 15 08:10:17 I could use https://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml but it doesn't show all exchange rates Google uses, for example AED and TWD is missing Jan 15 08:11:21 exchange rates change over time, os it'll be useless unless you are fine with "close enough" data Jan 15 08:20:44 deebo: I need the exchange rate used by Google on the day made the purchase Jan 15 08:21:15 at the closing of the day, if it changes hourly Jan 15 08:21:29 or at the hour the customer was billed by Google Jan 15 08:22:02 but Google only shows currency_of_sale and item_price in the financial reports on Google Developer Console Jan 15 08:22:10 and I want to convert all the purchases to EURO Jan 15 08:23:32 I could add up all the purchases for a given currency but at the end when I need to sum it all up I need to convert from each currency which is not euro to euro, and for that I need the exchange rate Jan 15 08:24:01 of the day when the purchase was made Jan 15 08:28:04 How can you answer the question: How much money do I make from my app? Jan 15 08:28:32 if you sell in app items in dozens and dozens of currencies Jan 15 08:29:01 I can see how much money I make in each currency but I don't to know in EURO or USD or whatever Jan 15 08:29:11 s/don't/want Jan 15 08:41:43 so how do I know how much money I make on Google Apps store? Jan 15 08:42:48 go to your bank and ask? Jan 15 08:43:08 huh Jan 15 08:43:52 why would I do that? why doesn't Google show me how much money I make ,it has all the data Jan 15 08:44:03 after it takes 30% Jan 15 08:44:41 what's the purpsoe of financial reports in Google Play Developer console if I can't see how much money I make? Jan 15 08:45:37 they don't need to tell you that, since its likely 0.00 Jan 15 08:46:13 I want to calculate that myself but they don't give me enough information Jan 15 08:46:18 if you go to your merchant account, you will see the balance there Jan 15 08:46:23 the "Financial reports" section is useless Jan 15 08:46:41 I can see the total in All applications - > Revenue Jan 15 08:46:47 but I want to calculate it myself Jan 15 08:46:51 using the data they provide Jan 15 08:47:54 g00s: its more than you think Jan 15 08:48:52 cff: Wow, it is more than zero, eh? Jan 15 08:49:08 cff: Do you need them for some real reason? Tax or otherwise? Jan 15 08:49:37 can anyone recommend a documentary that'll make me go "WOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOoOOOOW!!!!!!!!!!!!!!!!!!!!!!!!!! :O!! *GAAAAAAAAAAAAAAAAAAAAAAAAAAAAASP* =O ==OO WAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAW!!!" ? Jan 15 08:50:01 Ge: without the exchanges rates I can't calculate, yes, I need to do some sales reports based on that data Jan 15 08:50:04 Coryn: Something about serial killer I recon. Jan 15 08:50:28 Coryn: Restrepo Jan 15 08:50:30 Coryn: Penn & Teller Bullshit Jan 15 08:50:57 about korangal valley in Afghanistan, really good. Jan 15 08:50:59 penn & teller are awesome, but I've seen 'em all (there aren't any new episodes from 2013 are there?" Jan 15 08:51:32 I've been in the military myself :p documentaries doesn't make it :p Jan 15 08:51:48 cff: https://support.google.com/googleplay/android-developer/answer/2482017?hl=en Jan 15 08:51:50 CallumTaylor, Coryn, that Jan 15 08:51:57 its more about the people there, rather than the conflict Jan 15 08:52:55 cff: Are you preparing these reports on an accrual basis? I am not sure when you could recognise it on an accrual basis. Google could almost immediately, but I am not sure about developers. You would need to talk to a local accountant. Jan 15 08:53:22 cff: Are you in the US under the FASB or elsewhere under the IASB? Jan 15 08:55:29 deebo: You should not just check with your bank. Doing "bank reconciliations" is important. There could well be a technical problem or someone might be ripping you off. You should check both sides to make sure Google and your bank are behaving properly. Jan 15 08:55:42 deebo: Same goes for being an employee of course. Jan 15 08:56:02 Ge: no, I'm not in US Jan 15 08:56:40 cff: Yar, so you would be under the IFRSs probably like I am. Jan 15 08:56:51 Coryn, http://www.imdb.com/title/tt2354205/ Jan 15 08:57:02 best i've seen this last year Jan 15 08:59:55 ah Google provides currency conversion rate in earnings table Jan 15 09:00:00 cff: If you are talking to someone for investment or whatever, really engaging someone to prepare the reports for you would be a good idea. I note you mentioned exchange rates though. Normally, in commerce, people use "forward rates" representing a kind of forecast average over some period. They almost never use "spot rates". There are transaction costs too for labour and so on as well as a "premium" someone extracts for selling you the other currency. Jan 15 09:00:20 cff: So, the actual rates used are nearly always a bit below the spot rates. Jan 15 09:01:42 Ge: yes, I need to make them available automatically each time a new report comes out and process them Jan 15 09:01:43 why do you uys find war so fascinating? It's bullshit. Jan 15 09:02:17 Ge: yeah, its complaited Jan 15 09:02:20 Coryn: What is uys? Jan 15 09:02:23 Ge: *complicated Jan 15 09:02:28 Ge: guys* Jan 15 09:03:02 good question Jan 15 09:03:26 i watched a fantastic documentary a while back but i can't remember what its called, grr Jan 15 09:03:43 cff: Why not just wait for Google to prepare the reports? Jan 15 09:04:01 war is disgusting, and it's not fun except if you're a semi-psychopath. Jan 15 09:04:30 no no I'm not talking about the one i said before Jan 15 09:04:38 i don't think anyone suggested it was fun Jan 15 09:04:47 another one, its about this guys wife who murdered her husband Jan 15 09:04:57 but the documentary itself was by the guys friend, really well done, i'll try and find it Jan 15 09:06:50 another i saw this year was the queen of versailles Jan 15 09:06:56 * CallumTaylor found it http://en.wikipedia.org/wiki/Dear_Zachary:_A_Letter_to_a_Son_About_His_Father Jan 15 09:07:03 http://www.imdb.com/title/tt2125666/ Jan 15 09:07:08 that was pretty good too Jan 15 09:07:30 http://www.youtube.com/watch?v=Coois9FDui0 absolutely heart braking documentary Jan 15 09:10:14 Ge: because I want to do other reporting with the data Jan 15 09:12:09 oh yeah, there was that oracle jdk update yesterday Jan 15 09:12:42 fix all those security bugs :) Jan 15 09:12:45 and it freed us from java exploits? Jan 15 09:16:25 so weird things Jan 15 09:16:49 I have an AlertDialog and when it dismisses there is nothing I can do to force close the keyboard Jan 15 09:16:55 any thoughts about how to do this? Jan 15 09:17:03 I tried overriding the onDismiss Jan 15 09:17:15 and to add force close to the dialog onClicks Jan 15 09:17:19 and nothing works Jan 15 09:34:55 Is anyone familiar with chromium_webview Jan 15 09:35:16 I need websockets in old versions of android that have the old webview Jan 15 09:38:18 I've implemented it, but I'd like the option to use the native webview Jan 15 09:38:31 In versions of android that support websockets Jan 15 09:39:08 Is there any clean way to do that Jan 15 09:57:12 i have an activity that starts another one. when it does that it passes a param that the user can specify in a textfield to the second activity, the text field can take a special value in which case another combo box must be displayed for the user to choose from... what is an android-ui compatible approach to layout such thing? Jan 15 10:04:05 test Jan 15 10:04:13 g00s: you're a mother fucker Jan 15 10:04:28 that's mean Jan 15 10:04:48 CallumTaylor: you're a cunt Jan 15 10:04:55 a glorious one Jan 15 10:05:11 Coryn: why are you here ? Jan 15 10:07:14 Coryn is a bot lol Jan 15 10:07:52 and I'm a droid Jan 15 10:09:26 shmooz: so that I may fuck you in the ass Jan 15 10:09:27 Shit I'm sorry Jan 15 10:09:49 shmooz: do not question my authority, or I'll kill you. Do you fucking get that, you cunt. Jan 15 10:09:52 who's controlling it ? Jan 15 10:10:03 probably some op Jan 15 10:10:16 Cia probably Jan 15 10:10:37 Oh wait Jan 15 10:10:46 I bet its steve jobs Jan 15 10:11:05 Yea definitely Jan 15 10:11:25 DILDO DILDO DILDO DILDO DILDO DILDO DILDO DILDO DILDO DILDO DILDO DILDO DILDO DILDO DILDO DILDO DILDO DILDO DILDO DILDO DILDO DILDO DILDO DILDO DILDO DILDO DILDO DILDO DILDO DILDO DILDO DILDO DILDO DILDO DILDO DILDO DILDO Jan 15 10:11:39 op or not, this is not acceptable Jan 15 10:11:50 shmooz: shut the fuck up, nigger Jan 15 10:11:54 if it's an op, he needs his op taken away Jan 15 10:12:16 I mean, threatening to kill someone and talking about dildos on a channel called android dev is ridiculous Jan 15 10:12:19 shmooz: I created this fucking channel you fucking chonk Jan 15 10:12:41 there's a simple ignore feature, please use it. Jan 15 10:12:53 yeah sounds like steve's gonna get fired again Jan 15 10:12:56 yeah, I'll fucking kill you all! Jan 15 10:12:59 from his own creation Jan 15 10:13:14 shmooz: do you think that you're better than me? Fuck you, cunt Jan 15 10:13:18 you're just a low-life asshole Jan 15 10:13:26 without parents Jan 15 10:14:21 shmooz: nobody likes you, you're just a cunt Jan 15 10:14:28 Anyone know some better channels to hang out in? Jan 15 10:14:43 I can use ignore, but then you get people reacting to it, or new people have to be told to ignore, can't we just get rid of it/him ? Jan 15 10:14:53 zettablade: #iphonedev ;D Jan 15 10:15:14 last time I checked, the people in here didn't want you here zettablade. So get the fuck out of here, shithole. Jan 15 10:15:19 lol Jan 15 10:15:51 shmooz: there's another solution: get the fuck out of here, this is MY territory Jan 15 10:16:12 What! Jan 15 10:16:13 or feel free to ignore me so we don't have to listen to your fucking infantile bitch-crybaby whining Jan 15 10:16:13 Environment.DIRECTORY_PICTURES Jan 15 10:16:16 It's not final?! Jan 15 10:16:19 hi Coryn Jan 15 10:16:20 What does it mean. Jan 15 10:16:34 hi macTAR you motherfucking dick Jan 15 10:16:42 Coryn: why don't you ban me, I'm too lazy to quit Jan 15 10:16:46 Coryn my friend, chill Jan 15 10:16:46 michalrus: it means that you can shove a dildo up your arse Jan 15 10:16:53 too legit to quit Jan 15 10:16:58 dont denie our love Jan 15 10:16:59 ? Jan 15 10:17:48 macTAR: I'm running a troll-business here, and shmooz is my product Jan 15 10:18:03 right shmooz you fucking asshole? Jan 15 10:18:09 right Jan 15 10:18:10 allright george Jan 15 10:18:12 I'll win this soon. Jan 15 10:18:28 winning like Charlie Jan 15 10:18:42 win your ass up your snatch Jan 15 10:19:47 Coryn: I have notified the authorities, there will be a knock on your door soon Jan 15 10:20:22 the cyber police? Jan 15 10:20:35 blackwater Jan 15 10:21:56 he's going out like Khaddafi Jan 15 10:23:42 i think your scared him away Jan 15 10:23:53 am i missing some fun ? Jan 15 10:24:20 Regarding my previous question, http://stackoverflow.com/q/21134804/2153631 Jan 15 10:28:17 i have an android:label attributein my application node and an android:label attribute in my main activities node in AndroidManifest.xml, the name of the app which is printed below the drawer is the label of the activity... shouldnt that be the label of the application? Jan 15 10:28:34 *printed below the icon in the app drawer Jan 15 10:34:36 shmooz: you're just a shithole that acts all that Jan 15 10:35:29 >:( Jan 15 10:35:40 he's using tor Jan 15 10:36:06 no shit sherlock Jan 15 10:36:27 which makes him easier to trace Jan 15 10:36:39 and then what? Jan 15 10:36:47 let's say that you've "traced" me.. then what? Jan 15 10:36:48 ill backtrace his ip Jan 15 10:36:50 good luck, he's behind 9 proxies Jan 15 10:36:53 and then your skull gets cracked in half Jan 15 10:36:55 please stop acting like children. Jan 15 10:36:55 lol Jan 15 10:37:32 yep, notify the authorities... 'this guy on the internet is calling me bad names' Jan 15 10:38:03 that calls for a hellfire missile Jan 15 10:38:19 you hate me that much? That satisfies me shmooz, you're the perfect trollbait Jan 15 10:38:33 or maybe he's reverse trolling Jan 15 10:38:39 you're feeding me like an old lady would feed the ducks Jan 15 10:38:55 CallumTaylor: nope, he's just an angry troll-hunter, my favorite. Jan 15 10:39:33 he's being trolled so hard right now Jan 15 10:39:55 zomg trolling for the lulz so leet Jan 15 10:40:01 as he begins to realize it, he'll either give up now or even try harder (making him more of an idiot now when he's aware of it) Jan 15 10:40:01 l33t Jan 15 10:40:04 guys... ignore him.. i dont even know what you are talking about Jan 15 10:40:26 ohcibi: just because you can't take me on Jan 15 10:40:28 CallumTaylor what is this 'reverse trolling' you speak of ? Jan 15 10:40:45 g00s_: he think he's winning over the troll. But I am winning right now. Jan 15 10:40:57 most of you have already lost Jan 15 10:40:58 okay.. so he actually made it to overtake this channel? people are only talkin about him, not about android anymore? Jan 15 10:41:14 Coryn: good work! Jan 15 10:41:32 he must be getting paid by apple Jan 15 10:41:43 ohcibi: don't thank me, thank the idiot troll hunters in this channel. They're making it possible <3 I WON, YES, I WON!!! YAAAY Jan 15 10:42:03 apparently this channel is a lot stupider than I assumed. Jan 15 10:42:26 you should especially thank shmooz, he's the biggest loser in here (simply because he ironically believes he's the least loser in here) Jan 15 10:42:51 storkme: you're one of them, feeding me like a duck Jan 15 10:42:54 the biggest loser is the biggest winner, on the scale. Jan 15 10:43:21 alankila: no way, it's the reverse. Prove it, idiot. With pictures and everything. Oh, you can't, because youre a dumb fuck. Jan 15 10:43:26 just put him on ignore :) i only noticed he's still around because i forgot to add 'mentions' in the ignore Jan 15 10:43:52 g00s_: penis Jan 15 10:43:53 eh. maybe you thought I somehow said something relevant to whatever you are on about. Jan 15 10:44:11 g00s_: its still useless.. this channel is stalled because of him.. even if _I_ don't see him anymore.. others still see him and are distracted from what is actually going on here Jan 15 10:44:24 i'm thinking about just joining my own new channel and wait what happens Jan 15 10:44:33 is there nothing the ops can do ? Jan 15 10:44:34 alankila: that's exactly what you did, idiot. You pwned yourself. To quote you: "the biggest loser is the biggest winner, on the scale." Jan 15 10:44:47 as I heard, the ops are practically gone Jan 15 10:44:56 well, you can try #freenode Jan 15 10:45:01 (thats why I thought about the own channel) Jan 15 10:45:06 Is this a bot? I think I may have to extend my ignore list. Jan 15 10:45:37 blaha blah blah, you're just a bunch of trollbait idiots Jan 15 10:45:37 quassel managed to ignore him completely as it seems but that does not cure this channel Jan 15 10:46:03 ohcibi: quassel is me, you bloody idiot Jan 15 10:46:11 anyway.. i'm over to #android-development... i'll see what happens in the next few weeks 8-) Jan 15 10:46:13 I'll stop on one condition: suck my dick Jan 15 10:46:30 ohcibi good luck :D Jan 15 10:46:34 Solved. Jan 15 10:46:37 http://stackoverflow.com/a/21135282/2153631 Jan 15 10:46:47 well, I own those channels, so, FU Jan 15 10:46:51 ohcibi btw, are you using quassel on mac ? Jan 15 10:46:57 yes Jan 15 10:47:00 quasselclient Jan 15 10:47:03 core is on debian Jan 15 10:47:11 oO Jan 15 10:47:18 ohcibi do you like it? i'm using textual its ok Jan 15 10:47:23 PENIS ENLARGEMENT Jan 15 10:47:40 i guess if you are using it, you like it ;) Jan 15 10:47:52 g00s_: i love quassel... but only with a remote core... the standalone-version doesnt make a lot of sense to me Jan 15 10:48:08 penis penis penis penis penis penis penis penis penis penis penis penis penis penis penis penis penis penis penis penis penis penis penis penis penis penis penis penis penis penis penis penis penis penis penis penis penis penis penis penis penis penis penis penis penis penis penis penis penis penis penis penis penis penis penis penis penis penis penis penis penis penis penis penis penis penis penis Jan 15 10:48:22 dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo Jan 15 10:48:23 dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo Jan 15 10:48:23 dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo Jan 15 10:48:28 i also wanted to try weechat Jan 15 10:48:29 g00s_: i have combined it with bitlbee which makes me permanently online on all networks I'm using plus its in sync everytime Jan 15 10:48:43 its like a bouncer on massive steroids Jan 15 10:48:52 ohcibi: suck my dikz0r :3 Jan 15 10:49:00 the only drawback is that quassels is not actively developed anymore... Jan 15 10:49:12 inofficially Jan 15 10:49:17 oh no Jan 15 10:49:36 the main dev is a german guy who seems to have lots of other stuff to do.. Jan 15 10:49:56 also proposing new features that are hard to implement makes you no friends with him 8-) Jan 15 10:50:41 haha Jan 15 10:50:54 there is also iQuassel for ios which is developed indepently and the last time i used it for android it wasn't working at all, so this star is actually heavily flawed Jan 15 10:50:56 dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo dildo Jan 15 10:51:42 sadly... i was even thinking about forking it and call core and client "sabbel" and "laber" (german words that are similar to "quasseln") Jan 15 10:52:10 Could you, like, vary it up a but? Not just one word? Just curious. Jan 15 10:52:18 kroot, just ban this Corynn dude :/ Jan 15 10:52:35 A bit. A butt. Maybe both. Jan 15 10:52:37 Either that or, uh, fuck off. Jan 15 10:53:11 lemonxah is a troll Jan 15 10:54:09 ignore *!~douglas_@* ALL Jan 15 10:54:13 oops soz no / :) Jan 15 10:54:31 if I do cursor.setNotificationUri and when the uri is notified, would the onLoadFinished be called again with the new data, or do I have to do this manually ? Jan 15 10:55:03 this is a db cursor that I'm updating, I was planning to do requery but see that this is deprecated Jan 15 10:56:07 I'm trying to use the FinchVideo example with cursor loader but not sure how to do this. Jan 15 11:19:03 thank you #freenode :) Jan 15 11:23:31 hi doesn't ClipboardManager pose a security hole ? any app can see what is copied to clipboard, that doesn't look like safe. why is that api allowed? Jan 15 11:23:45 If I want to share a textfield, then I put a share intent when I start the application. But then when the user types anything, do I need to update the share action on every keystroke? Jan 15 11:25:10 smallfoot, why don't you trigger the share action by a button? Jan 15 11:25:40 I have a ShareAction button in the ActionBar Jan 15 11:25:54 Is it possible to update the share when user clicks the button in the ActionBar? Jan 15 11:27:26 oh a new PHP Cookbook http://shop.oreilly.com/product/0636920029335.do Jan 15 11:27:39 maybe they show how to connect Android to MySql Jan 15 11:32:11 KucukMubasir: don't put stuff in the clipboard if you don't want other apps to access it? Jan 15 11:32:59 wow touch screens arent totally useless, they could actually be useful on a PC when developing android apps Jan 15 11:34:17 Leeds: is there any other way to copy and paste? Jan 15 11:34:52 I'm sure you could implement a non-sharing clipboard from scratch if you really needed to Jan 15 11:37:28 Leeds: but if user wants to share paste between apps, after switching to other apps? I don't think this is possible without firmware signing, right? Jan 15 11:37:47 so you want to know how to share data between apps without making that data available to other apps? Jan 15 11:37:48 or not requiring user to allow some permission Jan 15 11:38:30 Leeds I want that data to available to other apps, If I paste it, not by they are sniffing what I copied in some other app Jan 15 11:38:42 here's a weird one.. if/when my app crashes, Android seems to try to automatically restart the activity that crashed... is there any way to turn this off? Jan 15 11:38:52 KucukMubasir: -EPARSE Jan 15 11:38:55 Can apps prevent screenshots? Jan 15 11:39:16 storkme maybe a global exception handler Jan 15 11:39:22 i've got one :s Jan 15 11:39:27 Leeds: what does it mean? Jan 15 11:39:33 I don't know Jan 15 11:39:42 it means I don't understand what you said Jan 15 11:41:12 oh I am sorry. ClipboardManager allows other apps to sniff what I copied to my clipboard even if I don't leave my current app. this seems like a security issue, so I don't want this to happen Jan 15 11:41:44 Can anyone recomend a number to think about when being offered a full time salary as an android developer with 2 years experience? Jan 15 11:42:13 lasserix: where ? Jan 15 11:42:19 Southern california Jan 15 11:42:56 my clipboard's content should only be visible to the app that is on the foreground Jan 15 11:45:14 anyway, thanks Leeds Jan 15 11:48:44 Can apps prevent screenshots? Jan 15 11:50:25 yes, isn't it the case with snapchat? Jan 15 11:51:10 I don't know, I never used that app Jan 15 11:51:35 I guess that app is only useful on emulators then :p Jan 15 11:54:14 Is it possible to update the share intent when the user clicks on the share button in the ActionBar? Jan 15 11:54:24 Or do I have to update the shareIntent on every keypress? Jan 15 11:59:06 Hello, java dont work like C for strings manipulation ? Jan 15 12:00:17 nvm! Jan 15 12:00:45 hello again. Jan 15 12:01:21 Yesterday I would like to know, why my custom button does not behave like an usual button, though it derives from it. Jan 15 12:02:50 I found some kind of reason. I change the BackgroundColor. Then my custom button is a little bit greater, it gets no highlight when i click it ( and loses it after click up )..... and gets no highlighted borders. How can I achieve this ? Jan 15 12:07:32 Does Google employees use ADT or Android Studio? Jan 15 12:14:25 and how can i display a vertical scrollbar always, full sized in height ? Jan 15 12:17:13 I don't know, but there are some scrollbar examples in the API Demos Jan 15 12:19:09 mainly i would like to see a scrollbar, like in the IOS. SO, always fully vertical sized about all the entire AbsoluteLayout-Screen( in which my ScrollVi9e derivate resides in ). and gets shrinked by scrolling it. Jan 15 12:21:56 HELP! ContentProvider is killing me! what's da best ORM you guys would recommend me to go with? Jan 15 12:24:59 is there an Android equivalent to the Unsafe class? Jan 15 12:27:03 ContentProvider is not a bad ORM stkim1 not bad at all just need to understand it first Jan 15 12:28:24 lemonxah, I'd really like to agree with you but after going through rough relationship with CP, I'm srsly looking for an alternative ;( Jan 15 12:29:31 stkim1, how long have you had this relationship with CP? cause i have to say it took me some time to understand it and its great for data binding Jan 15 12:30:02 i doubt you would get a replacement for it that does half as good a job at data binding to listviews and the likes Jan 15 12:30:51 how about greendao, or ormlite? Jan 15 12:32:35 i dont see how they will do data binding Jan 15 12:34:56 ormlite doesn't do data binding to listviews and such afaik. However it does a great job filling POJO's with database data Jan 15 12:35:59 pduin, thanks! what is POJO ? Jan 15 12:36:27 ah got it. plain old java object. Jan 15 12:36:44 pduin, mucho thanks. Jan 15 12:37:39 stkim1 not espesically recommending ormlite to you though. Kind of depends on what you need from it. Jan 15 12:39:51 I'm using it in a very database heavy application, I saved me a lot of time in about all aspects of the DB. (Creating the DB schema, queries and such) Jan 15 12:40:24 Its all about finding the right tool for the job Jan 15 12:41:33 totally agreed. Jan 15 12:42:09 I just finished porting an database-heavy (coredata heavy) app to android and realised that ContentProvider is like an nightmare. Jan 15 12:42:47 I used to enjoy using it as much as I could but then I just woke up and looking for something else. I'll give it a shot to ormlite. Jan 15 12:44:30 Looks like we are in kind of the same situation :). Unfortunately havent found anything as easy as coredata for Android though. Jan 15 12:45:34 Should all AlertDialog.Builder's be in a separate DialogFragment? Jan 15 12:59:16 guys, although deprecated, is there anyway i can immitate a failure of GCMRegistrar.register ? Jan 15 12:59:27 that is, I want this function to fail. Jan 15 12:59:56 hello, iam programming a widget and want to use a preferenceScreen. Usually those dont seem to use buttons like "save" for changes but the hw-button "back". For the first drag&drop on the screen this hw-back-button cancels the dropping. What is the common way to activate the widget using a preferenceScreen? Jan 15 13:08:58 weltio , no idea. Jan 15 13:12:36 Is there any deprecated scanner? Jan 15 13:16:59 hi peeps anyone knows of a library like this -> http://d13yacurqjgara.cloudfront.net/users/191982/screenshots/1261507/lrh-results.jpg I am looking for a similar listview with overlays and resizable images Jan 15 13:17:48 This is rather easily done with the normal layouts. Jan 15 13:19:38 tagrudev, should be peanuts using ordinary layouts. Jan 15 13:20:22 ogamita, if you know how to press the right buttons, this should not take you more than 5 mins. Jan 15 13:25:45 alohz Jan 15 13:26:06 trying to enable google game services on one of my apps Jan 15 13:27:12 linked the app, followed everything thats necessary, and including the sdk with the app. but nothin shows up Jan 15 13:27:51 anyone got any expirience with google game services? Jan 15 13:39:52 Nope Jan 15 13:40:08 Hey guys. Jan 15 13:40:12 Is it possible to update the shareIntent when clicking on the Share button in the ActionBar? Jan 15 13:40:14 Hiya Jan 15 13:40:41 So I'm having troubles, and rather than sob for hours and maybe set a fire I thought I'd come here and maybe somebody could tell me just how I screwed the pooch on this one. Jan 15 13:40:52 :p Jan 15 13:42:19 R.id.imageView1 doesn't exist in my project's R.id, even though the XML is fine and I've cleaned and rebuilt. Jan 15 13:42:24 This saddens me. Jan 15 13:42:48 Restart IDE? Jan 15 13:42:48 which IDE are you using? Jan 15 13:42:57 eclipse. Jan 15 13:43:26 Is that....known to do this a lot? Jan 15 13:43:40 yes i had issues with that Jan 15 13:43:42 Because I'm new to this android buggery and if so, I had no idea. Jan 15 13:43:48 * JuiceSSH remembers getting fed up with restarting Eclipse for that issue before he moved to Android Studio Jan 15 13:44:01 yeah same with me .. on Android Studio now Jan 15 13:44:05 ...So I should move to android studio after this project is done then. Jan 15 13:44:07 Check. Jan 15 13:44:30 But I can just restart it and it'll all be peachy? Jan 15 13:44:36 try it Jan 15 13:44:56 I seem to remember that if there is an error elsewhere in your project, the resources (inc ID's) won't be generated properly Jan 15 13:45:01 visual studio and eclipse have that in common sometimes it breaks and then you need to restart it Jan 15 13:45:26 Yeah, I painstakingly checked everything else. Jan 15 13:45:45 It's not an issue with the code, it's just....the program, far as I can tell. Jan 15 13:46:00 Immaterial, have you restarted to check if it works? Jan 15 13:46:10 Doing so now. Jan 15 13:46:44 ...Nope, no change. Jan 15 13:46:54 Well what the hell, then, there must be an error somewhere that I missed. Jan 15 13:47:04 That's decided, it's time to set a fire Immaterial Jan 15 13:47:11 * JuiceSSH gets the petrol Jan 15 13:47:20 Indeed. Jan 15 13:47:39 *Note: Eclipse sometimes likes to add an "import android.R" statement at the top of your files that use resources, especially when you ask Eclipse to sort or otherwise manage imports. This will cause your make to break. Look out for these erroneous import statements and delete them.* Jan 15 13:47:50 make sure that didn't happen Jan 15 13:47:57 is there any easier way to get a signed apk instead of modifing the build.gradle in AS? Jan 15 13:48:02 I know, I replaced that import with com.company.projname.r Jan 15 13:49:11 since when has this been happening Jan 15 13:49:17 did it work and then stop? Jan 15 13:49:23 did you upgrade your build tools? Jan 15 13:49:37 hey there. I'm looking for someone with a HTC One X+ Jan 15 13:49:44 as of version 22 you need to install Android SDK Build-tools Jan 15 13:49:47 Since about an hour ago. Jan 15 13:49:47 to help me debug a problem Jan 15 13:50:05 I'm trying to trace it back to the source, though. There's no entry in R.java Jan 15 13:50:23 did you upgrade android sdk in the past hour? Jan 15 13:50:29 Nope. Jan 15 13:51:31 Even if that were the case, it wouldn't be an issue because I have build tools. Jan 15 13:52:01 If I hastebin the XML and code (They're short) could somebody possibly point me in the right direction> Jan 15 13:52:12 just checking all the boxes Jan 15 13:52:26 * JuiceSSH gets the petrol Jan 15 13:52:27 Immaterial: yes. Jan 15 13:52:32 Whoops Jan 15 13:52:52 after the restart try to clean it again Jan 15 13:53:04 and then instead of rebuild do a normal build Jan 15 13:53:12 Okay. Jan 15 13:53:21 and make sure there is still an android nature in the project Jan 15 13:53:40 Oh. Jan 15 13:53:44 Yeah, issue fixed. Jan 15 13:53:52 kk cool Jan 15 13:53:56 Thank fuck, too, because this thing's due on friday. Jan 15 13:53:57 eclipse is very buggy Jan 15 13:53:58 Hahaha. Jan 15 13:54:07 move to AS asap Jan 15 13:54:33 That is the plan, I imagine I'll have to do more work with android for the company. Jan 15 13:54:38 Does AS cost Jan 15 13:54:40 ? Jan 15 13:54:42 nope Jan 15 13:54:43 free Jan 15 13:54:53 Heeeeell yeeeeeeaah. Jan 15 13:54:55 its built ontop of the community version of intelliJ Jan 15 13:55:01 its 100 times better than eclipse Jan 15 13:55:15 And thanks for taking time to help me out, man. Jan 15 13:55:20 no worries Jan 15 13:55:23 I was so fucking confused. Jan 15 13:55:23 just glad its working Jan 15 13:55:46 hi, i extended sqliteopenhelper class and also extended baseadapter in a separate class. baseadapter have to pass application context as parameter but android.app.Application.MainAtivity.this gives me error in baseadapter. how to pass application context from baseadapter? Jan 15 13:56:40 jaami-win, you cant you have to pass it into the constructor of your adapter Jan 15 13:57:04 for example public baseadapter(Context context) { mContext = context; } Jan 15 13:57:15 Which is prefered, preferences from XML or from code? Jan 15 13:57:16 Mornin'! Jan 15 13:57:16 then when you create the adapter you have to pass in the context Jan 15 13:58:40 Immaterial: Android Studio has an import routine to import Eclipse projects too... Jan 15 13:58:42 :) Jan 15 13:59:58 is there any easier way to get a signed apk instead of modifing the build.gradle in AS? Jan 15 14:00:22 lemonxah , thank you Jan 15 14:01:57 JuiceSSH, only if you first export from Eclipse to Gradle Jan 15 14:02:21 smallfoot-, from xml is a bit deprecated but still easiest to change Jan 15 14:02:35 I see Jan 15 14:02:39 i dislike it from code cause its almost impossible to maintain Jan 15 14:02:51 speicially if there are too many ppl working on the project Jan 15 14:02:57 I see Jan 15 14:03:01 but Google recommends code? Jan 15 14:03:09 and it also auto saves and reads from the sharedPreferences Jan 15 14:03:14 not really Jan 15 14:03:18 I see Jan 15 14:03:26 thought you said from XML was kinda deprecated Jan 15 14:04:19 well if you want to support older platforms you have to use addPreferencesFromResource(R.xml.preferences_main); Jan 15 14:04:25 that call is deprecated Jan 15 14:04:35 in the new versions of the api Jan 15 14:04:39 oh I see Jan 15 14:04:52 but the new version of the API has better calls and they also have preference fragments Jan 15 14:05:03 no worries jaami-win Jan 15 14:05:27 i should get stackoverflow rep for this help :) hehe Jan 15 14:07:18 Morning Jan 15 14:07:50 misterli: Whats the logic behind not wanting to do it via build.gradle? We use release and debug configurations in the build.gradle which automatically proguard & sign release build. It's pretty easy to setup, I can show you our config if you want? Jan 15 14:13:12 Hi. Are samsung phones special ? My app widget works on my HTC Velocity, and the android emulator, but doesn't work on a samsung Note 3. Jan 15 14:14:43 misterli: Whats the logic behind not wanting to do it via build.gradle? We use release and debug configurations in the build.gradle which automatically proguard & sign release build. It's pretty easy to setup, I can show you our config if you want? Jan 15 14:15:06 Oh ffs. I need to stop using a split tmux for terminal & irc Jan 15 14:15:21 * JuiceSSH keeps hitting up, enter to rerun stuff Jan 15 14:17:17 lemonxah, my app seems to use PreferenceFragment AND addPreferencesFromResource() Jan 15 14:17:43 sure that is fine Jan 15 14:17:55 i will check what the new way was to add Jan 15 14:18:18 addPreferencesFromResource() is listed as deprecated since API 11 tho Jan 15 14:19:57 are you going to support 2.3.3 or lower? Jan 15 14:20:01 nope Jan 15 14:22:18 smallfoot-, the reason its deprecated is cause they added the PreferenceFragment Jan 15 14:22:28 and the preference fragment uses the files Jan 15 14:22:29 http://developer.android.com/reference/android/preference/PreferenceFragment.html Jan 15 14:23:20 sry i dont have a lot of experience with Preference Fragments cause we still support android 2.2 Jan 15 14:23:42 I see Jan 15 14:23:53 I looked at the URL you provided, and the example code still calls "addPreferencesFromResource" from the Fragment Jan 15 14:23:56 and the addPreferencesFromResource() call in the PreferenceFragment isn't deprecated as far as i know Jan 15 14:24:13 oh, I see! Jan 15 14:24:17 but the addPreferencesFromResource() in Preference Activity is Jan 15 14:24:19 That is so confusing Jan 15 14:24:22 I see! Jan 15 14:24:25 wow, that is confusing! lol Jan 15 14:24:35 yeah :) Jan 15 14:25:20 http://developer.android.com/reference/android/preference/PreferenceFragment.html#addPreferencesFromResource%28int%29 Jan 15 14:25:22 so you should still do it via xml ofc :) just using the PreferenceFragment is the preferred way Jan 15 14:25:24 yes this doesn't mention any deprecation Jan 15 14:25:33 I see Jan 15 14:25:47 then I am doing what I'm supposed todo, because I do it with PreferenceFragment that uses XML Jan 15 14:25:54 yes Jan 15 14:26:17 I was just confused, I thought I was doing something deprecated when I called addPreferencesFromResource() but apparently that is only if I call it from Activity not from Fragment Jan 15 14:26:34 yes Jan 15 14:26:50 glad its all cleared up Jan 15 14:26:56 Thanks Jan 15 14:27:15 no worries Jan 15 14:27:28 Today I show an About dialog using the AlertDialog.Builder(), should I move that code into a DialogFragment? Jan 15 14:27:50 The code that calls the AlertDialog.Builder() is right now in the MainActivity Jan 15 14:28:23 imho theres nothing wrong with the builder for simple dialogs Jan 15 14:29:34 a fragment makes retaining its state easier iirc Jan 15 14:29:38 i prefer dialogFragments for the pure reason Jan 15 14:29:41 on screen rotation Jan 15 14:29:47 the dialog will still be shown Jan 15 14:30:05 dialog builders' dialogs will go away Jan 15 14:30:10 Annnd now with these new additions the program's crashing every time I use the onClick. Jan 15 14:30:25 thats fun Immaterial Jan 15 14:30:42 Question though, do I need to do anything to be able to access the internet, write to internal storage and all that kinda thing? Jan 15 14:31:01 you need permissions in the manifest Jan 15 14:31:08 Would that cause it to crash, if I did not have use permissions, though? Jan 15 14:31:19 Jan 15 14:31:21 yes Jan 15 14:31:25 Oh. Jan 15 14:31:27 Well okay then. Jan 15 14:31:30 it will crash if it does not have the permission Jan 15 14:31:57 Cause yeah, code looks fine. Jan 15 14:32:23 that line i posted paste it in your AndroidManifest.xml file Jan 15 14:32:55 I'm putting in the permissions for camera and internet access now. Jan 15 14:33:28 for the camera you also need a uses-feature Jan 15 14:33:32 like Jan 15 14:33:42 Ohhh. Jan 15 14:33:49 See, as I said I'm really new to this, so. Jan 15 14:33:54 its ok Jan 15 14:34:16 the required="false" on that line will make your app compatible with devices that doesn't have a camera Jan 15 14:34:27 but if you need a cam for your app then it needs to be required Jan 15 14:34:29 I had to take all the code that fucked the old client and put it into it's own to see how I can make it work. Jan 15 14:34:32 Because I know it works. Jan 15 14:35:05 guys, what theme does whatsApp use to show the pop up notification when a message arrives ? Jan 15 14:35:24 Never used that app Jan 15 14:35:32 But Android SDK have a notification API Jan 15 14:35:55 Do I uh. Do I need to request permission to write to internal storage? Jan 15 14:35:58 tonySoprano9099, http://developer.android.com/guide/topics/ui/notifiers/notifications.html Jan 15 14:36:40 Immaterial, list of permissions: http://developer.android.com/reference/android/Manifest.permission.html Jan 15 14:37:16 Immaterial, No I think all apps have access to internal storage Jan 15 14:37:31 Okay, so that should work fine then. Jan 15 14:37:57 smallfoot-, either you did not read my question, or you have not read the link you posted. Jan 15 14:39:11 tonySoprano9099, Since I never used WhatsApp, I don't know what kind of notifications it does... Jan 15 14:40:24 well, ok. Jan 15 14:41:20 has anyone had success reusing bitmaps with BitmapFactory? Jan 15 14:41:48 I have 6-7 jpg images all the same DPI and resolution, but I constantly get an exception of not being able to reuse the bitmap Jan 15 14:42:00 (I have set them as mutable) Jan 15 14:44:36 ...Okay so it's not the permissions. Jan 15 14:44:39 Shit. Jan 15 14:46:33 Does anyone know if its possible to update a shareIntent when the user clicks on the share button in the ActionBar? Seems more efficient than update on every keypress Jan 15 14:47:24 why do I still get a white background inside my layout when it is chosen Theme.Holo.Light.Dialog.Alert ? Jan 15 14:47:24 Does someone know how I build an apk in IntelliJ with Gradle? I'm getting tons of errors when just setting up the artifact as usually. Jan 15 14:48:08 is there any easier way to create a signed release APK then using the build.gradle crap shit configurations? Before it was easy possible with create signed apk Jan 15 14:49:07 misterli, Build -> Generate Signed APK... Jan 15 14:58:40 smallfoot-, what will happen if I enable proguard? Will it still give me valid references in stacktraces for my app? Jan 15 14:59:22 Dreeass: no, but it will give you a mapping file which will let you unwind the stacktraces Jan 15 14:59:44 it will be different for every build, so you have to archive that text file for each build you do Jan 15 14:59:49 (well, each build you release) Jan 15 14:59:57 You can also configure proguard to obfuscate class/method names, but not the filename/line number Jan 15 15:00:13 evanc, so it's better to only use it for release builds? Jan 15 15:00:18 So then you can normally get away without checking the mapping and just open the file + go to that line Jan 15 15:00:20 Dreeass, No Idea Jan 15 15:00:36 Dreeass: For speed, certainly Jan 15 15:00:44 Proguard adds another few mins to our build Jan 15 15:00:49 Dreeass: yes Jan 15 15:01:00 JuiceSSH, I guess I'll just make a new key when I'll release it. Thanks. Jan 15 15:02:04 I'm getting this huge error when trying to compile the project then smallfoot-. Jan 15 15:02:21 http://hastebin.com/rebukakufa.avrasm Jan 15 15:02:29 JuiceSSH, is JuiceSSH open source? Jan 15 15:19:00 Hi all. I'm having some problems with Bluetooth 4.0. I can successfully connect and write to the device. However when I disconnect, and then reconnect - i'm unable to getServices or characteristics. If I reset Bluetooth it works again. Has anyone else had this problem? There's an SO thread about someone else having the same problem, but no solutions are Jan 15 15:19:00 offered. Any ideas? http://stackoverflow.com/questions/17870189/android-4-3-bluetooth-low-energy-unstable Jan 15 15:35:59 I use Android Studio 0.3.2 and it find no updates :s Jan 15 15:37:48 it says last checked for updates 2 mins ago Jan 15 15:37:52 and no updates available Jan 15 15:37:57 and im on canary channel Jan 15 15:38:37 strange... I had heard there were some issues with the updates, but I doubt they'd pull them Jan 15 15:39:10 I see Jan 15 15:39:51 instructions to install manually http://tools.android.com/download/studio/canary/latest Jan 15 15:42:35 raaaaaaaaaaaaage Jan 15 15:42:46 It was super effective! Jan 15 15:42:46 I need to find out when the Android MediaPlayer drops frames Jan 15 15:43:01 anyone have any ideas? I'll try anything at this point Jan 15 15:43:23 BrutusBoots: didn't someone answer this a few hours ago? Jan 15 15:43:33 Jacky: really? Jan 15 15:43:41 It was either this or VideoPlayer Jan 15 15:43:45 I'm not sure Jan 15 15:43:53 but that question looks familiar Jan 15 15:43:59 damn Jan 15 15:44:03 would love to see that conversation Jan 15 15:45:30 can't ack my chat logs :/ Jan 15 15:45:38 it's like 80mb Jan 15 15:46:09 are these channels logged anywhere? Jan 15 15:46:40 can you send me that log? :) Jan 15 15:47:33 no, these channels are not logged anywhere publicly-accessible. Jan 15 15:47:42 if they are: they shouldn't be Jan 15 15:49:49 BrutusBoots: I have the log till 14:30 . nothing of video/media player. anybody else for the time inbetween? Jan 15 15:50:09 yeah I searched my log and don't see anything Jan 15 15:50:37 and I'm 24+h back Jan 15 15:50:41 mediaplayer has callbacks for dropped frames, iirc Jan 15 15:50:50 Can I use scala instead of java and still leverage adt? Jan 15 15:51:40 no Jan 15 15:51:42 adt sucks Jan 15 15:51:48 well, allegedly you canm Jan 15 15:51:51 but adt still sucks Jan 15 15:51:53 pfn: MEDIA_INFO_VIDEO_TRACK_LAGGING ? Jan 15 15:51:54 use intellij Jan 15 15:52:03 BrutusBoots, possibly, I don't recall Jan 15 15:52:06 intellij>* Jan 15 15:52:38 Yeah my buddy said I should use it instead, just curious what don't you guys like about adt? Jan 15 15:52:52 pfn: I haven't had any luck. I can see where dropped frames happen in AwesomePlayer.cpp and NuPlayer.cpp but I can't seem to access that info anywhere Jan 15 15:53:05 BrutusBoots, I guess the info isn't forwarded Jan 15 15:53:14 must have been a different player I was using Jan 15 15:53:50 pfn: yeah, I've been at it for days and the MediaPlayer doesn't seem to give much info at all Jan 15 15:53:52 BrutusBoots: does this help? http://developer.android.com/reference/android/media/MediaPlayer.OnInfoListener.html#onInfo(android.media.MediaPlayer, int, int) Jan 15 15:55:06 m1hael: Those handlers look great but they don't tell much. I'm just trying to gather some general stats about the media as it's playing. Even the onBuffering listeners... they don't fire for HLS streams Jan 15 16:00:11 BrutusBoots, oh, you're using HLS Jan 15 16:00:17 HLS in MediaPlayer is garbage and unusable Jan 15 16:00:34 maybe it's been fixed in 4.3-4.4, but in 3.0-4.2 it is completely unusable Jan 15 16:00:42 you should use a 3rd party implementation Jan 15 16:00:47 I'm using FULL_SCREEN which is causing the navigation to disappear Jan 15 16:01:05 however i'm eating the onKeyDown event for vol up/vol down and for some reason the nav keys dont show up again Jan 15 16:01:23 BrutusBoots, mediaplayer hls is only suitable if your only goal is to play a stream dumbly without any control/information at all Jan 15 16:01:26 i'm forcing full screen so i'm not sure Jan 15 16:01:40 Should my MainActivity have lots of private methods, or should those be moved elsewhere? Jan 15 16:02:15 pfn, I'm getting the following error when I'm trying to compile the app to an apk from the Gradle thing: http://hastebin.com/rebukakufa.avrasm Jan 15 16:02:17 smallfoot-, that's programming practice and design Jan 15 16:02:31 pfn, that was the error I was talking about yesterday. Jan 15 16:02:35 Dreeass, your xml is busted Jan 15 16:03:03 oh, are you on intellij 13? Jan 15 16:03:03 pfn, I haven't changed anything in the Gradle stuff. Jan 15 16:03:07 pfn, Yes. Jan 15 16:03:08 or android studio Jan 15 16:03:20 IntelliJ 13 Jan 15 16:03:33 file a ticket on youtrack.jetbrains.com Jan 15 16:03:42 I dunno what it is Jan 15 16:04:17 pfn, it works fine when I'm using an emulator. Does that change anything? Jan 15 16:04:30 huh? Jan 15 16:05:00 pfn, there aren't any errors when testing it on an android emulator from IntelliJ ADB. Jan 15 16:05:10 emulator or device doesn't matter... Jan 15 16:08:34 pfn, I wouldn't have this problem in Eclipse... Jan 15 16:08:46 I don't care? Jan 15 16:08:54 if you don't have this problem in eclipse, use eclipse Jan 15 16:09:19 anyway, I have no idea what error you're getting or when Jan 15 16:10:44 am I right in saying that I don't need to be particularly prudent about cleaning up running services in my application? Jan 15 16:10:56 clean up in what sense Jan 15 16:11:01 if you don't need the service, it should go away Jan 15 16:11:10 How do you handle stale results that can occur when using the back button? I hate to auto refresh because the user might not understand why that is happening. Maybe I could display a dialog that just gives a message with a button to refresh? Jan 15 16:11:55 pfn: yeah, I'm only concerned with Android 4.1+ Jan 15 16:12:05 BrutusBoots, yes, unusable then Jan 15 16:12:09 unless you're targeting 4.3+ Jan 15 16:12:27 and I'm unsure if they actually fixed it in 4.3+ Jan 15 16:15:13 pfn: it seems to be working ok for me on 4.1+ Jan 15 16:15:28 aside from having zero useful playback info lol Jan 15 16:15:36 yeah, if you don't want onBuffering, seek, pause/resume, etc. to work Jan 15 16:15:36 but the streams do play Jan 15 16:15:44 yeah exactly Jan 15 16:23:44 I have a simple question. I am a bit confused. I just want to learn phonegap. But when looking for tutorials online I end up studying other stuff. Do I need to learn android or java if I am trying to just learn phonegap development? Jan 15 16:28:55 You need to learn android or you will windup making bad apps Jan 15 16:29:01 You don't want to make bad apps, right? Jan 15 16:35:29 Should all strings be in strings.xml or should each activity have an own strings_MainActivity.xml file? Jan 15 16:36:06 so if I am aiming to become a Phonegap developer I need to learn Android development? Jan 15 16:37:00 Whats the point of learning Phoengap then? I thought the whole point was to make development easier by using HTML, CSS and Javascript for all the mobile platforms. Jan 15 16:37:24 SprkDev: that's what the salesman will tell you Jan 15 16:39:09 SprkDev: also, no one in here said that learning Phonegap is worthwhile :) Jan 15 16:41:10 go native! Jan 15 16:42:07 hi, im developing for a device that has 2.3.3 api with android studio. as it stands right now, i only have access to the holo themes, which all require higher API levels. where can i get these? (i checked http://developer.android.com/design/style/themes.html but that says google only provides holo) Jan 15 16:51:20 So in short when learning phonegap, I need to learn android development in its entirety. Correct? Jan 15 16:51:58 not really, but phonegap leads to shitty apps Jan 15 16:58:07 So am I wasting time with android tutorials if I am developing on phonegap. I don't get it. Can someone please clarify? Jan 15 16:58:46 this is an android development channel, not a phonegap development channel. Jan 15 16:59:15 If you don't understand how android works, you will make shot, its the same as if a server side Java developer just starts building android apps Jan 15 16:59:19 well I've asked this question on phonegap channel and no one answers. There isn't a single post there. Jan 15 16:59:25 we mostly try not to write shitty apps here, and encourage others to do the same. Jan 15 17:05:06 irc is often not the best place to go for help Jan 15 17:06:02 Mark Murphy comes off as such a dick even in emails Jan 15 17:06:32 Does anyone use apprate? Jan 15 17:33:03 Can you use Gradle with Eclipse ADT? Jan 15 17:35:10 no Jan 15 17:35:32 mark murphy just comes off as a dick, period Jan 15 17:35:40 I really don't like any of his answers on stack overflow Jan 15 17:38:49 er, mm is the commonsware guy, right Jan 15 17:40:26 pfn yeah Jan 15 17:41:29 can you use Maven with an ADT project? I've been the only one working on our Android app until now. Have a bunch of libraries referenced in my workspace (ABS, pull to refresh, etc.) that will be a pain to setup on other developers computers Jan 15 17:44:15 no Jan 15 17:44:25 eclipse is dumb and don't support shit Jan 15 17:44:37 not to mention, eclipse doesn't support apklib at all Jan 15 17:52:20 is the loopj-async-http onFailure not called when there is a timeout? Jan 15 18:00:43 jonc-1: i had issues with that too Jan 15 18:00:46 i ended up dumping the library Jan 15 18:02:30 any decent alternatives? Jan 15 18:08:15 What special considerations do I need to take into account before publishing an update for an app with IAP? Jan 15 18:08:33 Will the now-obsolete versions be unable to make purchases? Jan 15 18:10:34 I don't believe that would be the case, but there was something with testing that involved versions have to match up… Jan 15 18:23:22 funkbox, happen to know of any decent alternatives to loopj's async library? Jan 15 18:24:03 volley? Jan 15 18:24:55 jonc-1: an easy rest library you can use is retrofit Jan 15 18:33:40 jonc-1: i use retrofit + okhttp Jan 15 18:33:41 is nice Jan 15 18:33:58 such rest. so nice. very http. Jan 15 18:34:11 much standards Jan 15 18:34:28 it has some downsides, like no progress updates for files and other things Jan 15 18:34:51 the code also uses 2 spaces for tabs and this. everywhere which is just horrid Jan 15 18:35:24 wat Jan 15 18:35:33 next you'll be complaining it doesn't prefix fields with 'm' Jan 15 18:35:39 JakeWharton: yes. Jan 15 18:35:46 my code uses the m prefix Jan 15 18:35:54 ouch. i'm so sorry for your loss Jan 15 18:36:14 selet * from tblTable where fldField = ? Jan 15 18:36:25 i thought about forking all the square libraries and making mRetrofit, mOkHttp, mPicasso Jan 15 18:36:35 I always think of that when I see the 'm' in member Jan 15 18:36:56 in C# i purge the m prefixes, but in java they're handy Jan 15 18:39:31 I'll write an IntelilJ plugin that automatically prefixes fields with 'm' and toUpper's the first character when rendering in the editor Jan 15 18:39:53 JakeWharton: it's for the colorblind, I take it? Jan 15 18:40:18 haha. yeah i guess. Jan 15 18:43:36 make an intellij plugin that allows writing foo.bar and it generates getBar() and setBar(x)... Jan 15 18:44:39 write an intellij plugin that prefills my application with the result of external requests; thus doing away with all this silly asynchronous and networking nonesense. Jan 15 18:59:33 Has anyone noticed android studio being slower after 0.4 update? Jan 15 18:59:39 Nope Jan 15 19:00:41 It's actually a bit faster for me Jan 15 19:03:50 is android studio open source? Jan 15 19:03:58 No. Jan 15 19:03:59 zzxx: it's based on IntelliJ Jan 15 19:04:06 based-ish Jan 15 19:04:22 pBlack: I wanted him to figure it out, no fair D: Jan 15 19:04:29 :) Jan 15 19:04:53 welp if anyone's in New York City and loves Android; check out www.meetup.com/android-developers-nyc/events/154055432/ Jan 15 19:05:14 sharing that good news, ya digg? Jan 15 19:13:47 Shit now I remember why I am using 1.4.3 of loopj's library. One of the libraries I am required to use has a dependency on it Jan 15 19:21:48 nice - 165 attending that NYC event Jan 15 19:22:40 When using an ArrayAdapter, where would be the best place to check if the current item is the *last* item in the collection, and perform an operation if so? getView? Jan 15 19:25:13 bricker: by current, you mean visible? Jan 15 19:26:07 I made a custom type of ImageView, and would declare it as "ImageView mImageView = new CustomImageView();", and it the app will run and compile fine, but I cannot access any of the functions specific to the CustomImageView class. I can however access them if I instead typed "CustomImageView mImageView = new CustomImageView();". I don't know why though Jan 15 19:27:42 Yiati: You have a ImageView object on your hands. Jan 15 19:28:01 that's easy, getView Jan 15 19:28:04 yiati: it's because you're casting it to an ImageView so you will only have access to ImageView functions Jan 15 19:28:14 What Alexfu said. Jan 15 19:28:30 Do CustomImageView mImageView = new CustomImageView(); Jan 15 19:28:45 Right I could but I just wanted to be more generic in passing it off Jan 15 19:29:03 Do that after you use your functions. Jan 15 19:29:04 I guess I could just type cast it again when it gets to where it needs to be Jan 15 19:29:07 yeah Jan 15 19:29:08 Your "down-casting". Jan 15 19:29:15 yiati: you can still pass it to a function that takes a generic ImageView.... Jan 15 19:29:51 hmm yeah I don't know what I'm thinking :P Jan 15 19:29:53 lol Jan 15 19:30:09 this is java basics here. not really Android specific. Jan 15 19:30:49 yeah I know I always think the wrong way up and down inheritance Jan 15 19:31:06 dyslexic oop is fun Jan 15 19:36:59 has anyone noticed the pressing the ime search button doesnt close the keyboard? Jan 15 19:37:18 on JB Jan 15 19:37:19 alexfu: yes Jan 15 19:37:42 bricker: do you know if it's a bug or intentional? Jan 15 19:38:14 proguard is giving me this warning, i have zero idea on how to resolve it: library class android.content.Intent depends on program class org.xmlpull.v1.XmlPullParser Jan 15 19:38:39 alexfu: sorry, was responding to your earlier question re: ArrayAdapter Jan 15 19:38:41 I put "-keep class org.xmlpull.v1.**" in proguard-project.txt but nothing happened Jan 15 19:39:00 bricker: oh Jan 15 19:42:31 Hey guys. I'm having an issue with ADB. The phone is booting but then it loops and ADB just stops working. Jan 15 19:43:28 Would it be a kernel issue? Jan 15 19:44:10 explodes: did you maybe put something serializable that was xmlpullparser in intent as extra Jan 15 19:44:22 and send it to some other application? Jan 15 19:56:06 if I have my source image files (.psd, .xcf, .svg etc) in a dir called "drawable-source" inside the res dir, will that cause issues or confusion for android? Jan 15 19:56:26 Is there a non-fragment alternative to setListShown()? Jan 15 20:10:42 Hey guys, question about android studio (0.4.2) and google play services. I added play services as a dependency to my build.gradle. it all works fine, i can see the map. However i cannot use anything from com.google.android.gms.maps in my code as the import fails.. what to do? Jan 15 20:10:49 zzxx, try it and check to see if it was added to the unsigned apk (just a zip file, can open with winrar iirc) Jan 15 20:11:16 danilobuerger, Tools->Android->Sync with gradle Jan 15 20:11:42 jonc-1 already did that Jan 15 20:11:58 when in doubt restart it? Jan 15 20:12:03 also done already Jan 15 20:13:07 jonc-1: thanks I'll try that Jan 15 20:15:51 What does setEmptyView() on a ListView actually do? Jan 15 20:16:06 Adapter, not ListView Jan 15 20:16:28 Oh, my bad, probably BaseAdapter doesn't have an implementation for that Jan 15 20:16:41 where is the standard place to put .tmx files? Jan 15 20:17:39 autrilla what class are you talking about Jan 15 20:19:06 explodes, BaseAdapter Jan 15 20:19:14 Or ListView Jan 15 20:19:18 Yes, it should be on ListView Jan 15 20:20:07 It is a view that is shown when there is nothing in the adapter Jan 15 20:20:20 anyone here using or used a moto g for development? Jan 15 20:22:12 Can you change a merchant's business name once you've set it up? Jan 15 20:23:11 anyone know how to push an apk to the google play store with an API vs the web interface? Jan 15 20:23:54 explodes, yes, but how does the adapter tell the ListView if there's nothing? Via getItemCount? Jan 15 20:26:46 mm possibly Jan 15 20:28:52 test it Jan 15 20:31:54 agargiulo: uhm. no api for that... Jan 15 20:32:09 alexfu: that's shitty Jan 15 20:32:34 so companies have people that just have to upload APKs through the website, instead of scripting that? Jan 15 20:32:40 ewwwww Jan 15 20:33:33 if you can get a non-javascript based site you could pretty easily write something to mimic the http calls to send it Jan 15 20:35:15 true Jan 15 20:35:22 its a good user interface Jan 15 20:35:25 yeah Jan 15 20:35:50 usually the develop will do the publishing Jan 15 20:35:53 so its not really a big deal Jan 15 20:35:53 it would be nice to be able to curl some api or something Jan 15 20:36:17 I do like that the store supports alpha and beta testing Jan 15 20:36:19 that's nice Jan 15 20:47:02 hey can anyone confirm what version of the google maps api I should be using with my MapActivity Jan 15 20:47:03 man, I really want to use setListShown(), but changing to a Fragment strategy will be a lot of work... Jan 15 20:47:49 I see lots of examples for v2 however when I work in web things it is version 3 :S not sure if things are different for Android dev? Any help would be great. Jan 15 20:48:03 matt1982 v2 Jan 15 20:48:25 theblang, many thanks Jan 15 20:48:26 matt1982 the v3 version is for the JavaScript API Jan 15 20:48:44 I thought it might be however was just about to check Jan 15 20:59:36 I just need a java tmx parsser, pure java source that I can use for android, what do you guys use (not andengine)? Jan 15 21:08:11 I wonder why Chris Bane's pull to refresh isn't part of the AOSP api. Just curious. Jan 15 21:13:05 dragorn saw the blackphone announcement :D Jan 15 21:14:51 g00s: yeah it's exciting Jan 15 21:15:37 hopefully they will provide more details on how the baseband will be separated from the main cpu; considering that its most likely compromised Jan 15 21:16:48 for example, sharing memory space, etc. not sure how that works these days Jan 15 21:16:54 dma access Jan 15 21:27:48 hm; so i updated java oracle yesterday and now AS gives me an internal error saying it could not find the other one - forgot where that is specified Jan 15 21:28:31 it won't start? Jan 15 21:29:48 it started, with issues. ok i found it, project structure Jan 15 21:30:57 but there is still a weird problem. Now when i go into Project Structure Dialog, All the Platform Settings options are gone Jan 15 21:41:49 If I am going to implement the Navigation Drawer, should I go ahead and convert my app to fragments? Jan 15 21:42:12 fragments ++ Jan 15 21:42:15 <|0xD34D|> yes Jan 15 21:43:47 Reason I ask is because the refactor is going to be a bit of a pain Jan 15 21:44:22 hello, i am trying to setup and run an emulator in eclipse. it seems to be running, but I cannot open the emulator window (or stop the process). Jan 15 21:44:37 I get and error: Emulator] NAND: could not write file /tmp/android... file exists Jan 15 21:47:24 I am running on Arch Linux Jan 15 21:48:34 Hi, i'm trying to send some data to an TCP socket on my same network but for some reason when running in an android application on my tablet i'm unable to connect. When running the same code in a java project on my pc i'm able to send the data to the server Jan 15 21:48:42 what could be the issue? Jan 15 21:50:44 Is it possible for an app to receive an OutOfMemory exception for a bitmap, if the system still has memory available? Jan 15 21:51:09 Is there a limit for the memory an app can use, even though the system might have additional memory available? Jan 15 21:53:26 I want to read in a while file as a string, what is the best way? Jan 15 21:53:28 http://developer.android.com/training/articles/memory.html have a read of this Jan 15 21:55:28 How do you deal with ids disappearing for a RelativeLayout layout_above and layout_below when you set Visibility to View.GONE? I'd like to be able to replace a child View without disrupting my RelativeLayout. Jan 15 21:56:58 I've added to my manifest so don't think thats the issue. Jan 15 21:59:11 gavilan2, heap is limited, regardless of system having more Jan 15 21:59:16 you can try android:largeHeap=true Jan 15 22:00:13 gavilan2, I have been working on a similar problem, by loading 4-5 1/2 screen size images I get out of memory exceptions Jan 15 22:01:06 I've even tried loading one and reusing the bitmap but constantly get an exception about not being able to reuse it Jan 15 22:01:41 jonc-1: did you implement caching ? Jan 15 22:07:23 ah! didn't look at my exception, NetworkOnMainThreadException Jan 15 22:07:25 damn you Jan 15 22:31:09 Hello. I have some method execution that can take ~1000ms to free resources I call with activity onDestroy. I wrapped it in a thread, but I don't see it being executed. Does execution in onDestroy get interrupts very quickly as the process of the activity is closed out? Jan 15 22:35:11 So I move my network connection to an different Activity, but now it's timeing out, while the local java app is able to connect using the same code (and IP and PORT). Jan 15 22:36:10 Ontani: can your device see that IP (and port, I suppse) Jan 15 22:36:58 download something like juice and test a simple telnet conn Jan 15 22:37:26 hmmm, its on the same network but i'm not able to ping the device (in terminal) Jan 15 22:37:41 that would explain alot ofcourse Jan 15 22:39:43 hmmm for some reason is the device IP not in the same network Jan 15 22:39:54 something went wrong with DHCP I guess Jan 15 22:40:49 thats just dumb, disconnect wifi and reconnect, now i'm getting the correct address Jan 15 22:41:12 haha brilliant setup there, huh? ;) Jan 15 22:42:45 No its something with my tablet, i've experienced this many times Jan 15 22:42:52 can't seem to keep the wifi connected Jan 15 22:43:04 guessing this is related to the same issue Jan 15 22:43:05 samsung ? Jan 15 22:43:10 acer Jan 15 22:43:22 i keep my samsung plugged in coz it has a habit of dropping wireless Jan 15 22:44:25 plugged in? base station? Jan 15 22:45:06 awesome, that was the issue, it's connecting and sending data without issues now Jan 15 22:45:28 thanks for the quick tip evanc Jan 15 22:45:37 plugged into the power, sorry... i only really use my tablet for dev, it's a POS Jan 15 22:45:48 aha Jan 15 22:46:13 I noticed the same behavior, when it's plugged into power it keeps the connection Jan 15 22:55:44 Is there a way to set formatted text on an app-widget hosted TextView [hopefully equivalent to using setText(Html.fromHtml(xyz")) on a local TextView] Jan 15 22:56:05 just like you do a post from a form what is the equivalent to post-ing as json format from android? Jan 15 22:56:41 http://pastebin.com/rSvEFh6x is it that? Jan 15 22:56:51 which is taken right from Posting content here Jan 15 22:56:58 http://developer.android.com/reference/java/net/HttpURLConnection.html Jan 15 22:57:39 there's nothing particularly special about posting data from android - the usual java code ought to do it. Jan 15 22:58:03 I never used java before Jan 15 22:58:08 ah. :) Jan 15 22:58:11 so i am really unsure of what has to be done hehe Jan 15 22:58:17 im trying to send it to nodejs Jan 15 22:59:40 does anyone have any suggested tools for performance testing headless android code? ideally something that could also help stay on top of performance regressions. Jan 15 23:01:29 tleyden well, there is this https://code.google.com/p/caliper/wiki/CaliperOnAndroid Jan 15 23:01:34 not sure if thats what you are looking for Jan 15 23:01:39 i haven't used it Jan 15 23:02:15 g00s or kbs can you link me to how I would do an equivalent ajax post on the web with a post from an android app Jan 15 23:03:35 g00s thanks! that looks like what I'm looking for .. checking it out Jan 15 23:15:23 should i be using sockets or http to send a form data Jan 15 23:17:51 i'm seeing an issue where on nexus one, nexus 4 and a lenovo idea pad (running a range from 4.2 - 4.3 where wifi connection seems to cycle it's ip addresses and reconnects to my wifi network approximately every 16 minutes and kills a network Socket that I have open. WifiLock seems to have no impact.. the wifi isn't turning off it's just cycling the connection to my ssid. Jan 15 23:18:33 the cycling issue doesn't seem to be improved or aggravated by being plugged in or not. Jan 15 23:18:35 so the library I'm maintaining is being published as an .aar in a maven repo (built via gradle). anyone know if its possible for eclipse users to consume this maven .aar? what plugin(s) would they need? Jan 15 23:20:27 LoneSoldier728: https://www.google.com/search?q=http+post+from+java&oq=http+post+from+java Jan 15 23:20:38 tons of examples all over the place Jan 15 23:20:50 if I want to change my actionbar's "home" button to the "up" button and then back to the "home" button within the lifetime of my activity Jan 15 23:20:52 how would I go about this? Jan 15 23:21:21 I've tried using getSupportActionBar().setDisplayHomeAsUpEnabled(false) Jan 15 23:21:23 but that doesn't do it Jan 15 23:21:38 getSupportActionBar().setDisplayShowHomeEnabled(false) also doesn't do it Jan 15 23:22:57 [fwiw - to answer my own question - looks like RemoteViews does handle formatted text on textviews by default.] Jan 15 23:23:38 Is anyone super familiar with okhttp here? I'm looking to see if I can fake Cache-Control response headers Jan 15 23:23:50 so that things will get cached at a client level. Jan 15 23:23:52 pray tell why Jan 15 23:24:11 I didn't know/think okhttp had a caching layer Jan 15 23:24:45 (I'm using the support library's actionbar) Jan 15 23:25:07 storkme: it honors HTTP caching semantics Jan 15 23:25:14 (optionally) Jan 15 23:25:42 hey JakeWharton thanks for javawriter, it's neat. Jan 15 23:26:06 bourbon: setDisplayShowHomeAsUpEnabled Jan 15 23:26:15 storkme: glad it's helpful. it's a fun little utility Jan 15 23:26:16 never before has feeling wrong felt so right Jan 15 23:26:43 bourbon: https://developer.android.com/reference/android/app/ActionBar.html#setDisplayHomeAsUpEnabled(boolean) Jan 15 23:27:02 followup question on app-widget (collections) is - there's getViewTypeCount() in RemoteViewsService.RemoteViewsFactory -- but no getItemViewType(position) -- how exactly is it going to work without the latter? Jan 15 23:30:11 Is there any resource on creating an app ui like the YouTube ui? Jan 15 23:30:18 anyone else seeing the wifi connection to an SSID cycling ip address periodically? not fixed by WifiLock.... kills Socket. Jan 15 23:30:25 With the minimizing videoview Jan 15 23:30:48 JakeWharton: Because using okhttp's cache is so much better than writing something at a higher layer :) Jan 15 23:31:01 http://stackoverflow.com/questions/21150498/passing-data-from-android-client-to-webserver Jan 15 23:31:05 anyone able to help me with that Jan 15 23:31:19 And, you know, server doesn't know what's going on so it always return Cache-Control: no-cache Jan 15 23:31:40 hwrdprkns: while i agree, i don't think you'll be able to change that behavior without some surpremely gross hacks Jan 15 23:33:27 anyone know Jan 15 23:34:13 use httpclient with httppost or something, LoneSoldier728 Jan 15 23:35:02 JakeWharton: ugh, thanks! Jan 15 23:35:06 I was afraid of that Jan 15 23:35:51 what is the or something lol Jan 15 23:36:01 i think you a word Jan 15 23:36:04 but is that all bankai, i have to just enable an http connection Jan 15 23:36:16 http://pastebin.com/rSvEFh6x Jan 15 23:36:19 something like that Jan 15 23:36:55 is there a problem with it being localhost tho? Jan 15 23:37:43 LoneSoldier728: take a look at a few apache examples- https://hc.apache.org/httpcomponents-client-ga/quickstart.html Jan 15 23:38:01 or if you're using WS or similar, use spring resttemplates Jan 15 23:38:44 or, since we're on the topic, check out okhttp ;) Jan 15 23:38:47 ok it makes sense but the get and post url - since it will be on a mobile device i can do a simple Jan 15 23:38:53 bankai_: or Retrofit Jan 15 23:39:10 localhost:3000/ Jan 15 23:39:58 JakeWharton: bah wish i had have known that a few months ago. >_< looks nice Jan 15 23:40:34 Yeah, so does anyone have any ideas about that YouTube ui? Jan 15 23:41:31 so should i look into retrofit it does look nice Jan 16 00:01:12 what do you think of java jersey? Jan 16 00:14:33 Hello all! I am trying to implement drill-down data navigation in my android program. I've weighed my options and it looks like ViewPager or ViewAnimator are my best options. I'm wondering though: has anyone had to implement this in their app and if so have you found a better solution? Thank you! Jan 16 00:15:26 I should mention that the data i'm dealing with is quite simple, and only the leaves of the navigation tree are actually somewhat less than rudimentary Jan 16 00:15:51 I'm basically drilling down from category->campus->thing Jan 16 00:15:55 simple stuff like that Jan 16 00:17:19 Hi, i'm trying ot implement a client for an EXISTING protocol, that utilizes UDP. The server also tends to send random messages to client, which client has to acknowledge, regardless of what else is client using. My uderstanding that i need to use a Service to maintains 2 threads, one for Rx and for Tx. The question is how should these threads communicate with UI? broacast receiver? Also best way to pass initial data to the service? with a binder? Jan 16 00:34:35 Hello all Jan 16 00:36:14 Could someone please explain me about intent-filters Jan 16 00:36:59 read http://developer.android.com/guide/components/intents-filters.html :) Jan 16 00:37:18 I read it online and couldnt get it.All i knw abt intent-filter tag is they are used during implicit intents Jan 16 00:38:23 I mean does intent-filter call any already installed program when we need to open an activity not supported by our application? Jan 16 00:39:40 they are used to resolve implicit intents Jan 16 00:39:46 sent from any application Jan 16 00:40:28 It takes in request and sends out requests to other applications.Am i right? Jan 16 00:40:39 it doesn't take in or send out anything Jan 16 00:41:06 It just says that the activity wants to a handle an implicit intent with those characteristics Jan 16 00:41:42 So is it better to use implicit or explicit intents? Jan 16 00:41:57 i always use explicit since i dont have much idea abt implicit Jan 16 00:42:19 it depends on what you want to do, obviously Jan 16 00:42:38 for navigating around in your own app, use explicit intents Jan 16 00:43:03 for doing something that might be handled by another app, use an implicit intent Jan 16 00:43:34 Got it! Thanks a lot Jesus, i'll try some examples now :D Jan 16 00:43:39 or if you want to handle something for another app, use an implicit intent Jan 16 00:43:54 Like sending an HTTP rquest? Jan 16 00:44:02 or rather, use an intent filter that matches those implicit intents Jan 16 00:44:11 no. :) Jan 16 00:44:40 like taking a picture, or making a phone call, or viewing a file of a certain type Jan 16 00:45:57 :D Jan 16 00:46:06 Got it thanks again Jan 16 00:46:09 :) Jan 16 00:46:17 or opening a URL in the default browser, whatever that is on that particular device Jan 16 00:48:19 some humor :) http://i.imgur.com/KHEiLJx.gif Jan 16 00:48:41 So it identifies the app automatically.right? Jan 16 00:48:43 i JUST closed the tab with that gif in it Jan 16 00:48:57 g00s_: you were attempting to help me the other day. any chance you could confirm this for me? Jan 16 00:49:08 g00s_: he resigned to the fact that that's how he was goign to be travelling up there pretty quickly Jan 16 00:49:13 Hi, i'm trying ot implement a client for an EXISTING protocol, that utilizes UDP. The server also tends to send random messages to client, which client has to acknowledge, regardless of what else is client using. My uderstanding that i need to use a Service to maintains 2 threads, one for Rx and for Tx. The question is how should these threads communicate with UI? broacast receiver? Also best way to pass initial data to the service? with a binder? Jan 16 00:49:51 udp for mobile? really? :p Jan 16 00:49:51 ruser: you would typically use a handler to communicate with the UI in that case Jan 16 00:50:08 you could pass initial data to service via intent extras Jan 16 00:50:27 ruser i had a similar problem, but with mqtt - i got the impression you were talking to multiple servers at the same time though. so i have one service, which contains N clients. each client has a Rx and Tx thread. responses come back via RxJava Jan 16 00:50:27 JesusFreke: i'd like to pass an object, such as server info which would include host, port, password Jan 16 00:50:48 ruser: just specify each field as an extra in the intent Jan 16 00:50:58 is this protocol a game server listing thing? Jan 16 00:51:08 g00s_: ideally i'd like to go with multiple connections at the same time,but for now maintain atleast one connection Jan 16 00:51:25 ruser also , you could just stuff it in the db and then notify the Uri Jan 16 00:51:33 and let the UI pick it up Jan 16 00:51:37 ContentObserver ;) Jan 16 00:51:45 or use otto, green robot Jan 16 00:51:54 g00s_: RxJava? Jan 16 00:52:15 each of my clients is an Observable Jan 16 00:52:50 the library takes some getting used to Jan 16 00:52:55 g00s_: oh god, you are talking greek to me. i take it is a pattern? already pre-made so to speak in android? or do i have to implement it on my own? Jan 16 00:53:13 JesusFreke: any advantage of usning non-local service? Jan 16 00:53:31 ruser then try ContentObserver, otto, or green robot event bus Jan 16 00:53:44 ruser: not particularly. It would make communications to/from your main process more complicated and use more memory. Jan 16 00:54:15 JesusFreke: you are sayign sharing a process space is using more memory then then doing IPC? Jan 16 00:54:25 and having 2 processes? Jan 16 00:55:08 ruser: you said using a non-local service. I'm taking that to mean a service that lives in a separate process from your main app Jan 16 00:55:36 and yes, having 2 processes will consume more memory than 1 :) Jan 16 00:55:59 JesusFreke: ah, right, kinda misread you. my bad Jan 16 00:56:34 g00s_: so RxJava is a thing... didn't realize it. but figured when i googled it Jan 16 00:56:55 yeah, works nice for some scenarios Jan 16 00:56:58 * Nilium added endianness support to his serialization library. Jan 16 00:56:59 Fun times. Jan 16 00:57:26 Nilium: why not just specify endiannes for the bytestream? Jan 16 00:57:26 rxjava too verbose Jan 16 00:57:48 only in java Jan 16 00:57:52 ruser: Because it's not in Java. Jan 16 00:58:13 Nilium: made an assumption here Jan 16 00:58:31 It's a C/C++ library (before someone gets a stick up their ass over using "C/C++", the interface is C, the implementation is C++). Jan 16 00:58:34 Nilium uses all the cool languages Jan 16 00:58:37 it's "rxjava" Jan 16 00:58:45 of course "only in java" Jan 16 00:59:04 It was the closest I could get to picking a portable language. Jan 16 00:59:06 the gradle examples are simple and terse Jan 16 00:59:12 can't speak for scala Jan 16 00:59:12 oh, only in java for endianness Jan 16 00:59:15 wabz: a game server management thingy, where gameserver sends bunch of random updates to the client managing it Jan 16 00:59:42 Only with Java classpath classes might be more specific Jan 16 00:59:47 g00s_: how did the threads notify ui about updates? Jan 16 01:00:01 ruser the UI was an Observer Jan 16 01:00:08 RxJava Observer, specifically Jan 16 01:00:39 pfn: rxjvm Jan 16 01:00:39 RxJava will be a lot nicer on Java 8, oh well Jan 16 01:01:08 okay, damnit, i want to try to do things without a 3rd party library, cause i need to uderstand this Jan 16 01:02:20 I use my own libraries a lot because NIH syndrome. Jan 16 01:02:45 i take it my activity fragment should subscribe to a broadcast reciever, and then the Rx thread could notify the ui that there is data? Jan 16 01:02:52 Nilium: NIH? nihilism? Jan 16 01:02:56 ruser well, you can do JesusFreke's technique with handlers, you can use ContentObserver / database, or you can use support library LocalBroadcastManager (ick) Jan 16 01:03:03 i use everyone else's libraries because i'm lazy and want to work on the actual app rather than stupid problems other people already solved Jan 16 01:03:21 http://en.wikipedia.org/wiki/Not_invented_here Jan 16 01:03:25 JakeWharton: meeee too Jan 16 01:03:29 JesusFreke: that's excellent for you, but i want to know how things actually work Jan 16 01:03:34 i'm too new to java and android Jan 16 01:03:42 ruser: say what? Jan 16 01:04:00 JakeWharton: For some reason that seems funny coming from you Jan 16 01:04:02 Handlers are an Android thing. If you're wanting to learn android, you should know what a handler is and how to use one. Jan 16 01:04:10 JesusFreke: misperson s/ JesusFreke / JakeWharton / Jan 16 01:04:25 Nilium: well, yeah sometimes i get caught up in writing libraries and never getting to write the apps... Jan 16 01:04:33 it's fun regardless! Jan 16 01:05:39 need to solve problem -> need to write tool to solve problem -> need to write general purpose library to solve all similar problems Jan 16 01:06:08 I never quite get to the general purpose part Jan 16 01:06:33 Nilium what was wrong with the existing persistence options, or is this educational :) Jan 16 01:06:42 I do write libraries to keep problem solving sort of self-contained, though. Jan 16 01:07:28 I had various complaints about them when I looked at them a year or two ago, partly licensing issues and partly that it didn't fit the data I had. Jan 16 01:07:57 The serialization code I wrote is fairly old, I just crammed it in a library recently and moved the implementation from C to C++ Jan 16 01:08:10 Nilium: yeah, i do the same, in fact i wrote the protocol message thingy for my app already, but now need to learn how to do the rest of stuff in the android app :/ Jan 16 01:08:23 Also the endianness thing was new. Jan 16 01:09:14 Nilium did you look at capnproto Jan 16 01:10:36 Don't remember. Like I said, it was a year or two ago. Jan 16 01:10:59 so your built in persistence mechanism is faulty too :) Jan 16 01:11:44 Looks like capnproto didn't exist on GitHub until after I wrote my thing. Jan 16 01:12:19 And confirmed, I did the thing two years ago. Jan 16 01:14:03 JesusFreke: to be clear we are talking about http://developer.android.com/reference/android/os/Handler.html? Jan 16 01:14:09 yep Jan 16 01:15:56 JesusFreke: and then one would use Message? Jan 16 01:18:38 you could use any of the send/post methods, depending on how you want to design it. Jan 16 01:22:10 JesusFreke: thanks. i'm going to read about this... so much reading.... not enough coding :( Jan 16 01:23:12 more reading = less coding Jan 16 01:23:54 that could be good, if you don't know what you're doing. may as well study good examples rather then learning bad habits ;) Jan 16 01:24:25 more reading = less code* Jan 16 01:24:27 g00s_: that's whati 'mn tryign to do.. but most code just goes.. this is a socket that recieves a packet, we are goign to recive one, and that's it :) Jan 16 01:24:46 frigging annoying Jan 16 01:25:57 well not only do i have a NDK game map library but i now have an indirect threaded forth NDK library working Jan 16 01:26:06 freeking THREE DAYS to find a bug lol Jan 16 01:26:16 I440r: it could be worse :( Jan 16 01:26:18 I440r the writable section one ? Jan 16 01:26:34 heh. the worst bug I ever investigated took a month to solve. Jan 16 01:26:35 g00s no - it was a stack error Jan 16 01:27:06 and it boiled down to the kernel in use wasn't invalidating the cpu code cache correctly Jan 16 01:27:08 g00s the writable section problem was ME being an idiot and not realising that the gnu assembler will create misaligned sections Jan 16 01:27:11 the worst bug i had to investigate never got solved :| Jan 16 01:27:31 two enterprise systems sharing state, one clobbering the other ;) Jan 16 01:27:45 g00s_: sounds WAI ;) Jan 16 01:27:47 JesusFreke, i had a bug in my compiler where if i had a section of code commented it worked but if i removed the comments it was broken :) Jan 16 01:27:48 g00s_: oh... yeah, that's my quetison how do i do this shit thread safe too :( Jan 16 01:28:17 I440r: hah Jan 16 01:28:35 JesusFreke, on my non android forth i have to invalidate the icache constantly when compiling Jan 16 01:28:47 JesusFreke and when things stopped working, nobody in latin america could ship (DHL) Jan 16 01:29:10 heh, yeah. the system call to invalidate it was happening. the kernel just wasn't doing it :) Jan 16 01:29:13 it was a nasty bug Jan 16 01:29:26 JesusFreke, wtf thats a stupid kernel bug for sure Jan 16 01:30:26 lol i pity anyone who tries to reverse engineer these NDK libraries tho Jan 16 01:30:41 they warp my brain with all the nested indirections Jan 16 01:31:08 yeah, the code in the kernel was literally commented out. There was a stupid comment with the reason there as well, but I can't remember what it was Jan 16 01:31:33 this was at a phone OEM, on a kernel for that specific phone Jan 16 01:32:13 god damnit too much reading Jan 16 01:32:14 :( Jan 16 01:32:25 ruser well thread safety is a big topic; you could read JCIP (java concurrency in practice). now the guy at netflix that started RxJava, wanted it so that new engineers didn't have to read JCIP - noble, but its still important Jan 16 01:33:50 you could probably get away for now with java tutorials from oracle Jan 16 01:34:11 http://docs.oracle.com/javase/tutorial/essential/concurrency/ Jan 16 01:34:43 of course, Handler is specific to android and not mentioned outside that context Jan 16 01:35:28 g00s_ its a important concept to understand Jan 16 01:35:29 g00s_: so... how do i make pass messages to threads and also pass message from threads to ui Jan 16 01:35:37 regardless if someone needs it in practice or not Jan 16 01:35:54 ruser you can also look at the legacy BluetoothChat example, you could probably reuse the 'ConnectedThread' design Jan 16 01:36:03 they use a Handler there Jan 16 01:36:55 is thre a practical maximum size for a single apk? Jan 16 01:38:57 g00s_: https://android.googlesource.com/platform/development/+/25b6aed7b2e01ce7bdc0dfa1a79eaf009ad178fe/samples/BluetoothChat/src/com/example/android/BluetoothChat is that the one? Jan 16 01:39:04 yes Jan 16 01:39:30 see towards the end mHandler.obtainMessage(BluetoothChat.MESSAGE_READ, bytes, -1, buffer) Jan 16 01:40:46 i udnerstand the basic concept. the mHandler is in this case is the UI handler, is it not? Jan 16 01:40:58 What tools are there for regression testing Android apps? Jan 16 01:42:37 http://developer.android.com/tools/testing/testing_android.html Jan 16 01:42:38 ruser yes Jan 16 01:45:05 bankai_: That only talks about unit testing. What about regression testing? Jan 16 01:45:50 is this inputmethodmanager hack really the only way to dismiss the keyboard when the user's done editing the last field? http://stackoverflow.com/questions/4235070/how-to-clear-focus-and-remove-keyboard-on-android Jan 16 01:46:47 Ah. Google turned up something called MonkeyRunner. Jan 16 01:47:24 Chani: why do you want to force the keyboard to close? Jan 16 01:47:33 Trouble is that I have no knowledge of Python. Jan 16 01:48:11 g00s_: is there a comprehensive list of the sample code? other then just going to directory and reading through every single sample? Jan 16 01:49:26 bankai_: because the user clicked "done" Jan 16 01:49:52 bankai_: also, if the user manually closes the keyboard, then trying to focus that field again fails until the app restarts :/ Jan 16 01:50:11 something goes horrible wrong after onEditorAction and I'm not sure why... Jan 16 01:51:45 I'm gettting a lot of "getTextBeforeCursor on inactive InputConnection" too of course Jan 16 01:52:44 if the user clicks away from the edittext, the keyboard starys up *and* the edittext becomes unfocusable Jan 16 01:53:37 I don't even *get* oneditoraction in that case.. it just breaks. Jan 16 01:56:27 g00s_: so the protocol spec says that a client has to ack iny inbound messages from the server, and that server confirms recival of messages too. does that mean i need 4 handlers? Rx thread to notify UI with any messages from server and update UI. Tx handler to pass data to be sent... and Rx handler messaging back to Tx thread so that Tx thread can validate the recieval? Jan 16 01:56:45 ick. clearFocus doesn't help Jan 16 01:57:25 ruser no, you'll need a state machine Jan 16 01:57:35 i can draw one Jan 16 01:57:36 lol Jan 16 01:57:45 ragel is a good tool for that Jan 16 01:58:02 the user guide is 60 pages ;) more reading ! Jan 16 01:58:24 but serriously though. i'm clearly missign osmething with the handler Jan 16 01:59:41 Rx users UI handler, to notify UI, correct? but at the same time it has to signal to Tx that the transmission has been successful due to havin and ack recieved from the server. Jan 16 01:59:49 hi, what's the name of the bar with the back, home and task switch button at the bottom of the screen? Jan 16 01:59:51 this is confusing :( Jan 16 02:00:22 g00s_: all the network examples i've seen just use TCP to the delivery is guranteed :/ Jan 16 02:00:36 Hi, I am getting a null pointer exception. I am trying to find the cause of the problem, but when I debug and put a break point on the exception variable the stacktrace is null. Similarly, if I try looking in logcat I do not see any sign of a failure or a stacktrace Jan 16 02:00:51 What options do I have to find the stacktrace? Jan 16 02:01:10 logcat Jan 16 02:01:14 the error is that the variable is null Jan 16 02:01:17 logcat always shows stack Jan 16 02:02:07 pfn: I just see a list of "Skipped 30 frames!" etc in log cat Jan 16 02:02:38 usually i would use Log messages to print what i expect the value of the variable is at each step to see where it went wrong. Jan 16 02:02:56 it's in there Jan 16 02:03:01 don't catch the exception Jan 16 02:03:08 oh don't catch it? Jan 16 02:03:09 ok Jan 16 02:03:18 if you catch it, how are you going to see it.... Jan 16 02:03:28 I thought log cat might still report it Jan 16 02:03:37 it's not gonna report it if you catch it Jan 16 02:03:40 ir7466: you can probalby inspect the variable that you caught it into Jan 16 02:03:45 with the debugger Jan 16 02:03:54 ruser: yeah, I tried that. stacktrace=null it says Jan 16 02:04:11 ir7466: you probably have a breakpoint right before it's assigned Jan 16 02:04:46 does it matter if you catch the generic Exception vs the specific NullPointerException type? Jan 16 02:05:05 anyone know the name of the bar at the bottom of the screen with the three buttons on it? Jan 16 02:05:41 system ui Jan 16 02:05:43 nav Jan 16 02:05:46 pfn: yes, thanks.... I see it in log cat now Jan 16 02:05:47 thanks Jan 16 02:06:08 ir7466: not really, you just might do different things on difffernt exceptions in your catch blocks Jan 16 02:06:47 is there any way to make viewpager do a coverflow like transition? Jan 16 02:06:52 ah ok Jan 16 02:07:20 oh no coverflow Jan 16 02:07:26 This is the code I'm using, the stacktrace suggests it is falling over at the marked line (readByteArray) - http://pastie.org/8637621 Jan 16 02:07:43 I just want any sort of custom animation, not specifically coverflow Jan 16 02:07:54 I am using parcelable, it's only crashing when an object i'm using is referencing a SubImage (the class in the paste) Jan 16 02:07:56 I guess I can do a propery transformer Jan 16 02:07:58 hmm Jan 16 02:08:19 I've used parcelable a few times, but not for readByteArray() before. Am I doing something wrong? Jan 16 02:08:47 is your /in/ null? Jan 16 02:09:07 actaully nvm :) Jan 16 02:09:08 Alright, so my Activity is not dealing with multithreading... Jan 16 02:09:14 would be nice to see the stack trace Jan 16 02:09:29 let me copy it, one second Jan 16 02:09:56 you probably have a deeper stack Jan 16 02:10:04 i.e. it failed inside of parcelable, not on that line Jan 16 02:10:08 your _subImageContent is null Jan 16 02:10:13 Hey pfn Jan 16 02:10:35 what pfn said :) Jan 16 02:10:46 ok Jan 16 02:11:03 Robotium appears to be only JUnit testing. Jan 16 02:11:10 hang on Jan 16 02:11:17 wlp|tab, it's unit test + ui automation Jan 16 02:11:31 but for... in.readByteArray(_subImageContent);... isn't it writing the "in" into _subImageContent? Jan 16 02:11:38 no Jan 16 02:11:48 oh? Jan 16 02:11:48 Would it be possible that the onSensorChanged was the method that was blocking the main thread? Jan 16 02:11:49 pfn: So where can I get a regression tester? Jan 16 02:12:02 wlp|tab, you can write your regression tests using a unit testing framework Jan 16 02:12:11 wilornel, I have no idea Jan 16 02:12:17 wilornel, I never knew what your code did Jan 16 02:12:18 readByteArray must take an argument though, so I can't do it like I've done for the primitives Jan 16 02:12:31 in that case how do I write in, into _subImageContent? Jan 16 02:12:36 so, how do you write into a null array? Jan 16 02:12:37 you don't Jan 16 02:12:50 pfn: I removed all multithreading, the result was the same as last time. I removed the onSensorChanged and now the view is displaying Jan 16 02:13:10 pfn: So far, the only regression testing I've done is using Selenium for a website. I've never done unit testing. Jan 16 02:13:20 wlp|tab, robotium is modeled after selenium Jan 16 02:13:37 I based it on what I saw at http://stackoverflow.com/a/10898466/2884981 Jan 16 02:13:38 wilornel, well, now you know, fix it :p Jan 16 02:13:53 Where he was writing what was in readByteArray into this.photo Jan 16 02:14:01 is that not the appropriate way to do it? Jan 16 02:14:04 ir7466, simple, write array length to parcel, read array length out, construct an array of appropriate length, then pass in your new array to readByteArray Jan 16 02:14:23 ir7466, that's exactly what that link you posted did Jan 16 02:14:35 pay attention Jan 16 02:14:42 pfn: Alright, anyways thanks for throwing ideas in last day. Is it normal the sensors are taking up so much of the main thread? Jan 16 02:14:47 is that the in.unmarshall(ba, 0, ba.length); ? Jan 16 02:15:04 wilornel, I have no idea what you did, so no idea, if you have your sensors posting to the main thread, then of course you introduce race conditions Jan 16 02:15:21 particularly when debugging Jan 16 02:15:23 oh Jan 16 02:15:24 sorry Jan 16 02:15:26 I see now Jan 16 02:15:57 pfn: Why _particulatly_ when debugging? Jan 16 02:16:02 pfn: Why _particularly_ when debugging? Jan 16 02:16:08 because it's a race condition Jan 16 02:16:13 and debugging slows down the device Jan 16 02:16:22 so it introduces conditions that fucks up your multithreading Jan 16 02:16:26 because it's not being handled properly Jan 16 02:16:36 why? how should I know, I don't know what your code does or looks like Jan 16 02:16:40 that's what /you/ have to answer Jan 16 02:17:51 pfn: Thanks again Jan 16 02:18:46 maybe if you waited a day or two, the view would appear Jan 16 02:18:52 who knows Jan 16 02:19:02 lol Jan 16 02:19:20 that's a little harsh, some of us were/are noobs :( Jan 16 02:29:20 g00s_: are you still around? Jan 16 02:29:39 nvm i answered my own question :) Jan 16 02:32:47 pfn: thanks, works now **** ENDING LOGGING AT Thu Jan 16 02:59:59 2014