**** BEGIN LOGGING AT Tue Feb 28 02:59:59 2012 Feb 28 03:00:41 You're not going to get a built-in way to do that, because it'd be too good for a badwear to be bad with Feb 28 03:00:55 that is an option for next to nothing Feb 28 03:03:49 I guess the only real way is to hack and replace system u y Feb 28 03:04:48 that is a terrible solution though Feb 28 03:05:09 pfn: I think a kiosk mode would be a good idea Feb 28 03:05:45 lots of people have asked me for it Feb 28 03:05:58 you can get close with an app registered as your launcher, and making sure there are no background/notifying apps running... Feb 28 03:06:31 and I don't really want to maintain honey bar because it's a dead end Feb 28 03:06:51 unless you're running an Android version which has a link to settings in the notification bar Feb 28 03:07:07 all versions of honeycomb do Feb 28 03:07:32 all versions of I c s 2 for that matter Feb 28 03:09:42 Anyone have any ideas why eclipse isn't finding a project as I try to import ActionBarSherlock 4.0 RC1? Feb 28 03:10:36 pfn: what, you've got something against Gingerbread? :) Feb 28 03:10:56 gingerbread is not a tablet operating system Feb 28 03:11:16 try telling that to HTC - or to all the Chinese guys... Feb 28 03:11:42 I agree with pfn.. Gingerbread looked fugly on tablets Feb 28 03:11:50 yeah, it did Feb 28 03:13:09 SO terriblew Feb 28 03:13:20 Viewsonic gTablet is a prime example Feb 28 03:13:24 that stock rom was sooooo ugly Feb 28 03:15:02 Google Voice doesn't respect the sms_body extra; any ideas how to prefill the body of a message? Feb 28 03:16:30 t0mless: i didnt like the HTC flyer either Feb 28 03:26:32 Has anyone had expereince with https and webview in android? Im getting a blank page even after trying suggested overriding onReceivedHttpAuthRequest & onReceivedSslError Thanks, Feb 28 03:27:04 hello all Feb 28 03:27:34 hey QubeZ Feb 28 03:28:27 DrPenguin... sup man Feb 28 03:28:36 nothin much.. working on my school app.. you? Feb 28 03:28:43 I swear, every time I see you, I think "Trust me, I'm a Doctor" from those Dr Pepper commercials Feb 28 03:28:53 DrPenguin: working on To Do Mapr :) Feb 28 03:29:10 just releasing a new build to Beta testers... hopefully will be in the Market in another week to get more reach. Feb 28 03:29:18 good stuff Feb 28 03:29:29 Fighting w/ SVN as usual Feb 28 03:29:49 lol awwww Feb 28 03:29:55 I havent had problems with my svn yet thank God Feb 28 03:30:08 git > * :) Feb 28 03:30:09 I need to leave svn but its a love-hate relationship and I'm so abused... I dont know there something better out there. Feb 28 03:30:24 svn is teh suck Feb 28 03:30:29 don't use it Feb 28 03:30:38 pfn: ok im convinced :) Feb 28 03:30:46 or if you need to use svn, use it in conjunction with git-svn Feb 28 03:30:47 no seriously, I do need to learn Git Feb 28 03:31:06 git is easy Feb 28 03:31:16 so is SVN... but that shit is breaking left and right Feb 28 03:31:30 I mean how hard can be it to branch, merge and tag right? Feb 28 03:31:32 fuck Feb 28 03:31:32 svn was a poor excuse to hide cvs's warts Feb 28 03:31:51 well i know about this much about git: || Feb 28 03:32:01 but do need to get with the program, pun intended Feb 28 03:32:08 does Eclipse have Git integration? Feb 28 03:32:19 DrPenguin: eGit Feb 28 03:32:19 There is a plugin Feb 28 03:32:20 DrPenguin: yes Feb 28 03:32:29 there's a github plugin too Feb 28 03:32:35 hmm interesting.. maybe ill port to my svn repo to Git then Feb 28 03:32:52 funny thing.. my Software Engineering class is gonna be teaching svn soon Feb 28 03:32:58 lol Feb 28 03:33:06 oh boy! Feb 28 03:33:09 I learned cvs in my CS class.... Feb 28 03:33:17 * mlewellyn teaches everyone sccs Feb 28 03:33:30 I'm, uh, in high school Feb 28 03:33:39 no CS classes available Feb 28 03:33:41 isnt it your bedtime? :P jk Feb 28 03:34:00 EddieRingle: same thing with me kinda.. they offered some CS classes but no 1 signed up for them Feb 28 03:34:02 DrPenguin: currently writing an analysis for Othello, so no, not yet :P Feb 28 03:34:17 That's a good one Feb 28 03:34:21 Othello: Stuff happened. The end Feb 28 03:34:27 everybody dies. Feb 28 03:34:32 QubeZ, svn makes merging a pita Feb 28 03:34:32 Of course Feb 28 03:34:38 svn is neat... kind of Feb 28 03:34:45 eclipse integration is overrated Feb 28 03:35:14 getting svn to work in eclipse is always a pita, I can never get subclipse working on the first shot Feb 28 03:35:22 there are good things about svn, but it isn't a great source control system Feb 28 03:35:37 * pfn likes the forward-stepping version numbers and copy-on-write aspects Feb 28 03:37:02 im really hating merging with SVN or maybe I'm doing it wrong Feb 28 03:37:12 QubeZ, everyone does Feb 28 03:37:25 QubeZ: YOUR DOING IT WRONG Feb 28 03:37:33 hehe Feb 28 03:37:35 QubeZ, what's to do? svn merge branch1 trunk Feb 28 03:37:36 done Feb 28 03:37:40 fix conflicts Feb 28 03:37:42 commit Feb 28 03:38:17 hey t0mless, is there an option for no title bar in ABS? Feb 28 03:38:25 pfn: with Eclipse... When I'm in trunk I try to merge into my branch and it says nothing to merge. I have to switch to Branch then merge from trunk instead of just sitting put where I am and having it go that way. *shrug* Feb 28 03:38:29 just set the notitlebar theme... Feb 28 03:38:35 but why would you use abs without the titlebar Feb 28 03:38:40 it should be enabled by default DrPenguin Feb 28 03:38:43 pfn: Just out of curiousity Feb 28 03:38:47 QubeZ, you mean rebase Feb 28 03:38:58 QubeZ, the way svn works is that you always have to have a working copy to merge into... Feb 28 03:38:58 but you can use requestWindowFeature or make a custom theme Feb 28 03:39:10 QubeZ, if you're in trunk, you can't merge into a branch Feb 28 03:39:15 you need to switch to the branch first Feb 28 03:39:16 t0mless: should it? hmm.. I se my theme to Style.Sherlock.Light in my manifest but I have the title bar with my App title and Icon Feb 28 03:39:28 ya, i don tunderstand why... its annoying but I can deal with it. Feb 28 03:39:31 you can't requestwindowfeature I would guess Feb 28 03:39:35 You mean... the ActionBAr? Feb 28 03:39:39 Dont want to switch to Git until things settle down a bit. Feb 28 03:39:43 or do you mean you get a titlebar in addition to the actionbar? Feb 28 03:39:50 QubeZ, switching to git is pretty trivial Feb 28 03:39:53 especially for a small project Feb 28 03:39:54 git init Feb 28 03:39:58 DrPenguin and it should be Theme.Sherlock.Light Feb 28 03:40:04 and use git-svn to migrate your revision history over Feb 28 03:40:05 but it would crash if it wasn't correct Feb 28 03:40:12 pfn: will look into it Feb 28 03:40:25 it takes all of 5 minutes to migrate at worst Feb 28 03:40:31 t0mless: it oes, so I set my the in my app xmls to Theme.Light.NoTitleBar.FullScreen, but thats overrided by what is in my manifest Feb 28 03:41:25 That might crash with ABS, you have to use Theme.Sherlock, Theme.Sherlock.Light or Theme.Sherlock.Light.DarkActionBar or a derivitive of one of them Feb 28 03:41:34 t0mless: yeah I do, in my Manifest Feb 28 03:41:50 so... what title bar are you talking about Feb 28 03:41:51 but I cant use Theme.Sherlock.* in a specific layout file because then eclipse stack overflows Feb 28 03:42:10 because of the preview pane? Feb 28 03:42:11 Ok, maybe I am rusty cause I havent done android stuff in a while, Im talking about the top part that hs your App name and the Icon for it Feb 28 03:42:16 I guess I dont know Feb 28 03:42:21 DrPenguin, screenshot Feb 28 03:42:25 That's the ActionBar dude Feb 28 03:42:34 which is the whole point of using ABS Feb 28 03:42:36 is It? I didnt know it was part of the bar Feb 28 03:42:46 You can disable it if you want Feb 28 03:42:48 This is the first time I have done action bar stuff Feb 28 03:43:03 Sorry bout that Feb 28 03:43:11 http://developer.android.com/guide/topics/ui/actionbar.html Feb 28 03:43:24 but you can set the DisplayOptions in your theme Feb 28 03:43:41 is there a compat actionbar or just action bar sherlock? Feb 28 03:43:49 there's another one Feb 28 03:43:51 actionbarsherlock is the best compat actionbar Feb 28 03:43:58 that i think is called compatActionbar Feb 28 03:44:00 there are others, but they're just a pale imitation Feb 28 03:44:04 but it's not in the official compat library Feb 28 03:44:42 I can't specify where to map my data with ArrayAdapter, can I? I have several views in each row. Feb 28 03:44:54 You can Feb 28 03:45:06 you provide an array of IDs Feb 28 03:45:33 oh wait Feb 28 03:45:35 nvm Feb 28 03:45:42 was thinking of something else Feb 28 03:45:53 vadi2 extend base adapter Feb 28 03:46:00 and do it yourself Feb 28 03:46:23 Alright. Feb 28 03:47:20 I remember when I thought list adapters were the hardest thing about Android (back in the Cupcake days) Feb 28 03:47:53 bah, back in the 80s I walked 20 miles in the snow, just to get a cupcake. Feb 28 03:48:00 lol Feb 28 03:48:04 readme: uphill both ways? Feb 28 03:48:25 Barefoot too Feb 28 03:48:26 I call shenanigans, there is no cupcake that is worth walking that far Feb 28 03:48:33 EVEN if its red velvet Feb 28 03:48:53 I had a guinness cupcake from this shop in Davis that was pretty yummy Feb 28 03:49:22 Do want Feb 28 03:51:56 eh, im not crazy for guinness Feb 28 03:53:05 guiness is an acquired taste Feb 28 03:53:14 but it's not even close to being one of my favorite beers. Feb 28 03:54:03 im more of a Yuengling guy Feb 28 04:40:24 im sure this has been asked before.. but is it possible (and not a bad idea) to put fragments in fragments? Feb 28 04:40:45 I dont HAVE to do it, just keeping my options open for my design Feb 28 04:42:35 day later no pogress . repo sync'd the entire master branch of android. cd android-source/ndk/; build/tools/download-toolchain-sources.sh ./src; build/tools/rebuild-all-prebuilt.sh ./src did I miss something? Feb 28 04:43:19 the error is gen-platforms.sh line 385 syntax error missing '))' Feb 28 04:43:52 Are the ActionBar tabs always put inside the ActionBar itself when switching to landscape mode, or is this something that can be changed? Feb 28 04:44:36 after reading the android design site, it seems like it is developer controlled Feb 28 04:44:46 the key word there being seems Feb 28 04:44:56 can you link me to what you just read, jeppy ? Feb 28 04:45:10 http://developer.android.com/design/patterns/actionbar.html Feb 28 04:45:12 thanks Feb 28 04:45:56 DrPenguin, it is frowned upon to nest fragments Feb 28 04:46:00 "Fixed tabs in the main action bar can move to the top bar when the screen orientation changes." Feb 28 04:46:04 DrPenguin, sometimes lifecycle stuff doesn't work Feb 28 04:46:04 pfn: good enough, thank you sir Feb 28 04:46:07 right, I hope that implies that it's optional Feb 28 04:46:24 pfn: im new to this fragment stuff and im loving it, just wanna set my boundaries Feb 28 04:47:59 i'm just starting with the action bar sherlock for the first time Feb 28 04:48:10 jeppy: me too, lots of stuff to learn huh Feb 28 04:48:21 yes Feb 28 04:49:26 I'm not sure if I'm supposed to include the source in eclipse or the jar Feb 28 04:49:49 jeppy: pm if you want, I've got it running here Feb 28 04:49:56 and my app currently supports api4 but the new abs bumps the minimum up to api7 Feb 28 04:50:03 Oh, are you using 4.1? Feb 28 04:50:06 I'm using the old one. Feb 28 04:50:43 well since it might take me a while i want to use the newer one Feb 28 04:50:55 but i'll keep that in mind Feb 28 04:51:09 you've got to import the library folder into eclipse Feb 28 04:51:22 use import->general->existing project Feb 28 04:51:29 eclipse says it's not a project for some reason Feb 28 04:51:39 I heard someone else say that about it today Feb 28 04:51:47 you can try using create project from existing source instead Feb 28 04:51:50 it has project.properties Feb 28 04:52:01 new android project, create from existing source, select library folder Feb 28 04:52:04 yeah i'll work around it Feb 28 04:52:28 but just not sure if i'm ready to give up on the ol 1.6 users :P Feb 28 04:52:50 anybody here still support donut? Feb 28 04:53:21 about 1.6% of my downloads are from 1.6 Feb 28 04:53:28 oddly enough Feb 28 05:00:34 isn't that about right given the marketshare of 1.6 Feb 28 05:01:48 it's down to 1% now Feb 28 05:06:55 ah, the new action bar sherlock library is missing AndroidManifest.xml! Feb 28 05:07:56 good night Feb 28 05:08:42 no it's there, ignore me Feb 28 05:09:20 jeppy: what were you saying ? wasnt payin attn Feb 28 05:09:58 new abs library wont import Feb 28 05:10:38 jeppy: (I was playing along with your ignore me comment but taht sucks) Feb 28 05:10:54 I have ABS 3.5.1 and its workin for me.. Feb 28 05:11:29 its ok i just started a new project and copied everything into it Feb 28 05:26:33 what is the best place for begin on android develpment? i mean tutorials, examples... Feb 28 05:26:46 http://d.android.com Feb 28 05:27:52 thanks men jeppy Feb 28 05:28:18 google Feb 28 05:40:47 ladies Feb 28 05:45:42 what is a good value for NETWORK_PROVIDER minTime and minDistance? Feb 28 05:45:58 I have it set to 0 now which works fine on my sister and wife's phone but on my phone it goes crazy Feb 28 05:46:11 logcat flips out with messages from "requesting network updates" Feb 28 05:49:15 indian recruiter is trying to recruit me for a job in india Feb 28 05:53:23 Does eclipse know when I copy a folder? I wanted to fork an example project and start screwing with it while keeping a pristine version around locally. When I copied the folder and started a new project in the new directory, it said there was already a project in that directory. ¿? Feb 28 05:53:53 freecandy: use some type of versioning system Feb 28 05:54:52 Yeah, I've been added to a git repo, but this is just for tonight. Feb 28 05:57:08 I wish there was a nice lightweigt gui tookit for android Feb 28 05:57:13 for native c++ Feb 28 05:57:21 qt works remarkably well Feb 28 05:57:27 but tons of external libs Feb 28 05:58:45 Error generating final archive: Debug Certificate expired on 12/10/11 8:50 PM Feb 28 05:58:49 ? Feb 28 05:59:06 you using eclipse? Feb 28 05:59:14 yes Feb 28 05:59:18 just recompile Feb 28 05:59:24 it should make a new debug cert for you Feb 28 06:00:34 remove the debug.keystore and do a project -> clean then rebuild. Feb 28 06:00:43 it fixes it but then it reoccurs when i launch Feb 28 06:00:49 k Feb 28 06:01:16 where is debug.keystore? Feb 28 06:01:28 ~/.ant maybe? Feb 28 06:01:42 ~/.android Feb 28 06:01:50 jeppy: im on Mac, mine is in ~/.android Feb 28 06:02:03 ~ is just C:\Users\YourUserName on windoze Feb 28 06:02:15 right Feb 28 06:03:05 there we go! Feb 28 06:03:09 thanks guys Feb 28 06:05:26 np Feb 28 06:08:56 Anyone know if "Split Action Bar" is supported in the latest ActionBarSherlock? Feb 28 06:09:05 yes Feb 28 06:09:13 Oh, nice Feb 28 06:09:15 it's in the example app Feb 28 06:09:21 I'll fire it up Feb 28 06:09:26 guess I have to use latest Feb 28 06:09:35 i just got it running Feb 28 06:10:19 in v3.5 is everything in com.actionbarsherlock.* or no? Feb 28 06:12:06 I think 3.5 is different in that you don't need to extend the different Sherlock* prefixed Activities. Feb 28 06:12:23 I'm just using the augmented support lib for getSupportActionBar Feb 28 06:12:36 but, I think i'm going to use the latest Feb 28 06:12:47 this is a brand new app and I'll have time to wait on it becoming stable Feb 28 06:13:48 it seems promising Feb 28 06:14:04 he did put a heart by it... Feb 28 06:16:30 look at the release date :) Feb 28 06:16:46 but in 3.5 no, the stuff is not in com.sherlock Feb 28 06:16:55 it's in the android.support.v4 package Feb 28 06:17:15 the 4.0-wip branch is pretty stable Feb 28 06:17:58 realm of the mad god it quite entertaining Feb 28 06:18:01 yeah i was thinking including both to support api4 but i just might leave those users without updates Feb 28 06:18:34 you still need the google support library for ABS Feb 28 06:18:55 i have it, i'm using the one he provides Feb 28 06:19:05 hope jake gets his shit done before the move Feb 28 06:19:17 it's larger than stock, and according to a g+ post of his, you cant use the stock one Feb 28 06:19:25 move? Feb 28 06:21:28 He's leaving tomorrow.... Feb 28 06:21:42 i see Feb 28 06:21:47 You can with the latest 4.0-wip Feb 28 06:22:06 the one from the support-lib from his project is for fragment support Feb 28 06:22:08 ordered broadcasts saved my ass today Feb 28 06:22:30 I mean its not like hes going anywhere Feb 28 06:22:41 I know Feb 28 06:22:42 jake isnt gonna bail on his abs followers Feb 28 06:22:51 that's the one i'm using, but when i extend FragmentActivity, no action bar Feb 28 06:22:54 he's gunna be mia for a week Feb 28 06:23:02 but may need to be a bit more preoccupied with clenching his cheeks Feb 28 06:23:16 jeppy SherlockFragmentActivity Feb 28 06:23:28 hmm Feb 28 06:23:30 uh Feb 28 06:23:32 that makes sense Feb 28 06:23:33 didnt he just call it Feb 28 06:23:42 FragmentActivity from v4 package? Feb 28 06:23:47 not in 4.0 Feb 28 06:23:49 oh Feb 28 06:23:58 havent upgraded that shit yet Feb 28 06:24:09 the ics bar is pretty smexy Feb 28 06:24:11 the two apps I am working on are REDICULOUS Feb 28 06:27:25 fuck dude Feb 28 06:27:33 I bitch about eclipse being a pile of shit Feb 28 06:27:41 but xcode has crashed 2x in the last 5minutes Feb 28 06:27:50 lol Feb 28 06:29:36 apple makes pretty, not functional ;) Feb 28 06:29:56 I dont know... I think tis pretty functional Feb 28 06:30:06 I think iphone/ios is really outdated Feb 28 06:30:12 except when it's crashed. ;) Feb 28 06:30:24 havent seen the end result apps really crash Feb 28 06:30:27 just the ide Feb 28 06:30:43 and has anyone around built cocos2d stuff for android? Feb 28 06:33:06 I am ready to code c++ and some simple ui toolkit Feb 28 06:33:21 xml layouts, and some of androids weird concepts have just pissed me off to no end =) Feb 28 06:37:35 wow Feb 28 06:37:40 my speakers just got some static Feb 28 06:37:44 reminds me of the old gsm days Feb 28 06:37:54 oh my phone went out of service Feb 28 06:37:58 that's exactly what happened then Feb 28 06:40:03 fu, tablelayout is hard Feb 28 06:40:19 why does my TL think there is a invisible 3rd column :( Feb 28 06:40:44 because you put something into column=2 when it's a 0 based index? Feb 28 06:41:16 soemthing spans 2 columns? Feb 28 06:41:43 no t0mless but good guess :/ Feb 28 06:41:47 yes canadiancow Feb 28 06:41:52 but that also doesn't really work Feb 28 06:42:26 pastebin... Feb 28 06:42:37 1s Feb 28 06:43:20 http://pastebin.com/t5NHpUAs Feb 28 06:44:47 if i insert a test 3rd column it looks good Feb 28 06:44:55 but right now only 2/3 of the width is covered Feb 28 06:46:26 tried putting explicit colums on other stuff? Feb 28 06:46:43 or maybe use collapseColumns/stretchColumns Feb 28 06:46:47 where apporpriate Feb 28 06:47:00 fuck its late Feb 28 06:47:01 fuck fuck fuck Feb 28 06:47:03 * canadiancow goes to bed Feb 28 06:47:12 luls Feb 28 06:48:00 nah not yet. Feb 28 06:49:12 tablelayout isnt always that intuitive Feb 28 06:49:26 what xml parsing library are all the cool kids using these days? using libgdx if that matters Feb 28 06:51:05 I just use the XMLPullParser in the android API Feb 28 06:51:20 linq to xml spoiled me Feb 28 06:51:27 I attempted xmlpullparser Feb 28 06:51:28 mh Feb 28 06:51:31 and felt REAL retarded Feb 28 06:52:25 t0mless, stretch did the trick... thanks. still weird that android did not wrap the cells around the content Feb 28 06:52:48 Is there a text search in Eclipse? Like if I don't know where a string is buried in a project, I can find out? Feb 28 06:53:01 ctrl H Feb 28 06:54:23 meh, aren't tablerows supposed to support layout_weight? Feb 28 06:55:32 i use libgdx though, which is desktop and android, I think xmlpullparser is android only Feb 28 06:56:53 thanks, alex. Feb 28 06:57:16 I have found cases where you do fnd in files * and not exact string Feb 28 06:57:20 and it wont find stuff Feb 28 06:57:25 or it wont find all the cases Feb 28 07:03:12 anyone here familiar with powerVR SGX540? Feb 28 07:07:30 If I'm using a third-party library and want to override some of their strings (stored in xml files) without hacking apart their methods to make them call my strings instead of theirs, is there a nice way to do that? Feb 28 07:29:49 freecandy: Just give your string resources the same name Feb 28 07:30:45 I was thinking that as well, but wouldn't that put your resources in your R.java, and not the library's? Feb 28 07:31:55 Remember that library project resources are simply merged in to yours Feb 28 07:32:33 A single res folder, a single R Feb 28 07:35:23 oh Feb 28 07:35:27 thanks Feb 28 07:36:04 That's also why, if you make a library project, prefix your resources as to not cause conflicts :p Feb 28 07:38:38 i prefix everything religiously Feb 28 07:38:59 i think pseudo-namespace is kind of out of style, but I do it anyway because it makes it apparent to people newer to the code what is and isn't business code Feb 28 07:45:08 Wait, what overwrites what? I want users to be able to update the library without undoing my overwrites. Ideally, this would be at a level finer than individual xml files, as there's only one field I want to overwrite right now. Feb 28 07:46:28 lets say you have a string called "mystring" in both your library project and your main project Feb 28 07:46:48 During the build process, only the mystring in your main project will be added to the final apk Feb 28 07:47:31 And I can specify this in any old xml file and don't have to arrange a collision with the library's? Feb 28 07:47:51 The library project still references mystring, so it will use the mystring in your main project Feb 28 07:48:12 They have to have the same name Feb 28 07:49:09 What if there's a mystring2 in the library that I don't want to overwrite, so I don't specify it in my xml? Will it pull from the library xml? Feb 28 07:49:21 Yes, of course Feb 28 07:49:30 Sweet, thanks! Feb 28 07:49:38 This only concerns conflicting names, everything else is merged as normal Feb 28 07:53:26 morning Feb 28 07:55:13 android documentation on contentproviders states that "You don't need a provider to use an SQLite database if the use is entirely within your own application.", but how without content provider can i make my list autorefresh data when it changes? Feb 28 07:57:51 duo_ does your first name happen to be harry? and last potter? Feb 28 07:59:20 ron_frown: what are you, a comedian? :P can't one ask simple question without being joked about here? :P Feb 28 08:00:25 duo_: by keeping track of changes and calling notifyDataSetChanged() on the ListAdapter yourself Feb 28 08:00:39 You look up ContentObservers and how to use them Feb 28 08:00:57 SimonVT: will do that, thank you Feb 28 08:03:53 readme: changes are made in a service, so how would i accomplish that? broadcast some intents back from service? listen in activity, and fire notifydatasetchanged every time i add an item to db? huh, i think writing contentprovider would be quicker Feb 28 08:05:21 duo just seems like an obvious answer Feb 28 08:05:33 duo_: I would look further into SimonVT's answer Feb 28 08:05:49 databases arent magical... I mean in some you can set triggers, but you still ahve to have something take that information and do something useful with it Feb 28 08:06:03 if yo hit it directly via a sql client, how would itk now Feb 28 08:06:16 http://developer.android.com/reference/android/database/Cursor.html#registerContentObserver(android.database.ContentObserver) Feb 28 08:06:23 that's how ^ Feb 28 08:06:41 yes thats not hitting db directly Feb 28 08:06:53 got it, i was just wondering if there is some simple mechanism to accomplish that without writing content provider Feb 28 08:07:15 readme: thanks for the link Feb 28 08:07:29 (Protip: If you listen for changes from a contentprovider, you also simply use a ContentObserver) Feb 28 08:07:50 hm, would you have to poll requery() for this to work if the changes were made to the table but weren't in the result set of the Cursor's query? Feb 28 08:08:01 (which yes, I know is deprecated) Feb 28 08:08:23 maybe it is best to just trace the event all the way up from that mechanism you have in your service. Feb 28 08:11:26 how do i know if a thread object is the UI thread Feb 28 08:13:12 i am looking for the android.jar to include the java source code in eclipse for 2.3.3 - but do not see it in the sdk manager - any ideas how i can't get this? Feb 28 08:13:29 jason, you mean how to tell automatically? Feb 28 08:13:49 its gonna be on the ui thread unless you spawn a new thread explicitly Feb 28 08:14:03 asynch, handler.post a new runnable Feb 28 08:14:22 winegoddess its a separate download you need get Feb 28 08:14:27 use repo Feb 28 08:14:40 repo init -> repo sync Feb 28 08:14:59 hi ron_frown - thanks. i thought it was odd that i could see the source for other API Levels, but not that one Feb 28 08:15:03 where can i find it? Feb 28 08:15:17 (meaning i can see the download via sdk manager) Feb 28 08:15:23 well there may be downloads that just handle frameworks/base and api Feb 28 08:15:47 but repo will let you grab the entire os source including the sdk Feb 28 08:16:30 ah….where can i access that? and thanks btw Feb 28 08:16:47 nvm runOnUiThread Feb 28 08:16:57 ron_frown: i know Feb 28 08:17:11 same method can be called from any thread Feb 28 08:17:47 yeah you usually can post a runnable from background to update ui Feb 28 08:18:09 I played with ordered broadcasts to handle messages from bg to display anywhere in app Feb 28 08:18:18 eg without having to worry about having valid UI contet Feb 28 08:18:20 context Feb 28 08:18:40 isn't that what methods like post() and runOnUiThread() already do? Feb 28 08:18:57 queue up tasks to run on ui thread Feb 28 08:19:45 haha sometimes things happen when you dont have a real UI context Feb 28 08:19:51 or the context is dying/instantiating Feb 28 08:20:14 eg, if you wanted to pop up a dialog, there are cases where I've gone to do that very thing with a Activity context Feb 28 08:20:30 cept the context is no good... its not null, but doesnt have the means to pop a dialog Feb 28 08:20:55 o.o Feb 28 08:26:01 I'm trying to edit the status bar in the SystemUI.apk but it just causes force closes and no status bar. Feb 28 08:26:03 Any ideas? Feb 28 08:26:12 Can I have a handler inside a thread? Feb 28 08:26:32 lfamorim: yes, depending on how you initialize the thread and/or the handler Feb 28 08:27:20 I wanted a handler to rid the service of any effort to avoid errors, such as ANR. Feb 28 08:27:51 Is there a snippet that returns an object handler? Feb 28 08:29:45 "Each Handler instance is associated with a single thread and that thread's message queue. When you create a new Handler, it is bound to the thread / message queue of the thread that is creating it" Feb 28 08:29:50 new Handler(); Feb 28 08:30:01 http://developer.android.com/reference/android/os/Handler.html Feb 28 08:33:14 is there any way to dynamically get the price for an in app purchase? Feb 28 08:33:34 don't know Feb 28 08:33:36 hmm Feb 28 08:33:45 you mean, via an api or something? Feb 28 08:35:22 yeah Feb 28 08:35:34 it works for app store on the iphone Feb 28 08:35:41 I get it in the users currency and all Feb 28 08:46:45 hi, i've installed the ADT on eclipse. when trying to compile somthing im asked to add a new virtual device. in the following popup the device list is empty, how do i create a new virtual device ? Feb 28 08:48:47 socket: did you follow http://developer.android.com/sdk/installing.html#AddingComponents Feb 28 08:48:58 hey guys where do i enable application development on my phone? Feb 28 08:49:09 in applications -> development Feb 28 08:49:58 vadi2: all i have is usb debugging stay awake and allow mock locations Feb 28 08:50:16 that's all you need. what are you looking for? Feb 28 08:50:32 ahh ok i thought there was a setting something along the lines of application development Feb 28 08:50:58 nope, you can install your test app on the phone without any settings - just enable USB debugging, that's the necessary one Feb 28 08:51:17 AHH OK :) Feb 28 08:51:37 still working on setting up eclipse :) to begin my work :) Feb 28 08:51:42 thanks for the help vadi Feb 28 08:51:48 ok, i'm using contentprovider after all :P works pretty well and wasnt to hard to put it together. Feb 28 08:52:35 Leeds: this is what i have installed, http://s15.postimage.org/3tjsyoyq1/components.png Feb 28 08:52:38 am i missing something ? Feb 28 08:53:46 that looks ok enough... I don't use eclipse, so I dunno if there's anything else you need to do Feb 28 08:54:15 Open avd manager and create a virtual device Feb 28 08:54:28 Leeds: there is the ADT plugin Feb 28 08:54:30 for eclipse Feb 28 08:54:55 ya i need to create my AVD :) Feb 28 09:19:15 My Galaxy Nexus shipped! *does a little jig* Feb 28 09:21:08 lol Feb 28 09:24:41 woo Feb 28 09:26:21 :D Feb 28 09:28:08 mornin' Feb 28 09:29:03 need to create a dual-fragment tablet application, gallery-style on the left, webview on the right Feb 28 09:29:05 heya Feb 28 09:29:18 gallery-style is based on framelayout Feb 28 09:29:18 ? Feb 28 09:30:01 question on intents. from dev guide: If the filter fails to list any actions, there is nothing for an intent to match, so all intents fail the test. No intents can get through the filter. - why would an intent filter NOT lis an action? http://developer.android.com/guide/topics/intents/intents-filters.html Feb 28 09:31:41 It wouldn't Feb 28 09:32:35 okay - not sure why they needed to say it like that in the guide - very confusing as next example on category does not list an action... Feb 28 09:32:45 lut4rp, woooo Feb 28 09:32:46 congrats Feb 28 09:32:56 i got mine 2 weeks ago or so Feb 28 09:32:58 on the 14th Feb 28 09:33:03 i would totally love to volunteer to help on that Feb 28 09:33:10 EXACTLY 2 weeks ago Feb 28 09:33:12 Well, it says right above that a filter must specify an action Feb 28 09:33:13 I have a TextView, tv. I call setContentView(tv), which makes my screen display my TextView. After a couple of other events happen (I make a network connection and launch a service), I want to close that view and return the user to the home screen - how do I do that? Feb 28 09:33:15 i opened the box at 5:30 Feb 28 09:33:21 If either the filter or the intent doesn't: this happens Feb 28 09:33:32 I think it makes sense Feb 28 09:36:45 for explicit - the filter is ignored. the rule states there must be at least one action. so if only categories listed, as in example, it would fail test Feb 28 09:39:35 hi Feb 28 09:39:46 The example only covers categories Feb 28 09:39:46 hi Feb 28 09:39:51 . . . means fill in the blanks Feb 28 09:40:30 It's to give an understanding of intents and intent filters Feb 28 09:40:42 To describe categories, there's no reason to include actions as well Feb 28 09:44:21 hi in my app im using camera intent to let the user record a video and on some devices the resolution seems to be restricted to the maximum resolution of the front camera (video being recorded with back camera) can i specifiy the camera to use with the intent? Feb 28 09:44:23 but the example would never pass Feb 28 09:44:36 an XML comment could clairfy Feb 28 09:46:53 To describe how to define tags, there's no reason at all to include an Feb 28 09:47:22 There's a full example further down which puts it all together Feb 28 09:47:35 hello, i am trying to link my app with the facebook android library. i am using the command line tools - eclipse doesnt work for me. using command line, i generated library ant makefile, and upgraded my project to reference library. on compile, the java compiler invoked by ant cant see facebook library imports... Feb 28 09:47:43 This section ONLY touches categories Feb 28 09:47:48 please suggest any thing to debug this Feb 28 09:47:56 So why include something which is relatively unrelated Feb 28 09:48:32 If you got to categories, you also read about actions. You can't just disregard what you read previously because they don't mention it in a specific section Feb 28 09:48:41 Simon, this is not a section on categories alone it is about intent filter matching, there is no action in the intent filter - unless i have misunderstood regardless of what you put for category it would never get applied Feb 28 09:49:18 The headline is intent filters Feb 28 09:49:32 They discuss categories in the "Category test" section Feb 28 09:51:03 You could argue that they should include the whole manifest, since it wouldn't work without it Feb 28 09:51:16 It's just not relevant when discussing categories Feb 28 09:53:57 http://source.android.com/source/life-of-a-patch.html Feb 28 09:54:04 Impressive flow chart lol Feb 28 09:55:05 Tho it's missing imo: Author runs automated test suite on local patched code? Feb 28 10:06:15 sorry if I offended you SimonVT - but i stand by what i am saying, it can be confusing when someone is bring to learn the logic Feb 28 10:06:25 Not offended Feb 28 10:06:28 I just don't agree =) Feb 28 10:08:57 Hi, Is there any way we can call a method in a parent activity and finish this child activity Feb 28 10:09:33 No standard ways Feb 28 10:11:01 Looks like Samsung released a new S Pen SDK on their site. Feb 28 10:21:02 Hey :) I'd like to draw my game on a surfaceView, but some graphics elements might be over it, possibly transparent. Will it work, or do I need a TextureView ? Feb 28 10:21:35 I don't need super-high performance, so the performance hit from textureView isn't that big a deal Feb 28 10:22:26 Hi. Feb 28 10:23:09 the the the parameter in xml animation be set programmatically? Feb 28 10:23:46 http://developer.android.com/reference/android/view/animation/Animation.html Feb 28 10:23:53 there's a bunch of handy methods Feb 28 10:29:57 I'm getting this message: "Android requires compiler compliance level 5.0 or 6.0. Found '1.7' instead. Please use Android Tools > Fix Project Properties" Feb 28 10:30:03 But I don't see any android tools menu option to do this Feb 28 10:30:34 plethora of tools but nary a one for the task surely an an embarrassment of riches Feb 28 10:32:10 I had to right click on the project to find it. Feb 28 10:32:40 heck I could have shitted my underpants and used the refuse to grow wheat to feed the hungry ... i'll do it by hand ... heheheh:-X Feb 28 10:33:19 SharkMonkey yes that's where it's found :) in eclipse at least Feb 28 10:43:37 I'm extending AlertDialog, and displaying a couple of EditTexts. Why doesn't the keyboard appear when I give one of them focus? Feb 28 10:52:53 mmm I'm struggling with a custom fragment containing a gridview instead of a listview... can anyone please put me in the right direction? Feb 28 10:57:29 Hi all, could u guys suggest me any actual informatoin about android screens resolution statistics, pls? I found nothing more than this http://www.enterra-inc.com/techzone/android_statistics/ . I need it to decide which resolution to support in my app. Im interesting in both phone and tablets, thx Feb 28 10:57:58 Defuera: are you making a game? Feb 28 10:58:15 Supporting discrete resolutions is a bad thing to do in most cases. Feb 28 10:58:33 Anyone know a good guide for ActionBars? Every guide I find assumes you know 90% of the Android api already. Feb 28 10:58:39 If your app isn't necessarily tied to discrete resolutions, it's much better to think about scaling layouts. Feb 28 10:58:59 Moopz: the action bar guide on d.android. com Feb 28 10:59:11 http://developer.android.com/resources/dashboard/screens.html Feb 28 10:59:36 Is it a standard way when we use tabs in the same activity and not have different activities for different tabs. Feb 28 11:00:00 mikey|n1: http://developer.android.com/guide/topics/ui/actionbar.html ? I don't think it's very well done. Feb 28 11:00:42 Moopz: what in particular are you after? Feb 28 11:01:17 If you use the existing/legacy menu api, your action bar will work fine Feb 28 11:01:54 I want to use the ActionBar for Tabs. But frankly, I can't make heads or tails of what they're saying in the guide. Feb 28 11:04:28 Moopz: I've not used tabs for it before, but there's sample code in Honeycomb gallery app Feb 28 11:15:46 HDroid, yes it's a game. The problem is that my disigner are not very happy with scaling Feb 28 11:16:55 Are you in a position to fire them? :P Feb 28 11:17:24 Of course they're not happy, it's hard. Feb 28 11:18:08 It's a reality of the mobile space, though, especially Android. Feb 28 11:18:12 So you want to target the few phones that are popular now, and most likely obsolete in half a year? :p Feb 28 11:19:03 Yes, this is the worst timing to be targetting a certain resolution, most is 800x480 now but it's going to shift to 720p variants in a couple of months, not to mention the gazillion different tablet resolutions. Feb 28 11:19:29 With Android you want your UI to be scalable from the beginning Feb 28 11:20:04 Sure, you can limit yourself to a range, like removing support for small/low density screens, but you most certainly do not want to target specific resolutions Feb 28 11:20:42 Mo, im not able to fire tham, it's kind a opensourse project) Feb 28 11:23:03 Ok, maybe i should use at list two different packages of bitmap, like drawable-phone (scale from 320x240 to 800x480) and drawable-tablet (someResolutions) Feb 28 11:23:50 http://developer.android.com/guide/practices/screens_support.html Feb 28 11:23:53 You should do this Feb 28 11:24:17 Think density and physical size Feb 28 11:24:20 Not resolutions Feb 28 11:24:57 Ok, I'll study this, thx, SiminTV. Feb 28 11:25:03 And phones have higher resolution than 800x480 Feb 28 11:25:07 Especially new phones Feb 28 11:25:11 And some tablets might have lower Feb 28 11:25:22 (than the high-res phones) Feb 28 11:25:23 I just want everyone be able to try the game) Feb 28 11:38:12 jpeter-jiang, ask here Feb 28 11:38:15 not in #android Feb 28 11:38:22 is ok Feb 28 11:38:26 thanks Feb 28 11:41:24 hey i have a custom view (extends View) - on longpress i want to have a listview showing up (like rightclick menu) how to draw that listview? Feb 28 11:44:10 does anyone know about any image effect library for android? Feb 28 11:44:49 eeennnnnnnope Feb 28 11:45:48 Hi all Feb 28 11:45:59 Hi all Feb 28 11:47:06 anyone? Feb 28 11:47:44 the_ellipse: you could write a view as overlay which extends ListView Feb 28 11:47:51 the_ellipse: show dialog with listview Feb 28 11:49:23 thanks Feb 28 11:49:42 i think i'll try the overlay version because maybe i want some other overlays aswell Feb 28 11:49:49 can you code your in-app billing? Feb 28 11:50:01 or is it against googles termsn and conditions? Feb 28 11:51:07 jiduvah: you can Feb 28 11:51:57 anybody had an experience using alternatives to googles in-app billing? 30% seems a little high for me Feb 28 11:53:56 mhh Esox you have any further tipps for me? Feb 28 11:56:30 the_ellipse: look into android.widget.PopupWindow Feb 28 11:56:32 Esox: it seem you have to use in-app billing https://www.x.com/developers/paypal/forums/paypal-mobile-xspace/paypal-app-model-android-legal-android-market#answer-186985 Feb 28 11:56:50 If you distribute on market, you must use Googles in-app billing Feb 28 11:57:29 ty Feb 28 11:57:47 SimonVt: such a sting Feb 28 11:59:00 I wonder if, it is violating the t's and c's if a user was to buy content on a website then the content is pushed to the phone Feb 28 12:00:05 the_ellipse: if you have more in-depth questions on the topic, let me know Feb 28 12:23:21 Can anyone recommend me a landline android phone beyond archos'? Feb 28 12:26:11 <------ is bored Feb 28 12:26:40 maodun, wrong channel Feb 28 12:26:41 #android Feb 28 12:29:38 we are suppose to get hit with 6"-12" of snow today. Thinking I should go wait in line at the liquor store this morning, buy a case of beer, and lock myself inside all day while I pound away on some code. Anybody want anything while I'm out? Feb 28 12:32:02 does comments from previous apk versions show up on newer apk version releases? Feb 28 12:32:19 Yes Feb 28 12:32:44 that sucks in a way....what if you correct the issues they were bitching about? Feb 28 12:33:12 can i contact them some how to see if they will remove their comment if possible? Feb 28 12:34:12 nope Feb 28 12:34:20 What other good markets should I put my apps on besides Android Market, and Amzaon?? Feb 28 12:37:21 happy leet Feb 28 12:59:47 Hi guyes. I have a Android dev newbie. Is this the place to ask questions he could use? Feb 28 13:01:01 anyone? Feb 28 13:01:52 Hi guyes. I have a Android dev newbie. Is this the place to ask questions he could use? Feb 28 13:02:04 kwoot: yes... Feb 28 13:02:36 Ivru: Thanks. Will mail him the webchat URL (no irc through our proxy unfortunately). Feb 28 13:03:01 it's not looking promising... Feb 28 13:03:03 A webchat also uses a connection like a standalone irc client Feb 28 13:03:16 or it is Feb 28 13:15:00 Esox: not necessarily; it could use ajax to talk to a local server which then proxies the irc connect. Feb 28 13:15:03 *connection Feb 28 13:15:17 "local" to the hosting site anyway :P Feb 28 13:16:24 lov: Tho, that's a really specific case. I don't think this is the case here Feb 28 13:17:18 * lov shrugs Feb 28 13:38:30 Hey there. Feb 28 13:38:48 Hi Feb 28 13:39:34 I'm a bit confused about Robotium. I have an ImageButton and I want to click on it, but solo.clickOnImageButton requires an index. How do I figure out the index of the imageButton and why can't I simply hand over the image Button to the clickOn-Method? Feb 28 13:40:22 This is my first robotium test, so maybe I'm doing it wrong. Feb 28 13:41:06 UnbertKant: What you can try is to use clickOnView() Feb 28 13:41:40 Thank you kakazza, I'll try that... Feb 28 13:43:06 ImageButton imageButton = (ImageButton) solo.getView(imageButtonId); Feb 28 13:43:09 solo.clickOnView(imageButton); Feb 28 13:43:17 Also, I can't figure out how to run individual tests, it seems like I always have to test the whole maven project, instead of just running a single test file. Why is that? Feb 28 13:43:56 You're using maven? Hmm, can't help you there. When I want to run individual tests, I use Eclipse. Feb 28 13:44:09 I do too. Feb 28 13:44:37 Hm, the clickOnView hat the weird result that it did something entirely different. Have to check some code... Feb 28 13:44:55 Did you try the code I gave you above? Feb 28 13:45:00 (Problem is I use buttons inside of a listView and I want to click the button inside of the third ListView entry.) Feb 28 13:45:11 Oh Feb 28 13:45:37 It's all very dynamic. Feb 28 13:45:50 Ah, so you don't want to hardcode it for the test, right? Feb 28 13:46:34 I wrote a clickOnListItemButton(int index) method, that createes a future task which it runs on the UI thread and which SHOULD find the image button. It then calls solo.clickOnView(ImageButton) Feb 28 13:46:37 hello, is there a way to add layout on top of the button? Feb 28 13:46:44 Well, can I actually hardcode it? Feb 28 13:47:39 .clickOnImageButton(9); Feb 28 13:47:42 ;) Feb 28 13:47:42 I'm all new to tests and robotium, so I'm not sure I'm doing it the right way at the moment. Feb 28 13:47:54 ...if I know it's the 10th image button in existence? Feb 28 13:48:19 Yes. Not very elegant and will probably break if the test is altered... Feb 28 13:48:31 okay, I guess I'll test it like that and make sure I only click buttons that are on the top of the list so I don't have to worry about scrolling. Feb 28 13:50:14 We are using Robotium in our project, we started out like that too. Once you become more familiar with what solo can offer and how it works together, it becomes easier to make your tests more dynamic. Feb 28 13:50:29 I can also highly recommend their Google Group, very responsive. Feb 28 13:53:24 Thank you! Feb 28 14:24:50 Anyone here used protobuff ? Feb 28 14:24:56 Can any German-speakers translate this please? Feb 28 14:24:58 Trotzdem frage ich mich warum die App wenn sie läuft 10 MB Ram verbraucht Feb 28 14:25:41 something, like he asks himself why the app uses Feb 28 14:25:43 10 mb ram Feb 28 14:25:51 Translate.Google.com Feb 28 14:25:55 when it launches Feb 28 14:26:05 yeah cr5315 but it doesnt come up so clearly Feb 28 14:26:12 Ah Feb 28 14:26:45 Dono what trotzedem is Feb 28 14:26:47 i think hes saying it uses 10mb of ram, but he gave 3 stars so i'm not sure if he saying something good or bad Feb 28 14:27:17 but 10mb of ram is lower than any apps are using on my phone Feb 28 14:27:17 Oh those Germans Feb 28 14:27:18 "Trotzdem" I ask myself why the app when it launches uses 10 mb ram Feb 28 14:27:33 something like that Feb 28 14:27:35 I like that there is a "don't ask to ask" line in the info... Anyway, I'm going to be interviewing for an Android dev position. Right now my qualifications are intermediate web dev. I can set up a Linux web server with apache, mysql, & OpenSSL for setting up SSL certs. That is what got me the interview. I am in Ohio where entry level stuff starts around $30k a year in general. Feb 28 14:27:36 thanks shroomyreader Feb 28 14:28:21 Trotzdem in this context could be translated as "Even so," or "Anyway," Feb 28 14:28:36 Like, "I like the app, it's great, but anyway, why does it use 10MB RAM" Feb 28 14:28:47 heh, thanks Feb 28 14:29:02 Back end stuff with a shift in to Java dev from PHP & SQL which is what I mostly do. I am by far not a web designer... What is the going rate for a an entry level dev since the occupational outlook handbook was less than helpful? Feb 28 14:29:27 zerobeholder: do you actually have android dev experience? Feb 28 14:29:36 or any mobile dev? Feb 28 14:29:37 zerobeholder: slightly mroe than an entry level dev in other areas Feb 28 14:29:52 unless you have 0 experience then its basically the same Feb 28 14:29:54 zerobeholder: you'll probably get a higher rate than other areas. I don't know what the prices are in Ohio. Feb 28 14:29:59 Not a shred. I have wrapped a PHP app in an app that masks web pages making them look like native apps. Feb 28 14:30:04 other areas of development that is Feb 28 14:30:06 uhggghhhhh Feb 28 14:30:07 ok, so Feb 28 14:30:17 odds are you're going to bomb your interview unless they KNOW you don't have java/android experience. Feb 28 14:30:24 have you even been to d.android.com yet? Feb 28 14:30:28 I have been up front with that. Feb 28 14:30:33 alright, well Feb 28 14:30:41 i guess ohio probably isnt a hot bed of mobile devs Feb 28 14:30:45 have you done java before? Feb 28 14:30:50 have you at least done the OOP part of PHP? Feb 28 14:31:04 do you at least know what OOP is? Feb 28 14:31:13 A very little Java playing with it and yes on PHP OOP. Feb 28 14:31:34 well I guess that's not too bad but you really need to know java before you start doing android dev. Feb 28 14:31:59 your earlier experience with SSL certs isn't really going to translate whatsoever Feb 28 14:32:33 So, $35k would be reasonable. Start with $40k and let it get whittled down... Feb 28 14:32:34 I can tell you that there's an absolute glut of Android jobs in general without people to hire, so if you know android and you're good, you'll get paid pretty well Feb 28 14:32:40 yeah I have no fucking clue Feb 28 14:32:47 I don't know what jobs go for in ohio Feb 28 14:32:57 zerobeholder: honestly, i'd move out to mountain view for a few years, get ajob with google on the android platform then come back to ohio when you have some experience in Androiding Feb 28 14:33:07 Anyone here ever use Libgdx? Feb 28 14:33:25 zerkz: a bit, it's pretty neat, but I can't really answer questions about it. Feb 28 14:33:54 A lot less than most other places, is what everything pays. Then again you can get a really nice 2,000 sq. ft. house with five bedrooms for $300,000 or so here. Feb 28 14:33:59 Ah ok, i was looking into getting into it. I've completed one android app thus far, but I definitely wanted to make a few game prototypes or something... just didn't know how big the learning curve was. Feb 28 14:34:29 Thanks for the insights. Feb 28 14:50:00 Would it be that easy just to get an Google android job? Feb 28 14:56:56 Blergh, who broke market uploading Feb 28 15:10:52 I dont know where to study :( Feb 28 15:20:18 So, I just wrote my first actual Java Android app. It was a little bit of a bear getting eclipse up and running again on Linux since it wanted updates for me to follow a tutorial. Feb 28 15:20:50 I feel a lot better. Now I just have to get the .apk out of eclipse... Feb 28 15:22:49 hooray. Feb 28 15:27:42 Hello guys, this is off topic some how, I am looking for some quizzes or QCMs that concerns android development basics, i need those to perform some tests to a new-by android developer , any link or a key word would be appreciateed Feb 28 15:48:20 I emailed it to myself, for a simple 13kb package it certainly is taking it's time to install. Feb 28 15:49:37 Boop. Very nice. Feb 28 15:52:02 I've downloaded android sdk for Linux, but the tgz file does not include the platform-tools directory. How do I get this? I don't want all the eclipse stuff, just adt. Feb 28 15:52:54 alrx3030, start tools/android to download the versions you need Feb 28 15:53:24 does anyone know of any tricks to have a repeating background that's clipped to match the required size (in stead of the size being stretched to accomodate the background tile size)? Feb 28 15:53:31 iivvoo: thanks alot :) Feb 28 15:55:50 iivvoo: Create a bitmap in xml and set tilemode Feb 28 15:56:05 SimonVT, that's what I have Feb 28 15:56:19 but it stretches the views for which its the background Feb 28 15:57:01 oh, uh.. Dunno :p Feb 28 15:57:55 Make smaller tiles :p Feb 28 15:57:57 in my case a listview entry - if I change the background from a simple color to the background bitmap, it'll get larger Feb 28 15:58:06 right, considered that Feb 28 15:58:17 at least it allows me to make it someone elses problem :) Feb 28 16:02:52 does it matter on which view i set keepScreenOn? Feb 28 16:07:34 anyone getting Conversion to Dalvik format failed with error 1 with r17? Feb 28 16:07:42 debug build / no proguard Feb 28 16:07:54 java.lang.IllegalArgumentException: already added: Lcom/zynga/sdk/util/R$attr; Feb 28 16:07:58 and other errors like that Feb 28 16:17:02 canadiancow|work: If you have the zynga sdk referenced in 2 android library projects you will have this error Feb 28 16:17:51 it is a library project though Feb 28 16:19:13 oh wait now it looks like it's building Feb 28 16:19:15 ~_~ Feb 28 16:19:32 in your main project, open the "Librayry Project" node and look into each jar where com/zynga/sdk appear twice Feb 28 16:21:35 ok so how do i get around this Feb 28 16:21:53 you blame the ADT team Feb 28 16:23:00 is this new to r17? Feb 28 16:23:20 no Feb 28 16:24:43 ok because my colleagues using r16 can build Feb 28 16:25:29 What version of java does android use ? Feb 28 16:29:28 1.5 Feb 28 16:29:35 essentially Feb 28 16:29:54 Thanks Feb 28 16:30:04 not really Feb 28 16:30:09 im pretty sure its been 1.6 since like donut Feb 28 16:31:25 I'm trying to log into a site using HttpsURLConnection, but it's not working because it depends on cookies (and some redirects) Feb 28 16:31:30 Can I use the CookieManager to fix that ? Feb 28 16:32:49 canadiancow|work: you sure? Feb 28 16:32:59 yes Feb 28 16:33:03 they don't make it obvious which one it is Feb 28 16:33:05 link? Feb 28 16:33:12 go try building with 1.6... Feb 28 16:33:33 what? Feb 28 16:39:56 Trying to send a message from the service to a client with an update... Feb 28 16:41:19 hi, when I've loaded a bitmap to openGL with GLUtils.texImage2D(...) can I call bitmap.recycle() afterwards? Feb 28 16:41:22 canadiancow|work: this jar behavior is new to SDK v14+ Feb 28 16:41:42 does anyone know where the market:// scheme is fully documented? Feb 28 16:41:44 lov, it builds on 16 Feb 28 16:41:45 not 17 Feb 28 16:41:53 canadiancow|work: I can definitely build with 1.6 source compliance. 1.7, otoh, will barf. Feb 28 16:41:58 canadiancow|work: ah, maybe something is freshly broken Feb 28 16:41:59 swell Feb 28 16:42:03 I'll hold off on upgrading...... Feb 28 16:42:08 (as usual) Feb 28 16:42:24 snooplsm: http://developer.android.com/guide/publishing/publishing.html#marketintent Feb 28 16:42:33 Leeds: thanks bro Feb 28 16:42:44 np Feb 28 16:42:49 Do i create a Bundle and put all the stuff in a Message Instance and call setData()? Feb 28 16:43:38 snooplsm: it's my understanding that the market:// scheme is deprecated and you should use the http:// scheme with setPackage("com.android.vending") Feb 28 16:44:28 lov: https://groups.google.com/group/adt-dev/browse_thread/thread/6997dd7e9d7d8a14 Feb 28 16:44:29 :P Feb 28 16:44:37 evancharlton: thanks, i'll just stick with market tho Feb 28 16:44:50 just in case they have old market installed Feb 28 16:45:14 evancharlton: docs say "you should always use http://market.android.com/ URIs when creating a link on a web page. When pointing to your apps from within your Android app, use the market:// URIs in an intent" Feb 28 16:47:04 i tried opening market http on phone and it didn't work Feb 28 16:47:09 snooplsm: the http:// scheme is probably the best simply because if you're on a device w/o android market (i.e. kindle fire) it won't barf. Feb 28 16:47:19 snooplsm: pastebin plzkthx Feb 28 16:47:24 also qualify "it didn't work" Feb 28 16:48:01 canadiancow|work: yeah, that's a-mea Feb 28 16:48:03 ah lov it's http://code.google.com/p/android/issues/detail?id=26136 Feb 28 16:48:09 issue is already assigned Feb 28 16:49:50 who wants to star that issue for me? :) Feb 28 16:49:55 lov: don't worry i'm handling amazon market too Feb 28 16:50:09 People using ActionBarSherlock in here? Any tips on getting started with it? Feb 28 16:50:10 we have a pay and lite version and wanted to ensure that both apps show up to give user a choice Feb 28 16:51:06 why do I get this error? http://pastebin.com/B4Zg3A8V Feb 28 16:54:02 eradicus: fucked if I know, clean and rebuild. Feb 28 16:56:47 how do you downgrade ADT Feb 28 16:57:39 uninstall and reinstall? :F Feb 28 16:58:05 lov: how would you send a message from a server to a client? Feb 28 16:58:32 I mean service not server Feb 28 16:58:47 t432: callbacks probably Feb 28 16:59:03 t432: broadcast intents are also valid albiet asynchronous Feb 28 16:59:43 just bear in mind that if you ever expect a client to connect to the server from another process, you'll want to handle death notifications, etc. Feb 28 17:13:31 lov: I'm going with the Messenger option Feb 28 17:13:39 sure, have fun Feb 28 17:23:14 i never understand how anyone prioritizes bugs Feb 28 17:23:22 "r17 wont build library projects anymore" is medium Feb 28 17:26:29 Does anyone know of any opensource (or free) cross-platform frameworks/engines/platform/sdk/etc like Airplay, MoSync? Feb 28 17:27:03 ...for opengl-based applications like games (not just UI frameworks) Feb 28 17:27:11 use r16 Feb 28 17:27:24 whats that Feb 28 17:27:50 AlexRamallo: he was talking to someone else :) Feb 28 17:27:58 oh.. :( Feb 28 17:31:20 hi how do i sim unlock a moto atrix 4g on t-mobile? Feb 28 17:31:54 AlexRamallo: are you looking for something that will work on iOS too? Feb 28 17:32:03 or just desktop and android? Feb 28 17:32:05 spanner3003: #android-root Feb 28 17:32:10 spanner3003: not here Feb 28 17:32:14 iOS Feb 28 17:32:19 C Feb 28 17:32:23 AlexRamallo: Unity? Feb 28 17:32:29 because I spent a really long time writing my own engine in java Feb 28 17:32:32 oh, opensource. Feb 28 17:32:34 oh there's that too yeah Feb 28 17:32:35 welp. Feb 28 17:32:41 ... Feb 28 17:32:47 is unity free for commercial use? Feb 28 17:32:51 yeah, so, you can go with proprietary projects, or you can get a boatload of half-finished garbage :P Feb 28 17:32:53 nope Feb 28 17:33:02 AlexRamallo: check the terms, it's free for < $X Feb 28 17:33:05 i'm talking to t-mobile now and they want me to pay £15 but i have to of had a sim active in it for 6 months and money on it :( Feb 28 17:33:07 I think it's $100,000 Feb 28 17:33:12 spanner3003: GO TO #ANDROID-ROOT Feb 28 17:33:17 spanner3003: THIS IS THE WRONG CHANNEL Feb 28 17:33:18 I think to build for android/ios you need a paid version Feb 28 17:33:24 csaunders: oh really? Feb 28 17:33:32 oh sorry lol Feb 28 17:33:37 If I am switching from simple app development to developing the android source is there a way to easily integrate my current sdk into the newly downloaded source? I noticed in the repo that the sdk and ndk are both part of the current sources. Feb 28 17:33:46 lov: pretty sure, unless the terms changed since I last looked at it Feb 28 17:33:51 csaunders: poo. Feb 28 17:34:00 lol Feb 28 17:34:40 thanks lov Feb 28 17:43:37 trimmer, aosp source dies not include sdk nor ndk binaries Feb 28 17:48:08 pfn, part of the installation process described at source.android.com is make fastboot adb... I assume I will also be able to make the rest of the necessary tools myself from source? Am I mistaken? or Is there an easier way for me to integrate my current sdk and ndk? Feb 28 17:48:56 you can make it yourself, but if you already downloaded the sdk and ndk, why bother Feb 28 17:49:41 unless you like wasting time cpu and power Feb 28 17:51:17 I can't seem to find a page that shows how I can change the application's language Feb 28 17:51:24 I have 2 other strings.xml in other languages Feb 28 17:51:43 any recommendations for getting testing hardware for 2.3.3+ ? Feb 28 17:52:29 buy it Feb 28 17:52:46 well yes but what are reasonably widely used and representative models Feb 28 17:52:48 droid x? Feb 28 17:56:35 hi Feb 28 17:59:03 in my UpdateWidgetService, can I reuse variables from my main activity ? if not, can I reuse variables coming from my UpdateWidgetService in the main activity ? if not, how should I share variables between these two pieces of code ? Feb 28 18:00:38 pfn, I currently have a patched binary from HTC's website that works on my system along with the tools that came with the sdk and ndk. If the source instructs to build new fastboot and adb, then it stands to reason the resto of the tools will need to be rebuilt. I am just trying to not have to waste that time and use what I already have. Feb 28 18:02:33 pfn, is that a possibility or should I want to rebuild my tools? I am just looking for a little input from anyone that has gone through this that may have some experience to make this a smoother transition for me that it may have been for them. Feb 28 18:04:57 for my application i use the @android:style/Theme.Holo.Light theme, but now a single activity should just display a dialog with the theme applied, but always the background is drawn in white. i guess i have to extend that theme and remove the background color? Feb 28 18:10:37 You want an activity to look like a dialog? Feb 28 18:13:55 SimonVT, the activity shouldn draw a white background the activity should just display a dialog with the theme named above Feb 28 18:14:56 So you want an invisible activity that does nothing but display a dialog? Feb 28 18:15:02 Why not just make the activity look like a dialog? Feb 28 18:15:24 or just use @android:style/Theme.NoDisplay Feb 28 18:15:54 evancharlton, and then apply the theme to that dialog programatically by new Dialog(this, R.style... ? Feb 28 18:19:26 drindt: no, apply that to your activity in your manifest Feb 28 18:20:38 evancharlton, have it but just the action bar is hided, the background is still white and the title bar is visible i thought Theme.Translucent.NoTitleBar is what i need, but then the dialog is dark from because the light theme is not applied. Feb 28 18:24:13 drindt: ah. I'd ditch the dialog and just use an activity themed like a dialog (@android:style/Theme.Dialog or whatever) Feb 28 18:24:46 evancharlton, you have done that already? Feb 28 18:24:57 what do you mean? Feb 28 18:25:14 i have made what you suggest, but its not working. Feb 28 18:26:01 I think you need to be more clear on what you are trying to get as an end result Feb 28 18:26:10 Hey dudes. Is there any way for me to set the equivalent of window.setFormat() in a widget? I'm using a few gradients in my Widget, and they look banded and awful. Trying to implement the suggestions here: http://stackoverflow.com/questions/2928101/android-using-linear-gradient-as-background-looks-banded Feb 28 18:27:02 When an application is returning to the foreground, is there a good way to force a specific activity (login screen in my case) to be displayed, but following the dismissal of that screen, display where the user left off? Feb 28 18:27:30 developernotes: onResume() { startActivity(..) } Feb 28 18:27:33 I looked at FLAG_ACTIVITY_CLEAR_TOP, but it looks like it will dismiss all of the other remaining old activities Feb 28 18:28:09 evancharlton wouldn't that create a loop? Feb 28 18:28:20 developernotes: onResume is called whenever your Activity is coming into the foreground (even when it's starting for the first time). So you can check some value (isAuthenticated) and if false, start the auth activity. Feb 28 18:28:26 t0mless: yes. it also wouldn't compile. It was not intended to be complete. Feb 28 18:28:38 :p Feb 28 18:29:09 evancharlton: hmm, I'll take a look at that - thanks Feb 28 18:37:14 evancharlton: won't onResume always be called following onStart? Is there a way to differentiate in onResume whether or not the app is coming back to the foreground vs. just a lifecycle call? Feb 28 18:38:15 lifecycle call? Feb 28 18:38:17 wtf is that Feb 28 18:38:20 developernotes: you could use a boolean Feb 28 18:38:22 developernotes: your activity could have a field like "private boolean hasStarted = false" Feb 28 18:38:39 developernotes: in onResume, set it to true and pass that value to yourself in onSaveInstanceState. Feb 28 18:38:46 Jug6ernaut: http://developer.android.com/reference/android/app/Activity.html#ActivityLifecycle Feb 28 18:39:00 i know what the activity lifecycle is lol Feb 28 18:39:06 developernotes: I think the confusion stems from that *every* call is a "lifecycle call" per se Feb 28 18:39:14 starbuckt: sure, was just curious if there was any other way. Feb 28 18:39:16 just because it's the first time doesn't mean it's not part of the lifecycle. Feb 28 18:39:35 readme: yep, I realize that. Feb 28 18:40:07 thanks for the feedback Feb 28 18:44:03 i'm trying to move an APK from phone A to phone B. i used the market to download the apk to phone A. when i look in phone A's /data/app I only see package.zip but i'm expecting ot see package.apk is there another location apk's are stored? Feb 28 18:44:24 /data/app is where they are stored Feb 28 18:44:39 dont be a pirate? Feb 28 18:44:42 D: Feb 28 18:46:04 +1 Feb 28 18:46:25 modroid: why exactly can't you use market on phone B? Feb 28 18:49:00 how do i capture a portion of an image in a surfaceholder... something like qrdroid does.... i also want the user to see the crop area.. please help Feb 28 18:52:21 tried looking at the xzing source SeaOrifice? Feb 28 18:52:22 http://code.google.com/p/zxing/source/browse/trunk#trunk%2Fandroid%2Fsrc%2Fcom%2Fgoogle%2Fzxing%2Fclient%2Fandroid Feb 28 18:52:44 utsl Feb 28 18:53:54 how can I avoid android:textColor in the activity theme from screwing with the context menu text color? Feb 28 18:55:30 set the popupmenustyle? Feb 28 18:55:40 I forget it's exact name Feb 28 18:56:27 veeti what API level? Feb 28 18:56:31 Or simply don't apply a global textcolor, but only target where you want it changed Feb 28 18:56:35 when I call getTransformation() on an animation I don't seem to get accurate results in the matrix that is populated Feb 28 18:56:50 t0mless: building for 3.2, minimum target is 2.1 Feb 28 18:57:08 t0mless: thanks a lot buddy.. i almost forgot it had an android version too.. :) Feb 28 18:57:21 ? Feb 28 18:57:37 What had an android version too? Feb 28 18:57:45 zxing, apparently. Feb 28 18:58:01 i had used zxing only for desktop applications Feb 28 18:58:06 ahh Feb 28 19:02:30 If I setup an animation with a duration of 1 second. shouldn't getTransformation() at 500ms return a matrix that I could concat onto a canvas and see the animation at half way? Feb 28 19:05:43 nuxusr: http://developer.android.com/reference/android/view/animation/Animation.html#getTransformation(long, android.view.animation.Transformation) ---- according to the documentation it does not return a matrix to you. you pass a matrix to it. Feb 28 19:06:08 readme: yeah, sorry the matrix that is populated* Feb 28 19:06:10 hm, outTransformation Feb 28 19:06:38 the matrix that is populated has bad data Feb 28 19:06:50 is it returning true? Feb 28 19:07:32 I think my problem was passing in the milliseconds from 0 Feb 28 19:07:34 getTransformation(AnimationUtils.currentAnimationTimeMillis() + (long) currentMsCount Feb 28 19:07:38 seems to have done the trick Feb 28 19:07:49 oh, good Feb 28 19:12:05 anyone know why/how a SimpleCursorAdapter with a working Cursor bound to it would not ever change the position of the cursor (e.g. in every call to GetView() cursor.getPosition() is 0)? I've copied this code from several other working classes in my app, and I can't find a single line difference between one that works and one that doesn't... Feb 28 19:13:31 Hard to tell without code Feb 28 19:14:19 fair enough. I'll try to package up some code Feb 28 19:14:32 Well, one reason could be that you're overriding getView, which you're not supposed to Feb 28 19:14:40 Cus, you know, that's where it moves the cursor Feb 28 19:14:46 ha Feb 28 19:15:07 PeteS, pastebin will do Feb 28 19:15:18 not supposed to override getView? since when? Feb 28 19:15:32 PeteS, if you override it, make sure you do what it does :p Feb 28 19:15:32 Since.. always Feb 28 19:15:42 If you extend CursorAdapter, you override newView and bindView Feb 28 19:15:54 If you use SimpleCursorAdapter, you just override bindView Feb 28 19:16:19 It's simple cus it handles view instantiation (newView) Feb 28 19:17:14 crap, and there's my typo (on movetoposition() call) thanks guys Feb 28 19:17:32 but doesn't bindView only cover initially constructing the row? what if I want to customize what it looks like? Feb 28 19:18:26 What is the correct way to implement something that needs to run in the background of the application periodically? I will be cleaning out a custom cache... so to speak. Feb 28 19:19:16 roger_padactor, i'm not sure if it's correct, but i hooked an alarmanager up to a service to do something similar Feb 28 19:19:40 The row view is constructed in newView Feb 28 19:19:45 You then bind your data to it in bindView Feb 28 19:19:53 roger_padactor, if it's only something that runs while the app is running, a background thread is fine Feb 28 19:19:54 This also includes customization Feb 28 19:20:02 you can also use a Handler Feb 28 19:20:40 http://android-developers.blogspot.com/2012/02/new-app-stats-for-publishers-on-android.html Feb 28 19:20:42 wewt Feb 28 19:20:49 It's all pretty now Feb 28 19:22:39 sorry SimonVT, I guess I have some more to read about. it seems like most of the examples (and a video of a talk from Google) all deal with GetView, and it's really unclear what to use for a first-timer with list view stuff Feb 28 19:22:56 PeteS: That's cus they use BaseAdapter Feb 28 19:23:14 Hm yeah, not a lot of explanation in CursorAdapter Feb 28 19:23:27 Basically, you know the pattern of if (convertView == null) { do stuff } Feb 28 19:23:49 CursorAdapter handles that for you, and if convertView is null, calls newView Feb 28 19:24:04 gotcha, thanks Feb 28 19:25:35 Can you use action bar sherlock 4.0 with fragments? Feb 28 19:25:43 yes Feb 28 19:25:52 searching programmer /msg me Feb 28 19:25:56 use SherlockFragmentActivity and SherlockFragment Feb 28 19:25:58 SherlockFragmentActivity doesn't exist Feb 28 19:26:08 at least i cant find it Feb 28 19:26:10 you have to use the support lib from the website Feb 28 19:26:15 I am Feb 28 19:26:20 it's in there Feb 28 19:26:30 com.sherlockactionbar.app.SherlockFragment Feb 28 19:26:45 SherlockFragmentActivity is only if you pull from github Feb 28 19:26:55 If you downloaded RC1, you just use FragmentActivity Feb 28 19:27:05 oh Feb 28 19:27:09 well then ^ Feb 28 19:27:17 FragmentActivity doesn't show the ab Feb 28 19:27:31 how is calculated the locaciont.bearing? is it just using the north magnetic Feb 28 19:27:36 maybe i'm not configuring something Feb 28 19:27:36 Is there any way to make individual RelativeLayouts in a ViewFlipper clickable? They all have the same layout ID, so the click event isn't unique to each layout. Feb 28 19:27:39 Remember to use Theme.Sherlock Feb 28 19:27:41 It'll show Feb 28 19:27:44 Hey, bit of a beginner question I suppose, but how would I go about parsing a string from my main activity to a widget? What I need to do is have the onUpdate() method call a method in my activity class which returns a string. Not sure how to proceed. Feb 28 19:27:57 Even though looking in hierarchyviewer clearly shows they each have their own generated ID at runtime, and they are separate views. Feb 28 19:29:22 Moopz: Dig into Intents. Feb 28 19:30:58 Chronax: How would you do that? Isn't intents usually for when starting up an activity? Feb 28 19:31:43 You can't, Moopz Feb 28 19:31:48 Your activity might not even be running Feb 28 19:32:03 If you need to pass it data, use sharedpreferences or something Feb 28 19:32:11 hi Feb 28 19:32:12 Moopz: read about Services Feb 28 19:32:37 searching programmer /msg me Feb 28 19:32:54 So I need an entire service, just to parse a string? Feb 28 19:33:00 i need help with analyze source code of some app writen in java on android,anyone have time? priv me Feb 28 19:34:38 I was thinking to just do a global String with it in, since the widget only has to read it. No race conditions etc. Feb 28 19:36:39 Random question: anybody else who was in the fishtank program figure out anything interesting to do with the M4 box now that it's somewhat outdated? Feb 28 19:36:46 loveya: go try freelancer.com or something Feb 28 19:36:48 But I guess that wouldn't be the optimal solution? Feb 28 19:37:50 SharedPreferences will probably work for you Feb 28 19:38:35 Hey guys! Feb 28 19:38:46 How are you? Feb 28 19:39:12 Alright, will look into it. Thanks t0mless Feb 28 19:41:00 SimonVT: That's not true. Why can't you use a widget to open an activity, and pass data in the extras? Feb 28 19:41:16 I do it all the time, and it works fine ( though I am stuck on the above-mentioned ViewFlipper issue). Feb 28 19:46:13 how to (re)launch my main activity when clicking on its widget ? Feb 28 19:46:42 ooohhh the new market stats. Feb 28 19:46:53 http://hardware.slashdot.org/story/12/02/28/0423228/asus-transformer-drops-quad-core-in-favor-of-dual-core Feb 28 19:47:09 too right Feb 28 19:50:21 soc with built in lte is win Feb 28 19:50:23 massive massive win Feb 28 19:50:38 soc? Feb 28 19:50:45 system-on-chip Feb 28 19:50:48 lte? Feb 28 19:50:51 oh cool Feb 28 19:51:00 krait has built in lte? Feb 28 19:51:20 so the slashdot summary says Feb 28 19:51:26 considering it's from qualcomm, I'd expect it to Feb 28 19:51:40 http://eee.asus.com/eeepad/transformer-infinity/features/ Feb 28 19:51:52 I'm just psyched for the panel, can't wait for that Feb 28 19:52:31 1920x1200 Feb 28 19:52:41 I thought the transformer prime had that... Feb 28 19:52:44 hm that new market console is rather buggy Feb 28 19:52:57 whoa Feb 28 19:53:00 think it does pfn Feb 28 19:53:02 that's quite the tablet Feb 28 19:53:07 but still tegra 3, no? Feb 28 19:53:24 infinity are supposed to be krait, according to that slashdot summary Feb 28 19:53:30 I thought Feb 28 19:53:32 1280x800 apparently Feb 28 19:53:36 both, apparently Feb 28 19:53:49 Qualcomm MSM 8260A/8960 Snapdragon S4 Krait Dual-core 1.5Ghz CPU(3G / LTE) / Feb 28 19:53:52 NVIDIA® Tegra® 3 T33 Quad-core 1.6GHz (WiFi) CPU Feb 28 19:53:52 O_o Feb 28 19:54:04 oh Feb 28 19:54:05 wifi Feb 28 19:54:22 so you either get LTE or an awesome CPU Feb 28 19:54:30 that sounds reasonable! Feb 28 19:54:43 the krait is an awesome cpu Feb 28 19:54:52 the T3 is faster Feb 28 19:54:57 it's 28nm vs. 40nm Feb 28 19:55:01 clock speed isn't very relevant Feb 28 19:55:06 I thought krait was better than t3 Feb 28 19:55:17 the fact that it has double the cores, however, is Feb 28 19:55:18 benchmarks & power Feb 28 19:55:28 MDijkstra, yeah, when you have apps that'll use all 4 cores, sure Feb 28 19:55:37 I do like the concept of the standby core on the tegra3 Feb 28 19:55:46 that's a pretty great idea Feb 28 19:56:09 because quad core on the Android platform is super useful Feb 28 19:56:17 it _could_ be Feb 28 19:56:33 it's just not as much _today_ Feb 28 19:56:46 why not there's lots of multitasking going on Feb 28 19:56:52 .. not really Feb 28 19:56:52 not really Feb 28 19:56:56 very little Feb 28 19:56:59 there's a ui thread, then there's *other stuff* Feb 28 19:57:07 when tasks go into the background, they don't do that much Feb 28 19:57:10 there's a difference between hyperthreading and multi-processor. Feb 28 19:57:23 unless they change android to allow say, two apps open at once, I can't see >2 cores being all that good Feb 28 19:57:25 * pfn rarely uses 4 cores on his pc Feb 28 19:57:33 storkme: games Feb 28 19:57:36 wouldn't each core do hyperthreading? Feb 28 19:57:37 are dalvik threads within an app green or native? Feb 28 19:57:43 besides games I guess Feb 28 19:57:45 oGMo, native Feb 28 19:57:47 storkme: and future proofing for desktop mode Feb 28 19:57:58 'desktop mode' ? Feb 28 19:57:59 MDijkstra, since when are devices ever future-proofed Feb 28 19:58:01 given, the 1gb of RAM kind of limits that Feb 28 19:58:11 well games then could easily take advantage, or anything nontrivial, but certainly there's not much nontrivial today :p Feb 28 19:58:15 storkme: yeah, the thing has HDMI and USB Feb 28 19:58:22 why not use it as a PC? Feb 28 19:58:41 it'll run ubuntu Feb 28 19:58:43 get a real art app or something written and more cores is really nice Feb 28 19:58:51 oGMo, few games are multithreaded Feb 28 19:59:01 oGMo, generally 1 thread for rendering and 1 for game logic... Feb 28 19:59:01 pfn: many if not most games today are multithreaded Feb 28 19:59:10 if by multi you mean 2, sure Feb 28 19:59:20 pfn speaks truth Feb 28 19:59:20 sound and AI are often threads as well Feb 28 19:59:33 doesn't matter if they're doing nothing 95% of the time Feb 28 19:59:51 sound is a thread that is time-bound, so it doesn't matter Feb 28 19:59:57 in any case, something _non_trivial, that would be running filtering or similar would scale up nicely .. sadly there's nothing like that today Feb 28 20:00:22 oGMo: some engines are pretty heavily multithreaded Feb 28 20:00:25 maybe when AR tech kicks off a bit Feb 28 20:00:28 source, unreal engine Feb 28 20:00:30 both are Feb 28 20:00:32 right Feb 28 20:00:52 i don't know about those specifically though, i didn't think source was particularly Feb 28 20:00:58 pfn: ok, how do you use your "async" function in the conversions file? Feb 28 20:00:59 source I think can scale almost linearly to 8 cores Feb 28 20:01:08 (as far as it's CPU-bound, of course) Feb 28 20:01:32 synic, async { some code } Feb 28 20:01:38 synic, will launch it in a background thread Feb 28 20:01:57 and how does 3D work on the tegra? separate chip or same cores? Feb 28 20:01:59 synic, if you need to post back to UI... well, I have a handler that I post to Feb 28 20:02:02 pfn: hrmm, it's not finding it. I have to specify AndroidConversions.async Feb 28 20:02:10 synic, import AndroidConversions._ Feb 28 20:02:34 oGMo: http://www.hardocp.com/article/2006/11/06/valve_softwares_source_engine_multithreaded_preview/ Feb 28 20:03:17 synic, doing "wildcard" imports are a pretty common practice in scala, unlike java Feb 28 20:04:06 synic, if you're interested in trying out sbt, I wrote a new sbt plugin that makes building really easy for existing android projects Feb 28 20:05:24 pfn: oh, that's what I've been using Feb 28 20:05:47 pfn: the jberkel plugin Feb 28 20:06:42 synic, oh have you, heh Feb 28 20:06:45 thought you were using ant Feb 28 20:07:10 that's what I tried starting with, but I got irritated and switched Feb 28 20:07:11 I guess they're already working ok for you then Feb 28 20:07:33 yeah, seems to be working well Feb 28 20:07:34 * pfn wrote his own plugin because he didn't like jberkel's too much Feb 28 20:07:46 it has more features than mine, though Feb 28 20:07:55 since I didn't put in adb integration yet Feb 28 20:09:00 * pfn doesn't develop anywhere that connects directly to his device Feb 28 20:11:24 i have 2 TextViews in a RelativeLayout, one aligned left, the other right. on occassion the text is wide enough that they overlap. is there a way to ellipsize one of them? Feb 28 20:11:34 pfn: you previously suggested I get a droid 1 as a low-end device, but it turns out the product i'm working on can target 2.3.3+ only. do you have a recommended low-end 2.3 device? Feb 28 20:11:57 wyvern`, well, you can get a droid1 and install cyanogenmod7 on it Feb 28 20:12:00 which bumps it to 2.3.6 Feb 28 20:12:09 ah, good to know Feb 28 20:12:14 still dirt cheap Feb 28 20:12:28 is that going to impair my ability to get a good feel for how that's going to work on various carrier's "enhanced" android versions Feb 28 20:12:32 dunno if you have qualms about developing on an aftermarket rom, but cyanogenmod is generally pretty safe Feb 28 20:12:33 pfn: http://pastie.org/3482644 Feb 28 20:12:40 wyvern`, it's a pretty "pure" android experience Feb 28 20:12:44 not unless I *should* have qualms :) Feb 28 20:13:17 wyvern`, I don't think so Feb 28 20:13:43 synic, that's odd Feb 28 20:13:51 synic, more context? Feb 28 20:13:56 I noticed that Buttons and ToggleButtons seem to have some inner margin, which makes their width inequal even when their layout_width is "fill_parent". Is there any way to fix this rather than playing with hardcoded margins? Feb 28 20:14:04 that's really the only line in that class Feb 28 20:14:07 synic, e.g. do you have def f(...): Int = { ... async { ... }} Feb 28 20:14:25 no, I don't Feb 28 20:14:37 just have the ones you had in there Feb 28 20:14:46 synic, dunno why you get that, stick a () at the end Feb 28 20:14:53 Log.d(...); () Feb 28 20:15:06 works Feb 28 20:15:34 hard to find an original droid on CL Feb 28 20:15:36 yeah, () is a unit return, but generally the compiler doesn't complain if you do => A to something that requires => Unit Feb 28 20:15:45 wyvern`, really, I think it should be pretty easy, ebay? Feb 28 20:15:57 it's all droid 2 and droid X on CL Feb 28 20:15:59 wyvern`, dunno what else is a good cheap low end device... maybe a droid incredible Feb 28 20:16:28 what's a decent price for an incredible? $100? Feb 28 20:16:36 yeah, about $90 or so Feb 28 20:16:46 i'll sell you one for $100 Feb 28 20:16:50 I don't remember what I sold my wife's for... it was either $90 or $120 Feb 28 20:16:55 hm, does it run 2.3.3? Feb 28 20:16:59 yeah Feb 28 20:17:01 it is now Feb 28 20:17:03 custom rom Feb 28 20:17:09 ah I see, as of aug 2011 Feb 28 20:17:10 it runs 2.3.something Feb 28 20:17:18 * pfn doesn't remember any point-releases Feb 28 20:17:19 snooplsm: bay area? Feb 28 20:17:21 why do you need 2.3.3+? Feb 28 20:17:40 we don't specifically. That's just what the customer is ok with (2.3.3+) Feb 28 20:17:41 I have a droid1 but I'm not selling it, it's how I test 2.3 stuff, heh Feb 28 20:17:45 wyvern`: no, silicone alley Feb 28 20:17:55 ah well. Feb 28 20:17:58 ? Feb 28 20:18:07 where's sillicone alley? san fernando valley? Feb 28 20:18:10 new york Feb 28 20:18:17 never heard it called that Feb 28 20:18:32 synic, that's still weird, got more context for your paste? Feb 28 20:18:38 anyone know why my app's ui takes up only the upper 2/3rds of the screen? Feb 28 20:18:45 synic, what version of scala? even 2.9.1 never complained... Feb 28 20:18:54 forrestv, you didn't tell your layout to match_parent Feb 28 20:19:20 upper class layout syndrome Feb 28 20:19:51 synic, http://pastie.org/3482712 Feb 28 20:19:59 example from repl works fine... Feb 28 20:21:04 pfn: it's 2.9.1, there's not really any more context Feb 28 20:21:19 Please note that we've recently issued a payment to you for your AdSense earnings. Your payment represents the total of your finalized earnings accumulated through the end of last month. Feb 28 20:21:25 thank you for letting me know the day after it arrived... Feb 28 20:22:11 * pfn scratches head Feb 28 20:22:25 synic, alternatively, you don't even need to use {} Feb 28 20:22:48 I guess it needs parens, though Feb 28 20:22:58 synic, async(Log.d(....)) Feb 28 20:23:01 k Feb 28 20:23:03 (if it's a one-liner) Feb 28 20:23:37 synic, if you're in sbt, try console; "....AndroidConversions.async { 1 }" Feb 28 20:23:52 you'll get an exception of course, but it should at least try to run it Feb 28 20:24:00 pfn, i did. the bottom menu also doesn't touch the bottom.. see here: http://u.forre.st/u/cfrywdig/export_02.png Feb 28 20:24:19 forrestv, look at your layout xml Feb 28 20:24:25 and you mean the bottom button Feb 28 20:24:37 you have something between preferences and the bottom that's taking up space Feb 28 20:24:45 or the container for everything isn't taking up the full size Feb 28 20:25:28 is it possible to prefill the body of an sms using google voice? Feb 28 20:25:33 I'm trying to build ABS, but it says it can't find android:android:jar:3.2_r1. Why isn't it picking it up from Jake Wharton's repo? Feb 28 20:25:36 It works for the normal Messaging app with sms_body Feb 28 20:26:26 etuleu, decompile the google voice app, and look at what it supports Feb 28 20:27:17 pfn, sounds good :) Feb 28 20:29:53 is it possible to completely remove an app from the market or at least hide it from the list? Feb 28 20:30:10 hide from what list? Feb 28 20:30:14 unpublish the app Feb 28 20:30:29 pfn: the list on https://market.android.com/publish/Home Feb 28 20:30:46 izibi, I dunno, something I unpublished a couple yars ago is still there Feb 28 20:31:04 i have some test uploads there which somehow annoy me ;) Feb 28 20:31:21 test uploads Feb 28 20:31:26 izibi: rename them dickbutts 1-99 Feb 28 20:31:36 spell something out with ascii art Feb 28 20:34:39 oh rename Feb 28 20:34:41 thats a good idea Feb 28 20:34:44 <3 lov Feb 28 20:35:25 fuck it wants me to upload screenshots to even save anything Feb 28 20:35:38 canadiancow|work, yeah, I hate that Feb 28 20:35:41 and then down the line, when you nip onto the android market /publish/ page to show your boss something he's like "so what's with the dickbutts apps?" and you give him a wink. Feb 28 20:35:58 ok i renamed one to Z Test Feb 28 20:36:01 now it's at the bottom Feb 28 20:36:05 but i still have Untitled 1.0 Feb 28 20:36:11 and i dont want to fill out everythin gi need to rename it Feb 28 20:37:05 http://android-developers.blogspot.com/2012/02/new-app-stats-for-publishers-on-android.html Feb 28 20:37:15 canadiancow|work: am i tool late? old news ? Feb 28 20:37:21 yes Feb 28 20:37:22 lol Feb 28 20:37:27 uhh Feb 28 20:37:52 am i right thinking every developer has at least one unpublished hello world app in his account? :D Feb 28 20:38:27 izibi: no Feb 28 20:38:52 no Feb 28 20:39:03 * Jug6ernaut is not stupid enough to do that Feb 28 20:40:30 Jug6ernaut: well it's better than uploading a real app and then losing the key to sign it ;) Feb 28 20:41:17 both of them dont sound like a good idea to me Feb 28 20:42:15 Jug6ernaut: I've got one Feb 28 20:42:25 Jug6ernaut: sometimes you need to just put something up on market for whatever reason Feb 28 20:42:29 sometimes you need a scratch app :> Feb 28 20:42:46 :o Feb 28 20:42:52 just got to? Feb 28 20:42:58 uncontrollabe! Feb 28 20:43:07 http://leanpub.com/dowhatyoulove Feb 28 20:43:11 free today Feb 28 20:43:47 worth buying? Feb 28 20:44:53 Well, here we go: Any ideas of making the ActionBar's height bigger? Feb 28 20:44:58 alpha book, heh. Feb 28 20:45:04 shoerain: there is a style parameter for it. Feb 28 20:45:33 are you using the actionbar, or are you also using actionbarsherlock? Feb 28 20:46:12 http://developer.android.com/reference/android/R.styleable.html#ActionBar_height Feb 28 20:46:18 g00s, i finally get an ebook, and i dont have my tablet with me :P Feb 28 20:46:19 in actionbar sherlock 3.5 it's "abHeight" Feb 28 20:47:20 Anyone familiar with SVN know if there is an SVN counterpart to https://github.com/github/gitignore Feb 28 20:47:21 ? Feb 28 20:47:29 hwrd|work: svn pe svn:ignore . Feb 28 20:47:31 lol Feb 28 20:47:35 heh Feb 28 20:47:37 did you try searching for "svn ignore" ? Feb 28 20:47:42 lov: hehe Feb 28 20:48:03 the real question is "is there an equivolent for this with perforce" and the answer is "no, there is only misery" Feb 28 20:48:19 i took my tablet apart because the usb port came unsoldered Feb 28 20:48:26 lov: is that from the linus talk at google? Feb 28 20:48:28 need to get a soldering iron Feb 28 20:48:33 no Feb 28 20:48:35 that is from me Feb 28 20:48:39 because I've had to start working with perforce Feb 28 20:48:41 and it is THE WORST. Feb 28 20:48:58 is it possible to do adb over the interweb Feb 28 20:49:16 lov: perforce > svn Feb 28 20:49:22 http://stackoverflow.com/questions/2604727/how-can-i-connect-to-android-with-adb-over-tcp Feb 28 20:50:00 not wifi Feb 28 20:50:08 Jug6ernaut: it says "tcp" Feb 28 20:50:36 lov: Equivalent for what in Perforce? Feb 28 20:50:38 if it doesn't work, maybe it has something to do with your isp Feb 28 20:50:44 and the answer is wifi Feb 28 20:50:45 carrier, rather Feb 28 20:51:04 you can still do it with a little finesse, if you want to bad enough. Feb 28 20:51:19 if you can't connect over 3g, you can write a program to connect to the port locally and send the data back Feb 28 20:51:26 like alogcat does Feb 28 20:51:27 readme: actually I'm playing around with modifying the system actionbar in AOSP and I haven't the first clue where to look. But that link is helpful, actually. (Hasn't actually programmed with Action Bars before) Feb 28 20:51:30 pfn, I noticed, in answer to my own question earlier, that I can simply checkout android-4.0.3_r1 and I do not need to checkout android-sdk-4.0.3_r1, android-sdk-4.0.3-tools_r1 or android-sdk-adt_r16.0.1 for that matter. So I guess I answered my own question. Feb 28 20:51:32 hmm Feb 28 20:51:57 trimmer, well, a make world is gonna build everything... Feb 28 20:52:00 sdk too, I think Feb 28 20:52:15 trimmer, but you don't /need/ to use those build outputs, you can use what you already have Feb 28 20:53:08 actually, I believe alogcat simply executes adb logcat Feb 28 20:53:15 so you could do that, and stream that back Feb 28 20:55:11 Gumboot: being able to ignore directories instead of just files Feb 28 20:57:40 alogcat's regex is pretty broken Feb 28 20:57:45 catlog is better, imo Feb 28 20:58:01 Clicking on my widget doesn't launch myActivity, what's wrong in my code ? http://pastebin.com/1z98DuHY Feb 28 21:00:43 am i going to fuck my credit it i sign up for a credit card that has 1 year at 0%, max it out, invest it, pay it off, and then do it again? Feb 28 21:01:52 canadiancow: if your investments go south; quite likely :> Feb 28 21:02:06 no, like sane investments Feb 28 21:02:07 canadiancow|work: there's no hit to your credit for paying your bills on time. Feb 28 21:02:07 canadiancow|work: also, don't max it -- your % of available credit to credit used is included in credit scores Feb 28 21:02:21 but yeah, the amount you're leveraged affects your credit Feb 28 21:02:26 well it would just be like a $20k interest free loan Feb 28 21:02:28 so strongly consider NOT maxing it out./ Feb 28 21:02:35 it would just be ONE card maxxed :P Feb 28 21:02:37 wyvern`, well, presumably if you have multiple credit cards, maxing out one card is no big deal Feb 28 21:02:47 canadiancow|work, and it's not quite interest free, there's a 3-5% up-front charge Feb 28 21:02:54 only if you're balance transferring Feb 28 21:03:07 yeah, but how are you gonna pull out 20k out of a credit card w/o balance transferring? Feb 28 21:03:08 if you can shift all household expenses to a 0% card and put the rest in a MMMF or savings acct, that's free interest basically Feb 28 21:03:26 but that's not a 20k instant pull for "investing" Feb 28 21:03:27 canadiancow|work: for the amount of money you'd make in interest, it's really not worth it. Feb 28 21:03:28 as the case may be Feb 28 21:03:31 pfn, its like a 1% up front fee Feb 28 21:03:39 canadiancow|work, must be cheaper for canucks Feb 28 21:03:43 it's all 3-5% in the US now Feb 28 21:03:45 canadiancow|work: and if someone screws up somewhere, well, you know the usurous rates you pay. Feb 28 21:04:16 lov, worst case, just pay back the money if it's stewing somewhere liquid Feb 28 21:05:35 pfn: I'm implying that he goes to pay back the money but oops the account is frozen because of suspected fraud Feb 28 21:16:53 WHOOOOO another netsplit! Feb 28 21:18:59 romainguy is now known as 13WAAJLAO LOL Feb 28 21:19:20 lol Feb 28 21:19:24 lol, how? Feb 28 21:19:33 DAYUMMMMM!!! Feb 28 21:19:36 also, why have there been so many netsplits lately? Feb 28 21:19:44 hwrd|work: maintenance Feb 28 21:19:48 Freenode must have rebooted a server or something. Feb 28 21:20:58 Is renaming like that kind of like ghosting, but retaining the connection for some reason? Feb 28 21:21:28 romainguy/13WAAJLAO: got a minute? Feb 28 21:22:23 he's lost... on the other side of the island Feb 28 21:22:40 Is it a big island? Feb 28 21:22:57 Google owns it... so ya Feb 28 21:23:29 Well that sounds like an instant "Don't be Evil" failure. Everyone knows that only supervillains own islands. Feb 28 21:23:39 heh Feb 28 21:24:13 My SurfaceView seems to be scaled, is that normal? Feb 28 21:27:30 hi all, I need to make calls to a webserver to get json data back in my android app(through an account that is logged in so I have a cookie). Someone told me i should be using a content provider to do this, is that correct? Feb 28 21:28:04 google owns an island? Feb 28 21:28:29 Hey dudes. I've got a ViewFlipper in a widget that's autoflipping my views. Is there any way for me to make each of the views clickable? I've tried setting onClickPendingIntent for the ViewFlipper views, but it really just wires up the first View. Feb 28 21:28:32 Wait, no. The Thunderbirds base was on a private island, wasn't it. Feb 28 21:29:17 I can't seem to find a page that shows how I can change the application's language in the preference Feb 28 21:29:23 lulz.. http://www.googland.com/ Feb 28 21:29:55 I already have the preference with the language choice, but I don't know how to apply the different xml's when the choice is taken Feb 28 21:30:13 on a more serious/challenging note.. with a ShapeDrawable, is there any way to define a gradient that repeats itself exactly twice? Feb 28 21:30:28 tophyr: Sounds legit! Feb 28 21:30:54 dandaman, it's really up to you. If you want to wire the data into views that interact well with content providers then that is certainly one option. I make JSON calls directly all the time, just be sure to do the calls on a background thread and not the main thread. Without more information, I doubt anyone can say what you "should" do. Feb 28 21:30:56 ie, go from color X to Y to X to Y to X (instead of X-Y-X using simply start/center/endColor) Feb 28 21:31:04 tophyr: obviously fake... they'd implement their own island to meet the unique needs of their scale Feb 28 21:31:32 supersat: they'd probably build it out of shipping containers, as well Feb 28 21:31:40 dartboard: what exactly do content providers do? Feb 28 21:31:51 i'm a little lost reading the explanation on dev.android.com Feb 28 21:31:52 so that they could reconfigure the island modularly based on changing needs Feb 28 21:32:44 is there a way to secure the http connection for the google API's? I see they are all http:// only. Feb 28 21:33:09 couldn't someone sniffing on a user connectiving via wifi pull the api key and use that in their own app or bypass restrictions somehow? Feb 28 21:33:47 dandaman: content providers are simply a way abstract data retrieval. A search for tutorials should give you plenty of resources beyond the Android docs. Feb 28 21:33:50 odd that they'd only offer http Feb 28 21:33:58 Don't you have your api key in your app? :p Feb 28 21:34:20 I have a 32x32 px image called player.png in res/drawable, but when I load it in the game with BitmapFactory.decodeResource(), it says that the width is 48x48. Any ideas why this happens? Feb 28 21:34:32 SimonVT: what do you mean? ya, its called in the http url string Feb 28 21:34:50 QubeZ: Why sniff your api key, when they can just decompile Feb 28 21:35:04 Kake_Fisk: drawable/ is basically drawable-mdpi, and you're running on a hdpi device Feb 28 21:35:07 right so either way, how can you secure it? Feb 28 21:35:19 SimonVT: Thanks, I'll try moving it Feb 28 21:35:23 or is there even a need to? Feb 28 21:35:26 If you don't want scaling, use drawable-nodpi Feb 28 21:35:39 That sounds nice Feb 28 21:35:45 And if you do, provide drawable-hdpi, xhdpi etc instead of letting android handle it Feb 28 21:36:11 What do you mean by that? Feb 28 21:36:26 Question, in adapters, in getView there's the convertView parameter. Is this guaranteed to be the same View as before at this position or could it be any View of the right type that just happens to be unused at that point? Feb 28 21:36:34 Kake_Fisk: under your res/drawable-hdp, res/drawable-xhdpi etc... Feb 28 21:36:39 QubeZ: no real need to, afaik. if you're paranoid you can proxy requests though your own server and do sanity checking/key injection Feb 28 21:36:53 supersat: k, ya im not worried about it then Feb 28 21:36:58 they really should deprecate putting bitmaps in the drawable/ folder Feb 28 21:37:15 Escherial: Pretty sure eclipse or lint will give errors now? Feb 28 21:37:22 or, warnings rather Feb 28 21:37:41 Kake_Fisk: I mean this: http://developer.android.com/guide/practices/screens_support.html Feb 28 21:37:46 ah, i still need to sort out all of my lint warnings...that's what you get for being dropped into a "mature" project, i suppose Feb 28 21:38:01 I'll check it out Feb 28 21:38:07 kakazza: Any view of the same type (as returned from getItemViewType) Feb 28 21:38:34 kakazza: it can, and will, be different views but they must be views that are of the same/correct type. Feb 28 21:39:39 Okay, I have to make some choices now. It looks like my phone have a much higher dpi than my computer screen :p Feb 28 21:40:03 Hmm, that's sad. Because I just returned convertView now if it's not null. I have no data to update on them, all I need is inflation. Feb 28 21:40:18 i get charged £1 for every day where in that day I access internet data through my 3g network. I want to access internet through wifi, but disable any chance of accessing interent through 3g. How do I do this? Feb 28 21:40:21 It works for my relatively small list just like that. Feb 28 21:40:33 devtekbeta: disable cell data in the telephony part of your phone settings. Feb 28 21:40:46 How can I recycle the Views if I have no data to update on them? All I need is them to be inflated> Feb 28 21:40:47 devtekbeta: also, this isn't really an #android-dev question. Are you sure you don't want #android or #android-root ? Feb 28 21:41:17 kakazza: o_O Feb 28 21:41:22 good point. but you guys are so smart i thought id ask here to get the optimum answer Feb 28 21:41:34 lov: ? Feb 28 21:41:43 kakazza: the proper behavior for getView is: if convertView is null, inflate convertView from the appropriate layout. Then, in all cases, set the content of the viewgroup to the current item. Feb 28 21:41:54 will i still be able to make calls and access wifi internet with cell data disabled? Feb 28 21:42:11 kakazza: you don't recycle the views, the base adapter code does that for you. Just assume that "convertView" is inflated but has wrong data (text, images, etc) and reset it on each call to getView(). It will be plenty fast. Feb 28 21:42:27 kakazza: getView isn't called unless the adapterview doesn't think that it has an appropriate view to display for that row. You should pretty much never be given a convertView that's already just fine. Feb 28 21:42:45 devtekbeta: yes. Now go away. Feb 28 21:43:04 kakazza: look for the list view talk from last year's google I/O for a great intro on this. Feb 28 21:43:09 excellent. thanks. going away now :) Feb 28 21:43:18 You mean the one from 2010? Feb 28 21:43:31 I think there was one last year too. Feb 28 21:43:32 http://www.google.com/events/io/2010/sessions/world-of-listview-android.html Feb 28 21:43:37 Yes, the 2010 one Feb 28 21:43:43 Ok Feb 28 21:44:06 Will be back in an hour or so then ;p Feb 28 21:44:30 I'm going to go masturbate... be back in about 15 seconds Feb 28 21:44:51 but you'll barely be in your gimp suit by then ;_; Feb 28 21:45:04 all done, brb cigarette Feb 28 21:45:08 o_o Feb 28 21:51:28 The Android emulator doesn't work for me :'( Feb 28 21:52:13 Hello. I can't get notications to work. The intents are being silly. My app places feed updates into one of trwo notification IDs. The different feeds use different information going into the intents but it seems the latest notification updates use the first intent!? Feb 28 21:52:32 The intent wont update, it just uses the intent from the first notification somehow. Feb 28 21:52:49 That appears to be the problem. I explained it on here: http://stackoverflow.com/questions/9475091/notification-intents-not-working-for-android-application Feb 28 21:53:49 Surely the new notifications should recieve the new intents I make? So weird. Feb 28 21:56:20 http://developer.android.com/reference/android/app/Notification.html#setLatestEventInfo(android.content.Context, java.lang.CharSequence, java.lang.CharSequence, android.app.PendingIntent) "The intent to launch when the user clicks the expanded notification. If this is an activity, it must include the http://developer.android.com/reference/android/content/Intent.html#FLAG_ACTIVITY_NEW_TASKflag, which requires that you take care of task management Feb 28 21:57:04 It ignore that and uses the intent for the first notification. Feb 28 22:00:51 I have some trouble with this code: http://pastebin.com/kn9nz6Sp Feb 28 22:01:04 specifically, line 42. mService is "null" Feb 28 22:03:35 Binding to a service is not synchronous Feb 28 22:03:50 hjf: Everytime I've asked a question about Services or Notifications people have ignored them, but this might be a lucky moment for you…bindService returns immediately. Feb 28 22:04:24 Move the code to the onServiceConnected method. Feb 28 22:04:57 I went through this painful task of getting a service to work myself, it's a nightmare. Now my notifications wont work. :( Feb 28 22:05:50 yes i thought it was an async thing. but i also put a Thread.sleep(1000)... i suppose the service connections happen in the background? Feb 28 22:07:44 The only wy you can do it is process the service code in the onServiceConnected method. Feb 28 22:08:06 That is called when the service is bound. Feb 28 22:08:39 Hi, I'm looking to release my first app for beta testing but not through the Android Market just yet. Is there anything I should take care to do apart from just compile it and release the apk? Feb 28 22:09:34 proguard Feb 28 22:09:45 sign the app Feb 28 22:09:49 (and test afterwards) Feb 28 22:10:05 http://developer.android.com/guide/publishing/publishing_overview.html Feb 28 22:10:41 yeah gotta love that page. publishing comes after development? whoa! Feb 28 22:11:15 I figured my notifications are always using the intent from the first notification to be set to ID 1. Feb 28 22:11:18 Thanks will take a look, I'm not signed up to Android yet so will it still apply? Feb 28 22:11:28 Can notifications use an ID of 0? Feb 28 22:11:37 Maybe that is oddly the problem... Feb 28 22:12:15 I'll just plus 1 to my notification IDs and hope that works like magic... Feb 28 22:13:10 I have a Cursor of results from a sql query and I would like to uniquify the results based on one column; is the best way to iterate create a new cursor with the filtered results? Feb 28 22:13:26 (I don't think there is a way to do this in the actual sql query; I tried) Feb 28 22:14:23 Notification ID 2 is not working at all, notifications haven't shown when I tried ID 2... Feb 28 22:14:50 That link looks like it has all the answers, thanks. One last thing - how do you handle android:versionCode for beta versions. Would it be safe to alway have the beta version on 0? Feb 28 22:15:41 "Post a notification to be shown in the status bar. If a notification with the same id has already been posted by your application and has not yet been canceled, it will be replaced by the updated information." The docs lie to me. Feb 28 22:17:57 etuleu: structure the query to sort by that column then you can iterate through the Cursor checking previous and current so you know when you've hit a row that changed Feb 28 22:18:01 is that what you're getting at? Feb 28 22:18:32 QubeZ, yes, exactly; my query is already sorted by that thing; how do I create a new Cursor? Feb 28 22:18:40 I found MatrixCursor or something Feb 28 22:19:09 etuleu: you dont need to create a new cursor, you can just iterate that current cursor that is returned from your query Feb 28 22:19:32 but how do I remove the duplicated entries? Feb 28 22:20:11 code1: I don't think the android:versionCode attribute is particularly important outside of the market or other managed-deployment environments. If you are distributing the .apk to your beta testers by hand then 0 should be fine. Feb 28 22:20:15 etuleu: you dont, Cursor is just an abstraction of the query result. If you need to store the data elsewhere and remove duplicates, you should look at List or some other java collection Feb 28 22:20:42 the cursor needs to be changed because it's used in an adapter to be displayed later Feb 28 22:21:10 I am using CursorLoader and my plan was to uniquify the cursor in onLoadFinished before passing it to my adapter Feb 28 22:21:50 etuleu: ok got it, well then you should structure your query to get the data you need rather than manipulating it after the fact. I know you said that you can't do that, you're tried. But what are you trying to accomplish exactly? Feb 28 22:22:10 reading names and email addreses from the Contacts API Feb 28 22:22:18 you have x row's in your DB and youre trying to get unique y row's back based on some variable/argument/condition? Feb 28 22:22:24 specifically what data are you trying to exclude Feb 28 22:22:29 right! Feb 28 22:22:32 duplicated emails Feb 28 22:23:01 I couldn't find a way to say DISTINCT in my query Feb 28 22:23:14 etuleu: you need to do a rawQuery Feb 28 22:23:24 dartboard: OK, what about signing it? Is that important? I believe Eclipse auto signs it with a debug cert on build, is that enough or not recommended? Feb 28 22:23:38 QubeZ, yeah I was afraid of that; so it can't be done with CursorLoader? Feb 28 22:23:40 http://www.w3schools.com/sql/sql_distinct.asp perhaps? Feb 28 22:23:55 readme, you can't pass distinct to cursor loader afaik Feb 28 22:24:03 etuleu: thats different things... you do a rawQuery which returns a Cursor then you pass that to your CursorLoader Feb 28 22:24:32 well i take that back, CursorLoader is not something I'm familiar with Feb 28 22:25:02 but if you just need a CUrsor with distinct email address rows, then do your rawQuery(...), get a Cursor back then do something with that Cursor Feb 28 22:25:12 QubeZ, I see what you're saying; it might work, but not sure because cursor loader is async Feb 28 22:25:18 code1: beta testing is a great time to get your process in place for signing, proguard, etc. It will be much better to sign with your key because then in the future they can seamlessly install a release (signed) version without the adb uninstall step that is necessary if you change keys. Feb 28 22:25:18 I will try it; thanks! Feb 28 22:25:20 etuleu: create a VIEW Feb 28 22:25:29 etuleu: then you can query as normal over that view Feb 28 22:25:37 the view should be a SELECT DISTINCT of the rows you want Feb 28 22:25:39 there ya go, DB View! Feb 28 22:25:53 readme, interesting! I'm not familiar with that any example? Feb 28 22:25:57 sure Feb 28 22:26:33 http://www.sqlite.org/lang_createview.html Feb 28 22:26:54 readme, nice idea! thanks! Feb 28 22:27:16 np Feb 28 22:27:45 readme, would this work even if I don't control the db? I'm querying the Contacts api Feb 28 22:27:51 it's not my db Feb 28 22:28:08 oh yeah. Feb 28 22:28:20 dartboard: Yeah that makes sense. So create my key now and then use the same one for beta and regular releases? Feb 28 22:28:29 readme, cool I'll give it a try Feb 28 22:28:35 i mean "oh yeah" as in dunno about that Feb 28 22:28:45 code1: yes, that's what I do. Feb 28 22:28:51 because of permissions you won't be able to read that database unless you use the ContentProvider. Feb 28 22:29:03 you might want to just monitor it for changes and keep your own table as a cache Feb 28 22:29:20 readme, hm I see Feb 28 22:29:31 dartboard: Cool, thanks. Feb 28 22:29:35 http://code.google.com/p/iosched/source/browse/android/src/com/google/android/apps/iosched/provider/ has good examples for starting your own sqlite db Feb 28 22:29:39 (and contentprovider) Feb 28 22:30:43 Once you make a business name in the android market, can you not change it? Feb 28 22:30:52 it can be changed Feb 28 22:31:00 it can be changed with manual intervention Feb 28 22:31:34 Cool, I don't want to pick something and find out that it's already been taken by some evil copyright. Feb 28 22:32:49 how about "green cow apps" Feb 28 22:33:49 why green :( Feb 28 22:34:11 I like the color... Feb 28 22:34:19 and cows Feb 28 22:34:22 why cows? Feb 28 22:34:23 like the far side Feb 28 22:35:19 Matt_von_Mises: thanks for the tip, it works now Feb 28 22:35:49 aarobc_work: purple cow apps Feb 28 22:36:02 aarobc_work: look up "purple cow" by seth godin, read or listen to it, too. Feb 28 22:36:25 devs should definitely know about purple cows Feb 28 22:36:42 readme: googling Feb 28 22:36:56 purple cow is quite a common term Feb 28 22:37:21 Does anyone know if a Fragment's Menu method gets called before its onAttach method? Feb 28 22:37:29 that's good, means it's less likely someone will have used copyright to prevent him from using it as his android name Feb 28 22:38:08 I would have thought it would be more likely!? Feb 28 22:38:13 hello all Feb 28 22:38:41 I've never heard of green cow so maybe that's safer Feb 28 22:39:42 i suppose it's good Feb 28 22:40:19 I am trying to extend an imageview to add a onClickListener, but somehow it's not working, can someone please point me in the correct direction? here is my code http://pastie.org/3483718 Feb 28 22:41:38 gnagno: ImageView already supports onClickListeners Feb 28 22:42:11 readme, really? where should I hook my code then? Feb 28 22:42:30 you can use the android:onClick="" attr in XML, or you can call setOnClickListener on it. Feb 28 22:43:08 ImageView blah = (ImageView) findViewById(R.id.your_image_id); blah.setOnCli Feb 28 22:43:13 well in Eclipse anyhow Feb 28 22:43:32 I wouldn't tightly couple behavior to the view itself like you have in that paste Feb 28 22:43:40 it's best that you keep the implementation of onClick separate Feb 28 22:44:54 Does anyone have experience with the maven android plugin? I can't get it to generate the R.java files Feb 28 22:44:57 readme, you mean for keeping the code clean? Feb 28 22:45:11 I guess. I've never seen anyone do it the way you are doing it Feb 28 22:45:29 readme, I am still learning :) Feb 28 22:45:48 hi :-) is there a way to set a string in the java code, when I have defined it in the gui String creater(Eclipse)? Feb 28 22:46:07 readme, I thought that the behaviour was something related to the object, you think I should create a separate class just to implement the behaviour? Feb 28 22:46:17 the way I do it is i define one base activity that implements onClick, then I point all my onClick attributes at "onClick", then in my descendant activities, I delegate clicks upwards using super(), and I get a default click handler for every view, ootb. Feb 28 22:46:35 nikolaj_basher: from your Activty try: getString(R.string.yourstringname) Feb 28 22:46:38 gnagno: you should probably override onclick Feb 28 22:46:42 don't implement onclicklistener Feb 28 22:47:27 oh, huh, there is no onclick Feb 28 22:47:31 could have sworn there'd be one Feb 28 22:48:05 anyway, you can do this, you just need to register yourself as a click listener Feb 28 22:48:21 hi Feb 28 22:48:34 in your constructors, add setOnClickListener(this); Feb 28 22:48:36 lov I was looking for the onClick to override as well :) Feb 28 22:48:37 constructors plural Feb 28 22:48:40 drezel, can i then set i getString(....) = "jfjjfj" Feb 28 22:48:48 no Feb 28 22:48:53 setString Feb 28 22:49:20 afaik the contents of R.string are not editable at runtime Feb 28 22:49:26 lov if I add setOnClickListener(this) then my class has to implement the onClickListener right? Feb 28 22:49:37 gnagno: yes Feb 28 22:49:47 thank you very much guys Feb 28 22:49:53 gnagno: I guess if you're overriding onClick just to support some sort of change to the View's UI, then that makes sense. Feb 28 22:49:58 drezel, ok thanks Feb 28 22:50:06 possible to use a state list as a color value? would like to avoid duplicating a shapedrawable over and over just to change colors in a state list Feb 28 22:50:19 readme, yes, but it's just something as experiment for learning android Feb 28 22:50:23 gnagno: but if you do this, you'll want to override setOnClickListener too, so that you can hook into the view to get behavior from it Feb 28 22:50:27 thansk wyvern` Feb 28 22:50:40 that way you don't delete your "UI" click listener when you want to capture clicks from other code. Feb 28 22:51:35 readme, thank you for your reccomendations Feb 28 22:51:46 I am having a lot of fun learning android :) Feb 28 22:52:52 http://pastie.org/3483783 Feb 28 22:52:56 here's specifically what i meant Feb 28 22:53:45 Ok dartboard, SimonVT. I watched the talk from I/O about ListViews. A lot is clearer to me now. But I think I might be misunderstanding something. But before we get there, maybe it's useful to know, that I have ~20 items in the ListView, and every single one of them has a different layout XML. Would that result in them having a different type? Feb 28 22:53:47 but call super.setOnClickListener when you assign the view itself to be its own onClickListener for UI related stuff. Feb 28 22:53:53 that way you don't get the override. Feb 28 22:54:17 Thus making my "optimization" with only inflating once and otherwise returning convertView directly work? Feb 28 22:54:20 readme, mExtraListener is for propagating the event? Feb 28 22:54:47 yeah, that's the idea. So you can use the event both to have native UI behavior, and receive the event externally Feb 28 22:56:03 kakazza: yes, the idea is that items which are not alike have different item type Feb 28 22:56:21 Define "alike" Feb 28 22:57:44 I'm working on an app that makes notifications, which when clicked open a dialog. I'm trying to find a way to pass information from the time when the notification is made to the dialog that is created after the notification is clicked. Feb 28 22:58:09 kakazza: alike means that the view hierarchy is the same (typically the same layout ID). If every one of your list items is the same then you should make sure your adapter returns a different view type for each list id. Feb 28 22:58:17 I've tried putExtra but that will olny pass the latest set of info in the event that there's two notifications. Feb 28 22:58:36 kakazza: s/the same/different/ Feb 28 22:58:50 If I'm going to include a text file in my game, which resource folder should I put it in? raw? Feb 28 22:59:02 Does anyone have a better idea on how I can make it so each notification opens the dialog with the right info? Feb 28 22:59:11 dartboard: How would I do that? Explicitely? Feb 28 22:59:37 Kake_Fisk, put it in res/raw Feb 28 22:59:38 kakazza: oh, ffs. alike means that the view hierarchy is the same (typically the same layout ID). If every one of your list items is DIFFERENT then you should make sure your adapter returns a different view type for each list id. Feb 28 22:59:43 okay, thanks Feb 28 23:00:13 Kake_Fisk, http://developer.android.com/guide/topics/data/data-storage.html#filesInternal Feb 28 23:00:15 kakazza: yes, your job when implementing an adapter is to return a unique view type for the different layouts that your view items use. Feb 28 23:00:59 is it possible to get the width of the screen? Feb 28 23:01:02 kakazza: then, the base adapter can efficiently cache and reuse the views on your behalf. Feb 28 23:02:48 I see. I currently tried like that: https://gist.github.com/77cc88edc364719c32b4 Feb 28 23:02:55 hi does anyone know how to use repo to pull build to a different partition im getting main.py permission denied Feb 28 23:03:10 And scrolling became much faster. But I am not sure if I just happen to not run into a special case where this might not work. Feb 28 23:03:24 oh it says unable to start /media/164GB/.repo/repo/main.py Feb 28 23:04:53 kakazza: the way you have it, if the data in "dataList" ever changes, your listview will be wrong Feb 28 23:05:14 It's bound not to change, ever. At runtime anyway. Feb 28 23:06:03 it should be ok then, but i'm not 100% sure. it also depends on whether BaseAdapter returns the same view with the same position each time, which I am not sure of. Feb 28 23:06:10 But how come convertView is always the View I last returned at that position? Feb 28 23:06:29 Yeah, I am not sure of that either. So I don't know... It works, but I am not sure if it's supposed to :D Feb 28 23:06:49 hold on what Feb 28 23:07:01 hi im trying to repo init to another partition i get ERROR unable to start /media/164GB/.repo/repo/main.py Feb 28 23:07:07 why are you keeping views in "myData"? Feb 28 23:07:21 but it works on ~/ Feb 28 23:08:15 I'm not really keeping Views in myData. It's just that myData also has a getView and getPrototypeView Method. It knows it's representation. Feb 28 23:08:33 Basically, getPrototypeView calls inflate() Feb 28 23:09:11 this is an aside, but I would consider pulling that method out of Data and making something called DataViewFactory and putting it in there. Feb 28 23:09:50 We're in the progress of that, yes. But I was told that UX is first priority. And that's the scrolling speed for now :/ Feb 28 23:10:06 How do I change the text on a text field: http://ideone.com/pH2j1 Feb 28 23:10:35 ChronosA: Presumably, you need a reference to your TextView, and then you invoke setText Feb 28 23:11:09 I'm not sure, how would a ViewFactory look like? Feb 28 23:11:25 so, lets say your TextView in your layout has an id of myTextView, in onCreate, you would do TextView myView = (TextView)findViewById(R.id.myTextView), then invoke myView.setText("String Here") to change it Feb 28 23:12:31 DrPenguin: Ok cheers - ill have a go Feb 28 23:12:32 hey guys is there any way to get this solved so "X" = equal to my >i< in the for loop? --> http://pastebin.com/j80rnk2b Feb 28 23:13:06 Surfer2010: your trying to change the "X" in your variable identifier? Feb 28 23:13:09 kakazza: khttp://pastie.org/3483921 Feb 28 23:13:23 yes basically Feb 28 23:13:24 <_lpc> anyone developing native apps for android? i just made a hello world and it segfaults Feb 28 23:13:31 of course, you return the view in both methods too. Feb 28 23:13:35 is there a bidirectional model-view data binding? Feb 28 23:13:58 I *really* dont think you can do that, you would be better off doing something like storing your textview references in an Array and then just reference them that way Feb 28 23:14:05 Oh, and you will need to pass the Context in. Feb 28 23:14:08 sob android. Feb 28 23:14:40 oh good idea :-O i'll try that real quick thx DrPenguin Feb 28 23:16:28 DrPenguin: wait ... you mean like array[i].setText(lineup[i]); and array[]= {"tvFieldPos1", "tvFieldPos2", ...} ??? Feb 28 23:16:45 readme: Thanks, I'll consider it. Feb 28 23:16:52 Surfer2010: ok, so in your function where you init the TextViews, you would put them into an array Feb 28 23:17:02 so you wanna declare some array of type TextView somewhere Feb 28 23:17:11 ahh okay Feb 28 23:18:11 the problem with what you put there is that you were putting strings into the array, ya cant do that. you want the actual reference to the TextView in the array. Or else what you would do is just reget the reference via invoking findViewById and casting it to a TextView in the for loop Feb 28 23:19:01 .. actually that second part wouldnt work, because thats assuming each id has a diff of 1 between each other. Just make the array Feb 28 23:21:36 like this? http://pastebin.com/Zg18iS9x Feb 28 23:21:59 When getting testing hardware is there anything in particular I need to look for so I can get one that will work with just wifi (no cellular voice/data) ? Feb 28 23:22:35 or does the first line have to be Strings Feb 28 23:22:36 no Feb 28 23:23:51 wyvern`, just about everything works with just wifi, you won't be able to test any mobile-only features (phone call/sms/etc.) Feb 28 23:24:54 ok. so any old random handset should be fine. Feb 28 23:25:09 good to know Feb 28 23:25:35 How do I make my game work on all screen resolutions? Feb 28 23:25:39 Does it scale automatically? Feb 28 23:25:52 Kake_Fisk, depends on how you draw Feb 28 23:26:13 I draw pngs Feb 28 23:26:15 speaking of all resolutions, finally played majesty the other night... Feb 28 23:26:19 it's too goddamn small on xhdpi Feb 28 23:26:24 next to impossible to read any of the fonts Feb 28 23:26:32 Surfer2010: uhh.. I think that should work Feb 28 23:27:21 DrPenguin i get an error/freezing the way i put it now :( ---(including Log) http://pastebin.com/T8JbGsvs Feb 28 23:27:58 Surfer2010: whats on line 30 in your code? Feb 28 23:28:52 tvFieldPos[i].setText(lineup[i]); Feb 28 23:29:32 um... ok.. find out whats null on that line Feb 28 23:30:37 can anyone suggest a good idea for passing a cookie around to activities? Feb 28 23:30:48 right now i'm using putExtra but maybe someone knows of a better design idea Feb 28 23:30:53 lineup is an array i get back from a method Feb 28 23:31:08 and it has 6 values in it Feb 28 23:31:12 6 strings Feb 28 23:31:20 dandaman1: I dont see anything wrong with that.. you *could* make it a global resource but id prefer doing it via intent passing Feb 28 23:31:30 dandaman1: i think that's what that's for Feb 28 23:31:38 ok Feb 28 23:31:42 Surfer2010: your array of TextView are null, you need to reference (findViewById) them Feb 28 23:31:51 i just wanted to make sure that there wasn't a better practice Feb 28 23:33:19 Surfer2010: change tvFieldPos1 = (TextView) findViewById(R.id.tvFieldPos1); to tvFieldPos[1] = (TextView) findViewById(R.id.tvFieldPos1); in your varzuweisung() method Feb 28 23:33:36 and do the same for the other 5 Feb 28 23:33:54 ahhhh :) thx code1 Feb 28 23:34:15 no probs :) Feb 28 23:35:33 No one here has a clue about notifications then? I've tried asking somewhere else too: http://www.anddev.org/post796313.html#p796313 Surely it must be a simple mistake. Feb 28 23:35:51 Maybe I should just forget about notifications. Feb 28 23:35:56 code1: hmm.. I guess when the array was created, Java did a copy instead of just putting a reference to the object in the array.. PITA Feb 28 23:36:14 Matt_von_Mises: I ahve done notifications.. whats the problem Feb 28 23:36:25 Matt_von_Mises, I've had a similar problem, an old pendingintent is used Feb 28 23:36:27 dunno why Feb 28 23:36:28 * pfn shrugs Feb 28 23:36:30 * pfn hasn't fixed it Feb 28 23:36:38 DrPenguin: My notifications are using old intents. Feb 28 23:36:46 Oh God this sounds familiar Feb 28 23:36:57 Because I update the notifications and they don't use the intent I gave them. Feb 28 23:36:58 I had a problem with old intents being used for something Feb 28 23:37:10 hang on! I may have a solution for j00 Feb 28 23:37:48 I guess FLAG_ONE_SHOT or something Feb 28 23:38:01 or FLAG_CANCEL_CURRENT Feb 28 23:38:12 I used FLAG_ONE_SHOT, all that does is prevent an intent being used more than once. Feb 28 23:38:14 pfn: from what I remember, it has something to do with a value in the intent, I dont remember using any of those flags Feb 28 23:38:32 DrPenguin: precisely. Feb 28 23:38:43 code1: a reason why I hate Java, no pointers ;) Feb 28 23:38:43 I'll try FLAG_CANCEL_CURRENT… I don't see why this matters, doesn't each notification use it's own PendingIntent? Feb 28 23:38:57 pointers are overrated Feb 28 23:39:14 I like my pointers. Feb 28 23:39:29 I think pointers are a double-edged sword! ;) Feb 28 23:39:31 yay pointers Feb 28 23:39:34 I like having lots of asterisks and ampersands in my C code. Feb 28 23:39:36 they're only useful for doing terrible things like while (*i++ = *j++); Feb 28 23:39:53 ;-) Feb 28 23:40:09 code1: There are many things that are double edged swords, you just have to use the tool right Feb 28 23:40:33 Pointers remove confusion over "reference or copy?" Feb 28 23:40:38 pfn: no love for linked list? :P Feb 28 23:40:40 You know what's going on. Feb 28 23:41:06 Matt_von_Mises, the simple answer is: everything is a reference Feb 28 23:41:10 I agree, but they caused a lot of problems for those that didn't use them right. Feb 28 23:41:56 code1: yeah true, they used to give me grief. But if you wanna be an efficient C coder, you need pointers Feb 28 23:42:01 With C you are thinking in computer terms. It's not abstracted to the point it actually is more confusing. Feb 28 23:43:09 True Feb 28 23:43:13 Matt_von_Mises: I *think* this was my problem http://stackoverflow.com/questions/7370324/notification-passes-old-intent-extras Feb 28 23:43:40 THanks DrPenguin. Looking at it all now... Feb 28 23:44:03 Just giving FLAG_CANCEL_CURRENT a quick try out... Feb 28 23:44:48 Well the wifi has no disconnected so I can't actually receive any feeds to test… Feb 28 23:45:01 Simulate it Feb 28 23:45:09 I guess I'll have to. Feb 28 23:45:19 thats what I did when I tested notifications for my app Feb 28 23:46:39 So for you it was the request code? What? The docs say that the request code isn't even used…"requestCode Feb 28 23:46:39 Private request code for the sender (currently not used)." Feb 28 23:46:48 The docs are really stupid. Feb 28 23:47:00 what docs is this? for Pending Intent? Feb 28 23:47:15 Yes for getActivity. Feb 28 23:47:54 * pfn has flag update current set, but old intent still makes it through Feb 28 23:47:55 * pfn shrugs Feb 28 23:48:02 I'll look at fixing it some day Feb 28 23:48:18 http://code.google.com/p/android/issues/detail?id=863 Feb 28 23:48:27 pfn: are you using unique request codes? Feb 28 23:48:41 I'm not, but flag_update_current is supposed to take care of that Feb 28 23:48:52 i have a running service, which uploads files. for each file upload, it launches a new thread. i also have an activity that displays the status of this service Feb 28 23:49:15 pfn: I would say try to explicitly set unique request codes.. as far as I know my app still works with that.. although I Cant tell you, I dont have many downloads for my app so not enough to say no1 has found a bug Feb 28 23:49:19 the problem is that i can't update the activity because it complains that it was called from the wrong thread Feb 28 23:49:47 THanks DrPengiun. I'm sure this is my problem. It's all the docs fault. :-) It lied to me. I jsut need to figure out how I can simulate a test since the way my code is doesn't make that too easy. Feb 28 23:50:14 DrPenguin, yeah, reasonable way to work around it, I just don't particularly like having to do that Feb 28 23:50:17 i read about "implements Callback", ..where should i implement that? on the Service (to receive callbacks from threads) or on the activity (to receive callbacks from the Service?) Feb 28 23:50:25 pfn: I gotcha Feb 28 23:50:39 Matt_von_Mises: well whats your app doing, maybe I can help make some faux test Feb 28 23:51:38 I'm sure I can do it, I just need to do a bit off work since the method I call is in a class which isn't even created until I do some other internet related things first. Feb 28 23:51:50 ah ok Feb 28 23:52:03 well if you agree to do a UML for me for a class assignment ill do your code ^^: Feb 28 23:52:08 * DrPenguin hates UML's Feb 28 23:52:30 uml... Feb 28 23:52:48 Is there any way to easily kill a android app in Eclipse? Feb 28 23:52:52 Matt_von_Mises: i was wondering this earlier, and it's off topic, but, should blind people have the same gun rights as others? Feb 28 23:53:01 ChronosA, click on the app and click the stop button in the device view Feb 28 23:53:55 pfn: stop button? Feb 28 23:54:09 readme: probably not! ;) Feb 28 23:54:22 yeah, the stop button Feb 28 23:54:23 readme: Where did this question come from? Feb 28 23:54:37 pfn: what is the stop button? Feb 28 23:54:48 Matt_von_Mises: he's being held hostage by a blind person. Feb 28 23:54:56 ChronosA, the button that you use to stop a running app Feb 28 23:54:56 ChronosA "Is there any way to easily kill a android app in Eclipse?" An easier way is to get a hammer out and smash your device. Feb 28 23:55:17 Matt_von_Mises: but taht will kill everything ^^; Feb 28 23:55:29 i dont have a physical device just a virtual one Feb 28 23:55:39 Matt_von_Mises: i don't have any idea. i wondered it earlier and noticed the von_mises and decided to try you. Feb 28 23:55:42 is the mod-operator different in android than in Java ? Feb 28 23:55:52 Surfer2010: no, it is % Feb 28 23:56:23 bye all, thank you a lot for your help guys Feb 28 23:56:25 anyone in here able to (or know someone able to) make me 3 icons for actionbar items that match the android specs? Feb 28 23:57:05 how complicated are they canadiancow? Feb 28 23:57:08 RotationID = (RotationID + 1 ) % 6; RotationID is an int Feb 28 23:57:15 canadiancow: i'll make them if I can retain rights with creative commons Feb 28 23:57:28 am i just too tired to see it? Feb 28 23:57:28 t0mless pretty simple i hope - im not quite sure what they are yet - i need ideas Feb 28 23:57:31 Creative Commons = win Feb 28 23:57:32 readme, if you retain rights, im not paying Feb 28 23:57:51 well, what kind of icons do you want? Feb 28 23:57:54 readme: So you were wondering about gun rights earlier for blind people and saw that my nick name must be related to Ludwig von Mises and wondered what my take as a likely libertarian would be? Why don't you ask on #mises? I'm on there with some others. Feb 28 23:58:03 Oh these stats on the Android developer page are cool Feb 28 23:58:04 I was working on a couple for my app and it is kind of fun Feb 28 23:58:41 Ologn: oh yeh I just saw em, pretty cool Feb 28 23:58:44 that has to be one of the most random comments Feb 28 23:59:00 Surfer2010: what is the + 1 for? Feb 28 23:59:28 jeppy: Banana nut sammich Feb 28 23:59:33 jeppy: THAT is the most random comment Feb 28 23:59:39 Matt_von_Mises: cool, I didn't know #mises had a channel Feb 28 23:59:53 Surfer2010, you might try by saying what your error is Feb 29 00:00:02 readme: http://www.coveragemapper.com/icons/actionbar.png Feb 29 00:00:04 code1, he wants to go to step N/6 Feb 29 00:00:06 i found it ... i NEED to go to bed :D Feb 29 00:00:07 code1, so N+1/6 Feb 29 00:00:27 i put that line after an ... return; in a method ... of course it gives an error Feb 29 00:00:31 smart Eclipse :D Feb 29 00:00:40 i'll go to bed :D ;) Feb 29 00:00:40 i need one to represent a country selection, one to represent a network selection, and one thats kind of like the "layers" button in google maps Feb 29 00:02:30 good night see ya Feb 29 00:02:38 For my different game objects extend View or SurfaceView or something, or should it just have a member with the Bitmap and such? Feb 29 00:02:43 canadiancow: i'll make one icon and PM you. if you like it i'll finish the rest Feb 29 00:02:54 sure Feb 29 00:03:08 pfn: yeah just wanted to be sure, it's hard to debug a single line of code with no error message provided! Feb 29 00:03:17 is something wrong with my Eclipse or hovering over a row in method profiler results expands the row after a second or two? It's horrible. Feb 29 00:03:33 code1 thanks :) Feb 29 00:03:54 That's cool Surfer2010, see ya. Feb 29 00:08:19 A ListFragment has onListItemClick for when an item is clicked - but I'm not methods, inherited as well, for a long press. How can I trigger on that? Feb 29 00:09:13 Aha, I guess I want View.OnLongClickListener Feb 29 00:09:17 no Feb 29 00:09:37 im niot sure if you can or are supposed to access the listview directly in a ListFragment Feb 29 00:09:49 id just stick a ListView in a normal Fragment Feb 29 00:09:53 and then you can do whatever you want Feb 29 00:10:05 why wouldn't I be able to? Feb 29 00:10:06 but you definitely want an OnItemLongClickListener Feb 29 00:10:15 I'll check it out Feb 29 00:10:46 ListFragment#getListView() Feb 29 00:11:34 thx Feb 29 00:14:31 Any idea why this doesnt work? http://ideone.com/HchfT if the entered text equals "test" I want it to display "Hello!" Feb 29 00:14:35 FFFFUUUU paul Feb 29 00:14:44 you lied to me Feb 29 00:14:47 theres no bacon here Feb 29 00:15:26 ChronosA: when is changeText called? Feb 29 00:15:34 he is a liar Feb 29 00:15:50 i know man Feb 29 00:15:55 i got excited Feb 29 00:16:38 me too Feb 29 00:16:48 canadiancow: I thought setText changed the text? Feb 29 00:17:02 yes, but when is changeText() called Feb 29 00:17:13 https://fbcdn-sphotos-a.akamaihd.net/hphotos-ak-snc7/396570_10150715343495962_376022960961_11637688_1007799165_n.jpg Feb 29 00:17:18 how do i become that cool? Feb 29 00:17:25 candiancow: when the button is pressed Feb 29 00:17:37 Here you go BloodSkin: ≈ Feb 29 00:17:50 yay bacon!!! Feb 29 00:17:55 canadiancow: via the xml i set android:onClick="changeText" Feb 29 00:18:10 so set a breakpoint and step through Feb 29 00:18:17 BloodSkin: go back to channel Feb 29 00:18:21 and ask paul Feb 29 00:18:26 when people have problems this simple, either they dont know the first thing about dev, or their device is broken Feb 29 00:18:29 and it's never the latter Feb 29 00:19:14 i gave him the bacon that SeligArkin gave me Feb 29 00:21:04 canadiancow: w/e Feb 29 00:21:25 ChronosA, n/s Feb 29 00:22:20 pfn: +1 Feb 29 00:32:09 Quick Question.. if I invoke startActivityForResult from a Fragment, does the Fragment implement onActivityResult or the FragmentActivity? Feb 29 00:34:06 If I have a ListView with N entries where each one of them has a different Type, ist ListView still the thing I want to use? N is not going to change. Feb 29 00:34:48 I've @Overrided getViewTypeCount to return N, so I can better recycle Views, but it still feels very sluggish. Feb 29 00:38:08 DrPenguin: The notifications work for me now. Thanks a billion. Feb 29 00:38:20 Shame the docs got it all wrong. Feb 29 00:38:22 Matt_von_Mises: very good! glad to be of service Feb 29 00:38:29 It feels good to be back in Android Feb 29 00:40:00 snowing outside like crazy, making some spicy chicken soup... coding my app... shit what a great day Feb 29 00:42:17 heh Feb 29 00:42:25 snow has been light here today, but it dumped yesterday Feb 29 00:42:37 except I haven't had time to do any code work -_- Feb 29 00:42:37 t0mless: dumped? the sky pooped? Feb 29 00:42:43 All over the place. Feb 29 00:42:49 Oh God Feb 29 00:46:46 android 2.1; When I dial a contact, the complete number includes area code. But the mobile service only recognize local number without area code, can I configure android to skip area code? Feb 29 00:49:50 hello Feb 29 00:55:01 souliaq, why not trim the prefix off? Feb 29 00:57:30 Sorry, but I ask as user, #android channel is dead Feb 29 01:13:18 How do I go about creating a menu xml with Eclipse? Does it have any special tools I should use, or just make the xml by hand? Feb 29 01:15:25 just make xml by hand Feb 29 01:15:40 aha, I was missing the resource type dropdown Feb 29 01:16:26 i like it when things 'just work' :-) Feb 29 01:17:22 I prefer the UI just because it makes things more discoverable right now. Don't have a problem with making them myself otherwise Feb 29 01:19:38 Though I do wonder why does ADT mangle the xml and require me to fix it by hand very frequently Feb 29 01:19:42 canadiancow|work: you there? I've got an icon for you to check out. Feb 29 01:19:51 hey sorry Feb 29 01:19:53 let me switch comps Feb 29 01:19:54 np Feb 29 01:20:25 hokay Feb 29 01:22:20 sent Feb 29 01:22:27 vadi2: hitting "run" with an XML file selected? Feb 29 01:22:39 s/selected/displayed/ Feb 29 01:22:46 No, just adding new strings mangles the string.xml Feb 29 01:22:56 mangles how? Feb 29 01:22:56 becomes /resources> and the < goes off elsewhere Feb 29 01:23:04 weird Feb 29 01:23:09 actually it goes onto the line with my new string Feb 29 01:23:11 * SeligArkin hasn't had that to the best of her knowledge Feb 29 01:23:28 so what happens is blah blah< \n /resources> Feb 29 01:25:24 Have you reported it as a bug? Feb 29 01:27:51 the eclipse XML editor did that shit to me all the time Feb 29 01:27:56 or when trying to use the auto fill Feb 29 01:28:12 I'd do like textC and hit enter to get textColor and it would delete the REST OF THE LINE Feb 29 01:28:39 i had similar today, when i renamed a package, eclipse shyte all over the xml, it utterly mungled android:name=".blah" Feb 29 01:28:54 I'm much much much much happier with intelliJ's XML editor Feb 29 01:29:08 Haven't bugged it yet myself Feb 29 01:29:12 I might have to give that a try out... its save stress Feb 29 01:29:51 g'night all Feb 29 01:30:11 * SeligArkin wonders why people bitch about annoying bugs when they're not willing to inform the developers so they can fix it. Feb 29 01:30:36 SeligArkin: more fun that way :) Feb 29 01:30:39 Yes well that's the theory Feb 29 01:30:54 But I've reported too many bugs devs don't care about. Can't say they aren't overwhelmed as it is! Feb 29 01:31:14 ant builds are still broken just as they were month+ ago when I reported it Feb 29 01:31:23 I think I did bug the xml one I had Feb 29 01:31:24 what builds are broken Feb 29 01:31:49 ant builds fine for me Feb 29 01:32:11 there was one introduced that forced you to ant clean all the time Feb 29 01:32:51 vadi2, that's more of an ant bug due to the way code-gen works Feb 29 01:33:47 yes well, it wasn't there before an update and it happened after an update Feb 29 01:33:56 (adt, not ant) Feb 29 01:34:04 adt is different Feb 29 01:34:07 * pfn shrugs Feb 29 01:40:10 is the trend starting to get away from eclipse and opt for intellij? Feb 29 01:40:55 * t0mless shrugs Feb 29 01:40:59 If the trend was to jump in front of a bus, would you do it? Feb 29 01:41:04 some people use VIM so.... Feb 29 01:41:22 just entertaining thouhts but thanks for going off the deep end SeligArkin Feb 29 01:41:29 * SeligArkin would prefer vim but she needs completion too much, and eclim is just terrible Feb 29 01:41:52 hello Feb 29 01:42:03 If i was looking to create an application the way the gmail app is designed in 4.0 tablets what tutorials should I look at? Feb 29 01:42:26 gmail is fragmented with panes for a lack of better words. What is the proper term? Feb 29 01:42:53 proper term is fragments Feb 29 01:44:32 I've been wondering about how feasible enabling USB GPS access in Android would be (for tablets, netbooks running android-x86, etc). Anyone know what it would take to get something like that working? How easy would it be to add an intermediary app like gpsbabel to Android? Feb 29 01:45:51 Just looking for somewhere to start. I imagine it'd take quite a bit of tinkering. Feb 29 01:47:18 what is fast dormancy? why need for android? Feb 29 01:48:48 stiltzkin, well, GPS is serial ACSII Feb 29 01:49:22 mrenouf, not all GPS though right? I believe my Garmin outputs NMEA Feb 29 01:49:23 so USB->serial for starters. need root, but then just open the serial device and read like any file Feb 29 01:49:36 NMEA = ASCII text Feb 29 01:49:43 ah, OK Feb 29 01:49:52 there are some that can do binary formats but they default to NMEA Feb 29 01:50:05 http://en.wikipedia.org/wiki/NMEA_0183 Feb 29 01:50:22 stuff like: $GPGGA,092750.000,5321.6802,N,00630.3372,W,1,8,1.03,61.7,M,55.2,M,,*76 Feb 29 01:50:40 For starters I've got a Garmin GPS18x USB and a netbook running android-x86 with root access. Just trying to do some tinkering since having GPS on this would mean I could use it for navigation, which would be fantastic. Feb 29 01:50:57 so primary task is finding out if usb-serial drivers are available in stock android kernel, and if not compiling/enabling them Feb 29 01:51:15 Bluetooth might be far simpler and you dont need root, etc Feb 29 01:51:46 Right, I know there are apps for that. It would involve me spending more money though...I'd rather use what I have! :) Feb 29 01:51:51 yeah, well you need to have a device node for the usb, on normal linux, this is something like /dev/ttyUSB0 Feb 29 01:52:11 if you have that you're in really good shape Feb 29 01:52:31 also 'dmesg | grep serial' Feb 29 01:52:52 Hm, might as well see what that returns right now Feb 29 01:53:35 shows usbserial: USB Serial Driver core. That sounds promising Feb 29 01:54:28 add a -C 5' Feb 29 01:54:36 to grep to find out what happened near that Feb 29 01:54:53 or just dump to text file and look through it Feb 29 01:54:59 lsmod might be useful too Feb 29 01:57:21 Hm, no GPS listings in lsmod...and not much more to see in dmesg. If I unplug and replug the adapter I do show it registering with uhci_hcd Feb 29 01:59:18 you wont see gps Feb 29 01:59:34 you're looking for a device being created in /dev Feb 29 01:59:47 do you have anything like /dev/ttyUSBx ? Feb 29 01:59:56 no, I wish. that's what I was hoping for Feb 29 02:01:31 is there an easy way to tell if it's been created as some other tty* device? Feb 29 02:05:57 what is shown in lsmod for 'usbserial' ? Feb 29 02:06:25 you may just need to load the module with a custom vendor/device id Feb 29 02:06:35 'lsusb' shows those Feb 29 02:06:46 that should be enough to google for Feb 29 02:08:39 usbserial Feb 29 02:09:18 lsusb shows the device id as well Feb 29 02:13:02 stiltzkin: or you could try using some kind of USB access library -- LWJGL/JInput for example interacts with USB devices just fine. Feb 29 02:13:50 gilead, that's an interesting idea, I'll definitely take a look at lwjgl Feb 29 02:14:11 stiltzkin: I think it's actually using JInput for this but I'm not 100% sure Feb 29 02:24:01 I'm trying to set up ABS for use in a project. When I try to build it, I'm getting an error generating sources (com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.1.0:generate-sources). It says maven 3.0.3 or higher (I'm using 3.0.4). Do I need to use 3.0.3? Feb 29 02:25:01 what is ABS? Feb 29 02:25:47 ActionBarSherlock Feb 29 02:27:21 hm, interesting Feb 29 02:28:21 * gilead used Maven ages ago :/ Feb 29 02:29:21 * pfn doesn't use maven... Feb 29 02:29:23 * pfn shrugs Feb 29 02:37:49 MalRD: Jake is usually in here, surprised he isn't right now... stick around and he can probably answer all your ABS questions Feb 29 02:38:00 drezel, he's busy driving across the country Feb 29 02:38:16 I use Maven daily, but I don't have every version installed here. Was hoping someone could tell me I was doing something wrong before I went looking for 3.0.3 Feb 29 02:38:24 ohh well then I guess we won't see him for a while Feb 29 02:39:10 I don't use ABS or Maven so you won't get any help from me unfortunately Feb 29 02:39:12 I think he said he's planning on driving 4 days or so... Feb 29 02:39:16 so he'll be back this weekend or something Feb 29 02:45:41 I would assume "or higher" includes 3.0.4 ;-) Feb 29 02:46:09 yeah he's moving Feb 29 02:50:08 Though apparently driving a uhaul across the country didn't prevent him from pushing code to github Feb 29 02:51:10 I build my projects with ABS with ant, but have been trying to set maven up Feb 29 02:51:15 t0mless: that's what truck-stop wifi is for :) Feb 29 02:51:48 MalRD did you add all the android things to your local maven repository? Feb 29 02:51:59 Git is PERFECT for coding on a roadtrip. Commit on the road, push at the the pitstop. Feb 29 02:52:14 unless you're alone, then I recommend against coding while driving. Feb 29 02:52:19 lol Feb 29 02:52:21 I was going to say Feb 29 02:52:30 pretty sure he's driving at least part of the way Feb 29 02:52:38 can 2 Activities (or Fragments) respond to the same onActivityResult message? Feb 29 02:53:01 two fragments maybe Feb 29 02:53:05 DrPenguin, no it is delivered only to the fragment which originally called startActivityForResult Feb 29 02:53:15 mrenouf: got it, thank you ;) Feb 29 02:53:27 hi all Feb 29 02:53:43 yo Feb 29 02:54:11 i'm having a lot of trouble implementing the actionbar-compatibility code Feb 29 02:54:23 my main activity is also a listview Feb 29 02:54:50 t0mless: I assume so. I read through a few docs and did what they said. Feb 29 02:55:11 trying to learn maven has had my head spinning -_- Feb 29 02:55:21 AbelianHorizon what kind of trouble? Feb 29 02:55:47 I've spent all of my time learning the new stuff, and it all works fine on ICS, but now I need gingerbread compatibility... is there a better guide than on the android developer website Feb 29 02:56:59 http://developer.android.com/resources/samples/ActionBarCompat/index.html <---this is what i've been looking at Feb 29 02:58:41 t0mless: I believe the issue last time I tried to implement was that I'm extending listview, but I need to extend another class for compatibility Feb 29 02:59:01 ya damn multiple inheritance Feb 29 02:59:14 listview is available on gingerbread.... Feb 29 02:59:34 you mean ListViewActivity ? Feb 29 02:59:39 er, ListActivity Feb 29 02:59:55 but for compatibility, i need to extend a separate class ------> public class MainActivity extends ActionBarActivity **** ENDING LOGGING AT Wed Feb 29 02:59:58 2012