**** BEGIN LOGGING AT Mon May 28 02:59:58 2012 May 28 03:06:39 how do i get my main project to reference the library project? May 28 03:06:49 right click > module settings May 28 03:07:05 dependencies tab May 28 03:07:08 add button at the bottom May 28 03:07:17 i did that part May 28 03:07:37 error: cannot find symbol class SherlockActivity May 28 03:15:42 do i have to do something in project structure > libraries? May 28 03:19:37 ah, crud. i didn't realize that intellij didn't auto import like eclipse does. May 28 03:19:49 hadn't imported the abs sherlockactivity May 28 03:19:53 haha May 28 03:20:06 it does for me May 28 03:20:10 even a noob like me *facepalm* May 28 03:20:20 auto imports? May 28 03:20:26 when i'm typing May 28 03:20:40 usually, with eclipse, it red underscores, i right click and do 'import ... whatever' May 28 03:20:54 in this case, it red underscored... but no options May 28 03:21:06 might be a setting somewhere May 28 03:22:44 found it... 'add unambiguous imports on the fly' May 28 03:23:07 settings >> editor >> auto import May 28 03:23:13 if it's ambitious you just hit alt+enter May 28 03:23:17 anywhere on the line May 28 03:23:34 and it'll prompt May 28 03:24:00 ok, good to know, thanks! i'm sure it'll take a bit of a learning curve after using eclipse for so long (i use eclipse for much more than android dev) May 28 03:24:09 been using eclipse itself for years May 28 03:28:36 yeah I basically just jumped in May 28 03:28:40 got rid of Eclipse altogether May 28 03:28:47 sucked for a week, but you start getting the hang of it May 28 03:29:23 testing May 28 03:30:16 where do i see logcat? May 28 03:30:31 for some reason, i can't resolve any of the sherlock resources (e.g. @style/Theme.Sherlock) May 28 03:30:48 so i've got an instantiation of SherlockActivity with no Theme, apparently May 28 03:31:11 methinks that the association between my project and abs isn't quite complete May 28 03:31:35 view > tool windows > android May 28 03:32:46 "You must use Theme.Sherlock, Theme.Sherlock.Light, Theme.Sherlock.Light.DarkActionBar, or a derivative" <-- yep, as i suspected May 28 03:32:50 thanks :) May 28 03:32:59 now to figure out why i can't see those May 28 03:34:49 i notice in my eclipse project, /gen gets a com.actionbarsherlock May 28 03:34:59 in my intellij project, /gen doesn't have that May 28 03:40:30 whats the use of HandlerThread May 28 03:44:58 alright, i'm stumped. apparently i can build against the ABS library. but i can't resolve any resources within it. May 28 03:45:15 android:theme="@style/Theme.Sherlock" is invalid May 28 04:02:50 then you're not building agianst the abs library May 28 04:03:23 you would think. seems i have no problem with things like "extends SherlockActivity"... May 28 04:04:15 need to get some coding done, though, so switched back to eclipse for now May 28 04:04:27 i'll figure it out eventually May 28 04:05:16 i guess i could try importing a working framework project into intellij from eclipse and see what's different... May 28 04:10:58 does someone know how to reference the content of one xml file from another xml file? May 28 04:14:43 yeah... think i'm giving this up for now... i imported it and now all that looks good, but the debugger won't let me select any modules May 28 04:14:57 s.c.r.e.w it for now May 28 04:23:03 when you do my string.substring(0,4) is the second parameter the number of characters to get or the index to stop at ? May 28 04:24:20 http://developer.android.com/reference/java/lang/String.html#substring(int, int) May 28 04:24:36 i read that May 28 04:25:25 my code doesn't seem to be working. i have a string with a date "2012-05-27 14:21" tmp.substring(5,6) doesn't return the proper value May 28 04:25:38 This Q is sort of dev related, sort of not. I'm not dev butI have a feeling this would be easy for one. I want to use Tasker to open the new task screen of Astrid. Astrid has an intent for that, com.todoroo.astrid.activity.TaskEditActivity. Tasker has a Send Intent feature which has fields for Action, Category, Mime Type, Data, Extra, Package, Class, and Target. Can anyone intuit from May 28 04:25:38 that what needs to go where? If it helps, I can get ADW launcher to add an icon that will correctly trigger this and open the task edit screen. The onclick action it uses appears to be Intent;action=android.intent.action.MAIN;category=android.intent.category.LAUNCHER;component=com.timsu.astrid/com.todoroo.astrid.activity.TaskEditActivity. I can also get this working in Tasker via plugins, May 28 04:25:38 but then lose the data input field. In that case the exported Tasker action contains this: #Intent;action=android.intent.action.VIEW;component=com.timsu.astrid/com.todoroo.astrid.activity.TaskEditActivity;end May 28 04:26:53 devslash: that would return "0" May 28 04:26:57 why May 28 04:27:00 oh May 28 04:27:03 because 05 May 28 04:27:13 oops May 28 04:27:22 I'm using Integer.parseInt on the returned value May 28 04:28:10 why would it return 0 May 28 04:28:34 because you're only getting one character May 28 04:28:42 and that character is 0 May 28 04:28:53 why ? May 28 04:29:05 i want to get 05 May 28 04:29:21 then you should be using substring(5, 7) May 28 04:29:57 the first param is inclusive and the second is exclusive May 28 04:30:15 isn't substring include substring(5,7) would be getting 5,6,7; not 6,7 May 28 04:30:28 no May 28 04:30:32 http://developer.android.com/reference/java/lang/String.html#substring(int, int) May 28 04:30:45 read the params May 28 04:31:04 and/or the return section May 28 04:31:39 that's different from java's 1.4.2 API String.substring(int,int) .. :S interesting ... May 28 04:32:41 false May 28 04:32:42 http://docs.oracle.com/javase/1.4.2/docs/api/java/lang/String.html#substring(int, int) May 28 04:33:14 so the example is wrong then ? May 28 04:33:22 oh i'm an idiot and can't read then May 28 04:33:28 *ducks and pretends he didn't say anything* May 28 04:34:57 they can be worded in misleading ways May 28 04:51:02 hm. "Facebook is drawing upon former Apple engineers who worked on the iPhone and the iPad to develop its own phone, according to a new report." May 28 04:51:12 uh ... May 28 04:51:29 i can't even May 28 04:54:14 JakeWharton, excellent work on the tabbing on ABS. it's going to do what i want it to do perfectly. May 28 04:54:23 is it possible to turn on/off the mouse cursor on adroid, from the command line (adb)? May 28 04:54:28 awesome May 28 04:54:30 glad to hear it May 28 04:54:33 in ICS May 28 04:55:03 almost (not not quite) a tab activity drop-in. looks easier to deal with than the android-dev docs recommend May 28 04:55:39 I know that that can be done i settings> developer options >pointer location May 28 04:55:41 never used a tab activity so i can't speak to how easy it would be to convert May 28 04:55:43 JakeWharton: i have an sql table. one of the fields is defined as string and contains date in the format YYYY-MM-DD HH:MM. if i do order by datefield, will it properly sort by date or will it sort incorrectly since it contains strings May 28 04:55:58 but I do not know how to do that in the command line May 28 04:56:17 tabactivity was nice but i'm noticing odd behavior with it. e.g. orientation change impacts all tab activities... May 28 04:56:21 devslash: sqlite? May 28 04:56:24 probably one of the reasons for deprication May 28 04:56:43 sqlite has no concept of dates May 28 04:56:46 yes May 28 04:57:02 it knows about integers, reals, text, and blobs May 28 04:57:14 any other type is coerced into one of those values May 28 04:57:22 i would recommend storing dates as integers May 28 04:57:26 perhaps seconds since the epoch May 28 04:57:51 devslash, in that format it should sort ok May 28 04:58:02 but, as jake said, a number would be nicer May 28 04:58:10 oh yeah, that format would sort May 28 04:58:37 ACTION  May 28 04:58:37 assuming 24-hour format May 28 04:58:46 ACTION  May 28 04:59:13 yes May 28 05:00:00 devslash, http://www.roseindia.net/java/java-conversion/DateToTimestamp.shtml May 28 05:00:52 write up a nice little static class to do back and forth conversion between java date and unix timestamp (if you can't find one already made)... and problem solved :) May 28 05:01:50 crap, i realized i have a show tomorrow... May 28 05:02:29 ah well, not like i haven't done this one 50 times already. who needs sleep anyway? May 28 05:03:22 shit its not working May 28 05:26:28 if I build and app can I just post it on my website for someone to download? May 28 05:26:36 yes May 28 05:26:41 you still need to sign it, but yes May 28 05:27:20 ok any links on how to self sign? May 28 05:27:31 trying to do this without a developer account. May 28 05:27:43 you /could/ just use the debug key May 28 05:27:54 I just built a quick app that I want to throw up on my site real quick for friends to DL May 28 05:30:44 looks like from reading https://developer.android.com/guide/publishing/app-signing.html that eclipse users might be all set with the debug signing... May 28 05:31:00 right click > android > export signed package May 28 05:31:06 if you haven't created a keystone you can through that dialog May 28 05:31:17 and I would HIGHLY recommend creating one and NOT using the debug keystore May 28 05:31:25 just keep track of it and keep track of the password May 28 05:33:11 JakeWharton, What do I right click on? May 28 05:33:23 you're kidding right? May 28 05:33:26 i can't see your screen May 28 05:33:42 need moar info! May 28 05:33:56 project May 28 05:33:57 found it May 28 05:34:00 also, I don't use Eclipse so I probably won't be of too much help with Eclipse-related things May 28 05:34:11 oh yeah, my bad May 28 05:34:30 * JakeWharton mumbles something about Eclipse and wanders off May 28 05:35:52 "A 25 year certificate validity is recommended." What? Hell NO! May 28 05:36:16 i use 50 May 28 05:36:32 you don't ever want your cert to expire May 28 05:37:10 symptom: yeah, it costs like $0 bucks a year, so 25 years can be pretty expensive for some people May 28 05:37:42 #PoorPeopleProblems May 28 05:37:44 JakeWharton, I dont know if I agree with that.... Some PKI infrastructures depend on certificate expiration May 28 05:38:15 well Android is dependent on it not expiring May 28 05:38:23 it will be a headache for all involved if yours ever does May 28 05:38:41 i lost one in a hdd failure May 28 05:38:42 whoops May 28 05:39:21 only a small personal app though, so not a huge issue May 28 05:45:09 I did what any sane developer would do... May 28 05:45:22 hexdump'd the contents and got it tattooed on my body May 28 05:45:34 very wise May 28 05:45:49 unless you're in a massive motorcycle crash, or similar May 28 05:46:59 well then hopefully the one I have on an SD Card on my desk will be sufficient :) May 28 05:48:27 I have my key on two separate harddrives, at least May 28 05:48:49 but they're both in the same room May 28 05:49:11 what if the earth blows up pragma-? May 28 05:49:12 If it expires what do you loose? Cant update it without full reinstall? anything else? May 28 05:49:14 you're screwed May 28 05:49:34 symptom: if you ever publish to a market you have to change the package name May 28 05:49:40 btw got my app up, downloaded and installed properly... Thanks for the help May 28 05:50:02 JakeWharton, Oh. Yea that would suck. May 28 05:50:10 this is good... although yeah, it's my 8th rewrite, i'm starting to get the hang of things and it's really starting to work properly. May 28 05:50:12 you guys rock. May 28 05:50:50 i'm fond of rolling May 28 05:51:07 JakeWharton rolls. Everyone else rocks. May 28 05:51:37 trolling, too May 28 05:51:47 yeah, but who doesn't like that? May 28 05:52:21 true story May 28 05:52:54 man, i had a perfectly working StackView widget last week May 28 05:53:02 rebased the branch on the latest master and now it doesn't do a single thing May 28 05:54:00 nevermind May 28 05:54:02 * JakeWharton <-- idiot May 28 05:56:58 thanks again May 28 06:01:38 * pragma- ponders the situation May 28 06:01:40 http://code.google.com/p/roboguice/ May 28 06:05:24 JakeWharton, is it ok to use ABS in commerical applications? any special licensing i need to be aware of? May 28 06:05:34 yes. no. it's apache 2 May 28 06:05:51 ty May 28 06:20:49 I have a StackView in a widget and I'm firing off async image downloads when I can't synchronously fetch one from the filesystem May 28 06:20:58 how do I then invalidate it so the view is recreated? May 28 06:26:33 hi guys. May 28 06:28:02 i'm trying to do a very basic thing and i'm failing. i've setup two buttons on my main activity. both buttons use listen for a listen and then open a new activity: SCREEN2 and SCREEN3 respectively. May 28 06:28:16 that part works. May 28 06:28:47 on screen2 i'm trying to send the user to another screen. this part fails. i added the relevant code with a stack trace here: http://pastebin.com/wEZ2NmzU May 28 06:29:42 i don't understand the error of "java.lang.RuntimeException: Unable to start activity ComponentInfo{com.buttercorp.testproject/com.buttercorp.testproject.Screen2}: java.lang.NullPointerException" because this only happens when i add lines 83-91 in screen2.java. May 28 06:30:10 that is, if those lines i missing i can move to screen2 without a problem (which is where i press another button to try to go to screen3). when those lines are added i cannot even make it to screen2. May 28 06:30:43 i don't see how that block is interfering with my transition to screen2. if there was a problem i would expect it to appear when i pressed the button on screen2. May 28 06:34:24 <`z> DOESN'T MATTER HAD SEX May 28 06:34:39 ew. May 28 06:34:43 TMI May 28 06:45:26 which causes the nullpointerexception? May 28 06:46:14 almost anything, typically something somewhere is expecting a value and instead it's getting a null May 28 06:46:56 without further information it's like "illegal operation" in windows. doesn't mean much by itself. May 28 06:47:16 Heh, I was asking from giraffeslacks May 28 06:47:58 looking your stacktrace, which line is screen2.java:23? (too lazy to count from pastebin) May 28 06:48:02 oh, i thought you were asking in general. sorry for misunderstanding! May 28 06:48:14 heh, no problem :P May 28 06:49:06 If the line 23 is line 81 in pastebin, it could be that android can't find your button_to_screen2 May 28 06:49:58 which could be the reason, because your are using button_to_screen2 in your main-layout. Then again in screen2 you are trying to find button_to_screen2, but now your content is R.layout.screen2 May 28 06:50:19 Does R.layout.screen2 has the button_to_screen2= May 28 06:52:11 I see that the stacktrace also shows its unable to start a componentinfo../screen2 May 28 06:53:56 Aeefire I woke up to find the phone stuck at book. whatr ever I did it froze when flashing on odin (no progress bar). it died when i tried flashing a new PIT file May 28 06:54:18 nism: yep, but the reason is the nullpointer on line 23 in screen2.java May 28 07:00:39 any big advantages to using AndroidHttpClient vs. Default apache? May 28 07:01:12 i know in sdk 13 you can take advantage of http caching May 28 07:01:37 so before that is the question May 28 07:02:25 there's a blog post about it May 28 07:02:43 http://android-developers.blogspot.com/2011/09/androids-http-clients.html May 28 07:04:40 i'll never forget that huge fuckup HTC did with the HttpClient socket buffer size on the Thunderbolt May 28 07:05:22 thanks JakeWharton May 28 07:05:34 will adb work on both rooted and non rooted devices? May 28 07:05:39 jgalt: yes May 28 07:06:28 <`z> DOESN'T MATTER HAD SEX May 28 07:06:49 `z: you're not a virgin anymore ? May 28 07:06:56 <`z> no May 28 07:07:17 hehe May 28 07:07:26 poorly phrased question leads to ambiguous answer May 28 07:07:54 so what does rooting get ya then? just curious as I'm just starting here but possibly from a unique position as my dev platform is the beagle bone, not a commercial retail phone platform. May 28 07:08:48 from a dev persective, being able to see your apps provate files May 28 07:09:01 database, etc. its easier to debug that way May 28 07:11:46 Thanks, guess I'll have to poke about a rooted vs non rooted ver to see the differences. I think the TI gingerbread image comes pre-rooted as it's targeted toward devs. thanks for the help May 28 07:25:11 I am trying to create a mediaplayer app. I am looking around at some open source code and I am seeing that some are binding the service with the mediaplayer in it with the activity that has the play controls and they are using aidl. What does that allow that just using intents would not? May 28 07:27:30 Good Morning all May 28 07:28:06 http://stackoverflow.com/questions/10780413/error-inflating-class-android-support-v4-view-viewpager May 28 07:28:09 any thoughts? May 28 07:28:46 thepoosh: viewpager works fine on sdk 4+ May 28 07:28:55 maybe even 3, not sure May 28 07:29:00 I have a newer SDK May 28 07:29:06 and it doesnt work May 28 07:29:09 so.... May 28 07:29:37 that was the basis for my question May 28 07:30:07 do you have the support-v4.jar or support-v13.jar in your apk? May 28 07:30:28 I tried both, have you read the question? May 28 07:30:46 it's all written in there May 28 07:30:58 um, no that fact was not included May 28 07:31:03 thepoosh: you are talking about importing May 28 07:31:07 that is not the same thing May 28 07:31:26 ensure that the support library .jar is exported in your compilation classpath May 28 07:31:31 I tried using all the different possibilities May 28 07:32:07 did you unzip your APK and make sure its .class is included? May 28 07:32:39 i tried downloading this: http://code.google.com/p/viewpagerexample/downloads/list May 28 07:32:49 and i have the support.v4 in the build path May 28 07:32:54 but still nothing May 28 07:33:16 "android.support.v4.view.ViewPager cannot be recognized" May 28 07:33:37 They mean you should open up the APK manually May 28 07:33:52 To check that it has actually entered your APK May 28 07:33:54 what?! May 28 07:34:09 how can I open the .apk? May 28 07:34:10 unzip the APK May 28 07:34:17 Open it with winrar or something similar May 28 07:34:18 the class loader isn't finding the classes in the support library May 28 07:34:21 ew winrar May 28 07:34:27 :D May 28 07:34:43 what's wrong with winrar? May 28 07:36:13 the same things that's wrong with AOL May 28 07:37:45 that doesn't make sense May 28 07:37:53 (also, I don't know how bad AOL is) May 28 07:38:10 it's shareware May 28 07:38:14 it's ineffecient May 28 07:38:15 May 28 07:38:21 it doesn't support a lot of formats May 28 07:38:26 since when is shareware bad? May 28 07:38:34 and what's better? May 28 07:38:37 7zip May 28 07:38:42 ew.. May 28 07:38:48 you're a fucking moron May 28 07:38:56 or trolling May 28 07:38:59 JakeWharton: what am I supposed to look for in the apk? I opened it May 28 07:39:00 in either case, i don't care May 28 07:39:10 <`z> winrar is a POS May 28 07:39:10 ..I'm a moron because I don't share your opinion? May 28 07:39:11 thepoosh: android/support/v4/view/ViewPager.class May 28 07:39:17 I wonder who's the fucktard here.. May 28 07:39:27 I don't May 28 07:39:42 *ignore* May 28 07:39:52 *give a fuck* May 28 07:39:55 no wait, i didn't May 28 07:40:20 JakeWharton: nothing like that, all I have is the res and the META-INF May 28 07:40:48 and the classes.dex and resources.arsc May 28 07:41:01 i'd like to see analytics on how many people who say crap like "ignore" actually follow through and ignore the person through their client May 28 07:41:07 i'm willing to bet it's pretty low May 28 07:41:31 i once or twice had my /ignore work May 28 07:41:46 but mostly, I follow xkcd's "duty calls" May 28 07:41:55 as do I May 28 07:41:59 thepoosh: how do you manage to get an ignore to not work? May 28 07:42:09 holy crap, a 22" android tablet :O May 28 07:42:13 thepoosh: are you using ant? May 28 07:42:20 noipe, eclipse May 28 07:42:28 *nope May 28 07:42:42 http://xkcd.com/386/ this is me all over the place May 28 07:42:58 hehe May 28 07:43:06 well, somewhere there's a magical place where compiled .class files are staged pre-assemble where we can see what's being included May 28 07:43:21 i think, i use neither ant nor Eclipse so i may be of limited help to you May 28 07:43:37 if I added it in the eclipse project it can be discarded? May 28 07:45:47 no more thoughts? May 28 07:45:53 pragma-: ? May 28 07:45:57 sorry I'm feverishly trying to get something to work May 28 07:45:59 uh May 28 07:46:00 thepoosh: I normally put library files in folder: libs, right click -> Build Path -> Add to Build Path. May 28 07:46:09 yes do that May 28 07:46:10 I dont know what else you can do May 28 07:46:24 it should show up under a dependencies folder in the eclipse project May 28 07:46:27 I'll try that May 28 07:46:35 but something is clearly messed up May 28 07:46:53 BOOM May 28 07:46:53 It will end up in "Referenced Libraries" after you have added it correctly May 28 07:46:58 yeah that's the one May 28 07:47:02 good 'ol Eclipse May 28 07:47:13 You use idea? May 28 07:47:18 I do May 28 07:47:50 I've been tempted, Eclipse works well most of the time. However, some of the time it just gets very grumpy. Mostly when dealing with several library projects. May 28 07:49:08 lies May 28 07:50:01 library projects are a construct of the adt; if they dont work its not eclipse :) May 28 07:50:32 actually the ADT Plugin provides Eclipse with knowledge of library projects which is why they've often been unstable May 28 07:50:36 g00s: eclispe adt May 28 07:51:33 Knossos: thanks man, please answer the question on stackoverflow May 28 07:51:38 so I can accept it May 28 07:51:57 library projects are probably unstable because so few have the balls to use them that they haven't had that much development effort. May 28 07:52:25 Knossos: http://stackoverflow.com/questions/10780413/error-inflating-class-android-support-v4-view-viewpager May 28 07:52:40 That was it then? Cool. May 28 07:53:27 yes, do you have a thought about why this happens? May 28 07:53:32 abs is huge, like a giant unit test for adt May 28 07:53:45 readme: for reals May 28 07:53:58 and for the framework May 28 07:54:15 i think i've filed about 20 bugs and submitted 4 or 5 patches to AOSP since its inception May 28 07:54:52 thepoosh: Which part? May 28 07:54:53 anyway if anyone was having trouble getting abs to work in eclipse.. copy the whole library/ tree into your workspace, then use create from existing source May 28 07:55:26 Knossos: the adding to "libs" and then to the build-path instead of adding the external jar just like that May 28 07:55:56 how is the world of android dev today? May 28 07:56:08 Perhaps it will only compile into the APK files that are in the project workspace May 28 07:57:13 Drakonite: peachy :) May 28 07:57:21 I don't know why people don't use library projects more often. I tend to cut up my larger sub-programs into managable library projects so I can include them in anything. May 28 07:57:44 I'd have to wager that around 70-80 of people out there don't even write reusable code. May 28 07:57:53 70-80% May 28 07:57:59 there was a weird bug with library projects and a shared dependency May 28 07:58:07 (fixed, but it was a pits) May 28 07:58:11 *pita May 28 07:58:18 readme: I'm sure that number is far too small May 28 07:58:23 :D May 28 07:59:00 Knossos: for now (I'm a true newbe) I sstill don't write to much re-usable code May 28 07:59:03 *99-99.999% May 28 07:59:06 I know it bad May 28 07:59:18 I write too much reusable code and it ends up slowing down what I can get done May 28 07:59:20 and I know it'll go away soon May 28 07:59:24 If you are just learning, that is fine really May 28 07:59:35 there is no reusable code until its actually reused, and basic software economics says reusable code costs more than regular code, so you have to be sure you're going to reuse it at least once to recover those costs :) May 28 07:59:36 JakeWharton: i end up reusing your code XD May 28 07:59:38 sometimes it's better just to get something working May 28 07:59:45 You don't want to make (bad) reusable code May 28 07:59:57 only write reusable code if you think it needs to be reused :) May 28 08:00:03 What is the difference between Dialog.cancel() and Dialog.dismiss() ? TIA May 28 08:00:40 Cancel will bring up the onCancel event May 28 08:01:10 Whereas dismiss will just close the dialog May 28 08:01:28 And as a side note, you may want to look at FragmentDialog May 28 08:01:29 Knossos: Thank you May 28 08:01:35 ok May 28 08:02:27 When I notice that I need to reusable some code-part, i usually then refactor it from its original context May 28 08:03:21 /s/reusable/reuse May 28 08:07:38 Drakonite: somebody needs to overthrow adobe with all their overpriced crap May 28 08:08:05 g00s: this is supposed to be news? ... :P May 28 08:08:18 how much is CS6 PS? May 28 08:08:19 Drakonite: not news , just my observation :) May 28 08:08:22 they have a subscription plan now May 28 08:08:23 i'd probably pay $300 May 28 08:08:26 Gimp is catching up, imo May 28 08:08:35 you can get all adobe products for 50/mo May 28 08:08:47 even FLASH!?!?!? May 28 08:08:53 g00s: just saying... I've been saying this for a long time ;) May 28 08:08:54 thats extra May 28 08:09:03 everyone's been saying this for a long time May 28 08:09:03 neither gimp or inkscape will ever meet or beat adobe -- but they are both very good software anyway. May 28 08:09:14 Drakonite: its an area seemingly ripe for uh, disruption, i wonder why nobody can do it May 28 08:09:21 their products are amazing May 28 08:09:24 they deserve the money May 28 08:09:30 not for Flash. May 28 08:09:38 They deserve a beating for flash. May 28 08:09:48 I can't think of any existing technology that does a better job at what flash does than flash May 28 08:09:56 JS/html will eventually kill it May 28 08:10:00 but the tools aren't there yet May 28 08:10:12 g00s: because everyone bitches about any possible competition instead of giving it a chance May 28 08:10:16 Just because there are no competitors, doesnt mean that its good. May 28 08:10:17 Flash drives me bananas, when it is used to power the entire site May 28 08:10:19 for people to make very complicated stuff easily May 28 08:10:41 DashCC: but aren't there? May 28 08:10:44 Drakonite: it seems like the biggest impediment is that its a defacto standard May 28 08:10:48 isn't silverlight competing with it? May 28 08:10:57 wasn't a java applet once a thing that competed with flash May 28 08:10:58 depends on how you define competing May 28 08:11:09 it's competing in the same way WP is competing with Android and iOS May 28 08:11:15 no doubt html5 will kill flash May 28 08:11:19 it's just a matter of years May 28 08:11:24 Doesnt change the fact that Flash is a huge fuckup. :D May 28 08:11:51 well, flash used to solve a huge problem quite elegantly not so long ago May 28 08:11:59 now it's only used to copy shit to the clipboard May 28 08:12:20 * g00s is inviting mockery, but i still feel ms could give android a lot of competition if apollo turns out to be good May 28 08:12:36 I hate to use it, but right now I have to because of new-ish video streaming technology May 28 08:13:07 g00s: Colin? :D May 28 08:13:11 and i dont think android will ever recover on the tablet :) May 28 08:13:15 *EVER* May 28 08:13:26 But that would be Colin Mochrie, and that would be awesome May 28 08:13:31 recover implies it lost something May 28 08:14:05 I /still/ don't understand tablets. May 28 08:14:27 they are good for reading on the couch May 28 08:14:31 I like them. Recently got a Blackberry Playbook - I really like the size of it May 28 08:14:43 but I think I wouldnt buy another Tablet > 7" May 28 08:15:06 i guess rim is going to get go of another 2000 workers May 28 08:15:22 *let May 28 08:15:26 2000 new RIM jobs May 28 08:15:27 yep, just read it this morning May 28 08:15:27 can't be too much longer before they let go of all of them May 28 08:15:39 yeah, they lost the race May 28 08:15:58 Same as Nokia May 28 08:16:16 Nokia's burn rate is unsustainable May 28 08:16:20 Once the kings of the indestructable brick of awesomeness May 28 08:16:32 hehe funny May 28 08:16:39 both Nokia and RIM are giving away free "dev" devices May 28 08:16:49 last resort, I guess May 28 08:17:06 I guess you can't really have a good smart phone without people making apps for them May 28 08:17:36 i think the averge person has about 40 apps on their phone now May 28 08:17:47 40 including stock? May 28 08:17:48 devils circle really. No people buying their phones -> no developer wants to sell their apps on it -> less people buying their phones May 28 08:18:02 I have less than 10 market apps installed at any given time May 28 08:18:05 usually less than 5 May 28 08:18:09 but the time they spend in those apps has not increased, so all apps compete with each other for time May 28 08:18:44 go figure, you can only play so many games on the bus to work :) May 28 08:19:00 that is a problem with games May 28 08:19:06 if you make a solid business app though :) May 28 08:19:28 my next app is a business app and I'm going to charge 10 bucks for it May 28 08:19:46 here is where i got that # from, btw http://www.fiercedeveloper.com/story/why-customer-engagement-important-41-apps-smartphone/2012-05-24 May 28 08:19:46 can I ask what the pitch is? May 28 08:20:02 Or will we find out in the course of time? May 28 08:22:47 I wonder how many people they asked May 28 08:22:53 For how many apps they have. May 28 08:23:10 And whether that is in multiple places etc May 28 08:23:55 i doubt they asked... it's probably some analytics spyware that figures it out May 28 08:24:01 :D May 28 08:25:09 my next app is something that if you were going to use, you'd use for hours :) May 28 08:25:43 it is unclear how many of the 40 in question here are games May 28 08:25:59 games should be analyzed separately from apps May 28 08:27:05 One of my current projects is a TV app, aimed mainly at Germans though. (I work for a German business) May 28 08:31:55 how many hours are the app version statistics delayed by in the developer console? May 28 08:32:54 Do you mean after you have uploaded a new version, how long that takes to be visible? May 28 08:33:39 xertoz: i consider it accurate up to 24 hours before the current time May 28 08:34:41 Hi, I am looking forward to develop an app w hich can connect to android device via USB not in mass storage mode (app <---> Mobile via USB e.g. that how various softwre like Samsung KIES, Nokia Suite works) May 28 08:34:58 can you suggest me if there is some way to make this USB communication possible. May 28 08:35:28 as of now I am only able to do after enabling USB debugging mode in Android device. Any hints ? May 28 08:35:59 S_A: stackoverflow has these answers somewhere, http://stackoverflow.com/questions/4834930/usb-communication-with-android-arduino May 28 08:45:59 my next app is going to be a banking app and i'm going to charge $19.99 for it May 28 08:46:18 plus a $4.99 monthly subscription May 28 08:46:24 plus ads May 28 08:46:33 plus in-app purchases May 28 08:46:45 plus trading cards May 28 08:46:57 with 2 sticks of bubble-gum May 28 08:47:15 Pragma: will it offer splendid budget advice such as reducing expenses on apps? May 28 08:47:39 no, but there will be a pop-up that lets you disable adds for 24 hours for only .99 May 28 08:47:54 i wish to learn how to program something like a game within 2 hours' competition May 28 08:48:28 vanson2012: OK. May 28 08:48:35 i have been practising on object orientation codes May 28 08:48:39 but i hate my speed May 28 08:48:49 i dont know how to program faster May 28 08:49:15 it would be awesome, if on the market - when i see a crash report, i can click on it and this would send a message to the buyer acknowledging that i saw the problem May 28 08:49:37 you decrease development speed by knowing the language, APIs and possible frameworks etc by heart. (not all, just 99%) May 28 08:49:50 vanson2012: play typeracer.com May 28 08:50:04 you'll be a fast programmer in no time May 28 08:50:04 g00s: would be even more awesome if all crashes were reported :p May 28 08:50:20 typeracer.com should have a special java edition where you have to press ctrl+space all the time May 28 08:50:42 and ctrl+shift+o and so on May 28 08:50:44 hrnt: don't forget about the CTRL+1 May 28 08:53:09 my speed is 65wpm May 28 08:56:13 vanson2012: that's no good May 28 08:56:56 vanson2012: you can do arrays and stuff with 65wpm but if you want to binary search and stuff, you need at least 90wpm May 28 08:57:03 ow May 28 08:57:18 i will probably lose my opponents in program contest May 28 08:58:17 hey, May 28 08:58:18 I wanted to know how to add border to a table that the row adding dynamically to the table? May 28 08:58:19 im doing better May 28 08:58:22 70 wpm May 28 08:58:36 i think i might train myself at least i will not be fucked up May 28 09:01:59 hmm, http://www.appreciate.mobi/ May 28 09:04:23 Hello All May 28 09:20:16 JakeWharton: are you still there ? May 28 09:21:17 g00s: i'm here! May 28 09:21:35 oh noes :( May 28 10:45:33 if i want to be able to have a list view on screen and swipe left or right to go to other listviews what sort of parent container should I use? May 28 10:45:46 listviews within a viewpager? May 28 10:52:00 is there an 'aplay -l' equivalent on android shell ? May 28 10:55:41 harshpb: this channel is app dev. try #android-root or something. May 28 10:56:46 readme: i knw, just asked in case someone is aware, i asked on android-dev but no replies yet ;) thanks for telling abt #android-root May 28 10:57:39 oops, i thought it was #android channel window May 28 10:57:53 anyway, asked there on -root May 28 10:58:11 you can write a service that plays a media file May 28 10:58:17 then you can start it with am startservice May 28 10:58:22 you can make an alias to do that May 28 10:58:41 hey, does anyone have experience with zxing? May 28 10:58:53 yes May 28 10:59:09 readme: actually I need a cmd to generate list of audio devices available for playback/capture May 28 10:59:19 i'm trying to style my own barcode scanner view May 28 10:59:38 yeah, I never attempted to do that. May 28 10:59:53 i haven't been able to do it without including the entire source of the zxing code May 28 10:59:54 did you already compile your own and get it to work normally? May 28 10:59:59 wel of course not May 28 11:00:03 you're going to have to May 28 11:00:18 ah okay May 28 11:00:44 i'm getting bad results compared to the zxing barcode scanner app May 28 11:00:55 yeah, as did I when I built it. May 28 11:00:59 do you have any idea why that could happen? May 28 11:01:02 I have ActivityGroup with multiple levels of activities. To track history I have an ArrayList inside my ActivityGroup. When I move to deeper Activity, I push a view of that activity on top of a list. onResume of that activity gets called properly. When I press back, I delete top View from my list and setContentView to last one in a list. Now how can I force onResume method to be called upon an activity which is saved as a View in my his May 28 11:01:02 tory when I click Back? May 28 11:01:02 no May 28 11:01:19 alright, thanks for your help :) May 28 11:01:28 sorry I can't offer a solution May 28 11:01:34 my opinion is dont try to style it :) May 28 11:01:44 onResume is never called on activities when I press back :| May 28 11:01:55 it's called after you return to the activity May 28 11:01:57 haha, wish i could May 28 11:02:15 zhulikas: also, you're probably aware of this, but ActivityGroup is deprecated May 28 11:02:53 there is not much I can do at the moment about it being deprecated. I need to continue using it for this app May 28 11:03:16 using a deprecated API is like wearing a members only jacket -- you might think it's cool, but it's not. May 28 11:03:21 just saying, what you're trying to do is very easily accomplished with FragmentManager.addToBackStack() May 28 11:04:51 so as this is deprecated, nobody is willing to answer my question? May 28 11:05:18 zhulikas: no, I'm guessing nobody knows May 28 11:05:24 shit. May 28 11:05:30 I'd help you if I knew anything about ActivityGroup May 28 11:05:46 it's not really about ActivityGroup May 28 11:05:54 one thing though, why are you handling views instead of activities? May 28 11:06:01 ie, why do you have a stack of contentviews May 28 11:06:05 it's more about how to force Activity.onResume having it's View May 28 11:06:31 a view is just a view; it's not special or coupled to the activity in any way May 28 11:06:41 hmm May 28 11:07:01 well, I was hoping it has some sort of reference to it's Activity from which it is created May 28 11:07:06 nope May 28 11:07:11 that would solve the problem May 28 11:07:20 then I need to make that reference I guess May 28 11:07:28 why do you not simply use the activity stack to get your detail navigation? May 28 11:07:34 why are you reimplementing this May 28 11:08:21 ie, if you start a new activity from a current activity, android will keep track of history May 28 11:08:39 I don't get why you have this List at all May 28 11:09:33 mhmm May 28 11:09:40 you should use Activity for what it's meant for May 28 11:09:41 well, probably my explanation would also be deprecated May 28 11:09:45 tracking your own history is not necessary May 28 11:09:46 so not sure if it's worth explaning :D May 28 11:09:49 history is already robust May 28 11:09:54 tell us what you actually need to do May 28 11:10:00 in plain english May 28 11:10:11 plain english is out of question May 28 11:10:36 your solution is just wrong May 28 11:10:40 i'm sorry May 28 11:10:40 my deprecated explanation would be that I am dealing with tab host activity which has activity group as every tab May 28 11:10:44 I know it is May 28 11:10:54 so why not plow it and start fresh? May 28 11:10:59 oh god no May 28 11:11:09 zhulikas: but you're essentially just shuffling views around, and then expecting android to magically recognize that this view you've just set was a certain Activity's contentView May 28 11:11:15 and then magically call onResume on it May 28 11:11:23 indeed :D May 28 11:11:57 ok, I will figure some nasty hacks which will make things even worse but make this app run May 28 11:12:11 thanks for suggestions May 28 11:12:18 np, good luck May 28 11:12:28 then watch it blow up on the devices you don't have for testing, because you used an arcane solution that takes many code paths not traveled before. May 28 11:13:00 its never too late to start over... May 28 11:13:32 the only problems I had so far related to different devices are problems with memory (in dealing with big bitmaps) and some device-specific differences in API May 28 11:14:09 for example when prefilling sms message using Intent and such May 28 11:14:12 you're running a high risk of more problems May 28 11:14:19 by using unconventional solutions May 28 11:14:21 just saying May 28 11:14:23 good luck :) May 28 11:16:57 Hello All May 28 11:19:54 Anybody there? May 28 11:23:57 hi, is there a way to find out the owner of a file on android? May 28 11:35:55 hey May 28 11:36:23 i have just installed eclipse and the sdk and pulled some app from git May 28 11:36:29 how can add the copy/paste feature on longpress on textview May 28 11:36:39 but eclipse confuses me so much that i feel kind of helpless May 28 11:36:50 how do i run or import my project? May 28 11:37:32 there is no build.xml included so i am unable to build the app with ant May 28 11:40:21 obiwahn you can update the project from the command line and it will generate the build.xml May 28 11:40:26 hang on I'll get the link for you May 28 11:41:31 obiwhan http://developer.android.com/guide/developing/projects/projects-cmdline.html May 28 11:41:39 look for the update section May 28 11:41:51 thanks May 28 11:46:31 maiatoday: should that create an apk? May 28 11:46:59 no the update just makes the build files May 28 11:47:01 ah:) May 28 11:47:12 if you then go ant clean release May 28 11:47:16 Can I have a bunch of Log.d statements in the code and then just tell the compiler not to include them? May 28 11:47:17 it will do the build May 28 11:47:29 hello anybody know how to add copy/paste feature on textview May 28 11:47:40 is it possible to install the unsigned apk? May 28 11:48:22 I think if you go ant debug you'll get a debug build that you can install May 28 11:48:47 not sure, I have only been building signed apks lately May 28 11:49:43 do most of you use eclipse? May 28 11:50:05 it seems very mighty but it is shocking for a vi nerd like me:P May 28 11:50:12 obiwahn the debug versions I build run on the emulator not on a phone May 28 11:50:46 I use the command line to automate my builds and do automated testing May 28 11:50:52 but use eclipse for dev May 28 11:51:39 obiwahn look here http://stackoverflow.com/questions/4835925/unsigned-apk-can-not-be-installed May 28 12:07:48 I live in terror of the day I start to comprehend regex. May 28 12:13:02 uh, its easy May 28 12:13:10 let me explain the basics in 5 seconds May 28 12:13:22 first there's posix and then there's pcre May 28 12:13:29 posix is simple, pcre is a bit complicated May 28 12:13:48 there are few special chars in regex May 28 12:13:59 . ? + * and - May 28 12:14:13 . matches any character. ? + and * are quantifiers May 28 12:14:16 - is the range operator May 28 12:15:47 expressions can be enclosed in parens, soo. May 28 12:16:16 whatever you follow with a quantifier (like an expression) gets repeated: 0...n times for *, 1...n times for + and 0..1 times for ? May 28 12:16:39 using parens you can create subgroups of the match, too May 28 12:16:47 see man 7 regex May 28 12:17:52 try this: echo "Foo1Foo1Foo1" | grep -o --color "\([A-Za-z]0.[0-9]\)*" May 28 12:18:02 the match is deliberately obtuse to demonstrate more ways of matching. May 28 12:18:22 http://regex.learncodethehardway.org/book/ May 28 12:18:23 try that too May 28 12:19:20 wow readme is a really well written bot May 28 12:20:23 the thing that sucks about regex and pcre is that each language debauches it a little bit May 28 12:20:35 so you have to know the details of using it in language x May 28 12:22:05 thanks readme May 28 12:22:19 just start by learning the basic posix regex May 28 12:22:22 its easy May 28 12:22:22 ;) May 28 12:25:00 that should be an o instead of an 0 May 28 12:30:34 99% of the time a regex is a horrible solution May 28 12:37:57 readme: what makes you say that? May 28 12:39:31 maiatoday: thanks you helped me a lot i got everything working now:) ill think ill ask a friend who know eclispse to give me an into:P May 28 12:40:49 leslie: well, it's only good for parsing regular patterns in text, which is something I almost never work with. Second you have little control over the performance of a regex, then, they are difficult for many people to understand. May 28 12:41:10 i think they are more often abused then used properly May 28 12:41:25 I'll agree with the difficulty in understanding them part May 28 12:41:28 cool obiwahn I am glad it's working May 28 12:41:59 regex's performance is, on the contrary, almost entirely in user's control. After all, you can routinely reach O(N) performance in regex parsing in terms of matched input length May 28 12:42:21 on the other hand, you can screw it up so completely that it will take very long time to determine that a pattern doesn't match, so there is that May 28 12:42:33 a few .*.*.* will do wonders :-p May 28 12:42:38 that's just poor regex writing though May 28 12:43:32 usually when I am dealing with text it's already in some container, like a sqlite database, JSON, or XML May 28 12:43:55 but that's just because it's 2012 May 28 12:44:14 * readme dislikes flat files May 28 12:44:33 things like logs are typically still flat files May 28 12:44:42 thats a good use case example May 28 12:45:08 http://blog.treasure-data.com/post/21881575472/log-everything-as-json-make-your-life-easier May 28 12:45:17 what about verifying user input? May 28 12:45:35 that's a good use case too May 28 12:45:43 but usually I have a library that does that, which might use regex underneath May 28 12:46:06 check out this regex I use to verify an email: "@" May 28 12:46:09 ;) May 28 12:46:43 email addresses are more complex than that though May 28 12:47:07 having read a lot on the topic, my conclusion is that the only way to verify an email is to check it for an @ symbol and send one off May 28 12:47:12 I saw a regex that parsed email addresses properly before but it was ridiculous May 28 12:47:21 yeah, I saw that one too May 28 12:48:00 http://instantbadger.blogspot.co.uk/2006/08/regex-to-fully-validate-rfc822-email.html May 28 12:48:02 that one May 28 12:49:15 its a cool hack but I would probably not use it in real code May 28 12:49:26 yeah May 28 12:51:23 i think my favorite place to use a regex is interactively in the text editor May 28 12:52:07 I never use it really May 28 12:52:25 but then typically I'm using Java/C#, or something else that supports refactoring instead May 28 12:53:30 readme: doesn't an email also require a . ? May 28 12:53:34 no May 28 12:53:42 not as far as I know May 28 12:53:49 oh May 28 12:53:53 you can have me@localhost May 28 12:54:31 leslie: yes I've seen that May 28 12:54:56 but i didn't think it was a valid email address: i.e. one that you can send email to? May 28 12:55:13 you can send email to it, but it's probably not terribly useful May 28 12:55:14 I mean I guess you can send and receive locally May 28 12:55:25 you can use it for sending across a local network too May 28 12:56:11 but isn't a bit like saying localhost is a valid domain name? May 28 12:56:13 user@[IPv6:2001:db8:1ff::a0b:dbd0] May 28 12:56:16 there's another one May 28 12:56:21 with no . May 28 12:56:55 code1: it's user@hostname. any valid hostname will work May 28 12:57:29 well I suppose @ is the only character you can be sure of then! May 28 12:57:37 indeed May 28 13:12:02 hi May 28 13:14:11 what is the maximum sqlite database possible for android? May 28 13:15:48 i have searched, and looked on sqlite limits, and i dont find good information about it, does anyone know if its possible to have a database with ~10 GB stored on sdcard? May 28 13:17:08 RubenGM: this is a very very bad idea. May 28 13:17:54 i think too, but i have to fundament very well why May 28 13:18:57 RubenGM: I've had trouble (running on a first-gen device though) when my database went over 100mbytes May 28 13:19:09 wow :/ May 28 13:20:25 from the sqlite they dont have a size limit, and from stack overflow the questions about it doesnt say much May 28 13:21:51 10GB? what are you going to store in that? May 28 13:22:27 several information around 9 Million people May 28 13:22:36 RubenGM: you might be able to have it working by properly limiting the actual cursor sizes... May 28 13:22:58 RubenGM: if you don't do a "select * from people;" you might be fine... May 28 13:23:19 that sounds really privacy-sensitive as well. May 28 13:23:28 we will have to reduce it probably, by removing the images and load from a webservice May 28 13:23:54 yes thats other questions May 28 13:24:08 seems to me that the whole DB should be served via webservice May 28 13:24:11 security issues May 28 13:24:43 maybe you need to hire an expert :> May 28 13:24:54 If you do a sql join on two+ tables, getColumnIndex("_id") will get the wrong column index! getColumnIndex("table._id") throws requesting column name with table name -- table._id, so cannot refer to that _id with the table name May 28 13:25:08 we wont have network most of the time :/ May 28 13:25:09 how are you supposed to deal with sql join _id's? May 28 13:25:30 raywan: tried renaming the column? May 28 13:26:01 raywan: you could also just hard-code the column index, just don't forget to update it once the query changes May 28 13:27:00 and if we could reduce the size to around 1 or 2 GB, should it be possible? May 28 13:27:00 So this is a bug in getColumnIndex() May 28 13:27:32 getColumnIndex() should not just pick whichever _id (or column) if there are more than one May 28 13:27:47 RubenGM: as I said, you might be able to work wih it by reducing the amount of data actually pulled from sql. May 28 13:28:27 ok tks, i will give it a try ;) May 28 13:28:35 raywan: you can work around the problem or file a bug report on android and hope that one day, somebody is going to have a look at it. May 28 13:28:43 (probably not) May 28 13:36:18 yawn May 28 13:41:07 guys, I have two