**** BEGIN LOGGING AT Tue May 22 02:59:59 2012 May 22 02:59:59 i'm trying to call to three number phone but just dial, why? May 22 03:00:07 don't call May 22 03:00:40 show code May 22 03:00:41 if number is longer than three numbers call May 22 03:01:11 Uri uri = Uri.parse("tel:" + number); May 22 03:01:12 try { May 22 03:01:12 Intent callIntent = new Intent(Intent.ACTION_CALL, uri); May 22 03:01:12 startActivity(callIntent); May 22 03:01:12 finish(); May 22 03:01:12 } May 22 03:01:22 that will open the dialer, but not dial. May 22 03:01:34 for dial, you need to use ACTION_DIAL May 22 03:01:51 i want to call May 22 03:01:59 it does call May 22 03:02:05 the difference is that it dials the # for you May 22 03:02:20 yes May 22 03:02:49 if # contains more than three numbers works perfectly May 22 03:03:05 else just dial May 22 03:04:50 is to make an emergency call May 22 03:07:10 how do I edit text/images for widgets? I'm trying remoteViews.setImageViewResource(viewId, srcId) but it doesn't change May 22 03:10:06 no putting it off any longer... time to investigate fragments. May 22 03:10:28 SMlLe: yep, indeed it does May 22 03:10:47 SMlLe: I doubt there is a way around this. You will have to live with it or write your own screen. May 22 03:10:48 oh, here's a question... thinking of action bar and layout. should an action bar, itself, be a fragment? May 22 03:11:02 no May 22 03:11:16 i didn't think so. but wanted to be sure. May 22 03:11:18 thank you! May 22 03:11:40 i was thinking to best let the system manage the action bar. May 22 03:11:52 i want to make a dirrect call May 22 03:12:10 does a fragment have its own back stack? May 22 03:12:15 or is that only activities? May 22 03:12:28 the fragment manager maintains a backstack of transactions that you make May 22 03:12:33 a fragment itself does not May 22 03:12:48 is i'm try to make it with a three numbers longer number works fine May 22 03:12:57 else just dial May 22 03:13:12 show me the number May 22 03:13:29 i'm looking at the whole dual pane layout and trying to figure out if it will work for my app or not. i'd like it to, but my list view is recursive. right now, i'm using activities where the next intent is the same activity to manage this. this provides a back stack "up" the chain. not sure if i can do the same kind of thing with frags or not. May 22 03:13:53 SMlLe: I don't think you can do it! Good luck. May 22 03:37:46 i'm thinking i could build my own 'up a level' button into my fragment... that might work. hmm... so many ideas. May 22 03:38:01 better start with something simple, though. May 22 03:38:59 1. don't have an "up a level" button May 22 03:39:10 2. fragments will do exactly as you described above May 22 03:40:26 JakeWharton, i'm thinking what happens if i'm using dual pane and the user hits the 'back' button while they're 3 levels deep in the navigation listview. May 22 03:40:43 and while a detail pane is on the screen May 22 03:40:52 use breadcrumbs May 22 03:40:55 i don't want them to leave the detail pane May 22 03:41:11 when they hit back the last transaction will be reversed May 22 03:41:19 so if they're three levels deep then they'll go back to two May 22 03:41:32 what if the last transaction is the display of the detail pane? May 22 03:47:10 JakeWharton, does hansel and gretel have a required api level? May 22 03:47:20 no May 22 03:47:28 but it depends on the support library which has a min of 4 May 22 03:47:38 so transitively its min is 4 May 22 03:48:13 i'm getting 2 compile errors May 22 03:48:15 combineMeasuredStates(int,int) in FragmentBreadCrumbs cannot override combineMeasuredStates(int,int) in View May 22 03:48:27 probably wrong imports May 22 03:48:32 and resolveSizeAndState(int,int,int) in FragmentBreadCrumbs cannot override resolveSizeAndState(int,int,int) in View May 22 03:48:38 probably wrong imports May 22 03:50:32 t0mless, there's more than one View? May 22 03:54:23 * t0mless shrugs May 22 03:54:29 normally that error comes from wrong imports May 22 03:54:37 I didn't read it all the way through to be honest -_- May 22 03:55:47 are you using JDK 1.6 compliance? May 22 03:56:02 yeah May 22 03:56:09 1.5 then? May 22 03:59:16 no May 22 03:59:19 1.6 May 22 03:59:47 both fail May 22 04:00:10 [ERROR] attempting to assign weaker access privileges; was public May 22 04:00:44 what are you compiling against? May 22 04:00:57 4.0.3 May 22 04:01:04 I wonder if the scope of those changed May 22 04:02:35 2.2 seems to fix it May 22 04:08:11 are you decreasing the access? May 22 04:08:15 Error inflating class fragment <-- any idea what this means? May 22 04:08:18 like is the parent class public, and you're making it private? May 22 04:08:29 googled and stack overflow someone had something about needing the v4 lib. but that's what i'm using. May 22 04:08:56 try reading the rest of the stack trace May 22 04:09:03 do you have a public default constructor? May 22 04:09:12 is the class top level or a static inner class May 22 04:09:22 or let jake list ALL the possibilities May 22 04:09:45 "try reading the rest of the stack trace" <-- are those considered human readable? May 22 04:09:53 ...yes May 22 04:09:58 they're in English May 22 04:10:03 you seem to be speaking English May 22 04:10:03 they need RosettaStone StackTrace edition May 22 04:11:49 JakeWharton, here's the ptoblem http://grepcode.com/file_/repository.grepcode.com/java/ext/com.google.android/android/4.0.3_r1/android/view/View.java/?v=diff&id2=2.0_r1#13028 May 22 04:11:56 *problem May 22 04:12:28 404 May 22 04:13:12 interesting May 22 04:14:31 anyway, somewhere between 2.3 and 4 combineMeasuredStates & resolveSize became public methods of biew May 22 04:14:36 *view May 22 04:14:52 HAG has them as private May 22 04:14:57 arent they static? May 22 04:15:13 oh yes May 22 04:16:27 Hey May 22 04:16:36 When was OpenSL added to the Android NDK? May 22 04:16:39 same rules apply May 22 04:17:53 http://pastebin.com/2MyHwhQr <-- i have no idea what i'm looking at/for May 22 04:18:46 Caused by: java.lang.ClassNotFoundException: android.view.fragment... something to do with this? May 22 04:18:57 05-22 04:16:43.252: E/AndroidRuntime(428): Caused by: android.view.InflateException: Binary XML file line #7: Error inflating class fragment May 22 04:19:05 your fragment isn't being resolved May 22 04:19:18 InflateException: Binary XML file line #7: Error inflating class fragment May 22 04:19:37 ...ok May 22 04:19:54 error inflating class fragment... i figured that part, but what does that mean? May 22 04:20:06 OpenSL ES May 22 04:20:12 05-22 04:16:43.252: E/AndroidRuntime(428): Caused by: java.lang.ClassNotFoundException: android.view.fragment in loader dalvik.system.PathClassLoader@44e8de80 May 22 04:20:40 > ClassNotFoundException May 22 04:20:48 Since Gingerbread, IIRC May 22 04:20:59 so i was on the right track guessing it had to do something with that line. so it can't find the "android.view.fragment" class? May 22 04:21:10 "caused by" May 22 04:21:15 that's a system class... probably a pretty big deal if it can't find that. May 22 04:21:30 the attribute you passed in your fragment tag that says where it is is wrong May 22 04:21:30 it's probably you're doing something wrong May 22 04:21:40 JakeWharton, i'm absolutely certain of that May 22 04:21:43 or your fragment is private, or some nonsense like that May 22 04:21:53 or the class doesn't exist May 22 04:22:05 yeah, maybe he never wrote the fragment. good point. May 22 04:22:14 public class BookListFragment extends Fragment May 22 04:22:19 what's the package? May 22 04:22:26 lets see your May 22 04:23:03 http://pastebin.com/DW9LmS1L May 22 04:23:16 s/android:name/class/ May 22 04:23:47 wait May 22 04:23:50 that's May 22 04:24:11 is that the proper package name? May 22 04:24:15 public default constructor? May 22 04:24:22 public class? May 22 04:24:44 for the fragment? very basic code at the moment... i can paste the whole frag if you want. May 22 04:24:53 just some default overrides. May 22 04:24:53 go for it May 22 04:25:19 http://pastebin.com/V3HZhEBz May 22 04:26:15 your fragment needs a public empty constructor May 22 04:26:34 same name as the class, right? May 22 04:26:36 is your activity a support fragmentactivity? May 22 04:26:38 (sorry, still a bit new to java) May 22 04:26:48 http://developer.android.com/reference/android/app/Fragment.html May 22 04:26:49 are you using FragmentActivity? May 22 04:27:10 readme, no constrctor is the same as a public empty May 22 04:27:40 actually I know you're not using FragmentActivity by the error May 22 04:27:50 just using activity... maybe that's the problem May 22 04:27:53 it would never try to inflate android.view.fragment May 22 04:28:22 alex_PP: oh, derp May 22 04:28:27 public class MagicBookLibraryActivity extends SherlockActivity { ... <-- i better check the ABS doc ;) May 22 04:29:06 SherlockFragmentActivity May 22 04:30:46 cool, changed that... same error though. May 22 04:31:39 i'm sure i'm missing something quite simple somewhere. turns out that's usually the case. May 22 04:32:53 did you rebuild after changing your imprt? May 22 04:32:55 import May 22 04:34:06 project is set to build automatically May 22 04:34:26 With the SoundPool class, when I adjust the playback rate does that also pitch correct? May 22 04:40:43 b1n0ry: build clean, make sure that you reinstalled May 22 04:40:53 manually remove the app May 22 04:42:25 just cleaned the project and removed the app. i'll redeploy now. May 22 04:44:33 of course i couldn't clean. eclipse crashed and now i've got errors in virtually every file. May 22 04:45:07 lots of "R cannot be resolved to a variable" May 22 04:45:37 those will go away when you build May 22 04:46:50 cleaned again May 22 04:46:52 seemed to fix it May 22 04:47:38 yeah... same error May 22 04:47:55 (not the "R cannot be resolved..." but the previous stack that we were talking about) May 22 04:48:28 could it be something wrong with my compat library? i'm testing on sdk 7. May 22 04:48:54 *api 7 May 22 04:49:00 ty May 22 04:50:36 super.onCreate(savedInstanceState); setContentView(R.layout.main); <-- onCreate() in my activity. that's the only code. May 22 04:50:41 missing something there? May 22 04:50:53 i'm just trying to get the app to launch without error, don't care about the UI yet May 22 04:56:54 I have theoretical and opinion based question... If I were to write a book on using the NDK, covering setup and common usage, geared toward c/c++ devs wanting to do cross platform dev and java devs wanting to speed up chunks of code... what would you guys estimate would be the size of the target audience? i.e. how many potential books sales ? May 22 04:58:09 Drakonite: did you get that ad from the Apress person too? ;-) May 22 04:58:33 uhm.. no? May 22 04:59:10 Drakonite: they are looking for authors for a book as you describe, iirc, and they are recruiting writers, I can probably forward you the email if you are interested. May 22 04:59:40 sure I suppose May 22 05:00:23 A guy I work with was approached by someone (not apress) and asked if I wanted to be a coauthor if the deal was good enough. I'm trying to get an idea of if there is really a market for it or not :) May 22 05:00:43 someone asks about the NDK here at least once a day May 22 05:00:51 my only $0.02 about it is it's a really fast moving target May 22 05:00:53 It's probably an area publishing houses are going after because it's not well known May 22 05:01:13 so there might be a bit of trouble w/ the book content getting out of date as the ndk/sdk drifts May 22 05:01:19 but that's the same w/ any tech book May 22 05:01:23 and they seem to always do fairly well May 22 05:01:28 I've been wanting to write a book for quite a while, and was mulling over some topics recently. The problem is it can't be a financial loss or I can't spend the time doing it. :-/ May 22 05:01:47 are you thinking bout independently publishing it? May 22 05:01:49 honestly, I don't think the drift is that bad with the core items with the NDK May 22 05:01:54 if it costs you money to publish it, get a better publisher. if it costs you your time to write it, you ahve to figure out what that's worth May 22 05:02:25 readme: yes and no May 22 05:02:51 I would think it depends on a lot. In any case, most people writing apps will never touch the NDK, and most people who do touch the NDK will be good enough not to need a book, or prefer to go with the docs. May 22 05:03:00 do you already have an audience that has given you permission to sell them something? May 22 05:03:05 say, a nice blog with a lot of readers May 22 05:03:17 I was considering writing a book and potentially self publishing or maybe looking around if i thought it was really good, but was also approached about this for an ebook publisher. May 22 05:05:04 My experience with writing books is that I'd not want to at the current time, along with that, you've got a very niche market there, with few people who will buy your book, and it would also have to be well marketed. May 22 05:05:15 sure May 22 05:05:30 I think it was a better market a few years back when I first considered doing it May 22 05:05:37 though you can get in to ebooks now too... May 22 05:06:10 I guess my advice is that it takes way more work than you would think, and the only reason to do it would be purely for fun, without thinking you'd make a dime. May 22 05:06:35 And then be sure to email Mark Murphy to make sure he's not working on an ndk book ;-) May 22 05:06:39 just write a small book, do it open source/creative commons, and release it, ask for donations May 22 05:06:53 seriously man who reads those whole 500 page apress books anyway. a thin book is a good thing. May 22 05:07:13 working the math on this NDK book under what I know about this publisher, I don't think it'd cover the cost I'd need, unless they expect a lot more sales than I do and are offering a nicer advance than I expect from them May 22 05:07:30 I need to get my books unpacked... I have a bunch of Apress stuff May 22 05:07:37 I don't buy paper books anymore May 22 05:07:41 never again May 22 05:07:55 a lot of people saying that, hence why I'm not sure about it anymore May 22 05:07:58 +1 with readme, most of those apress books are 2/3rd printed API coverage. May 22 05:08:02 but so many places are doing dual ebook and paper May 22 05:08:07 I've got a safari membership May 22 05:09:06 but if someone self published a book that really had the info I want, say $9.99/copy and I got guaranteed updates, DRM free May 22 05:09:09 I'd be into that May 22 05:09:13 sadly I missed out on my chance to contribute to game programming gems :-/ May 22 05:09:28 love my safari membership May 22 05:10:00 readme: that's exactly what MM does, and it seems to work well. May 22 05:10:20 MM? May 22 05:11:15 i'm writing a book now as well. has nothing to do with android or games... but hey, it's a tech book and i've got an agent. right now he's targetting o'reilly but i think the market is too niche. May 22 05:11:59 mind if I ask the topic? May 22 05:12:05 Drakonite: Mark Murphy, the warescription. May 22 05:12:22 ah, commonsware May 22 05:12:27 it's on pause atm. i had to write a synopsis and the first chapter. that's getting submitted and when i get a deal with an advance, i'll start writing the rest of it. May 22 05:12:37 Drakonite, HP Service Manager May 22 05:12:44 * Drakonite nods May 22 05:13:29 if i never get a deal, then it's going to disappear into the lost files of my archive, i'm sure. May 22 05:13:37 the whole thing is just kinda funny... I forgot what spawned it but I had started debating about writing a book again over the past week or two, and then was approached today about writing one by someone who had no idea I had been debating writing one on other topics May 22 05:13:43 not going to waste my time writing a book no publisher wants May 22 05:13:52 * Drakonite nods May 22 05:14:49 b1n0ry: where I work thousands of people do that yearly.. May 22 05:15:09 kmicinski, where's that? May 22 05:15:14 and why would folks do that to themselves? May 22 05:15:23 b1n0ry: any PhD student in the country ;-) May 22 05:15:31 ah, thesis May 22 05:15:32 lol May 22 05:15:34 LOL May 22 05:15:37 Nice May 22 05:15:52 then my question stands... who would do that to themselves!? haha May 22 05:16:17 indeed May 22 05:16:27 I totally would if someone paid for it May 22 05:16:31 and for my living expense May 22 05:16:34 http://www.reddit.com/r/AskReddit/comments/txl0c/what_is_the_most_computer_illiterate_thing_youve/c4qm51k May 22 05:16:49 If someone paid me enough for my time I'd write a book that no one would ever read. May 22 05:17:01 this'll be my first published book if the agent can get it in. he liked the idea. there's only one other book out there on the topic and it's a self-published, full of typos thing. May 22 05:18:04 of course, right now, mine's full of typos too, lol. never bothered to correct it since it'll probably go through a billion copy edits May 22 05:19:44 I wrote a book once when I was 12. It was filled with curse words and blood and machine guns. It was awesome. May 22 05:19:47 mhm, try to draw antialiased line like FingerPaint from API demo, but seems antialias/dither dont work. should i add something else to program to achieve antialiasing? May 22 05:20:10 pragma-: don't forget your medication today May 22 05:20:10 (used paint.antialias/paint.dither) May 22 05:20:29 pragma-, send it :) May 22 05:20:48 sounds like stephen king meets scorcese May 22 05:21:00 only when they were 12 May 22 05:21:37 alright, i'm deleting this project and starting over May 22 05:21:43 something i did is obviously wrong May 22 05:21:57 I'm tempted to convert my projects on code.google.com to git May 22 05:22:15 and use multi-push to host on code.google.com and github both with one repository and command May 22 05:22:40 (plus, i'll get the awesome merge/stash/clone/etc features) May 22 05:23:15 i was just thinking I wanted to do that. I feel like github is not the best place to host some kinds of projects May 22 05:23:40 I like it for most of my projects, but generally what thrives there is stuff that is hip/cool/new... May 22 05:24:30 whereas really good code might not even get that many watches/follows, if it's not in vogue. May 22 05:24:46 if i'm writing an app to be 2.1 compat, why would i "target" anything higher than that? May 22 05:25:42 your target is what you're building against, so if you want classes that are in later versions but not in earlier ones, you need a higher target than your minSdkVersion May 22 05:26:10 how would the lesser version be able to run the app if it's missing critical classes at the core? May 22 05:26:21 you can check the SDK version programmatically at runtime. May 22 05:27:17 is it likely if i were to target, say api 14, that i would end up using functionality that's not available in 7? May 22 05:27:23 yes May 22 05:27:24 sigh, google's sites are full of 404's. May 22 05:27:33 I'm so sick of seeing "404, that's all we know." May 22 05:27:48 e.g., the git-svn link on http://code.google.com/p/support/wiki/GitFAQ May 22 05:27:49 so if i want it to be 7 compat. why would i target 14? wouldn't i better ensure compatibility if i target the minimum sdk version? May 22 05:28:17 b1n0ry: what kind of thing do you want? May 22 05:28:19 faillink May 22 05:28:41 b1n0ry: because when you want to write modern apps, you will want to make use of the latest and greatest features on the newer versions. May 22 05:28:41 kmicinski, hypothetical questions. i'm trying to really understand some more of the fundamental aspects of the process. May 22 05:29:28 b1n0ry: it's a good question, I've often wondered if there would be a good syntax that would make it nicer / easier to write apps with features not available in app API levels. May 22 05:29:46 there are several May 22 05:29:52 However, I just haven't seen the mass need for such things, generally people abstract things away and check the API version. May 22 05:29:59 for one, resources can have api-level suffixes on the directories May 22 05:30:10 readme, i'm more interested in functionality and maximizing audience than i am in making an app "modern" and flashy. latest does not always equal greatest (or most widely used) from my experience with other technologies. May 22 05:30:12 second, you can check the sdk version with a simple if May 22 05:30:41 b1n0ry: using outdated apis on new version will make your app look gaudy and unappealing to your audience May 22 05:30:45 whether that holds true with android, i've yet to see. May 22 05:30:50 people who are running the bleeding edge phones do so for a reason May 22 05:30:53 they want the latest and greatest May 22 05:31:22 specifically if you have: no actionbar.. use the outdated preferences, etc. May 22 05:32:02 to use sherlock, you need to have a high target because when you are running on the new phones, sherlock uses the *native action bar* May 22 05:32:33 if i'm writing an app, it's because *i* want the app. and, i happen to have a droid x running 2.3.3. and i'm happy to share with other people if they want it. if they think it's "gaudy" then so be it. i didn't make it for them. May 22 05:32:55 you're not very forward thinking then May 22 05:33:00 2.3 isn't going to be around forever May 22 05:33:06 but... if i am writing an app to target the latest version, then why would i ever set the min version lower than that? May 22 05:33:17 it will be as long as verizon decides not to grandfather my plan ;) May 22 05:33:20 at least one will be... May 22 05:34:02 your question has crossed the line from interesting technical question to stupid philosophy discussion May 22 05:34:18 :) May 22 05:35:04 i'm seriously curious. if i'm writing an app to use the "latest and greatest" feature, chances are, it's not going to run properly on anything older than my target. and if i'm writing something to run on anything older, then i won't be able to use some of the "newer" features. i'm just trying to figure out why there should ever be a disconnect between min and target. May 22 05:35:32 maybe for api's? May 22 05:36:46 you can optionally use newer features May 22 05:37:06 b1n0ry ^ May 22 05:37:15 i suppose that's as good an answer as any :) May 22 05:37:16 you can disable certain things that aren't available May 22 05:37:23 like Backup May 22 05:37:30 or the Social APIs May 22 05:37:39 though TBH the only "optional" thing I've done has been manifest settings to control stuff like new screen sizes or install to sd support May 22 05:38:17 or enabling accelerated drawing May 22 05:38:45 that does make sense. May 22 05:39:25 so... "for optimal performance/functionality, target this version. but i wrote the thing so you can run it as low as this version but certain features might not be available." May 22 05:39:42 Exactly May 22 05:40:29 so if you're looking to write an app that's *fully* compatible at full-features down to a certain version, target and min would probably be the same, but if you're writing with dynamic features they would probably be different. May 22 05:40:57 yes May 22 05:41:04 glad you have come around May 22 05:41:29 i'm slow to grasp some things but i do learn. that's why i ask questions. and you guys are way more experienced at this stuff than me. May 22 05:42:11 considering it's almost 2 am, it's not really a good time for me to try to tackle my 6th rewrite of my app May 22 05:42:18 so... i'm off to zzz land. May 22 05:42:25 some people have a belief that target should always be the newest version regardless of whether you use those features or not May 22 05:43:00 Drakonite, seems to me like that might be asking for trouble in a way. you might inadvertantly use something non-dynamically that turns out to be incompatible with your min. May 22 05:43:15 ^ May 22 05:43:16 seems more important to make a conscious decision May 22 05:43:31 you can take your target down to min to check your code statically May 22 05:43:42 not exactly readme May 22 05:43:46 oh? May 22 05:43:53 using higher target changes default behaviors of some things May 22 05:44:01 at least in some manifest settings May 22 05:44:11 so you could end up with a logic problem rather than a syntax/instantiation problem May 22 05:44:16 but you can at least verify you didn't use any classes not present in older versions. May 22 05:44:22 personally I wouldn't want to set target any higher than devices I was testing on May 22 05:44:24 there should be an option for this May 22 05:44:41 yes, you can do that by just not setting the target so high to start with ;) May 22 05:44:46 or a lint rule, say: detect non-present classes in older versions not wrapped in if() { } May 22 05:45:02 readme: surely there is.. May 22 05:45:09 I need to set the target high because I use classes from new versions. May 22 05:45:16 kmicinski: you sure? I haven't noticed it. May 22 05:45:49 readme: not sure, but it would be trivial to write within their analysis framework, so if you can't find it after digging tell me and I'll submit a patch... May 22 05:46:04 I've dug in there before May 22 05:46:10 but, I'm kind of busy with other things May 22 05:46:14 so feel free to make the patch May 22 05:46:38 you're right, it's an important thing to have, and further more, you should be able to reason that the analysis you're doing is (somewhat) sound statically, for most real world uses. May 22 05:47:55 night guys, thanks once again for the wisdom May 22 06:12:33 Looking into getting a new android phone with my new contract, trying to spend <200, is there any phone particularly adept for dev? May 22 06:14:23 galaxy nexus should be <200 by now right? May 22 06:14:33 on contract that is May 22 06:16:17 If it is, go with that. If not and you can't get an SGS3 for that kind of money (probably not but I don't know), the SGS2 has been a stable contender for a long while. May 22 06:17:05 I only use Nexus's/(nexi?) devices for development. May 22 06:42:32 With a ListView, I can enable myListView.setItemsCanFocus(true); is there any way I can achieve this with a ListFragment? May 22 06:46:31 Get the listview, do the same thing May 22 06:47:29 Where would I do that? During my onCreateView or onActivityCreated? May 22 06:47:41 Anywhere after the view is created May 22 06:49:13 Does the list need to be completely populated, or will it just apply to everything regardless? May 22 06:49:56 I don't know, check the api May 22 06:51:37 Looks like it's just a constant flag May 22 06:51:38 thanks! May 22 06:55:27 hi. I just downloaded eclipse and set up android. But I get R not resolved problem evn in hello world program. I tried many solutions given in stackoverflow. But none works. Plz help me May 22 06:56:04 Rrjois: hmm the gen folder is not generated May 22 06:56:11 clean and build May 22 06:57:43 olie, There s a gen folder. Tried clean n build :( May 22 06:57:46 Rrjois usually R.java doesnt get built because you have an error in your .xml files May 22 06:58:18 serban, Its a hello world program. I dint touch the xml May 22 06:58:22 check your error log May 22 06:58:42 perhaps you copy/paste failed May 22 06:58:43 olie, I did it once again. It workd. Don know wat caused it May 22 06:59:44 Rrjois: Eclipse is not all that great May 22 07:00:16 olie, any other IDE for developing on android? How abt emacs? May 22 07:00:24 you can use emacs May 22 07:00:27 you can use notepad May 22 07:00:29 hehe May 22 07:00:31 you can use whatever you want May 22 07:00:32 word! May 22 07:00:48 isn't that the problem because they changed the ways resources are referenced May 22 07:00:52 t0mless, so hve u tried emacs? is it btr than eclipse? May 22 07:01:03 why are you typing stupid? May 22 07:01:04 * readme smells troll May 22 07:01:13 you can't compile hello world but you know what emacs is May 22 07:01:20 I doubt it May 22 07:01:23 I personally don't like emacs May 22 07:01:38 I prefer vim May 22 07:02:16 well, if he's really a troll it only works cause people keep going on with these unnecessary jokes/comments May 22 07:02:22 readme, I hve been in android fr quite sometime. I hve got this prob many times. clean n build worked bfore. but this time it dint. nt even other solutin given across the net. So came here to ask May 22 07:02:41 Rrjois: type in complete words please May 22 07:02:42 Is your keyboard broken> May 22 07:02:43 ? May 22 07:03:39 readme, I hve been in android for quite sometime. I have got this problem many times. clean and build worked before. but this time it dint. not even other solutions given across the net. So came here to ask May 22 07:03:44 sorry for that May 22 07:04:00 * readme wonders why Rrjois's xml isn't working.. .o( ...) May 22 07:04:08 If you've been in android for quite some time... why are you making a hello world app? May 22 07:04:17 ok May 22 07:04:25 I see where the real trolls are May 22 07:04:26 .. May 22 07:04:26 . May 22 07:04:33 * t0mless raises hand May 22 07:04:49 don't defend the obvious troll by vilifying uss DallaRosa May 22 07:05:18 this channel has enough spam with the real noobs, we don't need fakers too. May 22 07:05:33 well, you could just ignore him ^^ May 22 07:05:40 anybody have a link to the cheatsheet for the package index in pdf ? May 22 07:05:49 o.O May 22 07:05:51 ?? May 22 07:05:55 t0mless, I was getting that error in all my programs. So checked it once with hello world. Had to check if there was some problem with my xml May 22 07:05:56 * JavaDog is sorry on behalf of all noobs May 22 07:06:56 * JavaDog did just enroll in an android dev course at his uni however, so now he will have a professor to bother instead ;) May 22 07:07:02 Rrjois: you should check the Problems view in Window->Show->Problems May 22 07:07:20 it is usually displayed by default, though. May 22 07:07:27 Occasionally XML issues will also print to the console. May 22 07:08:01 if your R.string.something has yellow underline, put the mouse on it and maybe it will show you a "fix project" message May 22 07:08:49 readme, Thanks for that. Will keep that in mind. May 22 07:09:05 http://www.troodon-software.com/assets/old/AndroidClasses.pdf May 22 07:09:13 nm found it May 22 07:09:56 dominicdinada: pretty cool, we should have a widget to display images like that May 22 07:10:03 maybe a treemap of some sort May 22 07:10:59 i kept googling android classes pdf and foogle of course pulls 20 pages of useless trash May 22 07:11:10 dominicdinada: nice! May 22 07:11:40 not mine just put it out there for people May 22 07:12:46 I've wanted ot maek a treemap layout May 22 07:13:44 readme: shouldn't be very difficult May 22 07:13:50 takes time May 22 07:13:56 then I need to decide on which algorithm to use May 22 07:14:00 there's so many ways to do it May 22 07:14:14 pdf seems out of date May 22 07:14:25 I prefer the strip treemap algorithm May 22 07:14:26 css + html5? May 22 07:14:53 maybe I'll write one and put it up on github May 22 07:14:58 that would be cool May 22 07:15:15 could be a useful tool in arranging images to form a collage May 22 07:15:27 simonvt but still more usefull than nothing May 22 07:16:14 Seems to be made in like api 8 or something May 22 07:17:09 olie: would your implementation rely on nesting of any kind? May 22 07:17:16 yes May 22 07:18:48 July 6, 2010 Android SDK Poster May 22 07:18:57 ya sdk 7 or 8 May 22 07:20:49 That's after google io, so probably 8 May 22 07:22:28 i invite anybody to revise it up to gingerbread :) May 22 07:22:53 GB? Pfft, ICS May 22 07:23:02 lol May 22 07:23:31 still lots of 2.1 to gb phones out there May 22 07:23:48 make up most the market May 22 07:23:57 Can still support them while using newer methods and classes on ICS May 22 07:24:47 if (isIcs()) { callNewAndExcitingMethod(); } else { Log.v(TAG, "Your phone sucks"); } May 22 07:24:49 * p_l could theoretically get ICS, but losing hw accel, camera and a lot of other issues is a no-go May 22 07:25:02 well if you know of an upto date cheat sheet poster im for it May 22 07:25:25 SimonVT: you need to separate methods that don't exist in older APIs otherwise it won't pass verification May 22 07:25:39 p_l: i've got it on my droid 3.. I sacrifice audio working while bluetooth is on for it. May 22 07:25:40 p_l: Only if you support <2.0 May 22 07:31:35 is there a website where android controls are published somthing like cocoacontrols.com May 22 07:31:36 ? May 22 07:38:34 I think someone tried to make one May 22 07:38:39 like androidlayouts.com or something May 22 07:40:17 http://android-layouts.com/ May 22 07:40:22 not many there though May 22 07:40:27 this sucks May 22 07:40:41 <[deXter]> http://developer.android.com/design/index.html May 22 07:40:46 <[deXter]> Is pretty decent May 22 07:41:18 yea, if you haven't looked at Android Design you def should May 22 07:41:45 <[deXter]> Controls are listed under "building blocks" btw. May 22 07:42:57 Ive seen that May 22 07:43:22 I m just saying that there are tons of open source controls built there should be some visibility for them May 22 07:43:24 I think he's looking for pre-built layouts/code May 22 07:43:29 not just design guidelines May 22 07:43:34 <[deXter]> hmm May 22 07:43:48 better than reinventing the wheel May 22 07:45:57 http://www.androidhive.info/2011/07/android-layouts-linear-layout-relative-layout-and-table-layout/ May 22 07:50:49 is it possible to define triangle shape in xml? May 22 07:54:06 how do you check if a process is running in linux? Is there a command which works with TOP? May 22 07:54:25 ps aux | grep "name" May 22 07:54:45 on android, use just ps | grep "name" May 22 07:55:09 for process list u can use ps command, and man/help describe parameters :) May 22 07:55:34 hoangtran: default dont have support for triangle, but u can make it May 22 07:56:07 ah grep, one of life's great mysteries May 22 07:56:08 thansk May 22 07:56:28 *thanks May 22 07:57:44 hoangtran: no May 22 07:58:16 so: rory 19992 0.0 0.0 98384 924 pts/7 S+ 08:56 0:00 grep --color=auto x11vnc means it is running as process 98384? May 22 07:58:45 so:" rory 19992 0.0 0.0 98384 924 pts/7 S+ 08:56 0:00 grep --color=auto x11vnc" means it is running as process 98384? May 22 07:59:02 Ankhwatcher: nope, it means is not running May 22 07:59:10 its means only grep is running May 22 07:59:12 the line you are seeing is the grep command itself May 22 07:59:30 where it says "grep blah blah blah" it should say "x11vnc" instead May 22 07:59:43 okay, I'll run it on irssi and see what that looks like May 22 08:00:53 ah, I see May 22 08:01:05 I wonder why x11vnc stopped May 22 08:01:48 well, my system wants to restart to install updates anyway, so I'll be back in a bit. May 22 08:10:35 hello again May 22 08:15:37 <_hello_worldss> hi everyone May 22 08:16:04 <_hello_worldss> How does apps like Facebook Twitter etc May 22 08:16:11 <_hello_worldss> maintain the login sessions May 22 08:16:39 <_hello_worldss> I am looking for a policy which they use to renew the session/cookie May 22 08:16:49 <_hello_worldss> and not the means of persisting them May 22 08:16:53 <_hello_worldss> anyone? May 22 08:17:36 hi i wanna say something May 22 08:18:07 there is no amplificator controller made for android until now May 22 08:18:16 i think coder should consider it May 22 08:18:26 coders* May 22 08:19:09 frogtimer: what's an amplificator? May 22 08:19:19 i mean using the android device as a pedal for guitar rig May 22 08:19:40 guitar amplificator softwares May 22 08:19:41 _hello_worldss: Both apps aren't web apps iirc, so they can just use whatever secret they established during login. Also, at least the official apps afaik support the user account framework, thus storing some form of data that lets them quietly reauthenticate May 22 08:19:58 frogtimer: I wouldn't advice using an android device to place your foot on. May 22 08:20:26 frogtimer: But other than that I'd say it's a pretty sweet idea. May 22 08:20:30 drlaban: lol right May 22 08:21:20 well, someone who owns apropriate hw could try May 22 08:21:21 my tablet is worth as much as most guitars. not like a les paul... or such but most guitars May 22 08:21:51 maybe an old phone but not active phones May 22 08:21:59 ahaha May 22 08:22:09 p_l: Well, you definitely have a point. Maybe some arduino-based hardware could work. May 22 08:22:12 not for foot usage May 22 08:22:14 <_hello_worldss> I get that, but any ideas on what would be a standard/safe policy on when to reauthenticate May 22 08:22:25 <_hello_worldss> or is it ok to establish a session once and them keep it forever May 22 08:22:29 just control it by touching May 22 08:22:33 <_hello_worldss> unless say the user changes his password May 22 08:22:49 <_hello_worldss> *them = then May 22 08:24:11 you would play everywhere at home especially with wireless jacking May 22 08:24:17 _hello_worldss: think of the secret as a "device-specific password" May 22 08:24:43 and your android would use wifi May 22 08:24:52 so we could play guitar everywhere in the house May 22 08:25:17 frogtimer: sounds like you should get started on your app May 22 08:25:31 <_hello_worldss> hmm ok but any idea when to expire the token May 22 08:25:40 yes but im not a coder wish i would May 22 08:25:57 <_hello_worldss> creating a device specific token and then keeping it forever irrespective of watever seems a pretty bad idea May 22 08:26:15 frogtimer: there are sites to rent coders May 22 08:28:28 this guy on plural..... sounds like kermit May 22 08:29:05 I'm trying to use Android Image Viewer intent to show an image from the web. What is the optimal solution to do the same? May 22 08:36:51 hi May 22 08:37:08 hey t0mless thanks for the help the other day! :) May 22 08:37:57 does anyone know how it's called, or how to change, the "touched" elements' styles of a list view? May 22 08:38:20 if i touch elements in my list the font color changes for ever May 22 08:39:03 get the item in the list that is touched, get the appropriate from from that element and change the colot May 22 08:39:05 *color May 22 08:39:12 hi guys, quick question May 22 08:39:32 where can I find information about animating one image into another? May 22 08:39:49 like a card flipping May 22 08:42:02 thepoosh: I remember seing something for that May 22 08:42:22 do you remember where? May 22 08:42:33 thepoosh: http://www.inter-fuser.com/2009/08/android-animations-3d-flip.html May 22 08:42:48 but the code does everything using the canvas May 22 08:42:52 its not that difficult May 22 08:43:09 but if you're targetting 3.0+ devices it should be fine May 22 08:43:16 older ones will have performance problems May 22 08:43:18 ,צ מםא May 22 08:43:22 I'm not May 22 08:43:31 most devices here are phones 2.3.3 May 22 08:43:31 translate it to GL May 22 08:43:47 open-GL can do this? May 22 08:43:49 :S May 22 08:43:53 I hate animations May 22 08:43:55 yeah pretty easily May 22 08:44:13 first use it as it is May 22 08:44:30 if you dont get the required frame rate move to openGL ES May 22 08:44:49 hey, has anyone an idea how to get the MSISDN ? i have tried to get it via the TelephonyManager.getLine1Number, but i'll get nothing… May 22 08:45:36 [11:44] if you dont get the required frame rate move to openGL ES May 22 08:45:37 ha? May 22 08:46:20 if the draw calls are taking time move to open gl May 22 08:49:27 olie i don't want to set the color back to the original (black), i just want it to never change. i don't need this "used item marking" feature May 22 08:49:43 Any recommeded blog post on layouts, screen resolution and sizes ? May 22 08:50:27 bsilwal: http://developer.android.com/guide/practices/screens_support.html May 22 08:50:42 ddreamer0: how will it change back May 22 08:51:53 olie well the ideal would be for it never to change in the first place May 22 08:53:12 ddreamer0: I dont think I understand your question, if you're background color is black while you scroll the list view then set the cache color hint to transparent May 22 08:53:14 but is that can be done, i figure i'll have to chase the textviews within the listviews' rows and change back the textcolors May 22 08:53:37 olie the bg is ok it's changing the textcolor now May 22 08:54:13 have you set the text color in xml? May 22 08:54:20 or are you doing it in code? May 22 08:58:42 I'm trying to use Android Image Viewer intent to show an image from the web. What is the optimal solution to do the same? May 22 09:01:28 napster: depends if you'd like to stay in your app then its not the optimal solution May 22 09:02:29 olie: no I just don't need to code another image viewer. Just need to use the default imageviewer installed on the device. May 22 09:03:08 then its optimal May 22 09:03:28 olie: The question it how can it be done? :) May 22 09:03:34 *is May 22 09:03:58 http://stackoverflow.com/questions/1740654/view-image-in-action-view-intent May 22 09:04:35 olie: I get the output as a bitmap from by download function. In the examples I see they uses a Uri instead. Is there any way to use the Bitmap itself? May 22 09:05:23 olie: ok i was able to set it in xml and now it doesn't get changed May 22 09:05:30 thanks May 22 09:05:55 napster: I dont know :p, but there should be a way May 22 09:06:02 ok May 22 09:06:40 it might not be the best way to do it though May 22 09:06:44 since the image can be big May 22 09:07:05 olie: What else can be done May 22 09:07:05 ? May 22 09:07:26 store the image and get the URI May 22 09:10:07 olie: ok that leads me to some bitmap decoding exception :) May 22 09:11:03 thepoosh: thanks May 22 09:11:18 bsilwal: pleasure May 22 09:11:20 enjoy May 22 09:12:04 napster: can you post your code? May 22 09:12:12 olie: ok May 22 09:13:05 olie: Ok, rather I got another easy solution. Create another activity and using a webview to load the image May 22 09:13:12 how about that? May 22 09:13:29 it will be having zoom controls as well :) May 22 09:17:10 yayyyyyyyyyyyyy May 22 09:17:12 ICS :D May 22 09:17:24 whats the recommended backup procedure May 22 09:17:39 i got all my contacts in google sync May 22 09:17:46 but i would like to keep my photos May 22 09:18:09 dropbox May 22 09:18:28 my HTC has it builtin May 22 09:18:37 and I got 25GB extra when I registered May 22 09:18:41 awesome May 22 09:18:52 photos usually on memory card May 22 09:19:56 Ravenheart: Google+ instant sync? :) May 22 09:20:43 i hope applications will use cloud backup May 22 09:20:58 its a nice feature and they not use :( May 22 09:21:08 ixc: sadly it's not well documented and pushed May 22 09:21:20 and if I understand correctly it still has "debug" status :\ May 22 09:21:46 hm im not sure May 22 09:22:19 http://developer.android.com/guide/topics/data/backup.html May 22 09:23:28 i think its done and documentation are not so bad May 22 09:26:48 maybe if they fully implement google drive to core os, content data also will restored automatically :) May 22 09:30:32 Can someone aid me on SQLite? May 22 09:31:10 Mavrik: afaik there's nothing debug or beta about it, where did you get that from? May 22 09:32:25 Is there any way to check if an application created a Database? May 22 09:32:29 Tsukaza : didn't use SQLite in pure for a while now. we use greenDAO currently, and it is quite easy and fast. maybe you try that out? May 22 09:32:32 appel1: mostly because ICS shows backup target as "Your debug store" :) May 22 09:32:44 appel1: also it worked really inconsistently for me May 22 09:32:47 Tsukaza : you mean any application or your own? May 22 09:32:53 my application May 22 09:33:00 yes, there is May 22 09:33:01 Mavrik: where does it do that? :) May 22 09:33:11 j_simon: You know how? May 22 09:33:39 Mavrik: it works great for me, except that almost no apps implement it May 22 09:33:46 appel1: "Backup & Reset" in Settings May 22 09:33:53 "Backing up to debug-only private store" May 22 09:34:39 ok, had it different in my mind: What we did was in the CREATE TABLE section we just added if not exists, so the tables are only created once, but we did not have a call extra we just made that table creation that way May 22 09:35:12 but that worked fine.... and if you know you have tables you can then ask if they are empty (first setup) or not May 22 09:35:42 Mavrik: that's not what it says in ICS. Back up my data. Back up application data, Wi-Fi passwords and other settings, to Google servers May 22 09:35:50 Mavrik: what weird device do you have? =) May 22 09:36:06 Yeah, im working with SQLite for the first time so Im a bit lost. I have Log messages on table creation but they didn't showed up May 22 09:36:17 they on the onCreate method of my MySQLiteCreator.java class May 22 09:36:20 appel1: hmm, wierd :D May 22 09:37:09 and I got requested to work on SQLite so :/ I guess I cant try greenDAO May 22 09:37:54 Mavrik: or do you have some custom rom where to Google backup transport isn't available? May 22 09:38:03 is MySQLiteCreator an activity which gets pushed by an intent or is starten on startup? May 22 09:38:34 Mavrik: have you looked at https://www.google.com/dashboard/ ? there you can see what apps have backed up anything if you click on "More data stored about this device" in the Android devices section May 22 09:39:27 j_simon: MySQLiteCreator extends SQLiteOpenHelper only and I have no intent starting it, I shall do it now :) I just wanted to know if there is any way to really know that the DB was created, because it enters in the MySQLiteCreator constructor method May 22 09:39:43 Ill try out the intent and check if the tables exist, if so, then the DB is created ^^ May 22 09:41:00 appel1: hmm, no data there, it seems I have something broken :) May 22 09:41:19 Mavrik: yeah, at least the Google stuff should get backed up May 22 09:41:57 java.lang.RuntimeException: Unable to start service com.example.MyService@4052f570 with Intent { act=com.example.MyService }: android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want? May 22 09:41:57 ?? May 22 09:42:53 Tsukaza: you're trying to start a service using startActivity? May 22 09:43:12 No, Im trying to start MySQLiteCreator class that extends SQLiteOpenHelper May 22 09:43:36 Eh May 22 09:43:42 new MySQLiteCreator() May 22 09:44:06 that does not start the onCreate method May 22 09:44:29 Tsukaza: don't think you should put the in a onCreate method if you do not have an activity May 22 09:44:38 getReadable/WriteableDatabase May 22 09:45:08 If the database doesn't exist, onCreate is called May 22 09:45:24 You don't need to ensure anything, just use those methods when you need to read/write May 22 09:47:44 Ok then I guess I already have the DB working fine May 22 09:47:53 I must check if the DB or any table exists May 22 09:49:24 Tsukaza: just create them in onCreate and do whatever you need to do to upgrade in onUpgrade May 22 09:49:41 yeah I did it May 22 09:50:12 Tsukaza: so you don't need to check if the db or tables exist May 22 09:51:58 Ok then May 22 09:52:02 Check my class if you can pls: http://pastebin.com/gb3tpgTK May 22 09:52:06 I guess it's ok then May 22 09:54:02 Tsukaza: does the user really expect all data to be lost when upgrading? May 22 09:54:48 I didn't discussed that yet, ill let it be like that for now May 22 09:56:33 was just going through the gsoc projects, I so wish google would put android as one of the mentoring organizations May 22 10:00:22 Bang: android.database.sqlite.SQLiteException: no such table: CaalyxMVRecentDatatable: ... May 22 10:00:29 guess it didn't worked out the onCreate May 22 10:03:05 now im sure that the table does not exist and the onCreate method was not called May 22 10:03:14 Can I link 2 Play Store accounts to the same bank account? May 22 10:03:15 There's no such table in your onCreate May 22 10:03:22 In your pastebin May 22 10:06:14 SimonVT is there a way to re-create it? May 22 10:06:27 Recreate it? May 22 10:06:45 Delete your data May 22 10:06:48 Or uninstall app May 22 10:06:58 ok ty May 22 10:07:35 I unninstaled, run, same error May 22 10:07:40 table does not exist May 22 10:08:11 Tsukaza: did you fix your code to create the table? May 22 10:08:13 CaalyxMVRecentDatatable <- Nowhere in your pastebin are you creating this table May 22 10:08:17 So of course it doesn't exist May 22 10:08:25 I created that May 22 10:08:33 Not in the code you pasted to us May 22 10:09:22 http://pastebin.com/HAYf67Bp May 22 10:09:31 Yeah I changed it but no big deal May 22 10:32:32 !pastebin May 22 11:48:45 hi guys May 22 11:49:00 is there a way to store images taken as pdf on the android device? May 22 12:29:03 When you set up a tab using a Tabhost..ow do you style the specs.setContent(R.id.tab1); setting? May 22 13:01:16 how to ref a json object in the assets folder May 22 13:01:33 How do you style the default tabs in android? May 22 13:22:12 how to ref a json object in the assets folder May 22 13:23:48 hello May 22 13:24:19 hello May 22 13:24:43 i need help with my project, when i start a new activity, it forcecloses the app and i dont know why May 22 13:24:46 no errors. May 22 13:25:13 force closes *always* have error output May 22 13:25:17 in logcat May 22 13:25:22 oh wait May 22 13:25:36 i have some red colored errors yes May 22 13:26:18 you most likely did not add the activity to your manifest May 22 13:26:28 i did May 22 13:26:33 wait ill screen shot the errors May 22 13:27:27 http://shrani.si/f/2u/BV/2GNd6lOI/error.png May 22 13:27:29 here you go May 22 13:28:26 did you add a constructor to your activity? May 22 13:29:53 you need a default constructor or no constructor at all May 22 13:30:01 public May 22 13:32:29 http://shrani.si/f/2D/lq/2R37S785/error2.png May 22 13:32:35 this is my activity i want to open.. May 22 13:33:31 That's a View May 22 13:33:35 Not an Activity May 22 13:33:47 heh May 22 13:33:48 oh May 22 13:33:50 xD May 22 13:34:24 sry im a beginer :D, how do i start a new view or open it... May 22 13:34:43 You set it as the content May 22 13:35:14 I'm wanting to use google's speech to text api, but I want to give it hints about what I'm expecting so I get better results. E.g. poly instead of polly, ware instead of where May 22 13:35:30 sNap0000: you might want to start here: https://developer.android.com/guide/topics/fundamentals/activities.html May 22 13:35:39 is there anyway to do that? I'm looking at the docs but its definately not jumping out at me May 22 13:36:01 ty SimonVT May 22 13:37:15 cketti, im to lazy to read all that text, i rether watch tutorials on youtube :) May 22 13:37:43 if you don't want to read, then you should probably stop developing :P May 22 13:38:53 sNap0000, you don't want to read doc, only watch tutorials ? :o You will stay beginer all your life May 22 13:46:21 how do you create custom tabs in android? May 22 14:01:45 jeez downloading the SDKs from the SDK manager takes forever, is this normal? May 22 14:01:45 hi May 22 14:02:06 is it possible to create an spinner without using a ressourcefile? May 22 14:03:20 hmm i'm doing startActivityForResult, but it seems as if onActivityResult is never called... May 22 14:03:41 (using SherlockFragmentActivity btw) May 22 14:05:07 alowaniak, are you sure? it might be being called but with a "cancel" result if you press the back button May 22 14:06:28 perhaps this is more a java question than an android question.. but one of my android units are spitting out an IPv6 address instead of ipv4.. which the socket complains about.. invalid argument.. so I read in the API and it says (http://docs.oracle.com/javase/1.4.2/docs/api/java/net/InetAddress.html#getByName%28java.lang.String%29).. and I'm not the most experienced one when it comes to May 22 14:06:28 reading documentation.. so could any friendly soul help me? May 22 14:07:15 when I feed my socket with an IPv4 (192.168.1.191) it works fine.. but then my other unit says like f380::9a4b:4aff:fee8:55b5 and that gives me a socketexpception "invalid argument" May 22 14:07:17 hey guys, how can i add a textview dynamically on a View.. May 22 14:07:49 no Bear10 it's not being called at all afaik May 22 14:08:07 hard to bleive May 22 14:08:12 believe* May 22 14:08:20 how are you doing it? May 22 14:08:50 Bear10, from my experience, it's pretty normal May 22 14:09:02 Zharf, :( slowest download ever May 22 14:09:07 yeah May 22 14:09:15 no way to get it done quicker? lol May 22 14:09:44 Intent startIntent = new Intent(this, TagScanActivity.class); startIntent.putExtras(intent); startActivityForResult(startIntent, 0); May 22 14:09:47 * Bear10 will never ever buy a new computer or reformat again just because of android. May 22 14:10:45 Intent resultData = new Intent(); resultData.putExtra(EXTRA_SCAN_DATA_KEY, result); setResult(canceled ? RESULT_CANCELED : RESULT_OK, resultData); finish(); May 22 14:10:50 in TagScanActivity May 22 14:11:50 hmm May 22 14:12:33 wait May 22 14:12:34 huh May 22 14:12:40 looks as if i'm getting the onActivityResult May 22 14:12:45 toldya May 22 14:12:46 lol May 22 14:12:47 before the TagScanActivity starts May 22 14:12:53 ok now thats weird May 22 14:12:56 ye May 22 14:13:18 whats your onActivityResult look like May 22 14:13:33 pastebin please May 22 14:13:35 dont paste it here May 22 14:13:43 uhm well nothing special May 22 14:14:19 btw are you calling finish(); or are you pressing the back button? May 22 14:14:20 http://pastebin.com/K1u3YWiY May 22 14:14:26 callign finish() May 22 14:15:18 hmph May 22 14:15:24 Did you set any launchmodes in your manifest May 22 14:16:36 Does anyone know how to style tabs in android? May 22 14:17:07 ah ye that's the problem May 22 14:17:10 hey guys, how can i add a textview dynamically on a View.. May 22 14:17:25 i just blatantly copied " android:finishOnTaskLaunch="true" android:launchMode="singleTask"" cause all other activities got that May 22 14:18:41 Is it possible to draw SVG on a canvas? May 22 14:19:09 alowaniak: is singleTask really what you want? https://groups.google.com/d/msg/android-developers/LYg5EZC-MwM/xarpIg4WzV4J May 22 14:19:11 finishOnTaskLaunch? thats probably why you were getting it right when launching May 22 14:19:13 good catch May 22 14:20:22 tbh i'm not too sure appel1, it's an existing app i work on in internship, all activities already had that May 22 14:21:49 alowaniak: strange, singleTask is generally not something you should use. May 22 14:22:22 finishOnTaskLaunch is generally not something you should use May 22 14:22:32 it's so annoying that a Spinner's onItemSelected is triggered when the View is instantiated. May 22 14:25:03 well ye the whole app is kinda weird coded overall tbh:p May 22 14:25:40 :( May 22 14:28:41 hi. I am trying out app development using eclipse. I think I have everything setup. I am using archlinux 64 bit.. When I create a new project and try to run it without modifying it it throws an error. The error is: [2012-05-22 19:54:16 - first] Error in an XML file: aborting build. May 22 14:30:24 please note that I have modified nothimg. It should run a hello world app by default May 22 14:34:48 do you have a file called main.out.xml in your /res/layout? May 22 14:34:51 papul May 22 14:44:18 Zharf, so i found that by canceling and redownloading you can get better speeds May 22 14:44:26 though its a pain to cancel and redownload every time May 22 14:44:28 it slows down May 22 14:44:33 exit May 22 14:44:35 wrong window May 22 14:47:21 aright so when my app tries to update a View and the app is not in the foreground, it crashes. what am i doin wrong? May 22 14:48:29 moonlightcheese: you are updating a view when the app is on the background :P May 22 14:48:45 so how do i avoid that? i'm already checking for null. May 22 14:49:32 i need some kind of 'isInForeground()' so i know whether to draw or not. May 22 14:49:35 how are you doing that in the first place? May 22 14:50:08 you probably shouldn't hold a reference to the activity in the first place May 22 14:50:26 wat. May 22 14:50:30 i'm not. May 22 14:50:32 there are perfectly valid use cases for that May 22 14:50:48 you can toggle a flag in onPause/onResume May 22 14:50:51 hence "probably" :P May 22 14:50:56 Good morning all. Is there a doc out there definin which files and directories in an Eclipse android project needs to be checked in, for source code control? src, and res (resources) are obvious. What else? May 22 14:51:05 moonlightcheese: how are you drawing then? May 22 14:51:23 ... May 22 14:51:44 thanks wongk. May 22 14:51:55 i guess that's the only option. May 22 14:52:17 and now that you metion this, my app has the same issue... May 22 14:52:26 it's just not likely to occur May 22 14:53:00 moonlightcheese: you could use isShown on the view no? May 22 14:53:12 wongk: i am curious, what would be a valid situation to hold a reference to a paused activity? May 22 14:53:25 Dark-Side: i'll try that as well. thanks. May 22 14:53:26 hrnt: observer pattern May 22 14:53:43 the reference you're holding will likely be to some interface, not Activity May 22 14:53:49 moonlightcheese: look at the view class documentation, there are lots of methods May 22 14:54:03 i guess i just missed that one :/ May 22 14:54:10 wongk: why not unregister the observer in onPause? May 22 14:54:16 you could May 22 14:54:21 wongk: what happens if android kills the activity after onPause? May 22 14:54:38 you have a memory leak until the reference to it is gone May 22 14:54:39 without calling onStop/onDestroy May 22 14:54:40 it gets destroyed May 22 14:54:51 ...and you still have a reference to it? May 22 14:54:57 the only way to kill an activity without calling onstop/ondestroy is the process exits May 22 14:55:04 holding onto a reference to it is meaningless at that point May 22 14:55:07 does onStop/onDestroy not get called in that scenario/ May 22 14:55:10 ? May 22 14:55:16 i.e. the process is gone May 22 14:55:20 any references are null and void May 22 14:55:21 that's what i thought May 22 14:55:56 yeah well ok, i guess it doesn't matter in the usual case May 22 14:56:08 wongk: so you unregister in onDestroy? May 22 14:56:21 i do May 22 15:00:22 wongk: what kind of things are you observing? May 22 15:00:48 i am just curious what kind of data the activity needs to keep up-to-date even though it can't update its UI May 22 15:00:54 a polling service May 22 15:00:58 and is supposed to be in "power-saving" mode May 22 15:04:22 it's possible to reverse scroll on Gallery view ? May 22 15:09:48 Is this a good place to ask about kernel development? May 22 15:10:11 I'm trying to add a kernel module and having some trouble getting it working. May 22 15:10:26 davidism: not really, #android-root would be better May 22 15:10:40 ok, thanks May 22 15:11:12 speaking of memory leaks, can you guys get `am dumpheap PID file` to work? I'm getting an empty file... DDMS ain't showing the process list for me so I can't dump the .hprof in it, even though it's in debug mode. May 22 15:21:37 using adb in linux, i must give some particular permissions to files i pull from android, to replace them right and well in a fresh android installation? May 22 15:22:45 god java sucks sometimes May 22 15:35:39 dominicdinada: I think java is pretty decent. As in, you can write nice programs in Java (with a few caveats). The way people write Java/Android programs is a bit different and not so nice, though. May 22 15:36:09 shoerain: that is with any language May 22 15:36:31 VB, C, C++, PHP.... HTML the list goes on May 22 15:37:17 i've actually started to like it, though i miss destructors and the preprocessor from C++ :P May 22 15:37:40 php being one of the worst back 5 years ago people just threw together snippets. hell even grandma could write a php page. but now that it is going the way of OOP it is much more usable May 22 15:46:09 "The size of your APK file will still be limited to 50MB to ensure secure on-device storage, but you can now attach expansion files to your APK." So I cant publish my 51.5Mb apk? May 22 15:46:59 elye: that isn't what it says May 22 15:47:08 er May 22 15:47:13 that is what it says :P May 22 15:47:37 so at least I can't publish it as it is May 22 15:47:45 correct May 22 15:47:58 have to put some file in expansion May 22 15:48:12 *some files May 22 15:49:59 elye: the expansion files are meant for larger apps really, you should probably try and reduce the size first before going for that as you'll have a download phase when the app starts if the device is a low api level May 22 15:50:35 the market app on ICS devices handles the download otherwise May 22 15:52:03 IIRC, it's the market app on anything froyo+ May 22 15:52:25 on older versions (e.g. donut) then it uses the compatibility in-app download May 22 15:52:38 Hi guys. There is now way to change a layout's background on a state_pressed? Stateful drawables don't seem to work.. May 22 15:53:56 That's exactly how you do it May 22 15:57:16 SimonVT: It works for everything but my LinearLayout. I applied the style, and I set a different drawable on the different states but when I touch it, nothing happens. May 22 16:01:56 Got it. android:clickable="true" on the layout. =) May 22 16:02:07 Yep May 22 16:02:13 or, just set a click listener May 22 16:18:38 hi May 22 16:20:18 does anyone know if it is possible to use resources from a library project in users of that library project ? For example: Say I have a set of strings in strings.xml in a library project called "A", can I use those strings in a project called "B" without redefining them ? May 22 16:20:33 Does anyone use OpenID for app authentication? May 22 16:20:34 Yes May 22 16:21:00 SimonVT: yes to what ? May 22 16:21:05 To you May 22 16:21:23 SimonVT: oh, so how do I do that ? May 22 16:21:32 R.string.A May 22 16:21:36 Same as always May 22 16:22:19 SimonVT: but the resources from the library project can't be found in the "child" project... May 22 16:22:54 Any project that depends on your lib project can use resources from the lib project May 22 16:22:55 SimonVT: until you build the apk there is no merge of the resources of both projects May 22 16:23:22 lies May 22 16:23:25 SimonVT is right May 22 16:23:26 Is it possible to encrypt the memory space in android? I obviously can do it myself, but was wondering if there is a built-in mechanism available May 22 16:23:27 you are wrong May 22 16:23:30 if project a is a library project and project b uses that library, then all resources of project a are available in project b May 22 16:23:41 birbeck is also right May 22 16:23:48 And so is canadiancow|work May 22 16:24:03 canadiancow|work is always right, hes canadian May 22 16:25:25 Not sure that's how it works, but in this case he's right May 22 16:26:02 then how come, I cannot reference a string defined in strings.xml in the library projects from project B in xml ? Here's what I get: Error in an XML file: aborting build. May 22 16:26:09 General java question: If I have a simple Book class created by me and I want this cast to work assuming Q is an Object type: Book Q = (Book)new Object(); How can I make my Book cast work? May 22 16:27:01 wow May 22 16:27:02 Cus you fucked up somewhere.. if you set it up as described in the documentation, there is no issues May 22 16:27:11 xemi go read up on java basics May 22 16:27:26 SimonVT: the autocompletion only shows string resources from the currently active project also May 22 16:27:37 I don't care what autocomplete says May 22 16:27:59 and your error is the most vague error ever May 22 16:29:18 SimonVT: what the hell, you are right, the autocompletion does not work, but If I type the exact string resource name it compiles :O May 22 16:29:44 ^_^ May 22 16:30:13 I saw it's possible to use "font size" html in string ressources which is not possible in Html.fromHtml. How to use my string in Java code keeping html format? May 22 16:30:22 using adb in linux, i must give some particular permissions to files i pull from android, to replace them right and well in a fresh android installation? May 22 16:35:27 Anyone use OpenID for their app? May 22 17:04:58 wth, i did Source > Cleanup in eclipse, and it added import com.mypackage.R to all java files May 22 17:05:24 ive got hundreds of pojos and interfaces that dont require R.* May 22 17:06:55 birbeck: i smell a protip in there somewhere :P May 22 17:07:13 I need to show a Toast outside an Activity and it's throwing an error: Can't create handler inside thread that has not called Looper.prepare() May 22 17:07:13 What should I do? May 22 17:07:40 ricardjorg: show it on the UI thread May 22 17:09:25 I have multiple threads running, how do I show the Toast on the UI thread if it's called in one of the other threads? May 22 17:10:23 ricardjorg: pass a message May 22 17:10:33 I made a fun mistake. Displayed Toast from IntentService, which caused it to stick around forever, until app was force closed. Got quite a few complaints May 22 17:11:04 ricardjorg: use a handler w/ a runnable for the main looper May 22 17:15:09 ricardjorg, you should probably use an AsyncTask and call publishProgress() in the background method. But you could also call Looper.getMainLooper() May 22 17:18:10 I've set up a broadcastreceiver to handle android.media.AudioManager.ACTION_AUDIO_BECOMING_NOISY and I've declared the receiver with the intent filter in the manifest, but i'm still not receiving any broadcasts ever May 22 17:22:34 hi gurus, which is the best practice to sync server data with mobile app? I've developed a cakephp REST service, then I use android/iphone app to access that data. The problem is synchronizing the db on the app with the CRUD operations that have been made on the server db since last app connection. I know it is big problem but I hope to get some good info from you. Thank you May 22 17:23:33 I know the question is a bit OT here but I hope to get an answer because I think it's a general problem related to app-development May 22 17:31:50 salentinux: timestamps? May 22 17:32:44 wonk: yes I read about that solution but I cannot figure out how to manage deletes May 22 17:33:48 you need a permanent record of deletes May 22 17:34:39 wongk: yes in case of physical deletes but not in case of logical ones May 22 17:35:05 wongk: did you do something about that? May 22 17:36:45 Book recommendations? I read bad things about "Pro Android 4" (APress) and "Programming Android" (O'Reilly) May 22 17:37:22 PigDude, d.android.com is very resourceful May 22 17:37:30 salentinux: i have not implemented such a web service, only consumed them May 22 17:40:11 jeppy, yes, i would not think of avoiding official documentation May 22 17:40:16 wongk: do you manage synchronization by yourself with that webservices or do they offer a way to to that with special paramenters? May 22 17:40:25 i would realize this view (in red http://dl.dropbox.com/u/278026/IMG_0646.PNG ) in Android, it's possible ? From what class could i start to extend ? May 22 17:40:25 jeppy, sometimes i like a durable format, however May 22 17:41:17 ech0s7, I know for sure that it's possible. The original nook used a UI like that, and the nookDevs project wrote their own version of that toolbar UI May 22 17:42:37 ech0s7: I'd probably start with Gallery May 22 17:42:54 and if i customize seekbar ? May 22 17:43:12 with a custom background image, and custom seek handler ? May 22 17:43:21 what do you think ? May 22 17:44:02 give it a shot May 22 17:45:31 salentinux: i pass a timestamp May 22 17:48:09 Can someone write me a quick piece of code that sets what the person said via voice recognition? May 22 17:48:21 ^ as a variable May 22 17:55:04 tomtiger11: no May 22 17:55:09 this isn't #android-homework May 22 17:55:59 Didn't say it was, i can't find any usefull docs regarding voice recognition... May 22 17:56:16 so that's a "no" on books? May 22 17:56:28 Ehh? May 22 17:57:56 1:36pm PigDude> Book recommendations? I read bad things about "Pro Android 4" (APress) and "Programming Android" (O'Reilly) May 22 17:58:19 tomtiger11, oh, perhaps you thoguht my comment was for you, but it wasn't May 22 17:58:45 Oh :P May 22 18:09:17 Any android game devs here? I'd like to hear thoughts on the market as it stands right now - evaluating branching off in that direction, but I'm not certain about going there as an iOS dev. May 22 18:10:05 justicefries: My thought is that the name change from "Market" to "Play" was conceived by aliens wearing purple hats. May 22 18:10:20 hah. May 22 18:11:13 is it really some big cost that requires careful evaluation and thought? May 22 18:11:18 just upload your apk and see how it goes May 22 18:11:56 No apk yet - have to do the porting. :) May 22 18:12:08 which no, it's not a huge cost. May 22 18:12:29 but I'd like to hear opinions of people actually in the android market. May 22 18:12:48 evancharlton, well it is $25 to get a "play" account May 22 18:12:50 especially since it seems like android market downloads are just skyrocketing. May 22 18:13:09 PigDude: plus test devices. May 22 18:13:18 yes, that too May 22 18:17:12 PigDude: like I said, is that really considered a big cost? May 22 18:17:34 evancharlton, to a bloke like me it is May 22 18:17:47 evancharlton, when other development i can get up and running essentially for free May 22 18:18:21 How do i start a gps listener? May 22 18:18:47 PigDude: iOS is $100/year, WP7 is $100 (once? yearly? I don't know) May 22 18:18:51 tomtiger11: http://developer.android.com/guide/topics/location/obtaining-user-location.html May 22 18:18:59 vavirta: Ty ;) May 22 18:19:07 tomtiger11: if in doubt, RTFM May 22 18:19:41 evancharlton, it's silly to charge developers to publish software for your platform ... May 22 18:19:46 ... wat May 22 18:19:51 evancharlton, i'm disappointed to see android go that route May 22 18:20:09 I'm fine with $25. May 22 18:20:10 evancharlton, it's not keeping me from developing for android, but i won't claim it's ideal May 22 18:20:55 PigDude: then throw your APK on your own server and pay for your own bandwidth and hosting costs May 22 18:21:14 I'd say that would be cost more than $25 :P May 22 18:21:23 just a tad May 22 18:21:35 also, nobody is going to find that app there May 22 18:21:48 exactly May 22 18:21:53 PigDude: no one forces you to publish through Google Play; feel free to host on some free store May 22 18:21:54 I can afford to host my own app actually May 22 18:22:06 but it's a poor business decision to do so May 22 18:22:17 * pragma- has 100+ downloads from http://code.google.com hosting May 22 18:22:23 * pragma- is also about to host on github too. May 22 18:22:55 * Ge0rG has almost 70% of his users paying for the app on play store even though it is available for free from the linked web site May 22 18:23:09 Ge0rG, hehe May 22 18:23:16 * pragma- is moving from svn to git so he can push to multiple repositories with one command, not to mention taking advantage of git's awesome branching and merging abilities. May 22 18:23:25 there was even one guy complaining on twitter that the web site is too complicated to access. in three separate tweets, using all caps May 22 18:23:37 pragma-, do you do any C dev for your android apps? ;^) May 22 18:23:49 pragma-, I have heard it is possible and you are regular in ##c May 22 18:24:53 Honestly, I haven't done any significant C in years. May 22 18:25:36 hi, filter = new IntentFilter("com.blah.NEW_STATUS"); <<-- will this resolve if NEW_STATUS_XYZ is received? May 22 18:25:57 NEW_STATUS* May 22 18:27:20 ocx: what are you correcting? May 22 18:27:22 please try again May 22 18:27:59 evancharlton: i want to put a filter that matches all intents that start with NEW_STATUS May 22 18:28:09 for example: NEW_STATUS1 NEW_STATUS_X etc May 22 18:28:16 can i do that with the intent filter? May 22 18:29:11 no May 22 18:29:16 it doesn't work like that May 22 18:29:29 it has to be an exact match. Use intent extras to differentiate between them. May 22 18:38:48 I got a tablet that doensn't have Android Market nor Google Play. It came with SlideME Market. But I really need to use Google Play to download some apps. I tried to install some apk that i found on google, but when it opens i throws "force close: com.google.vending". Any ideas please? May 22 18:40:52 this is android-dev, try #android May 22 18:41:10 yurakeshi: buy a tablet that supports it instead of installing a sketchball APK on a sketchball tablet May 22 18:42:28 hi, i know a local socket (ip + port) and want to know what process belongs to this socket. is this possible with android? May 22 18:43:28 registerReceiver(param1,param2) param1 should be always defined inthe manifest file? May 22 18:44:02 ocx, not necessarily May 22 18:44:26 i need a good link to read about bcast receivers May 22 18:44:33 really confused with the android devsite May 22 18:44:46 you can register a receiver that you create in an activity to catch broadcasts from other things May 22 18:45:43 but you can also declare a receiver in the manifest May 22 18:45:52 can you provide a good link? May 22 18:45:55 say, for receiving external broadcasts or alarms etc. May 22 18:45:55 newbie link May 22 18:47:14 sorry, don't have one off hand... May 22 18:47:18 try this one maybe... May 22 18:47:18 http://www.vogella.com/articles/AndroidBroadcastReceiver/article.html May 22 18:47:34 snuy: netstat May 22 18:48:29 import android.location.*; - Syntax error on tokens, AnnotationName expected instead May 22 18:49:03 thanks May 22 18:50:54 so far i created an inner class that extends bcastreceiver and implemented the onReceive method() now i need to register that receiver, but i am not able to figure out the params registerReceiver takes May 22 18:51:04 evancharlton, i don't have that option. This is the tablet my client is using, i didn't but it. May 22 18:55:28 yurakeshi: well then visit #android-root and tell your client that things will probably break in mysterious ways because their tablet hasn't been shown to pass CTS May 22 18:56:10 alright, gonna sound a bit stupid, but is there a function that i can call when the orientation changes to rebuild the ui? I have some things that need to be resized May 22 18:56:42 Just don't handle configuration changes May 22 18:56:43 Any info on this error: Public whereami () - Syntax error on token "public", @ expected after this token May 22 18:58:18 i saw a $79 one last week, maybe they will come down enough i'll find one free in a cracker jack box soon :) http://www.geek.com/articles/chips/via-launch-a-49-android-pc-20120522/ May 22 18:59:47 SimonVT: i dont May 22 18:59:56 but its 2.3, ugh May 22 19:00:03 Then what's the issue. Activity is recreated May 22 19:00:03 Anyone? May 22 19:00:18 tomtiger11: http://docs.oracle.com/javase/tutorial/ May 22 19:00:24 romainguy_: was it you at andevcon who said that AsyncTask wasn't a catch-all for threaded operations? May 22 19:00:30 SimonVT: like for example i have this May 22 19:01:04 https://gist.github.com/2770965 May 22 19:01:30 SimonVT: if i start in landscape it works fine, if i start in portrait it works fine, if i switch during the activity, the change doesnt take place May 22 19:02:03 Your entire Activity is destroyed on orientation change May 22 19:02:13 Aka onCreate is called again, your ui is built from scratch May 22 19:03:06 SimonVT: that's what i thought is supposed to happen, doesnt seem like it's the case May 22 19:03:23 If that isn't the case, then you are handling configuration changes May 22 19:03:26 So, don't do that May 22 19:04:00 i don't have an onConfigurationChanged method if that's what you're hinting at May 22 19:04:24 android:configChanges in manifest is what I'm hinting at May 22 19:04:49 is it possible to do anyDensity="true" when building against api level 8 May 22 19:05:02 the xoom keeps doing the screen compatibility mode despite my anyDensity May 22 19:05:03 if you are absolutely sure you want to handle it, just override onConfigurationChanges May 22 19:05:06 android:configChanges="keyboardHidden|orientation" May 22 19:05:15 See, you ARE handling configuration changes May 22 19:05:22 Or rather, you're telling Android you are May 22 19:05:27 i should get rid of |orientation then, huh? May 22 19:05:38 Why are you even defining that? May 22 19:05:50 my co-worker did May 22 19:05:50 hey is it possible to setonclicklistener on bitmap? May 22 19:05:52 hey guys, a little question about dalvik : what is the meaning of "const v0 , [ #+ 10176 ] , [ #+ 9 ]" ? Which value is put in the v0 register ? Is there any arithmetical operation done before it ? May 22 19:05:55 not sure May 22 19:06:01 9/10 there is no reason for it, and it's just bad practice May 22 19:06:27 lets see if it fixes it May 22 19:06:57 oh, i see why May 22 19:07:12 it reloads the page, so the webservice calls go out and you need to wait for the page to load again May 22 19:07:22 Alright May 22 19:07:25 Dunno about that May 22 19:07:36 but if you need to handle orientation change, do your stuff in onConfigurationChanged May 22 19:07:53 yeah, that's just going to produce a lot of work on a project that is already out of money :( May 22 19:08:05 sNap0000: setOnClickListener() is a method of View. Bitmap is not a View, it's a Drawable. Perhaps you're thinking of ImageView? May 22 19:09:43 Is the android source git repository corrupted? Im getting errors May 22 19:09:53 ctate: are you the chris that did the game development IO talk? May 22 19:10:11 that was chris pruett IIRC May 22 19:10:21 Error corrupt lose object etc May 22 19:10:38 pragma-: he's the guy who released Wind-up Knight recently May 22 19:10:45 cool May 22 19:12:45 Wind Up Knight is quite a step-up from Robot Island, or wahtever it was called May 22 19:12:55 yeah May 22 19:13:03 Inflate datastream error when i get to syncing work tree May 22 19:13:07 pragma-: that was chris pruett May 22 19:14:02 Git is the suck. I wish android used svn May 22 19:14:33 * pragma- stares at I440r. May 22 19:14:38 heh May 22 19:14:38 * pragma- is just now moving from svn to git. May 22 19:14:56 Android used to use perforce, which is the grown-up commercial thing that svn is a pale OSS imitation of May 22 19:15:07 it switched to git because perforce was unworkable for the sort of project that Android is. May 22 19:15:23 (I've used git in the past a bit, but I'm now converting my current android svn repos to git. May 22 19:15:26 ) May 22 19:15:29 i don't like git, but i don't like svn either :) comes down to what works best for the project. i do notice people who like git tend do have limited experience with vc systems (like, only svn) May 22 19:15:46 svn is good if you compare it to cvs, which it was intended to replace May 22 19:15:57 it's not good compared to basically any of the more adult alternatives May 22 19:16:10 Having to dl the entire repo database. Taking 2 hours to do it and crapping out due to corrupted source data sucks May 22 19:16:27 so just download the branch you want to work on May 22 19:16:36 I was May 22 19:16:39 git > svn for having multiple workflows on a single project -- you can be working on a feature, then just branch to work on a separate bugfix or feature (or just git stash) May 22 19:16:42 very handy May 22 19:16:45 (repo sync -c ) May 22 19:17:04 I440r: in svn you'd have to download at least one copy of every file, too. May 22 19:17:06 then there's the fork/clone tracking so you can watch how other people improve on your repo May 22 19:17:13 4.0.4_r May 22 19:17:15 github has some nice fork/clone graphs May 22 19:17:23 4.0.4_r1.2 May 22 19:17:59 one thing I'll miss from svn is the sequential linear commit ids May 22 19:18:05 I was kind of using that for my versonCode May 22 19:18:27 yeah, that is one of the things i miss about p4. May 22 19:20:20 Huge android repo wpuld not need every new checkout takes 2 hours to dl the entire history of that branch. Git sux May 22 19:20:39 Huge svn repo even May 22 19:21:02 that's because svn requires that you have a network connection to the server in order to do pretty much anything May 22 19:21:20 also make sure that you're using -j 8 or whatever when doing the repo sync May 22 19:21:43 oh yeah, that's another thing I'm going to like about git -- the ability to commit whenever I want at any time May 22 19:21:44 i typically use -j 10 on my slow-disk Mac; i know people who routinely use -j 16 because they've got the disk bandwidth to support it May 22 19:21:56 and then push it neatly May 22 19:21:59 <3 git May 22 19:22:07 working when you're on a plane is the best ever May 22 19:22:30 sometimes you can overwhelm your machine with -j and actually run slower than -j 1, iirc May 22 19:22:49 well sure May 22 19:22:59 SimonVT: is there a way to call the onCreate function from within onConfigurationChange? my solution was just to set a global variable to keep the webservice from being called again on an orientation change May 22 19:23:15 I went to `m -j4` a while ago and accidentally did -j45 May 22 19:23:17 dandaman: Yeah, don't do that ;d May 22 19:23:22 How could i set the results of getLongitide() as a variable and display it as text using mtextview. No RTFM or JFGI please... May 22 19:23:22 dandaman: never call the lifecycle methods (onCreate, onResume, onDraw, etc) yourself May 22 19:23:24 currently when svn, I kind of tend to wait until I feel my commit is absolutely perfect before I commit May 22 19:23:27 ok :\ May 22 19:23:28 I realized what had happened once my machine was melting down May 22 19:23:35 Put your logic in a method if you need to call it from several places May 22 19:23:47 I'm going to enjoy being able to commit willynilly and then condense the multiple commits into a nice final push commit May 22 19:23:52 * pragma- rubs his hands. May 22 19:24:01 SimonVT: was really hoping to get around this without having to redesign my code :\ May 22 19:24:12 tomtiger11 double long = location.getLongitude() May 22 19:24:12 Tough luck ^_^ May 22 19:24:34 dmalice: Whats the double bit? May 22 19:24:42 well, you'd have to do something like double longitude, since long is a keyword May 22 19:24:43 SimonVT: on an orientation change do all of the variables get reset as well? May 22 19:24:51 (when android handles it) May 22 19:24:55 tomtiger11, are you asking me what a double is? May 22 19:24:56 dandaman: Everything May 22 19:25:01 The current instance is destroyed May 22 19:25:02 rats May 22 19:25:04 A new is created May 22 19:25:06 dandaman: like he said, the Activity instance is *destroyed*. freed. garbage collected. May 22 19:25:07 dmalice: Nope, i derped for a sec :P May 22 19:25:10 and replaced with a new one May 22 19:25:28 looks like this is going to be a portrait only application :D May 22 19:25:39 State can be saved with onSaveInstanceState if you wish May 22 19:25:40 ... May 22 19:25:44 ==SimonVT May 22 19:25:49 dandaman: that's not the right answer May 22 19:25:50 Yeah, don't do that either :p May 22 19:25:56 SimonVT: crashes the app, tried it May 22 19:25:57 there are callbacks to support passing data around the swap May 22 19:26:06 if it crashes the app, you have a bug that you should fix :) May 22 19:26:30 * pragma- is preferential to onRetainNonInstanceState May 22 19:26:41 well i was doing onCreate(instanceState); May 22 19:26:51 NonConfiguration May 22 19:26:52 i did tell you not to call onCreate() yourself :) May 22 19:27:01 pragma-: that's deprecated, mind you May 22 19:27:03 dmalice: The method getLongitude() is undefined for the type LocationManager May 22 19:27:05 what do i do with the instanceState then? May 22 19:27:09 Fragments are the new mechanism May 22 19:27:11 how does that help me? May 22 19:27:12 right May 22 19:27:49 dandaman: http://developer.android.com/guide/topics/fundamentals/activities.html#SavingActivityState May 22 19:28:06 I used setRatainInstance(true) and getLastCustomNonConfigurationInstance() May 22 19:28:21 onRetainCustomNonConfigurationInstance() May 22 19:28:50 * pragma- quick port from Activity to Fragment to support ViewPager. May 22 19:28:52 The Fragment way is actually pretty nice, since the state is preserved, but UI is recreated May 22 19:29:16 SimonVT: wait, what is the fragment way, that sounds like exactly what i need May 22 19:29:30 The fragment way is.. Using fragments May 22 19:29:42 (that also requires quite some work) May 22 19:29:46 hi people, i pull /data/data/com.android.providers.contacts/databases/contacts2.db with adb , out android, i a backup folder, i flash another rom, i push it inside , i chmod 660 the file, i chown the roght owner, and at startup only call log works, not contacts May 22 19:29:50 how can i do? May 22 19:29:57 damnit, why didnt i take the time to learn android before i started this project May 22 19:30:32 Common mistake :p May 22 19:30:41 hi everybody May 22 19:30:54 krabador: You can go to #android-root May 22 19:31:02 tomtiger11 May 22 19:31:18 is there anyone has got a basic hospital-patient mng. source code May 22 19:31:25 Since I have a huge arraylist and a huge hashmap that I have to retain between instances, seems like the way to go. May 22 19:31:40 it can be in any language based on sql May 22 19:31:44 am i supposed to target androd 2? it seems that the vast majority of android users are using android 2 (I read 85%) May 22 19:31:47 android, php May 22 19:31:54 tomtiger11, you have to get the location from the location manager first, i think the call is getLastKnownLocation, and then from that location object, call getLongitude() May 22 19:31:57 http://developer.android.com/guide/topics/location/obtaining-user-location.html May 22 19:32:15 hmm how weird, i have a project on one comp and it works compiling everything there, and then i import it on this computer and i update the lib locations. but it crashes when i launch May 22 19:32:17 any ideas? May 22 19:32:27 fragments are awesome for everything May 22 19:32:36 any reason why GPU acceleration is off by default in the emulator? May 22 19:32:39 Bear10: I have an idea.. Read logcat May 22 19:32:46 SimonVT done that May 22 19:32:48 it's quite a world of difference when using a physics engine :) May 22 19:32:55 belgianguy: It's experimental, and breaks on a lot of configurations May 22 19:33:02 it's quite a world of difference when using * May 22 19:33:03 belgianguy: it's part of the AVD configuration. it's off by default because it doesn't work on all the wacky crazy gpu hardware out there. May 22 19:33:19 SimonVT: oh, then I'm extremely lucky May 22 19:33:34 I'm on Ubuntu and installed the very latest AMD ATI drivers May 22 19:33:38 ? I don't know what android version/API level I should be targetting. this is really important to what i use for learning abut this May 22 19:33:43 Bear10: Then you fix the issue May 22 19:33:43 hey guys, how could i set ontouchlistener or onclick for a bitmap? May 22 19:33:44 works pretty neatly May 22 19:33:45 ah i think its ACRA May 22 19:33:52 SimonVT, yes, but devs are most powerful of root nerds... May 22 19:34:25 PigDude: http://simonvt.net/2012/02/07/what-api-level-should-i-target/ May 22 19:35:06 krabador: Most devs don't care about root, or root issues, and thus a whole channel was created for it May 22 19:35:30 dmalice: K May 22 19:35:50 dmalice: What do i do with the getlastknowlocation thingy then? May 22 19:36:03 SimonVT, yes, but most of root people are ignorant May 22 19:36:40 krabador: I know, we get all these daft root people in here asking questions, when it obviously states in the topic where they should go May 22 19:36:59 But they never learn.. Damn ignorant root people May 22 19:37:02 the more clueful ones tend to have picked a particular project to work with (e.g. Cyanogenmod) and head to their forums instead May 22 19:37:08 hey guys, how could i set ontouchlistener or onclick for a bitmap? May 22 19:37:23 on canvas.. May 22 19:37:41 sNap0000: did you not see my earlier response to you? May 22 19:37:54 tomtiger11: http://developer.android.com/guide/topics/location/obtaining-user-location.html May 22 19:37:56 no sry May 22 19:38:03 * ctate | sNap0000: setOnClickListener() is a method of View. Bitmap is not a View, it's a Drawable. Perhaps you're thinking of ImageView? May 22 19:38:08 ty May 22 19:38:09 so 2.1 is a good min version? May 22 19:38:17 i would say 2.2 May 22 19:38:19 I'd go with 2.2 May 22 19:38:21 sNap0000, oh okay May 22 19:38:24 why? May 22 19:38:31 er, sorry sNap0000 not for you May 22 19:38:35 gotta support all of those moto devices :) http://www.fiercemobilecontent.com/story/motorola-skipping-ice-cream-sandwich-update-many-android-devices/2012-05-21 May 22 19:38:42 PigDude: http://developer.android.com/resources/dashboard/platform-versions.html May 22 19:39:02 ctate: so i need to use imageview isted of bitmap? May 22 19:39:18 is it much harder to make it work with 2.1? May 22 19:39:23 that being 5% of market May 22 19:39:27 instead* May 22 19:39:29 No, 2.1 is just a dying platform May 22 19:39:36 sNap0000: it sounds like you're just a bit confused on the whole subject of what views and layouts and drawables *are*; you're confusing them May 22 19:39:38 what are the benefits of not thinking about 2.1? May 22 19:39:51 ImageView is a kind of View that you put in a layout. Its job is to draw bitmaps. May 22 19:39:54 PigDude: less bugs to deal with that were fixed in 2.2 May 22 19:40:03 PigDude, that is the benefit : not thinking about it May 22 19:40:06 how do i grab hold of a menu item that i added from a fragment (to handle the onoptionsitemselected)? May 22 19:40:30 the blog post somebody pointed me to made it sound like you don't even have to worry about your min version -- build takes care of that. but i took that with quite a bit of salt May 22 19:40:39 https://gist.github.com/2771155 May 22 19:40:45 any reason why that wouldn't be ellipsizing May 22 19:40:58 particularly address2 May 22 19:41:11 ((ArrayAdapter) getListAdapter()).notifyDataSetChanged(); is appedning to my listview instead of refreshing the listview any ideas? May 22 19:41:15 maybe since the linearlayout is vert? May 22 19:41:58 PigDude: You need to worry about your min version in the sense that you make you don't call new APIs on old api levels May 22 19:42:06 dmalice: I can't find the next bit i need :L May 22 19:42:08 dandaman, scrollHorizontally May 22 19:42:16 * pragma- suddenly notices that "Wind-Up Knight" has a 43MB apk. May 22 19:42:36 * pragma- rewinds the IO talk to hear him say "and be sure to keep your apks around 2-3MB" May 22 19:42:38 pragma-: welcome to games. bitmaps and sound are big. May 22 19:42:39 SimonVT, I see May 22 19:42:50 also, native code is much bigger than the corresponding dalvik code. May 22 19:42:52 dmalice: que? May 22 19:43:04 dandaman, you want your text to marquee right? May 22 19:43:08 ctate: yes i am im a beginner :D, i managed to create a bitmap, which is randomly geting drawn, and i want, if u click/touch that picture to icrease ur score...if i get it right click and touch on bitmaps dont exist ? May 22 19:43:16 * pragma- rewinds the IO talk to hear him say "avoid native code in games unless oyu want to see your framerate suffer" May 22 19:43:16 yes May 22 19:44:12 PigDude: 2.1 just annoys me. When doing custom views / backporting new framework views, 2.1 is always the issue May 22 19:44:18 i only want know if differet android versions, 2.2 , 2.2.2 , 2.3, 2.3.x , have different way to build and load contacts2.db May 22 19:44:20 Something can work awesomely on 2.2+, then you test on 2.1 May 22 19:44:25 :| May 22 19:44:31 dandaman: your issue is probably 2-fold, 1, you need to set the textview to be selected, 2, android:scrollHorizontally="true" in the xml May 22 19:44:40 well, a lot has happened since 2009! May 22 19:44:49 hm okay May 22 19:44:53 woops, just set it to false May 22 19:45:43 dmalice: its table row above linearlayout has an onclick listener May 22 19:45:48 not the textview itself :\ May 22 19:45:58 * pragma- watches the 2010 redux. May 22 19:46:36 dandaman: sorry, i'm not sure i understand what you're saying, do you want the text to scroll when it's clicked? or just as soon as it appears? May 22 19:46:37 * pragma- annoyed that youtube on android doesn't provide captions, despite having an option in preferences for adjusting "caption" size. May 22 19:46:48 I assume "caption size" there refers to the text size of the titles or something... May 22 19:46:59 doesn't appear to do anything at all. May 22 19:47:05 dmalice: oh, i just want elipses to appear since the text is too long to fit in the view May 22 19:47:19 mark it as ellipsized then May 22 19:47:21 so...you don't want it to marquee May 22 19:47:38 you've marked it as marquee text in your layout, set it to ellipsize="end" May 22 19:47:43 http://developer.android.com/reference/android/widget/TextView.html#attr_android:ellipsize May 22 19:47:52 marquee has been the one working for all of the other fields :\ May 22 19:47:58 where end wouldn't work May 22 19:48:10 end didn't work May 22 19:48:49 well May 22 19:48:57 your textview is set to wrap_content for one thing May 22 19:48:58 pragma-: I'm experimenting with a native compiled physics library atm, would it adversely affect framerate you think? May 22 19:49:03 so it's not going to ellipsize =P May 22 19:49:14 should be match_parent huh? May 22 19:49:19 (it's supposed to be optimized for the ARM NEON architecture) May 22 19:49:45 indeed May 22 19:49:53 k, that didnt work either haha May 22 19:50:01 lemme give you the whole tablelayout maybe? May 22 19:50:08 probably because your linear_layout is wrap_content as well May 22 19:50:23 also, dunno why i typed linear_layout May 22 19:50:52 https://gist.github.com/2771155 May 22 19:50:57 http://pastebin.com/MC7DstvZ May 22 19:51:36 can you flash a notification in the status bar without leaving the notification up after? May 22 19:51:45 or would you just have to show it and immediately dismiss it May 22 19:52:15 dmalice: yep, just changed that too, same thing May 22 19:53:13 Fatal early EOF. Yea git is awesome May 22 19:54:18 that sounds like your network connection is shite; that doesn't sound like git's fault May 22 19:54:31 dmalice: http://pastebin.com/MC7DstvZ May 22 19:55:06 Hi, I'm currently looking at the code of the out of the box dial application, I'm wondering where in the code it detect that the user on the other side answered the call (and its start the call timer) there is so much code i'm having hard time finding the snippet involved, any of you guys know? May 22 19:55:29 At work. Connection is usually solid. Not got an intact repo synk in weeks May 22 19:55:47 I440r: maybe change your repo manifest to just get the few things you need May 22 19:55:54 tomtiger11: now use lastKnownLocation.getLongitude() May 22 19:56:06 dmalice: Ok :) May 22 19:56:18 Its getting one branch May 22 19:56:22 people around here (and in europe) sync from that repo all the time, stable-ly. seirously, it sounds lik eyou've got network problems somewhere between you and the repository. May 22 19:56:36 and yeah, make sure to use sync -c, and maek sure to use -j 8 or whatever May 22 19:56:43 sounds like a pebkac May 22 19:57:06 just kidding, i just like using that word May 22 19:57:10 Sync -c ? May 22 19:57:17 i managed to create a bitmap, which is randomly geting drawn, and i want, if u click/touch that picture to icrease ur score...if i get it right, click and touch on bitmaps dont exist ? May 22 19:58:09 you need to provide more detail about *how* you're getting that thign to draw -- what your layout is like, etc May 22 19:58:29 dmalice: How would i now use the double longitude = bit in a mtextview? May 22 19:58:36 is there a way to change the icon of an app dynamically? May 22 19:58:45 _without_ an update to res and subsequent market update? May 22 19:58:48 mtextview.setText(""+longitude); May 22 19:58:51 s/market/play May 22 19:58:53 canvas.drawBitmap(bitTarca, x - (bitTarca.getWidth()/2), y - (bitTarca.getHeight()/2), null); May 22 19:59:27 thats in onDraw May 22 20:00:14 sNap0000, override your ontouchevent in the view, to capture the x,y coordinate of the touch, check that against the location of the draw, do whatever you want May 22 20:01:49 could you tell me how do i capture x,y? May 22 20:02:15 onTouchEvent(MotionEvent event) { May 22 20:02:20 event.getX() May 22 20:02:22 event.getY() May 22 20:02:25 dmalice: What is the format of the output? It it just the number? May 22 20:02:29 yes May 22 20:05:24 interesting; this jp morgan analyst thinks windows rt is going to confuse the general public and not work out well for ms May 22 20:06:24 I'm sitting Win8 out May 22 20:06:50 paying money to get less functionality and having to do more for the same actions, no thanks May 22 20:06:56 My main activity has an AsyncTask that keep running and checking for changes on the server. When a change is found i want to bring the app to the foreground. How can i do this? May 22 20:07:00 maybe nice for a tablet, but that's it May 22 20:07:16 so where does windows 8 lose functionality May 22 20:07:20 i loaded up a VM the other day May 22 20:07:33 i only played around for a bit, but it seemed.... complete May 22 20:07:50 it might very well work for you May 22 20:07:58 canadiancow: start button May 22 20:08:08 hehe May 22 20:08:08 i don't think there's any lost functionality, just that stuff is not exactly as it used to be? May 22 20:08:18 and initially, it's all very pretty, but the multitasking is harder May 22 20:08:21 leslie, it still has one... May 22 20:08:24 I need to detect when a call start, right now phone listner only offer state idle, offhook and ringing, somehow mr. dialpad is able to detect when more precise event like "user dial, phone is ringing on the other side and *user answered on the other side* any idea how i can reach this type of information? May 22 20:08:32 the latest builds don't afaik May 22 20:08:38 not a fan of Metro either May 22 20:08:54 i agree that I don't like metro, but I wouldn't go as far as saying functionality is lost May 22 20:08:57 Snapped is a far cry from stacked windows May 22 20:09:02 Ok, a quick question about IAP - can I not buy real stuff (actually pay for them) until an app is published? May 22 20:09:09 dammit May 22 20:09:18 why is readme not here when I actually need to ask him something May 22 20:09:28 and I tend to jump around a lot, but that entirely depends on what you do May 22 20:09:31 I'm trying it out one last time (without the android.test.purchased) before I publish it! May 22 20:09:44 dmalice: Thanks for your help ;) May 22 20:09:46 The error I'm getting is "Your order could not be processed. Please try again" May 22 20:10:09 t0mless: isn't there a memo function? go go go May 22 20:10:17 dmalice: Well, im off. Hope to see you soon! May 22 20:10:44 heh May 22 20:10:50 I'll just check when I get home from work May 22 20:10:56 the start button is gone, there's the start screen, but that got on my nerves quickly May 22 20:11:33 I'm pretty invested in my contexts, and the fullscreen start screen has the same effect as a slap in the face May 22 20:12:00 and no, the reg hacks are out as well May 22 20:12:06 there's 3rd party addons May 22 20:12:08 I don't like change either, but the transition from windows 3.1 to 95 was scary too May 22 20:12:23 also keep in mind it hasnt been released yet May 22 20:12:27 I'm all for adding functionality May 22 20:12:28 theyre clearly still changing stuff May 22 20:12:31 trying stuff out May 22 20:12:36 but Win8 isn't doing that May 22 20:12:43 they're taking essentials out May 22 20:12:55 and saddling the desktop crowd with an oversized phone OS May 22 20:13:19 3.1 -> WIn95 is a whole different story than WIn7 -> Win8 May 22 20:13:28 it really isn't that big of a deal May 22 20:13:32 just stick with windows 7 May 22 20:13:45 and handwaving about "they're still fixing it" May 22 20:13:49 windows 8 is a fairly drastic departure with metro; they will make some mistakes and fix them in windows 9. but i'm glad somebody is taking risks May 22 20:14:08 it's good to see they're at least trying, I'll give them that May 22 20:14:23 but it might just be a bit too experimental/drastic May 22 20:14:27 we'll see :) May 22 20:14:46 the whole point of it is to make it friendly for people who don't know how to use computers May 22 20:15:03 it's unfortunate, but that's the way most technology trends May 22 20:15:13 whichever tablet runs stock CS 6 gets my money first :) May 22 20:15:22 true, MS is chasing Apple in that perspective May 22 20:15:28 and they have some catching up to do May 22 20:15:32 consumer-first May 22 20:15:40 instead of features-first May 22 20:17:47 is there a musician out there? May 22 20:17:52 anyone at google can answer this and win infinit karma : http://stackoverflow.com/questions/8265739/how-to-determine-the-value-of-the-call-timer-or-duration-as-displayed-by-the-pho May 22 20:19:18 mobidroid: I doubt that's exposed. Look into the source of the phone app and see what it does May 22 20:19:29 why is it when i use DisplayMetrics dm = res.getDisplayMetrics(); dm.setToDefaults(); and then call res.updateConfiguration(config, dm); after doing this if i "exit" and then come back yo the app the context menu do not work. it calls onPrepareOptionsMenu but nothing is getting displayed ? May 22 20:20:28 evancharlton, yeah im browsing the code for a hour its a bit more complexe that i expected to find the proper code snipet in this, any tip how on properly find that in the 400 classes (so far i search probable keywords ,not much success) May 22 20:20:51 it's probably in packages/apps/Phone May 22 20:20:56 I doubt that has 400 classes May 22 20:21:09 com.android.contacts.dialpad is the right app to search ? May 22 20:21:48 probably May 22 20:21:55 is the XML gui design scheme specific to android or is it a java thing? May 22 20:22:56 evancharlton: thanks for your time, i'll continu digging until the light come :S May 22 20:23:00 GeeksOnHugs: it's good programming, separation of GUI and code, even WPF has something similar May 22 20:23:37 how's Jelly Bean comin' along? May 22 20:23:40 you can still create the GUI in pure code, but that's a real hassle to update and can get quite complex May 22 20:24:05 not that XML is easy on the eyes, but still :p May 22 20:24:17 mobidroid: com.android.phone is actually what you want, I would guess. InCallScreen.java is where I'd start May 22 20:24:31 yah I definately am liking it as I get more comfortable with it, I was just curious about it's pedigree May 22 20:24:48 evancharlton: yes it look much more interesting so far thanks a lot for the pointer May 22 20:26:02 I'm coming from Object Pascal (Delphi) which is a single pass compiler and so variables are declared in a section...in java you can declare variables anywhere, even the first time you use them...is there a best practice? Like is it still good to declare them in a more formal area? May 22 20:26:46 as I see examples online I see lots of cases where the variable is declared on it's first assignment May 22 20:26:58 GeeksOnHugs, it depends on the scope of the variable May 22 20:27:01 GeeksOnHugs: there are quite some guidelines, as a general rule, I group member variables at the top May 22 20:27:28 kk, I feel way more comfortable declaring them up top May 22 20:27:59 but if a var is only to be used in a function, it should not have class scope :) May 22 20:28:24 right on...minimize the scope of course May 22 20:29:03 but I'm a big fan of clear design, and having set areas, and to avoid 'wild declarations' :p May 22 20:29:18 does the compiler parse the XML in multiple passes? May 22 20:30:00 GeeksOnHugs: no idea tbh May 22 20:30:34 is there a way to get a Display instance using an App context? May 22 20:30:44 kk...I think I noticed it had a problem with a relative layout when refering to an item not set up yet, so I thought it might be single pass May 22 20:30:59 thanks :) May 22 20:33:10 jeppy: of course not. Activity is the core entity for doing UI. May 22 20:35:57 If I'm looking for good tutorials, should I focus on 2.x and build up from there, or work with the latest and greatest? May 22 20:37:15 i'd start w/ the basic stuff May 22 20:37:29 then jump into Fragments and other stuff taht's back compatable w/ the support lib May 22 20:37:50 prob gonna want fragments no matter what May 22 20:39:15 doogan: I had never heard of Fragments, looks quite powerful, but indeed a bit too advanced right now May 22 20:39:57 any resources you'd recommend? or just 'use Google' ? May 22 20:40:48 when i started a couple months ago, i went thru all the tutorials on d.android.com May 22 20:40:49 http://developer.android.com/resources/browser.html?tag=tutorial May 22 20:40:55 well, except for the OpenGL stuff May 22 20:41:49 beyond that, there is some decent stuff on mob tutsplus i thought May 22 20:41:59 oreilly has a free book up that was dece May 22 20:42:10 commonsware had some good tutorials May 22 20:42:19 doogan: I did those tutorials as well May 22 20:42:27 pretty excellent docs I must say May 22 20:42:41 and covering the bases nicely May 22 20:43:46 OpenGL I know quite well (though I used to use it in c++) May 22 20:44:02 yea then beyond the dev guide & docs, just googling any problem or task usually pops up a bunch of SO threads May 22 20:44:06 I'll check our o'reilly and commonsware May 22 20:44:13 thanks May 22 20:45:06 right on np May 22 20:45:11 belgianguy: i would get ret.'s 3e May 22 20:45:18 * reto May 22 20:45:25 i have a big list of rando tutorials i did somewhere that had some good stuff May 22 20:45:32 maybe i'll dig up later May 22 20:46:07 I'm trying to register for a Google Maps API key using the debug keystore, but getting an error that the key is invalid.. Any clues? May 22 20:48:15 Intent update_intent = new Intent("update.local.db.true"); updaterService.sendBroadcast(update_intent);Thread.sleep(5000); When using Thread.sleep this way the thread is never sleeping.... is there a new thread created when a new intent or bcast is sent? May 22 20:49:33 skfax, OS and JDK version? May 22 20:49:35 ocx: Where are you making the call to sleep? May 22 20:49:54 Thread.sleep(5000); May 22 20:50:04 it is in the run method May 22 20:50:05 public void run() { May 22 20:50:22 I've wrestled 2 days with getting an API key, but it finally worked May 22 20:50:34 ocx: how are you verifying that the thread isn't sleeping? May 22 20:50:44 in logcat May 22 20:50:54 belgianguy: Win7 x64 JDK 1.7.0.0.2 x32 May 22 20:50:55 skfax: http://www.youtube.com/watch?v=XdduYAs7klY&feature=relmfu is what I used and worked May 22 20:51:11 with 1.7 you might need that -v option May 22 20:51:17 if you're using Thread.sleep(), you're already doing it wrong. May 22 20:51:24 as it could give you a SHA1 instead of an MD5 May 22 20:51:36 ==ctate May 22 20:51:39 belgianguy: Yes, I'm getting a SHA1 key May 22 20:51:46 why? May 22 20:52:41 ocx: Heh thanks. I see now that the site specifically asks for the MD5.. Works now. May 22 20:52:46 ctate thats how i pause my ui thread May 22 20:52:49 Thread.sleep(); May 22 20:52:53 Thread.sleep(1000); ** May 22 20:52:55 make a thread sleep prevents it from doing what it needs to do, and is almost always a hack used by people who don't know how to do somethig properly May 22 20:53:00 hi. this is perhaps a stupid question, but i have a cpu intensive opengl app which works fine. but when i hold the screen touched down (it makes no use touch events at all, doesn't even override the methods), the framerate drops quite significantly. i'm figuring it's because the UI thread is getting bombarded with touch event messages. is there any way to limit those so it doesn't hog all the cpu? May 22 20:53:18 why would you explicitly pause the ui thread? May 22 20:53:25 jeppy: he's joking May 22 20:53:37 * canadiancow|work waits for the "i hope" May 22 20:53:38 wongk: i need to call a pull_db method every 5 minutes so i am using the thread.sleep May 22 20:53:41 district: no, you cannot stop the touch screen from sending events May 22 20:53:48 eclipse is not fucking loading my files May 22 20:53:56 it says there are four files in this src dir, but there are five! May 22 20:54:08 THERE ARE FIVE LIGHTS May 22 20:54:11 ctate: i saw a suggestion somewhere to do really tiny sleeps on the main thread (yeah i know it's a bad idea), but if they're small enough, would they hurt? May 22 20:54:12 skfax: solved it? May 22 20:54:21 belgianguy: Yes, works now. Just had to add the -v flag May 22 20:54:25 ocx: are you doing this whether or not your app is running? May 22 20:54:39 it is being done in a service context May 22 20:54:42 not in the UI May 22 20:54:47 belgianguy: lol I answered ocx instead of you earlier ^.^ May 22 20:54:52 that didnt answer my question May 22 20:54:53 district, and what would that accomplish? May 22 20:55:23 i am doing it when the main activity is running which in turns executes the service May 22 20:55:51 so only when the main activity is running May 22 20:55:52 > May 22 20:55:54 ? May 22 20:55:55 jeppy: other threads wouldn't starve May 22 20:56:05 yes May 22 20:56:11 then why are you using a service? May 22 20:56:23 skfax: np, glad it works :) May 22 20:56:36 a service is to update the local DB from a web service May 22 20:56:47 but why a Service? May 22 20:57:10 anyone know how to change the groups of a user? similar to useradd -G on linux systems May 22 20:57:26 to stay running in the background and pull every now and then May 22 20:57:38 it will get fired by the main UI and will stay there May 22 20:57:50 that's the opposite of what you want to do May 22 20:58:15 start a thread to do the job and then let it terminate May 22 20:58:27 yo dawg, i heard you like threads May 22 20:58:28 there's no need for a service May 22 20:58:41 ocx: this might be helpful http://www.google.com/events/io/2010/sessions/developing-RESTful-android-apps.html May 22 20:59:53 http://groups.google.com/group/android-developers/browse_thread/thread/39eea4d7f6e6dfca May 22 21:00:03 belgianguy: that was useful, but not as useful because there was no code. at the time they said they would release the twitter code, but twitter got that and we never saw it. who cares, but it was written by the guy who gave the presentation - so you'll have to look a bit harder for good examples that shows his architectural options May 22 21:00:12 kdub: Android doesn't do 'users' like multiuser desktop unix systems May 22 21:00:21 dianne hackborn says to sleep it, that's good enough for me May 22 21:00:46 note that that was in 2009 :) May 22 21:00:56 well it doesn't seem to be fixed in gingerbread like someone claimed ;) May 22 21:01:01 but yes, what's going on is that you are *handling* touch events as fast as possible May 22 21:01:02 ctate: i'm trying to do something that I need to be in the group 'graphics' to do... can i add a group or something to the root user? May 22 21:01:11 stepping back to once per frame is liable to be helpful May 22 21:01:19 sorry dc May 22 21:01:33 kdub: you're in #android-root territory here, not app dev May 22 21:01:34 yea i was saying i am using a service because i am sending an intent from the service into another activity May 22 21:01:53 won't let me join android-root for some reason :-/ May 22 21:01:55 g00s: ah, that's not very helpful of them, but he touches solid design points though May 22 21:02:08 yes he does May 22 21:03:05 kdub: are you registered on Freenode? May 22 21:03:10 i didnt get it why Thread.sleep is not recommended when using a service, purpose is to pull database every x interval time May 22 21:03:23 GeDaMo: yep, and identified May 22 21:03:39 ocx: just post a message to do the work at the desired time May 22 21:04:15 i need it to run every 10 min for example May 22 21:04:37 for that sort of timescale, use an alarm May 22 21:05:02 [in particular, if you need it to run even if the phone is sitting in someone's pocket with the screen off] May 22 21:05:17 g00s: what did you mean by "reto's 3e" ? May 22 21:05:18 lol May 22 21:05:25 Google doesn't get what I mean :) May 22 21:05:35 third edition May 22 21:05:44 i was reading through thi May 22 21:05:45 http://stackoverflow.com/questions/1520887/how-to-pause-sleep-thread-or-process-in-android May 22 21:05:56 so you saying that is not recommended May 22 21:06:13 GeDaMo: it was just empathy being dumb... irssi got me in :) May 22 21:06:22 :) May 22 21:06:30 wrox's web site is the biggest pile of crap. when searching for android, you would think retos 3e , rather than the 1e would show May 22 21:06:58 belgianguy: http://www.wrox.com/WileyCDA/WroxTitle/Professional-Android-4-Application-Development.productCd-1118102274.html May 22 21:07:14 g00s: thanks :) May 22 21:08:36 * wongk wanders off May 22 21:12:16 * pragma- tackles wongk May 22 21:19:27 whats a good book for android programming May 22 21:19:35 sick of the forums May 22 21:19:59 some people earlier were talking about reto meier's May 22 21:24:34 reto meier's? retro sid meier games? wat? May 22 21:25:39 yea this guy seems a genius May 22 21:25:43 http://www.amazon.com/Reto-Meier/e/B002BMF4OC/ref=ntt_athr_dp_pel_1 May 22 21:26:22 ocx: http://www.wrox.com/WileyCDA/WroxTitle/Professional-Android-4-Application-Development.productCd-1118102274.html :) May 22 21:26:43 http://www.amazon.com/Professional-Android-Application-Development-Guides/dp/1118102274/ref=ntt_at_ep_dpt_1/183-6927472-9261920 May 22 21:27:27 thanks guys May 22 21:27:33 i will order now May 22 21:27:36 Any free engine that supports 3D? May 22 21:30:31 is there a conventional depth beyond which one should not stray when designing a layout? May 22 21:31:13 dont use absolute layouts or values, dont nest more than 4 levels May 22 21:31:34 4 levels is a little small :) May 22 21:31:41 hi all, when learning android dev, should one use jdk6 or jdk7, does it matter? May 22 21:32:02 it scares me when i see code like private WeakReference May 22 21:32:04 romainguy for your own layouts, or in total? May 22 21:32:13 canadiancow|work: oh god what May 22 21:32:26 thanks guys, i'm only at level 3 and I think I need one more so maybe that's not so bad May 22 21:32:31 magellanic: jdk6, you can use 7 if you set the compat level to 6, but some things like jarsigner wont work May 22 21:32:35 tnzr: that's fine May 22 21:32:50 romainguy: cool thanks! May 22 21:32:58 birbeck: cool thanks. May 22 21:37:02 what levels are you guys referring to? May 22 21:37:04 * ctate <3 git branches May 22 21:37:16 magellanic: layout nesting depth May 22 21:37:22 how deep can you go ? May 22 21:37:27 i have a nice one i could imageshack May 22 21:37:28 ah okay May 22 21:37:29 if i blur it a bit May 22 21:37:30 you *can* go quite deep May 22 21:37:39 ctate: thaaaat's what she said. May 22 21:37:42 that's what .. May 22 21:37:43 :) May 22 21:37:52 but there is potentially a significant performance penalty for each additional nesting level May 22 21:38:15 in pathological cases, each level of nesting can double your layout/invalidate/etc time May 22 21:38:53 so be sure to tightly specify your layout behaviors, and keep an eye on how long it takes to do a relayout pass May 22 21:39:11 can't you also overflow the stack if your tree gets too deep? May 22 21:39:30 definitely May 22 21:40:06 why wound one use getjar/handango over google play? i'm reading an article about mobile app marketing, and they recommend using multiple stores May 22 21:40:25 i can see the amazon store maybe, but not those 2 May 22 21:40:39 Does anyone know of a library where Google Map tiles are loaded and rescaled as appropriate such that you can get a more fluid zoom? May 22 21:41:22 http://img401.imageshack.us/img401/130/awesomelayout.png May 22 21:41:29 i suppose depth isnt horrible there May 22 21:41:32 breadth is more the issue :) May 22 21:43:10 * ctate has seen layouts with 800+ views May 22 21:43:25 canadiancow: breadth is usually taken care of by early clipping May 22 21:43:26 i notice my non-service app is running in the background May 22 21:43:34 is it because i launched it from eclipse? May 22 21:43:42 it is not running May 22 21:43:46 its process exists May 22 21:43:49 these are not the same thing May 22 21:43:50 so romainguy, you see no issue with that tree? :) May 22 21:43:56 process != application, in Android May 22 21:43:58 many May 22 21:44:02 but I've seen worse May 22 21:44:04 so meh May 22 21:44:07 if you want it to shut down you have to do that in onStop, am i right? May 22 21:44:11 for the record, that one was fixed May 22 21:44:11 well its actively writing to my log file so i know it is May 22 21:44:15 wtf May 22 21:44:23 are you spinning off standalone threads or something? May 22 21:44:42 or continuing to post messages/runnables to your looper even after you've been told that you're stopped? May 22 21:44:44 cos don't do that :) May 22 21:45:04 there is a background thread spawned from new Thread().start() May 22 21:45:18 should belong to same process May 22 21:45:24 I want to add swipe gesture to change activities, can You point me to nice tutorial? May 22 21:45:26 [also, your process can be summarily killed at any moment after your onStop() callback method returns. you probably don't want to be in the middle of I/O when that happens.] May 22 21:45:33 jasonmog: that is what Service is for :) May 22 21:45:42 to give you a controlled lifecycle while your app is not frontmost May 22 21:45:54 i don't want my app to run in the background though May 22 21:46:03 by background thread i mean non-UI May 22 21:46:10 then yes, you need to tell your free-running thread to stop as well May 22 21:46:18 services run on the ui thread May 22 21:46:19 in onStop? May 22 21:46:40 onStop() is the right callback, yes; it's your signal that your app is no longer frontmost. May 22 21:46:46 s/app/activity/ May 22 21:47:05 don't all threads in the process pause when my app loses focus? May 22 21:47:12 canadiancow|work: say rather that the formal Service lifecycle callbacks run on the main thread. May 22 21:47:17 jasonmog: absolutely not. May 22 21:47:21 orly May 22 21:47:38 well if someone is talking about the ui thread, im not going to say "main thread" and have them think it's different! May 22 21:47:39 i've made a huge mistake May 22 21:47:47 this isnt ios! May 22 21:48:04 thanks May 22 21:48:07 canadiancow|work: no, it's the "services run on the" part i was taking exception to May 22 21:48:15 not the "ui thread" vs "main thread" interchangeable naming May 22 21:48:17 oh May 22 21:48:23 well ok May 22 21:48:49 but thats the same for activities May 22 21:49:14 lifecycle callbacks are on the main thread, view manipulation is on main thread, the rest can be anywhere May 22 21:49:50 i assume i should use onStop in the root activity? May 22 21:50:15 i dont think you understand what an activity is May 22 21:50:31 if your app uses more than one activity and you are trying to stop your background thing specifically when they're *all* no longer frontmost, then you need to work out how to do the refcounting May 22 21:51:02 is there a way to get an initial sensor value out of the proximity sensor? May 22 21:51:28 i was afraid of that May 22 21:51:49 :o May 22 21:51:58 i believe i have some code to count the active activities May 22 21:52:01 github's timestamp for my initial commit is "in a few seconds" May 22 21:52:06 not "a few seconds ago" May 22 21:52:19 google needs to get github's new quantum infrastructure May 22 21:52:19 define "active" May 22 21:52:23 jasonmog: sounds harder than it is May 22 21:52:49 they all inherit from a base activity which tracks the count in a static variable May 22 21:53:03 in the lifecycle methods May 22 21:55:22 as long as you're always calling up to your super.* implementation that'll work fine May 22 22:02:01 How do you change an imageButton in an activity to play/pause based on what the mediaPlayer in a service is doing? Do you need to bind the service? May 22 22:20:16 nice May 22 22:20:51 migrated from code.google.com svn to git on github while retaining 100% of the svn history/changelog May 22 22:21:16 now to switch code.google.com from svn to git and update that repo, and set up a command to push to both repos with one command May 22 22:30:07 So im building the android sources and im getting a link error about not having -lGL. Which lib supplies that? May 22 22:30:57 Hi! I'm wondering why Build.VERSION.SDK_INT doesn't return same as android:minSdkVersion which is defined in my manifest file. Does anyone know? May 22 22:31:53 uh May 22 22:32:02 Build.* tells you about the device you're running on May 22 22:32:07 because Build.VERSION.SDK_INT is the version of the device's platform May 22 22:32:20 aha May 22 22:32:21 android:minSdkVersion is *you* telling Market about what version of Android you support May 22 22:32:31 (well, telling the OS too) May 22 22:32:46 that explains it.. :) May 22 22:34:01 http://developer.android.com/guide/topics/manifest/uses-sdk-element.html dude :) May 22 22:35:41 there should be a course in understanding API documentation :) May 22 22:37:00 What I wanted to do was to verify that my app really was using the defined SDK version. May 22 22:39:02 what exactly should I call 'am', as in 'adb shell am start -n ...' ? May 22 22:39:11 android-monkey? something else...? May 22 22:40:42 it's for 'Activity Manager' May 22 22:40:49 pm => Package Manager May 22 22:40:56 bmgr => Backup Manager May 22 22:45:45 ctate: why not bm? May 22 22:45:52 to keep with the scheme? May 22 22:46:06 anyone ever hear of ACTION_SENDTO not working properly on any particular motorola devices? May 22 22:46:23 widespread use of 'bm' to mean scatological activities May 22 22:46:39 hence, avoidance thereof May 22 22:46:39 works fine on my droid and droid3 but my client said something about a motorola device that it does not work on it... still has yet to return me the info on what device it was. May 22 22:48:39 * g00s looks up the difference between action_send and action_sendto May 22 22:49:45 i've always used ACTION_SEND May 22 22:50:38 i can't tell the difference May 22 22:50:44 if I switch my intent to ACTION_SEND from ACTION_SENDTO May 22 22:50:51 except one is documented well, and the other is not May 22 22:50:52 it finds no programs capable of handing the intent May 22 22:51:16 ctate: they chose bmgr instead of bm because in their mind bm could stand for bowel movement? surely that was a joke. May 22 22:51:29 * pragma- narrows his eyes. May 22 22:51:33 ACTION_SENDTO code http://pastie.org/3952589 May 22 22:51:49 pragma-: ... no? May 22 22:51:53 not a joke. May 22 22:51:53 ACTION_SEND code ce thereof May 22 22:51:55 * ctate shrugs. May 22 22:52:01 ACTION_SEND code *** http://pastie.org/3952593 May 22 22:52:12 I believe ACTION_SEND is for sending data, whereas SENDTO is for a message May 22 22:52:21 note that ACTION_SENDTO is in fact used all over May 22 22:52:40 re ACTION_SENDTO https://code.google.com/p/android/issues/detail?id=30190 May 22 22:52:46 ctate: what do you think the chances are that there is a stock moto device that doesn't repsond to it proper May 22 22:52:48 Contacts uses it a ton May 22 22:52:54 define "respond" May 22 22:53:21 see my code above for ACTION_SENDTO, when using that code and "pressing the default email client" none of the fields are filled in May 22 22:53:29 according to my client who has yet to tell me what device it is. May 22 22:53:33 works fine on droid & droid 3. May 22 22:53:46 readme: because you are doing it wrong May 22 22:53:49 ACTION_SENDTO is documented as having no output. May 22 22:53:51 so uh May 22 22:53:55 action_sendto doesn't support extras May 22 22:54:17 interesting May 22 22:54:26 at least not documented. most email clients support it May 22 22:54:33 for some reason, I was not able to get it to work with ACTION_SEND May 22 22:54:38 only with ACTION_SENDTO May 22 22:54:53 and is documented as taking one argument, the data == uri of the target May 22 22:54:55 remove the uri when using action_send May 22 22:56:02 nobody is using ACTION_SENDTO correctly :( May 22 22:56:11 all you get is a Uri May 22 22:57:09 dropbox, google drive, and bluetooth all like to respond to my ACTION_SEND May 22 22:57:12 any way to filter them out? May 22 22:57:40 use a proper mailto uri May 22 22:57:55 18:54 < cketti> remove the uri when using action_send May 22 22:57:58 where do I put it? May 22 22:58:02 mailto:user@example.com?subject=yoursubject&body=text May 22 22:58:20 I'm sending multiple emails, via EXTRA_EMAIL and an array May 22 22:58:23 does it make a difference? May 22 22:59:04 I thought ice cream sandwich was supposed to have email providers, no? May 22 23:00:18 readme: multiple email addresses -> mailto:user1@example.com,user2@example.com May 22 23:01:41 k-9 mail also supports mailto:<...>?cc=user3@example.com,user4@example.com - i don't know about other apps May 22 23:02:07 are there any devices on the market that do not include the google apis? May 22 23:02:18 Kindle Fire does not May 22 23:02:35 and iirc there is one Android device that does not have the Maps API available May 22 23:02:37 ah wow...ok ty May 22 23:02:51 (note that the Kindle Fire is not technically an Android device; it's not compatible) May 22 23:03:03 it's just mostly May 22 23:03:07 what about the nook May 22 23:03:16 ctate: trying it out. Thanks a lot. May 22 23:03:18 cketti: * May 22 23:03:35 so they have their own app store? May 22 23:03:40 yes May 22 23:03:49 (which you can also install on an Android device) May 22 23:04:20 yah, OK, the amazon store? i've got that May 22 23:04:39 so they have their own API I guess May 22 23:05:17 not really, they just have their own app store and a curated-content model in which they explicitly don't require (or consider forbidden) certain complaint behaviors May 22 23:05:37 cketti: this does not work May 22 23:05:50 can you be more specific? May 22 23:05:55 cketti: here is the modification you suggested: http://pastie.org/3952637 May 22 23:05:56 kindle developpment kit: http://kdk.amazon.com/gp/public/gateway/178-1774892-4931233 May 22 23:05:59 when you publishign through the amazon store they open up the apk, rewrite some code to insert their license management etc, and repack + resign May 22 23:06:05 (afaik) May 22 23:06:11 it gets the same result, dropbox, drive, and bluetooth are still shown, and no TO: fields even get sent now. May 22 23:06:46 readme: drop the setType and the extras. ACTION_SENDTO = URI only May 22 23:06:48 the kindle does not have a gps May 22 23:07:07 cketti: ah, so I should use SENDTO May 22 23:07:08 ok May 22 23:07:19 can the body of the email be used in a URI? May 22 23:07:31 body= May 22 23:07:33 sick May 22 23:09:52 is there a way to set the date/time and timezone from the shell? May 22 23:12:25 ok, I managed switching with custom SimpleOnGesturesListener: http://wklej.org/hash/023b4df2c7b/ May 22 23:13:34 is it ok? it works but any opinion is appreciated :) May 22 23:13:51 or maybe it can be done in better way... May 22 23:14:18 cketti: this is going to stop me from using HTML in the message body, right? May 22 23:14:38 where are the date/time settings stored. is it in some sqlite database? May 22 23:14:50 readme: yes. but there's no documented way to do this, anyway May 22 23:15:09 idefine: current date/time is handled by the kernel just like on any other linux-based system May 22 23:17:28 ctate: thanks. I'll look into that May 22 23:18:17 cketti: so is ACTION_SEND a viable alternative? May 22 23:18:24 would I be able to: send multiple, and use HTML? May 22 23:18:31 and see only relevant email clients appear May 22 23:19:51 the html will most likely end up as attachment May 22 23:20:06 ah I see May 22 23:20:08 and filtering for email clients will be tricky May 22 23:20:23 ok, I'll just have to tell the client that his trade off is no HTML or having me write a web service instead. May 22 23:20:28 there's a different action for send multiple, isn't there? May 22 23:20:35 afaik no May 22 23:20:44 with send multiple he means multiple recipients May 22 23:20:46 Intent.ACTION_SEND_MULTIPLE May 22 23:20:51 oh ah May 22 23:20:58 sorry for the confusion May 22 23:21:12 well May 22 23:21:32 ACTION_SEND and SENDTO are both fundamentally for "send this content using the most appropriate handler" May 22 23:21:37 to filter for email clients you can grab the intersection of apps that handle ACTION_SENDTO + mailto and ACTION_SEND May 22 23:21:44 where "most appropriate" is typically handled by the user May 22 23:21:49 via choosers etc May 22 23:22:03 I get that idea May 22 23:22:12 but my client will not, and I'm not gonna try to explain it more than I already did May 22 23:22:21 I think this solution will be fine May 22 23:22:27 since it has to be a message, not an attachment May 22 23:23:15 cketti: thanks for the help May 22 23:25:34 ugh May 22 23:25:44 the URI works fine in gmail then breaks in the default ICS email client. May 22 23:26:55 http://pastie.org/3952757 May 22 23:27:05 there is the encoded and decoded uri, and the code I wrote to build it May 22 23:28:13 i believe the email addresses aren't supposed to be uri-encoded May 22 23:28:33 ah, i see May 22 23:28:38 oh May 22 23:28:40 hmm May 22 23:28:49 email probably doesn't support ?to=... May 22 23:28:57 it's in the rfc May 22 23:29:19 May 22 23:29:22 http://tools.ietf.org/html/rfc2368 May 22 23:29:39 without to, the emails arent found by gmail May 22 23:29:42 true, i didn't say it was invalid :) May 22 23:29:49 this is all a big pile of junk :D May 22 23:30:03 I can't wait till my client claims it worked in the previous version and I have to tell him he is a liar. May 22 23:30:18 mailto:user1@example.com,user2@example.com?body=some%20text May 22 23:33:04 tried it May 22 23:33:13 I'll try it again though May 22 23:33:15 got nothing to lose. May 22 23:36:01 Guys. Looks like eclipse cant update apk on emulator anymore. One deployment (debug run), than I should manually uninstall application via adb. What happen? How to fix? May 22 23:36:16 xa0c: check logcat May 22 23:36:59 readme: Email should support ?to=... -> https://github.com/android/platform_packages_apps_email/blob/master/src/com/android/email/activity/MessageCompose.java#L2111 May 22 23:37:26 evancharlton: nothing special. it runs ok. but 'old' version. May 22 23:37:28 cketti: nice, but I just witnessed it not working :( May 22 23:38:39 addAddresses(mToView, to.split(" ,")); <- needs a space... May 22 23:39:01 is there anyone set up NNTP based newsgroups before May 22 23:39:02 ? May 22 23:40:50 cketti: I printed the URI when it didn't work and it was properly formed. May 22 23:40:58 I've got it almost working now... May 22 23:41:36 the implementation in email is borked. the ?to=... contents are added to the CC EditText May 22 23:42:07 and the addresses between "mailto:" and "?" are split using " ," May 22 23:46:04 checked. I did edit wrong layout. :) May 22 23:47:26 anyone familiar with using an image of several images for game animation(sprites)? May 22 23:50:27 cketti: right May 22 23:50:30 I've got it working now May 22 23:50:32 thanks for the help May 22 23:50:49 incase you want to save it for future ref May 22 23:50:50 you're welcome May 22 23:50:52 http://pastie.org/3952841 May 22 23:51:01 Uri.Builder didnt' have the support i needed May 22 23:51:34 I'm not sure what the first part of the mailto link with the emails is called in uri-ese, but fragment, opaquePath, and path all wanted to use prefixes after the scheme May 23 00:06:35 git is so awesome! now I can push my single repo to multiple sites May 23 00:07:01 (currently just googlecode and github, but yeah, baby, yeah!) May 23 00:08:26 what permissions does . Secure.getString(getContentResolver(), Secure.ANDROID_ID May 23 00:08:26 ); use i see nothing in the docs May 23 00:12:16 dominicdinada: none May 23 00:12:22 any app can read from settings May 23 00:12:37 it's "Secure" because you can't *write* to it May 23 00:12:56 oh ok i was trying a mock up and it didnt work putting it into a textview May 23 00:13:11 correct i read that May 23 00:13:12 also you should of course read http://android-developers.blogspot.com/2011/03/identifying-app-installations.html May 23 00:19:37 another question is if i have long and lat to i have to register for google api to pull a mapview May 23 00:21:33 ctate: see my question? May 23 00:22:14 there are lots of people in teh channel who can answer this, i'm sure. no need to page the chanop. :) May 23 00:22:34 as far as i know -- never having used the map stuff myself -- you need a maps API key to use mapview in any way May 23 00:25:36 you can use the mapview without a maps api key. it just won't display a map :) May 23 00:25:49 or, with a wrong one, not sure. May 23 00:29:39 * t0mless highfives readme May 23 00:30:03 did you leave that comment on the synergy for android sourceforge page? May 23 00:30:18 what comment? May 23 00:30:32 crap, am I remebering the wrong Tom... May 23 00:30:37 no, I did leave a comment May 23 00:30:43 something about it working May 23 00:30:49 I was wondering if you had to have CM9 May 23 00:30:50 "it works" or something May 23 00:30:52 or just root access May 23 00:30:55 I have CM9 and root May 23 00:30:58 so I dunno May 23 00:31:14 I don't want to put CM9 an my tablet :( May 23 00:31:16 although it works it's currently difficult to use. May 23 00:31:24 or my phone for that matter May 23 00:31:34 oh? how so? May 23 00:31:40 my phone is safestrapped. I can switch back from CM9 to my original rom any time May 23 00:31:57 uh, it's just difficult to use.. you'd have to try it May 23 00:32:10 the mouse sensitivity May 23 00:32:27 and I think right click should be bound to back (which I changed in my version) but I havent' submitted a patch yet May 23 00:34:20 I'll have to give it a shot with just root May 23 00:34:35 fwiw ESC on the keyboard defaults to 'back' if unhandled by the app May 23 00:34:47 readme and ctate thank you i was away from the kb i was doing an app with a possible mapview for someone but dont want to use mine May 23 00:40:37 hi, I am developing an app where the user will need to be able to select the API url to use in the prefs. he needs to be able to add, delete and edit URLs. is there any easy way (like a special pref) to do it? May 23 00:42:20 EditTextPreference. May 23 00:42:47 morning, all May 23 00:42:50 you could roll your own URLPreference that checks for valid syntax I guess. May 23 00:43:36 Guys, I'm trying to draw an image next way: first fit to height, second: crop width (by center). I did it using two bitmaps: first is createScaledBitmap(), second is simple createBitmap(). Is there a way to do such transformation using one bitmap only? May 23 00:44:13 t0mless: I am trying to have multiple API urls that the user can select, i.e. the user enters 5 urls once and then easily switches between them May 23 00:44:53 oooh May 23 00:44:58 there are a few ways you could implement that May 23 00:45:08 t0mless: I tried about 5 and they all suck May 23 00:45:57 t0mless: I am planning to extend a list preference to add buttons for adding/deleting to the selection May 23 00:46:03 s/selection/dialog May 23 00:46:22 You could do that May 23 00:46:37 Though at that point, does it really need to be a preference? May 23 00:46:52 Why not just make your own ListActivity or Fragment May 23 00:47:08 yeah, I also considered that May 23 00:47:19 I like ActionProviders May 23 00:47:34 so it can be a dropdown selection from the ActionBar May 23 00:47:52 which you could have the last element be add, or a seperate action item for add May 23 00:48:09 or just have the selection in the ActionBar and then an activity for edit/add/delete May 23 00:54:36 urgh, got a nasty but probably working idea - http://kmansoft.com/2011/08/29/implementing-long-clickable-preferences/ May 23 00:54:47 long-click on the pref allows modification... May 23 00:55:24 Ew May 23 00:55:55 Personally I think an activity with a QuickAction menu would be better May 23 00:56:09 Hello, how I can check if a file exist. openFileOutput don't give back an error, it create a file when it dont exist May 23 00:56:46 sukramTM get the File object and then call .exists() May 23 00:57:22 what does openFileOutput return, a FileDescriptor> May 23 00:57:49 it returns a FileOutputStream May 23 00:58:29 t0mless: looks nice, but not in the standard sdk unfortunately. I think I will go with the list activitiy May 23 01:02:30 sukramTM looks like you might have to do new File(getFilesDir(), mFileName).exists() May 23 01:03:11 yes, that's how you would do it May 23 01:03:22 or try openFileInput and catch the FileNotFoundException May 23 01:03:33 this begs the question of why, if you're opening the file for output, you care whether it already exists May 23 01:03:44 Indeed it does May 23 01:08:26 I expected more rejoicing from the world at my transistion from svn to git. May 23 01:08:29 * pragma- pouts. May 23 01:08:37 YAY GIT! May 23 01:08:40 \o/ May 23 01:08:43 woot! May 23 01:09:03 I've been putting off implementing LVL because I don't want to read all about it May 23 01:09:14 especially because I read about it, and then they changed it -_- May 23 01:09:19 I'm now simultaneously hosting on googlecode and github with one repo and command. May 23 01:09:28 is it possible to mix standard activities with fragments? May 23 01:09:28 that's pretty sweet May 23 01:09:36 b1n0ry yes May 23 01:10:03 https://github.com/pragma-/networklog and http://code.google.com/p/iptableslog/source/list -- a thing of beauty! May 23 01:10:05 like if i'm just targetting cell phone devices, i could just use regular layouts and activities, but maybe a fragment for dialog boxes and stuff May 23 01:10:05 are you mirroring googlecode repo from github? May 23 01:10:11 ty, t0mless May 23 01:10:31 nope, I have them both set as remotes on my repo May 23 01:10:32 Yea, and you should be using DialogFragment May 23 01:10:42 ahh May 23 01:10:50 you can push to multiple remotes with one command? May 23 01:11:00 Scripting! May 23 01:11:09 \o/ May 23 01:11:26 that makes sense, thanks t0mless. May 23 01:12:18 * pragma- ought to migrate http://code.google.com/p/iptableslog to http://code.google.com/p/networklog May 23 01:12:31 I do own the second one as well, but I have history with the former May 23 01:13:06 be nice if I could just rename. May 23 01:30:09 the way github's 404 page responds to the mouse is cute May 23 01:33:21 pragma-, yeah it is May 23 01:33:26 never looked at it before May 23 01:44:04 odd that it's not the same 404 for unkown GH pages May 23 01:52:53 Does anyone know if ActionBarSherlock 4.0 supports split action bar? May 23 01:53:03 Yes May 23 01:53:13 For the most part May 23 01:53:22 there are a few bugs, files on github May 23 01:54:50 Cool, thanks May 23 01:55:05 filed* May 23 01:55:56 lol May 23 01:58:05 How can I get the system image for Android 2.3.3? it is not listed in the SDK manager. May 23 02:09:05 is this the right syntax? : File file = new File(getCacheDir(), "books.dat"); May 23 02:09:35 if i want to work with a file called 'books.dat' in the cache? May 23 02:18:52 b1n0ry, i think you have to add the "/" May 23 02:19:07 ok May 23 02:19:12 or File.separator, something like that May 23 02:19:18 i actually don't think i'm going to use cachedir May 23 02:19:47 i have quite a bit of content that loads from the web and it's relatively static. no sense downloading it frequently. May 23 02:19:57 oh wait, i thought you were concatenating strings. you had it right May 23 02:20:07 ah, thanks :) May 23 02:26:58 * shoerain speaks into a loudspeaker. May 23 02:27:24 calling all app developers, i'd like to see a showcase of really awesome apps, please. Now ICS+ edition! May 23 02:27:43 I mean, it'd be cool for me to steal features from said apps. Or to see best practices. And the like. May 23 02:32:49 google has a page on android dev best practices May 23 02:38:04 http://pastebin.com/mwJVa1Qu <-- can anyone tell me what would be making this error out? May 23 02:38:15 getting a nullpointer exception May 23 02:38:47 Is it possible to setMargins on a TableLayout? I'm doing it programmatically but it won't work. http://pastie.org/3953387 May 23 02:39:24 nevermind, turns out i'm passing a null string to getBytes() May 23 02:48:37 andorid xml layouts have caused me to forget css May 23 02:48:42 android* May 23 02:48:50 How do I center something in a div? May 23 02:49:54 layout_align="center" ?? i can't remember either May 23 02:50:08 weird May 23 02:50:31 i wish May 23 02:52:17 margin: 0 auto; May 23 02:52:25 i was putting it on the wrong div *facepalm* May 23 02:54:47 i have an http handler class that i put together. been working fine in other apps, but i'm having a (hopefully) minor issue here. May 23 02:55:14 i pass it a url, it comes back with the web content as a string May 23 02:55:34 simple enough... i added some functions to 'build' the url for me for a particular web service call i'm using. May 23 02:56:04 using Log.i to show me the url it's building. i can go to the url in my browser, and i see content. however when i launch the app, the string is returned as null. May 23 02:57:35 using standard org.apache.http stuff May 23 02:59:11 b1n0ry, tried this? http://developer.android.com/reference/java/net/URLConnection.html **** ENDING LOGGING AT Wed May 23 02:59:59 2012