**** BEGIN LOGGING AT Sat Feb 25 02:59:59 2012 Feb 25 03:12:35 oh man, it was so nice in California today Feb 25 03:12:52 over 70 degrees here. sat outside during lunch in a t-shirt Feb 25 03:17:12 bastard Feb 25 03:17:45 it was 20's here and now i think in teen's Feb 25 03:19:47 QubeZ: it was 70 degrees here in Massachusetts Feb 25 03:20:05 IN MY APARTMENT, ho oh ho. Feb 25 03:20:14 hehe Feb 25 03:20:26 i'll be in Mass. in March for some training Feb 25 03:20:38 RSA Security Feb 25 03:23:26 drezel stop generalizing Feb 25 03:23:30 I'm in california Feb 25 03:23:38 it was 34 degrees this morning Feb 25 03:23:57 Though the high was 50, so that was nicer Feb 25 03:24:12 hey guys, i really need some more beta tests for To Do Mapr, interested? www.todomapr.com. Feb 25 03:25:38 s/tests/testers Feb 25 03:27:35 I'm just sayin you could do better Feb 25 03:27:49 mt Feb 25 03:28:03 mt? Feb 25 03:28:36 mistell Feb 25 03:28:53 what that intended for me? Feb 25 03:28:57 nope Feb 25 03:29:00 ahh ok Feb 25 03:29:15 nien Feb 25 03:29:58 To Do Mapr still has a long way to go, I'd like some beta testers to help drive ideas and find bugs. It's a free app and will always remain free. We'll be deploying web services for premium sharing features but app itself will always be free. Feb 25 03:44:14 readme, where abouts? Feb 25 03:44:24 <-- also in Mass. Feb 25 03:48:40 QubeZ, To Do Mapr? Feb 25 03:49:34 sounds like a task list with a map Feb 25 03:49:41 ? *shrug* Feb 25 03:49:56 he posted a URL Feb 25 03:50:20 ya www.todomapr.com Feb 25 03:50:43 there are tutorial videos on the site and in-app streamed via the Menu option Feb 25 03:50:53 there is an activity with all 13 videos so you can learn the app quickly Feb 25 03:51:07 Uhh Feb 25 03:51:18 Who has time to watch 13 videos to learn an app? Feb 25 03:51:37 we just made that for real beginners, they 1 min each for the most part Feb 25 03:51:47 most people will figure it out just fine Feb 25 03:52:03 Ahh, yeah. I was gonna say, the UI really needs to be intuitive Feb 25 03:52:37 usually just putting in gentle callouts on first-use is plenty (like Android 4.0 does) Feb 25 03:52:55 mrenouf: we have that in our first run tutorial but again, who knows, some users just like videos Feb 25 03:53:02 so we added it just to cover our bases Feb 25 03:53:11 is this your full-time gig? Feb 25 03:53:24 no, im a security analyst for united health care full-time Feb 25 03:53:32 and so i script/code at work but not android/java Feb 25 03:53:44 this was all on the side (6 months) Feb 25 03:53:58 ahh Feb 25 03:59:24 well play with it and provide us some feedback on FB, contact form or forums on the website. I'd appreciate it. Feb 25 03:59:59 There is still a lot of work to do, hopefully the users keep sending in bug reports and requests to drive improvements. Feb 25 04:00:21 catch you all later Feb 25 04:00:46 o.o Feb 25 04:01:15 QubeZ: maybe i'll try it on my gnex, thanks Feb 25 04:01:54 np, have fun with it and report any issues please. Feb 25 04:04:02 k Feb 25 04:04:42 will need to put out some updates for ICS. So let me know how your experience is on that OS and Phone. Feb 25 04:04:46 k Feb 25 04:04:53 I know it works on ICS, I have an HTC Incredible running it but I have a menu button Feb 25 04:04:54 is it on the android market? Feb 25 04:05:06 zhongfu: not yet, just through the website for now to keep the user base small. Feb 25 04:05:14 hmm, k Feb 25 04:05:31 QubeZ, on the Galaxy Nexus, it displays a small menu button when necessary Feb 25 04:05:39 but i enabled the large menu button Feb 25 04:05:44 will be out in the market in 2-3 weeks Feb 25 04:05:46 so my navigation bar has back, home, recents, menu Feb 25 04:05:49 zhongfu: cool Feb 25 04:06:15 it's a really unique app and although there is much work to be done, I am quite proud of what it does. Feb 25 04:06:23 Very stable too... I tested the shit out of it. Feb 25 04:07:07 Alright pizza is getting cold. Catch you all later. Feb 25 04:07:36 HOLY SHIT Feb 25 04:07:40 326 SPAM Feb 25 04:07:46 35 INBOX Feb 25 04:07:50 WHAT THE HECK IS THIS SOCERY Feb 25 04:08:54 QubeZ: interesting; I don't facebook however so... Feb 25 04:13:36 dragorn, i'm pretty sure he'll accept feedback on irc Feb 25 04:14:23 zhongfu: he will, and is. I'm just curmudgeonly and dont' do facebook, I'm sure it's an excellent tactic for 99% of the target audience Feb 25 04:16:42 dragorn, yep Feb 25 04:56:26 weenas Feb 25 05:23:29 how can i remove a menu option from the action bar at runtime? Feb 25 05:29:03 nvm, figured it out Feb 25 05:49:56 hi anyone knows any alternate way to pay developer fees rather then using a credit card? Feb 25 05:52:09 Mountain Dew? Feb 25 06:05:59 Anyone know where I can get some code for working with a serial port. Feb 25 06:06:09 demo project or something Feb 25 06:23:32 weeeee for new blog posts Feb 25 06:52:20 what's the convention for naming Activities? Like if you have an Activity where you are going to display a duck, would you name it ShowDuck or Duck or...? Feb 25 06:53:18 DuckThreadDuckFactoryGoose Feb 25 06:54:18 activity9.showFuck Feb 25 06:54:18 Duck* Feb 25 06:58:09 -_- Feb 25 07:00:15 hi Feb 25 07:01:04 When I'm trying to debug some android opengles app with eclipse, I get an out-of-memory exception. Feb 25 07:01:14 This is the call-stack for it: Feb 25 07:01:18 BinderInternal$GcWatcher.finalize() line: 48 Feb 25 07:01:20 NativeStart.run() line: not available [native method] Feb 25 07:01:53 It won't happen when I run it on the android device without eclipse debuging. Feb 25 07:02:18 Anyone knows anything about that? Feb 25 07:56:22 Have I mentioned that Styles/Themes are confusing as fuck Feb 25 10:12:18 Is it possible to take a layout defined in XML and modify its contents at runtime? Feb 25 10:12:57 How would you reference the layout's views? Feb 25 10:14:03 view.findviewbyid Feb 25 10:15:01 O.O @ the giant amount of info output by adb bugreport Feb 25 10:15:14 storkme: How do I know a view's id? Feb 25 10:15:20 you assign it in xml Feb 25 10:15:25 Or how do I assign it? Feb 25 10:15:29 android:id? Feb 25 10:15:32 android:id="@+id/myID" Feb 25 10:15:37 thanks Feb 25 10:23:42 Do anyone here uses singleton pattern in Android? I've to maintain a global system state using an object. I have a few questions to ask about it... Feb 25 10:42:49 Do anyone here uses singleton pattern in Android? I've to maintain a global system state using an object. I have a few questions to ask about it... Feb 25 10:45:34 maybe you should ask again Feb 25 10:48:23 I've used Application subclass as the singleton Feb 25 10:48:48 hi all Feb 25 10:49:06 this bugger gets made first before other objects are called (except at some rare situations, apparently), so it's a natural place to place something that looks like application-wide state. Couple this with a dummy service that forces android to not kill your app at inconvenient time, and you have it made Feb 25 10:49:23 why ln -s operation is not permitted when using adb shell Feb 25 10:50:19 jameslord: maybe not supported on filesystem, or you don't have permissions Feb 25 10:50:20 help:) Feb 25 10:50:31 vfat, for instance, has no symlinks. Feb 25 10:50:56 alankila dude, i want to add full tool statck to android:) Feb 25 10:52:36 I'm having an issue where getFragmentManager() sometimes returns null. it seems to happen when I click around in the app (causing a fragments to be popped and created rapidly). does anyone have any idea why? Feb 25 10:54:26 could the fragment have had its onDestroy called or something Feb 25 11:02:52 anyone know how i get the outlines of views etc to hsow in the eclipse layout editor, sure it used to be exploded view or something Feb 25 11:04:30 how to make adb shell support auto complete? Feb 25 11:11:00 hey Feb 25 11:11:06 which format does ContactsContract.CommonDataKinds.Event.START_DATE use? Feb 25 11:11:08 alankila: hm that might be it.. i'll investigate, thanks Feb 25 11:11:29 the only information I found is http://groups.google.com/group/android-developers/browse_thread/thread/b6946e0c805b6591 but even that seems a bit unclaer Feb 25 11:11:34 *unclear Feb 25 11:14:11 Ok this is starting to get annoying. How can I force a reinstall of my app everytime I debug it on my device? Feb 25 11:14:21 All the settings I find relate to virtual devices Feb 25 11:17:36 Bacta, it _IS_ reinstalled when you debug it on your device Feb 25 11:17:46 no? Feb 25 11:17:50 yeah Feb 25 11:18:11 Do you have only on AsyncTask per Activity class or is normal to have multiple? Feb 25 11:18:11 well, only if files have changed Feb 25 11:18:19 is it* Feb 25 11:19:14 I dont see the problem of having multiple, if you need them Feb 25 11:19:26 but perhaps a service would suit you better? Feb 25 11:19:27 storkme: alankila Well, I experimented and found answers to my question. Thanks anyway Feb 25 11:20:03 you didnt ask a question Feb 25 11:29:12 hello peopleI got a problem , can you help me ? Feb 25 11:30:28 anyone here ? Feb 25 11:32:00 mgj: Doesn't appear so Feb 25 11:32:30 :( Feb 25 11:32:37 and I need help with a problem :| Feb 25 11:32:43 Bacta, well, you can always do 'adb uninstall com.example.whatever' i guess Feb 25 11:32:49 before debugging Feb 25 11:33:46 luci1093, ask your question. dont ask to ask Feb 25 11:33:48 try asing the question Feb 25 11:34:28 well , I'm stil llearning android and I made some kind of program with a list where I add the other programs I make (like a menu) Feb 25 11:34:47 the problem is that my 1st aplication gives an error and it forces me to close Feb 25 11:35:02 but the other 2 I made (at the moment) work ok Feb 25 11:35:13 here's the logcat http://pastesite.com/32057 Feb 25 11:35:20 I need to create a new thread for every object, im not sure if AsyncTask is appropiate or the the standard Java Runnable Interface? Feb 25 11:36:08 AysnTask only create on thread and all tasks are executed in that thread, correct? Feb 25 11:36:13 one* Feb 25 11:36:48 asynctask is useful in that it provides easy callback methods for doing stuff on thecui thread with the result of the background computation Feb 25 11:37:20 its just a small wrapper around runnable really; check the src Feb 25 11:39:28 Is it possible to define a string of tuples in strings.xml? Feb 25 12:00:16 I got a problem ... I'm stil llearning android and I made some kind of program with a list where I add the other programs I make (like a menu) ...... the problem is that my 1st aplication gives an error and it forces me to close, but the other 2 I made (at the moment) work ok ........ here's the logcat http://pastesite.com/32057 Feb 25 12:00:20 need help pls :) Feb 25 12:11:08 luci1093, have you declared your activity in your manifest? Feb 25 12:16:51 yes Feb 25 12:17:18 it worked when I used it normally without that menu Feb 25 12:17:56 actually I had the same problem with it when I launched it trough another program I made but I solved that problem Feb 25 12:18:22 now i don't know why it's doing that ... especially when I see the other applications working Feb 25 12:22:33 so none knows what's the problem with my program ? :(the logcat http://pastesite.com/32057) Feb 25 12:24:43 luci1093, the log explains it quite well Feb 25 12:25:06 yes, a nullpointerexception on certain line Feb 25 12:25:14 TextPlay.java line 43. Feb 25 12:25:17 can't get better than that Feb 25 12:26:08 :) Feb 25 12:26:11 well I don't actually get it .... I'm still learing Feb 25 12:26:25 the thing is ... Feb 25 12:26:31 luci1093, also paste source for "startingPoint.java" Feb 25 12:26:41 ok 1 sec Feb 25 12:27:01 also, always name classes (java files) starting with a Captial Feb 25 12:27:07 *capital Feb 25 12:27:09 http://pastesite.com/32060 Feb 25 12:27:41 idk , my application is a menu with the other aplications I made Feb 25 12:27:49 you haven't initialize "Button sub;" yet. Feb 25 12:27:53 all of them work exept the startingPoint Feb 25 12:27:57 Line 22 is likely the mistake Feb 25 12:28:10 you probably meant to write "sub = " ? Feb 25 12:28:41 mrenouf, most likely ;) Feb 25 12:29:12 bAdd and bSub refer to the buttons in the main.xml Feb 25 12:29:39 luci1093, as a small tip... install the PMD plugin for eclipse (if that's what you are using), it will help you learn good java style. Feb 25 12:30:24 ye , I'm using eclipse ... and I pretty much learnt java before starting android ... Feb 25 12:30:24 luci1093, change line 22 to: "sub = (Button) findViewById(R.id.bSub);" Feb 25 12:30:29 luci1093, because there are several things "wrong" with that source code :)... when it comes to style. Feb 25 12:30:30 don't have expetience tho xD Feb 25 12:30:51 correctness > style (for now) :-) Feb 25 12:31:20 but if there is a problem with that button ... Feb 25 12:31:25 luci1093, http://pmd.sourceforge.net/integrations.html, see the eclipse section. Feb 25 12:31:33 the error should't pop up when I press it ? Feb 25 12:31:55 luci1093, I posted your fix. please try it. Feb 25 12:32:48 um Feb 25 12:33:05 chaozer, pmd? for code syle? Just use Ctrl-Alt-F Feb 25 12:33:22 mrenouf, that's not really the same thing Feb 25 12:33:37 mrenouf, im not talking formatting Feb 25 12:33:45 oh Feb 25 12:33:46 sry guys but still don't actually get it :( Feb 25 12:33:59 luci1093, change line 22 to: "sub = (Button) findViewById(R.id.bSub);" Feb 25 12:34:19 LOL Feb 25 12:34:21 chaozer, the Android lint tool + findbugs is what I use Feb 25 12:34:27 finally I noticed it -.- Feb 25 12:34:28 mrenouf, if you haven't tried it.. try it :).. a bit of a warning though.... it's quite pedantic :)... so it needs a little tweaking. Feb 25 12:34:35 let me try and see if it works :D Feb 25 12:34:37 mrenouf, yeah findbugs is also a must Feb 25 12:34:55 mrenouf, but pmd is a good complement to findbugs... because one finds things the other doesn't. Feb 25 12:35:13 it works .... Feb 25 12:35:18 thankyou a lot Feb 25 12:35:29 sry for my ... newbie style xD Feb 25 12:35:53 other than duplicate code, findbugs does most of the rest, Feb 25 12:36:14 mrenouf, i guess pmd is geared more towards learning good practices.. while findbugs is a little more geared towars optimizations and bugs. Feb 25 12:36:22 I've always liked their logo though Feb 25 12:37:54 installed. trying it out on some code Feb 25 12:39:13 pmd is the ultimate java bitch :) sorry for the expression. Feb 25 12:39:21 ok , well I'm off to learning more android , thankyou again ^^ Feb 25 12:39:53 anyone using elance or variants to find android dev work? Feb 25 12:40:38 why i cannot run ln -s using adb shell? btw, i have root priviledge:) Feb 25 12:43:04 hm pmd is fast. It's whining about things I know are there that I probably put off to fix later, so it makes a nice automatic TODO list ;-) Feb 25 12:43:12 thanks, I'll keep using this Feb 25 12:43:53 But some are... WTF?!... "Avoid excessively long variable names like UPDATE_PERIOD_FRAMES" ? Feb 25 12:44:23 There are numerous things that are less code problems and more preference issues. Feb 25 12:44:23 non-transient statid member. blah blah Feb 25 12:44:44 "savedInstanceState" is also apparently "excessively long" Feb 25 12:44:52 mrenouf, yeah .. it requires some tweaking... :)... Feb 25 12:44:57 yeah some tuning is in order Feb 25 12:48:12 mrenouf, also you can use @SuppressWarnings("PMD.*") to shut it up when something you did is intentional ;).. Feb 25 12:48:39 eh, I'd rather not litter my code for PMDs benefit Feb 25 12:59:28 hell:( Feb 25 13:11:56 i have a spinner that shows a list of countries from an xml. when a spinner item(a country) is selected i want to fetch the value of this item(the country code). how should i do it? Feb 25 13:16:29 http://developer.android.com/reference/android/widget/AdapterView.html#setOnItemSelectedListener(android.widget.AdapterView.OnItemSelectedListener) Feb 25 13:16:53 (Spinner is a subclass of AdapterView) Feb 25 13:21:31 thanks mrenouf , but i don't see an option to view the value of an item/key in the spinner. an item in my xml looks like this: