**** BEGIN LOGGING AT Wed Mar 06 02:59:58 2013 Mar 06 03:05:35 MoProductions, if you didnt figure out your problem yet, on the apk upload screen, if you go to the advanced mode, there should be an "activate" option Mar 06 03:05:49 i am not sure if that can be done to unpublished apps (as i've never tried), but that sounds like what they said to do Mar 06 03:07:15 canadiancow: Nope, haven't figured it out yet. But on the upload screen i don't see an "activate" option. Our app is not published yet because we're still debugging and that's how the docs told us to do it. Mar 06 03:07:43 are you using v1 or v2 of the console Mar 06 03:07:59 i.e. is there a link at the top right for the new design or the old design Mar 06 03:08:00 v2 Mar 06 03:08:03 ok Mar 06 03:08:11 so go into your app, and into the apk section Mar 06 03:08:16 there Mar 06 03:08:19 click "advanced mode" in the top right Mar 06 03:08:29 done Mar 06 03:09:14 have you uploaded an apk? Mar 06 03:09:38 ye Mar 06 03:09:39 s Mar 06 03:10:14 what are the options available with it? Mar 06 03:10:46 there's an "upload new APK" button, and a "Ready to Publish" pull-down with "Publish this app" and "Delete this app" Mar 06 03:11:31 ok click "switch back to old design" Mar 06 03:11:35 go into the app, and to the apk tab Mar 06 03:12:19 ok. I'm in the "APK files" tab with my app listed. Mar 06 03:12:20 is there an "activate" link there? Mar 06 03:12:24 no Mar 06 03:12:33 IT actually says "Active" now. Mar 06 03:12:43 does it have a "deactivate" link? Mar 06 03:12:45 no Mar 06 03:13:03 :\ Mar 06 03:13:06 alright im out of ideas Mar 06 03:13:14 actually i've never been to this page so i'm not sure if it always said "Active" or not Mar 06 03:13:31 i've never used obbs, so im not really sure what is even required Mar 06 03:14:05 Well, a big new feature of Unity 4 is it's supported, automatic handling of apk+obb splits. The problem is that, like anything else with publishing, there's tons of little details the docs don't mention Mar 06 03:14:21 let me run this by you Mar 06 03:14:58 earlier today i clicked on a link that said "why can't i publish?" It listed a bunch of stuff like price not being set, etc. I cleaned up all those errors. Could have that activated it? Mar 06 03:18:39 no idea Mar 06 03:19:42 heh. why is it me that always runs into the weird errors that even stumps the experts. Mar 06 03:19:51 they're too competent to recreate my wacky steps i guess Mar 06 03:19:59 whats the best way to tack an off ui thread loading/processing of listView items ? as in I get the data for a cursor but need to do various things to the view, so I kinda want to do that away from main UI thread Mar 06 03:21:59 would I just pass a null view immediately then pass position etc to be processed and replace the viewAtIndex ? Mar 06 03:25:37 hi Mar 06 03:25:49 can someone helpme with an issue with appinventor? Mar 06 03:27:17 juanjo: not sure this is the right place Mar 06 03:27:31 StingRay_, any other channel in this server? Mar 06 03:27:35 dunno Mar 06 03:27:49 this is for app dev Mar 06 03:28:11 that appinventor just looks like a webby > androidy htmly thingy Mar 06 03:28:14 :) Mar 06 03:28:19 StingRay_: ive done something similar, i made getItem(int) return null if it didnt exist, and queue the load Mar 06 03:28:32 StingRay_: once its loaded, i stuck it into a cache and ran notifyDatasetChanged Mar 06 03:28:45 see is that not a bit odd though Mar 06 03:28:52 cause that will cause refresh on all items Mar 06 03:29:07 the objects are in a cache, so getItem just returns them directly on the next pass Mar 06 03:29:08 is there some prob with direct view manipulation Mar 06 03:29:33 i havent tried editing the views directly Mar 06 03:29:46 one issue would be figuring out which view is which row Mar 06 03:30:11 getFirstVisible Mar 06 03:30:31 hmm just dont want to start going down the wrong path here Mar 06 03:30:53 I do various things with the layout, color, drawables etc Mar 06 03:30:59 depending on what data is there Mar 06 03:31:10 I wanted to shift that off the ui thread Mar 06 03:31:17 I do cache them now Mar 06 03:31:46 canadiancow: Thank you for the help, btw. That lead me to the screen shot to send to the boss that says Activate, which is a step forward :) Mar 06 03:31:52 and just about to start looking at pre-loading etc and then thought about moving all of this off the ui thread Mar 06 03:32:25 I take it I can touch/play with views as long as they are not attached to view hierachy ? Mar 06 03:32:28 StingRay_: are you using a viewholder? Mar 06 03:32:34 hierarchy* Mar 06 03:32:36 yes Mar 06 03:33:29 i dont know of any callback in ListView to tell you when a view has been removed but cached, and i dont think you can do any ui work out of the ui thread Mar 06 03:34:13 even if not attached to current ViewRoot Mar 06 03:34:18 dam that sux Mar 06 03:34:27 and limits my thoughts on the matter a bit :) Mar 06 03:34:29 fairly sure Mar 06 03:34:55 it shouldnt take that long to just apply a few changes to the views Mar 06 03:35:36 clever: a few ... no it probably wouldn't :) Mar 06 03:36:29 StingRay_: how many changes are you doing? Mar 06 03:36:33 on average, 8 color changes, 4 backgrounds, 2 drawables Mar 06 03:36:48 thats not much Mar 06 03:36:51 backgrounds limited to little indicators or containers within the view Mar 06 03:37:02 enough for me to think of moving it Mar 06 03:37:08 as in performance Mar 06 03:37:09 have you looked at getItemType? Mar 06 03:37:20 no they are all the same type Mar 06 03:37:40 you could cheat and give each background image its own type Mar 06 03:37:43 so it only gets set once Mar 06 03:38:07 the backgrounds of the info containers represent states Mar 06 03:38:10 so not really Mar 06 03:38:27 all in all it would be 4x4x3 or something like that Mar 06 03:38:32 and they are all the same layout Mar 06 03:38:46 hmm maybe I just need a pre-loader then Mar 06 03:39:05 I just notice it a little when scrolling thats all Mar 06 03:42:23 clever: you do any pre-loading ? Mar 06 03:42:35 as in pre-scrolling loading Mar 06 03:42:43 and reading ahead x number Mar 06 03:42:56 not yet, and i read only 1 row at a time from sqlite Mar 06 03:42:58 for the big consumer Mar 06 03:43:01 hi guys :) Mar 06 03:43:04 cant seem to find any links Mar 06 03:43:10 about anyone doing it Mar 06 03:43:14 odd Mar 06 03:43:16 not here to ask questions today, just to chill Mar 06 03:43:17 lol Mar 06 03:43:42 Rob|boR: join #chill Mar 06 03:43:52 what's wrong with android-dev? Mar 06 03:45:48 it's slow, changes lots and very little money to be made ? Mar 06 03:46:01 lots of competition Mar 06 03:46:10 market flooded with crappy apps Mar 06 03:46:16 hard to get exposure ? Mar 06 03:46:22 lots I think Mar 06 03:46:23 :) Mar 06 03:50:44 -_- Mar 06 04:33:39 so... apparently its the year of 3913 based on SimpleDateFormatter Mar 06 04:34:22 http://pastebin.com/YVHv6H0L Mar 06 04:34:33 03-05 20:35:22.770: D/TEST(11309): >>> date 03/05/3913given year 2013 Mar 06 04:34:38 am i doing something wrong? lol... Mar 06 04:36:47 well are you not just using onDateSet year Mar 06 04:36:53 so thats what you get from the date picker Mar 06 04:36:58 your not doing anything to it Mar 06 04:37:26 nope, found it year is relative to 1900 Mar 06 04:37:30 but I've just done a datepicker about 2 hours ago Mar 06 04:37:34 and dont need all that Mar 06 04:37:40 ? Mar 06 04:37:48 btw, warning, I've just had lots of solpadine Mar 06 04:37:55 so feeling a bit drunk Mar 06 04:38:00 but my headaches gone Mar 06 04:38:02 :) Mar 06 04:38:14 erm yeah the moth stuff Mar 06 04:38:18 I've made 2 games, one using native canvas methods and a surfaceview, and another using just layouts and standard UI components. What does everyone else in the game dev business do? Mar 06 04:38:26 OpenGL Mar 06 04:38:46 just "M" or "MM" what are you getting length of month for ? Mar 06 04:38:51 as int string building Mar 06 04:39:05 if you want 05 = MM Mar 06 04:39:21 StingRay_: somethings wrong with the year not the month! Mar 06 04:39:27 yes Mar 06 04:39:39 but my point is I've just done the same as you Mar 06 04:39:40 i think you're getting a bit confused :) Mar 06 04:39:47 and not needing to play with the values at all Mar 06 04:39:53 what are you wanting to get out of it ? Mar 06 04:40:22 well im using a DatePickerDialog to pick a date, sending those values over to DateFormatter so I can get it in MM/dd/yyyy format Mar 06 04:40:44 the above code is just junk code, was implementing my own formatting until I found SimpleDateFormat Mar 06 04:40:50 ah Mar 06 04:41:04 ok well all is fine if you just create a cal or date instance Mar 06 04:41:08 now I checked all of my values and theyre all correct to today's date, however after running it through formatter I get 1900+ my original year Mar 06 04:41:09 set day month yeah Mar 06 04:41:13 from datepicker Mar 06 04:41:23 did a bit of research and found out it was relative to 1900 so I just did a subtraction. Mar 06 04:41:29 no no Mar 06 04:41:39 its okay:) its not publish-able app Mar 06 04:41:44 get an instance of calender Mar 06 04:41:49 a weight tracker for my own personal use. Mar 06 04:41:51 nope thought of that Mar 06 04:42:03 can't do that. if I miss a workout I'd like to add it manually. Mar 06 04:42:27 no i mean calendar or date object Mar 06 04:42:37 that accepts the simple values passed in onDateSet Mar 06 04:42:43 then get time millis Mar 06 04:42:58 then use formatter as many times as you want for whatever patterns Mar 06 04:43:15 Calendar cal = Calendar.getInstance(); Mar 06 04:43:29 cal.set(day, month, year); Mar 06 04:44:00 SimpleDateFormatter sf = new SimpleDateFormatter(dd/MM/yyyy); Mar 06 04:44:52 String output = sf.format(cal.getTimeMillis()); Mar 06 04:44:54 etc Mar 06 04:45:00 hmm, let me try that Mar 06 04:45:01 that way you can also add local to format Mar 06 04:45:08 if you want international stuff Mar 06 04:45:11 not that I have done it Mar 06 04:45:19 god feels like I'm on speed Mar 06 04:45:22 blurry too! Mar 06 04:45:40 use this date formatter Mar 06 04:45:41 https://developer.android.com/reference/android/text/format/DateFormat.html Mar 06 04:45:57 then it gets localised propeprly and follows user settings Mar 06 04:46:08 huh really ? Mar 06 04:46:13 arses Mar 06 04:46:21 thats british for dammit! Mar 06 04:46:32 now i know how you got all of your post counts Mar 06 04:46:50 what solpadine ? Mar 06 04:46:52 maybe Mar 06 04:47:23 core blimey! apples & pears! Mar 06 04:47:45 amazingly enough, I actually really like how you did it haha simple :) Mar 06 04:47:50 what was that ? Mar 06 04:47:53 apples and pairs Mar 06 04:48:06 stairs Mar 06 04:48:08 well I created a cal instance cause needed my dialog to do other things Mar 06 04:48:14 with cal object Mar 06 04:48:24 just being british for a moment there Mar 06 04:48:28 but doesn't Cal.set() set the Calendar.DATE, Calendar.YEAR etc to what I set? Mar 06 04:48:39 alex_PP: no, no you were not :) Mar 06 04:49:00 Cal.set(year, month, day); Mar 06 04:49:06 will do Mar 06 04:49:12 i assure you i was, even my passprt agrees Mar 06 04:49:23 :P Mar 06 04:49:37 "core blimey! apples & pears!" <---- I have never Mar 06 04:49:38 ever Mar 06 04:49:53 heard that outside of some make belief statement Mar 06 04:50:25 StingRay_: no i meant wouldn't doing Cal.set(year, month, day); set Calendar.DAY_OF_MONTH, Calendar.YEAR to whatever I put in Cal.set? Mar 06 04:50:54 well that object yes Mar 06 04:51:12 then date formatter on cal.getTimeMillis() Mar 06 04:51:42 but if you mean set your actual phone calendar to that, then no Mar 06 04:51:45 well technically since you can only get Calendar by doing = Calendar.getInstance() it would be the same instance Mar 06 04:51:47 :) Mar 06 04:52:09 yea i cant use your method =[ gotta get the accurate today date Mar 06 04:52:17 what ? Mar 06 04:52:24 Calendar isn't a singleton Mar 06 04:52:38 accurate today date > Mar 06 04:52:39 regardless, I still need to get DOW Mar 06 04:52:40 ? Mar 06 04:52:47 getInstance is used to create a GregorianCalendar the extends Calendar Mar 06 04:52:50 then use formatter Mar 06 04:52:55 ahhh, i see Mar 06 04:52:56 EEEEE Mar 06 04:53:01 eeeeeeeh ? Mar 06 04:53:06 EEEE* Mar 06 04:53:08 :) Mar 06 04:53:30 ok, I'm off to calm down a bit Mar 06 04:53:52 StingRay_: thanks for not smoking :) Mar 06 04:54:08 well I'm off for a ciggy Mar 06 04:54:12 to calm down a bit Mar 06 04:54:14 :) Mar 06 04:54:14 noooooo Mar 06 04:54:18 *fag Mar 06 04:54:43 alex_PP: where you from ? Mar 06 04:54:49 York Mar 06 04:54:50 https://www.youtube.com/watch?v=psA882efxxE Mar 06 04:55:15 though i think i've had a bit too much coffee this morning Mar 06 04:55:28 yeah what you doing up ? Mar 06 04:55:38 I've been to York Mar 06 04:56:21 i live in Cambodia now Mar 06 04:56:47 I live in Hong Kong now :) Mar 06 04:57:00 yay Asia Mar 06 04:57:03 woooooo Mar 06 04:57:16 though, HK is still fairly british Mar 06 04:57:29 yeah, relaxingly so Mar 06 04:58:36 only been the once, liked it though Mar 06 04:58:41 went to M&S Mar 06 04:58:50 bought some new pants Mar 06 04:59:23 I bought *crumpets* at M&S yesterday! Mar 06 05:00:02 is that legal? Mar 06 05:00:34 most things are in Wanchai Mar 06 05:01:34 think I've only been to york once Mar 06 05:01:38 in my life Mar 06 05:01:54 it's nice Mar 06 05:01:58 been to a shooting range lots just south of york though, lots Mar 06 05:02:05 forget the name Mar 06 05:02:20 no idea Mar 06 05:02:24 only done clays Mar 06 05:02:31 and rats Mar 06 05:02:31 yeah big clay range Mar 06 05:02:43 DTL, skeet, olypic trap Mar 06 05:02:47 *only done clays once Mar 06 05:02:50 alex_PP: i hear in iraq, snipers are taking out cat-sized rats Mar 06 05:02:51 dammit I should remember the name Mar 06 05:03:07 and person sized people Mar 06 05:03:17 nah ;) Mar 06 05:03:26 drones do that Mar 06 05:03:35 they should go to kuala lumpor Mar 06 05:03:36 ok g00s what have you done to me Mar 06 05:03:42 the rats there are like horses Mar 06 05:03:50 I disabled java in browser and nothing works or even opens Mar 06 05:03:55 like google maps etc Mar 06 05:04:16 i dont java have enabled in any browser, ever Mar 06 05:04:33 thankfully i dont use some banking website that needs it or something Mar 06 05:04:45 gtg Mar 06 05:04:51 lunch time Mar 06 05:05:46 StingRay_: but i uninstalled Java 7, yet the updater still pops up and says i need to update my box :| Mar 06 05:06:02 some vestige of that shit is still on my machine, apparently Mar 06 05:06:30 why you ditching oracle ? Mar 06 05:06:44 you done with your fx stuff? Mar 06 05:06:52 my desktop javafx project is on hold for a little :) Mar 06 05:07:13 figure there will be plenty of security updates in the meantime, may as well install it when i'm ready :) Mar 06 05:07:31 g00s when you move out to cali... hit me up and we'll make some cash Mar 06 05:07:50 hey ron_frown :) Mar 06 05:09:53 * g00s is reading a pretty interesting paper on pub-sub http://www.edwardcurry.org/publications/Hasan_DEBS_2012.pdf Mar 06 05:10:50 like almost everything, i have to read it a few time before i get it :/ Mar 06 05:14:18 g00s: are you currently using a linux Mar 06 05:14:40 Trinsta: no, i'm a traitor. Like Miquel , i moved to apple Mar 06 05:15:00 I noticed a lot of Google I/O computers use Mac Mar 06 05:15:16 so youre not alone :) Mar 06 05:15:45 http://tirania.org/blog/archive/2013/Mar-05.html Mar 06 05:16:52 i'll try linux again one they have a replacement for X :) Mar 06 05:18:06 isn't that what wayland is all about ? Mar 06 05:18:42 Wayland's future seems up for grabs now that Ubuntu is going to go with Mir (based on SurfaceFlinger) Mar 06 05:18:59 of course, PuppyLinux could still use it ;) Mar 06 05:19:43 i'm hoping for an Android IDE for Chrome OS Mar 06 05:20:04 kevinb: did you see Torvalds wants to make the Pixel his full time machine ? Mar 06 05:20:15 not that he codes any more , but ... Mar 06 05:20:27 yeah, though sounds like he won't use Chrome OS but a full featured linux distro Mar 06 05:20:32 wait, does he code any more? i guess he says he doesn't read code any more Mar 06 05:21:12 Hello , how come android does not let you use Math.Scalb Mar 06 05:21:48 kevinb: maybe he will use something like Eclipse Orion :| Mar 06 05:22:57 wow i had never heard of orion. interesting. I've seen cloud9 which looks like it has potential too. Mar 06 05:44:33 hmm.. is there a way for me to split my appends? Mar 06 05:44:42 like... stringBuilder.append("stuff"); Mar 06 05:44:52 and automatically have a ":" be appended after i append that Mar 06 05:45:52 basically I need to automatically add a delimiter Mar 06 05:48:31 or even better, is there a way to create prepared strings? like.... "data1:data2:data3" and just simply fill in the values of the placeholders? Mar 06 05:56:12 Trinsta: http://developer.android.com/reference/android/content/res/Resources.html#getString%28int,%20java.lang.Object...%29 Mar 06 06:07:34 income tax is hard :( Mar 06 06:09:50 Google Checkout made mine even more difficult. For 2011 they told the IRS how much they paid me including app sales for December, but didn't actually pay me for those sales until 2012. So i filed without those and got a letter from the IRS. Mar 06 06:10:39 not yet sure what i'll do for 2012. don't want to claim income i didn't receive, but also don't want to deal with the IRS asking me what's up again and having to explain that Google reported december sales prematurely. Mar 06 06:11:20 i dont think it matters when you were technically paid Mar 06 06:11:51 if you work on dec 31, and it takes a week to process the pay, and they send out the check in january, and you receive it in february, you still earned it in december Mar 06 06:12:07 and your situation is easy Mar 06 06:12:11 i lived in two countries :\ Mar 06 06:13:02 my tax guy said it should only be what i'm actually paid. it's similar to freelancers who sometimes don't actually get paid what they're owed so it makes sense for them to not report until they actually get the money. Mar 06 06:13:16 but yeah i'm sure two countries makes it more annoying :P Mar 06 06:13:34 im stuck on the first page of turbotax Mar 06 06:13:38 what country am i resident of :\ Mar 06 06:15:05 is the menu here pretty easy to do ? http://cdn.androidpolice.com/wp-content/uploads/2013/03/nexusae0_Screenshot_2013-03-04-21-33-29.png Mar 06 06:15:16 i'm new to all things actionbar Mar 06 06:15:39 dunno, never tried Mar 06 06:15:48 i bet that whole thing is custom Mar 06 06:15:54 oh, ok Mar 06 06:16:06 very easy Mar 06 06:16:11 with my viewPresenter Mar 06 06:16:12 :) Mar 06 06:16:13 what sounds better for a fitness app. FireSpark. FitnessSpark? Mar 06 06:16:31 the idea is it only takes a spark of determination to get a fire/burning ;) going Mar 06 06:17:22 but then willpower fizzles and then you need a BIGGER spark Mar 06 06:17:26 for search purposes FitnessSpark is probably better Mar 06 06:17:49 yeah, kevinb is right Mar 06 06:18:03 yeah and fireSpark just makes me want to go for a cig Mar 06 06:18:17 FireSpark sounds like a Carie soundboard or something Mar 06 06:19:08 sounds good :) Mar 06 06:19:24 err, Charlene ;) Mar 06 06:20:15 off-topic: does anyone else shake their leg? Mar 06 06:20:23 while programming Mar 06 06:20:28 restless leg syndrome, eh ? Mar 06 06:20:41 dont worry about it unless it wakes you up from sleep :D Mar 06 06:20:51 does anyone know if I can implement my own android.filterpacks.Filter ? Mar 06 06:20:58 i see a bunch of them in the AOSP Mar 06 06:21:32 g00s: it annoys me though like. if i don't that "shiver" comes and you have to shake. after a while of shaking you get tired and you hate yourself for it Mar 06 06:21:56 quick survey, how many texts do you guys have on your phones ? Mar 06 06:22:03 off top of your head Mar 06 06:22:23 i have around 500 (male), sister has around 5000 (female) Mar 06 06:22:34 Trinsta: nice Mar 06 06:22:35 me? 0 :) Mar 06 06:22:58 just so you know a good referene point in gender :) Mar 06 06:23:11 ok cause currently inserting 20,000 as the upper test limit to my app Mar 06 06:23:12 :) Mar 06 06:23:15 so should cover it Mar 06 06:23:16 btw, she has always complained though of the indexing of messaging Mar 06 06:23:39 according to her the more messages she retains the slower her device gets Mar 06 06:24:03 yeah well thats part of this test Mar 06 06:24:12 tested mine with 5k and it's fine Mar 06 06:24:26 it took 1 hr for a quick thread/sms delete app to finish Mar 06 06:24:33 gonna settle on 30k to get my grouping and lists quicker Mar 06 06:24:47 is this the first app? :) Mar 06 06:24:50 ah, mine as background actions Mar 06 06:25:00 so it would invalidate but then process in background Mar 06 06:25:07 so they would be gone instant Mar 06 06:25:08 and yes Mar 06 06:25:11 1st app Mar 06 06:25:29 cool :) i think she'll love it haha. she nearly died without social media for a straight hour Mar 06 06:26:19 hmm maybe if I didnt log everything my inserts would be quicker (currently 18k) Mar 06 06:27:52 * Trinsta hates it when he runs an app in eclipse and notices on the last minute that hes in a xml file Mar 06 06:29:17 StingRay_: actually my mistake, she probably had more than 5k during that delete session. I set that limit of 5k right now Mar 06 06:29:29 possibly 20k-25k before the delete Mar 06 06:29:34 ah cool Mar 06 06:29:39 well taking mine to 30k Mar 06 06:29:50 maybe I should aim for 40k ish Mar 06 06:30:07 250 threads with total of 40k messages Mar 06 06:30:16 that was gonna be my baseline Mar 06 06:30:24 just out of curiousity, how did you make 5k worth of sms messages? *hopes you didn't text yourself 5k times ;)* Mar 06 06:31:04 Trinsta: well I control the db Mar 06 06:31:12 so just insert :) Mar 06 06:31:13 ahh ez then :) Mar 06 06:31:42 hmm... strange that those app deleters would take so much time then Mar 06 06:31:50 8000 away from completing Mar 06 06:31:52 :) Mar 06 06:32:06 how long does it take for 40k to be created anyways? Mar 06 06:32:20 too long cause I left logging on Mar 06 06:32:25 i hope you're using transactions ;) Mar 06 06:34:04 cause of logging it's only doing probably 20-40 per second Mar 06 06:34:18 oh maybe more like 10-20 Mar 06 06:35:10 why do women have sooooo many more texts Mar 06 06:35:30 I'd like a social sciences expert to explain that one to me Mar 06 07:03:42 "Dx warning: Ignoring InnerClasses attribute for an anonymous inner class (x.y.z$1) that doesn't come with an associated EnclosingMethod attribute. This class was probably produced by a compiler that did not target the modern .class file format." Mar 06 07:03:43 it saddens me that i need to check facebook to figure out when i started a job :( Mar 06 07:04:22 canadiancow: it saddens me anyone has any reliance on facebook let alone when they started a job :) Mar 06 07:04:43 wut is facebook :) Mar 06 07:09:35 oh shebang i can deduct a shitload of stuff on my taxes Mar 06 07:12:09 i've never been able to deduct more than the standard deduction :| Mar 06 07:13:03 its been a while since i used TurboTax but it was pretty painless. i usually find ways to break things, and i made it through unscathed Mar 06 07:13:11 I tend to be too late/lazy to deduct any more than the basic - my taxes are pretty low anyway Mar 06 07:13:52 g00s remember how i moved to another country? :P Mar 06 07:13:56 that complicates things Mar 06 07:14:05 right now the US seems to want to give me a refund and canada wants more money Mar 06 07:14:18 canadiancow: are taxes easier to do in Canada? its crazy here, requiring whole industries like H&R block Mar 06 07:14:29 nah it's the same Mar 06 07:14:32 turbotax.ca is trivial Mar 06 07:14:37 i have .com and .ca open right now :P Mar 06 07:14:45 they look about the same Mar 06 07:14:49 the complications arise from my move Mar 06 07:14:55 and earning income in both countries Mar 06 07:20:27 well having two apartments for 3.5 months at the beginning of last year has helped with that Mar 06 07:22:32 tax return here is 4 pages, and one of them doesn't apply to me... Mar 06 07:27:37 I used to pay tax Mar 06 07:27:41 not anymore Mar 06 07:27:42 taxes are for chumps Mar 06 07:28:20 g00s: exactly :) Mar 06 07:29:50 well my 40k sms work ok, just need to get my listView preloading Mar 06 07:30:11 well, i think a well functioning govt should have income; just that the people in the US that have the highest tax burden are not the ones who can afford it Mar 06 07:30:16 are there any examples online of that? seem to not be able to find any Mar 06 07:31:02 meanwhile, corps and crazy wealthy find all the loopholes - leaving us poor bastards :| Mar 06 07:31:26 tis only paper Mar 06 07:31:32 given worth by your mind Mar 06 07:31:33 but Mar 06 07:31:45 any preloading listView/adapter examples ? Mar 06 07:31:52 or is this just not done ? Mar 06 07:34:55 g00s: take a look at china Mar 06 07:35:51 <_3by8> I've got a question not related to Android apps but everyone else seems to be asleep, may I privately ask someone? Mar 06 07:36:06 you can publicly ask :) Mar 06 07:36:12 <_3by8> So, I'm building Android 4.2.2 from source at the moment for my Sprint Galaxy Nexus and I ran "make adb fastboot -j4" is that going to build just those tools or the entire system plus those tools? Mar 06 07:40:07 its getting late. i must have missed something... Mar 06 07:40:13 my submit button isn't registering Mar 06 07:40:13 http://pastebin.com/d25SSvwd Mar 06 07:40:57 "Unable to parse response. If you have a browser extension or add-on installedwhich changes the JSON response, please disable and refresh this page." Mar 06 07:41:10 hahaha... i forgot the onClickListener for the button!!! Mar 06 07:41:22 Can't update images in my google play developer console any more Mar 06 07:41:29 Trinsta: I was assuming you set that in xml Mar 06 07:41:29 and it does say "installedwhich", hurr durr Mar 06 07:41:51 set the button? Mar 06 07:42:23 pragma-: new or old console? i switched back to old because new was buggy Mar 06 07:42:35 Trinsta: yes Mar 06 07:43:01 no idea what that means but I defined it in xml and instantiated it in java Mar 06 07:43:03 old console Mar 06 07:43:10 but fixed my error, forgot setOnClickListener Mar 06 07:43:11 i had to switch to the new one to update the images Mar 06 07:43:11 as in android:onClick="someMethodWithView" Mar 06 07:43:11 ruh roh Mar 06 07:43:12 hurr durr Mar 06 07:43:29 Trinsta: property on the button Mar 06 07:43:32 :) Mar 06 07:43:41 I like the old one better though Mar 06 07:43:42 jinkies! Mar 06 07:43:47 but at least the new one allows you to reorder the images Mar 06 07:43:59 StingRay_: nope, is there any reason why setting it in xml would be better? Mar 06 07:44:04 im more of a code type of person :/ Mar 06 07:44:47 Trinsta: convenience Mar 06 07:44:50 but no Mar 06 07:44:53 rather do it in code Mar 06 07:46:25 Trinsta: i would get used to setting the click handler manually; you can't do it in XML if its part of a fragment Mar 06 07:46:32 now im just confused... if typeEt has "dslsdls" as its text obviously it would show the toast... but when it has "Run" as its text it still is showing the toast Mar 06 07:46:43 either my logic is bad or typeEt.toString() is not returning what i typed Mar 06 07:47:04 Trinsta: you will get a string ref Mar 06 07:47:07 to the object Mar 06 07:47:13 g00s: i set it by code :) Mar 06 07:47:14 .getText().toString Mar 06 07:47:26 ahhh forgot, didnt work with TextViews/ETs for so long Mar 06 07:48:38 03-05 23:51:35.887: D/TEST(13925): >>> data: 03/05/2013,Tuesday,11:51 PM,Run,7,7 Mar 06 07:48:43 beautiful, excel import ready Mar 06 07:55:21 Morning to all Mar 06 07:55:37 Small question: How can i found out, which libs files are loaded from android? Mar 06 07:55:56 Question behind, which files i can delete from rom Mar 06 07:56:37 switchgott, you should ask yourself since you already found out! ;) jk jk Mar 06 07:57:19 ??So it is not possible to get a list? Mar 06 07:57:51 Ok, so i cant found out, which lib is useless after deleting an system app Mar 06 07:58:06 <_3by8> Where do my IMG files pop out of when I'm finished building from source? Mar 06 07:59:19 _3by8: you can configure that via an env virable, but by default the folder is called 'out' i guess Mar 06 08:02:27 @Trinsta What you meen= Mar 06 08:06:20 <_3by8> timroes and about how long does it take to build from source? Couple of hours, right? 4 maybe? Mar 06 08:09:17 bloody hell Mar 06 08:09:22 hidden APIs Mar 06 08:09:27 why didn't anyone tell me this before? Mar 06 08:11:28 HorizonXP: hidden apis for what ? Mar 06 08:13:19 StingRay_: all teh things Mar 06 08:13:53 StingRay_: I'm trying to access android.filterpacks.Filter and create a subclass of it Mar 06 08:14:08 it's hidden tho... but apparently it's possible. Mar 06 08:15:06 _3by8: depends on system configuration :) Mar 06 08:15:23 No help?? Mar 06 08:15:29 can be from within some minutes if you build on a cluster up to half a day or so i guess, if you build on an old laptop Mar 06 08:15:52 hm, AccountManager stuff is like a whole big ball of wax Mar 06 08:17:18 _3by8: i've never measured mine, but i am building on a fairly new desktop system (8*3,6ghz, 32GB RAM, source code stored on RAID1 with hdd) and i guess the first build takes around 2-3 hours Mar 06 08:17:33 but actually never measured it, so this is just a vague feeling Mar 06 08:20:33 timroes, what OS? Mar 06 08:22:46 linux ofc Mar 06 08:22:49 Hi everyone. I'm trying to send a HTTPS post request when the user touches a button. Unfortunately my application crashes and I'm not sure how to interpret the error message. Here is the error and the relevant code: http://paste.ubuntu.com/5589796 Mar 06 08:22:54 I'm choosing what to use for android/ios dev Mar 06 08:23:20 with ios you kinda have to use macos Mar 06 08:23:20 I added the following line to my manifest, but it didn't change the error: Mar 06 08:23:25 squ: okay if you build under windows you mst surly will be slower (not necessarliy because windows it bad, but ntfs is from all my experience and tests way slower thene ext file system) Mar 06 08:23:29 Kottizen: the reason is in the cause, dont do network connections on the main thread Mar 06 08:24:06 deebo: Oh... How silly of me not to notice (didn't know you couldn't, but yeah...) - thanks! Mar 06 08:24:10 squ: the build system is somehow build for an ubuntu configuration, so if yuo are completely free to chose, that might be a try (though i don't like (or use) ubuntu anymore, cause its so cluttered) Mar 06 08:24:51 timroes, I am a bit familiar with freebsd, is it an option for android? Mar 06 08:25:11 never used it, but i think the step from freebsd to linux isn't that large :) Mar 06 08:26:17 and if you are unexperienced with linux, ubuntu might be a good choice (it won't teach you so much about linux, but it its very easy to use) Mar 06 08:26:32 another choice is macos with some hacks to run not on their processors Mar 06 08:27:01 nono, freebsd or netbsd only :) Mar 06 08:27:13 or macos.. or win Mar 06 08:27:45 its most about your personal preferences :D Mar 06 08:27:48 for macos it might make sense to buy separate pc for it Mar 06 08:27:53 like macmini Mar 06 08:28:17 yeah I wouldn't use this cause of personal dislike, but if you feel comfortable with it Mar 06 08:28:34 yep, its kinda a waste of money Mar 06 08:28:43 buy pc just to develop for ios Mar 06 08:28:50 they arent so expensive anymore Mar 06 08:29:09 but the ones I yet used (cause mainained them as a sys admin) just have very crappy hardware Mar 06 08:29:23 that i wonder how the hell did this get to be sold here in EU Mar 06 08:29:52 and ofc MacOS didn't work well if you want to maintain (and update) it behind a proxy Mar 06 08:30:06 but with it you can develop for both, android/ios. while with linux/windows you are stuck to to android only Mar 06 08:30:35 yeah but why the hell would i want to develop for ios :D Mar 06 08:30:54 also I noticed it takes a lot of ram, run photoshop+eclipse = 8 gb :) Mar 06 08:31:11 yeah but thats more a problem of the software :D Mar 06 08:31:15 run eclipse 4gb Mar 06 08:31:18 run photoshop 4gb :D Mar 06 08:31:24 eclipse needs like 350-450mb ram Mar 06 08:31:25 I have macs, lnx workstations and win pcs, the thing I like best is OSX on a i7 gaming rig thats not a mac Mar 06 08:31:25 isn't anything different on my linux machine :D Mar 06 08:31:48 if your eclipse is taking 4G of memory, you're doing something very wrong ;) Mar 06 08:31:50 g00s: afaik it claims a percentage of your ram Mar 06 08:32:09 because on my work notebook it also just takes 500mb ram Mar 06 08:32:18 but starting it on my desktop that has way more ram, it blocked 3gb ram Mar 06 08:32:19 g00s, like running emulator? Mar 06 08:32:23 or two? Mar 06 08:32:28 squ: one emu Mar 06 08:32:31 plus xml previewer Mar 06 08:32:34 g00s: I thought that's called "I ran the 64bit eclipse" Mar 06 08:32:38 and voila - no ram Mar 06 08:32:52 squ: yeah eclipse is a bunch of crap :D Mar 06 08:32:57 right now, my eclipse is taking 310mb ram, and the emu 280mb Mar 06 08:33:04 don't expect too much of it Mar 06 08:33:15 g00s, sounds impossible :) Mar 06 08:33:21 :) Mar 06 08:33:31 most people install the wrong eclipse ;) Mar 06 08:33:38 you are on mac? Mar 06 08:33:42 yeah Mar 06 08:33:48 can you tell me your total ram Mar 06 08:33:54 my firefox is taking more than eclipse + emu combined Mar 06 08:33:57 and then tell how much is 'free' by activity monitor Mar 06 08:34:01 squ: 4G Mar 06 08:34:07 we substract two digits Mar 06 08:34:14 numbers:) Mar 06 08:34:31 free is 172mb, inactive 740mb Mar 06 08:34:48 oops, i was running chrome heh Mar 06 08:35:06 so its around 3gb? Mar 06 08:35:49 hi i am new to android app development, just created a login screen , how to send the username and password to an application api which implements basic auth Mar 06 08:36:09 now one thing i'm not so sure - i am using the x86 emu with haxm kext; is the kext using the 1G i gave it during setup which i havent seen in the accounting Mar 06 08:36:50 possibly Mar 06 08:36:52 nitin__" Auth2.0 + Https + server + posts Mar 06 08:37:00 it's not guaranteed that accounting will see it Mar 06 08:37:06 nitin__: you can either use HttpClient or HttpURLConnection both have methods to enter basic auth (or at least header data) Mar 06 08:37:49 timroes, can you give me some examples codes links .....?? Mar 06 08:37:52 squ: so if you get eclipse, get 3.8.2 /platform runtime/ and just add ADT; done. smallest install you can have Mar 06 08:38:40 nitin__: http://stackoverflow.com/a/3365203 Mar 06 08:38:50 e.g. with HttpClient Mar 06 08:39:02 ofc the example isn't complete but that anyway depends on what you want to send Mar 06 08:40:00 p_l: another interview tomorrow ? Mar 06 08:40:47 g00s: no idea Mar 06 08:40:52 ah, ok Mar 06 08:41:10 it's a bit after midnight in CA Mar 06 08:41:44 still have the same issue. takePicture (with a custom surfaceview (1dpi translucent)) shots on some devices only black pictures. logcat says no error. It is usually on some 4.2.1 google nexus devices. Any idea what it could be? Mar 06 08:41:54 p_l: LA? Mar 06 08:42:32 timroes, one error Base64Encoder cannot be resolved Mar 06 08:42:49 Trinsta: Mountain View (for the recruiter) Mar 06 08:42:54 nitin__: because its apache stuff Mar 06 08:42:58 I'm in Poland. 9h difference :) Mar 06 08:43:03 google for `base64 android` Mar 06 08:43:08 or use this link: http://developer.android.com/reference/android/util/Base64.html Mar 06 08:44:00 p_l: Google recruiter? Mar 06 08:44:07 Trinsta: yes Mar 06 08:44:19 p_l: nice! good luck :) Mar 06 08:44:35 g00s: got added to yet another possible job (SET - Software Engineer in Test) too. Mar 06 08:46:06 is it just me, or writing a custom authenticator is extremely convoluted Mar 06 08:46:28 yup Mar 06 08:49:38 are there any publicly known methods of spoofing imei or serial right now? (not thinking of doing it, just trying to protect app) Mar 06 08:50:38 yes Mar 06 08:51:28 hmm just looked it up, serial could be spoofed with a custom rom Mar 06 08:51:37 but im pretty sure spoofing an IMEI is illegal Mar 06 08:52:03 yeah so best security mechanism is, just tell the ppl its illegal, so noone will do it :) Mar 06 08:52:14 Trinsta: spoofing IMEI to OS is one thing, spoofing IMEI on network is another thing Mar 06 08:52:45 Free Kevin Mitnick! Mar 06 08:52:50 er, lag Mar 06 08:52:51 p_l: what about spoofing IMEI to my network :) Mar 06 08:53:12 Trinsta: spoofing IMEI to network - I meant to cellular network Mar 06 08:53:18 yea i know Mar 06 08:53:26 and that's actually a jailable offense, I think ;) Mar 06 08:53:41 p_l: what does the network wants with my IMEI?? Mar 06 08:54:00 but topics on it on XDA are closed automatically Mar 06 08:54:10 isn't that completely unrelevant for it, since afaik it does all its authentication stuff with the IMSI Mar 06 08:54:11 timroes: network charges, its a global identifier Mar 06 08:54:15 (and temporaray imsi numbers) Mar 06 08:54:27 Trinsta: with the IMEI o.O Mar 06 08:54:44 timroes: it's used as part of the routing as well, afaik Mar 06 08:54:52 now i change my sim card in the same device, it still has the same IMEI, so my old sim card will be charged for that? Mar 06 08:55:02 timroes: no Mar 06 08:55:03 it stops stolen phones, i use IMEI to check for blacklists Mar 06 08:55:27 anyone know a good place to find jars, trying to locate one with com.webobjects in it, for some obj-c to android ;-x Mar 06 08:55:28 for example, you steal someone's sim card make a bunch of international calls that sums up to $1000000 Mar 06 08:55:46 Gaz`: pantry Mar 06 08:56:04 lol u git i just googled that lol Mar 06 08:56:07 timroes: anyway, IMEI is relevant for logging to cell, and you log to them all the time :) Mar 06 08:56:10 p_l: its a felony in lots of countries, changing Mar 06 08:56:14 your imei* Mar 06 08:56:18 Trinsta: I know Mar 06 08:56:28 and I support that :) Mar 06 08:56:38 i stil don't see how cellular network tries to prevent imei spoofing Mar 06 08:56:40 and the protection scheme is simple, casual hackers ask on XDA, XDA mods close it and state its illegal :) Mar 06 08:56:59 in fact largest cellular provider here ingermany once said that around 20% of the imei numbers in their network are wrong Mar 06 08:57:14 timroes: they can't except that it's easy to end up with duplicate IMEI, which leads to afaik automatically banning them Mar 06 08:57:57 timroes: ahhh... the one place where "German quality" is heavily opposite to its usual meaning ;) Mar 06 08:58:06 * p_l got some beef with T-Mobile Germany :> Mar 06 08:58:08 cellular mobiles? :D Mar 06 08:58:51 definative, but you still have to claim lots of countries use GSM, that is like an open door with a big sign, no acces, but we can't stop you Mar 06 08:59:04 (at least as fallback from umts) Mar 06 08:59:50 timroes: you can, however, autoban IMEI numbers which are simply wrong Mar 06 08:59:51 p_l: I searched for both spoofing of the IMEI and SERIAL Mar 06 09:00:09 Trinsta: Samsungs are damned easy to get IMEI of your chocie Mar 06 09:00:10 seems theres only 1 post on spoofing Serial and lots of users reported it to not work Mar 06 09:00:12 *choice Mar 06 09:00:14 p_l: yeah would agree in that, just didn't know the careers give so much attention to them Mar 06 09:00:17 anywhere you can point me? Mar 06 09:00:31 Trinsta: /efs on samsungs is... fun Mar 06 09:00:41 ? Mar 06 09:00:56 Trinsta: it contains, among other things, IMEI (encoded, but possible to overwrite) Mar 06 09:01:08 timroes: usually the police gives the attention :) Mar 06 09:01:24 I remember seeing quite a bit of posters in UK about IMEI locking etc. Mar 06 09:01:33 p_l: in germany poloice gives more attention to catch imsi's from demonstrants :D Mar 06 09:02:00 to know that everyone within an area around a demonstration is a possible terrorist :D Mar 06 09:02:25 anyway, more interesting is triangulation spoofing than IMEI spoofing (it makes network think you're in different place :D Mar 06 09:02:26 p_L: hmm... would you say that it would be fairly simply to spoof it? and would you risk it for lets say... $10? Mar 06 09:02:47 Trinsta: I know just how many people managed to wipe their IMEI :> Mar 06 09:02:59 well wiping is another thing... Mar 06 09:03:02 p_l: though gsm is well known as not to be secure at all, i like all the gsm hacks Mar 06 09:03:12 e.g. http://www.youtube.com/watch?v=a1iZV2nl28A that one from last chaos communication congress Mar 06 09:03:31 how to stop a whole gsm cell with a 20€ pretty old phone from working :) Mar 06 09:03:35 some people who know how to regenerate radio config files offer rebuilding it, including writing the IMEI anew, but they also require proof of IMEI number being legal etc. Mar 06 09:03:59 p_l: relatively complex task, not in the reach of casual users haha :) Mar 06 09:04:09 if thats the case then let the undergroundies do their thing Mar 06 09:04:10 timroes: that's something that can be done to any public access broadcast medium network Mar 06 09:04:28 and the reason for certification Mar 06 09:04:44 yeah but i don't mean on a sending matter Mar 06 09:04:47 like blocking frequencies Mar 06 09:04:59 because if you want to do that in a larger area you will need pretty expencie equipement Mar 06 09:05:13 timroes: you don't need to block frequencies, you just need to inject properly designed noise to get enough hw into confused state Mar 06 09:05:33 but that hack was just tricking the paging channel of gsm to stop it from sending calls and sms to ppl (or forward them to your own device, so its not just blocking ) Mar 06 09:05:34 funnily enough, aviation radio instead requires overriding signal :D Mar 06 09:05:40 ... because it's so old there's no state Mar 06 09:06:06 timroes: so "incorrect state" for the cell to be in :) Mar 06 09:06:24 yeah more or less Mar 06 09:06:47 you jsut tell the BSC, that you are responsible to receive any call and sms Mar 06 09:06:59 just by beeing faster then the actual device, that wants that call :) Mar 06 09:07:02 in aviation radio comm, the minimum decoding equipement iirc involved a single diode Mar 06 09:07:35 but how much do you really need to generate enough noise to prevent a whole gsm cell from working? Mar 06 09:07:53 (never done it, but i would assume your hardware will cost more then 20€ :D) Mar 06 09:08:19 timroes: why not just screw up TDMA multiplexing by talking all-the-bloody-time? ;D Mar 06 09:08:54 (possibly with badly tuned transmitter that spews all over the spectrum) Mar 06 09:08:58 still none of that solutions give you possibility to get all the calls and sms to other ppls :) Mar 06 09:09:04 the one above does :) Mar 06 09:09:08 thats the little extra you get :) Mar 06 09:09:50 my fav. way is rather... out there anyway Mar 06 09:09:58 (and It's For A Book, as they say) Mar 06 09:10:58 http://tvtropes.org/pmwiki/pmwiki.php/Main/ItsForABook <--- in this sense Mar 06 09:11:26 ah kay :D Mar 06 09:11:28 just wondered Mar 06 09:12:13 boah youtube not prebuffering videos while paused anymore is annoying me like hell... Mar 06 09:12:54 mute it :) Mar 06 09:13:04 I actually like that its not prebuffering now Mar 06 09:13:54 i like it till the moment it breaks playing because it need to load stuff.. Mar 06 09:16:01 what ive noticed more and more though (this might just be me) are flash player error Mar 06 09:16:29 Hey Mar 06 09:16:30 if the words "problem" and "flash" are involded, you should never assume its 'You' Mar 06 09:17:09 how about error and flash? :) Mar 06 09:17:15 same :D Mar 06 09:17:26 reason in most of the times is flash :D Mar 06 09:17:57 but I am even using html5 videos on youtube, so i am not sure if that prebuffering stuff, is something I could enable on client side and not youtube's fault Mar 06 09:18:12 but didn't find anything helpful in the internet :) Mar 06 09:18:50 http://productforums.google.com/forum/#!topic/youtube/1H0GSp21nmw Mar 06 09:19:13 one comment states - delete cookies? Mar 06 09:20:17 Can I prevent someone from downloading my apk from the device and decompiling it? I've tried to use Astro File Manager on a non-root device and it shows "(private)" next to the Wolfram Alpha application, which I was trying to back it up with Astro. (i.e. copy its apk to sdcard) Mar 06 09:20:20 the negative ratings on that comment seem like its not working :D Mar 06 09:20:25 (and just tested it isnt :D) Mar 06 09:20:29 BadDesign: no, you can't Mar 06 09:20:53 BadDesign: Are you trying to prevent reverse engineering? Mar 06 09:20:57 BadDesign: also, in several jurisdictions decompilation is legal no matter what you write Mar 06 09:21:14 (in fact, you can get a court summon for trying to ban RE) Mar 06 09:21:24 p_l: what? Mar 06 09:21:27 Is the apk accessible on non-rooted devices? I thought it wasn't. Mar 06 09:21:36 appel1: it is Mar 06 09:21:48 Trinsta: an example is Poland - RE is a law-guaranteed right of everyone Mar 06 09:21:50 Not that it matters much since those that can reverse engineer probably has access to a rooted device :) Mar 06 09:21:51 Mega1mpact: Yes. But first I'm trying to understand why I can't backup Wolfram Alpha's apk with Astro File Manager... why it shows "(private)" next to it and I can't select it like the other apps for which I can copy their apks Mar 06 09:22:24 p_l: lol cool :D Mar 06 09:22:35 BadDesign: Just a note, (meaning im not sure at all) but some developers contact other developers to blacklist their app Mar 06 09:22:58 i anyway wonder why so many ppl try so hard to prevent RE. if you spend the time in new features you will make much more money then you can ever lose by preventing RE Mar 06 09:23:02 jellybean has app encryption, paid apps from the play store will be installed with an encrypted container Mar 06 09:23:07 timroes: the way it works, no one can sue you for Reverse Engineering, because all it would give them would be voiding of several points in their EULA Mar 06 09:23:18 There are several other apps as well that show as ("private") like XDA Premium... Mar 06 09:23:26 kevinb: yes, but it's possible to get around that Mar 06 09:23:30 yes, easily Mar 06 09:23:31 BadDesign: yea most liekly they were told to blacklist Mar 06 09:23:36 but that's what BadDesign is seeing Mar 06 09:23:44 the only thing that gets blocked are casuals :) Mar 06 09:23:47 Why not prevent reverse engineering by obvuscating it... a lot Mar 06 09:23:55 Mega1mpact: HA HA HA HA Mar 06 09:23:57 lol, Mar 06 09:23:58 BadDesign: or the apk encryption as kevinb wrote Mar 06 09:24:07 it wouldn't do a thing, maybe hold someone off for 5 minutes Mar 06 09:24:07 That *should* help :/ Mar 06 09:24:20 * p_l <---- the guy who used to remove license service from obfuscated applications with simple grep Mar 06 09:24:23 I've seen some clever obvuscation Mar 06 09:24:43 Mega1mpact: it doesn't help you a lot in DVM/JVM Mar 06 09:24:53 Mega1mpact: since the app must be able to run after obfuscation it wont stop clever RE Mar 06 09:25:01 what you could do though, but it wouldn't be secure... would if you have it contact a server post the app's licensing checksum + apk checksum Mar 06 09:25:05 also, you need to deal with required public names in various places Mar 06 09:25:08 and its just a bunch of time wasted you could have used to make your customers happy Mar 06 09:25:10 I saw someone store a DLL as an encrypted base 64 hash that obtained the key in a weird way. After that it decrypted it and loaded it into memory. Mar 06 09:25:16 I found it quite clever Mar 06 09:25:26 appel1: You can copy the apk's on non-rooted devices; I'm currently trying to understand why it is not possible for XDA Premium or Wolfram Alpha Mar 06 09:25:28 Mega1mpact: yes, doesn't work well for android Mar 06 09:25:34 True.... Mar 06 09:25:49 Trinsta: and you can remove that part earlier :) Mar 06 09:26:03 BadDesign: possibly because they are paid apps Mar 06 09:26:07 p_l: so how would you break apk checksums + signed checksums being sent to server via public key cryptography? Mar 06 09:26:34 Trinsta: remove the sending to server part from the apk :) Mar 06 09:26:35 Trinsta: I'd remove the part that sends them if the application doesn't need the service for operation (as in actual action happening on the service) Mar 06 09:26:41 ahh, but that doens't work Mar 06 09:26:47 also, I could just put in code to spoof correct checksums Mar 06 09:26:54 Trinsta: it's a 10 minute job at worst :) Mar 06 09:26:56 because server has to verify and send you back a token Mar 06 09:27:07 Trinsta: so if I remove the part that checks the token? Mar 06 09:27:10 which you use only once Mar 06 09:27:19 Make it loop back to the local device and spoof the server from there Mar 06 09:27:22 and make the app work without any token Mar 06 09:27:31 Trinsta: Also, I can make the application send previously calculated data Mar 06 09:27:37 nope, i have nonces Mar 06 09:28:02 working without a token wouldn't be possible either. the user expectsa prize to be delivered Mar 06 09:28:24 there is no such thing as perfect security Mar 06 09:28:28 i know Mar 06 09:28:32 but i think its complex enough :) Mar 06 09:28:40 you can make it pretty okay, but its just a waste of time Mar 06 09:28:46 you could have used to make your customers happy Mar 06 09:28:46 Trinsta: that's "needs the external service to operate". Also, I can just make it return "proper" data to server Mar 06 09:28:48 kevinb: So even if I have rooted device and inspect the location where the app's apk is or the 'encrypted container' for it, I wouldn't be able to decompile it? Mar 06 09:28:50 and not your non costumers more unuhappy Mar 06 09:29:04 security : to break > prize Mar 06 09:29:22 BadDesign: no. if you root your device it is trivial to grab the unencrypted APK Mar 06 09:29:28 often ppl who do it, doesn;t do it because they want it for free, but because its sport for them? Mar 06 09:29:40 timroes: yea i know, so its block casuals, make it hard for hardcores and make sure they can't replicate, and let the undergroundies do what they want Mar 06 09:29:41 any idea why its getting black on a very few devices? ( http://stackoverflow.com/questions/15243472/android-takepicture-is-black-on-some-devices )? Mar 06 09:29:45 you think all the game crackers wouldn't have the money just to but the game instead of spending weeks in cracking it? Mar 06 09:29:50 sport = undergroundies Mar 06 09:29:51 I sometimes did it to have sensible time to test out an app before buying Mar 06 09:29:59 I'm going out for a smoke. brb Mar 06 09:30:07 because with current 30 minute refund window I often couldn't even get it downloaded Mar 06 09:30:12 p_l: what do you mean return proper data? Mar 06 09:30:25 theyre one time tokens stored in database Mar 06 09:31:17 Trinsta: decompile the APK before running, find out the algorithm that generates the data sent to server, run it in sandbox to obtain code that will be sent, modify the APK to send it as constant, run Mar 06 09:31:40 token generation is done on server-side Mar 06 09:32:04 Trinsta: yes, but we're manipulating the data server gets to generate the token Mar 06 09:33:02 hmm... still don't catch waht youre saying... but tokens are generated after an IAP Mar 06 09:33:30 Trinsta: well, IAP is secured better, but we were talking about stopping modification of APKs, not hijacking IAPs :) Mar 06 09:33:32 server generates, saves hash in database salted with your IMEI/SERIAL + something extra, and gives you the Token Mar 06 09:33:45 ahh :) Mar 06 09:34:45 but i guess i jsut ruined my first defense, security by obscurity ;) Mar 06 09:35:06 yeah 'security by obscurity' is the best defense Mar 06 09:35:20 ultimately if your app's normal functionality is all local, then that can be enabled and bypass any anti-piracy techniques you try. if your app actually depends on server data then you can likely prevent widespread piracy of the server interactions. (though i think for WoW there are people running custom servers to bypass that too in a way) Mar 06 09:36:41 most private servers at least in MapleStory's case were complete rewritten Mar 06 09:41:35 I don't understand the "Security Recommendation" for verifying in-app purchases in IAP API version 3 from http://goo.gl/tkb7F regarding the use of a developerPayload... why would I need that if I can verify the data with the signature on my server and for reply attacks I can check on my server if the orderId has not been processed previously Mar 06 09:42:16 The "developerPayload" random string thing seems pointless Mar 06 09:44:42 for root-related stuff, #android-root? Mar 06 09:45:45 HorizonXP: yes Mar 06 09:46:16 thnx Mar 06 09:46:31 don't suppose anyone here could help with accessing hidden APIs? Mar 06 09:47:35 back' Mar 06 09:47:40 https://www.facebook.com/notes/facebook-engineering/under-the-hood-dalvik-patch-for-facebook-for-android/10151345597798920 O - M - G Mar 06 09:47:56 Did I miss anything of interest? Mar 06 09:48:12 ofc before thinking about cleaning up my code I would patch the dalvik vm :D Mar 06 09:48:20 facebook devs seem to be pretty insane Mar 06 09:48:33 that's a lot of methods =) Mar 06 09:49:17 yeah, they seem to be clever, but not have a good software architecture sense Mar 06 09:49:41 Can anyone confirm that what I said above developerPlayload is legit? Mar 06 09:50:06 BadDesign: Google Design states not to use developerPayload for security things Mar 06 09:50:12 HorizonXP: the most help you will get here: don't do it Mar 06 09:50:13 use it sort of like a "notes" Mar 06 09:50:21 its like acecsing private methods of classes from outside Mar 06 09:50:27 Trinsta: Google IAP team states to use it Mar 06 09:50:34 where? Mar 06 09:50:40 Trinsta: http://goo.gl/tkb7F Mar 06 09:50:43 my information is from v2 though, they might have changed Mar 06 09:50:58 Trinsta: Check the "Security Recommandation" part Mar 06 09:51:10 *Recommendation Mar 06 09:52:09 The developerPayload String is used to specify any additional arguments that you want Google Play to send back along with the purchase information. Mar 06 09:52:14 its just there for extra precaution Mar 06 09:53:48 yeah I see... just for MyApp -> Google Play app -> Google Play server and back interaction... Mar 06 09:54:46 hmm, im using IAPv2. always though IAPv3 wouldn't support server verification Mar 06 09:54:47 guess iw as wrong Mar 06 09:55:06 wondering if i should switch over Mar 06 09:55:23 Trinsta: IAP v3 supports server side signature verification Mar 06 09:55:30 I've done that myself... Mar 06 09:55:51 yea i know that now, always thought they didnt Mar 06 09:56:06 assumed since they said it was synchronous that iwas a onestep thing Mar 06 09:56:22 You just need to use the orderId to protect against reply attacks instead of using a nonce like in version 2 Mar 06 09:57:29 mhmm, always figured why they put a nonce and an orderId Mar 06 09:57:56 though in my opinion, i'd use the developerPayload as a place to put my server generated nonce Mar 06 09:58:08 just in case there are duplications in orderId Mar 06 09:58:09 They don't mention anything about nonce in v3... Mar 06 09:58:44 Yeah but would add an extra HTTPS request to the server to get the nonce before the purchase request is made Mar 06 09:58:47 *but that Mar 06 09:59:24 I hope the orderId is unique... can't seem to see anything mentioned about this either Mar 06 09:59:50 and every time it's mentioned... in the UK, nonce is slightly old-fashioned slang for a paedophile Mar 06 10:00:04 hmm, well thank you BadDesign! looks like im upgrading to v3 Mar 06 10:01:23 cool, v3 also has subscriptions, if you're planning on leveraging that Mar 06 10:01:56 yea, i remember a month ago it wasnt supported Mar 06 10:02:12 timroes: i read that (fb blog) … is that the 65k method limit though ? Mar 06 10:02:37 g00s: eh i am not su much into dalvik, but afaik that would be another limit Mar 06 10:02:42 what is ? … Mar 06 10:02:54 the facebook stuff is as far as i understood too deep hierarchy, that can't be resolved anymore Mar 06 10:03:17 ok, so a different issue Mar 06 10:03:20 look at the bug report linked in the facebook article it has an example how it could be generated Mar 06 10:03:57 but really, if a phone has 2G of memory, why do we have these weird limits still :) Mar 06 10:04:18 maybe back in 2007 ;) Mar 06 10:04:20 re: facebook + dalvik: https://plus.google.com/115646886292737317696/posts/B2r8Rj2GL3t Mar 06 10:04:36 Oh the irony of putting it on google plus Mar 06 10:04:51 kevinb: thanks for the link Mar 06 10:05:42 g00s: i guess (but again jsut assumptions) this low level c stuff needs to work a lot with arrays and not nice list structures and so it need a hard limit somewhere, and I guess in most cases this is chosen by common sane sense :D Mar 06 10:05:48 but there are always ppl breaking with it :D Mar 06 10:05:56 "this isn't the limit you're looking for" ;) Mar 06 10:06:05 "Move along" Mar 06 10:06:21 the more you bring in libraries though, the more likely you run into weird shit like this Mar 06 10:06:41 and - i dont want to have to run proguard for every build ;) Mar 06 10:06:58 * g00s is not going to wait 30 seconds for a build Mar 06 10:07:25 g00s: e.g. the 65kl method limit is due to dvm bytecode uses 2 byte to reference a method :) Mar 06 10:07:29 ofc you could say lets make it 3 Mar 06 10:07:37 :) Mar 06 10:07:41 you will waste a lot of space most ppl never need Mar 06 10:07:52 who would ever need more than 640K of memory ;) Mar 06 10:08:17 you could say something like: first byte of each method reference byte must be 1 if the next byte still belongs to the method id or 0 if this is the last byte of the method id Mar 06 10:08:45 wouldn't limit the amount of references, bt introduce a lot of more calculations needed to get the method id Mar 06 10:09:28 so you always need to chose for something, and I guess I would have also decided same as google guys and make it fixed with a (seeming sane) limit. And after all this is just software, so ofc it can be upgraded now that devices grow larger :) Mar 06 10:09:53 how about they just license Java SE 7 Compact ;) Mar 06 10:16:09 this is more an eclipse question, I'll try anyway, do you know those little '+' right next to methods definitions that if you click on you expand or contract the method implementation? I somehow got rid of that, I cant see any '+'... :( do you know how to get it back? thanks in advance Mar 06 10:17:19 gmag: seach for folding in the Preferences dialog Mar 06 10:17:22 gmag: #eclipse Mar 06 10:17:31 you will see 2 places, "Enable Folding" Mar 06 10:18:32 how can i make one method abstract without making the whole class abstract? Mar 06 10:19:49 g00s, cheers mate, that solved it! Mar 06 10:20:13 :) Mar 06 10:20:50 monsti: you can't Mar 06 10:20:55 it doesn't make sense at all :D Mar 06 10:21:22 if you mark a method as asbttract it means it doesn't have an implementation, but the method exists and any subclass must implement it Mar 06 10:21:50 that ofc required that you can't instantiate the class, because it has methods that have no implementations Mar 06 10:28:45 timroes: wish i could avoid it Mar 06 10:28:56 you can :) Mar 06 10:29:08 but I need to get timestamp info for video frames as they're encoded from the camera Mar 06 10:29:22 that isn't exposed outside of the android.filterfw.core.Filter class Mar 06 10:29:33 hence the need to use hidden APIs Mar 06 10:30:04 the good thing is that they seem relatively stable, since they've been there for a while Mar 06 10:30:25 and the native camera app uses the class via reflection, so unlikely to change drastically in the near future Mar 06 10:30:33 :D Mar 06 10:30:40 if you think that, you will have a bad time :D Mar 06 10:30:54 if you can propose a better solution, I'm all ears. Mar 06 10:31:06 there was just someone (guess was 2 weeks ago now) who relied on private methods Mar 06 10:31:12 also they has been there for a long time Mar 06 10:31:15 from api level 1 to 16 :) Mar 06 10:31:19 hmm... seems like it should be possible to increase the 65k method limit Mar 06 10:31:21 but now they are removed, because they cleaned up code Mar 06 10:31:44 and ofc things fails now Mar 06 10:32:13 but the app would still work on API levels 1-16 Mar 06 10:32:17 just doesn't work on 17 Mar 06 10:32:39 and again Mar 06 10:32:53 if another solution were proposed, I'd be all ears. Mar 06 10:32:55 http://devmaze.wordpress.com/2011/01/18/using-com-android-internal-part-1-introduction/ Mar 06 10:33:10 timroes: way ahead of you :P Mar 06 10:33:16 so why you still ask :D Mar 06 10:33:22 right now I'm trying to deodex the framework.odex file I got Mar 06 10:33:29 this really describes everything you need to do :) Mar 06 10:33:32 Hi there, I'm trying to create a game using a raywenderlich tutorial, well in the tutorial he create a project and in the new project window, he select "Create Project from existing source" Mar 06 10:33:39 I can't see that option in my eclipse :S Mar 06 10:33:40 that blog is a bit out of date wrt to SDK 17 Mar 06 10:33:55 it assumes framework.jar has what you need; it does not Mar 06 10:33:56 I'm using Version: 4.2.2 Mar 06 10:34:10 perfect example of how internatl stuff breaks :D Mar 06 10:34:18 if even the old tutorials don't work in the new version anymore Mar 06 10:34:46 you're trying to convince me of something Mar 06 10:34:55 and it's futile Mar 06 10:35:00 no, since i do't have any other solution Mar 06 10:35:00 because it's not that I don't agree with you Mar 06 10:35:06 because I do agree with you Mar 06 10:35:11 but yeah Mar 06 10:35:12 ^ Mar 06 10:35:16 no other solution Mar 06 10:35:17 but never tried to get frame timestamps from camera :) Mar 06 10:35:36 i would jsut store my own :) Mar 06 10:35:53 from where? Mar 06 10:35:57 but really depends on what you doing Mar 06 10:36:11 System.nanoTime() :) Mar 06 10:36:26 and when would that get called? Mar 06 10:36:45 thats what i said, i don;t know what exactly you are doing Mar 06 10:37:15 so I'm trying to save the system timestamp for every video frame as it's recorded Mar 06 10:37:23 in additon to that Mar 06 10:37:36 i'm saving gyroscope data, along with its timestamp Mar 06 10:37:59 i'd also like to save shutter speed/exposure time Mar 06 10:38:08 <__esz> http://stackoverflow.com/questions/15174276/android-animating-switching-between-activities-windows-order - any help would be appreciated ;-) Mar 06 10:38:12 all into a formatted packet of data saved inside the MP4 container Mar 06 10:38:29 Hi! is it possible to in a textview evenly distribute text across multilines (the text is centered). Right now it looks a bit stupid where two lines are centered however, there is only one word on the next line... Mar 06 10:38:33 that data will be used for subsequent processing of the video Mar 06 10:38:50 so you have somewhere a callback for everyframe or where do you save the gyroscope data? Mar 06 10:39:09 Gyro data is saved at a rate of 100hz Mar 06 10:39:16 i do not have a callback for the frame Mar 06 10:39:41 closest i could get was to use a surfacetexture and use onFrameAvailable to get the timestamp there Mar 06 10:40:06 however, since it operates on when frames are displayed and not when recorded, they didn't match what I saw in the final video file Mar 06 10:40:29 but in that case you could also save the gyro data and everythign you need in the onFrameAvalable Mar 06 10:41:41 what do you mean? Mar 06 10:42:15 gyro data gets saved in its own callback; can't really poll it Mar 06 10:42:29 you have the gyro data with timestamps, but have problems linking them to the right frames? so save them in the above mentaioned onFrameAvailable Mar 06 10:42:48 or at least link them in that method, e.g. look what was the last saved gyro data, and link it to the current shown frame Mar 06 10:42:51 timroes: that onFrameAvailble frame != same frame saved to video Mar 06 10:44:09 Does anyone know if the application encryption for paid apps is still broken in Android 4.2.x ? https://code.google.com/p/android/issues/detail?id=34880 & https://code.google.com/p/android/issues/detail?id=37998 Mar 06 10:44:49 I hate Google Code Mar 06 10:45:14 timroes: so because the current shown frame has no correlation to the video file being encoded, linking the gyro data has no meaning Mar 06 10:45:33 yeah if you need it really that precise i guess you will have a bad time :) Mar 06 10:45:50 or do the recording naitive yourself Mar 06 10:46:02 via ndk, but you will have a lot of problems with that too :) Mar 06 10:46:22 exactly Mar 06 10:46:37 NDK is a worse idea than my current plan Mar 06 10:46:55 i'm googling and googling and can't find anything useful. i want my page to either launch myapp:// link to my app, or if app is not installed, open google play.. closest is https://gist.github.com/pulletsforever/2662899 but it ALWAYS opens google play Mar 06 10:46:57 and it does need to be as precise as possible for this to work effectively Mar 06 10:47:30 this really is design failure of android :( Mar 06 10:47:59 on desktop answers i see i could check plugin's custom mime type.. but nothing of that on android Mar 06 10:48:34 if i load myapp:// protocol in iframe as above link, i even get iframe onloaded ok, if protocol doesnt exist Mar 06 10:48:49 no error i can catch?! :( Mar 06 10:50:32 miha: from where do you need to launch it, js or another app? Mar 06 10:50:44 p_l: you have me addicted to tree style tabs now :) i dunno how i lived without this Mar 06 10:51:09 timroes: i want user to scan QR code, which links to my page, and that page either sends data to app as myapp://myapp/somedatahere Mar 06 10:51:18 or if that fails, it opens google play with myapp Mar 06 10:52:01 miha: i only know a pretty dirty workaround that Mar 06 10:52:08 and i am not sure if it really works Mar 06 10:52:21 but problem is, js cannot detecty what app is installed on your device (luckily!) Mar 06 10:52:23 miha: I think you want to use an url that actually exists on your website that your app also hanldes Mar 06 10:52:57 so you have no chance to detect it in javascript, and need an url that will be valid with or without app Mar 06 10:53:12 appel1: but then user might have browser to open that url by default and my app doesnt get it Mar 06 10:53:17 if you create an own url like myapp://asdasd android doesnt know what it should do when its not installed Mar 06 10:53:23 so you need the shop url to install it Mar 06 10:53:33 but you can try to add some additional data to it Mar 06 10:54:00 try something like play.google.com/id/your.app.package#additional_data_for_app Mar 06 10:54:10 if your app is not installed google play will open this leading to your apps market page Mar 06 10:54:29 your app now registers an intent-filter for urls on play.google.com/id/your.app.packge Mar 06 10:54:30 miha: there's afaik no way around that Mar 06 10:54:43 and now the user will be timroes: probably better to use an url to his own site rather than "borrow" google play urls Mar 06 10:55:12 yeah right, thats better Mar 06 10:55:30 saves you one question which app to use :) Mar 06 10:55:45 so do http://yourpage.com/app#data Mar 06 10:56:09 and the page just forwards you to play store url, that will be opened and your app registers on http://yourpage.com/ so it wont be opened in browser anymroe but with your app Mar 06 10:56:18 but still, i cant register my app to have priority for http://yourpage.com over other browsers? Mar 06 10:56:26 nope user will be asked Mar 06 10:56:45 will it at least open dialog, if user already has default browser? Mar 06 10:56:48 but he can select always run with your app Mar 06 10:57:14 yeah if your app isn't installed and you scan that url it will just open up in normal browser Mar 06 10:57:27 that will then forward to the market url (that can be opened in google play then) Mar 06 10:57:41 i understand this just fine Mar 06 10:57:50 as i said pretty dirty workaround, but the only one I know Mar 06 10:58:20 https://gist.github.com/pulletsforever/2662899 is still better, it always open http://play, but first launches my app, so browser is in background :p Mar 06 10:59:02 have you tried that? Mar 06 10:59:17 timroes: yes Mar 06 10:59:29 becaue afaik as soon as the placestore is opened, the browser is in backgruond and shouldn't open other urls from backgruond anymore for you Mar 06 10:59:51 perhaps my app takes too long to load? :) Mar 06 11:00:07 that might be :) Mar 06 11:00:16 eh yeah for sure, 1ms :) Mar 06 11:01:54 if you specify a path, pathPrefix or pathPattern to the intent filter, does the browser still show up as an option for http url intents? Mar 06 11:02:27 timroes: i changed to 10000 (10 s) .. my app is fully loaded, still i get redirect to google play Mar 06 11:03:03 appel1: havent tried yet Mar 06 11:09:34 timroes: I got it working via a Filter :) Mar 06 11:10:09 what kind of filter? Mar 06 11:14:26 canadiancow you up yet Mar 06 11:18:07 Hey all, have been following http://www.simpligility.com/2010/07/sign-zipalign-and-to-market-to-market-with-maven/ to do a release build, but mvn clean install -P release doesn't seem to be signing my jar. Anyone had this problem? Mar 06 11:20:26 g00s: now you won't be able to switch to Chrome due to lack of TreeStyleTabs! :P Mar 06 11:25:47 hi!! Mar 06 11:27:45 I am about to start developing a http client with HttpURLConnection which will send to a servlet an image and some info associated with it Mar 06 11:28:43 I will attach the image in the outputStream provided by getOutputStream method Mar 06 11:28:50 setting the content to be an image Mar 06 11:29:03 my question is related to the additional info Mar 06 11:29:27 would you use setRequestProperty to add this info? Mar 06 11:33:36 p_l: indeed :) Mar 06 11:33:49 or how would you do it? Mar 06 11:34:11 Chainfire: its 3:30 where the cow is Mar 06 11:34:23 (probably not ;) ) Mar 06 11:36:59 aren't cows nocturnal Mar 06 11:39:09 i'm not sure if he's really a cow, i think maybe a person in cow costume Mar 06 11:39:17 Hi. I need to get the height of the available screen space in API 10. How do I do this? Mar 06 11:39:41 getDisplayMetrics() Mar 06 11:40:14 but I need the screen space available to me, like minus the action bar and whatever else Mar 06 11:41:03 so you want the size of your main view Mar 06 11:41:09 yeah Mar 06 11:41:14 hii , how to implement basic auth in android , means a username and password hit a api which uses basic auth Mar 06 11:41:39 haqe17 http://stackoverflow.com/questions/3779173/determining-the-size-of-an-android-view-at-runtime Mar 06 11:43:00 nitin__: we already had that Mar 06 11:43:32 timroes, but not got the solution , tried your given example Mar 06 11:43:48 error is in baseencoder64 Mar 06 11:44:02 Base64Encode Mar 06 11:44:05 yeah becasue it doesnt exist on android? Mar 06 11:44:15 nopes Mar 06 11:45:02 so what error then? Mar 06 11:45:13 stacktraces are always good if you want help :) Mar 06 11:45:37 class base64encode not found Mar 06 11:45:57 i am just trying another way , as i am new in android Mar 06 11:46:01 yeah because it doesnt exists in android? Mar 06 11:46:07 ... Mar 06 11:46:17 not it is not in android Mar 06 11:46:27 then you might be in the wrong channel :D Mar 06 11:46:39 :p Mar 06 11:46:41 and asking the wrong questions Mar 06 11:46:48 " how to implement basic auth in android ," Mar 06 11:47:18 timroes, ? Mar 06 11:47:43 ah n evermind perhaps someone else has time for that :D Mar 06 11:50:11 Chainfire: ok.. im trying that. but what is mediaGallery variable in that answer Mar 06 11:51:37 haqe17: mediaGallery in that answer is an Object that is a view type Mar 06 11:53:11 What is actually happening when an app is closed with ActivityManager compared to force close? Mar 06 11:53:13 eh.. which view should I set it to then? I want to find the dimensions of the root view Mar 06 11:53:59 root view as in current content view or root view as in nothing higher cause I'm the screen ? Mar 06 11:55:28 cause if you want your apps usable space you can just get displayMetrics Mar 06 11:55:29 in a textview, what is 'marquee' and marqueeRepeatLimit ? Mar 06 11:55:59 haqe17: as in getWindowManager().getDefaultDisplay().getMetrics(displayMetrics) Mar 06 11:56:28 StingRay_: ok.. let me try that Mar 06 11:59:38 hey Mar 06 11:59:43 can u helpme? Mar 06 11:59:59 42 Mar 06 12:00:22 anyone here ever had problems changing the color of the ActionBar drop down items? Mar 06 12:00:34 hey, is there any1 who can help me with my rom, i am using a nexus 4 on the latest cm10.1 nightly, and as soon as i toggle expanded desktop using the powerbutton, it automatically switches to my last used screen, but i do not want it to do that Mar 06 12:00:40 or am i in the wrong irc? Mar 06 12:00:45 someone linked me to this so Mar 06 12:00:47 idk Mar 06 12:00:51 wrong Mar 06 12:00:58 read title Mar 06 12:01:05 app development Mar 06 12:01:18 sorry Mar 06 12:01:19 #android-root #xda-devs Mar 06 12:01:22 maybe Mar 06 12:01:49 ty Mar 06 12:02:57 StingRay_: im still having a few issues. Basically What I am trying to do is get a gridLayout to fill the screen. But gridLayout doesnt support weights of its cells, so I am calculating the size of the cell by dividing the size of the screen space by the number of cells Mar 06 12:03:25 fill the screen ? Mar 06 12:03:31 you mean like match_parent Mar 06 12:04:06 yes, but gridLayout doesn't allows its cells to expand evenly like that Mar 06 12:04:18 match_parent doesnt help Mar 06 12:04:28 does that not depend on the content Mar 06 12:04:50 the cells by default will take up the whole space no ? Mar 06 12:04:54 nope Mar 06 12:04:59 are you sure ? Mar 06 12:05:11 never used gridView but sure thats how it works Mar 06 12:05:12 :) Mar 06 12:05:25 its not gridView im using though, gridLayout is different Mar 06 12:05:31 oh my bad Mar 06 12:05:40 eww is that not really old ? Mar 06 12:05:49 ummm Mar 06 12:05:53 i dunno :/ Mar 06 12:06:25 yeah use a gridView I would think Mar 06 12:06:29 easier Mar 06 12:06:30 works Mar 06 12:06:34 and maintained Mar 06 12:06:36 ok Mar 06 12:06:46 I didn't know. gridLayout is quite crappy though Mar 06 12:06:56 I really dont know Mar 06 12:07:00 have not used either tbh Mar 06 12:07:52 oh gridLayout is new Mar 06 12:08:10 like really shiny new Mar 06 12:08:12 well its still shit Mar 06 12:08:30 setAlignmentMode() Mar 06 12:08:35 and no it isn't Mar 06 12:08:38 looks quite nice Mar 06 12:09:24 as in you should look at setAlignmentMode() with FILL Mar 06 12:09:26 :) Mar 06 12:09:48 ok ill try it. but i know it wont work Mar 06 12:10:21 off for a smoke, back in 5 Mar 06 12:18:36 whats the standard hourly rate for android dev work? freelance type Mar 06 12:18:48 about $40/hour? or more Mar 06 12:19:15 * balls2thewall gags Mar 06 12:19:20 ._. Mar 06 12:19:23 devtekbeta: highly depends Mar 06 12:19:35 the most it depends on where you working I would say and your skills Mar 06 12:20:08 here in germany freelancer hour rate is around 105$ / hour Mar 06 12:20:10 so $40 for beginners and up to $100 for high end? Mar 06 12:20:15 i see Mar 06 12:20:29 and around 1300$ a day for company work Mar 06 12:20:47 so ~160$ if its not freelanced but for a company Mar 06 12:20:54 ;_; first world countries and their pay Mar 06 12:21:08 balls2thewall: i guess the advantage here is, we get payed in € :) Mar 06 12:21:26 bit more than what i expected Mar 06 12:21:33 timroes: I believe the amount is also way higher :) Mar 06 12:21:40 and a lot more than i make Mar 06 12:21:57 yey 80k sms messages and all is well with my app :) Mar 06 12:21:57 what do you make balls? Mar 06 12:22:01 balls2thewall: ofc as an employee you won't get 105$/h out :) Mar 06 12:22:08 * StingRay_ celebrates Mar 06 12:22:13 I get paid $7/hour for android development Mar 06 12:22:14 but as freelacner you have to pay own insurances here Mar 06 12:22:20 lol latvia Mar 06 12:22:21 7$ an hour :DDD Mar 06 12:22:26 7$? Mar 06 12:22:32 okay that you wouldn't get even as a student here for student jobs Mar 06 12:22:37 5$ Mar 06 12:22:40 from which noone expect to get serious results Mar 06 12:22:40 you would get more working in kfc Mar 06 12:22:43 yea :( Mar 06 12:22:48 burger king pays $7.25 Mar 06 12:22:53 and believe me, it's high pay here Mar 06 12:23:02 where is *here? Mar 06 12:23:21 brazil Mar 06 12:23:30 i wonder how companies expect to get good results from that Mar 06 12:23:33 BK pays $1,2/hour here Mar 06 12:23:34 * balls2thewall highfives draiken Mar 06 12:23:35 i suppose if cost of living is cheaper there. it is not so bad Mar 06 12:23:46 http://www.freelancer.com/jobs/Android/ if i look at that i don't wonder why there are soo many crappy apps out there Mar 06 12:23:48 not really Mar 06 12:23:59 waiters make $2.35 Mar 06 12:24:11 capella: on a decent country Mar 06 12:24:17 :) Mar 06 12:24:23 germany has cheaper groceries >_> not even talking about gas Mar 06 12:24:29 third world really is a whole different world Mar 06 12:24:33 okay to the comparision of the above 105$/h, waiters and burger king stuff, will get around 10$ here i guess Mar 06 12:24:38 COL is unfair >=[ Mar 06 12:24:52 balls2thewall: what the heck we have cheap gas? :D Mar 06 12:24:55 life has costs? 8) Mar 06 12:25:23 over here gas is ~2$ per liter Mar 06 12:25:24 okay i actually don;t know how much gas is in other countries outside eu, but from our neighbour countries we have pretty much the highest gas costs I guess Mar 06 12:25:33 a bit abouve 2$ here actually Mar 06 12:25:39 (can see the next gas station from my window :D) Mar 06 12:26:05 UK has high petrol cost. mainly tax Mar 06 12:26:11 balls2thewall: so its not cheaper, its the same, just germany the income is higher :) Mar 06 12:26:19 yeah in germany its also mainly taxes in that price Mar 06 12:26:25 lol got me Mar 06 12:26:41 in fact its 75% taxes in germany Mar 06 12:27:01 and france is close behind ? Mar 06 12:27:24 uk has high income tax.... something like 30% of everything over 15k/year Mar 06 12:27:29 i guess france is, luxenburg and swizz have cheap gas. ppl living near the border driver there to fill their car Mar 06 12:27:39 or 40% Mar 06 12:27:42 i forgot Mar 06 12:27:51 devtekbeta: i guess thats pretty EU average isn't it? Mar 06 12:28:00 germany has 30-50% depending on marriage, children, etc. Mar 06 12:28:04 na i think UK is a bit higher than eu average Mar 06 12:28:19 hmm trying to find a table :D Mar 06 12:28:31 do you work on the floor or something Mar 06 12:29:23 devtekbeta: right UK is pretty high according to that table here :D Mar 06 12:29:39 yeh Mar 06 12:29:46 place 6 Mar 06 12:29:52 germany is 12 Mar 06 12:30:01 what is 1? Mar 06 12:30:14 sweden, belgium, netherland, denmark, france, uk Mar 06 12:30:19 in that order Mar 06 12:30:21 i see Mar 06 12:30:25 but its always had to compare these kind of things Mar 06 12:30:32 yeh Mar 06 12:30:40 e.g. in finnland (that is close behind) I know the illness insurance is in that Mar 06 12:30:50 and that is in germany another ~15% Mar 06 12:31:00 because its separated from taxes Mar 06 12:31:12 cost of living, income varies too, government -company spending relationships etc Mar 06 12:31:34 we have generous benifits in the uk though Mar 06 12:31:35 yeah so very hard to compare anything Mar 06 12:31:53 so the question for hourly income for freelancers is also hard to get something comparbale :) Mar 06 12:31:58 but it is annoying for hard working people... you get some scroungers who don't deserve the benefits Mar 06 12:32:13 for example. some teen girls in the uk, specifically get pregnant to get housing benefit Mar 06 12:32:29 devtekbeta: and the more kids they have Mar 06 12:32:37 slappers Mar 06 12:32:37 yeh Mar 06 12:32:40 yeah thats the 'problem' with any social system. but still there are ppl who need that money and are not able to earn it themself Mar 06 12:32:48 those for which this sytem was originally created Mar 06 12:32:50 yeh it is a difficult thing to balance Mar 06 12:32:57 some people def need it though yeh Mar 06 12:32:59 so its hard to make difference between these sometimes Mar 06 12:33:04 yes Mar 06 12:33:12 and at least (here) they try to get the rules the way to only benefit the ones who need it Mar 06 12:33:17 Hi! is it possible to in a textview evenly distribute text across multilines (the text is centered). Right now it looks a bit stupid where two lines are centered however, there is only one word on the next line... Mar 06 12:38:33 I have a running NotificationService in my app that runs with startForeground, and I have setDeleteIntent on the Notification to start a BroadcastReceiver. But if I close my app with the ActivityManager (holding home button and sliding the app to the right), canceling the Notification won't start the BroadcastReceiver. Any ideas? Mar 06 12:42:38 Quacked: you considered doing it differently ? Mar 06 12:42:44 as in the design of it Mar 06 12:43:23 I have considered a lot of options, but this seems like the best one Mar 06 12:45:59 anyone on my question? Mar 06 12:46:29 have you had a look at all the textView options ? Mar 06 12:52:10 why does the FragmentPagerAdapter only have a constructor with a support.v4.app.FragmentManager, and not the new app.FragmentManager? Mar 06 12:56:14 StingRay_: I havent tried all no. I have looked at the textview documentaiton and didnt find anything. Do you know if there is? Mar 06 12:57:02 android:evenLines = true <-- something like that is what I am looking for Mar 06 12:57:22 Ok, it seems that my app cannot start a BroadcastReceiver if it's killed from the ActivityManager (task switcher) Mar 06 12:57:35 It looks to be working if I use a Service instead Mar 06 12:58:21 Weird Mar 06 13:32:05 Hey Mar 06 13:32:15 Do any of you have any experience with Jsoup? Mar 06 13:33:15 Anyone? Mar 06 13:37:49 Wiping my imac today so I can finally birng it in to have the hd replaced :( Mar 06 13:46:56 so i'm making a puzzlegame and use a custom view to display things. now when the user does something properly i play a little sound and i want to show maybe a little particle effect. How could i go about doing this particle effect? Mar 06 13:48:36 draw pixels Mar 06 13:49:42 what i want to avoid is having to call onDraw 60 times a sec while the animation should play, was hoping i could use standard animation methods Mar 06 13:53:46 anyone here ever changed the text color of the options menu on ICS or higher? Mar 06 14:23:23 im using a Gallery to but i want to be able to touch images also as well as swipe, but once i add this i cant swipe anymore, ideas? Mar 06 14:23:39 a gallery to show images horizontally* Mar 06 15:06:49 ok, this is strange. for some reason when my application syncs in background (syncadapter) i get HttpHostConnectException very randomly (specifically "connection refused") Mar 06 15:07:15 any idea what could cause that? i recently updated my targetSdk from 8 to 16, could that have effect? Mar 06 15:07:43 (sync in background = periodic sync) Mar 06 15:08:51 Hello everyone. Mar 06 15:09:37 I have a problem with SoundPool. After ~20 tracks it is loading nothing. Mar 06 15:10:17 LogCat says: Sample 25 (26, 27) not ready. Mar 06 15:11:18 How do I fix that? Mar 06 15:16:09 hi Mar 06 15:16:29 what is the best way to make wirless, without internet connection chat? bluetooth or wifi? Mar 06 15:18:24 probably bluetooth Mar 06 15:18:38 if you're willing to limit yourself to devices with wifi direct, that's your other option Mar 06 15:18:44 there arent' a lot of them yet Mar 06 15:20:56 dragorn: but it will support ~10 devices well? Mar 06 15:21:01 bluetooth? oh hell no Mar 06 15:21:13 max 2? Mar 06 15:21:17 yup Mar 06 15:21:34 well, more or less. You could try to o some wacky mesh topology using your chat system as a router Mar 06 15:21:37 I wouldn't really try Mar 06 15:22:31 dragorn: so how bluetooth games work? Mar 06 15:22:42 one device is 'server'? Mar 06 15:22:44 >host Mar 06 15:22:56 Infrastructure wifi is basically the same as "using the internet", you just don't egress to a public IP. you could probabyl do some sort of broadcast packet to detect other users on the local network. Mar 06 15:23:11 yes; they make a SPP/RFCOMM channel, and the other device connects to it Mar 06 15:23:32 but if I be connected to chat, i won't use Internet? Mar 06 15:23:41 eh? Mar 06 15:23:47 can't Mar 06 15:23:48 D: Mar 06 15:23:51 If you're on bluetooth you're not using IP Mar 06 15:24:01 and it has nothing to do with being able to get on the internet Mar 06 15:24:05 ok, but if i would use wifi Mar 06 15:24:12 if you use wifi direct, you most likely cannot be connected to a standard AP Mar 06 15:24:15 while in direct mode Mar 06 15:24:27 damn Mar 06 15:24:31 it's meant for high speed device-to-device transfer, like a camera connection Mar 06 15:24:46 You could, of course, just have everyone be on the same wifi network. Mar 06 15:24:50 it's vaguely possible it can do multivap, I don't know offhand what their implementation is Mar 06 15:24:50 as opposed to wifi direct Mar 06 15:25:01 lov: yup, which was my other suggestion of just using infrastructure wifi Mar 06 15:25:11 lov: and you can do a discovery broadcast to find other users on the lan Mar 06 15:25:41 which is essentially the same as using the internet, but you don't egress from the lan. I'm fairly sure you can do basic broadcast tx/rx on android from a nonpriv user Mar 06 15:25:42 dragorn: I always kind of wondered about that. Is that just sending a packet to 255.255.255.255 or something saying "hay guys who's listening" Mar 06 15:25:50 but, can I be connected to wifi chat, and host wifi to my other friends? Mar 06 15:25:59 konradb: what does "host wifi" mean Mar 06 15:26:08 also, what does "connected to wifi chat" mean Mar 06 15:26:08 host the internet Mar 06 15:26:12 :D Mar 06 15:26:16 host the internet Mar 06 15:26:18 like.... all of it? Mar 06 15:26:20 all of the internets? Mar 06 15:26:24 ;/ Mar 06 15:26:26 "i think I'm going to need a bigger SD card" Mar 06 15:26:31 :D Mar 06 15:26:33 are you using maven? Mar 06 15:26:35 you mean do connection sharing/hotspot Mar 06 15:26:46 yes, Mar 06 15:26:52 which is totally not what you were asking before, by the way Mar 06 15:27:01 dragorn: yes Mar 06 15:27:19 but I can use wifi direct to make chat? Mar 06 15:27:20 <_3by8> I built 4.2.2 from source last night, so I should have 6 image files, right? Mar 06 15:27:31 so android has a fairly strict concept of what the network is. In hostpot mode wifi is effectively disabled Mar 06 15:27:41 ok Mar 06 15:27:49 so bluetooth is the only way Mar 06 15:28:05 so I would be fairly surprised if you can talk to the wireless link from userspace while in hotspot mode Mar 06 15:28:20 since it's routing all its network data out the cell connection Mar 06 15:28:32 lov: yeah more or less; you can send a UDP frame to broadcast Mar 06 15:28:41 lov: or you can do multicast like mdns does Mar 06 15:29:18 ok, neat. I always kind of wondered but never thought about it. Mar 06 15:29:38 lov: I'm not positive what the APIs are in android, in libc you set so_broadcast on a UDP socket and just send() a blip of data Mar 06 15:30:08 yeah, it's probably exactly that. Mar 06 15:30:20 lov: and on the rx side you'd use recvmsg on a dgram socket Mar 06 15:30:30 I know that it's possible on android since at least minecraft does it Mar 06 15:30:38 lov: yeah probably; it's nonpriv ops so I can't imagine it being a problem Mar 06 15:30:48 i got a lumia 800 Mar 06 15:30:49 lov: worst case you ndk it but i'm sure there's a java sockets api for it, I just don't know it Mar 06 15:31:24 lov: I don't know how you make a multicast offhand; since it's all wifi they're vaguely more preferred / some enterprise stuff kills bcast, tho that's probably not the case for 99% of users Mar 06 15:31:25 what does minevcraft do Mar 06 15:32:09 I assume that Sockets lets you do this stuff too Mar 06 15:32:14 and worse comes to worse just use a shared lib Mar 06 15:32:28 mikedg: congrats on buying a phone I guess. Also, what do you mean what does minecraft do. Mar 06 15:32:46 lov: yeah; i'm sure it's possible, and I'm sure mcast is just another tweak to the setup Mar 06 15:33:29 lov: ah; multicast is just dgram to a multicast address Mar 06 15:33:37 lov: 255.0.0.37 being an example Mar 06 15:33:52 lov: w/ some sort of group subscription, etc, I don't care to figure out right now :P Mar 06 15:34:12 mikedg: I got a Lumia 820! Mar 06 15:34:23 We can be Lumia buddies Mar 06 15:34:31 cool let's swap Mar 06 15:34:33 lov: ah just a setsockopt imr_multiaddr to join the bcast group Mar 06 15:34:36 it's like swingers but with phones Mar 06 15:35:10 naughty, I'm in Mar 06 15:36:40 dragorn: neat, thanks! Mar 06 15:37:21 im having trouble with designing a layout to work with any device. my first design set the playing card sizes in dp but doesnt work very well on tablets (cards are small). so ive tried writing it dynamically but im having trouble getting the useable screen size at an appropriate time. can anyone help me with useable screen size or a better way to handle the layouts? Mar 06 15:37:54 oh and yes i have tried googing the screen size problem but all the suggestions dont seem to work onCreate or onStart Mar 06 15:38:59 lov: http://ntrg.cs.tcd.ie/undergrad/4ba2/multicast/antony/example.html is some C code; i bet java is basically the same. Should you ever need to care. Mar 06 15:39:17 NucWin: You might want to just have multiple layouts and have the resource system pick the right one at runtime Mar 06 15:39:23 e.g. a layout in layout-large, etc. Mar 06 15:39:28 You can do the same thing for card dimensions Mar 06 15:39:31 lov: I wrote code ages ago for autodetecting sensors on a network, I should probably update it to multicast Mar 06 15:39:42 just have a dimens.xml which goes into strings/, strings-large/, etc. Mar 06 15:40:27 dragorn: Fortunately, I likely never need to actually care. It is pretty neat though. Mar 06 15:40:35 I think you have adequately explained, with sample code. Mar 06 15:41:07 right now, I'm taking a side-trip into http://docs.oracle.com/javase/6/docs/api/javax/annotation/package-summary.html having seen https://github.com/JakeWharton/butterknife Mar 06 15:41:20 f-ing Annotations, how do they work? Mar 06 15:41:46 Yeah, butterknife seems pretty sweet. I gotta dig into that, since it has code generation. Mar 06 15:41:49 would that be the best practice method and how would it react to split screen on Galaxy S3 etc? Mar 06 15:41:53 It somewhere hooks into the javac, right? Mar 06 15:42:08 lov woot :D Mar 06 15:42:40 NucWin: I have no idea how it would handle split screen on the SGS3, but I'm pretty sure SGS3 doesn't have split screen. You might be thinking of the Note 2 or something. Mar 06 15:43:01 kakazza: yeah, there's an annotation processor which re-writes the file. Mar 06 15:43:14 S3 does have this two apps on screen thing. i have a friend who has one ;) Mar 06 15:43:21 lov: not for the butterfly stuff :D Mar 06 15:43:29 lov: so... magic? Mar 06 15:43:30 lov: for people who can't let go of #define? :P Mar 06 15:43:39 dragorn: ha Mar 06 15:43:54 when you define an annotation you can give them a retention type declaring when they should be used Mar 06 15:44:06 I do miss #defines, a lot. Mar 06 15:44:13 NucWin: the only way it would work is if they effectively change the screen size; i'd expect your layout to shift to the new smaller size and continue, if you do layouts properly Mar 06 15:44:13 timroes: yeah, I don't even know what I don't know so I've gotta investigate this. Mar 06 15:44:22 if you want to have something at compile time, you can add some annotation processor to your build process, that uses them somehow Mar 06 15:44:23 ^this Mar 06 15:44:30 is there a way I can get pixel raw data from a Surface object? Mar 06 15:44:30 and yeah, NucWin: If you end up in dual screen mode, I assume your activity will get recreated to handle this. Mar 06 15:44:32 Ok ^this was meant to be for lov Mar 06 15:44:42 NucWin: with no direct experience i'd imagine it just makes it a small-res "screen". it's more or less the only way it could work with stock app code Mar 06 15:44:58 but runtime annotation just stay there (e.g. the InjectView) and java can look at runtime via reflection if an nnotation is present at a specific field Mar 06 15:45:22 field.getAnnotation(InjectView.class) would return you the annotation if it exists on 'field' Mar 06 15:45:35 (where field is of type Field in java reflection package) Mar 06 15:46:04 thanks for input. i will go do some more code hacking till i figure out the best way :) Mar 06 15:46:44 actually if you work with reflection (anyway) annotations are pretty nice and handy :) Mar 06 15:47:07 NucWin: you should be able to just make graphics resources for each of the size buckets; are you on something like a xxl tablet and you only defined xl res? Mar 06 15:47:15 ^^ Mar 06 15:47:37 Seriously, having different sizes defined in xml resources which live in different folders for different device types is probably what you want/need. Mar 06 15:47:44 it automagically handles the configurations. Mar 06 15:48:22 ive just been using drawable and putting quite large images in then using xml to set the size im trying to use Mar 06 15:48:40 Oh hahaha Mar 06 15:48:41 yeah uh Mar 06 15:48:42 you should use the resolution buckets Mar 06 15:48:46 ^^ Mar 06 15:48:59 you probably want ldpi, mdpi, hdpi, xhdpi resources at a minimum Mar 06 15:51:11 dont forget xxxhdpi Mar 06 15:51:46 http://dl.dropbox.com/u/42150098/current_cardcalc.txt <-- thats how im currently deciding the card size Mar 06 15:52:10 the hell is 1.357142857142857 Mar 06 15:52:17 also, feel free to use a pastebin :P Mar 06 15:52:20 but it doesnt account for the clock bar or the on screen buttons on newer phone Mar 06 15:52:50 1.357142857142857 is the width/height ratio of the card images Mar 06 15:53:38 Hey guys..!! My program compiles fine but on starting a new activity crashes.. Logcat shows FATAL EXCEPTION AsyncTask #3.. An error occured while executing doInBackground().. Mar 06 15:54:17 I am using cwac-loaderex btw.. does this happen with it..? Mar 06 15:54:41 I've got a keystore file generated, but when i'm trying to Whitelist a Binary it's asking for the Signature. Do I just put the name of the keystore? Mar 06 15:54:47 purezen: try posting a bigger portion of the logcat Mar 06 15:55:37 rciovati: Thanks.. on it.. btw here's my activity code.. http://pastie.org/6404994 Mar 06 15:56:59 purezen: where do you initialize dbHelper? Mar 06 15:57:55 rciovati: I did TTaskEntry.DbHelper dbHelper; (line 19) Mar 06 16:00:45 rciovati: Here's a portion of the logcat.. Mar 06 16:01:00 logcat *output..:-) Mar 06 16:01:06 hi all, how can i link against a static library which isn't at out folder ? Mar 06 16:01:17 purezen: on line 19 there is the declaration, but somewhere you have to to dbHelper = new .... Mar 06 16:01:25 i already tried LOCAL_LDLIBS in my Android.mk but it isn't work Mar 06 16:01:40 s/to to/to do Mar 06 16:02:34 when i add the library at LOCAL_STATIC_LIBRARY the library should be at out directory Mar 06 16:05:26 rciovati: Ok.. but I am not able to figure out how to do that.. can you tell..? Mar 06 16:06:56 let Eclipse help you :P anyway just put in you Activity onCreate dbHelper = new TaskEntry.DbHelper(this); Mar 06 16:08:51 Has anyone noted an issue with Intent.FLAG_ACTIVITY_NO_HISTORY when launching a link with 4.2 and chrome? Mar 06 16:09:32 Currently we are launching a market link with tracking. The tracking URL is launched, chrome opens, and launches the market. Mar 06 16:10:06 If the user presses the back button, it returns to Chrome and if chrome has a tab open, the browser will handle the next back button press Mar 06 16:10:29 On previous versions pressing back from the market will return you to the launching application Mar 06 16:12:56 rciovati: Ya..:D well eclipse doesn't seem to be allowing me to do this.. and btw you mean to do dbHe.. in onCreate()..? Mar 06 16:13:46 purezen: yep, or inside onCreateLoader, it's enough to do that before using the dbHelper variabile Mar 06 16:19:24 hey guys, when I enable zoom on webview, then zoom in, the swipe and double tap listeners stop working. any clue how to fix why? Mar 06 16:20:27 question guys, I'm adding a picture icon for an option in my first screen. initially I had the picture set to 100px by 100px Mar 06 16:20:28 rciovati: Ok.. but Eclipse is not allowing me to do it.. It is asking me to pass in a suitable context..(Not DisplayTasks i.e...) or create an appropriate constructor for the same.. Mar 06 16:20:40 I increased it to 200px by 200px, but the size of the picture doesn't change in the app Mar 06 16:21:16 Rob|boR: Use dp instead of px Mar 06 16:21:29 in photoshop? Mar 06 16:21:35 in the app Mar 06 16:22:29 also confirm that the imageview/imagebutton does not have a set width and height Mar 06 16:22:42 does have* Mar 06 16:22:43 it shouldn't have Mar 06 16:22:46 doesn't* Mar 06 16:23:01 and how do I set the dp for the picture Mar 06 16:23:08 in the xml file? Mar 06 16:23:16 yes Mar 06 16:23:25 android:layout_width="10dp" for instance Mar 06 16:23:42 Mar 06 16:23:47 Something like that Mar 06 16:24:02 so I have a gridview with 4 options, I can set the layout_width per option right? Mar 06 16:24:13 Rob|boR, check out: http://stackoverflow.com/questions/2025282/difference-of-px-dp-dip-and-sp-in-android Mar 06 16:24:18 ok will do Mar 06 16:24:19 thank you Mar 06 16:25:59 my current setup in the layout file is android:layout_width="fill_parent" Mar 06 16:25:59 android:layout_height="96.0dip" Mar 06 16:26:17 so I'm guessing the height is restricting the size right? Mar 06 16:26:25 Rob|boR: if you make the layout_height larger, then the image will be bigger. Mar 06 16:26:30 Rob|boR: yep Mar 06 16:26:33 sweet Mar 06 16:26:57 purezen: as context give YourActivity.this Mar 06 16:27:15 I always work with pixels in graphic design >_>, gotta see what size I should save my pngs Mar 06 16:27:23 so that it looks sharp in the app Mar 06 16:27:51 Rob|boR: take a look at this - http://developer.android.com/guide/practices/screens_support.html Mar 06 16:28:40 Rob|boR: This is also worth a look - http://developer.android.com/design/index.html Mar 06 16:28:44 okay, I increased the dip and it loked hideous lol Mar 06 16:28:48 so blurry Mar 06 16:28:54 rciovati: It's still not accepting.. btw.. here's what I am doing..http://pastie.org/6405186 Mar 06 16:28:56 will read those links right now Mar 06 16:30:02 purezen: what's Eclipse is complaining about? Mar 06 16:30:27 Rob|boR: I recommend the second link first. It is more design orientated Mar 06 16:32:14 rciovati: It's asking me to either 'remove argument to match DbHelper' | 'change constructor DbHelper: add parameter..' | 'create constructor DbHelper(Display Tasks)'.. Mar 06 16:32:46 rephrasing my question: I am currently using MediaCodec to decode a video, and I am giving it a Surface object to render to. And now I would like to have access to data on that Surface, is it possible? Any tips or references you could give me? Mar 06 16:33:29 rciovati: Btw.. here's what my TaskEntry.java is about.. http://pastie.org/6405215 Mar 06 16:34:58 purezen: if you was able to write that code, how is possible you are not able to create a new instance of that object? Mar 06 16:36:23 okay, thank you jimmithy Mar 06 16:41:16 I've got a question for everyone using GCM here. Google offer a jar lib for server and client, that you can use to send messages, register your device etc. This lib is only mentioned in the Getting Starting guide of the GCM guide. In every further chapter these libs are never mentioned again and its just explained, that you register via sending intents, and do post calls to the GCM Url. Are these jar libs not meant for production code or is it just th Mar 06 16:41:55 timroes, your message got truncated Mar 06 16:43:09 hey guys, when I enable zoom on webview, then zoom in, the swipe and double tap listeners stop working. any clue how to fix why? Mar 06 16:43:27 rciovati: Don't know.. was just trying to make an application where I needed to implement ListView func. with data via SQL db.. and got stuck..:/ Mar 06 16:43:45 gmag: god damn :D Mar 06 16:43:54 I've got a question for everyone using GCM here. Google offer a jar lib for server and client, that you can use to send messages, register your device etc. This lib is only mentioned in the Getting Starting guide of the GCM guide. Mar 06 16:43:56 In every further chapter these libs are never mentioned again and its just explained, that you register via sending intents, and do post calls to the GCM Url. Are these jar libs not meant for production code or is it just the docu (maybe me not reading right or two different ppl who wrote that)? Mar 06 16:43:59 i hope now :) Mar 06 16:44:11 i have to enable auto splitting again :D Mar 06 16:50:07 timroes, :) Mar 06 16:50:44 timroes, hey take a look at my question ;) If you can't answer it I don't know who cans... Mar 06 16:56:25 gmag: dafuq, are you sure you don't mix me up with someone else :D Mar 06 17:02:19 timroes: you're still up?! Mar 06 17:02:21 and here? Mar 06 17:02:46 still up? Mar 06 17:02:48 from when :D Mar 06 17:02:59 timroes: anyway, i subclassed the android.filterfw.core.Filter class, and got the timestamps Mar 06 17:03:14 nice Mar 06 17:03:17 that class is "hidden" Mar 06 17:03:24 but I got it to work :) Mar 06 17:03:27 good to now *put it in some corner in the brain* :D Mar 06 17:03:37 ahhh okay :D sad thought you found a solution without hidden methods Mar 06 17:07:18 gmag: to your question, you want some kind of callback for every image, so you can work on it? Mar 06 17:09:40 because if its what you want give Camera.setPreviewCallback(Camera.PreviewCallback) a try (as long as you don't need the 100% accurate timestamps of each frame :) ) Mar 06 17:17:06 hi... mopub asks for my app's traffic... any idea what MM stands for? https://app.mopub.com/account/register/ Mar 06 17:20:55 what json libs do people use? Mar 06 17:25:08 preds, http://developer.android.com/reference/org/json/JSONObject.html Mar 06 17:32:47 timroes, but in this case I am not getting the frames from a Camera, but from a MediaCodec that is decoding a video and directly rendering it to the Surface Mar 06 17:39:08 gmag: how do you draw from a mediacodec to a surface? Mar 06 17:39:46 timroes, this method: http://developer.android.com/reference/android/media/MediaCodec.html#configure%28android.media.MediaFormat,%20android.view.Surface,%20android.media.MediaCrypto,%20int%29 Mar 06 17:40:15 timroes, actually, I first have to create a SurfaceView Mar 06 17:40:43 and using the SurfaceHolder I get the Surface and then I give that Surface to MediaCodec through that method Mar 06 17:41:01 by that method I mean the .configure() method Mar 06 17:43:09 hi, i want to take a picture from the camera without providing any preview. i still need a SurfaceHolder or SurfaceTexture; what's my easiest route to essentially mock this out? Mar 06 17:43:25 gosh today everyone has camera problems :D Mar 06 17:43:35 timroes, no camera problem here :) Mar 06 17:43:41 kind of :D Mar 06 17:43:46 hehe i must've picked a good day for it then ;) Mar 06 17:43:46 surface problems :) Mar 06 17:43:52 :) Mar 06 17:45:40 timroes, do you know a good book I could read that addresses thsese topics? About graphics and video Mar 06 17:45:50 not on android level Mar 06 17:46:22 and i don't find anything that could help you right now. problem is (i guess) that surface view is pretty native stuff, and sharing framebuffers and such between threads .. meeh Mar 06 17:46:46 is it as simple as creating a new SurfaceTexture(0) and passing that to the camera for its preview? Mar 06 17:46:48 I can't find anything in docs about this - can you only attach one OnPreferenceChangeListener to a specific preference? Mar 06 17:47:45 It doesn't complain if you try to add multiple, but only the first one seems to actually DO anything Mar 06 17:48:12 gmag: i mean you could always start a second thread with the defaultl lockCanvas() method to get the canvas, but then you have two threads fighting for the same canvas, i am not sure if that works well Mar 06 17:48:30 Anyone here ever used ant to build a package from AOSP? Mar 06 17:49:09 gmag: other thing you could try, override the draw(Canvas) method on the canvas you pass to the camera, but i am not sure if that is called for everyframe, or if work is done on a lower level itnernally Mar 06 17:49:20 Is there a way to flag Log calls to be ignored from an app? Save me some time before I make a wrapper debug class to cut down on my spam Mar 06 17:49:27 timroes, there is no camera :D Mar 06 17:49:58 ehh mediacodec :D Mar 06 17:50:10 i am slow today.. the weather :D Mar 06 17:53:00 timroes, ok, I'm confused now. I dont know exacly where Canvas object enters. I have a SurfaceView which has a SurfaceHolder which holds a Surface. I pass this Surface to MediaCodec and tell it "put your output video frames to this Surface". And MediaCodec does that very well. The thing is, I would like to put my hands on those frames. And I thought about finding a way of reading the Surface data. Is this Surface object encapsulating a Canvas? Mar 06 17:54:05 timroes, what is the relation between Surface and Canvas? Mar 06 17:54:41 isnt Surface for opengl and Canvas for the 2d stuff Mar 06 17:55:42 there is some guy here (http://stackoverflow.com/questions/4576909/understanding-canvas-and-surface-concepts)trying to exaplain some of these concepts but I'm still a bit confused Mar 06 17:59:49 gmag: enneract|laptop: Canvas is just an interface to draw into a buffer Mar 06 17:59:55 a buffer can be a Bitmap or a Surface Mar 06 18:00:26 a Canvas doesn't contain data and doesn't let you read data back from a buffer Mar 06 18:00:49 romainguy, that's sad Mar 06 18:00:59 romainguy, is there any way i can read from a Surface? Mar 06 18:01:09 no Mar 06 18:01:15 :-o Mar 06 18:01:23 the end. Mar 06 18:01:30 NOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO Mar 06 18:01:36 sorry bro Mar 06 18:01:45 consider compositing onto a bitmap and then blitting to the surface. Mar 06 18:01:48 Now what you can do though Mar 06 18:01:50 your performance will go to hell but w/e Mar 06 18:01:52 is use a SurfaceTexture Mar 06 18:02:05 you can have a video decoded into the SurfaceTexture Mar 06 18:02:14 and you can read from SurfaceTexture (indirectly) Mar 06 18:02:25 romainguy, using MediaPlayer, right? Mar 06 18:02:30 yep Mar 06 18:02:50 I give it a SurfaceHolder that is not a SurfaceHolder but it is a SurfaceTexture, right? Mar 06 18:03:17 you just git it a SurfaceTexture Mar 06 18:03:47 yup Mar 06 18:04:40 romainguy, do you have any code on that, I found a post on that, but it seems a bit poor: http://stackoverflow.com/questions/6414003/using-surfacetexture-in-android Mar 06 18:06:53 romainguy, I also make you the same question I made to timroes, do you know any reference or book I should on these topic, Surfaces, OpenGL, Stagefright (this last one is hard, I would give you money for good documentation on this :) Mar 06 18:07:13 I should read* Mar 06 18:16:08 romainguy, do you think I could have access to every single frame using the second approach (with MediaPlayer and SurfaceTexture)? Or there might be loss of frames? Mar 06 18:19:13 gmag sorry we have visitors today evening, so won't be here anymore :) hopefully you will figure it out, tell me tomorrow about it :) Mar 06 18:19:26 see you tormorrow all Mar 06 18:19:29 timroes, no prob mate Mar 06 18:19:32 thanks for helping Mar 06 18:19:41 you're welcome! Mar 06 18:22:19 hey folks, what are you guys using to identify an android device? jury still seems up in the air as far as the mechanism to go with; android_id, serial #, openUDID, etc. Mar 06 18:22:44 not really. Mar 06 18:22:50 there's a nice d.android.com article on this Mar 06 18:23:02 http://android-developers.blogspot.com/2011/03/identifying-app-installations.html Mar 06 18:24:06 of course, it also depends on whether the ID needs to persist across: reboot, uninstall/reinstall, factory reset, new user. Mar 06 18:24:30 right. I've perused this artile before and it seems like android_id is the best approach Mar 06 18:24:55 just wondering if there are other alternatives or if anyone grabs multiple identifiers, etc. Mar 06 18:24:58 just bear in mind that devices < 2.3 WILL have problems. Mar 06 18:25:21 do a search for 9774d56d682e549c as an example Mar 06 18:27:35 Trying to make a simple HTML/CSS draft of my first mobile app. But how to do the whole switch-between-screens thing? Should I use http://swipejs.com/ and then put each "page" inside a li? Mar 06 18:30:20 you're not really making a mobile app, you're making a mobile website ._. Mar 06 18:30:47 ^ Mar 06 18:30:55 gonna be both :) Mar 06 18:31:16 i just need to come up with the UI and html structure.. my dev will take it from there.. Mar 06 18:31:55 your "dev" Mar 06 18:32:00 afaik this channel's topic has nothing to do with js Mar 06 18:32:03 who I assume will just slap it into phonegap and call it a day. Mar 06 18:32:11 * lov shrugs Mar 06 18:32:20 regardless, we can't really help you for javascript problems. Mar 06 18:32:40 furthermore, it almost no sense to 'mock up' a ui in html then port it over to java, lol Mar 06 18:33:07 it would make more sense to mock it up on literal paper Mar 06 18:33:32 well, I assume he's going to have a "native app" that's just phonegap or something Mar 06 18:34:48 Is it possible to programmatically retrieve all the possible values of a ListPreference in a general way (without going to the R.array.whatever) Mar 06 18:36:38 lov: heheh Mar 06 18:37:06 yep will be using phonegap Mar 06 18:37:13 lov: is that bad? Mar 06 18:37:30 as for the js im currently looking at the jquery mobile demos which seem to cover this so im good Mar 06 18:37:30 not necessarily Mar 06 18:37:42 ...but? :) Mar 06 18:37:58 the problem is that phonegap and other HTML based cross-platform tools generally give you a sub-par experience compared to just writing the damn thing as a native app. Mar 06 18:38:03 ^ Mar 06 18:38:13 I'm trying to come up with a better way of doing this -> http://pastebin.com/ctLRu6Yj Mar 06 18:38:24 on the positive side, you can make changes to all platforms reasonably quickly without having to learn Android + iOS Mar 06 18:38:38 objective-c *shudder* Mar 06 18:38:46 OH NO! OTHER PROGRAMMING LANGUAGES! D:! Mar 06 18:38:59 I dont have a problem with other languages, I just really really hate objective-c Mar 06 18:39:35 why? Mar 06 18:39:36 hmmm Mar 06 18:39:40 because of its syntax? Mar 06 18:39:41 i understand.. Mar 06 18:39:47 the syntax screws with my brain Mar 06 18:39:54 because I like how flexible it is Mar 06 18:40:09 Hello.. I am wondering.. is there any way I can programatically add value to an input field in a web view? Mar 06 18:40:18 the syntax isn't that hard, how much you've been programming with it? Mar 06 18:40:24 in my case though theres a very large ruby on rails infrastructure and converting all of it would take years Mar 06 18:40:54 objective-c's main problem is that it is exactly what it is... it is c with a bunch of OO shit painted on top. It has all the baggage of C, and most of the problems with early OO ideas Mar 06 18:41:17 I find it's OO better than C++'s. Or Java's Mar 06 18:41:42 but probably because I didn't do enough work with it to find all the annoying things that are missing Mar 06 18:41:57 it isn't so much things are missing as it stuff is very very difference Mar 06 18:41:58 different Mar 06 18:42:26 enneract|laptop: aka "not trying to make Granny Simula cry" Mar 06 18:42:48 I did the autodidact thing with C, then moved on to learning OO in uni with java and C#... objective-c just feels like it has the worst of both worlds :( Mar 06 18:42:56 just my opinion and personal preference tho Mar 06 18:43:22 but I write in java and C# for fun, I wouldnt touch o-c unless I was being paid Mar 06 18:43:37 enneract|laptop: ever tried ruby? Mar 06 18:43:50 no, I've done a little python tho! Mar 06 18:43:53 * p_l is a lisper. 'nuff said Mar 06 18:44:08 at least you arent a forth-er Mar 06 18:44:18 I know Forth as well Mar 06 18:45:01 knowing forth and being a forther are different things Mar 06 18:45:12 enneract|laptop: I like o-c parameter naming Mar 06 18:45:32 enneract|laptop: but it gets even more verbose than java Mar 06 18:45:56 draiken: heh, I can't stand it, that is one of the paramter things that screws with me. I got overloading drilled so deep in my brain that not being able to do it messes with me Mar 06 18:46:23 I only played with o-c for about 6 months tho! who knows, maybe it would grow on me, like a fungus Mar 06 18:47:02 well, Mar 06 18:47:14 I think that you didn't get the ideology of obj-c Mar 06 18:47:36 for example how it is different to send message to some object versus just "calling that function" Mar 06 18:49:02 I dont think that you are wrong Mar 06 18:50:15 the long and short of it is that I didn't enjoy working with it. At work I use java, in class I use java, and I sign up for a 'mobile development' class, after being told it was for android, and I get iOS. It was very jarring and it was difficult to switch gears like that I guess Mar 06 18:50:38 yeah, because I was a bit like you when I started my first ios project :P Mar 06 18:51:05 Is there a way to use Linkify in a ListView but still have an OnItemClickListener? I've found that when I run Linkify on a view inside a View in a ListView then the normal actions (blue colouring on item selection, listners) don't get called. Mar 06 18:51:12 but I was able to work with dudes who has been coding obj-c like years, so I pretty fast saw how flexible it is Mar 06 18:51:22 or I'm able* Mar 06 18:51:29 still working with the same ppl Mar 06 18:51:30 Also, I despise apple for a variety of different reasons, and don't really have any interest in ever developing for any of their platforms. Mar 06 18:51:48 with the usual cavets of getting paid, heh Mar 06 18:52:13 :P Mar 06 18:52:56 looking for a better way to handle the first constructor in this, other than using instanceof -> http://pastebin.com/F08b4Cfp Mar 06 18:52:59 well, for me it is part of the job, so I can't decide which platform needs to be done Mar 06 18:53:40 hm Mar 06 18:53:50 actually, no, that isnt needed, the problem is somewhere else Mar 06 19:05:21 i know that i have to provide a SurfaceTexture to the camera in order to take a photo, but is there any way for me to not show that? i want to take photos without showing a preview Mar 06 19:12:58 hi Mar 06 19:13:16 I do not get one thing about extend the AsyncTask class Mar 06 19:13:29 nep1x: do you have a question about it? Mar 06 19:13:57 nep1x: you subclass it, override a method to do work in the background, and then override another method to apply that work to the UI. Mar 06 19:14:02 why if I set Void to be the input of onPostExecute method Mar 06 19:14:22 nep1x: "void" isn't a value you can pass…? Mar 06 19:14:22 and set void as the return type of doInbackground method Mar 06 19:14:36 lfaraone: Void, not void Mar 06 19:14:48 is not the same? Mar 06 19:14:53 void and Void Mar 06 19:14:57 no Mar 06 19:15:00 it's like int and Integer Mar 06 19:15:03 or double and Double Mar 06 19:15:04 etc. Mar 06 19:15:05 ahhh k Mar 06 19:15:09 a la None in Python Mar 06 19:15:17 ok Mar 06 19:15:21 the semantics is the same Mar 06 19:15:49 nep1x: well, no it isn't, because they mean very different things :) Mar 06 19:15:50 lov: so what's the best approach to grabbing a device identifier for < 2.3 Mar 06 19:16:02 very different thing? Mar 06 19:16:13 can you please explain me a bit the difference Mar 06 19:16:23 nep1x: Void is just a noninstantiatable type. Mar 06 19:16:45 nep1x: to quote: "The Void class is an uninstantiable placeholder class to hold a reference to the Class object representing the Java keyword void. Mar 06 19:16:45 " Mar 06 19:18:17 thanks lfaraone Mar 06 19:18:29 the_jeebster: god help you, that's how. Mar 06 19:18:39 you can use android_id as long as you filter out that value I gave earlier, and "android_id" Mar 06 19:18:52 in that case you can check the telephony id, and the mac address as a fallback Mar 06 19:19:05 just bear in mind that some shitty devices will also NOT give you the same android_id; they'll just use the wall clock or something Mar 06 19:19:25 ok, thanks lov Mar 06 19:19:29 yw. Mar 06 19:19:38 tbqh you might want to just use a UUID Mar 06 19:19:46 which device is it that spits out 9774d56d682e549c Mar 06 19:19:58 you mean generating a UUID and storing locally on the device? Mar 06 19:20:59 the_jeebster: the Galaxy S iirc Mar 06 19:21:00 if there is no SDCard, where does Environment.getExternalStorageDirectory point at? Mar 06 19:21:14 what is the UUID approach? Mar 06 19:21:22 the_jeebster: so, you've got literally millions of devices w/ the same "unique" id and no plan to fix it. Mar 06 19:21:45 the_jeebster: just use a UUID as your 'unique' identifier, as long as you're ok with it not persisting across uninstall/reinstall etc Mar 06 19:21:46 I hate how a lot of android listeners dont let you attach multiple Mar 06 19:21:53 it depends on what you need the id for. Mar 06 19:22:14 misterli: wherever the external storage is, on whatever device it is. Mar 06 19:22:23 lov: I'm working on an SDK jar library that will be installed in apps so I need to be able to keep records of any devices using the apps with the SDK Mar 06 19:22:29 misterli: even if there's no removable storage card, there's still external storage. Mar 06 19:22:47 the_jeebster: well, don't use a UUID I guess. That's your decision. Mar 06 19:23:07 lov: ha, I guess not Mar 06 19:23:29 I'm just not very familiar with device tracking on android and it doesn't really seem like there's a good solution so I guess I'm just screwed the Mar 06 19:23:31 then Mar 06 19:23:42 That's because device tracking is a broken approach Mar 06 19:24:12 == SimonVT Mar 06 19:24:34 the_jeebster: the big problem is that before 2.3, there really was no support for a unique id. 2.3 and above you finally get it. Mar 06 19:24:42 Fortunately, 2.2 and below is only like 10% now Mar 06 19:24:52 and again, there are workarounds if you MUST support them Mar 06 19:24:58 the_jeebster: use UUID and backup/restore to help persist across installs Mar 06 19:25:06 ^^ Mar 06 19:25:14 anyway, there's a blog post on the topic. Just google it Mar 06 19:25:28 Of course, Backup is only API level 8. Mar 06 19:27:56 Use ANDROID_ID.. Check if it's broken, and generate your own if it is Mar 06 19:28:32 SimonVT, how are UUIDs guarenteed to be unique? Mar 06 19:29:05 evanc: this approach looks neat, but I'm not sure I can harness this at an SDK level... Mar 06 19:29:08 er... Mar 06 19:29:18 kaneda^: you know what UUID stands for? X: Mar 06 19:29:19 It's kinda in the name Mar 06 19:29:21 I'm not sure how backup handles 're-installs' Mar 06 19:29:38 when this isn't an application, it's an sdk Mar 06 19:29:44 lov, universal unique id Mar 06 19:29:51 lov, the universe is a big place though! Mar 06 19:29:57 I'm not sure UUIDs are guarenteed to be unique so much as the value range is so large that the chance of collision is astronomically remote, given the pesudorandom distribution caused by calculating them from a hash Mar 06 19:30:11 ^ Mar 06 19:30:12 iirc there are more possible UUIDs than protons, or something absurd like that Mar 06 19:30:13 enneract|laptop: ... ruh? Mar 06 19:30:14 duh* Mar 06 19:30:16 enneract|laptop, that was my real question, but i swear it says GUARENTEED Mar 06 19:30:39 enneract|laptop: you can't guarantee it'll be unique, but if you ever get duplicates, then you just won the largest lottery in the universe Mar 06 19:30:47 yep! Mar 06 19:30:54 evanc, and then you demand your money back! Mar 06 19:31:39 I think 'guarenteed' in this context means 'safest bet ever' not 'mathematically impossible' Mar 06 19:31:57 kaneda^: it's unique in the same way that hashes in git are unique. Mar 06 19:32:09 technically it's possible for there to be a collision but it's more likely that we all spontaniously combust. Mar 06 19:32:19 lov, fair enough, although i've heard that actually happens ;) Mar 06 19:32:38 by "all of us" I mean "Everyone on the planet" Mar 06 19:32:39 dont believe everything you hear Mar 06 19:32:45 simultaneously Mar 06 19:32:53 no, retroactively Mar 06 19:32:56 enneract|laptop: I don't believe that I shouldn't believe everything I hear Mar 06 19:32:58 yeah Mar 06 19:33:27 lol, the chances of that are beyond what we call astronomical though Mar 06 19:36:01 there are over 2 quadrillion possible UUID, btw Mar 06 19:36:27 2.8ish Mar 06 19:36:30 When your userbase approaches that, just use more bits Mar 06 19:39:22 SimonVT: to be fair, you'd have to deal with it long before it approached the limit. If you used 50% of the possible UUIDs, you'd have a 50% chance of collision, which is probably too high :) Mar 06 19:39:29 wait, when did I /j #pedantics ? Mar 06 19:39:38 Dude, seriously? ;/ Mar 06 19:40:58 evanc: hmmm... well, you can trigger regeneration of the UUID if it collides :) Mar 06 19:51:47 when a uuid collides a black hole is created Mar 06 19:51:52 and everyone dies on earth Mar 06 19:52:00 so you dont have to worry about that case Mar 06 19:52:09 How to I prevent restoring an app to the setting activity? Mar 06 19:52:39 I read this yesterday, but my google-fu is failing me Mar 06 19:53:13 I want to say it is some intent flag Mar 06 19:53:33 mikedg, sweet, time to start crunching out UUIDs then mad scientist style Mar 06 20:09:02 What is the syntax for using an Intent to launch an activity in another package (specifically, a subpackage of the current package) Mar 06 20:17:12 Hello. Why although i have a www/index.html file in my assets directory, this command super.loadUrl("file:///android-asset/www/index.html"); says that there was a network error? i've tried super.loadUrl("file:///assets/www/index.html"); as well Mar 06 20:20:23 enneract|laptop Mar 06 20:20:29 i'd do intent.setClassName("com.package.whatever","com.package.whatever.sub.activity"); Mar 06 20:20:48 than startActivity(intent); Mar 06 20:20:52 then* Mar 06 20:26:07 where can I access StringHelper.addSlashes ? Mar 06 20:26:09 http://stackoverflow.com/questions/5003156/android-webview-style-background-colortransparent-ignored-on-android-2-2/10845986#10845986 Mar 06 20:26:28 eclipse can't seem to find the StringHelper class Mar 06 20:28:15 pfn: if you're there; did you use AccountManager and custom Authenticators for the list of servers qirc has? i need to do something similar -- i find the framework confusing so far Mar 06 20:28:48 Does anyone know how the sharedpreferences file is structured? Is it just a relatively flat xml file, with one entry per key, or is there any depth to it in regard to which preferencefragment added a given key Mar 06 20:29:22 enneract|laptop: you can take a look at it Mar 06 20:29:58 the device I have to work with atm doesnt have root access, and as far as I can tell, the file isnt in a publically accessible place Mar 06 20:30:01 i dont recall depth Mar 06 20:30:13 enneract|laptop: ya, look in the emu Mar 06 20:30:44 I'm dealing with dynamically generated fragments, and I was hoping to build them with xml, but I have a feeling that I need to do it programmatically Mar 06 20:33:35 Unless there is a way to have variables in xml? Mar 06 20:34:27 i think prefs are scoped to context, which is activity (or the whole app) Mar 06 20:37:05 Not really.. You pass it a name for the xml, and that's it.. Then there are helper methods that will pass the activity/package name for you Mar 06 20:38:47 hi Mar 06 20:40:49 SimonVT: hmm, forgot about that Mar 06 20:53:18 why would tha do that? It is code already provided in Settings.apk, why change it? Mar 06 20:53:36 nevermind, another case of PgUp Mar 06 21:04:05 I think the way I am going to deal with this (given that I have to support handset and tablet style settings UI), is have a proxy class which builds a PreferenceScreen given a Context, PreferenceManager, and an id, then have the Fragment or Activity use that when appropriate :| convoluted Mar 06 21:07:35 my question to you guys, what is the recommended resolution for background for app Mar 06 21:07:50 i am banging my head against google drive. i can't even get the DrEdit example to work; i hit the notification and it just disappears without bringing up the prompt to authorize the application. does anyone here have Drive experience? Mar 06 21:11:01 Hello. Mar 06 21:11:24 tomb raider is cool! Mar 06 21:15:03 * StingRay_ worked on a promo for tombraider once Mar 06 21:15:18 forget which one Mar 06 21:15:26 2nd I think Mar 06 21:15:49 couple of my friends work for the company that makes the ps3 and pc ports of tomb raider Mar 06 21:15:58 I use AlarmManager to play a sound in a Service and someone told me that I needed to set the AlarmManager PendingIntent to a BroadcastReceiver that was to run the Service that plays the sound. Apparently it had to be done like this to be sure the sound is played. Anyone got input on that? Mar 06 21:16:26 xorgate: ps3 is not a port of tr Mar 06 21:16:32 Holy balls that's a long first sentence Mar 06 21:17:07 Unable to find explicit activity class {com.android.settings/com.android.settings.TetherSettings}; have you declared this activity in your AndroidManifest.xml? Mar 06 21:17:16 I don't know, have you? Mar 06 21:17:20 shouldn't all android devices have com.android.settings.tethersettings? Mar 06 21:17:30 well 2.2+ devices Mar 06 21:17:36 No. Anything starting with "com.android" is private and not guaranteed Mar 06 21:18:08 StingRay_ as in, they are ported from ps3 you mean? Mar 06 21:18:26 kevinb: thanks. could you explain further? what does private mean? Mar 06 21:19:03 Because if I "kill" my app through the ActivityManager, this BroadcastReceiver never starts and the sound will not be played. Mar 06 21:19:15 xorgate: as in the main sku's will be ps3 and xbox, so you dont "port" to either Mar 06 21:20:27 andkore: If it's not part of the public api, as seen on d.android.com, there is no guarantee that it exists Mar 06 21:20:37 Android exists as a standard of sorts as well as an implementation. As a standard there's all the public APIs you can find at developer.android.com which different android variants (Samsung, HTC, Motorola, etc) are required to support. Also future android versions will try very hard to not break compatibility with what's documented. But as an implementation current versions of Android and some variants of android may have things like com.android. This is Mar 06 21:20:37 required part of android and not guaranteed to be in all variants or in future updates. Mar 06 21:20:39 Quacked: By kill, do you mean stop it from settings? Mar 06 21:21:14 SimonVT: No, I mean by holding home button to get the task switcher, and then slide the app to the right Mar 06 21:21:51 If I kill it from settings all services (also startForeground) gets killed, which is normal Mar 06 21:22:07 hm ok. what's the most likely explanation for this? this is an actual error message I'm seeing on my google analytics page for my app Mar 06 21:22:20 i.e. what devices wouldn't have com.android Mar 06 21:22:22 But if I close it from the task switcher, startForeground is kept, but BroadcastReceiver is never started Mar 06 21:22:59 It is able to start Services, but not BroadcastReceivers Mar 06 21:23:00 i'm seeing a weird bug with my app and chrome. when I try to switch between them from my app, it minimizes but then chrome becomes the last item when it should be my app. Any idea what could cause this? Mar 06 21:23:19 chrome probably clears the stack Mar 06 21:23:34 andkore: No devices are guaranteed to have it. It is very likely that Samsung and HTC and Motorola make changes to these things that you won't know about. Mar 06 21:23:45 only happens with my app though Mar 06 21:23:51 kevinb: ok, thanks Mar 06 21:23:59 SimonVT: I don't understand how closing the app in task switcher can prevent BroadcastReceiver from starting, but not Services :) Mar 06 21:24:22 ok, weird, it seems to happen with any app I try to switch between after opening mine. just tried it with messaging Mar 06 21:27:50 even weirder, only happens on the N4 - doesn't happen on my N7 Mar 06 21:31:46 g00s, no, I didn't use the account manager, that didn't really make sense for the application Mar 06 21:32:04 g00s, use account manager if you want to be able to grant other applications access to your credentials, not just storing credentials for your own application, I think Mar 06 21:33:44 pfn: ok, thanks :) Mar 06 21:34:35 g00s, e.g. look at all the google apps, when you use a new google app, they prompt you to allow access to your google credentials in order to do work Mar 06 21:34:46 (e.g. google reader, youtube, my tracks, google+, etc.) Mar 06 21:35:11 they all use the account manager to access your google credentials (an oauth token, a clientlogin cookie, or actual user/pass, depending on how google implemented it) Mar 06 21:35:27 i'm still trying to wrap my head around it; i kinda get it but not totally - especially when you wouldn't use it Mar 06 21:35:40 g00s, but if you want account info only for a single app, there's really little reason to use the account manager Mar 06 21:36:07 g00s, think of it as the difference of wanting to use an sqlite database directly vs. wanting to use a content provider Mar 06 21:36:43 ok. now, if you use accountmanager, and get a new phone, do those set up accounts show up on the new phone ? Mar 06 21:36:50 no Mar 06 21:36:56 google backup doesn't store account info Mar 06 21:37:02 not that I recall, at least Mar 06 21:37:02 ah, ok Mar 06 21:37:11 Anyone know of a way to bring up the soft keyboard defaulted to numbers, but allow text input? Mar 06 21:37:25 I'm trying to learn to make Android app ,but I don't know any code . I was wondering how different is androids java and the main java . Mar 06 21:38:06 thanks pfn Mar 06 21:38:08 tarelerulz, for the most part you wont notice a difference, it'll be like running java in a specific context w/ specific libs Mar 06 21:38:19 the major differences are that there's no main, instead there are activities and they have a lifecycle Mar 06 21:38:37 in that respect it's more like J2EE Mar 06 21:38:39 tarelerulz: that is a more complex question than you probably know. android 'java' is basically the same as regular 'java' in regard to the language - but there is a lot of difference in the way you use built in libraries etc Mar 06 21:38:41 tarelerulz, effectively identical Mar 06 21:38:56 tarelerulz, other than not using many javax.* apis and no java.awt Mar 06 21:39:08 although, if you know java swing, many of its concepts apply to android Mar 06 21:39:14 particularly, do not do any blocking shit on the main thread Mar 06 21:39:49 So it would be good to learn java and then learn to make android apps. Mar 06 21:40:00 you cant make android apps w/o learning java Mar 06 21:40:08 phonegap! Mar 06 21:40:11 (dont do that) Mar 06 21:40:12 kaneda^: oh, people try all the time :) Mar 06 21:40:19 and they're WRONG, wrong wrong wrong Mar 06 21:40:31 * kaneda^ wraps enneract|laptop in duct tape Mar 06 21:40:36 lol :) Mar 06 21:40:50 * g00s tars and feathers enneract|laptop in duct tape Mar 06 21:40:53 I think android is a good way to learn java... but you'll struggle Mar 06 21:41:08 kaneda^: time to hang him up for all to see ! Mar 06 21:41:33 the right way to do stuff with android is on the deeper end of java, compared to normal 'beginner' java stuff Mar 06 21:41:35 My simple reason is I want to make apps for my phone. The phone has lots of cool hardware , example GPS , camera ect Mar 06 21:41:37 in my experience, at least Mar 06 21:42:47 Does anyone know of a way to bring up the keyboard with the numeric imput 'page' active and default, but not actually restrict non-numeric imput? Mar 06 21:44:09 ooh, better idea Mar 06 21:44:46 if you find some way, please tell me too. Becase I've struggled with that once and didn't found answer Mar 06 21:45:15 Is there a hook that updates as changes are made to the context of an EditText? Mar 06 21:45:26 enneract|laptop TextWatcher Mar 06 21:45:30 Anyone able to test if stopping an app through ICS/Jelly Bean task switcher (hold home button, drag app to the right), kills the pendingIntent for an AlarmManager trying to start a BroadcastReceiver? Mar 06 21:45:33 beautiful, thanks Mar 06 21:46:20 Quacked: holding home button on ics/jb gets you google now Mar 06 21:46:27 you mean task button right ? Mar 06 21:46:44 Yeah, I have S2 with a big fat hardware button Mar 06 21:46:53 i miss those Mar 06 21:46:56 :( Mar 06 21:47:23 Damn, I hoped nobody missed those, cause then I will too if I get a new device without Mar 06 21:47:38 Crossing my fingers for the S4 being everything I hoped :P Mar 06 21:47:39 am I missing something in the android docs to see what specific methods return? i.e. getActiveNetworkInfo() Mar 06 21:47:44 I dont understand moving away from hardware buttons Mar 06 21:48:00 no idea what that returns without implementation. am I really missing something or are the docs that weak? Mar 06 21:48:41 s4 being made from titanium, and the same size as the s2 would be perfect for me, odds are it will be a plastic 5 inch monsta Mar 06 21:48:44 :( Mar 06 21:50:12 string processing is my bane lol Mar 06 21:51:45 Don't care about it being "plastic" as long as it's light. I like the size of my S2, but I'm desperate for full hd Mar 06 21:57:28 I just want an n7 with a proper phone radio Mar 06 21:57:31 ~ Mar 06 21:58:51 i want java to be twice as fast Mar 06 21:59:10 languages aren't fast , or are they ;) Mar 06 21:59:12 boo-urns, play.google.com purchasing is down for me. Mar 06 21:59:18 that's bad news, i only buy impulsively Mar 06 22:00:45 g00s, i would say that the compiled form of one language runs faster than the compiled form of another Mar 06 22:00:56 especially when one language has to run its compiled form through a vm Mar 06 22:02:07 i would say you're making a naive, uninformed argument. even if you were right, you'd never know why :) Mar 06 22:02:09 Ok, I tried it in the emulator as well. Same thing happened there. AlarmManager won't start BroadcastReceiver if app is stopped through task switcher. Mar 06 22:02:18 Can someone confirm this Mar 06 22:02:49 I can't have the alarm sound not being played if a user decides to remove the app from the task switcher.. grr Mar 06 22:03:08 kaneda^: https://speakerdeck.com/alex/why-python-ruby-and-javascript-are-slow Mar 06 22:03:16 Quacked: that doesn't sound correct/reasonable. i suspect youre mistaken but i can't dedicate the time to prove it Mar 06 22:03:45 jasta: Services seems to be able to start though.. it's weird Mar 06 22:04:02 did you perhaps register a dynamic broadcastreceiver? Mar 06 22:04:09 that obviously will not work Mar 06 22:04:26 dynamic? :O Mar 06 22:05:04 oh, of course PendingIntent won't let you do that anyway Mar 06 22:05:07 just with android:enabled and android:exported Mar 06 22:05:21 well, are you certan that you respond correctly to the intent you specified? have you tested with adb shell am? Mar 06 22:05:31 Any regexp ninjas here?~ Mar 06 22:05:37 the BroadcastReceiver start as long as I don't stop the app in task switcher Mar 06 22:06:01 evanc, gonna check that out when i get home Mar 06 22:06:03 jasta: I'm not sure what you mean Mar 06 22:06:10 i imagine they talk about the interpreter Mar 06 22:06:19 Quacked: adb shell am, type it. Mar 06 22:06:22 read. learn. Mar 06 22:06:54 gives more feedback than LogCat? :) Mar 06 22:07:03 get out. Mar 06 22:07:23 lol? Mar 06 22:07:31 no, i said read, don't guess. Mar 06 22:07:33 enneract|laptop: there's probably #regex or something Mar 06 22:07:43 there's always ##java if all else fails. Mar 06 22:07:57 yeh :) Mar 06 22:08:17 jasta, ok, thanks Mar 06 22:08:50 jasta: any opinion to whether it's ok to have AlarmManager start a Service rather than a BroadcastReceiver btw? Mar 06 22:09:04 Quacked: no, both are expected to operate the same. Mar 06 22:09:49 I'll investigate that some more too, because that solves my problem Mar 06 22:10:16 I initially had it start a Service, but someone said I should use a receiver instead Mar 06 22:10:38 adb shell am is going to be your friend here, im almost positive it will highlight your error. Mar 06 22:11:16 Quacked: are you still trying to update that notification every second :| Mar 06 22:11:36 Is is "./fastboot flash recovery filename.img" to flash recovery? Mar 06 22:12:13 You probably want #android-root Mar 06 22:12:52 how do i set a breakpoint at a particular bit of java? using gdb when remote debugging... Mar 06 22:13:09 g00s: that works fine, problem is that AlarmManager won't start BroadcastReceivers if I stop the app through task switcher Mar 06 22:13:17 doug: er, uhh, upgrade to an IDE's debugger. Mar 06 22:13:30 g00s: I made the notification update startForeground :) Mar 06 22:14:49 jasta: no worries if you don't know Mar 06 22:16:55 doug: i just dont understand why you would use gdb to do the debugging. Eclipse, IntelliJ, etc all have vastly superior interactive debuggers. Mar 06 22:17:54 jasta: that's fair, you don't really know what i'm doing. Mar 06 22:19:26 you are asking for help afterall, maybe you should explain what you're doing clearly. Mar 06 22:24:32 all these intent flags have me confused. What is the correct flag to clear all existing instances of the activity to be started? Mar 06 22:25:16 I boggle myself with my stupidity sometimes. I was just trying to implement the < operator as a regular expression... Mar 06 22:26:12 wait, no I wasnt Mar 06 22:29:37 Is there a way in onCreate to distinguish between normal app start or start of app through intent? Mar 06 22:29:43 like the notification intent Mar 06 22:30:16 getIntent == null - normal app start, 1 Mar 06 22:30:25 getIntent != null - through intent Mar 06 22:30:52 jimmithy: so obvious, thanks for pointing out! Mar 06 22:36:52 g00s: so, I'm dropping in london this week or on monday :D Mar 06 22:37:31 hey...quick question. i need to make app whereby basically the activity/screen is an x & y graph...and the user can touch and add points to the graph... Mar 06 22:37:46 and lines will join up between the dots... Mar 06 22:38:35 any points to the graphics libs, or any libraries that might help? i know it's a very general question...just looking for some one word answers to give me a starting point Mar 06 22:38:50 ive done a couploe of apps before, but they were simple, so sitll consider mysel and android noob. Mar 06 22:40:10 jimmithy: I also get an intent for a normal start, but extras are for instance null. So I could check this or is there an alternative? Mar 06 22:43:01 i'm debugging the Bionic linker's load phase. anyone know of a good way to see what filenames are being passed into the kernel for stat() or open() calls (from native code)? Like something strace or dtrace would spit out... Mar 06 22:45:07 why not just install strace and run it? Mar 06 22:47:26 guess that'd work. i assume i'd have to xcompile it... Mar 06 22:50:15 doug: doubtful, i bet busybox has it. Mar 06 22:50:20 platzhirsch: Are they starting the app for a different reason with the Intent? If so, you could use Intent.getType() to compare. Mar 06 22:50:32 also, a quick google search: http://elinux.org/Android_Tools Mar 06 22:50:58 jasta: what were you thinking I should do with the activitymanager in adb shell btw? Mar 06 22:51:00 what would cause an "activity idle timeout for activityrecord....." Mar 06 22:51:00 thanks Mar 06 22:51:03 ? Mar 06 22:51:35 platzhirsch: For example if you had an image uploader. If getIntent().getType == Action_View then show the gallery view. If getType().contains("image/") then you could show the single image view Mar 06 22:51:39 Quacked: invoke your broadcast manually and make sure your code actually works properly. Mar 06 22:51:44 when the process was dead Mar 06 22:52:12 my assumption being that your app logic is actually broken when the process is awoken to handle the broadcast intent. Mar 06 22:52:21 adb shell am would confirm that. Mar 06 22:52:28 ok, I'll try Mar 06 22:59:46 hm, where's a good place for temporary storage on an android? Mar 06 22:59:48 like a tmp dir... Mar 06 23:00:23 every application has its own data directory, that is only accessible to it Mar 06 23:00:33 i.e. some place to stick the compiled strace so i can run it via adb shell... Mar 06 23:01:44 oh, try /data/local/tmp in that case Mar 06 23:01:50 possibly just /data/local Mar 06 23:02:58 or use environment to get getExternalStorage() and make a .mytmp dir Mar 06 23:03:23 JesusFreke++ Mar 06 23:03:24 worked great Mar 06 23:03:37 StingRay_: that's something easy to do from adb shell? Mar 06 23:04:01 attach: ptrace(PTRACE_ATTACH, ...): Operation not permitted Mar 06 23:04:03 ah just read his 3rd sentence Mar 06 23:04:05 my bad Mar 06 23:04:06 :) Mar 06 23:04:08 guess i'll have to root this Mar 06 23:04:15 hopefully that's not a scary thing to do Mar 06 23:06:35 You'll definitely come back changed. Mar 06 23:09:40 doug: it's easier to just use the emulator, if you're only trying to do research Mar 06 23:09:47 the emulator is essentially pre-rooted Mar 06 23:17:25 Do you need a kindle to have a game circle nickname? Mar 06 23:22:49 jasta: it looks like starting the broadcastreceiver manually works if my startForeground is not running Mar 06 23:23:28 if it IS running and I start the receiver manually, I still get Broadcast completed: result=0, but no sound is played Mar 06 23:24:41 I'm not sure where to go from here Mar 06 23:26:52 Is is "./fastboot flash recovery filename.img" to flash recovery? Mar 06 23:27:31 tb01110100: #android-root Mar 06 23:27:40 Quacked: Thanks. Mar 06 23:29:30 StingRay_: you can't use the external storage for that because it's mounted noexec Mar 06 23:34:24 doh, jasta quit :p Mar 06 23:37:49 AlarmManager won't start BroadcastReceiver if my startForeground service is running and the app is stopped through task switcher. Anyone got an idea for that? Mar 06 23:38:16 The Service is here: http://pastebin.com/ZVp67gus Mar 06 23:44:37 whats a "common" amount of to be collected by the garbage collector? Mar 06 23:44:55 Hey Mar 06 23:44:57 i am getting these msg's in the debug console of my logcat "03-06 22:08:15.948: D/dalvikvm(2280): GC_FOR_ALLOC freed 1648K, 15% free 14521K/17056K, paused 49ms, total 50ms" Mar 06 23:45:03 I wouldn't worry so much about the amount it collects as about how often it does so Mar 06 23:45:25 OK Mar 06 23:45:52 what's a benchmark for too often? I'm trying to do some animation and learning things as I go along Mar 06 23:45:59 I'm following the basic, first tutorial here Mar 06 23:46:07 Is there any better documentation on the "this" attribute? Mar 06 23:46:38 Is there a way to force an actionbar item to be in the overflow menu? Mar 06 23:46:45 showAsAction="never" Mar 06 23:47:06 samson91787 that depends on what you're doing. But you certainly want to minimize it. Once per second is way too often. Once per minute? No problem. Mar 06 23:48:26 OK I'm definitely at once per second. do you know of any resources that would help me out with animation and garbage collection? There seems to be a lot on the animation itself but not a lot about using resources appropriately Mar 06 23:48:27 It has to run sometime... if you really mess up, like for example you're doing some heavy calculus (or whatever), you'll see the GC every second or so Mar 06 23:48:55 what sort of animation are you doing ? Mar 06 23:49:00 normal UI ? in-game ? Mar 06 23:49:27 it's a game. but pretty simple. https://github.com/SamPortnow/Depression_Prevention_Program/blob/master/bato/src/com/example/bato/AnimatedNegative.java Mar 06 23:49:37 thats the code for it Mar 06 23:49:49 the trick about the GC is... don't allocate objects Mar 06 23:49:55 re-use existing ones Mar 06 23:50:26 ya I tried to do that. And I put in some if statements so nothing gets done more than its needs to Mar 06 23:50:37 but I still get a lot of gc logs Mar 06 23:52:21 samson91787: use the ddms allocation tracker Mar 06 23:52:25 figure out what's going where Mar 06 23:52:47 OK I'll do that Mar 06 23:52:50 any other tips? Mar 06 23:56:04 evanc, the menu isn't showing when i do that Mar 07 00:10:07 what do you guys recommend as a good diff tool for mac Mar 07 00:10:45 frewsxcv: you will need to be a lot more specific. Got source? screenshots? Mar 07 00:10:58 diff and sdiff ( they are on OS X, aren't they ? ) Mar 07 00:11:12 bankai_: graphical diff ;) Mar 07 00:11:22 -_-# come on, man ... Mar 07 00:11:51 gvim diff ? Mar 07 00:15:09 I've had good luck with perforce diff Mar 07 00:15:28 (I always assumed g00s was a google'r, but I guess I'm wrong ;-) Mar 07 00:15:54 kbs: heh , too funny. yeah i guess they have p4 there ;) Mar 07 00:16:00 yeah :-) Mar 07 00:16:30 man, i feel like i've read the same material 5 times now, but something just aint right with my YUV Mar 07 00:16:35 the perforce diff is pretty handy. Does images too, which is occasionally entertaining. Mar 07 00:19:14 hmm, i might be able to get p4merge for free from the website Mar 07 00:19:44 yeah. The client ought to be free; and should be able to run p4diff/merge without needing the server Mar 07 00:20:38 i guess its that or diffmerge Mar 07 00:23:01 does anyone know if .obb expansion file downloading doesn't work if you don't' have payment info set up on your google account? Mar 07 00:25:40 kbs: wow, no-registration free(for limited use) dl. open dmg, drag tool to Applications, done :D Mar 07 00:26:00 p4 guys are terrific. Mar 07 00:33:25 onReceive in a receiver I aquire a WakeLock. How can I release that in the Service the receiver is starting? Mar 07 00:33:25 hey guys...another newbie question for you Mar 07 00:33:45 I have some existing code. I changed a value in colors.xml to white and see it reflected in the emulator Mar 07 00:33:58 but I don't actually see where in the layout xml it specifies to use that named color Mar 07 00:34:59 I tried setting the wakelock to static in the receiver but Receiver.wakeLock in service is null Mar 07 00:35:05 ProgramMax: well if you've done a search for it in the xml and cant find that ref, not sure what your asking Mar 07 00:35:29 I'm probably being braindead atm :P Mar 07 00:35:41 I hadn't opened it as a text file. There is some layout editor thing in eclipse Mar 07 00:35:46 but it might also involve fragments Mar 07 00:35:50 *shrugs* I'm learning this Mar 07 00:36:13 @Color/youcol will pull in a color Mar 07 00:36:24 Quacked: I wonder if it's simpler to just have the locks open/closed within the same component. I usually find the code ends up being simpler, if I can release locks within a finally {} rather than worry about leakig them. Mar 07 00:36:52 hrmmm I don't see it Mar 07 00:37:18 kbs: the idea was to acquire wakelock when receiver is started, and to release it once the service has started, to be sure that the service actually starts Mar 07 00:37:39 my colors.xml has #FFFFFF Mar 07 00:37:43 I can change that to red and the such Mar 07 00:38:07 but I don't see any @Color/background in landing_fragment.xml or in channel_item.xml Mar 07 00:38:08 kbs: someone recommended me that so that my alarmmanager should always be able to play sound Mar 07 00:38:40 kbs, but, maybe I can just release it after I've done the startService.. Mar 07 00:38:43 hmm Mar 07 00:39:33 kbs: what do you think? Mar 07 00:39:56 Quacked: well. many ways to skin this cat; thinking :-) Mar 07 00:40:12 :) Mar 07 00:40:54 I'm gonna go for it and cross fingers that it is enough Mar 07 00:41:51 thanks for the tip Mar 07 00:43:44 over to something completely different.. is it possible to connect to device wirelessly by using eclipse rather than "adb connect ip"? Mar 07 00:43:46 well. Best random thought this late in the day (for me) is wondering why your static lock didn't show up. Mar 07 00:44:43 kbs: I'm thinking the broadcastreceiver "dies" and thus the wakelock has no value Mar 07 00:45:15 well, the startService() ought to have kept it alive. But, beats me. Mar 07 00:45:43 I don't fully understand how broadcastreceivers work :) Mar 07 00:45:59 I was just thinking it was a bit like IntentService, where it kills itself after doing the works Mar 07 00:46:21 oh, the component itself is done -- but the process should be alive. Mar 07 00:46:36 hence, static variables should still be around; but maybe I'm missing something. beats me Mar 07 00:46:52 ok Mar 07 00:47:31 I assume you can see that your service is alive, is that correct? ie, logs and so on from its oncreate method visible? Mar 07 00:47:46 oh, I found it... in list_fragment.xml Mar 07 00:47:55 man..I gotta figure out how this is all organized Mar 07 00:48:11 kbs: yeah Mar 07 00:49:46 Quacked: oh well. Not sure why then. The other thing (and this would be a hack) is to consider using a timer-based wake-lock on the receiver, and use an acquire/release lock on the service. Mar 07 00:50:06 but, better minds here might offer more appropriate solutions; so ask away later when more are awake Mar 07 00:50:08 I think I found a solution Mar 07 00:50:13 http://stackoverflow.com/questions/11274196/releasing-wakelock-in-different-activity-to-where-it-was-acquired Mar 07 00:50:29 The accepted answer that Mar 07 00:50:31 there* Mar 07 00:50:47 I've seen another app do just that. Have a separate class for the wakelock Mar 07 00:50:49 wait -- but you just told me your static lock was invisible Mar 07 00:51:00 So, here is a very very rough sketch of what UI I'd like to make http://i.imgur.com/pQRplPu.png. What kind of layout(relative/linear/etc) must I use for this task? The app will not be fullscreen. Mar 07 00:51:10 Yeah, it returns null Mar 07 00:51:33 so, you've got me thourgouhly confused. Why would that SO answer work, when it too says "use a static variable" :-) Mar 07 00:52:04 I was thinking because it was in an own class Mar 07 00:52:39 But maybe it would be no different :P Mar 07 00:54:08 diki: all of them Mar 07 00:54:18 I guess I haven't seen the code you use; but hey. A static variable is probably simpler than anything else; and worst case you can try the hack above too. Mar 07 00:54:18 huh? Mar 07 00:54:31 Quacked: ie -- give it a whirl, and good luck :-) Mar 07 00:54:37 yeah, thanks Mar 07 00:55:01 diki: well you know that sketch has many views, so yeah, lots/all Mar 07 00:55:17 I did not mean views, I meant layout Mar 07 00:55:28 ok viewGroups then Mar 07 00:55:33 many viewGroups Mar 07 01:00:20 as a side-question, what would be the use of LayoutInflater vs just defining everything in the xml file? Mar 07 01:00:36 so you can inflate things later? Mar 07 01:00:43 meaning? Mar 07 01:01:23 like at runtime? Mar 07 01:01:44 What is it normally used for? Mar 07 01:01:51 inflating things at runtime Mar 07 01:02:03 don't inflate. inflating is bad Mar 07 01:02:10 and why would you not just define everything in the xml file instead? Mar 07 01:02:20 every time write the line "inflater.inflate" slap yourself because it's bad Mar 07 01:02:21 diki: what if you had an unknown number of things? Mar 07 01:02:35 funkbox: every time you make blanket statements, slap yourself because it's bad Mar 07 01:02:42 evanc: yes sir Mar 07 01:03:28 * kbs wonders whether to feed the troll Mar 07 01:04:28 evanc, mind repasting that link? it's beyond the buffer now Mar 07 01:04:41 re, slowness of python/ruby/etc Mar 07 01:04:45 inflating *is* costly. the less you do it the better Mar 07 01:04:58 how is it any more expensive than programatically creating interfaces? Mar 07 01:05:04 and it's more reusable Mar 07 01:05:22 my argument is more "inflate or create interfaces only when you have to" Mar 07 01:06:30 funkbox: er, duh? Mar 07 01:06:38 no one just sits around and does it for shits and giggles, haha Mar 07 01:06:56 evanc: i've used apps that definitely seem to do it for shits and giggles Mar 07 01:07:57 i'll add features like, expanding lists, tabs, etc Mar 07 01:08:07 it's jsut a part of building an interface to match a featureset Mar 07 01:23:26 anyone ever done any baseAdapter pre-loading read ahead type stuff ? Mar 07 01:23:41 or any *Adapter come to think of it Mar 07 01:24:48 kaneda^: https://speakerdeck.com/alex/why-python-ruby-and-javascript-are-slow Mar 07 01:24:57 gracias Mar 07 01:29:44 evanc, lol, i love how he skips over C hash table Mar 07 01:30:22 evanc, "I wanted to use a pure C hash table implementation, but googling "C hash table" didn't bring up useful stuff" :D Mar 07 01:30:27 kaneda^: btw, it took me like 5 slides in before I realized the speaker notes are important Mar 07 01:30:37 :D Mar 07 01:30:42 because structs in C aren't hash tables Mar 07 01:31:07 evanc, i was actually just reading stats on uncompiled python, i havent read the benchmarks on pypy or cpython or psyco Mar 07 01:31:31 and FYI, a boost hashmap is pretty damn fast Mar 07 01:31:49 hey guys, if I set zoom enabled on webview, it seems double tap and swipe gestures aren't detected after zooming in Mar 07 01:31:53 anyone know why? Mar 07 01:32:00 anyways, i dont particularly agree with him evanc Mar 07 01:32:10 the perfomance of a hashtable most ly depends on your hash functions and the load factor Mar 07 01:32:30 boost is good, except when you need to debug it Mar 07 01:33:43 "they train themselves to think of a dictionary as a lightweight object..." who are these people who think this? Mar 07 01:33:59 kaneda^: JS devs Mar 07 01:34:14 if you've implemented a hashtable or a hashmap in C then you will never forget Mar 07 01:35:01 and if he has the regular expression written why not just use re? Mar 07 01:38:24 hrm, he doesnt talk about lambdas Mar 07 01:39:00 why would he? Mar 07 01:39:04 dictionaries are heavy Mar 07 01:39:10 british ones especially Mar 07 01:39:29 and heuristics = wild ass guess? seriously? Mar 07 01:41:21 funkbox, because if i can write [ lambda x: x*x for x in xrange(foo) ] instead of the C statement i'm going to! Mar 07 01:41:32 instead of def sq foo bar biz bot bam blah Mar 07 01:42:06 sure but lambas aren't really perf-killers unless you misuse them Mar 07 01:42:35 what was it that Maslow said... "if the only tool you have is a hammer, every problem looks like a nail" Mar 07 01:42:43 i mean, python adds a LOT of elegance to code Mar 07 01:42:52 "elegance" Mar 07 01:43:19 dynamic typing != elegant Mar 07 01:43:55 have you ever done socket programming? Mar 07 01:44:07 even the java wrappers are ugly, let alone the actual c programming Mar 07 01:44:19 yes, on a service with 10s of millions of active connections. what's your point ? Mar 07 01:44:26 it's way prettier in python Mar 07 01:44:57 "prettier" ? Mar 07 01:45:07 hi guys Mar 07 01:45:43 in the ideal world we'd have infinite memory and cpu power and we could just write code in aolspeak if we wanted to and it'd all be perfect Mar 07 01:45:45 question for the developers, how do I determine the correct dimension for an app background? pixel wise Mar 07 01:45:53 I want to create something in photoshop Mar 07 01:45:56 from socket import socket -- s = socket() -- s.connect((url,port)) Mar 07 01:46:09 funkbox, are you seriously telling me taht's not way prettier? Mar 07 01:46:22 how many connections will that scale to ? Mar 07 01:46:52 funkbox, not sure, i've opened up a couple hundred at a time this way over several threads Mar 07 01:47:06 as many as the kernel allows Mar 07 01:47:19 what happens when messages start coming in? Mar 07 01:47:25 what about gc/etc Mar 07 01:47:29 not to mention, s.settimeout(0.1) <-- 10 ms before timeout Mar 07 01:47:32 anyone? Mar 07 01:48:51 plus with c# you could say var s = new Socket(); await s.ConnectAync(); Mar 07 01:49:04 not only that but you get more compile-time guarantees Mar 07 01:49:14 but this is a religious discussion so meh Mar 07 01:49:41 pfft, i'd take the C# over the C any day Mar 07 01:50:00 better for my sanity Mar 07 01:51:35 evanc, my major problem with this is he provided no stats Mar 07 01:51:52 any actual benchmark, however skewed, is better than none at all Mar 07 01:52:23 i believe he's right, that python is spending a lot of time in allocations that are hidden from the user Mar 07 01:52:30 hey guys, if I set zoom enabled on webview, it seems double tap and swipe gestures aren't detected after zooming in… :( not sure why hrrmpf Mar 07 01:52:55 if you have a dynamic allocation in a for-loop you feel that on android ndk, so trust me i know :D Mar 07 01:57:58 evanc, http://blog.enthought.com/general/what-is-your-python-budget/ Mar 07 01:58:03 this is what i was reading earlier Mar 07 02:09:23 i'd ignore those last few functions though.. Mar 07 02:13:21 hm, i'm surprised google didn't provide a CursorLoader that doesn't require a content provider Mar 07 02:14:03 seems like a useful thing to have in the support library Mar 07 02:14:17 yeah seriously Mar 07 02:15:25 if I send 2 broadcasts that have the same receiver, is it possible that one overwrites the other ? Mar 07 02:15:55 X_X http://www.theregister.co.uk/2013/03/05/java_self_signed_exploit_spotted/ Mar 07 02:17:19 Can I enable adb over wife in a not rooted device through an app? Mar 07 02:18:03 I created a background for my app, my phone is the SGSIII, but the background came out small and distorted Mar 07 02:18:25 I followed the guide online that sasy the screen is hdpi, and it's 960x720px Mar 07 02:18:32 kaneda^: most users should not have java installed any more :| Mar 07 02:20:50 why am I tempted by bbz10 Mar 07 02:20:55 ugh! Mar 07 02:21:11 StingRay_: wut? Mar 07 02:21:31 I look at the design of the hardware Mar 07 02:21:38 and I really like it Mar 07 02:21:57 it's not a 4.5+ monster Mar 07 02:22:06 it's just a nice balance Mar 07 02:22:18 probably a pain to develop for Mar 07 02:22:34 oh, hah, the BB Z10 Mar 07 02:22:58 StingRay_: i looked at the APIS, doesn't look like a pain at all. in fact, it looks very modern Mar 07 02:23:26 StingRay_: I went to a talk given by a local RIM developer advocate last year, and it actually looks like they've worked really hard to make it nice to develop for Mar 07 02:24:08 let's face it, they're desperately in need of goodwill from developers Mar 07 02:24:38 makes me sad Mar 07 02:25:09 well I hate to say it, I'm a fan of the playbook, yes lacks apps, but it's nice Mar 07 02:25:22 hardware, screen, performance Mar 07 02:25:23 whoever at Microsoft allowed WP8 development to require W8 was insane Mar 07 02:25:26 hmm Mar 07 02:25:27 all quite amazing Mar 07 02:25:45 ah, I sold my playbook :) didn't see any reason to keep it when I had an N7 Mar 07 02:25:52 I wonder why it's just cropping zee wallpaper Mar 07 02:26:07 Leeds: oh I have a n7 too, but playbook is just, dunno, quality Mar 07 02:26:28 will the playbook get BB10 ? Mar 07 02:26:32 yes Mar 07 02:26:38 oh well damn, there you go Mar 07 02:26:39 not sure when though Mar 07 02:26:54 it looks normal on my computer, when I look at the activity_mail.xml Mar 07 02:27:02 g00s: my take was that if I decided I needed one for BB10, I'd just buy a new one - they're not exactly expensive Mar 07 02:27:09 oh an as a side note, I watched a vid on all my tablets, inc ipads, ipad retina etc and most sammy, and the playbook screen I liked the best Mar 07 02:27:09 but in the app, it's all weird >_> Mar 07 02:32:29 damn i smell bacon; and i'm on the last hour of my fast Mar 07 02:33:04 NO FOOD Mar 07 02:33:14 hehe Mar 07 02:33:39 why are you fasting ? Mar 07 02:34:12 i fast every day (intermittent fasting). i only eat food every day within a 4 hour window of time Mar 07 02:34:35 yeah, anyone have any suggestions? Mar 07 02:35:11 Rob|boR: you have made loads of statements and not asked any questions or provided any info/visuals..... so no I dont Mar 07 02:35:18 Rob|boR: maybe you didn't set the right scale type for the imageview ? Mar 07 02:35:33 yeah, "its all weird" isn't very uh , helpful Mar 07 02:36:09 okay let me take a screenshot Mar 07 02:40:48 here is my xml for the main activity Mar 07 02:41:06 this is how it looks on my phone, http://i.imgur.com/1KDzgSi.png Mar 07 02:41:35 this is how it looks in eclipse http://i.imgur.com/PkODV23.png Mar 07 02:41:37 anyone know where to reach ron_frown? Mar 07 02:42:07 how did the Pikachu wind up on the phone ? Mar 07 02:42:23 lol Mar 07 02:42:42 w..t..f :S Mar 07 02:42:50 let me post the dashboard xml too Mar 07 02:42:53 you got wrap_content for that listView ? Mar 07 02:43:09 or gridview rather Mar 07 02:43:34 Rob|boR: what you see in eclipse is rarely going to be what you see on a device Mar 07 02:43:40 this is the other xml for the icons http://pastie.org/private/txqznncc6enfkex2uvdrzw Mar 07 02:43:49 ron_frown will appear if you mention eclipse vs intellij THREE times Mar 07 02:43:59 Rob|boR: and the layoutXML ? Mar 07 02:44:02 that's once Mar 07 02:44:14 i posted the xml for the main layout Mar 07 02:44:19 did you Mar 07 02:44:35 http://pastie.org/private/kedaekpj9xfinfc5ixg0ma Mar 07 02:44:47 android:layout_height="wrap_content" Mar 07 02:44:58 wrong in so many ways Mar 07 02:45:07 no it's with fill parent Mar 07 02:45:29 thats not what it says there Mar 07 02:46:22 are you saying width or height should be wrap_content? Mar 07 02:46:26 my height is wrap Mar 07 02:46:29 my width is fill Mar 07 02:46:41 make them both match_parent Mar 07 02:46:48 ok Mar 07 02:47:40 okay I did that, the background appears as it should Mar 07 02:47:44 but the icons are not centered Mar 07 02:47:47 they are all on the top Mar 07 02:48:08 Rob|boR: yes they will be Mar 07 02:48:51 so then I need to change the imagview and textview from the dashboard_icon ? Mar 07 02:48:57 to put it back in the center? Mar 07 02:49:07 Rob|boR: no Mar 07 02:49:34 I think you should look into what gridView is Mar 07 02:49:45 and then decide if it's correct that your using it Mar 07 02:50:33 I know what it is.. Mar 07 02:50:44 I guess I can adjust the height and width of the gridview Mar 07 02:51:19 Rob|boR: see my last 2 sentences Mar 07 02:51:48 Is there a version of the Android developer guide as an ebook? Mar 07 02:52:00 okay? Mar 07 02:52:11 good? Mar 07 02:52:13 :) Mar 07 02:52:19 what would you use then Mar 07 02:52:22 jda2000: you have the offline version right ? :P Mar 07 02:52:27 if you want icons centered in the center of the screen Mar 07 02:52:30 Rob|boR: irrelevant Mar 07 02:52:38 you need to read more Mar 07 02:52:44 and ask direct questions Mar 07 02:53:04 okay, How would I go about centering my icons? Mar 07 02:53:17 in height and width Mar 07 02:54:04 Rob|boR: bit of reading for ya http://mobile.tutsplus.com/tutorials/android/android-layout/ Mar 07 02:54:33 g00s , that would be on my laptop. I'll have to get it. Mar 07 02:55:09 StingRay_, that's actually a good site, thank you Mar 07 02:55:27 1st link in google Mar 07 02:55:29 :) Mar 07 02:55:36 but looked ok from the link **** ENDING LOGGING AT Thu Mar 07 02:59:58 2013