**** BEGIN LOGGING AT Tue May 08 03:00:02 2012 May 08 03:00:13 i dont want to worry about whether things are mm/dd/yy or yyyy/mm/dd .... May 08 03:11:47 g00s, let them choose? May 08 03:13:36 siri is a joke May 08 03:13:43 my girlfriend has a smartphone May 08 03:13:50 i just tell her to do stuff on it for me, much better than an ai May 08 03:16:10 readme haha May 08 03:17:53 oh man, I just hit 2k rep on stackoverflow :) May 08 03:18:41 \o/ May 08 03:18:57 at 2k rep, you get a nofollow backlink to your site from your profile May 08 03:19:06 I mean, the nofollow is removed May 08 03:19:20 it's a major award! May 08 03:19:39 dude it is. i asked how to get the nofollow removed 2 years ago and jeff atwood answered with "you need 2k rep" May 08 03:20:23 for what? higher google rankings of your site? May 08 03:20:28 yes :) May 08 03:20:57 before the so backlink it was pr2 May 08 03:21:07 i bet it will shoot up at least 1-2 ranks May 08 03:21:09 underwhelming… http://readme.com/ May 08 03:21:18 also, http://read.me/ May 08 03:21:20 http://tomdignan.com May 08 03:21:49 i refuse to give you a google analytics hit May 08 03:21:58 how did you know I was running google analytics? May 08 03:22:04 i'll curl it May 08 03:22:16 it will be fine in curl :) May 08 03:22:27 no javascript layout crap and semantically correct html should work ok in lynx etc. May 08 03:22:40 do macs even have that stuff? May 08 03:23:20 they come preinstalled with R May 08 03:23:23 which is kind of cool May 08 03:23:34 $ R May 08 03:23:35 -bash: R: command not found May 08 03:26:19 :| May 08 03:26:28 machine learning for hackers lied to me May 08 03:28:30 readme: r changes enough anyhow, its best to gust install your own May 08 03:28:37 *just May 08 03:28:37 http://i.imgur.com/9m3PL.png May 08 03:28:49 * readme doesn't have a mac of his own yet :'( May 08 03:29:06 I could buy one now, but I want to keep a high bank account balance May 08 03:29:29 i woul dprobably wait for the ivy bridge refresh anyhow May 08 03:29:40 ivy bridge? May 08 03:30:02 oh man, siri's alarm just went off and the pizza is done May 08 03:31:38 * g00s wishes eclipse had full screen support on mac already May 08 03:32:17 can you drag to split windows on mac? May 08 03:32:26 i asked someone to do that on a mac and they couldn't do it May 08 03:32:47 g00s: wtf is the ivy bridge May 08 03:32:53 i always thought splitting windows on eclipse was weird May 08 03:33:01 readme: the one after sandy bridge May 08 03:33:05 yeah it's a skill you must acquire May 08 03:33:21 g00s: can you translate that from macboi to english May 08 03:33:30 readme: :| May 08 03:33:35 its intelboi May 08 03:34:10 ^ May 08 03:34:22 Sandy bridge was the latest i7 arc May 08 03:34:28 codename May 08 03:34:30 whatever thing May 08 03:35:13 i get confused as all fuck looking at intel roadmaps May 08 03:36:54 yea May 08 03:37:04 it doesn't help that they just started naming them all i7 May 08 03:37:31 g00s: :P May 08 03:37:36 ah May 08 03:38:00 last mac I had was a g3 and it got stolen by some degenerate. unfortunately for him it had gentoo with no UI on it. May 08 03:40:14 fuck yeaaaah http://alblue.bandlem.com/2011/07/full-screen-support-for-eclipse-on-osx.html May 08 03:40:16 works well May 08 03:41:33 sandy bridge chips are really great. i used to buy amd chips because of price/performance ratio, but sandy is clearly best choice atm May 08 03:42:23 i heard the ivy bridges are getting hot if you overclock them May 08 03:42:33 but i don't overclock anything :) May 08 03:42:59 g00s: you should switch to IntelliJ May 08 03:43:35 the best performance upgrade i've ever done is to get a SSD for a system drive May 08 03:43:41 hooooooly shit is it awesome May 08 03:43:49 ssds are lightning May 08 03:43:54 i'm still owrried those damn things degrade May 08 03:44:16 with AHCI and TRIM support their lifespans are much much better May 08 03:46:08 g00s: ivy bridge's curcuits are packed much denser because of 22nm vs 32 nm sandy bridge die and because it features 3d transistors, so heat is a bigger problem May 08 03:46:58 ultrixx: also, the current chips seem to be using some more economical thermal transfer "stuff" May 08 03:47:07 read, flimsy May 08 03:47:23 not my area of expertise May 08 03:48:11 sb i7's tdp is 95w, ib i7 is 77w May 08 03:48:23 so 20w less max. heat May 08 03:48:33 but on a very much smaller surface May 08 03:49:24 "So why is Ivy Bridge hot? Intel is using TIM paste between the Integrated Heat Spreader (IHS) and the CPU die on Ivy Bridge chips, instead of fluxless solder." May 08 03:49:30 http://www.neowin.net/forum/topic/1075197-are-hot-ivy-bridge-cpus-the-result-of-thermal-paste/ May 08 03:50:27 hang on i will actually read that May 08 03:50:49 i have no skin in the game, i'm still using a Core 2 Duo :D May 08 03:50:56 like, from 2009 May 08 03:53:38 I've discovered that the 'wipe user data' locks up the emulator while it's loading - in case someone else runs into this. May 08 03:54:08 g00s: nice theory May 08 03:55:07 i always thought, the best time to buy a MBP - was when they had their first refresh after a major update May 08 03:55:14 usually works out the kinks :) May 08 03:55:25 anyone around that has an ABS app? May 08 03:55:50 more specifically, one that uses fragments and menu items May 08 03:57:34 Yees... ? May 08 03:57:41 can you try the dev branch please May 08 03:57:51 Okay, give me a bit May 08 04:00:08 JakeWharton: what's new in the dev branch? May 08 04:00:18 new menu dispatching to fragments May 08 04:00:33 no longer shoves itself through the support library's normal pathways May 08 04:00:41 it grabs the reigns as says I DO WHAT I WANT May 08 04:01:13 I do May 08 04:01:37 i'm testing it with Square's apps and all the open source apps that I can find and compile easily May 08 04:01:42 but the more the merrier May 08 04:01:55 it may even resolve one of the bugs all by itself May 08 04:30:15 lo May 08 04:32:01 I am looking for docs on how the default andriod touch click is triggered? May 08 04:32:38 i found info on using tonegenerator and will use that if i can't find anything else May 08 04:34:15 This isn't directly a dev question, but does anyone know any good algo trading websites? May 08 04:34:56 you mean code snippets? May 08 04:35:16 No, I mean like websites where people get together, share algo's etc etc May 08 04:36:12 how does the user access preferences that are set in SharedPreferences? May 08 04:36:32 is it necessary to make a new activity and create buttons to switch to it, or is there a default way? May 08 04:37:23 hwrd|work: code snippets are algorithms ;) May 08 04:37:43 good trading algos are secret May 08 04:38:02 mahamoti: ya thats why i asked May 08 04:38:23 i was unsure if he meant trading algos or people trading algos May 08 04:38:49 i know a number of trading algos but, alas, they are secret haha May 08 04:41:33 Does anyone know how baconreader implements nested comments? I have a feeling they just flatten the entire thread into one ListView and indent the left margin appropriately when rendering. May 08 04:42:01 But it also has the ExpandableListView property I think, you can collapse the entire nested comment starting from nested level 1. May 08 04:43:00 setSoundEffectsEnabled May 08 04:43:06 found ir May 08 04:44:22 * pfn wishes junit integrated with scalatest better... May 08 04:46:20 I wish I could just drop junit :( May 08 04:51:18 why Google has been so slow and inconsistent in growing the Android operating system itself ? May 08 04:52:03 ask in #android May 08 04:52:20 I'm not sure this is the best way to contact official reps for an interview May 08 05:03:55 vadi2: any luck? May 08 05:04:06 pragma-: any luck? May 08 05:04:11 SimonVT: you here? May 08 05:04:30 JakeWharton: didn't get around to it yet - working out another issue with my own code atm... May 08 05:04:37 ok no worries May 08 05:04:47 just send me a PM or something if you find issues whenever you get around to testing May 08 05:04:58 otherwise I'll assume you either didn't have time, or everything went smoothly May 08 05:05:01 Okay May 08 05:05:03 That's fair. May 08 05:06:34 JakeWharton is this specifically when adding menu options from fragments? May 08 05:06:38 yes May 08 05:06:42 hrm May 08 05:06:51 I have fragments, but i have my menu items in the activity May 08 05:06:57 activities* May 08 05:06:58 won't affect you then May 08 05:10:28 I've been adding mine from the activity as well actually. Haven't ran into ABS problems May 08 05:15:39 JakeWharton you said you added a two argument constructor for your ICSSpinner so I could use it from XML, yea? May 08 05:16:16 yes May 08 05:16:56 so... in theory I just need to change my xml to use com.actionbarsherlock.internal.widget.IcsAbsSpinner ? May 08 05:17:07 -Abs May 08 05:17:37 ahh, didn't see that one down the list May 08 05:18:05 and since it doesn't inherit from Spinner, I will have to fix my java imports as well May 08 05:18:13 but all the other functionality should be the same May 08 05:19:03 hopefully it will make the pre 3.0 less fugly May 08 05:19:39 correct May 08 05:19:42 on all accounts May 08 05:22:17 hrm May 08 05:22:25 this server is taking forever to setup AD DS May 08 05:22:49 what's AD DS? May 08 05:22:58 active directory domain services May 08 05:23:07 Windows May 08 05:23:10 yup May 08 05:23:12 * JakeWharton 's eyes glaze over May 08 05:25:40 t0mless: initial setup of PDC? May 08 05:25:47 yup May 08 05:25:55 bleeeh May 08 05:26:02 the one thing I truly hated about AD May 08 05:26:05 I let the dcpromo handle installing the DNS server too May 08 05:26:05 JakeWharton, did you ever check out my GitHub project Basedroid? May 08 05:26:10 probably why it's taking longer May 08 05:26:15 I glanced at it, yes May 08 05:26:32 You think it's lacking some stuff but has potential? May 08 05:26:35 t0mless: back when I tried with 2003, it took X time per each user in CAL May 08 05:26:39 I don't know of any boilerplates for Android May 08 05:26:44 or something like that May 08 05:26:45 And there is just so much boilerplate to write I feel like May 08 05:26:51 or so it seemed to May 08 05:27:07 No it looked good May 08 05:27:11 a good starting point for sure May 08 05:27:23 anything to get people using Maven :D May 08 05:27:43 one of these days I might sit down and figure maven out May 08 05:28:02 I got the ViewPager in there May 08 05:28:32 p_l the last server I did, for a totally seperate forest, seemed to take less time than this May 08 05:28:33 I am not sure if I did it right May 08 05:28:43 but I might be remembering wrong May 08 05:28:44 I just instantiate ListViews overriding that instatianteObject... method May 08 05:29:53 o_O May 08 05:29:58 you didn't use a pager adapter? May 08 05:30:08 or better yet a fragment pager adapter? May 08 05:31:22 Hello May 08 05:33:03 anybody there? May 08 05:35:02 only us turkeys May 08 05:35:33 means? May 08 05:35:47 I extended PagerAdapter May 08 05:36:10 JakeWharton, and overrode instantiateItem, creating new ListView(context) in the method May 08 05:36:31 oh, alright yeah May 08 05:36:38 i thought you were overriding crap on ViewPager :P May 08 05:37:07 can anybody know how can we open activity on tab click event? May 08 05:37:29 register your TabSpec with the TabHost? May 08 05:37:40 or do you mean action bar tabs? May 08 05:37:53 I have done that. May 08 05:38:06 I guess robolectric is a tiny bit useful May 08 05:38:14 no not action bar tabs. May 08 05:38:41 jagruti_ then I'm confused as to what's not working May 08 05:39:48 t0mless:i have 5 tabs in tabactivity and its all work fine on tabchange listener.but i want to how many time i click the tab which is already selected then the activity again and again will open May 08 05:40:15 JakeWharton so you're saying I shouldn't do git merge upstream/dev but rather git cherry-pick upstream/dev? May 08 05:40:31 er, no? May 08 05:40:35 why? May 08 05:40:48 pfn: marginally May 08 05:41:04 I seem to remember you saying you've being using git merge wrong and then saying how it should be git cherry-pick May 08 05:41:17 that definitely was not me May 08 05:41:26 unless it was friday night May 08 05:41:33 except i didn't have my laptop friday night, so it couldn't have been May 08 05:41:42 oh now that's a challenge May 08 05:41:47 haha May 08 05:41:48 though it might have been the cow May 08 05:41:49 bring it May 08 05:41:55 probably, he's canadian May 08 05:41:58 can't trust the things he says May 08 05:42:15 shit May 08 05:42:17 it was the cow May 08 05:43:17 t0mless: whenever i click on tab thwn new activity will open.but once i clicked on tab and again i click on that same tab then that new activity will not open so..what can i do? May 08 05:43:47 if the tab is already selected... it's not going to do anything if you click it again May 08 05:43:53 that's the way it's designed May 08 05:44:30 "Dealing With the Eventual Collapse of Social Networks" , bwahahah May 08 05:44:37 but i need to open that activity again then what is the alternative solution May 08 05:44:41 * g00s twiddles his thumbs in anticipation May 08 05:45:05 make a better UI? May 08 05:47:54 t0mless: like i have one tab with name More and when i click on that tab then one dialogbox with listview wil open.when i select one item from that listview then according to that item the new activity will open and dialog will dismiss.but now i want to select other item from that listview so i need to open that dialog again and for that i have to click the tab..so what can i do? May 08 05:48:14 i'm a bit curious about that ShareActionProvider bug JakeWharton... from what I remember of the code is that if it's in a submenu it just launches the activity chooser already May 08 05:48:41 it should still open a submenu then I think May 08 05:48:43 i haven't tested May 08 05:48:52 jagruti_ make a better UI May 08 05:48:57 we use "always" with it May 08 05:49:29 t0mless can you suggest me..? May 08 05:49:52 I don't know what your app is trying to accomplish, so not really May 08 05:50:19 but the fact that you're putting a listview in a dialog to select a single item from inside a tabactivity already has me cringing May 08 05:51:07 you should look into using fragments and a better navigation option May 08 05:51:17 probably the action bar May 08 05:51:44 http://developer.android.com/guide/topics/fundamentals/fragments.html May 08 05:52:24 t0mless: i am new in android developer,Thank you for kindly help May 08 05:54:35 two action bars, just to be safe May 08 05:55:04 but i have no idea about the action bar May 08 05:55:19 http://developer.android.com/guide/topics/ui/actionbar.html May 08 05:55:19 bam May 08 05:55:22 ignore my comment May 08 05:55:35 action bars all the way down May 08 05:56:04 every button should have it's own action bar May 08 05:57:10 t0mless: can we put the actiona bar at bottom May 08 05:57:44 you can split it, so you can have one on the bottom May 08 05:58:10 but if you have your action bar be at the top, then you can match the general UX of android devices May 08 05:59:46 but my need is 5 things must be seen in every activity at bottum like "contacts,recent,messages,keypad,More" May 08 05:59:54 I need to come up with samples to back port in my presentation next week May 08 06:00:03 for action bar, new animation API, and fragment breadcrumbs May 08 06:00:19 I guess I should just take the API demos May 08 06:00:27 heck yea May 08 06:00:32 why do extra work May 08 06:00:48 because I want to "wow" these peeps May 08 06:00:50 jagruti_ why can't those be at the top? May 08 06:00:51 and get them to use my shit May 08 06:01:07 ideally i'd find open source, ICS-only apps to quickly port May 08 06:01:09 that'd be sweet May 08 06:01:19 psh, ABS is awesome and they will fuckin' know it May 08 06:01:34 same with NOA and ViewPagerIndicator, etc May 08 06:01:48 this for AnDevCon? May 08 06:02:09 t0mless: because when i click on contacts then it has also one activity with 3 tabs like "sip user,all user,favorite" this all are at top May 08 06:02:23 holy shit you have tabception May 08 06:02:39 t0mless: yes, AnDevCon May 08 06:02:48 you forgot a lib... May 08 06:02:49 jagruti_ action bar with list navigation, then you can still have your tabs May 08 06:02:54 the one no one has ever used May 08 06:03:01 JakeWharton that falls under etc May 08 06:03:02 and no one knows exists May 08 06:03:14 true May 08 06:03:18 i'll allow it May 08 06:03:29 you going to make a revilation at AnDevCon or something? May 08 06:04:53 t0mless: but is it possible to show all 5 option and 3 tabs also at top? May 08 06:04:56 holy shit the AD DS config is done May 08 06:04:59 about fucking time May 08 06:05:14 jagruti_ possible, yes May 08 06:05:25 would get crowded on smaller devices to do all tabs May 08 06:05:33 which is why list nav would probably be better May 08 06:06:09 t0mless: but if required to all 5 option at bottum then can w put the action bar at bottum? May 08 06:07:12 at that point, you're probably better off using linearlayout of buttons at the bottom to control fragments May 08 06:08:41 why do multi-line EditTexts put the cursor in the middle of the widget? May 08 06:08:54 can I make it go to the top of the widget instead, which would appear to be the firstline to the user? May 08 06:09:01 because you set the gravity of it to center? May 08 06:09:32 ;O May 08 06:09:38 can it inherit that? May 08 06:09:46 no May 08 06:09:53 wait May 08 06:09:58 what do you mean May 08 06:10:48 will it inherit that property from the parent? I have not set any gravity for the widget May 08 06:11:08 i'm setting the gravity to top right now...but i wonder why it was defaulting to center. is that the default for an EditText? May 08 06:11:46 pretty sure top left is default May 08 06:12:36 when i set the gravity to top for that, it disappeared entirely May 08 06:14:00 * t0mless sighs May 08 06:14:13 I should probably implement a dirty-tracking mechanism for my db May 08 06:14:16 * hesperaux sighs too lol May 08 06:14:29 t0mless: implementing a databse from scratch? May 08 06:14:34 so that I don't have to backup everything May 08 06:14:38 no -_- May 08 06:15:04 put adding a column to the table is simple enough May 08 06:15:20 dbhelper makes it easy with the onUpgrade() May 08 06:15:27 s/put/but May 08 06:16:35 I need to write a little test app though, unless ctate is around May 08 06:16:46 who might know the answer May 08 06:21:54 the android source knows the answer May 08 06:22:34 good point May 08 06:23:49 use the source, luke May 08 06:24:08 the ABS demos are so much nicer than the platform action bar demos May 08 06:24:22 :) May 08 06:25:33 has anyone used roboelectric to mock a DB before? May 08 06:25:51 why not just mock the db? May 08 06:26:26 also, why not abstract the DB behind something you can mock May 08 06:26:29 or at least provide a dummy impl of May 08 06:26:36 was hoping robo could do it for me May 08 06:26:45 * g00s just tests against the content provider :| May 08 06:27:04 g00s, is a clever man May 08 06:27:17 clever goose :) May 08 06:27:45 yep, easy mock time May 08 06:53:14 im looking for a very simple tutorial of how to insert something in a sqlite database May 08 06:55:48 vorwaerts: http://lmgtfy.com/?q=android+sqlite+tutorial May 08 06:55:49 ;D May 08 06:56:51 all tutorials create a big helper-class witch various methods to read, write, insert, delte and queues. I am looking for the most essential minimum steps May 08 06:58:54 try hibernate... May 08 06:59:11 ? May 08 06:59:16 vorwaerts: use openOrCreateDatabase with either a string or file argument May 08 06:59:27 http://lmgtfy.com/?q=hibernate+db May 08 06:59:33 then execute insert statements.. May 08 06:59:48 "..." stand for sarcasm May 08 07:00:07 ah! :) May 08 07:00:14 there are some ORM's though for android :D May 08 07:00:23 HA... I totally jus t drew bevis and butthead in draw something May 08 07:06:15 why is this in android so tricky - in php i have mysql_query() for all actions May 08 07:06:52 mysql_query("CREATE TABLE..."); mysql_query("INSERT INTO...."); mysql_query("DELETE..."); and so on May 08 07:07:11 that's simple May 08 07:07:49 not for someone how is fairly new May 08 07:08:04 SQLiteDatabase db = openOrCreateDatabase(db_filename); db.execSQL("CREATE TABLE..."); May 08 07:08:15 db.insert(); May 08 07:08:23 db.query() May 08 07:08:53 insert ist predefined? May 08 07:09:13 it is May 08 07:09:15 It would be a good idea to look at the docs vorwaerts May 08 07:09:19 http://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.html May 08 07:09:24 That ^ May 08 07:09:25 all sorts of helpful methods May 08 07:09:44 you can always just use db.execSQL() to just execute a raw sql command May 08 07:10:05 but you get nothing back May 08 07:10:18 so if you want to use the data from a query, you should probably use query() May 08 07:10:24 means i cant SELECT * FROM...? May 08 07:10:34 or db.rawQuery() May 08 07:10:37 ah ok May 08 07:10:50 you can, but you won't be able to use the data unless you use the built in query methods May 08 07:11:25 php's so much better May 08 07:11:29 you fools May 08 07:11:34 Even if things were simple, people would ask for even simpler ways. May 08 07:11:39 LIES May 08 07:12:07 I wonder if sl4a supports php May 08 07:12:10 and supports db calls May 08 07:13:26 appears that it does not support php May 08 07:15:25 t0mless openOrCreateDatabase expects a path or a file May 08 07:15:36 sooooo... give it that? May 08 07:15:49 path to what file? May 08 07:15:55 your sqlitedb May 08 07:16:04 and if there is none? May 08 07:16:10 then it creates it... May 08 07:16:15 thus the method name May 08 07:16:22 OPEN OR CREATE May 08 07:16:33 so i can use openOrCreateDatabase("database_name"); ? May 08 07:16:38 Yes May 08 07:16:43 nice :) May 08 07:17:08 vorwaerts: i don't want to be mean, but srsly... RTFM May 08 07:17:19 this will help you May 08 07:17:24 i did May 08 07:17:56 Doing a little trial and error also gets you a long way May 08 07:18:31 Use some common sense... May 08 07:20:24 The method openOrCreateDatabase(String, int, SQLiteDatabase.CursorFactory) in the type ContextWrapper is not applicable for the arguments (String) May 08 07:20:36 with openOrCreateDatabase("test_database"); May 08 07:20:45 the method is a static method of SQLiteDatabase class May 08 07:21:23 but you're also missing arguments May 08 07:21:31 http://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.html#openDatabase(java.lang.String, android.database.sqlite.SQLiteDatabase.CursorFactory, int) May 08 07:21:39 Boom, manual May 08 07:21:41 ready, read May 08 07:22:12 yes i have SQLiteDatabase db = openOrCreateDatabase("test_database"); May 08 07:22:20 http://developer.android.com/guide/topics/data/data-storage.html#db other way to do it May 08 07:22:35 again, you're not calling the static method of the SQLiteDatabase class May 08 07:22:38 and you're missing arguments May 08 07:22:45 which is all right there in the docs May 08 07:23:03 what is forever? usually for me it takes approx 10 seconds May 08 07:23:47 lol, screen was scrolled up May 08 07:24:18 though it seems there is an openorcreatedatabase in Activity May 08 07:24:26 http://developer.android.com/reference/android/content/ContextWrapper.html#openOrCreateDatabase(java.lang.String, int, android.database.sqlite.SQLiteDatabase.CursorFactory) May 08 07:24:41 but you're still missing arguments May 08 07:25:18 maybe i dont know how to handle the docs but they dont realy help me May 08 07:25:21 What good place did you find for the android-sdk-linux dir on your Linux system? May 08 07:26:18 SQLiteDatabase db = openOrCreateDatabase("test_database.db", SQLiteDatabase.CREATE_IF_NECESSARY, null); May 08 07:26:30 home dir May 08 07:26:39 ~/vendor May 08 07:26:40 ~/lib May 08 07:26:57 /usr/local/share May 08 07:44:56 db.query("SELECT * FROM test_database", null, null, null, null, null, null); i habe a Cursor? May 08 07:45:47 first, that's not the way query() works May 08 07:46:01 if you want to do a raw sql string query, use db.rawQuery() May 08 07:46:44 db.rawQuery("SELECT * FROM test_database", null); May 08 07:46:45 Query() doesn't need the SELECT. http://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.html#query(java.lang.String, java.lang.String[], java.lang.String, java.lang.String[], java.lang.String, java.lang.String, java.lang.String, java.lang.String) May 08 07:46:56 if you read the docs, you can see what each argument is May 08 07:47:12 but rawQuery returns a cursor too May 08 07:47:17 yea May 08 07:47:28 i dont know what a cursor is so far May 08 07:47:31 Cursor is what holds your data May 08 07:47:37 like an array? May 08 07:47:43 kinda, yea May 08 07:48:26 so better a have Cursor dataholder = db.rawQuery("SELECT * FROM test_database", null); May 08 07:48:34 probably a good idea May 08 07:51:24 and how do i get the data from the cursor? May 08 07:52:17 while (cursor.moveToNext() ) { // read your data } May 08 07:52:56 Cursor has a bunch of methods for reading the data May 08 07:53:05 vorwaerts: even I don't dare to ask that question (I've never tried sqlite :p) May 08 07:56:40 i dont know what to do May 08 07:56:54 vorwaerts: if you need someone to write your code, make an acceptable offer :D May 08 07:57:02 :) May 08 07:57:07 hey, i'm tring to start an activity out of an ontouch listener, but fail when i should do the Intent().setClass(blubb, NewsActivity.class); what is blubb, or should blubb be? May 08 07:57:13 i try txt.setText(dataholder.getString("count")); but getString requieres an integer May 08 07:58:57 ah i see - the table has id and count so getString(1) gives me counts value May 08 07:59:19 that will give you the colum at index 1, which might be count if you set your table up that way May 08 07:59:41 which is why I tend to use the select arguments to only select the data I need and so I know the indexing of the columns May 08 07:59:52 flipchart blubb should be a Context May 08 08:00:21 flipchart if your ontouch listener is an anonymous innerclass of an your activity, then just do ParentClass.this May 08 08:00:36 obviously, changing ParentClass to whatever your Activity class name is May 08 08:00:47 hello everyone. I am developing a service (working in the foreground), it is now working as a remote service, because the avtivity connected to it is just a simple UI. I am looking for the best way to communicate with that service from the UI. I have a few simple checkboxes, a seekbar and I want the changes in the UI to be used in the service. I know that there are a couple of possible solutions, like a messanger or IPC. But I can't find what is the best way May 08 08:01:32 simh is your service in a different process than your activity? May 08 08:02:20 you could also just bind to the service May 08 08:03:26 t0mless: I registered as a remote service, yes. But maybe that was unnecessary too. I simply want it to run all the time, and not get killed by android (that is why it is running in the foreground) and when the user exits the activity the service should keep running. The service should exit only after the user presses the quit button in the actvity May 08 08:03:57 you don't have to have it be a sepearte process for that May 08 08:04:13 although you are pretty much never guarenteed that it won't be killed May 08 08:04:22 so you be program logic to handle that May 08 08:04:32 you should* May 08 08:05:21 you could start your service with broadcast reciever that listens for the BOOT_COMPLETED or whatever it is intent May 08 08:05:27 t0mless: yea, I know that it might get killed when resources are extremly low. That is acceptable. But I dont wat it to get killed to often May 08 08:05:36 so that it starts on boot May 08 08:05:37 or May 08 08:05:44 have a start button in your app to start the service May 08 08:05:45 if my database still has id and count with still one entry that will be updated everytime, do i need a cursor to get the data from count then? May 08 08:05:54 then your app can bind to it and do whatever May 08 08:06:13 vorwaerts huh? May 08 08:06:54 You're storing just a counter in an SQLite database? May 08 08:07:02 yes May 08 08:07:02 t0mless create table test (id integer primary key autoincrement, count integer); May 08 08:07:07 That seems excessive May 08 08:07:16 t0mless: so binding is the best solution after all? If I don't use it as a remote service than I dont have to use IPC, right? May 08 08:07:24 i will alwas have id=>1, count=>count+1 May 08 08:07:25 simh correct May 08 08:07:36 vorwaerts why are you using a SQLite DB for that? May 08 08:07:42 what else? May 08 08:07:53 seems like a lot of overhead for just a counter May 08 08:08:06 hi May 08 08:08:11 SharedPreferences, a text file, static variable May 08 08:08:28 vorwaerts: http://developer.android.com/guide/topics/data/data-storage.html May 08 08:08:40 i need the counter always, even the app is closed May 08 08:08:41 t0mless: thanks May 08 08:09:04 i loose Shared Preferences if i close the app May 08 08:09:06 ok... SharedPreferences would probably be easier May 08 08:09:08 vorwaerts: I'd go with a sharedpreference May 08 08:09:08 no you don't May 08 08:09:36 that's the whole point of shared preferences May 08 08:09:58 If nothing else you learned a bit of SQLite along the way, vorwaerts May 08 08:10:10 eeeeeh May 08 08:10:36 yes, a bit - but i can use it now. A bit :D May 08 08:10:59 but does it matter if I use shared preferences or a SQLiteDatabase? May 08 08:11:06 I'd still go with a SharedPreference and leave SQLite if all you're going to store is a counter value May 08 08:11:19 shared prefs would be loads easier and faster May 08 08:11:21 what about shared pref if I reboot the phone? May 08 08:11:27 it's saved May 08 08:11:29 vorwaerts: no problem May 08 08:11:33 vorwaerts: sahred prefs are peristed to internal storage usually May 08 08:11:42 s/sahred/shared May 08 08:11:51 so shared prefs a kinda database May 08 08:11:57 that reminds me, what is the best way to keep login/password safely ? May 08 08:12:00 i can go with strings too? May 08 08:12:07 you can store strings there May 08 08:12:10 vorwaerts: xml file I think May 08 08:12:13 but it's not meant to be a database May 08 08:12:19 they are saved as an xml file May 08 08:12:30 meant for single item things May 08 08:12:34 like your counter May 08 08:12:38 or a setting in your app May 08 08:12:50 ah ok May 08 08:12:52 vorwaerts: There a couple of different value types you can store in SharedPreferences, but as t0mless says, it's not meant to be used as a full fledged database May 08 08:13:00 and the thing is that it is faster? May 08 08:13:03 there is not relational part to it May 08 08:13:32 also easier to program May 08 08:13:45 Hi, if I want to use setOnTouchListener on a textView, than when I'm in the function OnTouch, how can I take the text from the textView I touch on? May 08 08:13:54 as i learned - sqlite's not that hard to program lol May 08 08:14:18 Just don't forget to commit() when you're done editing data in SharedPreferences. It gets me almost every time... May 08 08:14:22 shared prefs take less code to do the same thing you're trying to do May 08 08:15:30 ok cant see how to use it yet May 08 08:15:46 vorwaerts: I think you should look at it from the viewpoint of using the right tool for the job. Not only "well, it works with [X] so why use [Y]?" May 08 08:16:11 drlaban i realy try to do it right May 08 08:16:26 if you just have a few settings use shared prefs May 08 08:16:32 http://developer.android.com/guide/topics/data/data-storage.html#pref May 08 08:16:38 i have an app that can have 100 000 rows of data May 08 08:16:47 i wouldn't use a shared pref for that =) May 08 08:16:49 i can define a pref_name? May 08 08:17:08 that's the name of the preference file, if you want to split your preferences up May 08 08:17:40 embed, http://developer.android.com/reference/android/widget/TextView.html#getText%28%29 May 08 08:17:43 intead of doing that you can do SharedPReferences prefs = PreferenceManager.getDefaultSharedPreferences(this); May 08 08:18:06 that just uses the default file May 08 08:18:21 which I think is YourAppName_preferences.xml May 08 08:18:41 though you don't need the .xml extension when you're defining your own file May 08 08:19:23 ok May 08 08:19:33 und prefs is like a cursor then?:) May 08 08:19:43 t0mless: Hmm, I guess the context is what decides the name of the xml-file in the end? May 08 08:19:46 not at all May 08 08:20:03 drlaban huh? May 08 08:20:15 vorwaerts: Again, you haven't read the doc tank-man has send you. May 08 08:20:26 t0mless: When using PreferenceManager.getDefaultSharedPreferences() May 08 08:20:29 sorry t0mless May 08 08:20:42 counter.edit().putInt("count", 5); May 08 08:20:48 oh yea, the context will make the file name May 08 08:21:04 which is probably good enough for most people May 08 08:21:05 I am constructing a json object to send to a server like so http://pastebin.com/r6n9MxdK but I just got a curious comment that I don't quite understand. He said wait, can't you serialize arrays? I mean why are you constructing the value for the document/tag parameter by concatenating the string? May 08 08:21:15 t0mless: Good, it's not entirely spelt out in the docs (shich I can understand) so I was trying to add one and one. May 08 08:21:27 how else would I send the request by serialising arrays? May 08 08:21:32 vorwaerts if you do it that way you have to make sure to do .commit() on the end May 08 08:21:32 I really don't understand May 08 08:22:03 t0mless is there a better way to put data to the pref? May 08 08:22:20 if you're only putting one thing, that works great May 08 08:22:33 tank-man, but the problem is that I'm adding rows of textView dynamicly to the screen and than I want to touch one of the and change it, the Ontouch function won't now which one I've touch May 08 08:22:52 counter.edit().putInt("count", 5).commit(); May 08 08:22:56 jiduvah: well do you want the JSON to look like '{ foo: [1] }' or '{ foo: "[1]" }' May 08 08:23:01 I can refer the textView to the xml file cause I'm creating it on the code... May 08 08:23:03 because your code is trying to do the latter May 08 08:23:20 can = can't May 08 08:23:29 vorwaerts that works, but if you're always putting 5, there isn't really a reason to store it May 08 08:23:55 since you already know it's going to be 5 when you go to get it May 08 08:24:01 t0mless 5 is a test - later i first get the value of count and save count+1 May 08 08:24:13 that would work then May 08 08:24:32 embed, your ontouch() function takes one parameter? the view/button? May 08 08:24:35 but to get this to work i need to know how to read the counter. counter.getInt("count", null); May 08 08:24:41 alankila: foo: ["1"] May 08 08:24:48 jiduvah: well then you don't do it that way May 08 08:24:55 vorwaerts: You may find this interesting: http://www.androidsnippets.com/prompt-engaged-users-to-rate-your-app-in-the-android-market-appirater May 08 08:25:05 jiduvah: string is a string. Even if the string started with a [. May 08 08:25:07 Ontouch takes view May 08 08:25:12 got it going... :D May 08 08:25:14 I shouldN#t do it the way I do it? May 08 08:25:19 That counts the number of launchs of an App, which is a counter, which is what you are trying to do May 08 08:25:30 had to define the conext outside of the ontouch listener... :P May 08 08:25:44 vortexion that's how you read it, the second argument is a default value if it doesn't exist May 08 08:25:48 alankila: any pointers of how I should do it? May 08 08:25:51 so you may want to use 0 instead of null May 08 08:25:56 embed, that parameter is the view that was touched May 08 08:26:03 so you don't get a null point exception May 08 08:26:04 jiduvah: I imagine you construct a JSONArray and add your documentid inside and then put the JSONArray as the value of the key May 08 08:26:27 tank-man, thanks... May 08 08:26:40 alankila, ah ok May 08 08:29:20 alankila: its looking much better thanks. Is that class as serializing an array? May 08 08:29:23 t0mless my app crashes for that http://screensnapr.com/v/SZThtK.png but in logcat i can see nothing May 08 08:29:43 jiduvah: indeed it is. May 08 08:30:01 it would be fairer to say that it is a *representation* of an array, imo. May 08 08:30:42 on the other hand, I don't know why the json libraries don't use java's own List and Map but insist on these objects instead. May 08 08:30:54 alankila: thanks for that May 08 08:30:56 vorwaerts did you call setContentView before using findViewById() ? May 08 08:31:13 yes May 08 08:32:11 i got this now: http://screensnapr.com/v/FtMKG9.png May 08 08:32:25 get the error frmo logcat, you might have to go into ddms view to select the device May 08 08:32:50 tank-man, when I try to do view.gettext, It won't let me... May 08 08:33:10 it doesn't have the option to do get text May 08 08:33:17 you have to cast it to a textview May 08 08:34:24 and maybe make sure it is a textview too with instanceof May 08 08:35:01 how do you check it with instanceif? May 08 08:35:43 if you registered that listener with just that textview, you can probably know May 08 08:35:51 t0mless ddms view http://screensnapr.com/v/qjEDwQ.png May 08 08:35:52 but never a bad thing to make sure May 08 08:36:25 vorwaerts your logcat is paused May 08 08:36:37 embed, something like ... if (view instanceof TextView) { tv = (TextView) view; } May 08 08:36:53 then tv.getText(); May 08 08:36:58 vorwaerts unpause it, make your app crash again, and then pastebin the error May 08 08:37:35 You know, it took me a good couple of weeks until I noticed Logcat had a pause button. May 08 08:38:58 I remember getting very confused because of that. :P May 08 08:39:09 t0mless if I can unpause it by clicking the pause-button on the right i did it, but the logcat is emty after relaunch May 08 08:39:33 make it crash May 08 08:39:59 or try using logcat from the console May 08 08:40:03 instead of silly eclipse May 08 08:42:29 t0mless i got logcat now - http://screensnapr.com/v/vkGwT1.png May 08 08:43:12 line 27 of Test.java is causing your crash May 08 08:43:24 you're referencing some resource that doesn't exist May 08 08:43:52 txt.setText(counter); May 08 08:44:35 have you recompiled and run the app since changing it? May 08 08:44:51 oh May 08 08:44:52 duh May 08 08:44:58 what is counter? May 08 08:45:02 an int or string? May 08 08:45:03 setText takes an integer resource May 08 08:45:13 so your resource doesn't exist May 08 08:45:37 if you want to set the string you need to pass like Integer.toString(counter); May 08 08:46:38 txt.setText(String.valueOf(counter)) May 08 08:46:52 yea thats it txt.setText(Integer.toString(counter)); May 08 08:46:53 oh, people use different conventions. I always use type.valueOf May 08 08:48:05 that works too May 08 08:48:17 I read something earlier today that claimed type.valueOf is better May 08 08:48:20 or String.format("%d",counter); May 08 08:48:22 hello can anyone please tell me how I can learn about the android firmware and learn how to use the ndk May 08 08:48:29 (due to object caching) May 08 08:48:42 haven't confirmed if thats only the case for "real" Java or also for Android, though May 08 09:05:15 hello May 08 09:06:02 on backpress how can we open dialog in activity May 08 09:06:22 <`z> 1/0 May 08 09:07:14 jagruti_: never ever do that. May 08 09:09:41 Ge0rg: actually my need is like..when i click on tab then doalogbox is open with listview.when i select one item then i will in in new activity.now i press the back button then the previous activity will open but in that dialog will not open.. May 08 09:10:57 if I have this JsonArray: [{"id":"1","title":"Test"}] und i want the string "test" of "title" i first need JSONArray Jarray = new JSONArray(data); May 08 09:11:39 then I have for (int i=0; i When updating my app on HTC Legend the app icon becomes completely unresponsive until reboot. This error is reproducable, and still I can find no information on it on the internetz. Anyone has more info on this? :/ May 08 09:12:23 Well that should work, are you handling the json exception in your catch? May 08 09:13:49 vorwaerts:please write the code in try and catch..it should work May 08 09:16:22 jagruti_ i did May 08 09:16:51 vorwaerts: using try,catch? May 08 09:16:58 yes May 08 09:17:11 i got this May 08 09:17:12 http://nopaste.info/7ca2b2f6fe.html May 08 09:17:14 ok May 08 09:17:18 Then either it has worked, or you will get an error May 08 09:17:25 and this is my Array: May 08 09:17:26 http://www.ximed.de/android/newsflash.php May 08 09:18:33 just a niggling point, you might want to avoid naming variables like "Jarray" May 08 09:18:46 Just a standards thing. May 08 09:18:57 ok but Jarray doesnt exist May 08 09:19:17 what? May 08 09:19:28 It is empty? May 08 09:19:30 as a Standard May 08 09:19:55 is this ritght: JSONObject Jasonobject = Jarray.getJSONObject(i); May 08 09:19:59 As a rule, variables are lowercase. May 08 09:20:05 ah ok May 08 09:20:06 Yes, that is correct. May 08 09:20:12 Well, the first letter is lowercase May 08 09:20:23 ok i changed May 08 09:20:41 but i think its not the point to not get it running May 08 09:20:43 Could you put a break point on line 10 and 11 of that snippet May 08 09:21:12 http://nopaste.info/6f644902f7.html May 08 09:21:14 I want you to run it in debug, and check the value of Jarray after it has been set May 08 09:21:25 Hi all.. Is it possible to handle the homebutton for android 4.0 ?... thank you May 08 09:22:36 chithra1: the only thing you can do is let your app respond to the Home-action via your manifest May 08 09:22:45 Knossos got it? May 08 09:23:02 chithra1: so the user can choose between your app and the default launcher app May 08 09:23:09 Does it contain the correct json when it gets to that point? May 08 09:23:21 how can i execute the code on backpress which is written in oncreate(), May 08 09:23:22 to what point? May 08 09:23:48 chithra1: ACTION_MAIN with category CATEGORY_HOME -- Launch the home screen. May 08 09:23:52 http://developer.android.com/reference/android/content/Intent.html May 08 09:24:02 The only Error I get is Error parsing data java.lang.NullPonterException May 08 09:24:09 i did, its working fine... the problem is when i press home button its not going to home scree. May 08 09:24:34 i tried overrinding Onkeydown() but no use May 08 09:24:46 it is not working for home button May 08 09:24:58 vorwaerts: This is probably easier: http://nopaste.info/d4472e0245.html May 08 09:25:23 I added two log entries, to check the value of data and the jarray May 08 09:25:41 data: null May 08 09:25:43 I have a feeling that the data isn't being downloaded correctly May 08 09:25:51 There you go, that is your problem. May 08 09:25:52 of course not. The only thing you can do, as i said, add the intent-filter i mentioned to an activity in your app. May 08 09:26:04 chithra1: No, you can't handle the home button May 08 09:26:09 chithra1: http://stackoverflow.com/questions/2000102/android-override-back-button-to-act-like-home-button May 08 09:26:18 jellenagels: Thanks :) May 08 09:26:28 If data is null, then the loop will not go through once because there is nothing to loop through. The JSONArray will be an empty array. May 08 09:26:30 If you then click the homebutton, the user should be provided with two options. Your app or the default launcher. May 08 09:26:51 normally the user can then choose a default-action as well, to not be promted every time. May 08 09:26:55 Knossos ah i think its the missing internet-permission May 08 09:27:02 Yes, that would do it May 08 09:27:09 SimonVT: It was working fine for Android 3.2 but not working for android 4.0 May 08 09:27:31 yes it it May 08 09:27:35 is May 08 09:27:45 There's probably a reason it was fixed May 08 09:27:56 It should not be possible to hijack the home button May 08 09:28:14 Knossos but i still got no output May 08 09:28:20 it should be possible, as in: creating another Launcher-app? May 08 09:28:42 Knossos JSONArray has now what it gets from the site May 08 09:28:44 jellenagels: yes its working fine and m launching another activity, from there if i press the home button its not going to the home screen May 08 09:28:44 And the log when it gets to jarray is correct? May 08 09:28:48 ok May 08 09:28:59 If you're a launcher, yes, just listen to the intent May 08 09:29:07 If you're not a launcher, you have no business listening to the home button May 08 09:29:29 vorwaerts: Put more logging in there. Log what Jasonobject becomes, log when it goes through the loop, etc May 08 09:30:21 Jasonobject is the same like data and jsonarray May 08 09:30:21 SimonVT: Thanks :) May 08 09:31:08 Do you mean it is exactly the same, or it has the correct value? May 08 09:31:11 Knossos got it - big thanks May 08 09:31:18 exactly the same May 08 09:31:44 No problem :) May 08 09:31:50 title has the data from the JSON - i still got an error in the textviews - dont know where but its there May 08 09:32:35 jagruti_: Thanks for the link :) May 08 09:34:34 chithra1: is it helpfull or not? May 08 09:37:47 hope nobody lives my a major roadway here :) May 08 09:37:51 http://newsroom.heart.org/pr/aha/death-risks-higher-for-heart-attack-233159.aspx May 08 09:41:13 jagruti_: yeah its helpful for my work :) May 08 09:42:12 ok May 08 09:44:50 Hi. I have a question about a problem with FragmentStatePageAdapter, about why it duplicated some menu items in the action bar when it restores its state. May 08 09:45:10 http://hackerne.ws/item?id=3942876 Arch terminals in Android. Upboat if it is of interest :-) May 08 09:49:02 lrvick: you probably also know about ubuntu for android :) May 08 09:49:34 major difference being, ubuntu has gotten interest from carriers and oems for integration into the system - not sure about arch May 08 09:50:38 oh man.. viewswitcher can only hold two views :( May 08 09:51:02 i think … i remember that retarded thing May 08 09:51:11 android has some truly dumbass widgets May 08 09:51:17 I got disconnected by accident before. I hope I didn't miss any help :/ May 08 09:53:06 lrvick: will check this when I have an android phone May 08 09:53:32 and then there's viewFlipper which doesn't have that constraint but it's impossible to start a single flip :D May 08 09:54:57 * Ge0rG wonders if connectbot easily allows multiple local logins May 08 09:56:09 * Ge0rG is already using busybox vi from time to time to take notes on the desire z. maybe a transformer with chrooted mini-linux would fit my needs after all May 08 09:57:24 Since i have three views i'll just use a ViewSwitcher where one View is another ViewSwitcher.. May 08 09:57:41 this generalizes to N Views, but i'm too lazy to hack up the general case :D May 08 10:17:59 hi all, does anyone have an idea how can I create video player that would support H264 on android below 3.0(for example 2.1+) anyone has any examples of such.. May 08 10:24:49 g00s: Mine is a chroot install that is leight and suited for development May 08 10:25:05 Hi! The android-sdk-linux/platform-tools/aapt tool has the --extra-packages flag "generate R.java for libraries". The ICS version of aapt, android-sdk-linux/platforms/android-4/tools/aapt, seems to be missing this flag. Is there an equivalent for it? I looked but did not find anything. May 08 10:25:17 g00s: the ubuntu setup is very bloated and not exactly ideal for saving battery May 08 10:25:24 Ge0rG: but great for casual users. May 08 10:25:30 g00s: * May 08 10:25:53 My arch setup is certianly not for casual users, but aimed for developers. May 08 10:33:58 lrvick: I'd like to use a similar setup with a chrooted debian... if I had a transformer and a spare weekend :> May 08 10:39:07 Hello, I need to get a simple camera function into a program. I need to be able to take a picture and store it temporarily to be shown in a second activity. The tutorials i've found by googling so far are just beyond my understanding of android. Can someone please point me in a direction in what to do, please ? May 08 10:43:59 hmm May 08 10:44:09 Say I've got an AsyncTask which does something May 08 10:44:36 and I want another AsyncTask to do provess the result of the AsyncTask further May 08 10:45:12 start the second asynctask from onPostExecute() of the first one ? May 08 10:45:32 My first idea would be extending the AsyncTask, calling it's super.onBackground in his onBackground and process it, but obviously that can't work unless it would have the same result type May 08 10:47:33 hmye i guess i could do that... but I kinda want like option to have different AsyncTasks which all do the same processing at first May 08 10:48:54 would saving the data in variables and making the Result a ? in the abstract asynctask be wrong? May 08 10:49:08 or T* May 08 10:49:39 and then an implementation changes the T to what it wants and calls super.onBackground and then use the variables to process further May 08 10:49:48 i guess that could be a workaround :) May 08 10:49:52 you can also May 08 10:50:04 make an abstract AsyncTask May 08 10:50:19 with a method "protected final T doInBackground(params);" May 08 10:50:33 ye May 08 10:50:37 and another method: "protected abstract void process(T var); May 08 10:51:29 which needs to be implemented by all the subclasses, and do your pre-processing inside the doInBackground, where in the end you call "process(T)"; May 08 10:51:47 <.< May 08 10:51:53 hmm don't you mean protected abstract T process() and return process(); then? May 08 10:52:02 eerm, yeah like that :p May 08 10:52:16 hmye that might work too May 08 10:52:19 i'll try something:p May 08 10:52:23 :p May 08 10:52:24 hope it won't get to messy xD May 08 10:52:45 depends how much flexibility you want ^^ May 08 10:53:23 hi, I having some troubles with scrollview ? May 08 10:54:07 I'm asking it to display a table (with let's say 50 rows … I get only 13-50) May 08 10:55:20 My NativeActivity is being paused when a Dialog is shown, is there any way to keep the native activity loop going in the background? May 08 11:18:53 anyone know why the text in my tabs appears under the tabs and not in it? May 08 11:19:32 You're doing it wrong May 08 11:19:41 hah May 08 11:20:40 any ideas SimonVT apart from that :) May 08 11:21:17 pastebin your code May 08 11:21:26 ^ May 08 11:21:35 gaz` - not 100% but the tabs are quite sensitive to format of the text and icons used on them May 08 11:21:36 We have no way of knowing how you're actually making those tabs May 08 11:21:44 tabwidget? action bar tabs? textviews in a linearlayout? May 08 11:21:59 for tabWidget ^^ May 08 11:22:02 Nor do we know what kind of styling you're applying May 08 11:22:12 Or even how your views look, if it's something custom May 08 11:22:19 http://pastebin.com/sFGa4MMV May 08 11:22:32 yeh theres some jiggery pokery because i have to get the tabs lower than my header May 08 11:23:06 i guess it something to do with android:paddingTop="53dp" May 08 11:23:07 or May 08 11:23:12 android:tabStripEnabled="false" May 08 11:23:46 There's a lot of things wrong in that layout May 08 11:23:56 yeh just noticed that weird framelayout in there May 08 11:24:07 what else is wrong tho May 08 11:24:09 SimonVT: let him have it! May 08 11:24:29 gaz` - i've had tons of troubles trying to make the tabs bigger than the default style set. Please give me a poke if you figure it out since I just passed the part to move on with the project to come back to it later. May 08 11:24:34 Your relativelayouts have orientation, some child views of relativelayouts have weights May 08 11:24:56 Your tabcontent framelayout is fill parent, with tabwidget on top of it May 08 11:25:12 I'd imagine your tabhost and your relativelayout are on top of eachother May 08 11:25:17 kaspuh how big do u need em May 08 11:25:23 yeh May 08 11:25:26 thats how it has to be May 08 11:25:30 to do what im doing May 08 11:25:39 Isn't the tabhost kind of depreciated ? May 08 11:25:44 yeh May 08 11:26:01 still not got the balls to move onto fragments and time is of the essence on this app May 08 11:26:03 I doubt it has to be like that May 08 11:26:06 plus i need it to work on 2.2 May 08 11:26:12 gaz`: did lint explode or just give up on that :P May 08 11:26:15 gaz`: relative layout does not use orientation or layout weight May 08 11:26:25 SimonVT is right May 08 11:26:26 lint? May 08 11:26:26 And fragments works back to 1.6 May 08 11:26:38 i didnt think it did SimonVT? May 08 11:26:43 thought it was 3.0 or something May 08 11:26:46 you are voodoo coding. May 08 11:26:47 That's why there's a support lib May 08 11:26:52 oh May 08 11:26:58 not that actionBarSherlock thing May 08 11:27:03 had to dump that May 08 11:27:04 readme - what is voodoo coding ? May 08 11:27:07 was a pain in the ass :) May 08 11:27:22 actionbarsherlock has nothing to do with the support lib May 08 11:27:28 kaspuh: it's a metaphor I am using for the voluntary insertion of arbitrary code with no effect. May 08 11:27:28 ah good May 08 11:27:38 the fact that you have a relative layout after your tabhsot doesn't seems to be good idea gaz` May 08 11:27:52 readme - and that means in english for the dummy ? :P May 08 11:27:55 yeh i guess these layouts were once somethign else and eclipse has jus not got rid of them extra things - i also guess like html they dont matter May 08 11:28:07 especially when you are not defining any position May 08 11:28:17 kaspuh: he's putting in code that does nothing. May 08 11:28:24 readme - oh. ok thanks :) May 08 11:28:44 <--- not english native language May 08 11:28:49 i figured May 08 11:28:49 Ivru - well i want a header at the top , a gap then my tabs, this seemed to work :) May 08 11:28:50 :P May 08 11:28:52 enlgish is not my native language * May 08 11:28:57 English* even May 08 11:29:06 only thing "wrong" with this at run time is text on tabs is too low May 08 11:29:39 Fix your layout May 08 11:29:41 Then come back May 08 11:29:51 Don't try to use padding to offset views that are on top of eachother May 08 11:29:56 ok May 08 11:29:57 That's just bound to break May 08 11:30:06 hmm May 08 11:30:10 well how is that supposed to be done May 08 11:30:16 thats the whole point of pdding with dp surely May 08 11:30:21 Use a linearlayout May 08 11:30:25 Put your header at top May 08 11:30:29 tabhost below May 08 11:30:32 weight May 08 11:30:34 win May 08 11:30:54 sure i tried that May 08 11:30:55 but yeh May 08 11:30:57 will look into it May 08 11:31:10 i dont get dp is thats gonna break it May 08 11:31:22 the docs say dp will sorta be the same on each device dont they May 08 11:31:38 sorry i dont get dp IF thats gonna break it i meant May 08 11:31:43 Your layout is bad and you should feel bad May 08 11:31:50 hah May 08 11:32:02 hi there, can somebody give me a hint about good multi platform development ressources? (developing for android, win, lin, mac and later ios with the same codebase) May 08 11:32:05 basically its fine May 08 11:33:07 ok :) May 08 11:33:22 just got some throw backs from last app :) May 08 11:33:24 basically I'm seeking for a good choice for multi platform input/sound/rendering handling May 08 11:33:31 like SDL or something similar May 08 11:38:20 Kamaze: ask in #sdl :P May 08 11:38:29 sorted May 08 11:38:31 * onr is kidding May 08 11:38:31 #sdl send me here May 08 11:38:34 yet still text is lower than my tabs May 08 11:38:47 * Kamaze slapos onr May 08 11:38:47 Kamaze: I know :) May 08 11:47:25 damn it, android.text.format.DateFormat.getTimeFormat() doesn't return a format with seconds May 08 11:47:55 make it May 08 11:48:07 maybe try System.currentMillis May 08 11:48:10 how the fuck am i supposed to het a 'hh:mm:ss a' type format dependent on locale and preference May 08 11:48:26 gaz`: Snuffel wat May 08 11:48:35 mind the language May 08 11:48:58 System can return millis and u can convert right May 08 11:49:00 Zider: sorry, s/get/get May 08 11:49:06 DateFormat.format("kk:mm:ss", Calendar.getInstance(Locale.GERMANY).getTime()); May 08 11:49:08 s/het/get :) May 08 11:49:18 Knossos: noooooo May 08 11:49:22 that's not what I meant :P May 08 11:49:31 s/get/get\// May 08 11:49:34 No? :P May 08 11:50:12 android has locale dependent strings like 'h:mm a' or 'a h:mm' depending on the locale May 08 11:50:20 and the settings app has the 12/24 hour preference May 08 11:50:44 Ahh I see, you are after a kk:mm:ss format string that is dependant on Locale May 08 11:50:53 Can someone please help with with setting up a camera inside my app, I have the thumb in the middle of my hand and it's just beyond my level of knowledge of android. A url to a camera-for-dummies guide or similar? May 08 11:51:34 I've never bothered to find one, I find that covers things really. May 08 11:51:45 SimpleDateFormat.getTimeInstance returns something that ignores the 12/24 hour setting, and android.text.format.DateFormat.getTimeFormat() does the right thing bug doesn't include seconds May 08 11:54:15 kaspuh theres quite a few out there https://www.google.com/search?q=android+camera+tutorial May 08 11:56:52 gaz` - i can't figure them out. Ofc i have googled for it May 08 11:57:07 "Catholic Church says Australia is suffering a man drought, warns women not to be too picky" May 08 11:57:15 * g00s considers going down under :) May 08 11:57:32 haha May 08 11:58:15 g00s - it's not really hard to get women in the states either, is it ? May 08 11:58:27 g00s - or are you fugly? May 08 11:58:34 lol May 08 11:59:09 kaspuh: i was mostly joking :) May 08 11:59:16 actually, totally joking :D May 08 12:00:48 <`z> it was May 08 12:00:49 <`z> all a lie May 08 12:01:03 there is no cake! May 08 12:01:09 * kaspuh sighs May 08 12:05:54 i wonder: is it possible to read a JSON response while it's being delivered by the server? May 08 12:06:04 or alternatively just a text response May 08 12:06:08 What is the prefeered way to store an image that the user pics from the web? Is it the sd-card, or is there a better way? May 08 12:07:27 usually the sdcard, it's "unlimited" storage May 08 12:08:01 Yeah, external storage is probably preferred May 08 12:08:09 Check for available space anyway :p Some users fill it up May 08 12:08:36 oh ok.. HttpUrlConnection May 08 12:08:41 hmm when u specify an image for a tab how do you get that image to scale to fit the size of the tab itself, thats my problem the images im using arent taking up the full space so it appears the text is below the tab but itsn ot May 08 12:08:42 instead of HttpDefaultClient May 08 12:13:11 how can we remove the contents from sdcard during application uninstall from device? May 08 12:14:11 tapas: all you need are JSON classes that are capable of handling streams May 08 12:14:38 Just make sure you use the helper methods to get the external files dir May 08 12:14:47 THose folders are automatically removed May 08 12:15:34 http://developer.android.com/reference/android/content/Context.html#getExternalFilesDir(java.lang.String) May 08 12:15:50 SimonVT:thanks for link May 08 12:15:55 wongk: yeah, i suppose so.. mm May 08 12:16:48 wongk: as the HttpUrlConnection already is streaming capable May 08 12:16:49 hmm May 08 12:17:13 both http clients are, that's basic functionality May 08 12:17:49 can we remove the highlist color ,when we click on item of listview May 08 12:18:41 Guys using eclipse, I have installed Android tools to eclipse and Run As Andriod Application does not have any shortcut? how can I add some? May 08 12:19:18 wongk: ok, JSONArray takes a JSONTokener.. I guess if i can hack up a JSONTokener that takes an input stream i should be golden May 08 12:19:41 [as in my case the response is a JSON array this would be perfect] May 08 12:19:50 Trudko: I'm not following. Does the application run? Or is there no "Run as Android Application" item selectable? May 08 12:19:51 tapas: could be, i am actually not that familiar with the JSON classes in android May 08 12:21:09 hmm, i wonder why JSOTokener is implemented on top of a String and not an InputStream May 08 12:21:14 there's peobably a good reason :D May 08 12:23:31 jackson might be what i need :D May 08 12:41:37 I update my comp to lion. Now my android app packages won't open. bahhhh May 08 12:43:24 what is the correct way to display numeric information about seekbar change? For example when the user sets the seekbar to the middle I want to display the information 50. Or maybe there is something better to use than seekbar? I am using it to set a threshold for some action May 08 12:59:44 hi :) May 08 13:00:54 i'm working with a C/c++ program and i like to check the memory leak, do you know any memory checker on android ? (i know valgrind but i can not make it working) May 08 13:06:42 guys when i start my app to debug i suddenly get class not found for my main Activity. the Activity is in the Manifest file and the package seems to be right too. i cleaned the project tin eclipse 100 times already. anyone have an idea why i could get this error? May 08 13:37:58 ah the monthly payment from google just went in GOOGLE £3.43 May 08 13:38:00 lol May 08 13:39:23 Youz be getting shitfaced tonight! May 08 13:39:28 lol May 08 13:39:30 indeed May 08 13:39:56 its like i get a pint a month from google if im lucky May 08 13:40:07 :D May 08 13:40:19 That's rather sad. May 08 13:40:34 yeh and i got like 15 apps May 08 13:40:40 well over 400k dls May 08 13:40:44 Ouch May 08 13:40:48 Quick question: How can I get an edittext on the same screen as a listview, ive tried everything May 08 13:41:00 linuxnewb: where do you want it? May 08 13:41:23 just above it, i want to replicate the 'google search app' layout May 08 13:41:29 gaz`: that's pretty bad... and quite an effort. May 08 13:42:09 thats the reality of android May 08 13:42:12 :-x May 08 13:42:49 linuxnewb: pretty much... a linearlayout, orientation vertical, with the edittext height wrap_content and the listview layout_weight="1". May 08 13:43:14 gaz`: not my reality, I get 2 pints a day from some soundboards I made 1.5 years ago :) May 08 13:43:23 wow! May 08 13:43:26 thats madness May 08 13:43:34 completely illegal too no doubt :) May 08 13:43:58 6 quid a day id be kinda happy May 08 13:44:03 Thanks alot HDroid, I'll try it now. May 08 13:45:23 Nope fully legal, I used sounds and graphics from the public domain. May 08 13:46:20 ah cool HDroid May 08 13:46:52 I'm about to build some apps that may have bigger potential.. though still pretty simlpe. May 08 13:46:55 simple May 08 13:47:01 yeh May 08 13:47:03 I feel I'm underusing my skills currently. May 08 13:47:04 ive tried a lot May 08 13:47:09 nowt works May 08 13:47:47 What kind of apps did you make, and how do you monetize them? May 08 13:48:21 Your dls compare to mine, can't help to see some potential there. May 08 13:48:23 wallpapers, games, music apps etc May 08 13:48:35 mostly i set em free actually May 08 13:48:37 due to dire sales May 08 13:49:32 But people do like your apps if they're free? May 08 13:49:42 kind of yes May 08 13:49:47 got some on 4 stars etc May 08 13:50:06 bollocks the spammers have been at my site again May 08 13:50:12 HDroid: Turns out I had to use a relative layout, when using linear, the list view simply doesnt appear May 08 13:51:04 linuxnewb: that's another approach, though it should have worked with the linearlayout... did you forget to make it vertical, perhaps? May 08 13:52:31 ill keep trying tho HDroid got a couple of games to release soonish May 08 13:55:01 HDroid: nope i followed exactly what you said. But I'll keep trying! =) May 08 14:00:22 Has anyone in here developed for a Galaxy Tab 10.1 (P7501)? I'm having issues with EditText's set as inputType=date. May 08 14:00:56 More specifically the fact that the user can't enter dashes between dates in the form: 2012-05-14 May 08 14:01:27 I have a FrameLayout and a SurfaceView on top of it ... How can I add a button later on the FrameLayout and make sure that it stays on top ? May 08 14:01:47 I only have the emulator as my testing base and I can't reproduce the problem. I noticed on a youtube-clip that Samsung seems to have modified/created a keyboard of their own. May 08 14:10:13 With TextView txt1 = new TextView(Activity.this); I can create a new TextView - but can i define a textview in a xml-file with a specific layout. e.g. textcolor, background-color, padding - so that every created textview has this layout? May 08 14:10:30 where would the default location be for an apk's error log for debug release? May 08 14:11:49 gaz`: the way I see it... stuff like wallpapers are hard to monetize but people seem to be complaining about the lack of polish for yours... I like the ideas, though, definitely worth improving. Other than that, most of your icons are quite unappealing and it would probably help if the descriptions for your apps started with a very concise feature description. May 08 14:12:30 If I am to choose your offering over that of people competing for your keywords, I want to have that fuzzy warm feeling :) May 08 14:12:36 The zombie game looks very cool. May 08 14:14:25 With the right marketing, you could be onto something with that. May 08 14:14:27 hello May 08 14:14:44 I have an Android device that has frozen, but I still can interact with it through adb shell... what directories should I look for interesting logs ? May 08 14:15:01 tapas: could be, i am actually not that familiar with the JSON classes in android May 08 14:15:05 oops May 08 14:15:11 disregard :P May 08 14:15:47 how would i find the location for an apk's error log when testing a debug release? May 08 14:16:54 sad_panda: adb logcat May 08 14:17:15 wongk: wont that just print everything though? May 08 14:17:18 I have a FrameLayout that has a SurfaceView and a Button as children ... How can I add a button later on the FrameLayout and make sure that it stays on top ? May 08 14:17:53 wongk: i want information specific to the application, and ddms wont give me the error messages i need May 08 14:18:07 sad_panda: you can filter logcat output May 08 14:18:31 gotcha May 08 14:18:40 i.e., adb logcat myapp:V *:S AndroidRuntime:E May 08 14:18:53 gaz`: I like the mango booth concept a lot (not sure how the competition is in that space though), but the UI could use a lot of polish. May 08 14:19:02 wongk: same difference if i view logcat via ddms? May 08 14:19:20 don't know, i don't really ever use ddms directly May 08 14:19:33 ok May 08 14:19:35 thank you May 08 14:21:47 With TextView txt1 = new TextView(Activity.this); I can create a new TextView - but can i define a textview in a xml-file with a specific layout. e.g. textcolor, background-color, padding - so that every created textview has this layout? May 08 14:22:07 vorwaerts: you can, with a layout inflater. May 08 14:23:26 thanks! May 08 14:23:51 http://developer.android.com/reference/android/view/LayoutInflater.html -> inflater.inflate(R.layout.somelayout, null); woop May 08 14:24:59 was at shop, cheers HDroid May 08 14:25:27 what is a good resource for starting with gestures (swipe) May 08 14:25:30 ? May 08 14:26:17 What is the theme property I have to override in order to replace LinearLayout backgrounds? May 08 14:26:19 m1hael: http://developer.android.com/reference/android/view/GestureDetector.html May 08 14:26:27 Napalm: thanx May 08 14:27:24 gaz`: I won't say I'm an expert (though check again in a few months :P ) May 08 14:27:30 I'll act as one, though :D May 08 14:27:38 :-) May 08 14:28:18 yeh some of my apps are a bit lame May 08 14:28:21 some are decent tho May 08 14:28:54 actually the star ratings are better than i remember May 08 14:28:58 ppl have stopped being so cruel May 08 14:28:59 :) May 08 14:29:37 Is-it android:windowBackground ? May 08 14:30:27 There is no such attribute May 08 14:30:43 windowBackground sets the windows background May 08 14:30:52 Not your linearlayouts May 08 14:31:08 hello, I hope someone can help me. I created a table layout, in each row there is an image, a text and a checkbox. The list itself looks fine, but when I check a checkbos another checkbox is checked (seems randomly) and when I scroll around the checked boxen are unchecked automatically. Can someone tell me why ?? Here is my row.xml nopaste.info/53d64d2aca.html May 08 14:31:08 shit my phones not getting recognised May 08 14:31:56 Pinas prob in your adapter May 08 14:31:58 i find that too May 08 14:32:06 i have to explicitly turn em on and off May 08 14:32:10 SimonVT: Ok, I got it. Thakns May 08 14:32:18 Yes, you have to update it to the current row's status in every getView(). May 08 14:32:33 i dont even know why that is HDroid May 08 14:32:48 i think google fucked themselves over by not having an NDK on gtv May 08 14:33:00 gaz`: the views get recycled but they're not connected to the actual row. May 08 14:33:16 You get passed a view because using an existing view is cheaper than making a new one, but it can be any view. May 08 14:33:29 ah right May 08 14:33:29 So its state has to be reconstructed on every getView May 08 14:33:34 yeh i figured mayeb an ioptimisation thing May 08 14:33:51 gaz` in my adapter ?? what could be the problem in the adapter -> I did not even cared about the checkbox in the adapter May 08 14:34:07 chekc get view as HDroid May 08 14:34:08 says May 08 14:34:17 oh no what do u do when windows refuses to recognise ur phone May 08 14:34:17 :( May 08 14:34:22 Pinas getView() May 08 14:34:24 Pinas: Watch the listview talk from google io 2010 .. understand view recycling May 08 14:34:46 Pinas: you can't rely on the view to manage state, when the box is checked, get the actual item from the adapter and adjust its value. May 08 14:34:54 is there a String.toInteger May 08 14:35:18 vorwaerts: yes, Integer.parseInt :) May 08 14:35:28 =) May 08 14:35:29 HDroid - I'll try thx May 08 14:35:32 all other: thx May 08 14:36:59 HDroid did u see the trailer for the zombie game :) May 08 14:37:01 theres 2 infact May 08 14:37:07 well work in progress trailers May 08 14:37:16 gaz`: yes, looks awesome. May 08 14:37:22 ive been too ambitous and now im out of cash for art hehe May 08 14:37:30 thx man May 08 14:37:54 Save some for the icon, please! May 08 14:38:05 :-) May 08 14:38:10 done worry no coder art in this game May 08 14:38:24 Good :) May 08 14:39:10 what can i do if i get "unable to parse '8' as integer" May 08 14:39:25 weird May 08 14:39:28 take off ' maybe May 08 14:40:11 hope my phone isnt dead May 08 14:40:14 Could be some garbage in there. May 08 14:40:15 pc wont recognise it in usb May 08 14:40:16 I got a String "sqlcount" and want to be parsed as Integer here: counterPref.edit().putInt("count", Integer.parseInt(sqlcount)).commit(); May 08 14:40:30 so string output is 8 May 08 14:40:42 it shouldnt have a problem then May 08 14:40:48 try sticking in try catch May 08 14:40:54 and print message altho i guess u did May 08 14:41:20 you talking to me? May 08 14:41:29 or try (int)Integer.parseInt(sqlcount) maybe May 08 14:41:30 yes May 08 14:42:04 What is saying "unable to parse '8' as an integer"? May 08 14:42:32 Caused by: java.lang.NumberFormatException: unable to parse '8' as Integer May 08 14:43:03 http://screensnapr.com/v/7xAr71.png May 08 14:43:05 mever seen that before May 08 14:43:10 maybe it has white space May 08 14:43:14 .trim() it May 08 14:43:24 ah it does May 08 14:43:26 my call of startForeground (sdk15) Seems to just be ignored? :/ any idea how this could happen? May 08 14:43:27 has a new line i thnk May 08 14:43:38 counterPref.edit().putInt("count", Integer.parseInt(sqlcount.trim())).commit(); May 08 14:44:20 triming solved it May 08 14:44:22 thx May 08 14:44:27 np May 08 14:44:54 Any idea why startForeground doesnt work? no notification appears http://pastebin.com/JRjwkidc May 08 14:46:57 god dammnit May 08 14:47:04 might have to reboot May 08 14:47:06 what a pain May 08 14:47:28 see u in 2 yrs May 08 14:48:31 HDroid May 08 14:48:32 there is a new line char in that string thats why its like '8 May 08 14:48:32 ' May 08 14:48:32 o woops, vorwaerts^^ May 08 14:48:46 i have a class "Helper" with a method updateData() an SharedPreferences counterPref = PreferenceManager.getDefaultSharedPreferences(this); in it. it tells me, that the context "this" is wrong - why? May 08 14:49:01 Cannot use this in a static context May 08 14:49:10 use getBaseActivity(); instead of this May 08 14:49:17 err May 08 14:49:20 getBaseContext() May 08 14:49:38 ok May 08 14:50:11 Won't help if something is static, though. May 08 14:50:24 ^^^ May 08 14:50:25 static -> no instance guaranteed to be available -> no this May 08 14:50:37 Either make non-static or pass into the method as an argument. May 08 15:00:49 xLexi getBaseContext() doesn work May 08 15:01:11 the method is undefined May 08 15:02:06 sorry didnt read the "static" part, do as the people suggested above ^ May 08 15:02:34 dont know what to do May 08 15:02:54 Either make non-static or pass into the method as an argument. May 08 15:03:09 yes I dont know what this means May 08 15:03:13 >_< May 08 15:03:32 passing into the method as an argument May 08 15:04:06 There is no way I can put that any simpler :P May 08 15:04:19 either remove the part of your method that says "static" or add an argument into it like this void yourmethod(Context cx) and instead of "this" pass "cx" and from whereever you call the method call yourmethod(getBaseContext()); May 08 15:04:31 u.u May 08 15:06:08 like this? http://screensnapr.com/v/tNp5EF.png May 08 15:06:30 exactly May 08 15:06:43 why would you taek a screenshot of code... May 08 15:06:51 why not May 08 15:07:19 to keep the code-colors? May 08 15:07:27 so looks like my usb cable is dead... ;-/ May 08 15:07:32 some people have a keyboard shortcut that uploads their screen and puts the link on the clipboard in the blink of an eye, more efficient than opening a browser, navigating to pastebin.com, pasting it in, copying the url.. May 08 15:07:36 windows tries to recognise the cable alone May 08 15:07:59 xLexi exactly =) May 08 15:10:33 if I create mybutton.xml resource file, shoul I put it under res/drawable or res/drawable-mdpi? May 08 15:10:50 doesnt matter really May 08 15:10:54 if theres only one May 08 15:11:05 hi May 08 15:11:24 crap im using emulator now May 08 15:11:26 this sucks May 08 15:11:26 for the purpose of order it makes sense to put it in just "drawable" May 08 15:11:37 but technically doesnt matter May 08 15:11:50 ok, thanks May 08 15:11:55 I would like to remove the sound of the Camera.takePicture. I've head that you have to implement Camera.ShutterCallback; I did implement it and supplied nothing on "onShutter" but I still get the pic sound. What should I specifiy? May 08 15:12:27 when I add the code from step 1 http://developer.android.com/guide/topics/ui/notifiers/notifications.html#Basics to my method, it tells me that getSystemService is undefined May 08 15:13:37 import android.app.Service; May 08 15:14:29 if that doesnt work the example is most likely guided towards a different version of the API than the one youre using May 08 15:14:49 it doesnt work May 08 15:14:57 wait May 08 15:15:05 are you putting "this" into that too? May 08 15:15:23 its the same method May 08 15:15:51 http://screensnapr.com/v/4dVnny.png May 08 15:16:08 use cx.getSystemService May 08 15:18:50 What space and time efficiency implications must be considered when assembling a string from parts in Java on a mobile phone platform? May 08 15:19:43 1 May 08 15:20:39 fliiipy: hmm. It takes space. And time. But unless your strings are in the hundreds or thousands, you're hardly going to notice. May 08 15:20:53 Hey guys can anyone point me to a good resource for someone starting out with making custom roms? May 08 15:21:02 fliiipy: use StringBuilder though May 08 15:21:41 the general rule is you have 200-300 ms before users starts thinking your app is laggy.. May 08 15:22:06 I would like to remove the sound of the Camera.takePicture. I've head that you have to implement Camera.ShutterCallback; I did implement it and supplied nothing on "onShutter" but I still get the pic sound. What should I specifiy? May 08 15:22:25 xLexi, you have until my screen flashes red before i think you're laggy ;) May 08 15:22:40 xemi mayeb they dnt want u to do that May 08 15:22:42 for seucity May 08 15:22:49 HDroid: Ok thank you =) May 08 15:22:54 or maybe u can programatically put phone in silent or something May 08 15:22:57 security8 May 08 15:22:59 *! May 08 15:26:14 some phones are going to play that shutter sound no matter what you do (Except silent mode), some manufacturers program it into the driver for some weird reason, privacy concerns I think May 08 15:26:17 gaz`: yes but that seems unusual as will interract with other apps May 08 15:26:44 I have a button in a LinearLayout showing on the far left .. How can I make it show on the far right ? May 08 15:26:53 xLexi: I see May 08 15:27:19 I have a different question. I want to do a motion detection based on sound. How do you guys suggest I should approach that? May 08 15:27:44 I think its the general idea of people should be able to hear that you take a picture of them, which is dumb and backwards since people can just put their phone in silent... May 08 15:28:04 I was thinking about recording small chunks of sound and audio and then somehow compare them May 08 15:28:26 or is that a bad solution? May 08 15:29:15 some phones use a combination of two microphones in the phone to identify loudness and distance of sounds, to reduce background noise in phone calls, maybe you can utilize a simular approach May 08 15:30:57 do phones have 2 mics? May 08 15:31:25 not all of them, but a large majority of android phones these days utilize this May 08 15:34:03 xLexi> regarding shutter sound, in some countries the manufacturer is legally required to make sure the phone makes that sound :) May 08 15:35:06 even in silent mode? May 08 15:35:20 probably May 08 15:35:26 (if that works is a different matter) May 08 15:35:28 interesting, I knew that it was due to legal implications May 08 15:35:36 but didnt know it was that harsh May 08 15:35:53 but I dont have my phones running for longer than 5 minutes before I root and ROM them so if that was ever there its gone now :P May 08 15:35:59 well its that you cannot silently take a picture of somebody May 08 15:36:08 yeah I know I said that May 08 15:36:09 lol May 08 15:36:14 buts its silly anyways, since you could still record a movie of them :P May 08 15:36:31 movie recorders make a chirp though May 08 15:36:37 but its not as audible May 08 15:36:44 and while I'm pretty sure the red light as seen on a real cameras is a requirement as well, I've yet to see one on a phone May 08 15:36:56 lol true May 08 15:37:00 i'm doing System.out.println() and calling adb logcat | grep System.out. How do I enable android logs to not cut off my System.out.println? May 08 15:40:08 gah I cant figure out why this service wont go foreground May 08 15:42:51 is there any way to test bluetooth app without 2 mobiles/tablets ? May 08 15:44:18 * pfn boggles at why his final field is getting reassigned to a new value May 08 15:46:16 hey guys May 08 15:46:19 gotta question May 08 15:46:35 I got while building an app this: packages/apps/TweakGS2/res/layout/seekbar_dialog.xml:52: error: Error: This attribute must be localized. (at 'text' with value '+50') May 08 15:46:43 how to localize numbers? May 08 15:47:22 ugh, that was the worst bug... stupid May 08 15:47:27 how can I set the action on a notification to do open an app when I click on it in the notification bar May 08 15:48:13 vorwaerts, set the pendingintent May 08 15:49:04 pfn it is PendingIntent contentIntent = PendingIntent.getActivity(this, 0, notificationIntent, 0); May 08 15:49:15 netchip: just like any other string May 08 15:49:40 i want my app where the notification comes from to open May 08 15:50:11 evancharlton: I'll try and report back! May 08 15:50:47 "must be localized" -- new error level setting in adt? May 08 15:52:17 hi, may i have a question about bluetooth? ... is there way to test application without 2nd device? May 08 15:52:53 no May 08 15:53:13 just by a bluetooth usb stick for your pc/laptop May 08 15:53:24 buy* May 08 15:53:35 but AVD doesnt support bluetooth right? May 08 15:53:59 you can test with your pc, rather than device to device, dependingon ap May 08 15:54:00 p May 08 15:55:28 vortexion, where it says notificationintent put new Intent(this, YourMainActivityHere.class) May 08 15:56:31 vorwaerts** May 08 15:57:10 xLexi it works - but if i click it, it stays in the bar - how can i delete it? May 08 15:57:25 pfn: i dont understand, how can i ¨test with my pc¨ bluetooth comunication ? May 08 15:57:56 notification1.flags |= Notification.FLAG_AUTO_CANCEL; May 08 15:58:16 replace notification1 with whatever your notification object is called May 08 16:00:11 xLexi i got NotificationManager mNotificationManager = (NotificationManager) cx.getSystemService(ns); in Helper.updateData(); but i Start another class May 08 16:01:32 xLexi how do i cancel it from another class? May 08 16:02:49 If I set up a connection to a server via Socket, will it automatically be kept alive until I either run close() or kill the application? May 08 16:08:58 xLexi ? May 08 16:11:39 sorry was afk May 08 16:12:33 you cannot manipulate notifications after they have been posted vorwaerts May 08 16:12:45 its all up to the user, for privacy reasons May 08 16:13:20 i got a service that creates the notification May 08 16:13:39 on clicking it the user returns to the app startactivity May 08 16:13:49 from there i cant delete the notification? May 08 16:13:58 why would you May 08 16:14:07 otherwise it stays in the bar May 08 16:14:15 no May 08 16:14:19 you set the flag Notification.FLAG_AUTO_CANCEL; May 08 16:14:27 that tells android to remove it when the user clicks it May 08 16:14:52 ah - i thought its a command to delete it on return May 08 16:15:00 xLexi: er, you most certainly can a) modify notifications and b) delete notifications May 08 16:15:23 heh, didnt know that, but either way its not necessary as android provides that flag May 08 16:15:24 lol May 08 16:15:27 in this case May 08 16:15:30 thanks May 08 16:15:31 NotificationManager#cancel(int) and NotificationManager#notify(int, Notification) May 08 16:15:46 Is it possible to declare and define variables (or objects) that are visible to all activities in the application? May 08 16:16:19 xarxer: of course, you just have to make them static May 08 16:18:43 evancharlton: Ah. And then access them via AnotherActivit.myObject? May 08 16:20:01 is possible make multiplayer via sockets in local wifi ? or better use bluetooth? May 08 16:20:25 Shaddow: How do you mean local wifi? May 08 16:20:41 is there a way to show the suggestion list for an empty filter ("") for an autocompletetextview, from code. i.e. when the user presses a button, the filter will be executed and results will be shown May 08 16:21:26 xarxer: create ad-hoc or something like this without internet ... and 1 will be server and others will be clients May 08 16:21:52 Shaddow: Surely it's _possible_ but it sounds complicated.. May 08 16:22:34 i dont know if its possible, ... i wrote game in java and used socket in localhost to comunicate client <-> server May 08 16:23:14 and when i look at bluetooth example im bit confuse :D socket is much easier and can comunicate more then 2 device May 08 16:24:13 is there any application which can reboot mobile phone ? May 08 16:27:06 only ig it rooted jennie May 08 16:27:10 if May 08 16:27:16 when i define a linearlayout how do a remove all views IN this layout? May 08 16:27:28 removeAllViews() May 08 16:27:30 i think May 08 16:29:53 Question: I 've a database which I query. Sometimes I want to query just a column which may have the same data in many rows. Can I tell the query to remove any duplicates, or must I check for duplicates manually in the returned cursor? May 08 16:30:28 you can use SELECT DISTINCT May 08 16:31:15 so i should use .rawQuery("SELECT ... "); May 08 16:31:15 ? May 08 16:31:32 pfn, hi May 08 16:31:53 WindowsNT: that is an option May 08 16:32:36 jennie: adb May 08 16:32:36 WindowsNT: i don't know if there is a wrapper method for select distinct. I doubt it. rawQuery is probably the way to go. May 08 16:33:03 I was thinking on parcelable ... but I have a doubt . Why with Parcelable I am going to have different behavior than with Serializable ? In the end the framework could choose to not Parcelable my class May 08 16:33:29 Hi, I would like to hide incoming call screen . I use PHONE_STATE receiver but it's a non ordered broadcast so i can't use abortBroadcast() method . is there any other method to do that ? May 08 16:33:38 yes it seems so. Trying. May 08 16:35:30 worked May 08 16:35:32 :) May 08 16:36:04 aLeSD, I said that yesterday May 08 16:36:12 and it's not a doubt May 08 16:36:14 it's a question May 08 16:36:36 aLeSD, that's why I told you to initialize your field manually and not rely on transient May 08 16:37:24 ok ... so I have to reinitialize it when I get from the Bundle either if I am getting a Parcelable May 08 16:37:34 maybe May 08 16:37:39 :D May 08 16:44:09 Guys I know that is not topic of chat but I am unluck on other channels. I am doing simple color recognition in android and I have problem to differentiate black and certain kind of brown color. I will get more inf if someone is interested. Pls May 08 16:46:06 is there a command in onResume() to run onCreate() again? May 08 16:46:51 api11+ you can recreate() May 08 16:47:09 Why do you need to run it again May 08 16:47:13 why do you want to, in any case May 08 16:47:34 (hint: you shouldn't) May 08 16:47:45 depends on what you're doing May 08 16:48:23 i catch data from a mysql-server and create a layout with it - if i click a button und get a new layout und from this i go back it wount be created if there is any new data in this time May 08 16:48:46 you don't render your data in onCreate May 08 16:48:49 that's the wrong way to do it May 08 16:49:20 e.g.: start.class > gets a width from mysql and has a button to another.class > while im here the width will be changed - if I go back now, theres the old with May 08 16:49:24 Is there some type of standard encoding on strings in Java? May 08 16:49:41 be more specific May 08 16:49:57 java uses platform defaults when doing IO May 08 16:50:24 strings are stored as unicode points in memory May 08 16:50:34 The server sends the string "NONE", which I receive in my app, but received == "NONE" is false while received.contains("NONE") is true May 08 16:50:47 xarxer, learn what == means May 08 16:50:56 == is the identity operator May 08 16:51:15 not equality May 08 16:51:20 pfn: oh May 08 16:51:50 so a java.util.Date()'s getTime() returns millseconds since the epoch. So if I want to take only the time part, I can do: long millis = new Date().getTime(); Date timePart = new Date( millis - (millis / 86400000)); ---- right? May 08 16:51:52 ah, so I should use .equals() May 08 16:52:02 don't tell me to use Calendar, because I fear that abominable thing. May 08 16:52:18 I thoght it was the other way around =( May 08 16:52:37 huh? May 08 16:52:41 what time part May 08 16:52:44 hms? May 08 16:52:57 new Date(millis & 86400000) May 08 16:52:58 I want the fraction of the value that composes the time, but I want it in millis. May 08 16:53:07 oh? May 08 16:53:23 would you mind explaining why that works? May 08 16:53:32 probably doesn't May 08 16:53:33 heh May 08 16:53:41 readme: you could also do % instead of subtraction and division May 08 16:54:04 getTim() % 864000000 May 08 16:54:08 nice May 08 16:54:08 millis % 86400000 is probably the right approach May 08 16:54:10 getTime(), of course May 08 16:54:12 i'll test that real quick May 08 16:54:29 and really, you're better off using Calendar May 08 16:55:30 yeah May 08 16:55:36 hell no May 08 16:55:40 I do not trust calendar for a second. May 08 16:55:54 I mean, what if the number of seconds in a day changes?! (it actually does from time to time) May 08 16:55:59 I have heard several reports of people telling me it works differently on diff api versions May 08 16:56:17 I doubt that very much, readme May 08 16:57:05 evancharlton: number of miliseconds is adjusted differently, by adding them to last day of the year May 08 16:57:31 p_l: would that day's duration then not change? May 08 16:57:49 how DO those classes handle leap seconds? May 08 16:57:50 or do they May 08 16:58:09 canadiancow|work: probably don't May 08 16:58:12 meh May 08 16:58:18 this isn't a realtime system May 08 16:58:20 :P May 08 16:58:27 if you care about that and youre using Calendar, youre doing it wrong May 08 16:58:27 calendar doesn't work differently on different api levels May 08 16:58:36 calendar /is/ stupid, but it's not completely broken May 08 16:58:41 reminds me of when GoDaddy's DNS died one year when DST was different May 08 16:58:51 pfn: <3 jodatime May 08 16:59:12 0 based months, vs. 1-based weekdays vs. everything else... meh May 08 16:59:18 lolol May 08 16:59:22 yea May 08 16:59:22 evancharlton: it's usually adjusted only for that day, and usually isn't oticed. Though Google had a nice case of it affecting a cluster May 08 16:59:25 thats annoying May 08 16:59:32 can i do something like
in html? May 08 16:59:53
works in html May 08 16:59:55 p_l: right, but my point is that day no longer has 864[0]+ seconds in it May 08 17:00:22 canadiancow|work yea but i need something like this in android? May 08 17:00:51 sigh, i'm going to use calendar May 08 17:00:52 I use it elsewhere in my code May 08 17:01:03 evancharlton: well, using modulus for day is broken anyway May 08 17:01:20 calendar works... just write tests around it to make sure you did it right May 08 17:01:28 it's not like it has indeterminate behavior May 08 17:01:45 canadiancow|work: that's not even valid XML May 08 17:01:48 no closing tag May 08 17:01:57 lo; May 08 17:02:00 lol May 08 17:02:28 canadiancow|work and how do I set layout_height in code by adding a View due the code? May 08 17:02:55 lmgtfy May 08 17:04:07 vorwaerts: stop doing layouts in code! May 08 17:04:13 that too May 08 17:07:18 is the in-app billing library stuff in git? May 08 17:07:21 i.e. can i submit a patch May 08 17:08:17 Can one use onCreateDialog to create AlertDialogs? May 08 17:08:19 guys I'm using something called unblock-us (to watch Hulu, Netflix, etc) since I are from Canada. It made me change my DNS settings but works and is fast, is it safe? May 08 17:09:42 Cydd: ask in #android May 08 17:09:45 xarxer: yes May 08 17:17:01 JakeWharton: But onCreateDialog is of return type Dialog, not AlertDialog? May 08 17:17:16 AlertDialog extends Dialog May 08 17:17:41 xarxer: polymorphism May 08 17:17:42 learn it May 08 17:17:43 use it May 08 17:17:44 love it May 08 17:17:56 canadiancow|work: yeah yeah, I get it ;) May 08 17:29:48 pro-tip: don't take programming/network advice from IRC users that have a foo-home and foo-work IRC nick; a real programmer/network guy would know how to use screen or a bouncer. Besides, do you really want creative advice from someone such an uncreative naming scheme? May 08 17:30:04 This has been another opinion by pragma-. The more you know... May 08 17:30:27 pro-tip: stfu May 08 17:30:39 how can i set up a sound to a notification? May 08 17:33:18 screen would require me to vpn into my work machine, which would be ridiculous for IRC May 08 17:33:29 vpn + ssh, rather May 08 17:33:42 you could just ssh into your home machine then May 08 17:33:45 and use screen there May 08 17:33:51 or any number of shells available May 08 17:33:54 or run a bnc somewhere May 08 17:34:23 then i have to open a port, useless May 08 17:34:37 * pfn shrugs May 08 17:34:42 that also assumes that desired behaviour is to not have two separate entities May 08 17:34:45 like canadiancow and canadiancow|work May 08 17:34:47 i'll have none of this so i can use the same irc nick from work and home :P May 08 17:35:01 i sometimes do freelance work on odesk if someone makes a good enough offer. May 08 17:35:10 * pragma- points at wongk-home May 08 17:35:14 are there ever good enough offers? May 08 17:35:16 Why even bother with bnc ? May 08 17:35:22 yeah, set your rate high and wait May 08 17:35:36 readme, what's the highest rate you've gotten off of it? May 08 17:35:50 anyway, this guy just asked me to make him a "bluetooth app" that can list the bluetooth devices on any device or computer and upload to a server for 200, lol May 08 17:35:53 $50/hr May 08 17:35:57 ok pros can u call an intent without settting permissions ? May 08 17:36:06 pretty decent May 08 17:36:10 besides, opening a port in your firewall with an appropriate rule that includes your work domains and other specific locations is definitely too hard for non-programminers/non-network guys. May 08 17:36:16 that was when someone I worked for before was in dire straits though May 08 17:36:18 dominicdinada, that is the most vague question ever May 08 17:36:21 they needed urgent stuff May 08 17:36:25 answer: yes and no May 08 17:36:34 readme, shoulda scalped them more May 08 17:38:44 I once was paid $1,250 by a University student to write a survey-taking app. May 08 17:38:48 dominicdinada: if I was able to parse that correctly, yes. May 08 17:39:14 evancharlton: not necessarily May 08 17:39:19 there are a few cases where you do need permission May 08 17:39:44 He just said "an intent" :p May 08 17:39:51 and some intents require permission May 08 17:39:53 others do not May 08 17:40:02 [13:36:25] answer: yes and no May 08 17:40:35 Still just yes :p May 08 17:40:41 == SimonVT May 08 17:41:05 startActivity(new Intent()); May 08 17:41:10 lawyer'd! May 08 17:41:41 See, don't take advice from someone who is at work. May 08 17:41:58 im not wrong May 08 17:42:02 and stfu May 08 17:42:06 You're supposed to be working. May 08 17:42:20 ok, on ignore list May 08 17:42:26 :D May 08 17:42:32 Such a hater. May 08 17:42:36 Can you buy bread at a baker? Yes and no. They might be closed May 08 17:42:51 thats not the same at all May 08 17:42:53 drink dat haterade May 08 17:42:55 Is so! May 08 17:43:19 more like "can you buy alcohol at a corner store? yes and no. some countries you can, others you cannot" May 08 17:43:45 You have to wonder at the psychology of a person that likes to stick their head in the sand. May 08 17:44:42 alcohol... need to buy mores May 08 17:44:56 can someone tell me what error I have and where it comes from? http://screensnapr.com/v/vSlqRC.png May 08 17:45:24 "Requires VIBRATE permissions" May 08 17:45:29 That sounds pretty clear May 08 17:46:04 vorwaerts: I'd copy/paste the exact line that shows where it comes from, except it's a bloody screenshot image. May 08 17:47:11 thanks May 08 17:47:17 vorwaerts: why don't you just send the screenshot to the dev? I'm assuming and praying that you yourself are not the dev... May 08 17:47:35 and how can i check if a notification is still in notification bar to not send it again? May 08 17:48:07 pragma- im the dev May 08 17:48:17 vorwaerts: you need a |work tag on your nick May 08 17:48:30 i dont May 08 17:48:31 * pragma- points hwrd|work May 08 17:48:33 see, there's another pro May 08 17:49:00 we all know why pragma- doesn't have |work... May 08 17:49:06 pragma-: I don't know about pro… May 08 17:49:07 I'm a retired millionare. May 08 17:49:16 no one will hire him May 08 17:49:21 zing! May 08 17:49:28 bazinga! May 08 17:49:42 Au contraire, I made my millions off of University students with thesis grant money to burn who needed cheap apps. May 08 17:49:49 I like "sensei" a bit more. May 08 17:50:32 i prefer shihan May 08 17:51:58 I like Seikou May 08 17:53:53 brb May 08 17:53:55 Er, Sekkusu May 08 17:59:36 Any ideas why my app is crashing? http://pastie.org/3880150 May 08 17:59:57 java.lang.NumberFormatException: Invalid int: "84%" May 08 17:59:59 right there May 08 18:00:04 yeh May 08 18:00:12 lol evancharlton May 08 18:00:13 but what do they intend? May 08 18:00:24 '%' is not a number May 08 18:00:34 ah May 08 18:00:36 got it May 08 18:17:58 putting save buttons and such in the top right seems unintuitive to me May 08 18:18:04 i.e. in the action bar May 08 18:18:07 stone me to death, I know May 08 18:18:16 but if you are filling out a form you are reading from top to bottom May 08 18:18:23 and when you are done, you expect the save button to be at the bottom. May 08 18:28:08 I've got an application that logs orders to local sqlite database and also stores pictures in the applications file system…as a cache. Is there a way (other than trapping sqllite/file exceptions) to tell if I am running out of device space ? May 08 18:35:23 I'm trying to capture multiple touch events using the same onTouch listener, however, it's not working as expected. If I click and hold the left click button it seems to not want to handle the mouse movements. Is my code correct??? http://pastebin.com/eHszbUae May 08 18:37:11 dlaroche: what version of Android are you running it on, fwiw? May 08 18:37:31 2.2 May 08 18:37:40 oh! May 08 18:37:55 ctate, I was doing more pondering of making an efficitient SQLite backup helper May 08 18:38:40 am I correct in assuming that you cannot get the currently written headers from the DataBackupOutput object? May 08 18:38:44 touch == click May 08 18:38:47 you want onHover() May 08 18:38:50 ctate: as long as I don't hold a "mouse button" in my app then it will register, and send the mouse movements, but doesn't do both at the same time. May 08 18:38:59 also, note taht prior to 3.0 Android didn't support mice at all May 08 18:39:19 are you running some sort of custom rom? May 08 18:39:29 I thought 2.3.4 supported mice if the device had a usb host controller May 08 18:39:36 no. My app is a mouse pad type app that sends mouse commands to a desktop application May 08 18:39:40 t0mless: sort of May 08 18:39:42 like the galaxy whatever it was May 08 18:40:02 The app has two buttons, left and right click, and the mouse pad area May 08 18:40:14 oh! so you're not talking about an actual mouse input device May 08 18:40:19 no May 08 18:40:28 I'm trying to simulate a mouse May 08 18:40:32 right, okay May 08 18:40:43 why dont you just plug in a mouse? May 08 18:40:44 do you still recommend the use of onHover? May 08 18:40:45 and you're not getting the ACTION_MOVE events at all? May 08 18:40:51 canadiancow: see above re no mouse support in 2.2 May 08 18:40:56 not while a button is held May 08 18:40:57 psh 2.2 May 08 18:41:05 dlaroche: no, that was based on your saying it was a mouse :) May 08 18:41:05 that's like 2 years old May 08 18:41:10 ok May 08 18:41:11 do you use windows 95 too? May 08 18:41:26 so you've got two fingers down? May 08 18:41:34 one on a button area, one in the background? May 08 18:41:35 yes May 08 18:41:59 so I should probably dig into the pointer index then? May 08 18:42:21 you'll need to handle the chorded touch case yourself May 08 18:42:28 'v' is not necessarily going to be the background view May 08 18:42:29 etc May 08 18:42:42 i see May 08 18:42:44 more direct framework support for split touch was added in 3.0 May 08 18:42:51 ctate was that "sort of" in reference to my 2.3.4 comment or my DataBackupOutput comment? May 08 18:43:03 t0mless: 2.3.4 May 08 18:43:05 ctate: will the support libraries handle this? May 08 18:43:13 I mean the 3.0 support library May 08 18:43:22 indeed you cannot see anything that has already been written to the stream May 08 18:43:28 during backup May 08 18:44:01 dlaroche: that i do not know. possibly not, because there was a wholesale rewrite of input dispatch from the ground up for 2.3 May 08 18:44:15 yea... bummer -_- May 08 18:44:25 so if you were to say delete a row from your database May 08 18:44:25 although the "do it yourself" information is all still there in the same APIs, so won't break or anything May 08 18:44:37 t0mless: then you write a deletion entity into the stream May 08 18:44:38 it would get restored on restore May 08 18:44:39 ok. thanks. May 08 18:44:51 unless you somehow mark it as deleted May 08 18:44:59 ... note what i just said :) May 08 18:45:12 ahh, right May 08 18:45:15 That starts making things really bloated though -_- May 08 18:45:25 remember the other day when i mentioned "zombie" row bookkeeping? May 08 18:45:30 that is exactly what i was talking about May 08 18:45:53 unless deletion needs to be common and very fast, here is what you probably want to do May 08 18:46:13 this will keep things non-intrusive on your live queries May 08 18:46:41 when you delete a row, note its row ID or whatever in some other db or file or whatever. that other thing is your "needs to be deleted from backup" stash May 08 18:46:57 and call BackupManager.dataChanged(), obviously May 08 18:47:36 then in onBackup(), you just go to that stash, spool out deletion entities for the row IDs there, and then clear the stash May 08 18:48:06 this way you are keeping need-to-delete info out of band w.r.t. your live db data, so it doesn't make your queries more complex etc May 08 18:48:08 can you write a header with zero length data entity? May 08 18:48:36 from the docs: May 08 18:48:44 * ctate | Deleting an entity from the data set is done by writing an entity under that key with header specifying a negative data size, and no actual entity data. May 08 18:48:53 yes, you absolutely can commit an entity with a zero size May 08 18:48:59 Tits. May 08 18:49:03 and that entity will exist in the dataset and be presented at restore May 08 18:49:21 ... err? May 08 18:49:36 Tits = awesome May 08 18:49:38 :) May 08 18:49:56 and in the docs for BackupDataOutput May 08 18:50:01 * ctate | Passing a dataSize of -1 indicates that the record under this key should be deleted. May 08 18:50:15 TIL you can insert a pause into the number you're dialing with a comma. May 08 18:50:17 lesez les docs! May 08 18:50:40 readme: ... you missed the dial-up age, right? May 08 18:50:42 I could have sworn I read that whole page May 08 18:50:50 p_l: i had aol for a few months May 08 18:50:55 before I got cable :P May 08 18:51:03 heh May 08 18:51:11 * t0mless had dialup until he left for college <.< May 08 18:51:13 i configured some girl's linux box to dial into aol once, too May 08 18:51:26 her mom would not get a better isp May 08 18:51:44 * p_l had dialup for years, and there weren't ISPs in style of AOL... everyone, however, knew the number to call May 08 18:52:31 you hacked the gibson May 08 18:52:34 we actually had AOL for a little bit, but the closest center to dial in to was in reno May 08 18:52:40 so it was technically a long distance call May 08 18:53:06 0202122 <--- you called that on landline and got nationwide expensive bitchy internet... with public IP May 08 18:53:11 there was a service that let us dial for 50cents a call instead of being charged per minute May 08 18:53:19 It was hot, the night we burned Chrome. May 08 18:53:24 but then a local service opened up May 08 18:56:35 marathon starting after i get an iced americano May 08 18:56:47 going to make a huge list, and leave irc :'( May 08 18:57:29 p_l: have you ever played global thermonuclear war?\ May 08 18:58:02 readme: depends on REDACTED May 08 19:12:18 what kind of error is this? http://screensnapr.com/v/MO8BRu.png i cant figure out May 08 19:12:28 in Start:36 i have counterPref.edit().putInt("count", (int)Integer.parseInt(sqlcount.trim())).commit(); May 08 19:13:51 1. Learn to pastebin May 08 19:13:58 2. NullPointerException .. something is null May 08 19:14:36 SimonVT: you don't say?! May 08 19:14:58 I do say May 08 19:15:56 I've had to facepalm so many times during the last year... every time I caught my coworker catching NPEs and going on May 08 19:15:57 im going to take a WILD GUESS May 08 19:16:03 and say that either counterPref or sqlcount are null May 08 19:16:14 No way! May 08 19:16:25 i could be wrong! May 08 19:16:35 maybe "count" is null May 08 19:17:00 null.equals("count") May 08 19:17:08 one way to find out! May 08 19:17:14 :D May 08 19:24:18 http://www.osnews.com/story/25920/AT_amp_T_Google_duke_it_out_over_who_causes_Android_upgrade_delays May 08 19:26:08 g00s, lol May 08 19:26:26 i imagine carriers are probably fairly interested in getting devices upgraded May 08 19:26:40 they want to keep their customers happy, and they dont make big money from deivce sales May 08 19:26:45 BUT May 08 19:26:46 canadiancow|work: actually... doubtful May 08 19:26:57 canadiancow|work: device upgrade is a great point to package a new contract May 08 19:27:32 but as soon as you can get a free deivce, you're going to do that May 08 19:27:43 but having a device for 6 months and then "OH WHY IS IT SO OUT OF DATE" is bad May 08 19:28:28 the only thing i could see preventing the carriers from updating is if OEM X adds skin Y to the device, and then the carrier asks for an update, and the OEM says "due to our addition of skin Y, it will take 20 engineers 2 months to update, at a cost to you of $50 million" May 08 19:28:33 and then the carrier says "ok fuck off" May 08 19:29:20 google has very good reaosns for wanting the latest version on all devices May 08 19:29:25 OEMs have a very good reason for NOT wanting that May 08 19:29:29 (more device sales) May 08 19:30:00 carriers probably sit in the middle of that May 08 19:30:08 but i'd say closer to the "wanting upgrades" side May 08 19:30:25 canadiancow|work: there's also "it will take us X time and Y money to put our customized shit in" from carriers May 08 19:30:40 yea May 08 19:30:46 That's when the carrier has to say "why the fuck bother with branding if it costs so much" May 08 19:30:55 tbh i havent used a carrier-branded deivce in a while, so i odnt know how much is being customized any more May 08 19:30:57 also that May 08 19:31:03 They can have their own page on market without branding their phones May 08 19:31:06 my carrier is small enough that they dont do much branding May 08 19:31:07 Just offer your shit from there May 08 19:31:13 they stick a couple APKs on, but that's about it May 08 19:31:14 SimonVT: it's mainly in USA, afaik May 08 19:31:22 Yeah May 08 19:31:22 p_l, it happens on the big three up here May 08 19:31:24 bell/telus/rogers May 08 19:31:30 Branding is dead in Denmark May 08 19:31:41 my carrier have their own market page instead May 08 19:31:57 s/market/play store/ May 08 19:31:57 SimonVT: most of the branding is generally dead in EU due to easy mobility of phones May 08 19:32:38 yeah May 08 19:32:47 i think we need laws like that May 08 19:32:56 i have NO problem with subsidized devices being locked May 08 19:33:14 canadiancow|work: it would kill off any CDMA network, so probably impossible May 08 19:33:24 we killed off our big ones up here May 08 19:33:27 they switched to HSPA+/LTE May 08 19:33:36 when they realized how shitty CDMA2000 is May 08 19:33:47 also when customers left for the iPhone May 08 19:34:01 but i guess with verizon as the biggest, its harder down there May 08 19:34:04 but even they are switching to LTE May 08 19:34:26 once they can expand/improve their LTE network, i can see them deprecating their old one May 08 19:34:38 i know bell and telus up here still have their CDMA2000 network turned on, but you cant buy devices (from them) for it May 08 19:35:11 Aren't the different LTE networks just as incompatible with eachother May 08 19:35:25 p_l will know this :p May 08 19:35:30 completely incompatible May 08 19:35:51 no? May 08 19:35:54 what? May 08 19:36:03 no more so than t-mo and at&t's HSPA+ May 08 19:36:03 mostly because of spectrum May 08 19:36:10 but you can get deivces that work on both May 08 19:36:21 sure, if you have the right antennas and whatnot May 08 19:36:29 like a galaxy nexus :P May 08 19:36:40 a GN on LTE won't run on att's LTE network May 08 19:36:52 (i.e. the vzw GN won't run on att LTE) May 08 19:36:58 SimonVT: in USA it's borked May 08 19:37:02 thats because the verizon GN was designed for verizon :P May 08 19:37:10 the galaxy nexus will run on all national carriers in canada May 08 19:37:15 and some regional May 08 19:37:18 the galaxy note on att won't run on vzw's lte May 08 19:37:19 :p May 08 19:37:26 in EU no one other than apple has chances of selling a single-band LTE device May 08 19:37:29 the only ones it wont run on are the CDMA2000 networks May 08 19:38:06 id leave it to google to sell a device that is unlocked and runs on "all" LTE networks May 08 19:38:17 maybe in 5-10 years May 08 19:38:19 they could push the whole openness thing May 08 19:38:35 i dont think it would take that long May 08 19:38:42 it's gonna take that long for lte networks to become prevalent May 08 19:38:51 tmo isn't doing lte in the forseeable future May 08 19:39:00 sprint won't even really be launching their network until the end of 2013 May 08 19:39:23 given that, that's a minimum of a 2 year wait already May 08 19:39:26 theres more to life than the US of A May 08 19:39:33 screw everyone else :p May 08 19:39:34 in Poland we have two minor LTE deployments so far May 08 19:39:42 in canada we have three major deployments May 08 19:39:53 all on the same bands May 08 19:39:57 well, minor == so far only biggest cities May 08 19:40:04 so i guess that doesnt bode well for the "support all the networks" argument May 08 19:40:06 oh May 08 19:40:07 yea May 08 19:40:08 ok May 08 19:40:09 here too May 08 19:40:18 but unlike CDMA, they are required to be compatible iirc May 08 19:40:25 vzw's lte deployment is /massive May 08 19:40:27 / May 08 19:40:43 it's got coverage practically everywhere that is populated May 08 19:41:11 I hope it doesn't take much to update LTE hardware to LTE-A May 08 19:42:00 i kno rite May 08 19:42:07 * pfn shrugs May 08 19:42:11 don't really care yet May 08 19:42:40 * pfn always waits a year or so for the network to become more established May 08 19:43:20 google slaps ms :) http://www.webpronews.com/google-demands-4-billion-a-year-from-microsoft-2012-05 May 08 19:44:46 oh my May 08 19:45:05 lol May 08 19:45:23 i could see a settlement like "stop suing people over android" May 08 19:45:40 romainguy: will like this http://oddstuffmagazine.com/frame-of-the-storm-clouds-from-sony-world-photography-awards-2012.html May 08 19:45:57 and because i want everybody to be happy :) http://www.livescience.com/20131-study-finds-key-happiness.html May 08 19:47:49 ok, this is infuruating me. how can i get something like android.text.format.DateFormat.getTimeFormat, BUT WITH :SS May 08 19:48:02 :ss rather :) May 08 19:48:38 this function consulths the phone's setting for 12/24 time, and then gets a localized string along the lines of 'a hh:mm' May 08 19:48:42 Going on day 3? :p May 08 19:48:48 SimonVT: :( May 08 19:49:19 if i use the SimpleDateFormat.getInstance thingy, it's not in the form agreeing with 12/24 preference May 08 19:49:52 g00s, if it's an instanceof SimpleDateFormat toPattern it May 08 19:49:54 all i can think of, is to get the Format and append :ss to it using this damn FieldPosition thingy May 08 19:49:56 then adjust the pattern May 08 19:51:23 pfn, ok. so the solution kinda looks like this http://stackoverflow.com/questions/1846059/can-i-alter-dateformat-short-to-include-seconds-or-something-similar May 08 19:51:29 man this is ugly as hell May 08 19:52:03 pfn: ok, thanks May 08 19:52:17 hopefully there will not be 'day 4' SimonVT :D May 08 19:52:25 We'll see :p May 08 19:53:24 anyway, reviewing android source, it is a SimpleDateFormat May 08 19:53:49 just check instanceof, if so, update the pattern with :ss added, otherwise just passthrough gracefully w/o seconds May 08 19:54:11 is it always ':' ? May 08 19:54:22 * pfn shrugs May 08 19:54:30 it always is where I care about it ;-) May 08 19:54:33 hehe May 08 19:55:46 is there a way to have my game set media volume rather than ringtone volume, even when a sound isn't currently being played? May 08 19:56:03 set the media volume stream in the audio manager May 08 19:56:18 sorry I asked my question very badly May 08 19:56:26 you mean when you press your buttons May 08 19:56:29 I meant via the volume buttons on the phone May 08 19:56:43 there's an api for indicating what stream the buttons control May 08 19:56:51 it's under resources -> android training May 08 19:56:52 I think May 08 19:57:25 thanks, I think I just found it! setVolumeControlStream() May 08 19:57:55 it's amazing how few games take advantage of it :( May 08 19:58:07 or for that matter, video players May 08 19:58:29 I think youtube is guilty of it, too, it adjusts ringtone while the video is buffering... or some other video app, I don't remember May 08 20:01:04 there is a new developer blog posting on how to use DialogFragments May 08 20:01:15 shrug, cyanogenmod now has an option to explicitly control which stream the volume keys control, independent of what apps set May 08 20:01:34 * pragma- has his volume keys set to always control media volume. May 08 20:01:58 pfn: worked perfectly, thanks again May 08 20:03:30 * pfn plays on typeracer a little May 08 20:03:44 * pragma- types faster than you. May 08 20:04:11 go race May 08 20:04:25 isn't it great when servers are working great when you go to sleep and totally failing when you wakt up May 08 20:04:29 wake* May 08 20:04:38 -_- May 08 20:05:03 except I hate typing on my laptop keyboard, pos May 08 20:05:04 also, g00s, have you tried out any other graphing libraries since androidplot exploded? May 08 20:05:31 t0mless: no :( i didn't like acahrtengine, and the one by jjoe64 or whoever was retarded May 08 20:05:46 pfn: http://play.typeracer.com has online multiplayer May 08 20:05:46 since you could not update the graph after you created the view May 08 20:05:55 pragma-, right, that's what I'm doing right now May 08 20:06:01 playing for some fun May 08 20:06:08 http://stackoverflow.com/questions/1846059/can-i-alter-dateformat-short-to-include-seconds-or-something-similar May 08 20:06:11 oops May 08 20:06:15 http://play.typeracer.com/?rt=trpfn0 May 08 20:06:27 pfn: I got bored waiting for scores to load after I beat everyone by 20 minutes May 08 20:06:31 pragma-, ^^ go race May 08 20:07:04 I ain't even warmed up. May 08 20:07:09 Start the race, wtf. May 08 20:07:23 I think it's waiting for more May 08 20:08:02 Congrats, you just typed 121 wpm! We have to ask everyone who gets over 100 wpm in a race to take a short typing test. This is done to discourage cheaters. Why? May 08 20:08:05 WTF May 08 20:08:06 IT THINKS IM HAXING May 08 20:08:18 I just smoked pfn too May 08 20:08:53 pfn: I have to do this 100 wpm typing challenge now... wtf, brb 1 sec May 08 20:09:07 g00s we might have to start in on a better graphing library :) May 08 20:09:13 wtf, my typing challenge disappeared while I was babbling about it in here May 08 20:09:25 t0mless: are you having trouble with achartengine? May 08 20:09:29 g00s or I supposed androidplot is open source now, could just contribute to that May 08 20:09:31 pfn: did you see my 121 wpm score in the game, or did it not submit it? May 08 20:09:50 pragma-, didn't show, I got screwed wih the form to verify speed as well May 08 20:09:50 charting libraries are such a pita - everbody has needs for different styles; it becomes very difficult to accomodate what everyone wants May 08 20:09:54 so I didn't see who came first May 08 20:09:57 bs May 08 20:09:59 Truth. May 08 20:10:09 join again May 08 20:10:11 I see in the latest game, which I was unable to participate, that you got 105 wpm May 08 20:10:18 yeah, just 105 that time May 08 20:10:22 Therefore, I declare my 121 wpm score winner. May 08 20:10:25 can i set ONE onclicklistener to e.g. 5 TextViews? May 08 20:10:32 I'm going to register with this site, brb May 08 20:10:49 so that a have a wrapper with textViews in it and the wrapper has the onclicklistener May 08 20:11:06 * g00s is sure he can beat 120 wpm using his beak, wings, and feet at the same time May 08 20:11:07 pragma-, varies, mostly if there are coffeegrinds under my keyboard tiles May 08 20:11:13 Birth year must be between 1900 and 2100 wtf. May 08 20:11:23 I was going to put 1800, but now I'm going to put 2100 May 08 20:11:26 stupid keyboard fails to register May 08 20:11:33 I'm on a laptop too May 08 20:11:34 stupid game May 08 20:11:35 that's not between 1900 and 2100 May 08 20:11:41 bbiab May 08 20:11:46 Location: Yo momma May 08 20:11:48 need to look at a bug... May 08 20:12:25 woot, I'm registered May 08 20:12:27 or is they any view, that i can put around the textviews? to a View i cant addView May 08 20:12:34 pfn: that bug can wait, come race May 08 20:12:50 Oh wait, I better do another one first do get that 100 wpm challenge out of the way May 08 20:13:29 ok May 08 20:13:33 yeah May 08 20:13:38 they ask you again, very annoying May 08 20:14:03 Atarii, 20wpm typist are you May 08 20:14:05 Congrats, you just typed 130 wpm! May 08 20:14:09 nice job May 08 20:14:18 i was 50 something May 08 20:14:28 Atarii, 20 something for all intents and purposes ;-) May 08 20:14:35 :( May 08 20:15:08 lol, typing challenge failed May 08 20:15:17 83 wpm, 100% in the challenge :/ May 08 20:15:26 I was taking my time in it cuz I thought it was just a verification May 08 20:15:34 I even paused to take a sip of water May 08 20:15:35 :/ May 08 20:15:48 heh May 08 20:16:11 Hello May 08 20:16:16 * pfn wonders how the hell people are getting 195wpm May 08 20:16:26 61 wpm May 08 20:16:32 king of the typing :( May 08 20:16:36 Hello people! May 08 20:16:44 Atarii, just keep doing it, heh May 08 20:16:54 lol, I have to score at least 117 wpm to pass the challenge May 08 20:17:02 and it's all wavy and has lines running through some of the punctuation May 08 20:17:15 yeah, it's kinda messed up for verification May 08 20:17:26 I'm going to try taking some drugs first May 08 20:17:30 I need a bit of help May 08 20:17:39 117wpm is damn fast May 08 20:17:51 <_Auron_> I average 140 May 08 20:18:01 ctate: its because I scored 130 wpm on the last race and it wants me to confirm that I'm not a bot May 08 20:18:03 Atarii, didn't meen keep doing the game May 08 20:18:09 and this is only my 2nd race of the morning May 08 20:18:14 Atarii, but you are getting faster May 08 20:18:15 If I get above 100 my accuracy goes to shit May 08 20:18:16 I'm not even warmed up May 08 20:18:20 69 boo yea May 08 20:18:23 * pfn is on shitty keyboard May 08 20:18:34 with stuck coffee grinds underneath May 08 20:18:59 I need to read androidmanifest.xml out of an apk but it seems to be encrypted or compiled in such a way i cant do with anything i have currently May 08 20:19:00 t0mless, do you know if achartdemo can reclaim the space where the zoom controls are if you disable them? May 08 20:19:17 hah May 08 20:19:23 I'm now certified to type 124 wpm. May 08 20:19:30 Yay May 08 20:19:34 that requires certification? May 08 20:19:41 arr May 08 20:19:46 K1CKA55, try apktool May 08 20:19:49 suck, slow this time May 08 20:19:49 The typing challenge calls it "certification" May 08 20:19:51 102 cos i totally bobbled the last two words May 08 20:19:55 pfn, k, lets race May 08 20:19:59 join again May 08 20:20:04 i did try that cooldman224 but it still seems encrypted May 08 20:20:10 only 88 since my keybboard screwed up s and stuff May 08 20:20:19 meh May 08 20:20:21 <_Auron_> 100 because I suck at typing things I'm not thinking. May 08 20:20:24 bay, 5 Guests May 08 20:20:28 How can you launch 'walking navigation' via an intent. Is there a way I can find out how the gmaps app does it, and copy it? May 08 20:20:29 No idea who is who May 08 20:20:36 You guys need to register! May 08 20:20:59 K1CKA55, i dont know what to tell you. I've used the tool and it has never encrypted the manifest May 08 20:21:08 <_Auron_> 112 now May 08 20:21:09 gah, so slow May 08 20:21:39 <_Auron_> I don't wanna register -_o May 08 20:21:42 pragma-, you chopsticking it? May 08 20:21:42 heh May 08 20:21:49 <_Auron_> lol May 08 20:21:57 I joined after you guys all hit the end May 08 20:22:01 I was wondering wtf to do May 08 20:22:05 then I relaized it was waiting on me May 08 20:22:22 I don't get this join race system :p May 08 20:22:22 <_Auron_> actually I made an account a long time ago May 08 20:22:26 <_Auron_> now that I think about it May 08 20:22:35 I'll try to catch this next race! May 08 20:22:38 <_Auron_> now it's taking eons to log in May 08 20:22:56 72 best yet May 08 20:23:41 so close ! May 08 20:23:54 meh, a little slow May 08 20:23:58 cooldman224 never used achartdemo May 08 20:24:00 <_Auron_> what's the link to join y'alls race again? May 08 20:24:02 is it any good? May 08 20:24:28 t0mless, I like it except for that, I dont think you can reclaim that space where the zoom controls are, once disabled May 08 20:24:44 t0mless, i use androidplot though, wish their site was back up May 08 20:24:46 punctuation :/ May 08 20:24:53 Atarii, http://play.typeracer.com/?rt=trpfn0 May 08 20:25:18 t0mless, im not sure if its me but i think androidplot changes my labels data even though i explicitly create them May 08 20:25:42 eh? why we slowing down, heh May 08 20:25:51 I'm sucking, man May 08 20:25:54 me too May 08 20:25:59 apostrophes after s, and shit May 08 20:26:01 ditto May 08 20:26:04 got me there, too May 08 20:26:52 first :) May 08 20:26:55 These authors need better editors! May 08 20:27:02 My punctuation prediction-fu is failing me May 08 20:27:04 heh, pentadactyl screwed me there May 08 20:27:19 (firefox extension) May 08 20:27:52 ctate, pretty consistently 100, cool May 08 20:28:07 how do I have to define a variable above an onclicklisteners onclick method to use it inside this method? final? May 08 20:28:27 ow May 08 20:28:27 yes May 08 20:28:28 shit May 08 20:28:38 vorwaerts: btw you might want to hit up Java 101 sometime May 08 20:28:39 who is ctate? Chris? May 08 20:28:44 probably? May 08 20:28:46 * ctate = Chris May 08 20:28:51 nice 34 wpm :) May 08 20:28:54 technical difficulties May 08 20:28:57 I think he aborted May 08 20:29:07 yeah, it's going down now May 08 20:29:17 vorwaerts, yeah May 08 20:29:21 ctate, you mean == May 08 20:29:28 or are you assigning yourself a new name? May 08 20:29:30 How do you make the Intel hardware acceleration work? How do you enable it May 08 20:29:37 or a new instance of your name May 08 20:29:54 kaboom May 08 20:29:58 wtf, I have to stop reading this shit May 08 20:30:07 ha ha i mistyped "firey" like four times May 08 20:30:12 finger memory of the mispelling :) May 08 20:30:14 furry? May 08 20:30:18 firey May 08 20:30:21 vs viery May 08 20:30:21 furry May 08 20:30:36 very furry? May 08 20:30:37 can anyone advice some good image hosting with open API May 08 20:31:23 I misspelled so much May 08 20:31:23 Snwspeckle http://developer.android.com/guide/developing/devices/emulator.html#accel-vm May 08 20:31:25 Fatality May 08 20:31:27 Swipe May 08 20:31:32 instead of fatally, swing May 08 20:31:48 my prediction is getting overloaded, need a break May 08 20:32:27 Snwspeckle hardware accelerration is directly above that part too May 08 20:32:35 too much coffee for me May 08 20:32:36 i'm all twitchy May 08 20:32:37 a May 08 20:32:38 nd May 08 20:32:39 mis May 08 20:32:42 and misspelling crap over and over May 08 20:32:43 ok ty May 08 20:32:47 I did without vs within May 08 20:32:48 oops May 08 20:32:51 only works on 32 but machines!?...... May 08 20:32:54 bit* May 08 20:32:54 This is fun May 08 20:32:59 * pfn blames his coffee grinds in his keyboard May 08 20:33:19 but this is enough for today, I'll challenge you guys when I have a proper keyboard handy :p May 08 20:33:29 ctate's probably on a mac, he's already handicapped enough ;-) May 08 20:33:42 This laptop doesn't have the best keyboard May 08 20:33:50 springs are meh May 08 20:34:03 I use a manual coffee grinder at work, grinds get stuck under the keys, heh May 08 20:34:10 since I grind my beans at my desk May 08 20:34:16 My WASD have serious indentations and peeling May 08 20:35:02 I used to be an ESDF user but all the default configs come preloaded with WASD and I got tired of moving everything over May 08 20:35:06 yeah, a mac with a fairly crap chicklety kbd May 08 20:35:27 for gaming? May 08 20:35:34 You have to move E, F, etc over as well... May 08 20:35:40 * pragma- games, yes. May 08 20:35:52 indeed, no fps for me, so none of that... May 08 20:35:56 ctate: uhm, isn't that the definition of mac keyboard? ;) May 08 20:35:59 Most games default WASD to move, and E to use, F to melee, etc. May 08 20:36:05 can you set the size of a compound drawable in a textview? May 08 20:36:11 But if you used ESDF you get more keyspace to bind stuff to on the left side May 08 20:36:22 Lately games are dumbed down enough that it isn't as necessary. May 08 20:36:24 p_l: not all have been that way. i guess maybe these days they might be. May 08 20:36:55 pfn: FPS games are an excellent way to keep your brain neurons hyper and strong, not to mention your other reflexes and situational critical thinking. May 08 20:36:58 * pragma- nods. May 08 20:37:09 FPS gamers are better programmers. May 08 20:37:31 eclipse tells me to remove final - but i need it to be final in a other way: http://screensnapr.com/v/KW8bRi.png May 08 20:37:33 Using IPC/AIDL, how should I propagate an error from an error in the service to the client? May 08 20:37:54 vorwaerts, so make anther variable that isn't final May 08 20:38:24 the sameone again without final and with another name? May 08 20:38:43 Exceptions are out of the question as exceptions are not supported across processes. Should I be using Double instead of double and return null on error? May 08 20:38:55 You really should do some java tutorials too vorwaerts May 08 20:39:51 hmm, the nest thermostat is now available at lowes May 08 20:39:57 I wonder if it's worth picking up May 08 20:40:12 nothing ever *needs* to be final May 08 20:40:20 why did you think it does? May 08 20:40:25 Real men shop at Home Depot May 08 20:40:27 thats not true ctate May 08 20:40:30 nested classes require final variables... May 08 20:40:33 okay, almost never May 08 20:40:36 :P May 08 20:40:38 pfn: ? May 08 20:40:43 indeed May 08 20:40:48 but you could work around that May 08 20:40:55 just don't use stack-local stuff from a nested, and you're ok May 08 20:41:06 so it doesn't strictly need to be... ctate May 08 20:41:12 that ? meant "i have never perosnally encountered this situation in my use of inner classes, and have no idea what you are talking about" May 08 20:41:18 never? May 08 20:41:23 literally never May 08 20:41:28 Where can we change the colors used in an action bar, or does the action bar use images? May 08 20:41:35 example from guava for ease May 08 20:41:52 public void doSomething(int x) { new Runnable() { public void run() { int y = 3 + x; } } } May 08 20:41:53 that wont work May 08 20:41:55 ofc neither have i ever used guava.... May 08 20:41:56 because x is not final May 08 20:42:25 also because i forgot the .run(); May 08 20:42:35 pfn: how much is it? May 08 20:42:36 canadiancow|work, return new runnable, instead May 08 20:42:42 pragma-, like a hundred or something? May 08 20:42:42 oh, you're talking about scope / closure kinds of stuff May 08 20:42:48 ctate, yes May 08 20:42:48 Snwspeckle http://developer.android.com/guide/topics/ui/actionbar.html#Style May 08 20:42:49 pfn: what? May 08 20:42:56 i dont want to return something May 08 20:42:59 yeah, i just flat-out don't muck with closures May 08 20:42:59 i want to run that thing May 08 20:42:59 s May 08 20:43:00 :P May 08 20:43:00 o May 08 20:43:01 May 08 20:43:02 so it never comes up May 08 20:43:03 canadiancow|work, easier to just return something May 08 20:43:11 ctate, sounds painful May 08 20:43:15 ok wrap the whole thin in new Thread(...).start(); May 08 20:43:23 in practice it's a lot less painful than mucking with closures May 08 20:43:24 there are cases where you need stuff like that May 08 20:43:25 ;) May 08 20:43:37 i just flat-out always make everything final May 08 20:43:42 pragma-, I take it back, $249 at lows May 08 20:43:44 pfn: I can't find a price on lowes.com or bestbuy.com, but ebay.com has them going for $350 May 08 20:43:48 http://www.lowes.com/pl_The+Nest+Learning+Thermostat_4294725683_4294937087_ May 08 20:44:06 "don't reference locals" is not something i'd typically find difficult :) May 08 20:44:10 So say I want to change android:actionBarTabBarStyle from the default color of blue to red, how do I alter it, its kind of confusing May 08 20:44:11 huh, I still don't see prices on that page May 08 20:44:19 pragma-, must be the zip code May 08 20:44:20 * pragma- adjusts his javascript filter May 08 20:44:35 change your zip code to a silicon valley zip May 08 20:44:48 yeah, allowed javascript and it autodetected my location and put in a zip for me... $249.00 May 08 20:44:54 Using IPC/AIDL, how should I propagate an error from an error in the service to the client? Exceptions are out of the question as exceptions are not supported across processes. Should I be using Double instead of double and return null on error? May 08 20:45:05 ctate, it's rather useful for any kind of closure May 08 20:45:20 ctate, although, java half-assed it by requiring them to be final... May 08 20:45:55 like i said, i just don't do closures. May 08 20:46:05 then again, the late binding in javascript is a huge source of bugs May 08 20:46:29 you can accompolish exactly the same thing directly, without the potential bugs of referencing transients May 08 20:46:50 pfn, When customizing the action bar, do you actually need to re-create the images for hover etc because it does not say. May 08 20:47:14 Snwspeckle, follow the rabbit hole and look at everything it references May 08 20:47:20 pfn: lots of things in javascript are a huge source of bugs :) May 08 20:47:47 * pfn uses lambdas and closures all the time without bugs referencing transients May 08 20:48:17 but yeah, javascript somehow makes those bugs more visible May 08 20:48:18 * pfn shrugs May 08 20:48:23 or rather, easy to produce May 08 20:48:24 so just call me Ludd. :) May 08 20:48:30 can i define a width and height with BitmapFactory? May 08 20:48:32 certainly May 08 20:48:40 (zero, null, undefined...) :) May 08 20:48:43 i want to punch people when they say instagram on android is pretty May 08 20:48:47 Ludd? i thought you were Chris? May 08 20:49:01 birbeck: +1 May 08 20:49:12 i want to punch people when they say anything positive about it May 08 20:49:13 is instagram worth running? I haven't tried it yet May 08 20:49:13 whats instagram :) May 08 20:49:15 ITS A FUCKING CAMERA APP May 08 20:49:24 :D May 08 20:49:32 pfn> only if you're a barrista May 08 20:49:35 * pfn has been playing a lot of temple run lately May 08 20:49:37 pfn: May 08 20:49:45 canadiancow|work: that 1b thingy fb purchased :) May 08 20:49:56 i know what it is May 08 20:49:57 pfn: ive never installed it personally, i dont need another shitty photo app and i dont need another shitty social app May 08 20:50:09 i have camera and google+ May 08 20:50:11 social sucks May 08 20:50:26 Chainfire, I'm not a barista, but I try? https://plus.google.com/111751695436781052143/posts/XgsuAAqkz5o May 08 20:50:29 heh May 08 20:50:50 pfn: but since they dont follow android design guidelines and dont support api 15, its not worth installing imho, oh and they are owned by facebook now May 08 20:50:58 pfn, thanks lol, just had to do a little more digging. Will these changes over write on all UI's? May 08 20:51:18 no idea what you're changing, so, maybe? May 08 20:51:22 dont support 15??? May 08 20:51:37 birbeck, being owned by facebook isn't terrible May 08 20:51:47 what's terrible is how much they got bought out for, and for the # of employees... May 08 20:52:01 number of employees doesnt mean much May 08 20:52:04 http://www.penny-arcade.com/comic/2000/10/23/ May 08 20:52:09 i got an email from a fb recruiter a few weeks back May 08 20:52:13 canadiancow|work, less dilution in options, etc. May 08 20:52:35 i just mean a one man company can be worth more than a 1000 man company May 08 20:52:49 canadiancow|work, I just mean in terms of how much the emps likely got out of it May 08 20:53:09 why is that terrible May 08 20:53:11 not fair... I need to hit on the next hot thing May 08 20:53:13 im sure they got a lot May 08 20:53:16 because I'm crazy jealous May 08 20:53:20 that's why it's terrible May 08 20:53:22 oh May 08 20:53:22 lol May 08 20:53:23 :) May 08 20:53:24 canadiancow http://cdn.androidcommunity.com/wp-content/uploads/2012/04/gram.jpg May 08 20:53:49 it looks like an iphone app... May 08 20:53:58 if that's the criteria for being pretty... May 08 20:54:07 menu button on bottom, automatic 1* :P May 08 20:54:14 yeah, that looks like shit May 08 20:54:15 probably because it was made as an iphone ap May 08 20:54:18 app May 08 20:54:30 oh birbeck lol May 08 20:54:38 i wouldnt 1star an app for that May 08 20:54:42 i would subtract a star May 08 20:54:51 you lose 1 star if your target is < 14, another if it's less than 11 May 08 20:54:56 what about for the other style guideline ignorance? May 08 20:55:04 <3 MAT showing me duplicate strings and GC roots May 08 20:55:04 tabs at bottom? May 08 20:55:09 right-facing arrows on list items? May 08 20:55:15 yes, yes May 08 20:55:21 yea that screen alone would probably make me one-star May 08 20:55:22 hmm, does the nest have an android app May 08 20:55:24 * pragma- implemented a StringPool class for his app which has tons of duplicate strings. May 08 20:55:24 and the back button at the top? May 08 20:55:25 that'd be kinda useful May 08 20:55:31 why is there no title at all? May 08 20:55:36 String allocations reduced from 5MB to 800K. May 08 20:55:39 who needs a title May 08 20:55:59 and no share options besides facebook and twitter, where is the shareactionprovider? May 08 20:55:59 Sir Cow May 08 20:56:21 hi g00s May 08 20:56:27 birbeck, heh dont get me started May 08 20:56:48 for the longest time we had to do facebook separately on an app i worked on because their fucking ACTION_SEND handler was balls May 08 20:57:00 heh, i remember that May 08 20:57:01 then as soon as we got bought and another ocmpany took it over, they fucked it all up May 08 20:57:04 I foolished and naively assumed the Java compiler was capable of string pooling for me. May 08 20:57:14 and now there are explicit facebook and twitter options May 08 20:57:14 pragma-: heard of flywheel pattern? May 08 20:57:16 pragma- String.intern() ? May 08 20:57:16 canadiancow: it is still balls May 08 20:57:22 it's BETTER May 08 20:57:30 now you can at least share something May 08 20:57:33 pragma-, eh? literals are interned, that's about it May 08 20:57:35 canadiancow, but atleast give share intents as an option May 08 20:57:42 er May 08 20:57:45 wongk: flyweight pattern, sure May 08 20:57:46 flyweight May 08 20:57:46 interning everything else isn't as useful May 08 20:57:50 canadiancow, only if it has a public url i think May 08 20:57:52 i guess...but odnt waste space to have FB and Tiwtter as separate May 08 20:58:36 unless everytime you receive a string, you intern it manually and update your references, pita May 08 20:58:49 the intern memory pool has finite space as well May 08 20:58:56 no, I use a map May 08 21:00:17 i am trying to use a intentservice with a runnable that decrements a number at certain rate. according to commonsware this is not what intentservice is for: http://stackoverflow.com/questions/8101582/android-how-to-run-a-task-via-handler-periodically-within-a-service-intent so I should use a full blown service instead? May 08 21:01:20 welp, time to convert my app from TabHost to ViewPager May 08 21:01:45 * pragma- considers an action bar as well. May 08 21:02:03 absftw May 08 21:03:25 Why was Cursor.requery() deprecated May 08 21:03:37 readme: because it was done one the main thread May 08 21:03:37 they hate simplicity May 08 21:03:38 pragma-, and viewpagerindicator May 08 21:03:40 Using IPC/AIDL, how should I propagate an error from an error in the service to the client? Exceptions are out of the question as exceptions are not supported across processes. Should I be using Double instead of double and return null on error? May 08 21:03:50 pragma-, you need viewpagerindicator to replace tabwidget if you wanna have that visual still May 08 21:05:09 hrm, JakeWharton makes yet another appearance: https://github.com/JakeWharton/Android-ViewPagerIndicator May 08 21:05:17 indeed May 08 21:05:23 g00s: hm, i'm not sure my one row deletion really needs to be on a separate thread :) May 08 21:05:25 o_O May 08 21:05:42 readme: actually, i take that back . activities managing the cursors requery() on the main thread so that was busted. May 08 21:05:48 you can continue to use tabhost with viewpager, but it behaves all fucked up if you want to use a physical keyboard (attached, or separate) May 08 21:06:01 pfn: thanks for the tip May 08 21:06:09 my irc client uses tabhost + viewpager May 08 21:06:14 g00s: man, requery is working really awesome for my use case. May 08 21:06:19 g00s: should I just use it and stick it to the man May 08 21:06:20 input focus is all screwed up when I pair my bt keyboard May 08 21:06:37 it's because tabhost steals the focus to redirect into its own tab content, which doesn't exist May 08 21:08:12 readme: honestly, the use of a deprecated api becomes more of a decision knowing it will be taken away in the future, even if it works. the main issue is whether to do db on the main thread; i tend not to unless its a very simple query (not update) and making it async complicates things too much May 08 21:08:41 and the use of loaders alleviates much of the stuff around requery also May 08 21:08:42 Loaders all the way ! May 08 21:09:45 g00s: it's delete from tbl where id = n; one row only. May 08 21:09:48 loaders feel pretty awkward May 08 21:10:02 * pfn is designing an api around them right now May 08 21:10:06 i found great win in loaders for queries, and AsyncQueryService for writes/updates/deletes May 08 21:10:14 I am not using fragments in this app due to the time constraint I was given by my client who honestly won't give a damn whether the app uses fragments May 08 21:10:14 and man, they're awkward May 08 21:10:24 i'm just not as fast with the new apis yet May 08 21:10:24 yeah, i thought they were awkward also May 08 21:10:28 readme, is this your odesk client? May 08 21:10:31 yeah May 08 21:10:54 readme, how big is the project anyway? rough # of hours? May 08 21:11:00 is there a simple way to set a border on something? May 08 21:11:02 ~40 tops May 08 21:11:08 without adding a shape or view behind it. May 08 21:11:11 as usual, when you have somehting like a loader that hooks into the lifecycle of a fragment or activity, things get kinda wonky with callbacks May 08 21:11:14 maybe drawing something? May 08 21:11:21 readme, pretty nice moonlighting change May 08 21:11:42 pfn: i do it fulltime May 08 21:11:45 but I have clients elsewhere May 08 21:12:06 hmm, good to have a fulltime stream of clients May 08 21:12:18 * pfn should work on finding some of those May 08 21:12:24 this plugin for eclipse which makes it fullscreen on mac works great :) May 08 21:14:14 android is an in demand skill :) May 08 21:14:33 readme, not from my searches on craigslist... May 08 21:14:44 although, I just found a scala + android shop in palo alto May 08 21:14:52 yeah, i'm not so sure either May 08 21:14:55 * g00s == pfn May 08 21:15:01 Does anyone have any suggestions about handling exceptions/errors in an AIDL stub? May 08 21:15:05 gonna talk to them tomorrow and see if it's exciting May 08 21:15:07 g00s: you do not equal pfn! May 08 21:15:09 pfn: ah, i haven't tried CL yet May 08 21:15:19 I do most of my job searches on craigslist May 08 21:15:21 from what i have heard, its easier finding android devs than iOS devs, so relatively speaking ... May 08 21:15:34 I've had lots of success with craigslist, strangely May 08 21:15:37 hardest to find the android & ios dev hybrid. May 08 21:15:44 i guess so many people know java, dinked with android as a hobby, and now are android devs :) May 08 21:15:44 i'm going to learn ios this sumemr May 08 21:15:46 readme, they're all so polarized May 08 21:16:01 g00s: i have a great thing for making the Eclipse window fullscreen on the Mac May 08 21:16:11 ctate: what did you find ? May 08 21:16:23 at the bottom right corner of the window there's a resize handle :) May 08 21:16:30 ctate: :| May 08 21:16:32 pwnz0red May 08 21:17:07 not May 08 21:17:08 (tbqh i don't fullscreen it; the left 1/4 or so of that workspace is free for other windows May 08 21:17:09 http://alblue.bandlem.com/2011/07/full-screen-support-for-eclipse-on-osx.html May 08 21:17:19 fullscreen = broken by design May 08 21:17:19 * pfn needs more monitors May 08 21:17:20 pfn: are you in the bay area May 08 21:17:22 1 monitor for ide May 08 21:17:25 readme, yeah May 08 21:17:31 1 monitor for documentation and other crap May 08 21:17:33 i only have 15" monitor, so fullscreen helps a lot with screen real estate May 08 21:17:36 MDI = broken by design May 08 21:17:52 yeah, on my smaller monitor at home i need to basically take up the whole screen with it May 08 21:17:55 it sux hard May 08 21:17:57 stupid eclipse May 08 21:18:15 i need to get in the habit of maximizing the buffer pane May 08 21:18:20 telling me what is best for my windows = broken by arrogance May 08 21:18:20 eclipse on linux had terrible spacing issues with the themes; not efficient May 08 21:18:30 on windows, stuff was very compact May 08 21:18:34 evancharlton: that's part of why MDI is broken by design :) May 08 21:18:39 i had to use some gtk compact theme or something May 08 21:18:48 readme, are you? May 08 21:18:55 ctate: tiled works nice May 08 21:19:12 I had 3 monitors lined up around me, each one attached to an entirely separate PC, but three PCs controlled by a single keyboardd and mouse which could slide across screen/monitor borders and control the next PC May 08 21:19:16 <3 synergy May 08 21:19:24 pragma-, synergy is nice May 08 21:19:37 s/but three/but all three/ May 08 21:19:39 i want to use synergy to share my mouse with my android device May 08 21:19:47 someone should hack it together :) May 08 21:20:08 is synergy still being maintained ? May 08 21:20:15 readme: I thought I saw that at some point May 08 21:20:16 poor jasts lost his terminal ! May 08 21:20:16 It's also a much nicer set up than sharing two monitors on one PC May 08 21:20:20 *jasta May 08 21:20:27 g00s: I bet that peer guy did it. May 08 21:20:32 evancharlton: hmm, i'll have to look around then May 08 21:20:40 it would definitely save a repetitive strain injury. May 08 21:20:45 g00s: Latest release: 1.4.8 Beta - Apr 12, 2012 May 08 21:20:51 hm May 08 21:20:55 * pfn ordered a clingo desk stand the other day May 08 21:21:00 p_l: eclipse is reasonably comfortable on my monitor at work May 08 21:21:00 maybe i am thinking of something else May 08 21:21:02 hopefully it's good for holding the phone up to work with May 08 21:21:02 i built a stand for my phone out of cardboard and a battery May 08 21:21:05 it's pretty good May 08 21:21:10 which is a 30" monstrosity May 08 21:21:15 it's such a poorly laid out IDE :) May 08 21:21:28 http://www.amazon.com/Clingo-Universal-Podium-iPhone-Devices/dp/B003JTHN4K/ref=sr_1_3?ie=UTF8&qid=1336512072&sr=8-3 May 08 21:21:32 ordered one of those May 08 21:21:38 readme: I built a tablet stand from material from a mainboard box :P May 08 21:21:43 pfn: cool May 08 21:21:45 someone here tells me that it's really good May 08 21:21:46 pfn: sweet May 08 21:21:49 oh hm, tablet stand May 08 21:21:50 Zider: pics May 08 21:21:52 sugru May 08 21:21:55 HMMM. May 08 21:21:55 ctate, phone stand, actually May 08 21:22:00 ctate: I found it annoying on 1280x800, but well. Switched to Idea for speed :) May 08 21:22:04 I just lean my phone against whatever is conveniently nearby. May 08 21:22:08 readme: don't have any.. it's at work May 08 21:22:32 sugru huh May 08 21:22:34 * pfn looks May 08 21:22:42 oh :( May 08 21:23:03 pragma-, doesn't work so well for interacting with the phone without picking it up May 08 21:23:14 also no good if you want to leave usb plugged in and use it portrait (on phones with port on the bottom) May 08 21:23:33 wut http://www.amazon.com/Clingo-Universal-Parabolic-Amplifying-Devices/dp/B003JTHMVO/ref=pd_luc_sim_02_03_t_lh May 08 21:23:44 g00s, cool idea, wouldn't use it, though May 08 21:23:49 readme: but basically it's a triangle shaped piece bent almost double, with another piece across to keep it from flattening May 08 21:23:52 so is there any reason why having a runnable in an intentservice is bad and therefore i should use a service instead? May 08 21:24:04 cooldman224, an intentservice is a service... May 08 21:24:08 cooldman224, what are you getting at May 08 21:24:42 http://ecx.images-amazon.com/images/I/41i1ng%2BY4fL._AA300_.jpg May 08 21:24:48 nice, it even becomes a fan May 08 21:25:00 error: Error retrieving parent for item: No resource found that matches the given name 'android:style/Widget.Holo.Light.Spinner.DropDown.ActionBar'. wahhhh May 08 21:25:10 pfn, yes it is but intentservice is simplier and automatically quits when work is done May 08 21:25:22 pragma-: call it a 'he' and it's a fan-boy :P May 08 21:25:22 Is there a workaround for this?... May 08 21:25:27 how do you attach the phone to the thing? May 08 21:25:30 cooldman224, use the riht tool for the job May 08 21:25:34 is the green stuff sticky? May 08 21:25:37 pfn, http://stackoverflow.com/questions/8101582/android-how-to-run-a-task-via-handler-periodically-within-a-service-intent read commonsware response May 08 21:25:41 pragma-: its for testing orientation changes; if you can do that at 60 rotations per second, your ok :) May 08 21:25:42 Snwspeckle: Build against an api level that has Widget.Holo.Light.Spinner.DropDown.ActionBar May 08 21:25:43 pragma-: probably magnet May 08 21:25:51 I am building with 4.0.3 May 08 21:25:53 .. May 08 21:25:53 it says adhesive-free May 08 21:26:04 Zider: magnets and eletronics aren't friends May 08 21:26:07 pragma-, yeah, it's so sticky but non-residue leaving thing May 08 21:26:15 s/so/some/ May 08 21:26:26 I'll get mine in a few days and see how good it is May 08 21:26:27 Maybe it's not public May 08 21:26:30 someone told me it works really well May 08 21:26:30 pfn, what is riht May 08 21:26:37 pfn: so, like, dirt can stick to it? May 08 21:26:39 my current stand: http://tomdignan.com/files/IMG_20120508_172232.jpg May 08 21:26:41 pragma-: *shrugs* there are a lot of magnet cell phone holders for cars May 08 21:26:43 The google blog uses that some code as an example but it works?... May 08 21:26:44 pragma-, yeah, but you wash it off May 08 21:27:30 pragma-, it's also washable May 08 21:27:38 rinse it under water, or something like that May 08 21:27:47 http://www.youtube.com/watch?v=XXFsMPkc21A May 08 21:28:59 http://www.youtube.com/watch?v=gK3vJ57peK4 :/ May 08 21:29:31 dunno why it got bad ratings May 08 21:30:40 are filenames on the sd card limited to a certain length? May 08 21:30:48 whatever fat32 supports May 08 21:31:23 lol, that deodrant thing at 3:30 is genius May 08 21:31:27 'up to 255' May 08 21:31:29 255 characters I think May 08 21:31:34 3:25, actually May 08 21:35:27 255 for path+filename May 08 21:35:36 http://en.wikipedia.org/wiki/Long_filename May 08 21:47:39 darn, I setup all these colors etc, yet the actionbar isnt being replaced :( May 08 21:48:28 instead of just Holo.ETC, do we use Theme.Sherlock? May 08 21:50:28 if you're using abs, yes May 08 21:51:38 ok, no wonder it wasnt working May 08 21:51:52 Theme.Sherlock.Holo ---> that correct? May 08 21:52:44 55.000+ Twitter usernames and passwords leaked May 08 21:53:03 only 55? May 08 21:53:04 HOW THE FUCK DO YOU LEAK A PASSWORD May 08 21:53:09 Or is Holo not needed pfn? May 08 21:53:10 cooldman224: +1 May 08 21:53:26 canadiancow, 55+ you right May 08 21:54:03 ppl care about twitter? May 08 21:54:11 Does anyone have any suggestions about handling exceptions/errors in an AIDL stub? May 08 21:54:12 Snwspeckle, if you're using abs, then you use the sherlock themes, not holo May 08 21:54:19 at least 55,000 people care ;) May 08 21:54:47 I am using Theme.Sherlock and its saying no resource is found, yes I am using ABS May 08 21:55:06 which resource isn't found May 08 21:55:43 Theme.Sherlock May 08 21:56:09 then you're not including abs properly in your project May 08 21:56:22 I am not having any issues anywhere else though May 08 21:58:19 * pfn shrugs May 08 21:58:29 something about your project configuration is wrong May 08 21:58:34 but I don't know how your project is configured May 08 21:59:10 Ok, I will check the ABS samples to cross check, probably something simple May 08 22:02:18 Do we have to use the Sherlock.Light? May 08 22:02:25 I want to use the dark theme though May 08 22:02:50 wow, i didn't realize dates could be localized so many different ways , separated by '-', '.', ' .', and '/' May 08 22:02:55 you can use light or dark theme May 08 22:03:09 ' .'? May 08 22:03:20 but is the dark theme just Sherlock.? May 08 22:03:24 05 .08 .2012? May 08 22:03:32 Snwspeckle, sure, Theme.Sherlock May 08 22:03:35 pfn: yeah, apparently May 08 22:03:39 odd May 08 22:03:43 hmm let me try the light one.. May 08 22:04:05 values-sk-rSK/donottranslate-cldr.xml May 08 22:04:05 101: "%s. %s. %s" May 08 22:04:36 other way around May 08 22:04:49 oh yeah May 08 22:04:57 5. 8. 2012, weird .sk-ers May 08 22:06:29 I may have fixed it May 08 22:07:24 Dammit, still not showing my colors... May 08 22:08:32 I really hate java for having such a limited support for using switch May 08 22:08:45 well, hate it for lots of reasons, that's more minor than 'really' May 08 22:11:20 so i guess Tizen ditched all the Qt stuff and is not html5, lol May 08 22:11:41 *now May 08 22:12:23 what will be interesting, is if oems see this stuff as viable in low end phones for emerging markets - where i thought android would have gone. but honestly, does android even run well on low end hardware ? May 08 22:12:41 i can see froyo running ok on low end stuff, not ics May 08 22:12:43 it doesn't May 08 22:12:46 Android doesn't run well on high-end hardware May 08 22:12:52 heh May 08 22:12:54 * pfn wouldn't want to run android on any low end hardware May 08 22:15:03 samsung has a barebones Tizen reference device for devs May 08 22:15:16 tizen sounds interesting if it can attain critical mass May 08 22:19:06 but there's so much open-sourced now May 08 22:19:12 there's webos, which has completely fallen off the radar May 08 22:19:21 and then there's tizen... which has a pretty resounding why? May 08 22:19:58 and a pretty resounding "lol" May 08 22:20:15 and b2g May 08 22:20:32 i thought nokia still had some internal os May 08 22:20:34 and bada May 08 22:20:53 Harmattan May 08 22:21:02 Meltemi May 08 22:21:20 g00s: isnt' b2g just android with some slow shit bolted on top? May 08 22:21:42 heh, i'm not familiar with it really May 08 22:22:10 I'm pretty sure it's just android with a gecko interface May 08 22:23:44 values-pt/donottranslate-cldr.xml May 08 22:23:45 98: H\'h\'mm May 08 22:23:49 fuck, i just cant win here May 08 22:24:02 can't even assume ':' separators in time May 08 22:24:35 Uh, there's an entire library for dealing with Time May 08 22:24:39 pfn, Do you think its a better idea to use the sample styled action bar and build fragments on top of it, rather than building from fragments first? May 08 22:25:09 (which handles locales) May 08 22:25:29 pragma-: its not as easy as you think, if you want to present localized and 12/24 hour preference sensitive formats with seconds. the android fcatory methods don't return patterns with seconds May 08 22:25:54 Snwspeckle, huh? what do fragments have to do with the theming the actionbar? May 08 22:25:57 anyone mind explaining me how fragments and an activity work, I am kind of confused a little May 08 22:25:59 i was going to brute force it and append ':ss' but thats not very doable May 08 22:26:02 g00s, easy, search for 'mm' in the pattern May 08 22:26:06 indexOf May 08 22:26:14 charAt(indexOf-1) + "ss" May 08 22:26:16 done May 08 22:26:19 pfn, I am just having some issues using a styled actionbar in the fragment example May 08 22:27:16 pfn: yeah, that will have to work. man i hate weird ass shit like that May 08 22:27:34 DateUtils has great methods for getting settings-sensitive date formats May 08 22:27:41 but they totally foobarred the time May 08 22:28:10 I have a question, if an Activity is like the wrapper for a fragment, how do fragments work basically? Confused May 08 22:28:25 IDEA users? how can i quickly get like a popup to see a constant's value? May 08 22:28:43 slam face into keyboard May 08 22:28:45 hard May 08 22:29:10 ctrl q maybe May 08 22:29:39 SimonVT yes! cheers May 08 22:30:45 f1 as well apparently May 08 22:31:19 "User Operation is Waiting" May 08 22:31:22 dear eclipse: May 08 22:31:23 GFY May 08 22:31:27 - evancharlton May 08 22:31:49 im doing a clean install of eclipse ide for android dev, do i want "eclipse classic" or "eclipse java ee?" May 08 22:31:58 brx_, classic is fine May 08 22:32:04 roger that May 08 22:32:35 I always spring for Eclipse Premium Plus with Unlimited Compilation™ May 08 22:33:09 i just need bog standard tbh May 08 22:33:22 dear evancharlton: May 08 22:33:23 NTY May 08 22:33:25 - eclipse May 08 22:36:35 eclipse schmeclipse May 08 22:37:06 Jake, I am using your styled demo but when I go to search, I cannot move upwards by clicking the icon? May 08 22:37:26 Its not cancelling the current search bar May 08 22:40:43 I also found 2 bugs May 08 22:41:09 The gradient does not work and when you click the refresh button, the blue pull down gradient appears but does not disappear, that shouldnt even be happeneing May 08 22:41:13 happening* May 08 22:53:31 Hey question, do you guys like to be able to scroll left and right in a tab UI or do you like to just click the different tabs? May 08 22:53:41 Snwspeckle: both May 08 22:55:11 wow , imdb just crashed all of my chromes … again May 08 22:55:40 p_l, why should I not use the swiping? May 08 22:56:00 wow i've never seen anything take down the whole chrome app before - very impressive May 08 22:56:10 Snwspeckle: I meant that I like both May 08 22:56:18 as in, both being present May 08 22:57:28 So basically being able to swipe and select is the best in your opinion? May 08 22:58:01 yeah May 08 22:58:31 whether I select or swipe might depend on specific phone, hand size relative to it, which hand I'm holding it in and what position etc. May 08 22:59:41 got yea May 08 23:00:49 those are the annoying little bits that many application (and hw) developers forget May 08 23:00:57 sometimes May 08 23:01:20 * p_l ranted enough about hw buttons May 08 23:01:30 I am fully planing my full app out, I am currently desiging the GUI whihc is actually pretty difficult.. May 08 23:01:38 which* May 08 23:06:37 Making a custom styled fragment based tabs and pager is so hard... May 08 23:09:09 hi all, I would like pop up a screen with a text box, enter some text and return that text back into the original activity. Does anyone know how I can do this? I know I can launch another activity from one by using an intent. But I'm not sure how to pass back the results. May 08 23:12:34 uh, so that eclipse full screen plugin disabled my cursor and backspace keys May 08 23:12:43 .. May 08 23:12:57 well just don't make mistakes May 08 23:13:52 without the cursor keys, i'll just have to write everything linearly May 08 23:15:17 yeah, because the mouse is for losers May 08 23:18:00 Hey guys, is there any way to make a SlidingDrawer control slide OVER a MapView? May 08 23:18:26 Right now, it will slide up to the map, but it stops there. I can't get it to go above the MapView. I'm thinking in terms of like... z-index here. May 08 23:28:29 Do I need to use Fragments to do this? May 08 23:30:47 Chronax: off the top of my head, i don't think you would need fragmnts for this May 08 23:30:59 but the mapview and slidingdrawer in a framelayout or something May 08 23:31:22 did google ever come out with a mapfragment ? May 08 23:32:55 a quick googling of it reveals nothing, unless it has an obscure name May 08 23:32:59 oh, its just the compat lib http://code.google.com/p/android/issues/detail?id=15347 May 08 23:33:23 anyone know whether it's possible to set click listeners on a toast? I'd like to be able to close a toast if someone clicks on it May 08 23:33:46 .. that sounds horrible, seanoshea May 08 23:33:55 seanoshea: is this for a wak-a-mole game ? May 08 23:33:57 anyway, no, you can't do that. May 08 23:34:18 evancharlton ok May 08 23:34:30 g00s - nope, its just for some messaging in an app May 08 23:34:40 protip: toasts are bad UI. May 08 23:34:41 :) May 08 23:34:51 ctate - thanks May 08 23:35:02 oh noes, here we go again with toasts May 08 23:35:04 We need subclasses that do more things, like ButteredToast, ToastnJam May 08 23:35:38 I only use toasts as a notification that something I started in the background has finished May 08 23:36:18 i use them the way the aosp do, which is apparently bad May 08 23:36:25 aosp apps, like contacts May 08 23:36:40 see what you get for studying google code :D May 08 23:37:24 google is also moving away from them May 08 23:37:55 g00s http://www.amazon.com/Bacon-Hot-Sauce/dp/B003KRESRQ?tag=dealswoot-20 May 08 23:38:00 just showed up on deals.woot May 08 23:39:04 the review spectrum there does not inspire confidence May 08 23:39:21 t0mless: haha May 08 23:39:51 i would hang the bacon air freshner in my truck though May 08 23:40:20 baconnaise ? ok, even too kinky for me May 08 23:40:47 t0mless: http://www.amazon.com/101-Things-To-With-Bacon/dp/1423620968/ref=pd_sim_gro_9 May 08 23:40:54 only 101? pfft May 08 23:41:57 has anyone seen any specs for any xhdpi tablets? May 08 23:42:00 i know ive seen hdpi May 08 23:42:01 anyone here use antlr stringtemplate on android? looks like antlr and stringtemplate have circular dependencies, ugh May 08 23:42:56 or at least stringtemplate depends on antlr May 08 23:45:39 canadiancow|work i think samsung is working on one, idk if its xhdpi tho May 08 23:46:30 thanks :P May 08 23:46:43 * jug6ernaut knows he didnt really answer anything xD May 08 23:46:58 what dpi does something have to be to classify as xhdpi? May 08 23:48:57 320 I think? May 08 23:50:51 maybe just higher than like 280 May 08 23:51:01 Does anyone have any suggestions about handling exceptions/errors in an AIDL stub? May 08 23:51:13 the graphic on http://developer.android.com/guide/practices/screens_support.html is not very acurate May 08 23:53:10 IIRC, xhdpi is ~300-350 May 08 23:53:25 but I don't have any data to back that up May 08 23:53:33 xhdpi is nominally 320, yes May 08 23:53:35 Though, isn't it up to the OEM to have the build.prop set anyway May 08 23:53:42 damn it! values-ja/donottranslate-cldr.xml May 08 23:53:42 97: h:mma May 08 23:53:48 so they could say hdpi even if they're at 300 May 08 23:53:53 or say xhdpi if they're at 300 May 08 23:54:09 t0mless: there is "retina" and "non-retina" May 08 23:54:11 * g00s runs May 08 23:54:17 t0mless: sure, but Google could choose to fail them at CTS May 08 23:54:23 if that's a CTS test, anyway May 08 23:54:26 * t0mless tears out g00s retinas May 08 23:54:26 *nominally* 320 May 08 23:54:39 landscape-no-retina May 08 23:54:44 :) May 08 23:55:31 the madness has to end; android just needs to handle svg internally or something May 08 23:55:45 yeah, lack of proper vector graphics is annoying May 08 23:55:48 btw, canonical reference for it: http://developer.android.com/reference/android/util/DisplayMetrics.html#DENSITY_XHIGH May 08 23:56:04 especially since I hven't seen any useful tool to create even the existing vector bitmaps May 08 23:56:07 t0mless: yes, it's up to the OEM May 08 23:56:20 lying about the density is not usually a good idea, though; cf the Galaxy Tab May 08 23:56:51 there *is* proper vector graphics support for icons May 08 23:56:56 to wit: you don't get any. May 08 23:57:04 hahahahah May 08 23:57:06 ctate++ May 08 23:57:48 Making a custom styled fragment based tabs and pager is so hard... May 08 23:58:21 anyway, fwiw, there are tools like http://android-ui-utils.googlecode.com/hg/asset-studio/dist/index.html May 09 00:01:53 Hey guys is there anyway to make like custom alerts in a ui? May 09 00:02:01 what May 09 00:02:12 [19:57:06] ctate++ May 09 00:02:14 what's the result of that? May 09 00:02:18 ctatf? May 09 00:02:50 after enough of them i level up again May 09 00:03:01 :) May 09 00:03:18 lol May 09 00:03:39 i level up all the time May 09 00:03:53 canadicancow-- May 09 00:04:01 i was waiting for that May 09 00:04:07 :( May 09 00:04:45 but anyway May 09 00:05:27 careful you don't overflow, though May 09 00:05:45 That only happens when I drink too much. May 09 00:05:59 JakeWharton overflows a lot May 09 00:06:09 silence cow May 09 00:06:25 i need to come up wiht a witty joke about ABS now May 09 00:06:30 i'll underflow your buffers ;D May 09 00:06:36 or overflow May 09 00:06:44 ABS is great until you give it a shot of whiskey May 09 00:06:47 right evancharlton? May 09 00:06:54 whatever Floats your 0xBOAT May 09 00:07:03 thats not valid May 09 00:07:09 so's your face May 09 00:07:10 s/O/0 May 09 00:07:20 yes t0mless, because the O was the only problem May 09 00:07:23 canadiancow http://bit.ly/JWUFSM May 09 00:07:25 :P May 09 00:07:28 shush May 09 00:07:29 haha May 09 00:07:33 * JakeWharton high fives t0mless May 09 00:07:39 T is totally a hex character May 09 00:07:45 or it was a 7 and you're just high May 09 00:07:50 let's go with that May 09 00:07:51 i am drinking May 09 00:08:13 see above re overflow May 09 00:08:19 \o/ May 09 00:08:30 Do you guys think the facebook and Steam left region navigation is a good method? May 09 00:08:33 Beer is delicious though so.... May 09 00:08:40 :D May 09 00:09:01 * ctate has never run Steam on Android, and is dubious about the whole premise May 09 00:09:04 the steam app is a bunch of crock May 09 00:09:31 but no, those nav methods are stupid May 09 00:09:39 action bar list nav would be better May 09 00:11:37 in fact, I have no idea why FB doesn't use Action bar May 09 00:11:54 they have some shitty internal implemnetation May 09 00:12:12 fb's UI is iOS clone May 09 00:12:16 ^^^ May 09 00:12:17 annoying May 09 00:12:56 oh this is a winner May 09 00:12:59 gotta screen cap it May 09 00:13:16 doit May 09 00:14:13 I have no idea why Twitter doesn't use the action bar May 09 00:14:23 48dp of screen space wasted on a stupid unfunctional bird May 09 00:14:27 because they all sucks May 09 00:15:11 http://dl.dropbox.com/u/3573503/device-2012-05-08-171342.png May 09 00:15:27 I think their proportions are off May 09 00:15:27 JakeWharton: it used to, back when virgil did it May 09 00:15:37 yeah but it was ugly then May 09 00:15:45 t0mless: O_O May 09 00:15:46 lol t0mless May 09 00:21:55 t0mless: ha, one of my orkers comments: May 09 00:22:16 * ctate | snatching defeat from the jaws of victory there. all they needed was a max width for that thing. May 09 00:22:28 indeed May 09 00:22:35 or a less stupid nav May 09 00:23:00 less stupid nav May 09 00:23:13 get back to work, you May 09 00:37:08 you're at work at 7-8P? =o May 09 00:37:30 burnout recipe May 09 00:40:30 =o 55k twitter accounts were hacked and leaked. May 09 00:40:36 o_O May 09 00:40:48 url? May 09 00:40:54 http://www.airdemon.net/hacker107.html May 09 00:41:02 better check if you're in there :) May 09 00:41:12 how do you leak a twitter account? May 09 00:41:28 are the usernames all public anyway? May 09 00:42:15 ahh, passwords were leaked May 09 00:47:29 You all familiar with any way to make a SlidingDrawer always be partially opened? May 09 00:47:58 I'd like it to be partially opened to show the contents, but then allow it to be pulled all the way open. May 09 00:50:26 stops parsing xml when it gets to html encoded character... i tried: String decoded = Html.fromHtml(encoded).toString(); May 09 00:50:35 readme: no way those are all real May 09 00:50:36 decoded is same as encoded :< May 09 00:51:10 maraz: its not like you can't check :P May 09 00:51:17 it's at the top of HN so I think it's somewhat serious May 09 00:51:41 readme: some are probably stolen, there are plenty of real-looking email:password combos which have passwords that are very unlikely to be recovered from a hash May 09 00:52:12 readme: but there are lots and lots of random_name + random_char(rand(3,5)) style usernames with exactly 8-character "strong" passwords May 09 00:52:58 or does twitter append the username with something in case of collision? May 09 00:52:59 i forget May 09 00:53:44 there are definitely lots of those "Yvonnerptxs" usernames, the only google hits of which are the "leaks" itself May 09 00:54:24 yeah they were strange looking indeed. May 09 00:54:59 could be spam accounts though May 09 00:55:27 now that i think of it, that's probably it May 09 00:57:45 Is it easy to implant a custom styled actionbar with tabs and pager because fragments, I feel are very unorgranized.. May 09 00:58:18 Anyone? May 09 00:58:54 Anyone get my last post? May 09 00:59:54 you feel fragments are unorganized May 09 00:59:56 you're wrong May 09 01:00:01 wtf is going on May 09 01:00:16 I keep getting invite to this CTCP thing!!!! May 09 01:00:20 ctate, anyone? kick incog May 09 01:00:30 ? May 09 01:00:33 ban May 09 01:00:36 whatever May 09 01:00:37 well look at that May 09 01:00:38 Kick incog, its screwing my irc May 09 01:01:08 kicking him won't prevent the ctcp's to be honest May 09 01:01:11 get him klined May 09 01:01:42 its driving me nuts! May 09 01:02:09 huh? May 09 01:02:48 But pfn, is there any easy way to create the tabs with pager and a custom nav bar that is not messy? May 09 01:03:34 Snwspeckle: learn to use /ignore May 09 01:03:52 reported him to staff May 09 01:03:52 Snwspeckle, fragments aren't messy May 09 01:04:01 fragments are quite elegant, actually May 09 01:04:40 It doesnt take much know how to get them to work for you either May 09 01:04:55 * p_l woners what was the spam about, as it somehow never reached him May 09 01:05:20 and there are samples May 09 01:05:41 I just got it p_l this stupid bot picks up your text then does something dumb like "oh this is illegal" and then has this huge link, as if a dev in here is stupid enough to think "OMGZ I BROKE DE LAW" May 09 01:05:50 p_l: I can send you a log if you want May 09 01:06:19 http://pastebin.com/9pm29mym May 09 01:06:38 pretty much he is repeating anything I say and then inviting me to the #shut_up_faggot channel May 09 01:06:44 /ignore May 09 01:06:53 I am using the samples and I get how they work but I think integrating the custom style is difficult with fragments May 09 01:07:01 Test May 09 01:07:10 ... May 09 01:07:11 jbroome: hey May 09 01:07:27 time to lay down the banhammer :P May 09 01:07:31 t0mless: hm, in here? May 09 01:07:35 yea May 09 01:07:41 seems to be only select users though May 09 01:07:42 readme: it's not everyone afaict May 09 01:07:43 t0mless: what nick? I think I already had him on ignore. May 09 01:07:48 ah i see. May 09 01:07:49 incog May 09 01:07:49 incog May 09 01:07:51 I am getting the stupid spam attack! May 09 01:07:58 Snwspeckle: we know; chill. May 09 01:08:03 right yeah, it might be a bot, you know May 09 01:08:03 Snwspeckle: just block him, sheesh May 09 01:08:08 block "it" May 09 01:08:10 readme: no, I responded to him May 09 01:08:11 I tried ignore, not working? May 09 01:08:19 I reported him to #freenode staff May 09 01:08:19 Snwspeckle: try it better May 09 01:08:20 /block May 09 01:08:22 evancharlton: maybe he passes the turing test ;) May 09 01:08:22 Snwspeckle, how is integrating style into your fragment at all difficult May 09 01:08:30 just in case I'm banning that bot where I have rights May 09 01:09:07 me too May 09 01:09:10 sweet, itunes just got Predators :) May 09 01:09:12 ...in #foreveralone May 09 01:09:17 ^ +1 May 09 01:09:24 .:18:08:09:. ( +jbroome ) t0mless: staff isn't on the access list, your regular chanops will need to whack him May 09 01:09:36 pfn, would you add the custom style on the fragment_tabs_pager layout? May 09 01:09:38 ctate, romainguy, Leeds, lov ^ May 09 01:09:48 Since it is called when the fragment for tabspager runs? May 09 01:09:53 t0mless: this kind of reaction just encourages the troll to come back from his other 100 proxies after his ban May 09 01:09:56 just ignore May 09 01:10:06 t0mless: it won't block it May 09 01:10:08 unless you enjoy this :) May 09 01:10:10 he's doing it out of band May 09 01:10:20 yea, I mentioned that May 09 01:10:26 but he's getting the nicks from the chan May 09 01:10:34 though he's not doing it to me anymore May 09 01:10:40 there we go. May 09 01:11:04 if he comes back I'll just write an irssi script to forward it all to jbroome ;-) May 09 01:11:11 heh May 09 01:11:17 why not just forward it back to him :) May 09 01:11:26 because INCEPTION May 09 01:11:30 because that won't get him k-lined May 09 01:11:31 like punching yourself in the eye May 09 01:11:33 because it's probably just a bot script that doesn't see any inut May 09 01:11:34 input May 09 01:11:42 t0mless: that's not true May 09 01:11:53 discussionTopic.nex() May 09 01:11:57 fail May 09 01:11:59 lol May 09 01:12:01 totally May 09 01:12:04 have a good night y'all May 09 01:12:11 i blame Colloquy May 09 01:12:16 i think it was jbroome all along May 09 01:12:21 :) May 09 01:13:16 heh. the spammed text is quite ingenious May 09 01:13:28 I wonder if you would crash the freenode server if you made a script to say everything he noticed you in the channel so he would notice you that text again May 09 01:13:55 rate limiter would start, I think May 09 01:14:01 it would suck for a while, though May 09 01:14:15 anyway, that's not a spammer, that's a script kiddie May 09 01:14:33 one and the same, my man May 09 01:15:37 what kind of music do you play at an Android event? May 09 01:15:44 well, would be more ingenious if not for the stupid content of the JS script ;) May 09 01:16:35 JakeWharton what an odd question.. what type of event? May 09 01:16:42 JakeWharton: lady gaga, poker face May 09 01:16:46 a conference event May 09 01:17:15 shit, toPattern() is in SimpleDateFormat, not DateFormat. this is the most convoluted pile of shit May 09 01:17:39 and then ... during the party afterwards? or as background music May 09 01:17:48 yeah, incog is spamming me now too May 09 01:17:50 oh nice, incog is messaging me May 09 01:17:51 :) May 09 01:17:52 background music May 09 01:17:56 I wonder how he's getting the channel data May 09 01:17:56 I really need to take a class on Android lol May 09 01:17:58 must have two nicks May 09 01:18:00 someone ban his alt May 09 01:18:02 g00s: yeah the date/time classes in Java are obnoxious May 09 01:18:14 JakeWharton well for background i would go for something without lyrics May 09 01:18:15 g00s: you should try Joda Time May 09 01:18:16 Admins, hes back btw May 09 01:18:18 Snwspeckle: Reto Meier just published a new edition of his book. Maybe check it out? May 09 01:18:31 is he still spamming you Snwspeckle? May 09 01:18:41 romainguy_: the Joda time library has an issie on android, takes about 15s to start - parsing its tz database is slow May 09 01:18:41 readme: random sampling of priv messages (i.e. what you talk) May 09 01:18:42 I am getting the spam still :( and I will Jake May 09 01:19:00 Snwspeckle: /ignore incog May 09 01:19:02 Snwspeckle: learn to use /ignore and /block May 09 01:19:07 g00s: gah May 09 01:19:08 incog is in the chan atm, he changed his ident id May 09 01:19:11 why do i keep getting The specified child already has a parent. You must call removeView() on the child's parent first when trying to create a FragmentStateAdapter or FragmentAdapter to be used with a ViewPager? May 09 01:19:13 what a silly bot May 09 01:19:14 now that's a ban :) May 09 01:19:16 well, was May 09 01:19:22 When I do /ignore incog, it says usage etc May 09 01:19:34 Snwspeckle: /ignore *!*@*.bb.sky.com ALL May 09 01:19:39 ohh May 09 01:19:53 thanks May 09 01:20:12 readme: that's a bit wide, isn't it? May 09 01:20:28 how about /ignore * May 09 01:20:30 :) May 09 01:20:38 I got it working :P May 09 01:20:39 g00s: I actually start my ignore list with that May 09 01:20:46 well, i would ignore everybody except romain, ctate for max productivity May 09 01:20:50 p_l: i think it's a safe bet May 09 01:21:01 1 *: JOINS PARTS QUITS MODES <--- May 09 01:21:23 the rest contains exceptions for nicks I want to be informed about May 09 01:21:25 heh May 09 01:21:32 Ok I am going to implement fragments now, YAY :p May 09 01:21:45 JakeWharton: how about Ewan Dobson, Time II May 09 01:21:51 and as of now... 2 blocked nicks, pragma- and now GNAA puppet incog May 09 01:21:52 I have something similar p_l May 09 01:22:06 http://www.youtube.com/watch?v=eXqPYte8tvc May 09 01:22:28 p_l: bah, pragma- is a good guy these days. May 09 01:22:46 readme: he's taking his meds for now, yeah May 09 01:22:49 :D May 09 01:23:12 taking your meds is good. If you stop, you might wake up and question your identity... May 09 01:24:33 if i ever wake up and see a red pill andblue pill, i take the red pill May 09 01:25:02 so, Sony Smartwatch for around US$130... waste of money or not? May 09 01:25:20 is that like the moto one ? May 09 01:25:43 looks cool May 09 01:25:45 Leeds: given I just spent almost that just to eat steak and get drunk, i'd say it's money well spent. May 09 01:25:48 I actually want one May 09 01:25:57 i've got a liveview, smartwatch next, hopefully May 09 01:25:59 http://www.groupon.hk/deals/shopping/Red-Hare-Limited/716067826 May 09 01:26:10 can you write apps for it ? May 09 01:26:12 yes May 09 01:26:18 \o/ May 09 01:26:23 and it's kind of a niche market May 09 01:26:35 g00s: matrix was simple. Too simple. May 09 01:26:45 now only if it had BT 4 Low power, and android had support for that as well May 09 01:27:06 oh well, will wait for smartwatch2 and jelly bean or greater May 09 01:27:10 or wait for the pebble? May 09 01:27:38 personally i like my Suunto May 09 01:27:52 i rely on that when weather is bad, outdoors May 09 01:28:00 but for fartknocking, this looks nice May 09 01:29:38 Leeds: is pebble even android ready yet? last I read about it, android was a consideration but no concrete plans May 09 01:29:49 I mean, bluetooth for android, anyway. May 09 01:29:59 obviously bluetooth is a standard. May 09 01:30:10 but something about the version of the bluetooth standard. I don't remember precisely. May 09 01:30:42 Oh, front page. "For iphone, and android" May 09 01:32:18 Wrong usage, of comma May 09 01:32:25 iphone should be placed at the end there, consider that android has more market share and also comes first alphabetically May 09 01:32:53 JakeWharton: they're trying to emphasize that "and android" is an after-thought May 09 01:33:23 oh, there's no comma in the actual copy May 09 01:33:32 I just put it in to emphasize my distaste that iphone was first. May 09 01:33:46 see, I was right May 09 01:33:51 What causes the R cannot be resolved errors again May 09 01:34:05 Snwspeckle: doing it wrong May 09 01:34:05 JakeWharton: decide on any music yet? May 09 01:34:11 ... May 09 01:34:15 you have resources that have errors so R isn't being generated May 09 01:34:37 JakeWharton: http://candyrat.com/ -- this is my favorite label.. but I don't think most of it is very well known.. most of it is purely instrumental. May 09 01:34:52 I passed on some recommendations May 09 01:34:58 and recommendations of what not to play May 09 01:35:07 what were your nots May 09 01:36:10 dub step, anything radio-worthy May 09 01:36:10 hrm May 09 01:36:18 haha dubstep May 09 01:36:42 fail eclipse is no longer responding.. May 09 01:37:23 JakeWharton I just pulled from /dev this morning May 09 01:37:32 and now I'm getting a crash in onCreateOptionsMenu May 09 01:37:42 http://pastebin.com/7K6RJ0TC May 09 01:41:16 weird, I added the fragmenttabspager and tabs aren't showing? 0_o May 09 01:43:08 any reason why line 27 is giving the following error? "The constructor HttpPost(String, ArrayList) is undefined" http://pastie.org/private/otmied02okjyjvdunprq1w May 09 01:45:19 dschuett: erm... because that's not a valid signature for the constructor for that class? May 09 01:46:23 is that a trick question? May 09 01:47:39 Leeds, sorry... i'm a complete noob. I'm looking at a way to send text input parameters to a php script and send back JSON and parse with java May 09 01:47:52 Awesome, got the fragments running, now its time to see about custom styling this... May 09 01:48:19 dschuett: so, you just guessed at the API? May 09 01:48:24 fragments have nothing to do with style May 09 01:48:29 they are management containers around a view May 09 01:48:37 pure Java objects May 09 01:50:13 Leeds, pretty much... i've been doing some reading, but obviously not the right content May 09 01:50:31 dschuett: http://developer.android.com/reference/org/apache/http/client/methods/HttpPost.html maybe May 09 01:52:24 Thanks, Leeds. May 09 01:54:29 JakeWharton im still thinking of ABS jokes May 09 01:55:10 not holding my breath May 09 01:55:13 Curious, if your altering the colors of the actionbar, do you have to overwrite the default themes with custom images? May 09 01:55:26 canadiancow|work: presumably the quickstart guide is called 8-minute ABS? May 09 01:55:27 yes May 09 01:55:31 Darn! May 09 01:55:35 darn? May 09 01:55:36 it's easy May 09 01:55:45 ABS is puking errors all over the place May 09 01:55:47 Snwspeckle: http://jgilfelt.github.com/android-actionbarstylegenerator/ May 09 01:55:49 shouldn't have given it that whiskey May 09 01:55:59 I find it sort of hard, I am using that tool jake but its missing radio buttons and some other stuff May 09 01:56:02 checkboxes May 09 01:56:24 http://android-developers.blogspot.com/2011/04/customizing-action-bar.html May 09 01:56:35 I am following that tutorial now May 09 01:56:42 And we use Theme.Sherlock instead correct? May 09 01:56:43 you have to override themes twice May 09 01:56:46 like double override May 09 01:56:48 grab the assets from Android and customize them yourself to your liking May 09 01:59:31 sigh, v4 support jar is about 250Kb May 09 01:59:43 too big? May 09 01:59:55 hopefully the compile process just grabs the select bits of code that I use and not all of it, right? May 09 02:00:00 no May 09 02:00:02 proguard May 09 02:00:08 or do I actually end up including the whole jar in my apk? :( May 09 02:00:15 250k is like, nothing May 09 02:00:25 especially if you consider what you're getting for it May 09 02:00:54 a pretty bar? May 09 02:01:12 i don't recall there being a bar May 09 02:01:44 wait what are we talking about May 09 02:01:49 support library May 09 02:01:50 * pragma- points at canadiancow|work May 09 02:01:52 oh May 09 02:01:55 i thought abs May 09 02:01:57 he's confused because he's supposed to be working May 09 02:02:01 FRAGMENTS FOR ALL! May 09 02:02:08 JakeWharton, Is there a reason the resource (Widget.Theme.Sherlock.ListPopupWindow) cannot be found? May 09 02:02:22 * pragma- snaps his fingers. May 09 02:02:34 he's confused because he's supposed to be working May 09 02:02:34 drop Theme May 09 02:02:45 all the styles are in abs__styles.xml May 09 02:02:56 they're just the Holo names with Holo replaced by Sherlock May 09 02:02:57 ok May 09 02:03:00 airport, bye May 09 02:03:09 So just Sherlock acts as the Holo theme? May 09 02:12:18 what a great time we live in, eh May 09 02:16:37 osxorgate: why? May 09 02:17:03 wireless internet for example May 09 02:17:49 my internet isn't wireless May 09 02:17:50 so easy to take all that stuff for granted May 09 02:17:53 i have to run a cable to my modem May 09 02:17:58 does anyone know if that new actionbar tool is able to generate radio/check buttons? May 09 02:18:00 I need them sort of May 09 02:18:08 what May 09 02:18:24 you mean the theme generator? May 09 02:18:29 yea May 09 02:18:31 no May 09 02:18:34 darn May 09 02:18:38 It generates themes for the action bar May 09 02:18:41 Guess I wont be overwriting those yet May 09 02:18:49 Theme generator? May 09 02:18:57 what's wrong with the built in android ones? May 09 02:19:26 I need a sort of red scheme but the default ones I believe will work May 09 02:19:47 http://jgilfelt.github.com/android-actionbarstylegenerator/index.html - generator May 09 02:19:51 very good tool May 09 02:19:52 not that hard to style those either May 09 02:21:57 interesting May 09 02:23:29 If we want to use the default checkboxes and radio buttons, how do we say it in our styles.xml? May 09 02:24:40 you... don't May 09 02:24:48 you just leave them alone May 09 02:24:54 and then it will be defaults May 09 02:25:04 ok May 09 02:25:33 Hey everyone, I have an architectural question I'd like some advice on if anyone is willing. My application uses XMPP to connect to our backend to do various kinds of communication. As I prototype this app (it currently works fine, but only as a single Activity), I'd like to move the XMPP session into a background service. I've read a lot about services, but I was wondering what the best approach would be to "keep alive" a sessio May 09 02:25:45 I'm really just looking for what might be the best design approach here... May 09 02:26:49 cubicool: I may be wrong, but I thnk there is something in Android for simple communication for a service to an activity May 09 02:26:52 Well I got no errors, lets see if this all worked :P May 09 02:27:54 hm � May 09 02:29:10 drpenguin: I can communicate with the service easily enough using Message/Handler... May 09 02:29:27 I'm just wondering what the best approach is to keep my session alive without forcing the CPU to stay awake forever. :) May 09 02:30:13 God they need to fix debugging with eclipse, so shitty May 09 02:31:11 I seem to remember it worked ok May 09 02:31:12 cubicool: well wouldnt that depend on how the session is ultimately implemented? like, is it a TCP session or UDP session for example? May 09 02:31:31 Anyone else have problems uploading an apk to an actual plugged in phone?... May 09 02:31:45 Snwspeckle: depends on what ou mean by problems May 09 02:31:48 Snwspeckle no May 09 02:31:56 my phone keeps going online and offiline... May 09 02:32:01 it wont push the .apk... May 09 02:32:08 try a different usb port May 09 02:32:13 First off, is the phone a Custom rom or stock rom? May 09 02:32:26 CM9. May 09 02:32:29 Galaxy Neuxs May 09 02:32:31 Nexus* May 09 02:32:31 Theres your problem right there May 09 02:32:37 you think? May 09 02:32:41 I had issues with CM9 on my Captivate with usb May 09 02:32:45 I had the same problems with previous ones May 09 02:32:51 Let me rephrase my question: what is the best way to have a thread sleep indefinitely? (In my case, this thread will have spawned off other threads that handle work, I just need to keep the parent alive without waking up the machine TOO often :)) May 09 02:33:14 cubicool: have it wait on a 0 permit mutex? May 09 02:34:21 WTF, my phone pushes this time, then I go to push a small patch, device not found.... May 09 02:34:43 Snwspeckle: do ADB over wifi, it works without a problem May 09 02:34:50 really? May 09 02:34:55 Havent tried it yet May 09 02:35:00 it's awesome May 09 02:35:04 Yeah it works, I love it May 09 02:35:14 Well, I loved it, my Captivate is bricked, had to replace it May 09 02:35:20 bummer May 09 02:35:30 I use wifi adb for my tablet all the time May 09 02:35:40 Im trying to fix it, but it isnt looking good, I cant get it to flash anything even from CWM, but thats not a convo for here :P May 09 02:35:55 hi all, when I'm retrieving extra data from an intent, I'm getting this exception thrown: expected String but value was a android.text.SpannableStringBuilder May 09 02:36:01 does anyone know how to fix this? May 09 02:36:20 don't give the method a SpannableStringBuilder May 09 02:36:27 and give it a String instead May 09 02:36:32 do you connect to localhost or what May 09 02:36:56 Snwspeckle if you can get your device to connect on usb, do adb tcpip 5555 May 09 02:37:27 do I perform that command on CMD? May 09 02:37:29 then do adb connect May 09 02:37:30 Snwspeckle: what I usually did was enabled adb over wifi, did adb connect address:5555 or whatever port it was, and that was it May 09 02:37:41 if that's the console you use, yea May 09 02:38:12 adb tcpip 5555 enables the adb over wifi May 09 02:38:16 there are apps that do it too May 09 02:38:36 if it just won't detect it on usb and you're rooted you can do it from terminal on the phone May 09 02:38:52 just don't remember the setprop command May 09 02:39:00 somemthing like setprop adb.tcpip.port 5555 May 09 02:39:42 should I unplug my phone from the computer to ensure its over wifi? May 09 02:39:56 yea, after you do the adb tcpip 5555 May 09 02:40:06 On the phone? May 09 02:40:09 no May 09 02:40:25 protocol fault on windows? May 09 02:40:26 weird May 09 02:44:09 huh May 09 02:44:25 this is weird May 09 02:44:32 what is? May 09 02:44:43 just put my tablet back into adb wifi, it's super awesome May 09 02:44:47 doing these commands May 09 02:44:53 I am on the terminal on my phone May 09 02:45:08 i'm not sure that works on ics May 09 02:45:33 and i'm not sure that is the property May 09 02:45:38 hmm May 09 02:46:58 easiest way is to use adb from your computer if you can get it to connect for long enough May 09 02:47:33 google should just build an IDE for android... May 09 02:47:38 honestly lol May 09 02:48:06 why are you in terminal on your phone? May 09 02:48:21 The only thing you do on your phone is enable debugging and enable adb over wifi.. everything else is done on your Dev PC May 09 02:48:26 I thought I needed to May 09 02:48:32 nope May 09 02:48:34 adb tcpip 5555 is hanging in command prompt.... May 09 02:48:50 a quick mobile complier wouldn't be so bad May 09 02:49:10 why build an ide for android when you've already got eclipse+adt and intellij May 09 02:49:19 talk about waste of time and energy May 09 02:49:20 Because we need a GUI editor :P May 09 02:49:24 or Vim and the standard tools :D May 09 02:49:33 no, /you/ need a gui editor May 09 02:49:34 why is adb tcpip 5555 command hanging?.... May 09 02:49:34 we don't May 09 02:49:34 Who needs GUI editors? May 09 02:49:48 because it can't connect May 09 02:49:49 yeah damn it ! it want curses ! May 09 02:50:02 GUI editor? What is this Flash? May 09 02:50:36 "Apple's reputation intact after negative tax avoidance press" bummer May 09 02:50:40 why is it hanging then.... May 09 02:51:17 Snwspeckle there might be an option in the dev settings for CM9 for adb over wifi May 09 02:51:29 I made sure its enabeled.. May 09 02:51:34 Snwspeckle: considering you ned to have the device CONNECTED to the computer for adb tcpip to work.. and your having USB problems, that probably wont work May 09 02:51:42 but in the terminal, as root, you can do setprop service.adb.tcp.port 5555 May 09 02:51:54 then do stop adbd May 09 02:51:57 start adbd May 09 02:52:03 on your phone May 09 02:52:06 if you have root that is May 09 02:52:10 which I assume you do May 09 02:52:15 Cm9 does have root by default May 09 02:52:26 yea, i thought so May 09 02:52:29 Can someone explain to me whats going on in the ArrayListFragment class of this example http://developer.android.com/reference/android/support/v4/view/ViewPager.html May 09 02:52:32 I miss CM9.. May 09 02:52:38 but he needs to remember to do su in the terminal May 09 02:52:40 I did that t0m, now will it detect over wifi? May 09 02:52:43 specifically the newInstance() method May 09 02:52:58 should May 09 02:53:11 do adb connect ipaddress May 09 02:53:19 5555 is the default port May 09 02:53:24 so you don't need to specify it May 09 02:53:27 do pretty much all apps use OpenGL? May 09 02:53:29 He didnt even need to do any of that, just flipping on debugging and adb over wifi is enough, assuming its on the same wifi network May 09 02:53:41 do that in command prompt now? May 09 02:53:57 yes May 09 02:54:13 arielkadouri: I can say that, explicitly, mine doesnt, but implicitly dunno if Android is using OpenGL for any drawing, but id say no May 09 02:54:30 unable to connect to 192.168.254.7.... May 09 02:54:31 drpenguin my device doesn't have a "flip" for adb over wifi May 09 02:54:46 drpenguin: then what do you use? Canvas? May 09 02:54:48 t0mless: you arent CM9, we are / wer, and thats an option May 09 02:54:55 ahh May 09 02:55:00 then do that Snwspeckle May 09 02:55:03 arielkadouri: neither? Im not doing drawing, you said "all" apps so that means anything May 09 02:55:11 I did, its not connecting... May 09 02:55:20 Snwspeckle: is it on the same wifi net as the pc? May 09 02:55:23 verify the ip address of the device May 09 02:55:24 yea May 09 02:55:29 did you use the right IP? May 09 02:55:38 you can also try specifying the port May 09 02:56:08 I may have fixed it May 09 02:56:09 hmm' May 09 02:56:26 drpenguin: ah, I should have been more specific. My bad. May 09 02:56:27 thanks guys! May 09 02:56:32 works so much better now, dang! May 09 02:57:03 but sadly my custom style for tabs didnt work :( May 09 02:57:10 arielkadouri: so if you are just refering to things that require drawing like images or games or something, there is Canvas, or OpenGL, its really up to you. Canvas has gotten better as since honeycomb, it has supported direct HW rendering May 09 02:59:10 i just heard an ad pronounce "filet" as "fill it" O_O May 09 02:59:11 Jake told me styling tabspagers was easy, hard as hell imo... May 09 02:59:28 everything's easy for jake because he's so awesome May 09 02:59:30 drpenguin: thanks **** ENDING LOGGING AT Wed May 09 02:59:58 2012