**** BEGIN LOGGING AT Sat Mar 23 02:59:59 2013 Mar 23 03:12:13 JohnnyL, what are you planning to do? Mar 23 03:12:24 And what is a http game server desktop? Mar 23 03:47:08 I get an unattractive error with http://pastebin.com/eYyJJddw Mar 23 03:47:15 The method setListAdapter(ListAdapter) is undefined for the type AllFriendsActivity.LoadAllFriends Mar 23 03:47:40 ive googled, find answers saying my class needs to extend listavtivity Mar 23 03:48:09 however I when I do that my app crashes saying my class cant be casted to a fragment =[[ Mar 23 03:48:18 well that, or call it on your listView Mar 23 03:48:29 as in myListView.setAdapter Mar 23 03:48:58 but you don't seem to have one Mar 23 03:49:01 :) Mar 23 03:49:41 riccoski: activity has listView thats connected to adapter that driven by X data Mar 23 03:49:53 hmm interesting, thanks ill create one and try that! :) Mar 23 03:49:53 your kinda missing the listView bit :) Mar 23 03:53:15 * g00s sighs. another day of bad pictures :( Mar 23 03:53:51 how so ? Mar 23 03:54:34 lighting was poor. sometimes, the ultimate act of photography … is not to take the picture in the first place Mar 23 03:54:59 well, pic what you consider a crap one Mar 23 03:55:05 raw if poss Mar 23 03:55:11 and show meeeee :) Mar 23 03:55:38 my camera sucks ass too Mar 23 03:55:46 i'll have to grab a pic Mar 23 03:57:00 i was trying a backlit scene; of course had some lens flare Mar 23 03:57:16 couldn't really get the lens flare in an unimportant part of the composition :/ Mar 23 03:58:38 the clouds looked really bad-ass so i decided to get up there; then i got there and they disappeared :/ Mar 23 03:58:51 foiled again Mar 23 04:01:38 must have been some of those light clouds Mar 23 04:01:47 you know, the ones that are particles and waves at the same time Mar 23 04:06:40 StingRay_: if you were going to pick up a sub-500 camera now, what would you get ? Mar 23 04:06:44 $500 Mar 23 04:06:48 (usd) Mar 23 04:22:12 how much is a 2nd hand 5d2 ? Mar 23 04:22:39 heh, probably still over 1k Mar 23 04:22:43 oh Mar 23 04:22:57 depends what I was wanting to shoot/do with it Mar 23 04:23:23 e.g. the 5d range of sub 2k aint good for fast focus or fast snapping Mar 23 04:23:35 the 40,50,60's are Mar 23 04:23:48 weird that canon already replaced the t4i with the t5i Mar 23 04:24:24 StingRay_: if you get a dslr with aps-c sensor, does that mean the lenses you get really wont work for a full-frame body? Mar 23 04:24:54 well yes/no Mar 23 04:25:15 depends on what lens comes with it Mar 23 04:25:19 but 90% yeah Mar 23 04:25:22 i bet you camera folk are just making up these words. none of them even really exist! Mar 23 04:26:08 hello, I'm trying to use GoogleMaps in my android app, and for some reason I can't get it to load in my emulator. I just get a grid. I've looked into on StackOverflow, and it seems that the most common problem is a mismatched signature key. Every post uses an MD5 signature, but the API Console tells me to input the SH1 and won't allow an MD5 number. My question is has anyone run into this error using google maps api v3? Mar 23 04:26:52 g00s: ef-s is your aps-c size Mar 23 04:26:56 EF is your full Mar 23 04:27:07 i guess 's' means 'small' ;) Mar 23 04:27:21 so your looking at a crop on using ef on a ap-c Mar 23 04:28:10 and if you attempt in a tipsy state to put a EF-S on a full frame you end up knocking focal element out Mar 23 04:28:18 * StingRay_ has experience in that Mar 23 04:28:34 sounds like an expensive mistake ? Mar 23 04:28:43 as in the focal plane overlay thing Mar 23 04:28:47 not a lens element Mar 23 04:29:23 naaa Mar 23 04:29:29 £50 Mar 23 04:29:35 if you broke it Mar 23 04:29:37 http://www.focusingscreen.com/work/picture/450d/011.jpg Mar 23 04:29:42 that thing Mar 23 04:30:29 moral of the story, a ef mount is an EXACT fit, don't ever thing you know better than sub millimetre machine work!! Mar 23 04:30:42 * StingRay_ looks at himself Mar 23 04:37:58 anyone have experience using google maps v3 on an eclipse emulator? Mar 23 04:38:42 you mean v2 :) Mar 23 04:40:13 well on the google api console there is a v3, and when I download Google APIs on eclipse, it says version 17, rev 2 Mar 23 04:40:58 I'm completely new to android, and Im trying to get maps working on my emulator Mar 23 04:41:15 nope. in console it v2 Mar 23 04:41:17 Google Maps Android API v2 Mar 23 04:41:33 make sure it is ON Mar 23 04:42:27 im looking at my google apis console, under my maps app, the service is called "Google Maps API v3" Mar 23 04:42:43 on my dashboard Mar 23 04:42:59 you looking wrong, check second item above Mar 23 04:43:40 you need to open servise Mar 23 04:43:43 serivices Mar 23 04:43:56 and activate Google Maps Android API v2 Mar 23 04:44:00 ohhh, oops! I was using the wrong service Mar 23 04:44:05 thank you so much! Mar 23 04:44:12 cleared up so much confusion Mar 23 04:44:15 yep, np Mar 23 05:18:48 StingRay_, managed to fix my problem. had to use getacitivity to call getSupportFragmentManager which is why i ended up using getchildfragmentmanager in the first place Mar 23 05:19:19 see if you were using fragmentActivity I would have suggested that :) Mar 23 05:19:50 FragmentTabsPager does extend that Mar 23 05:20:05 no but your base activity would Mar 23 05:20:27 and cause it uses support lib, it's always "support" Mar 23 05:48:10 * g00s wonders what is going on with appcompay Mar 23 05:48:13 *appcompat Mar 23 05:57:56 good night does anybody has been using cocos2d-x Mar 23 05:58:16 i need to know if somebody had compiled mips prebuilt libraries Mar 23 05:58:39 for share or give me a hint how to compile by myself Mar 23 06:00:38 nips? Mar 23 06:06:44 mips architecture Mar 23 06:09:23 use the ndk to compile for android mips Mar 23 06:11:13 toxie: are you one of the 2 people on the planet using android on nips ? Mar 23 06:11:15 i used ndk-build Mar 23 06:11:24 maybe Mar 23 06:11:40 i just bought an android tablet with mips processor Mar 23 06:11:54 toxie: which one ? Mar 23 06:12:06 but i need to compile libjpeg with ndk-build but i dont know how Mar 23 06:12:33 gs701b clone Mar 23 06:13:15 what the hell is that Mar 23 06:13:25 A chinese tablet Mar 23 06:13:29 * g00s can't even find it on google Mar 23 06:13:46 whit an MIPS based Procesor Mar 23 06:14:16 you could find it as FunTek Q8 or something like that Mar 23 06:14:27 Q8 Mar 23 06:15:48 when you change a variable being displayed in a list, you are supposed to see the change immediately right? Mar 23 06:17:07 What kind of layout would be best if I wanted to dynamically add buttons in a x by x grid. Mar 23 06:18:03 I've been trying it with relative layout. I can get x number of boxes accross, but I am having trouble figuring out how to make the next row of bxoes. Mar 23 06:18:42 achmode: you need to call notifyDataSetChanged on your adapter Mar 23 06:19:17 achmode: define variable change on a list ? Mar 23 06:25:52 StingRay_, yes, eventually a variable gets added to a list, and i have functions that manipulate that variable. i expected to see the change immediately if i set that variable Mar 23 06:26:11 ill try out notifyDataSetChanged Mar 23 06:26:57 anyone using any MVC like framework on andriod? Mar 23 06:30:16 i need to get the adapter without re-instantiating it Mar 23 06:31:11 achmode: so what the problem? Mar 23 06:31:23 i dont know how Mar 23 06:31:49 listview.getAdapter(); Mar 23 06:33:47 getActivity().listView.getAdapter(). cannot be resolved. Im calling it from another class Mar 23 06:34:38 so call it from where your listview Mar 23 06:34:47 or show the code :) Mar 23 06:38:13 vovkab, the listener on line 34 changes the list at 60 .http://pastebin.com/3sUJna8D Mar 23 06:38:35 the list is on another fragment Mar 23 06:41:18 oh, you don't have listview, then you just need to update your textview after line 60, like this: Mar 23 06:41:18 textViewCurrentQuantity.setText("Currently in Cart: "                                 + ShoppingCartHelper.getProductQuantity(selectedProduct)); Mar 23 06:43:09 every time you change data, you need to update view to show a new value Mar 23 06:44:28 and make textViewCurrentQuantity final, so you can access it from OnClickListener: line 26 final TextView textViewCurrentQuantity = ... Mar 23 06:45:11 yes eclipse did tell me to make it final. i didnt know why :) Mar 23 06:49:00 log keeps crashing -_- Mar 23 06:49:44 ach Mar 23 06:49:59 you know that textViews can have input constraints ? Mar 23 06:50:06 like NUMBER Mar 23 06:50:11 NUMBERDECIMAL etc Mar 23 06:50:18 yes Mar 23 06:51:02 i sure hope so. i didnt know Mar 23 06:51:20 will even constrain the keyboard for you too Mar 23 06:51:23 just numbers Mar 23 06:51:39 yes but it doesnt HIDe the other chars from the keyboard which is stupid Mar 23 06:51:53 for instance on ICS it shows ()+- etc on the keyboard even if you say numeric only Mar 23 06:52:02 unless you know some how to change that which i dont Mar 23 06:52:20 well that is part of the numeric layout for the kb Mar 23 06:55:13 why should the layout for the kb have +- for numeric its stupid Mar 23 06:55:32 if you set android:digits="0123456789abcdef" it will show ALL chars on the keyboard Mar 23 06:55:41 thats stupid..why cant it grey out the invalid ones? Mar 23 06:56:13 cause there is no guarantee that you will have the stock kb, and even less so that if you don't people would have implemented it Mar 23 06:56:19 guessing but seems logical Mar 23 06:57:02 so its logical that everyone then has to write their own custom keyboards because the stock and third party ones can't query that value? Mar 23 06:57:37 just ignore values you don't need ans accept only numbers Mar 23 06:58:14 i can do that and I do that but its confusing for customers and not what the boss wants Mar 23 06:58:24 i have an aidl service that other apps also use by including my aidl Mar 23 06:58:40 so I dont really have to write my own keyboards to handle what seems like obvious functionality is there a different call i can make to grey it out on the keyboards/ Mar 23 06:58:57 now i want to update my service and aidl file, do others also have to update their copy? Mar 23 06:59:26 Dorky: no you can't you need to filter it in code Mar 23 07:01:28 the number is still taking too long to change. from what i saw on the net, the adapter has a copy of the list? so i have to update the whole adapter to see the change. this is telling me to add a cast to getAdapter. getView().findViewById(R.id.ListViewCatalog).getAdapter(); Mar 23 07:01:58 which doesnt remove the red line Mar 23 07:02:08 achmode: you have no view fronting the adapter Mar 23 07:03:11 achmode: http://developer.android.com/guide/topics/ui/layout/listview.html Mar 23 07:09:08 achmode: actually looking back you have no visual view either Mar 23 07:09:51 vovkab: so you're saying everyone that wants to not display unenterable values has to write their own keyboard? Mar 23 07:10:15 i still find it hard to blieve but ive searched and not found Mar 23 07:10:28 still wish there was a good 3rd party widget library that handled basic shit like this Mar 23 07:10:29 no, you need request nearest keyboard layout, and filter input Mar 23 07:10:30 Dorky: no, I think the point is you don't want 10's of layouts for options when you don't need to Mar 23 07:10:40 im talking about GREYING THEM out Mar 23 07:10:45 that doesnt need new layouts Mar 23 07:10:46 or hiding them Mar 23 07:11:00 if you ask someone their age why does it need to show them ()+- on the keyboard? it makes zero sense Mar 23 07:11:24 that number in android means phone number + random other chars even if you only accpet 0-9 Mar 23 07:24:12 i think it'll be okay if you use enough lubrication Mar 23 07:36:42 Hey. I've been working on an application, but I am having trouble generating the layout dynamically like I want it. I am trying to make it look like http://i.imgur.com/kB6IfkY.png but instead I am ending up with spaced boxes. Mar 23 07:50:27 Konst: and your question is ? Mar 23 07:51:03 without a question I'm guessing that vertical linear layout Mar 23 07:51:37 with 0 = being a view with match_parent Mar 23 07:52:15 1 = being a grid/table or 2 nested linear layouts vert with 2 horiz with 2 buttons in each Mar 23 07:52:22 set to wrap_content in height Mar 23 07:52:39 and 2 being a view again, with fill parent Mar 23 07:52:56 then set 1 to have a layout_weight of 1 Mar 23 07:53:02 that would do I think Mar 23 07:53:15 but I'm a bit tired and brain maybe firing wrong Mar 23 07:56:20 that screams GridLayout Mar 23 07:57:12 sure I have asked b4, grid layout can do offset views like that ? Mar 23 07:57:20 well, I mean is it easy Mar 23 07:57:31 cause course it can or you wouldn't have said it Mar 23 07:57:37 what do you mean offset? Mar 23 07:57:56 well a 1,2,2,1 layout (vertically) Mar 23 07:57:58 cells Mar 23 07:58:19 sure Mar 23 07:58:23 that's what it is designed for Mar 23 07:58:40 huh. not what I would call a grid :) Mar 23 07:58:50 why not? Mar 23 07:59:02 dunno, grid to me is uniform Mar 23 07:59:02 it's an 8x8 where the top and bottom cells occupy two columns Mar 23 07:59:38 well it's a good thing you didn't write GridLayout then Mar 23 08:00:18 well in context to me, it would be like me looking at a 100 quad square and saying thats a grid, correct, but if it's then shaped like a dinosaur and totally non-uniform is it still a grid Mar 23 08:00:44 yes Mar 23 08:00:45 maybe my background hinders my acceptance of some terminologies Mar 23 08:00:58 sounds like the use of on the web a decade ago Mar 23 08:01:01 no, cause to me grid is something like a height-field Mar 23 08:01:21 try doing geo hight field stuff on a dinosaur shape :) Mar 23 08:02:02 see I would call it tabularLayout or something like that Mar 23 08:02:10 given the print layout nature of it Mar 23 08:03:02 well that'd nicely conflict with TableLayout then Mar 23 08:03:32 but tableLayout can't do variable cells per row ? Mar 23 08:04:03 it can, it just can't do row spans Mar 23 08:08:40 StingRay_: there are also things like QuiltView http://www.androidviews.net/2013/01/quiltview-library/ Mar 23 08:09:32 ... Mar 23 08:09:35 that is a GridLayout Mar 23 08:09:39 ha Mar 23 08:09:41 it even says that Mar 23 08:10:35 https://github.com/jacobmoncur/QuiltViewLibrary/blob/master/src/com/jake/quiltview/QuiltViewBase.java#L128-156 Mar 23 08:10:42 do not want. Mar 23 08:11:35 https://github.com/jacobmoncur/QuiltViewLibrary/blob/master/src/com/jake/quiltview/QuiltViewPatch.java#L36-38 Mar 23 08:11:47 is it possible to do gradients in android xml like you can in xaml? Mar 23 08:12:02 yes Mar 23 08:12:15 whas the syntax for that? and what abou font fx? Mar 23 08:12:26 what is 'font fx'? Mar 23 08:12:36 things like shadow embossed etc on the text Mar 23 08:12:46 http://developer.android.com/guide/topics/resources/drawable-resource.html#Shape Mar 23 08:12:53 shadow: yes, embossed: no Mar 23 08:13:07 ok and where are the gradients documented? Mar 23 08:13:12 just linked it Mar 23 08:13:25 ok how do you do the shadow stuff then? Mar 23 08:13:36 for fonts Mar 23 08:13:49 http://blog.stylingandroid.com/archives/378 Mar 23 08:14:05 also, these URLs are the first result in Google for what you're asking Mar 23 08:14:25 ok well thx but i didnt google those terms b4 Mar 23 08:14:32 was just curious Mar 23 08:15:03 yep. i don't mind finding the links. these are just very common things that are going to be widely documented. Mar 23 08:15:20 it takes a bit of getting used to, but once you figure out how to properly good for Android stuff you'll surface good info quickly Mar 23 08:15:26 *properly Google Mar 23 08:15:30 well the android docs are rarely all that useful Mar 23 08:15:44 they are a reference for the most part not a cookbook or howto Mar 23 08:15:53 there's plenty of that too Mar 23 08:16:05 i should buy a book Mar 23 08:16:08 that argument stopped being valid about 1.5 years ago Mar 23 08:16:19 what argument? Mar 23 08:16:25 the docs aren't useful Mar 23 08:16:38 they still seem like references to me Mar 23 08:16:53 maybe isolated sections have smatterings of howto in them now i dunno Mar 23 08:17:07 they're under a 'reference' link. did you try 'training' or 'api guides' Mar 23 08:17:38 not really, just the docs on whatever class it is i'm using Mar 23 08:18:09 i would highly recommend the training and api guides that are provided Mar 23 08:18:37 ok Mar 23 08:25:03 wow Mar 23 08:25:15 i really like the dropboxApi and guides Mar 23 08:25:30 thats dropbox not google Mar 23 08:25:33 apart from one little omission to the docs, even I followed it Mar 23 08:25:52 Dorky: I was under no illusion that dropbox was part of google Mar 23 08:26:03 so why did they replace the android guy at google with the chrome os guy? Mar 23 08:26:07 not did I want to imply that Mar 23 08:26:07 chromeos is nowhere Mar 23 08:26:37 i really like the msdn references compared to android api references Mar 23 08:27:00 wait for a bit then Mar 23 08:27:09 till android has the same maturity Mar 23 08:27:22 :) Mar 23 08:27:37 that's ok i'm charging clients to learn Mar 23 08:28:03 good for you, always like an honest worker :) Mar 23 08:28:05 are you charging them for complaining about docs on IRC? Mar 23 08:28:21 no Mar 23 08:28:25 its a wkend ;) Mar 23 08:28:55 i charge them for downloading FOSS widgets from github and then testing them out to find out they suck though Mar 23 08:29:13 well i'll tell you to skip that QuiltView that was linked a few minutes ago Mar 23 08:29:18 abysmal code Mar 23 08:29:32 i cant believe there are no good 3rd party gui widgets for android Mar 23 08:29:40 and droidux.com stuff is a joke for the price they want Mar 23 08:29:48 i threw out QuiltView as an example Mar 23 08:29:59 im giving serious thought to funding a widget company Mar 23 08:30:04 that doesnt suck Mar 23 08:30:05 overrated Mar 23 08:30:30 what is an example of something you looking for that is missing? Mar 23 08:30:38 everything Mar 23 08:30:40 it helps enabling show line when trying to figure out errors Mar 23 08:30:44 give me a specific example Mar 23 08:30:47 graphing and plotting widgets that are good Mar 23 08:30:53 numeric entry that is not tedious Mar 23 08:31:00 real arcane stuff like that Mar 23 08:31:32 drag and drop would be nice too Mar 23 08:31:32 numeric entry? Mar 23 08:31:37 yeah numeric entry Mar 23 08:31:43 like inputType="number" ? Mar 23 08:31:53 and then you get a numeric keyboard automatically Mar 23 08:32:06 JakeWharton: sort of, except i want the keyboard to only show numbers, and, no the keyboard shows +-() etc Mar 23 08:32:06 JakeWharton: been though this already Mar 23 08:32:11 and --- Mar 23 08:32:18 i want it to limit it to certain input Mar 23 08:32:28 ok so slap together a GridLayout with 9 buttons and you're done Mar 23 08:32:32 say 25-75, 100-2000, etc Mar 23 08:32:46 TextWatcher to limit input Mar 23 08:32:47 sure sure and then slap a grid layout with X buttons for restricted alphanumeric input etc Mar 23 08:32:57 I can limit the input i dont want it to show the keys that i'm filtering out Mar 23 08:33:20 anyway.....i know everyone can say I can just write all this myself but why does every developer have to write their own core widgets? Mar 23 08:33:31 that's not a core widget Mar 23 08:33:34 a button is a core widget Mar 23 08:33:49 asking someone what their zip code is and not displaying +-() on the keyboard is NOT a core widget? Mar 23 08:33:55 really? Mar 23 08:33:58 correct Mar 23 08:34:04 not core to you then Mar 23 08:34:08 what about canada? Mar 23 08:34:08 but for any business app it would be Mar 23 08:34:14 they have letters in their postal codes Mar 23 08:34:26 canada would accept letters but why show !@$&*&# on thekeyboard for postal code in canada? Mar 23 08:34:27 how would it be a "core" widget anyway? Mar 23 08:34:35 and use brits Mar 23 08:34:39 us* Mar 23 08:34:50 some parts of denmark have - in zip codes Mar 23 08:34:52 because it's "core" in the sense that a large number of people want to do it compared to some arcane widget that very few people would want Mar 23 08:34:55 so what you're saying is that you want a highly specific, single-use widget to be part of the core widgets? Mar 23 08:35:02 still, even if they were same format, why would you consider it a core widget? Mar 23 08:35:11 ok fine Mar 23 08:35:15 yes, JakeWharton, that is what i understand from him too Mar 23 08:35:16 graphing? not core either right? Mar 23 08:35:29 some graphing is core, not math graphs Mar 23 08:35:30 not important enough to have a good one right? Mar 23 08:35:42 bar graphs? line graphs? pie charts? Mar 23 08:35:50 no Mar 23 08:35:53 see that's where there are tons of third-party widgets Mar 23 08:35:59 meanwhile android has the rating stars as a core widget? Mar 23 08:36:04 i have seen and tried no less than 10 Mar 23 08:36:14 in the api right? rating stars are so important ? Mar 23 08:36:18 Dorky: those have been around since 2006 Mar 23 08:36:22 JakeWharton: name the two best, all the ones I've tried have sucked Mar 23 08:36:22 Android doesn't remove APIs Mar 23 08:36:34 so they thought rating stars is more important than real numeric input Mar 23 08:36:39 now I dont consider that to be core Mar 23 08:37:07 so tell me which third party widget libraries were actually worthwile JakeWharton i've checked into several at least and most seem very crap Mar 23 08:37:11 especailly the graphing libs Mar 23 08:37:26 i told you how to solve your numeric input Mar 23 08:37:35 and this discussion is approaching on more effort than doing it yourself Mar 23 08:38:48 Dorky: https://plus.google.com/113151026722560575314/posts/ZbHXyKZDpP8 Mar 23 08:39:29 you told me how to do one simple case that isn't the full set of cases I need in this app Mar 23 08:39:33 it's just a very simple example Mar 23 08:40:28 ok and thats one library thats nice but its just charts its not generic widgets Mar 23 08:40:36 wtf is a generic widget? Mar 23 08:40:48 i said generic widgets Mar 23 08:40:55 something like telerik or rad controls on wpf Mar 23 08:40:58 there's not going to be a DorkysUseCaseForNumericInputWidget Mar 23 08:41:01 a package of most of the things apps nease Mar 23 08:41:07 a package of most of the things apps needs Mar 23 08:41:12 what is "most of the things"? Mar 23 08:41:16 i think someone could make or sell a customizable keyboard widget? Mar 23 08:41:28 why dont you google and see what rad controls and telerik usually include and that will give you an idea? Mar 23 08:42:06 i am familiar with them having come from the awful world of WPF Mar 23 08:42:13 and i've also managed to get by without them in Android land Mar 23 08:42:21 dials and gauges would be another obvious pack of android widgets Mar 23 08:42:34 thats great and because you have that means the whole world should too and spend all their time reinventing wheels? Mar 23 08:42:50 are you familiar with Twitter's Bootstrap framework? Mar 23 08:43:08 no, this app that i'm working on, being industrial in nature, actually does not use the twitter api Mar 23 08:43:23 well it has nothing to do with Android or Twitter... Mar 23 08:43:37 it's an HTML/CSS framework for creating websites that solves a lot of common problems Mar 23 08:43:48 it has a very distinct look, not unlike something like RAD Mar 23 08:43:53 but this is an android app not an html app Mar 23 08:43:59 thanks for that insight Mar 23 08:44:03 the problem is, everyone uses this Mar 23 08:44:15 which means every site looks exactly the same and it winds up making them look like shit Mar 23 08:44:30 beware the jabberwock Mar 23 08:44:42 oh gosh now i dont want any nasty 3rd party widgets! i'll write everything from scratch Mar 23 08:44:45 thanks for the heads up Mar 23 08:44:54 i'll get my boss to allocate a few more months of effort Mar 23 08:45:22 in the length of time we have been having this conversation I could have assembled a list of buttons and created your "numeric input" control Mar 23 08:45:37 which is the least interesting case I need to cover as I mentioned already Mar 23 08:46:02 we really dont need to argue about it your opinon is no additional widgets are necessary and I don't agree Mar 23 08:46:45 i don't recall saying no additional widgets are necessary. i said highly-specific widgets tailored to a narrow use case is dumb and not useful for a wide-spread audience Mar 23 08:47:03 no it isnt Mar 23 08:47:14 especially given the plethora of devices out there Mar 23 08:47:20 and plethora of developers Mar 23 08:47:30 if its only intersting to 10% of devs thats a shitload of devs right now Mar 23 08:47:50 why doesnt everyone write their own actionbarsherlock eh? Mar 23 08:48:03 you'll have to ask them Mar 23 08:48:12 yes clearly they are idiots Mar 23 08:48:28 that's what you inferred from my response? Mar 23 08:48:40 from your general opinon of third party widgets yes Mar 23 08:48:48 or do you somehow consider an actionbar to be "core"? Mar 23 08:48:58 and if it is core why isnt in the compat libs? Mar 23 08:49:20 it is core, obviously. and it is Mar 23 08:49:29 if it was noone would need ABS Mar 23 08:49:36 anyone could write an actionbar Mar 23 08:49:40 Dorky: do you wake up and have a 2 hour argument with "yourself" in the mirror every morning ? You seem highly agitated Mar 23 08:49:52 they can and have Mar 23 08:49:56 there are many third-party action bars Mar 23 08:50:12 i'm agitated because i ask something that is either a yes/no answer and then someone goes off telling me how stupid and lazy i am for not wanting to reinvent wheels myself Mar 23 08:50:14 tired of it Mar 23 08:50:26 Dorky: thats the point Mar 23 08:50:28 he didnt Mar 23 08:50:43 * Leeds considers stirring Mar 23 08:50:52 turns out not everyone wants race car wheels on their prius, so there's not a huge market for them Mar 23 08:50:57 he has, somewhat, and others have definely Mar 23 08:51:12 i just added him to the ignore list content free Mar 23 08:51:30 Dorky: if you take other peoples passive opinions are direct assault on yourself, who's problem is that ? Mar 23 08:51:32 the old line about being thought a fool and keeping one's mouth closed... Mar 23 08:51:55 * Chainfire concurs with Leeds Mar 23 08:52:08 i dont consider it a direct assault on myself, i consider it against anyone and everyone who wants to get work done and not reivent a bunch of wheels Mar 23 08:52:23 sure everyone should write their own zip code widget for every country Mar 23 08:52:41 thats a great example of a widget that should just work and be able to get what country it is etc Mar 23 08:52:49 or just use regex for the world ? Mar 23 08:52:51 and fwiw my app does NOT need to enter zip code but just an example Mar 23 08:53:17 right yes make the UX lame and shwo keyboard chars that arent part of a valid zip in that country Mar 23 08:53:21 it's a good example of a widget which has to be free text (and optional at that) to have the slightest chance to work globally Mar 23 08:53:23 i'm not sure what your point is Mar 23 08:53:29 * StingRay_ is learning a bit more regex, implemented a few things i my app for the more advanced users Mar 23 08:53:32 if they exist Mar 23 08:53:50 but sure regex and numeric ranges would be nice to have in android at the widget level Mar 23 08:54:00 ha, it does Mar 23 08:54:05 and so would greying out the keyboard keys of chars that you strip out Mar 23 08:54:19 doesn't work with i18n Mar 23 08:54:41 oh wait, i'm ignored Mar 23 08:54:46 i know this because he announced it Mar 23 08:54:55 JakeWharton: everyone who counts uses ASCII, US-style zip codes, and North American-style phone number layouts Mar 23 08:55:20 JakeWharton: really ? thats AMAZING!!! post the link Mar 23 08:55:23 :) Mar 23 08:55:43 so if you prompt for age, then the keyboard should show +- () ,. in the keyboard even if you strip it out right? Mar 23 08:55:52 and if you dont want that you should write your own keyboard right? every dev in the world Mar 23 08:56:05 if thats what you think then thats fine and we disagree thats all Mar 23 08:56:07 Dorky: I would have + - increment etc Mar 23 08:56:12 :) Mar 23 08:56:19 we actually have this very problem with Square's apps and wrote the impl ourselves because it is too hard of a problem to solve in a generic fashion. you have to tailor it to your use case and user base specifically Mar 23 08:56:24 or use a spinner Mar 23 08:56:24 StingRay_: thats great til the number goes from 1-9999 Mar 23 08:56:33 spinners are too slow for large number input Mar 23 08:56:37 and we wrote our own keyboards which disable letters and numbers on the fly Mar 23 08:56:43 up to about 30 nums is all a spinner is practical for Mar 23 08:56:58 but it's tailored for specific locales, regions, and postal code formats that are the ones we care about Mar 23 08:56:59 and..the spinner...doesnt even accelerate when it has large lists of numbers Mar 23 08:57:19 did you know you can switch the keyboard to number layout programmatically Mar 23 08:57:30 JakeWharton: is it you guys that did the nice point signature thing on android ? Mar 23 08:57:37 and article i read a while ago ? Mar 23 08:57:40 Chainfire: yes but it shows ()+. on the keyboard I've said that 1000 times already Mar 23 08:57:43 StingRay_: yes Mar 23 08:57:49 pretty neat Mar 23 08:58:00 Dorky> please show me exactly where you have said this a 1000 times Mar 23 08:58:02 and looked ace Mar 23 08:58:08 Chainfire: scroll up Mar 23 08:58:17 Chainfire: he's counting in binary Mar 23 08:58:39 actually more like log10 Mar 23 08:58:43 certainly not a 1000 times Mar 23 08:59:17 go on, tell me i can filter the input ! Mar 23 08:59:55 its too bad you ignore Jake because he wrote a solution to your problem a few minutes ago Mar 23 09:01:59 the fact that we can't disable keys programmatically is not surprising since the IME APIs were designed in something like 2006 probably around when the Sooner was the popular test hardware Mar 23 09:02:19 Sooner ? Mar 23 09:02:34 i'm sure I missed out, really Mar 23 09:02:34 Sooner! http://cdn.esphoneblog.com/wp-content/uploads/2012/05/DSC01200.jpg Mar 23 09:02:45 pre-1.0 Android Mar 23 09:02:59 can't really disable a hardware key, can you? Mar 23 09:03:16 some nails and a hammer go a long way Mar 23 09:04:10 but yeah you're probably right. Is this possible on other OS's though ? Mar 23 09:05:32 I think on iOS our devs did the same thing with a custom keyboard for zip entry but I'm not positive. Can't speak to WP8 or BB10. Mar 23 09:05:46 seems like your next OSS project is calling ;) Mar 23 09:06:43 who are you talking to? Mar 23 09:07:31 amazing Mar 23 09:07:41 short term memory-loss? Mar 23 09:08:30 *ignoring person participating in conversation... people talking but nobody responding... does not compute?!?* Mar 23 09:08:38 JakeWharton: i thought you guys weren't considering WP8? Things have changed :) Mar 23 09:08:46 :D Reading back I'm actually amazed you entertained that conversation as long as you did, tbh Mar 23 09:08:49 hello people Mar 23 09:09:03 g00s: I alluded to no such thing. Mar 23 09:09:07 probably considering he continued to miss the point intentionally all the way along Mar 23 09:09:08 ok , everybody behave Mar 23 09:09:10 can someone tell me how could I completely remove(disable) the dividers in ListView ? Mar 23 09:09:29 android:divider="@null" Mar 23 09:09:35 or is it listDivider Mar 23 09:09:35 I have set the height to 0dp and the color to transparent but it still takes up place Mar 23 09:09:48 JakeWharton: short term memory loss? Mar 23 09:09:54 did you set the visibility to gone? Mar 23 09:10:05 Dorky Mar 23 09:10:06 no Mar 23 09:10:11 how can I do that ? Mar 23 09:10:12 dividers aren't views, you can't "gone" them Mar 23 09:10:13 well try that Mar 23 09:10:50 psicho: first google result: http://stackoverflow.com/questions/1914477/how-to-remove-line-inbetween-two-listviews-in-android Mar 23 09:10:59 just download the source code and modify it til you're happy psicho Mar 23 09:11:47 JakeWharton, that is not working at all Mar 23 09:13:33 i have done this myself a few times and every single google result on the first page says just about the same thing. care to pastebin some of your code? Mar 23 09:13:54 yes sure, just give me a minute Mar 23 09:17:20 here is the xml stuff http://pastebin.com/avE4HT68 Mar 23 09:18:46 and here is the stuff from the adapter http://pastebin.com/ZhRGSUam Mar 23 09:19:59 so, a few things: ListView's can't really have a height of wrap_content because they have no idea how tall their content will be. They either have to be a specific height or match_parent Mar 23 09:20:47 you have different divider and dividerHeight configurations on your two ListViews Mar 23 09:20:51 which one is being used? Mar 23 09:21:48 you also have a logic error in your adapter, the final 'else' block will never be invoked because position will always be 0 or between [1, getCount()-1] Mar 23 09:22:33 the both listviews are shown to the user, I don't really care about the first listview because its just displays text, but the second one display an image (the second one should display a timeline) Mar 23 09:24:08 well they have different settings for divider and dividerHeight Mar 23 09:24:33 not sure if the second one would properly hide the dividers Mar 23 09:25:37 is there a predefined android icon for sound on/sound off? Mar 23 09:25:40 / music Mar 23 09:25:41 well i had the very same setting for the second one, but because It was not working i have tried to change it Mar 23 09:25:42 / audio Mar 23 09:28:29 How long does it take to load an Android emulator running 4.0? Mar 23 09:29:42 compared to how fast a cricket and react to vibrations, very long! Mar 23 09:29:44 depend on how long the piece of string is that you've used to wind it up first Mar 23 09:29:58 StingRay_: bowler or fielder? Mar 23 09:30:10 Any tips on how to get a quick loading Android 4.0 emulator up? Mar 23 09:30:12 Leeds: don't matter, beat you to sarcasm Mar 23 09:30:15 :) Mar 23 09:30:28 Ah. It finally loaded. It took 12 minutes. Mar 23 09:30:35 Konst: yes, use the x86 image and/or enable GPU acceleration Mar 23 09:30:40 also, don't develop on a netbook Mar 23 09:31:24 And deploy on a device c: Mar 23 09:31:40 Faster either way Mar 23 09:34:14 anyone here use dropbox api ? Mar 23 09:34:29 StingRay_: i read the other day about they sync stuff they added Mar 23 09:34:32 wanting to find full url to a share link Mar 23 09:34:42 api methods only give short Mar 23 09:34:49 that must be followed a few times Mar 23 09:34:52 sux Mar 23 09:39:15 how can I check if an ImageView has the image R.drawable.icon_volume_on set? Mar 23 09:40:05 in a test or in the app? Mar 23 09:46:18 since you're not answering and I'm going to bed: if it's in a test you should use Mockito and spy on your ImageView. Then you can do verify(imageView).setImageResource(R.drawable.icon_volume_on);. If you are in the actual application there's no especially good way. You actually can use Mockito on Dalvik now (as of 1.9.5) but I wouldn't recommend it. Instead, you can subclass ImageView to FancyImageView which overrid Mar 23 09:46:18 es and stores the latest int passed to setImageResource in a field and has a getter for it. Mar 23 09:46:21 adios Mar 23 09:46:46 laters Mar 23 11:25:16 http://pastebin.com/dTYLBxdG <-- the log always return me #ID: -1... have I misunderstood anything about SparseArray? Mar 23 11:28:47 What's the menu used in the facebook app called? The one where it slides out on a click or swipe? Trying to find some doc on it but can't really find much :s Mar 23 11:29:56 Timmaah21: try https://github.com/jfeinstein10/SlidingMenu Mar 23 11:30:25 do you guys make blogs for your apps? Mar 23 11:30:34 thanks elegos Mar 23 11:32:25 spobat: No, but a lot of Apps either post news on Twitter and/or G+/FB Mar 23 11:41:16 any idea on my problem? Mar 23 11:45:03 i have a problem my eclipse says that neither setNegativeButton nor setPositiveButton is in AlertDialog.Builder. how to correct it/get it in there? Mar 23 11:45:41 it doesn't show up in autocompletion and if i just type it, it says undefined Mar 23 11:46:44 the_gamer: stupid question: have you imported the right library? Mar 23 11:48:31 that slidingmenu pops up in my eclipse with errors even after doing the project->clean it tells you to :/ Mar 23 11:48:43 also don't have an "android library project" either Mar 23 11:49:55 elegos, yes, i just googled that it has to be defined as builder, not as alertbox Mar 23 11:49:58 thanks a lot Mar 23 11:50:18 the_gamer: ofc, AlertBox.Builder is an AlertBox subclass :) Mar 23 11:50:41 Timmaah21: have you imported the library? The example project gives me lots of errors, too Mar 23 11:51:07 Timmaah21: https://github.com/jfeinstein10/SlidingMenu/tree/master/library Mar 23 11:52:50 ive just imported the library this time, and i have no errors Mar 23 11:53:01 so i guess problem i had was i was importing all files from the .zip Mar 23 11:54:50 kakazza, okay Mar 23 12:08:46 http://pastebin.com/rcSTnn8V <-- any idea on why the SparseArray can't get the right object? Mar 23 12:12:16 http://sphotos-b.ak.fbcdn.net/hphotos-ak-ash3/555007_522972014408699_31257466_n.jpg Mar 23 12:27:01 sry for disturbing again but i need to change the android:layout_below for a TextView dynamically. how to do that? Mar 23 12:27:30 Hi, Android newbie and trying to get TimerTask and Handler to work. I have seen loads of examples where the TimerTask is a nested class, but I am trying to get mine working from a seperate class. Is this even possible? Mar 23 12:32:23 MarkG1234: I don't see why not. I assume you want something like MyTimerTask.java? Then just do that :) Mar 23 12:36:13 A little confused by it all. I am playing with the Daydream stuff, and I have a main regular Android Activity and DreamService Activity. They both kick off some background stuff, but both need to get the result and update the UI. Mar 23 12:38:24 so it seemed like a good plan to have a seperate class that either could instantiate, but I can't work out how to call the handler in the parent class, all the examples on the net use inner classes. Mar 23 13:40:32 what's the best practice for waiting a service to be fully started? Because I need to start it, wait it to start and eventually send a broadcast message which should be processed by the service itself Mar 23 14:10:31 Hey guys, Im trying to get my google maps api v2 loaded on my android phone and it keeps giving me "Couldn't get connection factory client" and I see a blank grey grid Mar 23 14:11:26 I've looked it up, and a lot of the resources say use an MD5 key, but the API console only accepts a SHA1 key Mar 23 14:11:55 im using the debug key by the way, not the one for publishing Mar 23 14:15:40 I have two services and from time to time I need to have some communcation between them. what should I use? broadcasting? Mar 23 14:18:14 mystiiq: it depends mainly if you can transport data via the intent's extra bundle Mar 23 14:18:29 if you can, broadcasting is IMHO the simpliest way Mar 23 14:18:54 elegos: I believe so. Mar 23 14:20:58 btw I use a singleton to pass data through all the app Mar 23 14:21:07 and SQLite database for persistent data Mar 23 14:21:22 using broadcasts to start methods Mar 23 14:32:34 I setup my merchant account details for google yesterday but it says it could take 5 working days to get setup. Does that mean I can't put my app up for sale until then? Or will any funds just be paid when the account is approved? Mar 23 14:45:44 whats the prefered method of saving game data/percentage shared prefs or sql? Mar 23 14:49:15 Silly question time: I have a menu that should get populated with values from a listview. Do I need to define a listfragment/activity elsewhere? Or how do I go about doing this? Mar 23 14:52:23 if I start threads where run() method includes "while(true) { serverSocket.accept(); ... }", how can I stop those threads gracefully and close all sockets? Mar 23 14:56:26 well I could use asynctask as well, but there is still a while loop where I listen for client sockets Mar 23 14:56:37 Ash__: depends more on game than OS Mar 23 14:56:48 ask yourself what works better for you Mar 23 15:01:45 which is faster and more stable? Mar 23 15:01:55 im using shared prefs at the moment Mar 23 15:02:31 http://pastebin.com/m8txJrw3 my listview is empty when I view my app :(( Mar 23 15:02:39 anyone have any idea why? ;o Mar 23 15:06:19 mystiiq according to the first first hit on Google on the subject, call close() from another thread to interrupt accept() Mar 23 15:06:35 for any threads stuck on read, "interrupt" the thread Mar 23 15:07:30 AsyncTasks are for very short lived tasks only. Using a thread would be more correct in this instance Mar 23 15:16:22 To rephrase my silly question earlier, how do I add a listview to a sliding menu as the sliding menu needs to have a separate layout than the activity layout? Mar 23 15:17:46 and ive figured it out.. had calls wrong way round, nvm! Mar 23 15:23:08 how can I make a TextView's scroll smooth like a ListView? As of now, when I stop scrolling, the scroll will stop immediately Mar 23 15:31:31 * xviv sigh Mar 23 15:32:31 is cocos2D only for iphone or does it also run on android? Mar 23 15:33:21 Hello all, anyone know about "Binary XML file line #5, error inflating class fragment" Mar 23 15:36:52 lol think ive just figured it out meh Mar 23 15:41:39 nopee!! Mar 23 15:41:59 how can I make a text view scroll smooth? Actually when I stop scrolling, the scroll stops instantly Mar 23 15:42:33 testNick: have you tried cleaning the project? Mar 23 15:44:09 is cocos2D only for iphone or does it also run on android? Mar 23 15:48:06 hmm my productList is empty hmm Mar 23 15:57:20 Hello everybody. I want do develop for android for a long time and today I got the time to start with developing. I' familar with developing java applications. But I'm new to the android framework. I allready read beginners guide at android.com But now I'm trying to pick a contact from the contact list or more exactly I want to get a phone number. Im sucessfully pick up contact via the contact app. But I don't know how to manage the dat Mar 23 15:57:21 a what I getting back. Here is my pastebin: http://pastebin.com/YNZsNYDS Mar 23 15:59:41 OMG Mar 23 15:59:44 IT WORKKSSSS Mar 23 16:03:04 I want to make tabs in my app, but they have to be both beautiful and compatible with 2.2 Mar 23 16:04:19 I found that the in actionbar tabs with fragments aren't compatible with 2.w Mar 23 16:04:21 2 Mar 23 16:04:27 Is that true? Mar 23 16:07:54 that sounds liek itll be annoying! Mar 23 16:12:06 Jell-E www.actionbarsherlock.com www.viewpagerindicator.com Mar 23 16:12:18 cc JakeWharton Mar 23 16:13:31 Sounds great Mar 23 16:13:38 Thank you Mar 23 16:15:38 why isn't it possible to dynamically set an emptyview to a listview? Mar 23 16:15:48 you can call setEmptyView() once and all subsequent calls are ignored :/ Mar 23 16:16:56 how can I get a Drawable's size in bits or bytes? Mar 23 16:17:08 or a HashMap one Mar 23 16:22:06 why? Mar 23 16:23:47 is it possible to put GCMBaseIntentService class anywhere else than in the root package? I tried it before and GCM did not work properly any more. Mar 23 16:24:00 mystiiq, you'd have to change your manifest Mar 23 16:24:39 like im assuming you have Mar 23 16:24:52 if you changed it to com.my.package.whatever.GCMIntentService, it should work Mar 23 16:24:52 canadiancow: I did, but still it did not work. I googled and found out that they suggest it putting it in the root package Mar 23 16:25:17 It must be a subclass of com.google.android.gcm.GCMBaseIntentService, must contain a public constructor, and should be named my_app_package.GCMIntentService (unless you use a subclass of GCMBroadcastReceiver that overrides the method used to name the service). Mar 23 16:25:25 maybe you can override that method Mar 23 16:32:38 Arghh, android is annoying the **** out of me. Mar 23 16:33:17 "ActivityManager: Warning: Activity not started, its current task has been brought to the front". Didn't saw that before, but spend about an hour wondering why changing code doesn't work. Mar 23 16:33:38 How do I close the old activity? Mar 23 16:34:17 Or make sure a new one is started? Mar 23 16:39:13 well if you're changing the code, i can guarantee it's a new one Mar 23 16:39:21 it soudns more like you're not installing the new apk to the device Mar 23 16:39:26 does anyone have a good idea of why I'm getting the "Binary XML file line #2: Error inflating class fragment" error in my maps app? Mar 23 16:41:16 ahh testNick I had that last night Mar 23 16:41:27 umm Mar 23 16:41:28 oh really? Mar 23 16:41:36 something is wrong in your xml i think Mar 23 16:41:51 ok Mar 23 16:41:57 it might be to do withh ermm Mar 23 16:42:04 trying to remember haha Mar 23 16:42:39 testNick: do you have android:name on your fragment Mar 23 16:43:07 yup, android:name="com.google.android.gms.maps.MapFragment" Mar 23 16:43:20 its what's in the google android maps api document Mar 23 16:44:35 I think it has to be the path to the class thats using the fragment or atleast thats what i have Mar 23 16:44:35 how did you fix your error? Mar 23 16:44:47 ok Mar 23 16:45:27 can you show me what you put in there? Mar 23 16:46:18 android:name="com.example.peeppeek.FriendTabs" Mar 23 16:46:35 FriendTabs is the class thats using the xml file Mar 23 16:48:04 alright, let me try Mar 23 16:51:55 nah, same error Mar 23 16:52:03 http://stackoverflow.com/questions/6424853/error-inflating-class-fragment Mar 23 16:52:14 i also checked out that! Mar 23 16:57:42 yea i checked that out too earlier, just tried again, nope. Its a Map activity so its a little different Mar 23 16:59:22 Hi Mar 23 17:01:08 I am trying to make an application that has tabs using Fragments, and I want to be able to have the fragment activities also open new activities but want to preserve the tabs Mar 23 17:05:06 Does anyone recommend (against) using the framework discussed on http://www.kilobolt.com/day-6-the-android-game-framework-part-ii.html for creating games? Mar 23 17:05:33 Smubeht: if you mean preserving the selected tab, use onSaveInstanceState to save out the position and read it from the savedInstanceState in onCreate() if it is there. Mar 23 17:09:03 What seems to happen is I go from a tabbed layout(3 tabs on top and a frame for activities) to a new activity which is just the new activity and no top tabs. Mar 23 17:09:45 I call savedInstancedState in the onCreate Mar 23 17:10:23 Smubeht: that is a bug in your code. Mar 23 17:10:45 The problem I'm having with it right now, is that they convert MotionEvent's to TouchEvent's, but I need MotionEvent's to build a GestureDetector, but that one works with MotionEvent's and I can't have them. Mar 23 17:12:44 theres a bug where FragmentPagerAdapter doesn’t respond to notifyDataSetChanged() . marvelous Mar 23 17:16:03 Hey Mar 23 17:19:12 hi Mar 23 17:19:23 I made an image viewer that pulls images off a directory, but i'd like to be able to click on any image to make it fit the tablet Mar 23 17:19:24 Hey Mar 23 17:21:59 How can i check if the savedinstancestate is being set as the fragment that i want changed and not the whole screen? Mar 23 17:24:20 id' like to have that image snap to the size of the tablet Mar 23 17:24:28 and have the back button take you back to the gallery Mar 23 17:29:25 anyone? Mar 23 17:35:29 Helsinkiii: context has multiple drawing functions for rescaling is that's what you are asking Mar 23 17:36:23 I'm not familiar with gotchas surrounding ACTION_SEND - style binary data from other apps, sent to my app's activity. One question was around permissions -- am I correct in thinking that I need to copy any provided data locally before uploading it in a background service? [because, grant_read_uri_permission is potentially active only while the target activity is alive?] Mar 23 17:43:06 is there a specific way i need to call the activity other than startActivity(intent); if i want to pass along the fragment that the current class is using? Mar 23 17:43:36 or do i need to do it in the called class when i do the setContentView(xml activity); Mar 23 17:43:44 Somelauw, actually all I want to do is pass the bitmap to new activity which will then display it as large as it can Mar 23 17:44:07 Somelauw, but i don't know how to pass the bitmap over a bundle Mar 23 17:51:23 What does Emulator] ##KBD: Full queue, lose event in stderr mean? Mar 23 17:51:47 especially when my emulator is crashing? Mar 23 17:58:00 stupid logcat Mar 23 18:10:03 fwiw -- dunno what you can do about it other than recreate device, maybe. That error is from deep within the bowels of the code, something is probably hung within the emulator. There's an internal buffer that queues various hardware events; and that error is printed when that ring buffer overflows. https://github.com/cgjones/android-external-qemu/blob/master/hw/goldfish_events_device.c#L105 Mar 23 18:18:04 I'm in need of someone who speaks technical Spanish to translate a technical app from English to Spanish. Mar 23 18:22:57 this is how I feel right now, adding resources to my project Mar 23 18:22:58 http://i.imgur.com/KhywoxG.png Mar 23 18:26:01 Google Glass on sell to developers..freaking $1500 Mar 23 18:27:50 what could possibly be in there that makes it so expensive? Mar 23 18:28:09 i thought the idea was that they didn't want to give it out to joe public Mar 23 18:28:30 iirc they were still making people write essays on why they wanted one Mar 23 18:29:00 They say it's a developer's "kit" Mar 23 18:29:32 They go on sale to public nexzt year Mar 23 18:29:55 i think it's likely that it's just not ready for consumers, and they dont want consumers buying this, so they price it higher to discourage it Mar 23 18:30:11 Hi! Does anybody know if it is possible to export a cinema4d model to opengl es for android (so that I can manipulate it in there)? Mar 23 18:30:17 imagine the support nightmare of selling an unfinished product Mar 23 18:30:55 are you kidding? spamming ads to wearers of these things all day long? Mar 23 18:32:34 i'm more concerned about the experience of the people around the wearers of Glass Mar 23 18:32:53 I recently saw someone using it. One thing that's a bit goofy socially, is that they don't look you in the face when they look at the display, because it's off to the top right. Also, I wish it were symmetrical (at least, visually.) Mar 23 18:33:21 it's a bit like they are slyly looking elsewhere, almost. Perhaps it'll get less awkward as more people use it. Mar 23 18:33:40 the thing would probably be smaller if the display was put diecrly onto your retna Mar 23 18:34:05 screw that , just tap the optic nerve! Mar 23 18:36:30 i am sure that is 20-30 years away Mar 23 18:37:45 I've upload my app with no problems, but should I be using the google play application licensing? Mar 23 18:40:08 regarding price of Google Glass - it's not yet a normal serial production model, so you probably can't depend on mass-production cheapness Mar 23 18:40:25 As an ancient ham, I'm still waiting for the haptic android ring so I can get/send morse text messages discreetly. Mar 23 18:41:38 Hey all, I'm just getting started with android dev and following the first tutorial on dev.android.com... on step 6@http://developer.android.com/training/basics/firstapp/creating-project.html but I'm not seeing "BlankActivity" in the list, any ideas why this may be? Mar 23 18:46:33 my application connects a mysql database...up to this point ive been making new connections to the database every time I want to transfer information..how can I have a connection maintained on login so i dont have to keep connecting everytime I want to do something? Mar 23 18:47:06 MajorZero: how are you connecting ? Mar 23 18:47:40 with JSON Mar 23 18:47:50 the room breathes a huge sigh of relief Mar 23 18:47:59 lmao Mar 23 18:48:01 lol Mar 23 18:48:03 JSON ? Mar 23 18:48:09 we thought you were going to say something like JDBC ;) Mar 23 18:48:28 what 3 letters can do ! Mar 23 18:48:50 have many of you found getting into android dev to be a lucrative endeavor? Mar 23 18:49:11 MajorZero: how are you connecting with json ? you mean your connecting http/php ? Mar 23 18:49:20 yeah StingRay_ i parse JSON and connect to my database by running an AsyncTask and connecting using HttpClient/Connection classes, then parsing information with JSON Mar 23 18:49:45 im connecting http/php yes Mar 23 18:50:26 up to this point i connect to a php script on a web address, and then the php script itself creates a new connection...id assume i'd have to probably change my php scripts to maintain the connection? Mar 23 18:54:03 sorry I disconnected, did you say anything else after my last message? Mar 23 18:54:10 no Mar 23 18:57:58 can some1 help me with a html parse / maybe regex dilema ? I'm wanting the url to the image displayed http://db.tt/EBpJU8nd <----- So my options are parse the whole thing, which seems heavy for what I want, or would a regex find it ? I read on SO that everyone says don't use regex with x/html ? Mar 23 18:58:31 damn Mar 23 18:58:40 ow ow Mar 23 18:59:04 i can tell why you'd want that image's url to be displayed Mar 23 18:59:25 well no Mar 23 18:59:28 any image Mar 23 18:59:29 :) Mar 23 18:59:30 haha Mar 23 18:59:36 yes, but for this example... THAT image Mar 23 18:59:42 just dam dropbox short url share stuff Mar 23 18:59:54 but thought to maybe have a chance at more help Mar 23 19:00:01 would make it a nice image :) Mar 23 19:00:16 haha Mar 23 19:00:24 I'm creating an alert in my activity's method: "new AlertDialog.Builder(...).setTitle(...).setPositiveButton(...,...).show();" how can I use findViewById() method in onClick() method in order to extract values from textfields. Mar 23 19:02:05 well the long url for that image is https://www.dropbox.com/s/kt82vzxinotpj6f/20130323-185404-cl13ofwsuugs0s8037b7u9zszomz6m91.jpg Mar 23 19:04:08 I'm just getting started with android dev... i downloaded the ADT zip from the dev.android.com website. When I start eclipse it says it requires SDK tools version 21 or higher but the package manager shows its already installed? Mar 23 19:04:09 ik theres a php api for expanding url's if thats what u were aiming for Mar 23 19:04:37 Oh I see, I think i had an old version installed from a while back Mar 23 19:05:46 Is there anyone who is good with using fragments for making a tabbed navigation that can spend some time helping me figure a few issues I am having? Mar 23 19:06:57 MajorZero: no tis the image, the url loads the dropbox pres Mar 23 19:07:29 so what I'm actually wanting is https://photos-6.dropbox.com/t/0/AABEhQCj7w0BsCtUL2tz7lOzIng8Sss1sSDb_OgUt_rJfg/12/80096154/jpeg/2048x1536/3/1364068800/0/2/20130323-185404-cl13ofwsuugs0s8037b7u9zszomz6m91.jpg/Z2eJUfSJbTZb0XuKn2DQOL5H-FPFkLpGGpfceQBnq4s Mar 23 19:07:29 oh ok so just the actual image file, not including drop box Mar 23 19:07:54 haha Mar 23 19:08:03 wanting that in more ways than one! Mar 23 19:08:26 but yeah, the full-size path to just the image Mar 23 19:08:29 haha. Let me think Mar 23 19:08:59 looking at jsoup but it take quite a bit to assemble a doc Mar 23 19:09:23 and then at that point I'm lost as to how to navigate what seems to be a major complex object Mar 23 19:10:11 so was also thinking about regex, but don't know enough yet to be able to do it + SO opinions say don't do it that way Mar 23 19:10:26 so a bit, in flux about what to do Mar 23 19:11:33 MajorZero: I would "think" you would need to change your php and keep the http object live to be able to do what you want, maybe in a service perhaps Mar 23 19:14:28 StingRay_: have you tried reading the contents of the webpage using an InputStream and scanning for the url? Mar 23 19:15:00 last resort that Mar 23 19:19:02 you'll almost certainly be in a TOS violation if you scrape the webpage, for dropbox, to grab the URL. also, typically that url is a short-duration url... Mar 23 19:19:23 there's a reason they sandbox that sort of content :-) Mar 23 19:19:37 valid till 2013 Mar 23 19:19:43 as in the shortlink Mar 23 19:19:54 and I doubt the re-direct/contents would change Mar 23 19:20:16 do you have access to the underlying dropbox api? I think they have somethnig at least for the "short-lived" embed links Mar 23 19:20:28 no they don't and yes I do Mar 23 19:20:32 :( Mar 23 19:20:59 hm. I had to do just that, some time back; and gave up because they really don't want you to produce direct download links Mar 23 19:21:19 have you tried any regex at all already StingRay_ or you've just been debating it? Mar 23 19:21:41 MajorZero: debating both it's use and my ability/skillz to do it :) Mar 23 19:21:46 fwiw -- if it's feasible for your app, I'm much happier with google drive now. It's easier integration on android, and they've just added direct download links without issues. Mar 23 19:22:08 kbs: really ? Mar 23 19:22:12 yep. Mar 23 19:22:20 <-- happy camper with google drive on android Mar 23 19:22:23 I must of read some old stuff Mar 23 19:22:24 how much space do you get on google drive? Mar 23 19:22:33 cause I read it was horrendous Mar 23 19:22:35 for free Mar 23 19:23:05 BtbN: it's shared across their properties, basically -- 5G. https://support.google.com/drive/bin/answer.py?hl=en&answer=2736257 Mar 23 19:23:20 omg i totally disregarded that Mar 23 19:23:28 hmm Mar 23 19:23:47 i currently have 40G available in my dropbox, and i'm using nearly 30G of it. So Gdrive is still not an option... Mar 23 19:23:49 kbs hard api ? cause dropbox was like SUPER easy Mar 23 19:24:50 StingRay_: it's vastly improved over the last 6 months; but the client libraries provided are kinda clumsy. The best part is the account integration on android -- that part is fairly painless. The rest of the API (client library-wise) is not so great. But the network protocol itself (if that's the way you roll it) is not too bad. Mar 23 19:25:35 there any solid tutorials on setup ? Mar 23 19:25:47 I'm currently using the client libraries -- it's a bit of a chore; but quite all right. You can of course, just make direct OAuth-type calls if you prefer, which is what I think I did for dropbox. Mar 23 19:26:11 cause A ) I'm not really a programmer, and B ) I'm not that bright oh and C ) I'm still partially asleep Mar 23 19:26:47 StingRay_: oh, okay :-) well; then perhaps it's not mature enough for (A) at least. Mar 23 19:27:00 but https://developers.google.com/drive/quickstart-android is what I used, and branched out from there. Mar 23 19:27:17 does gdrive api give you private app space like dp does ? Mar 23 19:28:09 StingRay_: similar, but not exactly like it. Drive uses (basically) labels, rather than folders; so it's not an exact match Mar 23 19:28:34 when you request permission, you can ask to only see/manage files created by your app -- which turns out to work basically in the same functional manner like private app space Mar 23 19:29:54 as I said -- the most functional part is that account integration more or less comes for free on android. The rest of it is adequate enough; but does assume some programming background. Mar 23 19:30:19 and best of all (for my app anyway) drive offers straightforward web-link sharing, unlike dropbox whic wants to sandbox it Mar 23 19:34:01 I had the good luck to join a recent Drive hackathon; and got to talk with some of the devs. Of course, given the Google Reader shutdown fiasco you have to take some of this with a grain of salt. But they've added some pretty nice features to the service over the last year, API-wise. So, it's still being worked on actively for now. Mar 23 19:34:41 i dont understand why people think that becuase reader shut down, everything else will Mar 23 19:35:02 I don't think that's hte concern (for me at least) as much as the uncertainity Mar 23 19:35:15 reader had a tiny userbase Mar 23 19:35:31 currents, which is a competing product from google, had liek 10x the users according to androidpolice Mar 23 19:36:14 canadiancow: it's because the reader userbase was a) composed of some of the most vocal people on internet b) It's unclear how the "use it only for sync" userbase was counted Mar 23 19:36:16 perhaps the reader-base was skewed towards developers, I dunno. As one myself, I can certainly tell you it makes me much more tentative towards adding google services to any code I develop Mar 23 19:36:39 hey guys, why do i get this lint error: Should explicitly set android:allowBackup to true or false (it's true by default, and that can have some security implications for the application's data) in my manifest? Also, why do I only get it in one application and not another? Mar 23 19:36:40 Reader had quite long life for *any* online product Mar 23 19:37:16 coco89 set it to true Mar 23 19:38:58 canadiancow, will do, but why do i only get this lint error in this project? :S Mar 23 19:39:10 are you running lint on the other project? Mar 23 19:39:36 canadiancow, I dunno Mar 23 19:39:36 lol Mar 23 19:39:58 canadiancow, is this allowBackup:true a common thing? Mar 23 19:40:07 ="true" rather Mar 23 19:40:09 well it's implicitly true Mar 23 19:40:15 I see Mar 23 19:40:21 if you want the warning to go away, you just need to explicitly set it Mar 23 19:40:24 but why do I have to set it Mar 23 19:40:27 oh Mar 23 19:40:27 i can tell you though, if your app sets it to false, you will piss me off Mar 23 19:40:40 heh why =p Mar 23 19:40:49 it wasn't set to either Mar 23 19:40:50 becuase i "regularly" switch devices Mar 23 19:40:53 and i do an adb backup/restore Mar 23 19:40:58 i see Mar 23 19:41:06 i will read up on it later cos i have no idea what it does Mar 23 19:41:07 and if your app's data doesn't make it through that process, i'll probably just uninstall it Mar 23 19:42:00 Is there a way to have an onclick in preferences show a dialog? Right now it forces a new activity to launch and then shows the dialog. I was hoping to be able to just show the dialog on top of my preferences activity. Any ideas? Mar 23 19:42:09 ? Mar 23 19:42:15 i dont understand how you are having problems with that Mar 23 19:42:23 coco89: basically -- if your app stores passwords/keys locally, anyone who can backup the phone now can see those passwords/keys etc. You can decide between pissing off the canadiancows, or reducing the risk of password leakage Mar 23 19:42:25 it works the same way everywhere Mar 23 19:42:41 kbs, if someone can run adb backup on your device, you're already screwed Mar 23 19:43:10 canadiancow: ah, interesting. Mar 23 19:43:22 that means they have physical access and the device is unlocked Mar 23 19:43:44 Hello, silly question: How do you animate a list element size to fit the changed textView height? Mar 23 19:43:59 kbs, ah I see Mar 23 19:44:34 Heh. Ya, nevermind. Silly question. Mar 23 19:44:43 :) Mar 23 19:44:44 thanks guys Mar 23 19:48:49 Is there something I'm doing wrong? My ImageGetter loads the image in the background giving a null drawable, then it forces the reload of the view (btw myView.invalidate() doesn't work). It works OK when it uses the AsyncImageGetter (i.e. downloading the image from the net), but the images will be blank when I load them via FileAsyncImageGetter (i.e. reading them from the filesystem)... Mar 23 19:48:53 FileAsyncImageGetter Mar 23 19:49:01 java class: http://pastebin.com/1sPzPRP3 Mar 23 19:52:08 Silly as it is, my dialog won't show up on top of my preferences. the xml has an onclick="foo" and then in preferences.java there's void foo(), but it doesn't launch. Mar 23 19:53:24 that never worked for me either Mar 23 19:53:28 fuck i hate t-mobile reps Mar 23 19:53:35 you have to do it programmatically Mar 23 19:53:40 "i dont know if your phoen can support roaming, like blackberry" Mar 23 19:54:14 elegos: I tried launching it from another activity, but I don't want the whole activity to launch. just the popup. Mar 23 19:55:56 set an onclicklistener and check the preference position, then substitute the preference fragment or whatever Mar 23 19:56:35 hmm. Ok, I'll give that a try. Thanks! Mar 23 19:57:29 Blackberry? Isn't that a pager thingy? Mar 23 19:58:04 elegos: just out of curiosity -- the onPostExecute() of your fileasyncgetter does fire, etc right? I also notice that you never explictly close the output that's saved after your network loader finishes; so I might look to see if the file is actually saved correctly. Mar 23 19:58:43 elegos: also; you might want to look out for orientation/activity life-cycle changes in your asynctask -- it doesn't seem quite right to me Mar 23 19:58:55 (unrelated to the other issue, of course...) Mar 23 19:59:30 kbs: the onPostExecute does fire as I tried logging the bounds (I firstly thought it was a bounds problems) Mar 23 19:59:49 kbs: I'm gonna close the output files of the net task and try again Mar 23 20:00:10 kbs: as of the orientation change and AsyncTask lifecycle, may you please explain it better? Mar 23 20:01:15 elegos: so as your asynctask contains a reference to the contained activity (both because it's not a static inner class, and also via the container View reference) -- if the user changes orientation, or otherwise navigates away -- while your async task is still running, those references become invalid. Mar 23 20:02:22 kbs: ugh! that's horrible! how can I avoid it? btw the ImageGetter class is nested in the ViewPosts one, which defines the container TextView Mar 23 20:03:12 elegos: :-) so, there's no easy answer; though some here disagree. In short, you'll need to explicitly attach/detach your context to the asynctask from (say) the onPause() and onResume() of the main activity. Mar 23 20:04:02 kbs: may I use a singleton to get / update this variable? Mar 23 20:05:07 elegos: not sure exactly what you mean; but if that that avoids keeping the activity instance (implicitly or explicitly) in the asynctask, it should be good. Mar 23 20:05:30 (eg: can't have an asynctask be anything other than a static inner class, or a separate class.) Mar 23 20:06:32 I use a singleton to comunicate variables through the app activities and services Mar 23 20:07:00 I may use it to save the activity's context, too Mar 23 20:07:24 elegos: oh, I see. Well -- as long as it's the application context (rather than the activity context... :) Mar 23 20:08:02 btw, closing the resource doesn't fix my "missing images" problem Mar 23 20:08:12 elegos: oh well. :-) Mar 23 20:08:35 IF something appears, it appears only the first image of the set Mar 23 20:08:47 while using the downloading process, all images are shown Mar 23 20:09:00 anyone know of a good tutorial using fragment activities for tabs where a tab can link to new activities? Mar 23 20:09:42 Smubeht: what do you mean with "a tab can link to new activities"? Are you talking about the ActionBar elements? Mar 23 20:11:58 what's the usual size for a image logo in the front page for mobile apps? how would you style it? say width is 320px then how much height is commonly used? for example: http://oi45.tinypic.com/e6dr45.jpg Mar 23 20:13:50 I dont think they are actionbars Mar 23 20:14:01 http://developer.android.com/design/patterns/actionbar.html Mar 23 20:14:25 if you look under LayoutConsiderations what I am talking about is #2 Mar 23 20:18:13 Smubeht: well, you should just create an OnClick listener for the top bar elements Mar 23 20:20:12 i have the structure laid out to have the tabs, using fragments, but the problem is when i want the main body to change to a new activity but keep the tab layout what ends up happening is the tabs go away and it opens up the new activity to take the whole screen. Mar 23 20:26:40 you should consider using fragments, if you want to change the body only and not the entire structure Mar 23 20:28:41 btw if you use the already-built structure, you should just edit the adapter Mar 23 20:34:15 hi Mar 23 20:34:28 public void rightPressed() { keys.get(keys.put(Keys.RIGHT, true)); } Mar 23 20:34:35 found this in some tut I'm following Mar 23 20:34:41 and it looks weird to me Mar 23 20:34:45 keys is a hashmap Mar 23 20:34:55 why get/put? get value is never used Mar 23 20:35:21 is it some kind of magic I don't know? or just some minor author's fail? Mar 23 20:36:37 I'm surprised it even compiles -- is the keys map an untyped hashmap? Mar 23 20:39:21 elegos: do you know how to edit the adapter? Mar 23 20:39:26 that seems silly Mar 23 20:40:36 i should say that the main tabs work Mar 23 20:40:39 i have 3 tabs Mar 23 20:40:49 if i press one, it opens the right body Mar 23 20:41:26 but the bodies in some of the activities need to call a different activity, ie: a search activity that has a list, if u click the list it goes to a single view of the item clicked Mar 23 20:41:51 Smubeht: you have to "convert" your activities into fragments Mar 23 20:42:03 they're more or less the same, but they run inside a common activity Mar 23 20:42:37 the adapter has a method, something like public Fragment getItem(int position) Mar 23 20:43:43 you have to build your Fragment there, depending on what you want to do (i.e. attach the correct layout, initialise the correct variables etc) Mar 23 20:44:14 basically you create some classes which extend Fragment, then you instantiate them in the getter of the adapter Mar 23 20:44:57 i did that for the 3 main tabs Mar 23 20:46:01 but lets say im in tab1, i no longer have the adapter right? because the adapter is in the main fragmentactivity which controls the tabs, tab1s class only has control on the code for the body of tab1, at least from my understanding. Mar 23 20:48:46 Smubeht: the adapter is persistant as long as you're in the same activity Mar 23 20:49:21 you have to program all the tabs when you create the fragment activity, not within a particular one Mar 23 20:49:47 but the activity i am trying to go to is not its own tab Mar 23 20:49:51 its a sub activity Mar 23 20:50:06 like lets say there is tab1, tab2, tab3 and a body below Mar 23 20:50:34 tab1 there is a button that i want to go to a tab1a which may have a button i want to make it go to tab1b etc Mar 23 20:50:59 you have to get the fragment manager and substitute the fragment itself Mar 23 20:51:12 can u pass intents along through a fragment manager? Mar 23 20:51:46 you can put extras building a fragment intent, so yes Mar 23 20:52:04 if you need to pass more complex data, you may use a singleton Mar 23 20:52:24 ok thank you, i will try that out and see what i get Mar 23 20:52:48 :) Mar 23 21:00:50 kbs: it's typed Mar 23 21:01:08 static Map keys = new HashMap(); Mar 23 21:01:54 Keys and WorldController.Keys are the same, such a weird style Mar 23 21:03:56 razieliyo: yeah, looks weird. I'm still surprised it compiles -- the .put(...) returns a boolean, which of course won't work for the .get() -- beats me Mar 23 21:06:48 61% of my users are on ics+ and 24% are on GB. i guess i should do something to make the ics ux better :) Mar 23 21:07:27 i'm surprised i haven't gotten any bad reviews about looking like a froyo app Mar 23 21:08:13 g00s: what's your app? curious Mar 23 21:12:54 i generally put all of that off because at the last i/o, i thought adam powell said they were going to come out with an actionbar "soon". but i thought maybe there would be other cool things also … this time, my waiting / procrastination wasn't such a good strategy Mar 23 21:13:34 commits stopped happening to appcompat about 3 mos ago Mar 23 21:24:08 For some reason I've kept my minimum API requirements to version 4 for a long time. When checking my statistics now, I see that 99%+ of my users are on API 13+. What are the disadvantages of just setting a new minimum requirement for a new version of the app? Mar 23 21:24:28 Will it simply be that the existing API 4 users will not be able to see / use the upgrade, but be kept to the current version? Mar 23 21:59:38 skfax yes Mar 23 21:59:55 1% ? not really worth it Mar 23 22:00:01 Guess I'll be awarding myself with a saturday treat then! Mar 23 22:00:06 get a new phone you hippies Mar 23 22:00:15 It's 0.5% > < Mar 23 22:02:53 Kinda sad that 3.5% of the users are stuck on Honeycomb though Mar 23 22:03:11 HC kinda never happened ;) Mar 23 22:04:11 yeah, but they are probably stuck on models which will never be upgraded Mar 23 22:04:16 waste of good plastic :/ Mar 23 22:05:50 i published an app on dec 11, which supported 2.1+ (it now requires 2.2+) Mar 23 22:06:02 canadiancow: you're my hero Mar 23 22:06:04 :) Mar 23 22:06:04 right now, 51.60% are on 4.1 Mar 23 22:06:14 21.03% are 4.0.3-4.0.4 Mar 23 22:06:17 12.84% are 4.2 Mar 23 22:06:35 i have about 1% on honeycomb Mar 23 22:06:46 my app is heavily targeted to canada though Mar 23 22:06:48 that 1% is pfn Mar 23 22:06:58 but all that tells me is canadians seem to have newer devices Mar 23 22:07:02 12.28% are 2.3.3-2.3.7 Mar 23 22:07:06 1.23% are 2.2 Mar 23 22:07:15 i would have no issue dropping 2.2 Mar 23 22:07:20 and probably not even 2.3 Mar 23 22:07:25 but if i dropped 2.3, i'd make the min 4.0 Mar 23 22:08:13 canadiancow: using any cool libraries? Mar 23 22:08:23 actionbarsherlock, viewpagerindicator Mar 23 22:08:24 beside the usual (abs) Mar 23 22:08:39 another app of mine has google play services Mar 23 22:08:59 but no Mar 23 22:09:06 i find im doing much elss of my own stuff with the current job Mar 23 22:09:20 becuase i no longer think "yay im home, now i can work on something i actually like" Mar 23 22:09:52 g00s, i lost my container of sim cards :( Mar 23 22:09:57 and im leaving hte country today :( Mar 23 22:10:09 canadiancow: does the newest gmail (i can't tell, my gmail is old) use that side sliding menu? Mar 23 22:10:14 what do you guys think about that ? Mar 23 22:10:30 it does not Mar 23 22:10:34 p.s. buy a nexus 4 Mar 23 22:10:47 hehe Mar 23 22:10:59 ive used it in a couple apps now Mar 23 22:11:04 i think there are good implementations, and bad ones Mar 23 22:11:10 i think d.android.com/design talks about it a bit Mar 23 22:12:40 hm, i didn't see it in the building blocks last time i checked Mar 23 22:13:50 i would like to see google add more widgets (ui widget in the general sense) to the support library Mar 23 22:14:34 the sliding menu drawer would be nice, but i'd still like to see what their UX people feel is a good use for it Mar 23 22:14:34 im actually pretty impressed iwth the support lib Mar 23 22:14:40 it has a few views Mar 23 22:14:44 yeah, its a lifesaver Mar 23 22:14:59 isn't it a bit late to buy a nexus 4 Mar 23 22:15:14 http://developer.android.com/design/patterns/actionbar.html Mar 23 22:15:16 Drawers heading Mar 23 22:15:22 stork, define "late" Mar 23 22:15:45 if you assume a new device will come out at the same time this year, that's still 8 months away Mar 23 22:15:48 one might speculate we're half way between nexus device release cycles Mar 23 22:16:00 okay, 1/3rd of the way :3 Mar 23 22:16:03 not everyone cares if they have the latest and greatest Mar 23 22:16:04 canadiancow: oh wow, thanks for pointing that out. i didn't think to look under the actionbar. i thought it would be a discrete building block Mar 23 22:16:23 i mean g00s is on 2.x or something Mar 23 22:16:30 \o/ Mar 23 22:16:32 :P Mar 23 22:16:41 p_l was my fello 2.2 user, but even he upgraded, its just me now Mar 23 22:16:46 *fellow Mar 23 22:17:41 well, for my little project i'm working on now, i'm just using the x86 image and thats fine Mar 23 22:19:27 "However, because many users will rely on Up navigation to open a drawer, it is only suitable for use at the topmost level of your app's hierarchy.", ok, this is the kind of guideline i find useful Mar 23 22:20:19 is the drawer in any version of android though? i know there are at least 2 open source libraries that implement it Mar 23 22:20:55 no Mar 23 22:21:00 its used in g+ and youtube Mar 23 22:21:09 but those are very different implementation Mar 23 22:22:22 anyway, i should finish packing. brb Mar 23 22:22:57 its weird they would mention that if its not even in android though Mar 23 22:26:02 Hi Mar 23 22:27:22 how can i find out what version of a support library I need? Mar 23 22:27:28 i need help setting, eclipse was working fine but all the android tools stopped working after i updated recently Mar 23 22:27:48 agy2154, the latest :P Mar 23 22:28:05 canadiancow: won't It require a higher API level? Mar 23 22:28:12 no? Mar 23 22:28:15 it requires 1.6 Mar 23 22:28:33 i wonder when they're going to move the gridlayout stuff into the main support lib Mar 23 22:28:53 i thought it was there Mar 23 22:28:57 canadiancow: So all revisions require the same api leve... huh i never knew that Mar 23 22:29:01 i mean the v4 version Mar 23 22:29:08 well agy2154 there's a v4 and a v7 Mar 23 22:29:10 ohh Mar 23 22:29:14 but those are different Mar 23 22:29:16 thats what I was talking about Mar 23 22:29:17 v4 is the main lib Mar 23 22:29:19 v7 is gridlayout Mar 23 22:29:24 how can I find out that the thing I want to use is in there Mar 23 22:29:33 if its not gridlayout, it's in v4 Mar 23 22:29:38 do you guys ever use injection frameworks Mar 23 22:29:40 Android completely disappeared from the sdk, i've updated to the latest version of the tools but no dice Mar 23 22:29:51 like for example the rotate for the textview was added in api level 11 how can I find out which one i need Mar 23 22:30:06 They'll move it when gridlayout support API4 Mar 23 22:30:18 to rephrase: is there anything inherently wrong with using injection frameworks for an app? Mar 23 22:30:24 i think the support lib's min sdk version is going to get a bump at some point Mar 23 22:30:29 4 no longer makes sense Mar 23 22:30:34 7 barely makes sense Mar 23 22:30:37 google play services requires 8 Mar 23 22:30:40 ohh Mar 23 22:31:12 I get support libraries now.. they allow you to use the new clases... however I have a class which has been updated with more features... is there a support library for it? Mar 23 22:31:30 can you please add details to your questions Mar 23 22:31:44 like... what class Mar 23 22:31:46 what feature Mar 23 22:32:45 So I have a textview and I use setRotation to rotate it. setRotation was added in API 11 i believe. Is there anyway I can use the support libraries to allow my app to work on previous versions of android while still being able to use setRotation Mar 23 22:33:22 No Mar 23 22:34:07 SimonVT: how come Mar 23 22:36:08 Because nothing in any of the support libraries allows you to use setRotation before api11 Mar 23 22:37:19 Guess ill just use android.os.Build.VERSION.SDK_INT to check and then remove that feature from my app for those who are under 11 and maybe use ABS. Mar 23 22:38:40 sounds like fun! Mar 23 22:39:14 lol yeah right. Mar 23 22:46:09 are you kidding me java? Foo Foo = new Foo(); Foo.method(); is legal? Mar 23 22:49:37 Wow... so I used the if(android.os.Build.VERSION.SDK_INT >= 11){ and put the code under it so it only runs it after it knows its support but it gives me error for the meathods.... Do I have to surround it with a try catch? Mar 23 22:50:23 there's a stronger pattern to use here: http://devtcg.blogspot.com/2009/12/gracefully-supporting-multiple-android.html Mar 23 22:50:30 jasta, no Mar 23 22:50:34 that's not legal Mar 23 22:50:52 the lazy loading idiom is not strictly required given how dalvik is currently factored, but it is still much cleaner. Mar 23 22:50:53 agy2154, don't use "11", use Build.VERSION_CODES.HONEYCOMB Mar 23 22:50:58 canadiancow: yes, it is. Mar 23 22:51:16 and yes, use the version codes constants. Mar 23 22:51:22 canadiancow: what if its ics... will it still return true? Mar 23 22:51:33 yes... Mar 23 22:51:35 agy2154: HONEYCOMB is just a constant, it will be inlined as 11. Mar 23 22:51:40 jasta oh wow Mar 23 22:51:41 ohh Mar 23 22:51:42 but your code doesnt read so shitty that way Mar 23 22:51:51 canadiancow: and it definitely should not be Mar 23 22:51:59 because Foo.method is legal syntax for something totally different. Mar 23 22:51:59 i truely believed that was not legal :P Mar 23 22:52:14 i did too until i just corrected a piece of code in our tree that was written this way Mar 23 22:52:18 and it confused the hell out of me at first Mar 23 22:52:19 can you have a static and instance methods with the same argumetns? Mar 23 22:52:20 and name Mar 23 22:52:30 canadiancow: i dont know, lets try Mar 23 22:52:46 Build.VERSION_CODES.HONEYCOMB won't work because it doesn't know its available because my API version is older Mar 23 22:52:47 ah so for primitives, you can't use reserved keywords for names Mar 23 22:52:49 like int int; Mar 23 22:53:03 agy2154: it will work if you set your target sdk version correctly Mar 23 22:53:11 nah jasta you can't do that Mar 23 22:53:18 the static/instance Mar 23 22:53:19 17 Mar 23 22:53:20 your _build target_ sdk shoudl always match the highest version you actually depend on Mar 23 22:53:21 this time i actually tried :P Mar 23 22:54:12 canadiancow: well not so fast. maybe you can through inheritance. if Foo extneds Bar, and Bar has an instance method foo, can Foo create a static method foo? Then Foo.foo() would be extremely misleading. Mar 23 22:54:30 im going to guess no, but ugh Mar 23 22:54:35 the fact that you can do Foo Foo is a problem Mar 23 22:54:42 im testing Mar 23 22:54:51 it's possible Mar 23 22:55:41 it is not possible to override a public method with a static alternative of the same name. Mar 23 22:55:45 so thank god for that Mar 23 22:56:06 i do not believe god had anything to do with it :P Mar 23 22:59:22 anyway i have a plane to catch, ttyl Mar 23 22:59:31 it's also (merely? ;-) a javac restriction Mar 23 23:01:03 for this app i'm writing atm, since the flow of it is fairly linear, i'm experimenting with passing the data from place to place in intents. Mar 23 23:02:46 seems quite elegant. I wrote a little annotation parser to inject the values for me Mar 23 23:03:51 Can I put my app for sale on google play, even if I'm still waiting for my merchant account to be verified? Mar 23 23:04:08 Or do I need to wait? Mar 23 23:04:23 so what kind of chan is this actually. Mar 23 23:06:08 Bladers: The words "android" and "developer" might provide clues Mar 23 23:10:42 or the channel topic info Mar 23 23:10:56 lol i just meant what nature of discussion Mar 23 23:11:16 friendly banter. never technical Mar 23 23:11:55 sometimes i use the word dongle .... but sparingly Mar 23 23:12:07 when forking stuff_ Mar 23 23:12:18 hahahaha - thats was way stupid Mar 23 23:15:07 so is anyone here working on a voice assistant app for android? Mar 23 23:18:33 so I'm going to be doing something kinda crazy Mar 23 23:18:49 i'm trying to include my own version of libstagefright in my app Mar 23 23:19:06 I'm going to see if I can have my app load it preferentially... Mar 23 23:19:11 this will be interesting Mar 23 23:41:34 Can a thread print to stdout? Mar 23 23:47:33 is there a reason why i would be able to read a file from assets at one time but at another it would return filenotfound? Mar 24 00:08:05 Question about ViewPagers. My ViewPager is in a FragmentActivity and I am using a custom adapter to return custom fragments to the ViewPager. I'm showing a grid of icons on each fragment and setting the image alpha values based on a boolean value. Mar 24 00:09:02 Right now, the very first icon is the only one that should be set to full alpha, fully visible. Why is it that it isn't set that way to begin with, but if I scroll to the third page, then back to the first page, the icon has magically changed to full alpha value?? Mar 24 00:22:00 Figured it out. If you're setting the alpha of a view you need to first check what the value of the android.os.Build.VERSION.SDK_INT is at. If it's >= 11 then you must set alpha with a float between 0 and 1, otherwise you use setAlpha with an int between 0 and 255. Mar 24 00:22:56 Is there any good solutions for image caching on a listview? Mar 24 00:23:35 Trying to avoid writing my own solution. e..g, fetch from the remote site, write to disk and then serve it up. I also want to ensure that the disk isn't too full and clear out old files as well as the cache expires Mar 24 00:23:50 anyone dug into the nist-sip code? Mar 24 00:24:01 i feel like android's sip impl is severely lacking Mar 24 00:24:13 10 second keepalives? come on, its a mobile device Mar 24 00:24:57 fuck these homeless people smell like piss Mar 24 00:24:58 SF-- Mar 24 00:26:09 never mind, it solves the problem but setting the alpha on an image button in an array of 16 buttons is very costly. I still don't know why setting the alpha of the background of the imageButton doesn't work. Mar 24 00:26:23 rburton-: we make a good effort to stay on topic here. Mar 24 00:26:44 Trying, this smell is getting to be too much. Might have to leave this place and head elsewhere Mar 24 00:27:17 rburton-: sure, but we don't need the play by play :) Mar 24 00:27:28 That was the only comment. Mar 24 00:30:11 So I accidentally deleted gen/com.foo/R.java, my project recreated it, but now I have errors saying activity_main cannot be resolved. Does anyone have any ideas how to fix this? Mar 24 00:30:41 It's usually a spelling error in xml that doesn't necessarily show an eclipse error Mar 24 00:30:59 A spelling error in R.java? Mar 24 00:31:08 oh, in xml Mar 24 00:31:10 Oh wait, I know, make sure you're not importing android.R.* Mar 24 00:31:19 If you are, delete it. Mar 24 00:31:25 Nice! Mar 24 00:31:30 thanks, jdawes! Mar 24 00:31:33 That was it. Mar 24 00:31:42 np Mar 24 00:34:53 found a nice solution for my needs on the image caching. Mar 24 00:44:26 Should getView on the listview be called multiple times on the same row? Mar 24 00:45:02 I should clarify on ArrayAdapter#getView(int, View, ViewGroup); Mar 24 00:53:13 hey michaelnovakjr, been a while (again) :P Mar 24 00:53:40 howdy. Mar 24 00:54:09 aka novie Mar 24 00:54:32 indeed. Mar 24 00:55:36 what are you working on these days Mar 24 00:57:13 lots of different things. :) Mar 24 00:57:24 most of which will start to get released over the next two months. Mar 24 00:58:34 ah ok Mar 24 00:58:49 i'll ask you again over the next two and half months then Mar 24 00:59:51 :) Mar 24 01:00:26 we think it is pretty cool stuff, hopefully others will agree. Mar 24 01:01:31 heh Mar 24 01:04:30 it's nice to work on stuff you think is cool :) Mar 24 01:06:57 Why is it that I can set whatever image I want on a button inside a viewpager based on a boolean but I cannot change the alpha of the background in the same manner? Like I said before, the alpha is changed only if I scroll far enough away from a page and then go back to it. Thoughts? Mar 24 01:07:16 The background alpha of the button that is. Mar 24 01:07:23 are you only changing it in getView() ? Mar 24 01:07:57 Yes. Mar 24 01:08:13 Well, onCreateView. Mar 24 01:10:55 well you have a pageradapter, right? Mar 24 01:11:01 Yes Mar 24 01:11:26 and your getItem() is returning a... Fragment? Mar 24 01:11:42 Correct. Mar 24 01:11:53 and you're changing the alpha in the fragment's onCreateView Mar 24 01:12:03 yes Mar 24 01:12:18 is your boolean set the first time the fragment shows up? Mar 24 01:12:34 Yes, it's same throughout, I'm getting it from a singleton. Mar 24 01:12:43 like if it works when you scroll away and then come back, it really sounds like it's just not doing it when it's being created, but then it's recycled, and it's set the next time Mar 24 01:13:17 OK, well I'll try running in debug and make sure. brb. Mar 24 01:13:51 But that's what I figured too. Mar 24 01:14:25 i have a question, is usb debugging mode only for developers making android apps? Mar 24 01:14:47 meaning it wonet help me debug why windows periodically says my device isnt recognized Mar 24 01:18:00 anyway i gotta run Mar 24 01:19:06 canadiancow: Get this, I'm watching the values, the boolean is correct, however, when I set the backgroundResource of the imageButton, the mAlpha value is removed from the imageButton. Mar 24 01:20:18 But somehow the button shows up properly the second time around. I'm so confused. Mar 24 01:22:46 Here is what is going on inside a for loop to generate the buttons: http://pastebin.com/G3Mn5aa0 Mar 24 01:29:28 Well, that pastebin is what I just changed it to but now with that nothing has the alpha set properly. Mar 24 01:30:15 Is I change the if state to : if(answered) ib.getBackground().setAlpha(255); else ib.getBackground().setAlpha(100); Mar 24 01:30:28 The behaviour repeats as before. Mar 24 01:36:10 canadiancow: Do you have any thoughts on this alpha thing with the new information that these icons share image resources? Mar 24 01:41:22 what exactly is the problem? Mar 24 01:41:43 I think I've almost got it, give me a second and I'll let you know what it was and what fixed it. Mar 24 01:44:17 OK, that didn't work. Mar 24 01:45:35 Basically I've got ViewPager with 3 pages (fragments), they each display 16 icons, each icon has a shared image for each page. I want to change the alpha value of each icon based on a boolean value from a singleton. Since I'm sharing image resources, when the icon on the last page is created with alpha 100, the very first icon on the first page has the alpha changed to 100. Mar 24 01:45:57 When I want it to be 255 Mar 24 01:46:30 Drawable.mutate() Mar 24 01:46:32 you need to use imageView.setAlpha Mar 24 01:46:50 if you need to set alpha on drawable, you need to mutate it first Mar 24 01:47:00 imageview/imagebutton does this foe you Mar 24 01:47:00 When I set the alpha of each button manually, the viewpager lags a lot. Mar 24 01:47:17 it is an imagebutton, sorry. Mar 24 01:47:18 here is more details: http://www.curious-creature.org/2009/05/02/drawable-mutations/ Mar 24 01:47:47 imagebutton is imageview with extra Mar 24 01:49:17 so it have setAlpha() too Mar 24 01:50:15 ib is my ImageButton. Calling ib.getBackground().mutate().setAlpha(alpha) does what I want. Thanks kevinb and vovkab for the info. Mar 24 01:50:51 It's funny, this really wont be a problem once I get all the final art in the app but it's good to know now. Mar 24 02:04:34 I'm trying to get an elapsed time to increment every second, but using scheduleAtFixedRate() on a ScheduledThreadPoolExecutor member variable of my main activity seems to run very infrequently. Mar 24 02:04:48 Any suggestions for things I could check or different ways to go about this? Mar 24 02:05:31 Screw this im setting min api @ 11 Mar 24 02:05:59 might as well do 14 or 15 if you're doing 11. Mar 24 02:06:58 I'm worried if ABS will cause any problems with my program if i lower it Mar 24 02:07:02 do you think it will? Mar 24 02:07:23 abs min api is 7 Mar 24 02:07:35 Yeah I was doing 7 Mar 24 02:08:41 Is there any way I can add it to my current project without making a new one? Mar 24 02:09:23 you need android library anyway Mar 24 02:09:32 what it the problem with import abs as is? Mar 24 02:10:06 how would I use it in my current project then Mar 24 02:10:12 won't it be two seperate projects? Mar 24 02:10:46 it will be but abs is an android lib project Mar 24 02:11:11 So when i compile it will package them together? Mar 24 02:11:17 sure Mar 24 02:11:29 vovkab: Alright that sounds better thanks. Ill give it a shot. Mar 24 02:11:33 just attach abs to your project Mar 24 02:18:17 Do I have to replace all the extends activity to SherlockActivity ? Mar 24 02:19:08 Anyone home? Mar 24 02:19:26 me Mar 24 02:19:30 Cool Mar 24 02:19:40 I'm new to IRC and Android dev, been doing iOS dev for 3+ years Mar 24 02:19:55 Looking to network, get advice, etc. Mar 24 02:19:59 we have a live one here ! Mar 24 02:20:05 hey guys what do you think about phonegap? Mar 24 02:20:06 A live one? Mar 24 02:20:13 lol Mar 24 02:20:19 g00s: lmao Mar 24 02:20:22 ezekielnoob: it's a website builder Mar 24 02:20:26 :) Mar 24 02:20:44 moshberm: Wanna switch what we develop for? Mar 24 02:20:49 without opening a browser.? Mar 24 02:20:53 ezekielnoob: eh, phonegap. I'm a purist. Native is the way to go. Mar 24 02:20:58 hmmm Mar 24 02:21:10 i like to hear the lots of opinions :) Mar 24 02:21:12 You're not stuck waiting for platform support. Mar 24 02:21:29 agy2154: Not really, I'm looking to learn Android dev, though. Mar 24 02:21:32 and it's a website Mar 24 02:21:34 ezekielnoob: if you have your users, phonegap the way to go Mar 24 02:21:40 *hate Mar 24 02:21:58 moshberm: that's cool. I want to learn iOS after I'm good with android. I have a lot of iOS devices. Mar 24 02:22:02 I have the Nexus 4/7/10 devices Mar 24 02:22:10 And too many iOS things to count. Mar 24 02:22:11 uh..... how about the cross-platform compatibiltiy of it? Mar 24 02:22:14 vovkab: thats wong. I hate almost everyone, but would never use phone gap as revenge Mar 24 02:22:20 thats just going too far Mar 24 02:22:22 damn... I have Nexus S sitting on the bottom of my trash can and a nexus 7 .... also an iphone 5 Mar 24 02:22:23 lol Mar 24 02:22:27 haha Mar 24 02:22:29 you just made it sound worse Mar 24 02:22:41 I just got the Nexii over winter break, but haven't had time. Mar 24 02:23:01 agy2154: I'll be glad to help with iOS dev if you have questions. Mar 24 02:23:17 moshberm: thanks but im talking about 6 months from now probably Mar 24 02:23:31 is objectuive C so much different than android's? Mar 24 02:23:42 Ok, whatever. Unless something life-changing happens, I'll be developing *something*. Mar 24 02:23:49 android's is java Mar 24 02:23:58 i haven't seen obj C Mar 24 02:24:06 only C# Mar 24 02:24:06 ezekielnoob: Well, yea, vovkab is right. Java is Java, ObjC is ObjC. Mar 24 02:24:12 oh Mar 24 02:24:15 you won't be collecting the garbage in Android Mar 24 02:24:15 lmao Mar 24 02:24:15 Java looks similar to C# Mar 24 02:24:16 okay :D Mar 24 02:24:31 Objective C uses square braces instead of dots. Mar 24 02:24:44 instance.method() becomes this: Mar 24 02:24:47 [instance method] Mar 24 02:24:51 uh.... Mar 24 02:24:56 thats stupid Mar 24 02:25:00 well yeah, but obj-c has real message passing, not method invocation Mar 24 02:25:01 not really but Mar 24 02:25:13 what if i had div.getText().toString() ? What would it be in objective C? Mar 24 02:25:14 It comes from Smalltalk Mar 24 02:25:15 well that's the beauty of different languages XD Mar 24 02:25:30 [[div getText] toString]; Mar 24 02:25:45 wow Mar 24 02:25:47 There's a lot that goes into language design, and everyone has their preferences. Mar 24 02:26:04 Maybe the ScheduledPoolExecutor isn't running things on the UI thread? Mar 24 02:26:05 moshberm: actually makes more sense... kinda like order of operations or somethign Mar 24 02:26:05 Yea, you get nested square brackets flying all over the place, but once you understand it, it's nice. Mar 24 02:26:13 In a sense, yes. Mar 24 02:26:39 I have some code posted on GitHub if you'd like to look at it. Mar 24 02:26:40 what if i have a method and a property of the same name? Mar 24 02:26:57 moshberm: The biggest thing i hate about android is that not like %90 of people can update their os in a day Mar 24 02:26:58 (which doesn't make sense) Mar 24 02:26:59 unlike apple Mar 24 02:27:27 ezekielnoob: Well, then you've probably overridden the getter. Mar 24 02:27:42 agy2154: Yea, that's annoying. Mar 24 02:28:07 is it because of the different providers? Mar 24 02:28:16 providers? Mar 24 02:28:19 i mean samsung / htc have different updates Mar 24 02:28:29 Ah, yea, that's a huge part of it. Mar 24 02:28:29 apple is just one Mar 24 02:28:44 so guys... do i replace extends activity with SherlockActivity ? Mar 24 02:28:54 if im using ABS? Mar 24 02:29:15 yes Mar 24 02:29:23 vovkab: thanks Mar 24 02:29:37 check samples for more details Mar 24 02:30:06 vovkab: shuold I also add a build path? Mar 24 02:30:18 * moshberm nods Mar 24 02:30:20 nvm i guess o Mar 24 02:30:23 so Mar 24 02:30:24 that i should Mar 24 02:30:36 I nodded at ezekielnoob, not you, agy2154 Mar 24 02:31:07 I don't know much about Android Dev yet, nor do I know what you're trying to do. Mar 24 02:31:12 moshberm: It's ok Mar 24 02:31:32 moshberm: Backwords compatability Mar 24 02:32:01 uhm on the apps that uses network connections, what kind of api do you use to send data to the server? Mar 24 02:32:08 do you use something like REST? Mar 24 02:32:44 cause the app that i would be using requires something like that.... or is there an android standard? something like what games uses to submit highscores Mar 24 02:32:45 moshberm: I'm not far from where you are. I just started developing again after quitting two years ago since it was to hard for me. But I'm a juinor in Highschool now and I'm taking a Java class so it goes with the agenda. Mar 24 02:35:14 moshberm: $99 dev fee is a bit to much for me atm. I need to prove myself first lol. Mar 24 02:37:32 agy1254: Yea, I'm with you there. Mar 24 02:37:44 I've been making apps for clients for a few years, so it pays for itself. Mar 24 02:39:01 how long after an activity is finished does it take for the jvm get destroyed? Mar 24 02:45:12 Yup, that was it. I was accessing UI elements from outside the UI thread. When doing the UI operations in a Runnable passed to View.post() it works as intended. :D Mar 24 02:46:25 When they said undefined behavior for doing that they weren't kidding. That was bizzare. Mar 24 02:46:30 Have someone got ads7846 touchscreen work on Android gingerbread? Mar 24 02:51:30 jug6ernaut_: why would it get destroyed Mar 24 02:52:31 why wouldn't it after the process dies? Mainly I'm trying to figure out when static variables will get cleared. Mar 24 02:52:53 how can i get a handler/reference to an adapter that is on a separate fragment? Mar 24 02:53:01 when I use android:theme="@style/Theme.Sherlock in my manifest it won't let me use a local app drawable as my icon does that mean I have to move all my drawables to the sherlock library? Mar 24 02:53:28 jug6ernaut_: The process doesn't die when you finish an activity Mar 24 02:54:00 agy2154: no. Are you trying to access your drawable from code or xml? Mar 24 02:54:35 what you mean your icon? Mar 24 02:55:03 SimonVT hmm k Mar 24 02:55:36 The process dies when android needs the memory Mar 24 02:55:38 vovkab: android:icon="@drawable/ic_launcher" in my manifest Mar 24 02:56:09 hmm Mar 24 02:56:10 k Mar 24 02:56:27 agy2154: this should works fine Mar 24 02:58:09 vovkab: My bad it does work. android:theme="@style/Theme.Sherlock" won't work because it can't find the theme Mar 24 02:58:30 because you didn't setup your project correctly Mar 24 02:58:42 you need to add abs as lib to your project Mar 24 02:58:49 as android lib **** ENDING LOGGING AT Sun Mar 24 02:59:58 2013