**** BEGIN LOGGING AT Thu Jul 19 02:59:59 2012 Jul 19 03:00:04 I know Android uses dp, but how's this translate to pixel Jul 19 03:00:09 in designer term Jul 19 03:00:38 Does a RelativeLAyout allow buttons? Jul 19 03:00:39 i still dont get it fully, but basically i just take the graphics from the iphone4 pixel perfect version and they usually scale fine, i drop em all in xhdpi Jul 19 03:00:45 yes T-Dub Jul 19 03:00:49 hmm Jul 19 03:01:07 even though you got the dp size for a bucket but translating it pixel requires the device screen size Jul 19 03:01:09 it depends of the pixel density of the phone Jul 19 03:01:35 or density. Jul 19 03:01:35 the higher the pixel density, the more pixels per dp Jul 19 03:02:13 if you had a pixel density of 1 pixel per (whatever unit of area that android uses) then for every dp youd get 1 pixel Jul 19 03:02:36 if the density was 4 then youd get 4 pixels per dp Jul 19 03:08:32 anyone have default message apk Jul 19 03:08:45 one that came with my rom has been edited Jul 19 03:08:56 prefixes their messages with their name and mine with "Me" Jul 19 03:09:12 very dumb considering their name is at the top already and i know what i typed Jul 19 03:09:12 lol Jul 19 03:10:58 does anyone using the jellybean bootloader have problems with fastboot Jul 19 03:20:59 hi, i am wondering how an application running on android may communicate with other stuff via the usb port. are there any open-source examples of this floating around? Jul 19 03:22:11 what im really after is learning how my car stereo is talking to the pandora app installed on my phone. somehow the stereo knows the app is installed, runs it, and then starts talking with it and sending data such as events, button presses, track information, etc. Jul 19 03:25:10 bleh elec storm. power went out Jul 19 03:26:51 giantpune, apidemos maybe Jul 19 03:31:31 giantpune accessory protocol? Jul 19 03:31:43 guys, http://pastie.org/4281702 "parent is------------" only gets called once in the loop Jul 19 03:31:47 why is that? Jul 19 03:31:52 giantpune http://developer.android.com/tools/adk/aoa.html Jul 19 03:32:25 that says android 3.1. my phone is still running 2.3.7 Jul 19 03:32:25 so the log says "happening======", "parent is------------", "happening======", , "happening======", "happening======", Jul 19 03:35:26 ok, this one says API level 10, which covers my 2.3.7 phone, i believe. http://developer.android.com/guide/topics/connectivity/usb/accessory.html#manifest Jul 19 03:36:54 hi there devs Jul 19 03:37:10 hi fellow chatter Jul 19 03:37:49 "quick" question, I want to performe a reload of a ListFragment from an AsyncTask Jul 19 03:38:10 Ok Jul 19 03:38:26 can you put it in the onProgressUpdate? Jul 19 03:39:03 or onPostExecute ? Jul 19 03:39:17 I really don't know how to do that "refresh" Jul 19 03:39:25 ok Jul 19 03:39:34 add a method called onProgressUpdate() Jul 19 03:39:42 and then you call publishProgress(); Jul 19 03:39:48 ill post an example if you want Jul 19 03:39:50 one sec Jul 19 03:39:57 Belacan, thx Jul 19 03:41:41 Can someone tell me how to program a GUI interface in VB so I can track a killers IP? Jul 19 03:42:01 i think CSI has instructions on it Jul 19 03:42:19 this should be it duckmanito http://pastie.org/4281734 Jul 19 03:42:44 so everytime you want to reload you call publishProgress(); Jul 19 03:42:53 if you want to pass something you put it as an argument Jul 19 03:43:23 and to use that argument you use this: value[0] Jul 19 03:43:39 you can pass more than one argument and it can be called by value[1] etc Jul 19 03:43:53 Belacan, sorry I am a total newbie on this, what is the "magic" of publishProgress ? Jul 19 03:43:57 reload the gui? Jul 19 03:44:02 yeah Jul 19 03:44:08 you cant do GUI stuff from within the thread Jul 19 03:44:12 you need to do it outside right Jul 19 03:44:26 so you do your background stuff in the background stuff section Jul 19 03:44:40 and every time you need to do something to the GUI you need to do it through publish progress Jul 19 03:44:48 and onProgressUpdate ? Jul 19 03:44:58 thats where you put the code to change your GUI Jul 19 03:45:01 will be executed on a "change" ? Jul 19 03:45:27 what do you mean Jul 19 03:45:29 no Jul 19 03:45:32 not on a change Jul 19 03:45:44 it will be executed when you write publishProgress(); Jul 19 03:45:47 you can do it many times Jul 19 03:45:48 Does anyone know why my fill rate for house ads is under 100%? Jul 19 03:45:52 or put it in a loop for example Jul 19 03:46:20 do you understand? Jul 19 03:46:35 ok, but.. how do I empty the ListFragment and fill it again? Jul 19 03:46:48 Is there any solution like "reload" fragment? Jul 19 03:47:05 (sorry for my english) Jul 19 03:47:49 duckmanito: http://pastie.org/4281753 Jul 19 03:47:57 umm Jul 19 03:48:09 im not sure about that specific question Jul 19 03:48:56 but while using asyncTask all GUI things have to go into onProgressUpdate Jul 19 03:49:12 Belacan, thanks Jul 19 03:49:21 I will play with it Jul 19 03:49:35 I made a mistake in the last example, heres the correction http://pastie.org/4281760 Jul 19 03:50:57 what is "@SuppressLint("NewApi")" for? Jul 19 03:51:27 thats just part of the process Jul 19 03:51:31 it adds it automatically Jul 19 03:51:34 so i dont know Jul 19 03:51:38 hehe Jul 19 03:51:39 :) Jul 19 03:51:44 but what i gave you is a good format Jul 19 03:51:50 canadiancow, do you have any idea how to go about debugging all that usb stuff? i only have 1 usb port, and it would be taken up by the device im communicating with. so it would hamper the usual Log.e() and friends Jul 19 03:51:52 you can change the Jul 19 03:51:58 depending on what you want to pass Jul 19 03:52:10 the middle one is the onPublishProgress type Jul 19 03:52:26 i think a usb hub inserted in the mix would break things Jul 19 03:52:31 the first one is onBackgroundUpdate Jul 19 03:52:53 and the last one is the return value i think Jul 19 03:53:28 bloody pc turned itself off for the second time in 2 weeks, what can cause that? the case and room are *extremely* hot, but surely it can handle it? it seems like i have to take all cables out, move pc, put them back then it powers up... very scary shit :( Jul 19 03:53:43 heat usually Jul 19 03:53:47 its happened to me Jul 19 03:53:52 what a pain in the arse Jul 19 03:53:53 blimey! as they say Jul 19 03:54:03 gaz, get a can of air and blow out the power supply and heatsink Jul 19 03:54:27 its got some stupid fan on the side of the case that doesnt spin, it never did Jul 19 03:54:35 brb guys Jul 19 03:54:36 gaz`: move out of your shed and into somewhere with aircon? :) Jul 19 03:54:36 ok giantpune, good idea Jul 19 03:54:36 lunch Jul 19 03:59:09 got a panicked email from a user: "my account has vanished, my username is 'orr' and my email is 'orr@somewhere'" Jul 19 04:00:21 my reply: "we don't have any record of a user called 'orr' or an email of 'orr@somewhere' - we do have 'gorr' who is 'gorr@somewhere', Mr. G. Orr" Jul 19 04:14:59 Hi! Is there any way to hook contacts update/delete etc.? Jul 19 04:29:27 jesus wept! Jul 19 04:29:30 happened 3 times Jul 19 04:29:41 ive just ripped both sides off the pc Jul 19 04:29:58 im very scared now that i basicallydont have a working computer Jul 19 04:30:43 i hate the way computers just decide to get too hot after youve had them a year Jul 19 04:30:57 do you guys know where i can get a list of the url schemes used on the android plat form such as tel: ,http: , etc... Jul 19 04:31:09 * gaz` sobs Jul 19 04:31:32 Leeds u think room temp could do it? Jul 19 04:31:43 i mean surely if im able to operate without dying it should be able to Jul 19 04:31:51 yes, of course room temp could do it Jul 19 04:31:55 hmm Jul 19 04:32:09 but wouldnt i be a scorched mess if my pc found the room too hot Jul 19 04:32:43 ive got this usb fan, maybe that is causing issues too Jul 19 04:33:16 alexi5: there was a list on the developer site, but I don't know where it's gone in the grand beautiful mess Jul 19 04:33:36 ok Jul 19 04:33:37 this computer just knows when im up early to work hard Jul 19 04:34:02 Gaz`: it's quite easy for your CPU to be 10, 20, 30 degrees hotter than the room Jul 19 04:34:13 yeh Jul 19 04:34:19 hmm i need a warning program Jul 19 04:34:27 warning turn on AC... Jul 19 04:34:33 AC is too expensive tho Jul 19 04:34:44 my PC regularly overheats and throttles itself if I do video re-encoding, even with aircon on full in the room, and a free-standing fan pointing towards the PC end of the room Jul 19 04:34:50 summer in Asia la Jul 19 04:35:02 i do 3 day renders with no issues usually Jul 19 04:35:08 maxing out 3 cpus and 16 gigs of ram Jul 19 04:35:31 I don't always cool my cpu, but when I do, its with a free-standing fan pointed at the end of the room my PC is in. Jul 19 04:35:40 hehe Jul 19 04:35:46 i really would think this stuff is negligible Jul 19 04:35:49 a fan! Jul 19 04:35:56 pointing at the part of the room the pc is in Jul 19 04:35:59 surely not Jul 19 04:36:07 yeah, yeah, screw you guys Jul 19 04:36:36 ah that was sarcasm Jul 19 04:37:15 well if it turns off again im gonna have a major tantrum and not know what to do Jul 19 04:37:46 if my employers actually paid me id just go buy a new one Jul 19 04:37:58 but pay is unreasonable to expect isnt it for 5 months hardwork Jul 19 04:39:21 meh, you'd just spend it on beer and hookers Jul 19 04:39:28 hehe Jul 19 04:39:34 we *know* you're a rugby fiend Jul 19 04:39:40 well this new job *should* pay Jul 19 04:39:59 last app i did prize money for the people was £4.5 million Jul 19 04:40:05 yet i cant get my measily few grand Jul 19 04:40:22 * Gaz` pukes in disgust Jul 19 04:40:59 ever thought of getting some of hte money before full delivery? Jul 19 04:41:20 yeh with normal people that might work, not with these ppl Jul 19 04:41:40 basically being a remote freelancer = dog shite Jul 19 04:42:20 anyway part of the issue might have been the pc had sort of moved along and some of the air holes were directly facing the wall with liek 2mm gap Jul 19 04:42:34 now theres a couple of inches of space and no side on one side Jul 19 04:42:36 yah, that won't help Jul 19 04:42:46 try pointing a free-standing fan in the vague direction of the PC Jul 19 04:42:51 hehe Jul 19 04:42:59 well yeh i have one next to me thats basically keeping me alive Jul 19 04:43:31 i think i should move house i guess, this is basically a shack on a highrise Jul 19 04:43:50 since I'm working at home now - ha, 'working'! - I have the aircon on lowish all day, and a fan pointing directly at my... unclothed... back Jul 19 04:44:53 if i use AC i get a bill for way too much Jul 19 04:45:08 and it rains in my bedroom, and the lack of insulation means the cold air just flows right out the windows Jul 19 04:45:30 yeah, but I live in a real building, not an illegal shack :P Jul 19 04:45:45 got a rental contract and everything! Jul 19 04:45:51 hehe Jul 19 04:46:04 yeh, everyone i know tells me to move, but i freakin love this house for the views and garden Jul 19 04:46:49 there's actually been a *massive* scandal here about illegal structures Jul 19 04:47:25 well i think i may move in with gf soonish, she wont live here anyway, but i cant imagine not being here Jul 19 04:47:57 lots of politicians getting into trouble about them, the semi-official rural dwellers associations preparing to go up against the government if they try to enforce the law out of the city, etc. Jul 19 04:48:23 move in with gf... ooh ;) Jul 19 04:48:37 yeh that will end in utter terror Jul 19 04:49:22 pain, suffering, huge gouts of flame, earthquakes, etc. Jul 19 04:49:42 maybe my pc will be cool enough tho Jul 19 04:49:56 damn pcs.. Jul 19 04:50:01 im getting an amiga this year Jul 19 04:50:28 even hell wont overheat that bad boy Jul 19 04:50:42 no, because you could run it with a bloody hand crank Jul 19 04:50:49 hehe Jul 19 04:51:07 1 meg of ram and 7mhz cpu will run rings around this pc Jul 19 04:51:20 http://pastie.org/4281951 Jul 19 04:51:38 riddle me that Jul 19 04:51:51 sorry for interrupt, but, anyone knows how to perform an "update" of a ListFragment from an AsyncTask ? creating a FragmentTransaction didn't work :/ Jul 19 04:52:09 no idea but i'd love to learn Jul 19 04:53:59 duck Jul 19 04:54:03 can i see what you wrote so far Jul 19 04:54:06 or what you tried Jul 19 04:54:21 Belacan, just a minute Jul 19 04:55:35 Does the new 'annotations.jar' that contains @TargetApi have a version number? Just wondering how to best make it available to my maven build… it's outside the platforms-* directory so it seems the platform version doesn't apply to it... Jul 19 04:57:59 Does the LoaderManager.initLoader not pay attention to the arguments passed in? I'm trying to init another loader with different arguments (new activity result) and it's coming back with the same results. Jul 19 04:58:40 Belacan, nevermind!! it worked!!! Jul 19 04:59:15 Belacan, I had to set the "protected void onProgressUpdate(Void... voids) {" because I don't use any parameters Jul 19 04:59:22 glad i could help Jul 19 04:59:24 haha Jul 19 04:59:25 :) Jul 19 04:59:26 ok time to work... pray for me Jul 19 04:59:32 ahh Jul 19 04:59:36 you gotta put something there Jul 19 04:59:38 even if you dont use it Jul 19 04:59:38 Belacan, you did Jul 19 04:59:47 right Jul 19 05:00:12 what u actually doin btw leeds, android? Jul 19 05:00:21 first I tried with onProgressUpdate() but it was never called.. Jul 19 05:00:45 android for newbies here Jul 19 05:00:49 :P Jul 19 05:00:59 had a rather unproductive few weeks, since the boss went off on his summer hols :) working on a new ecommerce-y site Jul 19 05:01:07 :) Jul 19 05:01:14 freelancer here Jul 19 05:01:15 nothing I do or create that uses canvas or tries to plot graphics will open on my android 3 lol thus far Jul 19 05:01:18 .. so far Jul 19 05:01:25 I mean the tic tac toe app worked Jul 19 05:01:56 caverdude did u try the mr snowflake template Jul 19 05:02:10 yes didn't work so far Jul 19 05:02:20 ;-/ Jul 19 05:02:27 I'm going to try something slightly different though Jul 19 05:02:27 android is nasty at the start Jul 19 05:02:42 makes u want to hang yourself Jul 19 05:03:30 Belacan, what do you think about this approach http://pastie.org/4281987 ? Jul 19 05:03:39 romainguy_: why is it that createTabContent(); only runs once? If you loop it or whatever it wont create any new instances. other people seem to have this problem too: http://stackoverflow.com/questions/7088331/android-tabhostfactory-createtabcontent-not-being-called-for-all-tabs Jul 19 05:05:11 duckmanito: that is supposedly only half of your AsyncTask right duckmanito ? Jul 19 05:05:24 Belacan, that's right Jul 19 05:05:37 currently is working Jul 19 05:05:50 but I think is a bit nasty.. dunno Jul 19 05:06:56 duckmanito: sorry i dont really know about what your doing to help Jul 19 05:07:13 but the async task is always a messy thing visually Jul 19 05:08:38 visually is ok, I meant that this code could be a strange way to make it Jul 19 05:14:17 Gaz` ok it ran this time Jul 19 05:14:33 Gaz`, I tried just copying the folders over into the blank project template Jul 19 05:14:40 that didn't work it wouln't run Jul 19 05:14:51 so this time I just replaced the entire proejct from dos Jul 19 05:14:53 and it worked Jul 19 05:14:54 lol Jul 19 05:15:41 * caverdude goes to update his article Jul 19 05:16:40 Is there any way to hook contacts update? Jul 19 05:17:56 romainguy_: heres another one http://stackoverflow.com/questions/10599508/tabbar-with-dynamic-views-createtabcontent-is-getting-called-only-once-why Jul 19 05:30:35 and another one http://www.anddev.org/other-coding-problems-f5/how-to-create-tab-contents-dynamically-t14497.html Jul 19 05:34:57 just out of curiosty guys (iphone developer), whats the lowest level of audio processing available in android ? Jul 19 05:36:04 welcome sirchopsalot Jul 19 05:36:14 usually if you dont get an answer that means no one knows Jul 19 05:36:18 greetings Belacan Jul 19 05:36:22 np :) Jul 19 05:36:28 or they're asleep/idle Jul 19 05:36:49 a lot more people read this chat than you'd anticipate Jul 19 05:37:06 sirchopsalot: I'm not entirely sure what you mean, but Gingerbread added native code support for audio Jul 19 05:37:29 what that entails exactly, I couldn't say, but the NDK has a sample for it Jul 19 05:38:10 leslie: in ios there is 'Core Audio' which gives access to audio processing at the frame by frame level (eg the integers that make up the sine wave that generates the sound) - does android have anything like that ? Jul 19 05:38:12 http://www.arksoft.org/java/phoneapps/android/ for anyone that was helping with my article last night Jul 19 05:38:17 i just updated it Jul 19 05:38:48 great job caverdude Jul 19 05:38:59 thanks Jul 19 05:39:22 so you just started recently caverdude Jul 19 05:39:23 sirchopsalot: like PCM data? I know Android provides that Jul 19 05:39:37 leslie: yeah pcm Jul 19 05:39:37 Belacan, yup like 4 days ago Jul 19 05:39:44 Belacan, with phone apps Jul 19 05:39:48 good to know Jul 19 05:39:50 cool i just started recently too Jul 19 05:39:56 about a month Jul 19 05:40:02 the prospect of learning java from scratch is a little daunting at this stage tho :) Jul 19 05:40:06 if you have any stupid questions that i might be able to help with im more than willing Jul 19 05:40:12 I've only owned the android for a month Jul 19 05:40:16 i know some people get angry at stupid questons but not me :) Jul 19 05:40:22 you can use C or C++ with the NDK, it's just a little more involved Jul 19 05:40:35 and for most apps, unnecessary Jul 19 05:40:48 sirchopsalot: its not difficult Jul 19 05:40:50 I've been learning java since 2000 Jul 19 05:40:54 i started a month or so ago Jul 19 05:41:05 im no expert Jul 19 05:41:12 but the learning curve has been acceptable Jul 19 05:41:14 Belacan, probably depends on your other related computer background Jul 19 05:41:17 and im no superstar Jul 19 05:41:32 im a mechanical engineer by profession Jul 19 05:41:55 nice one caverdude Jul 19 05:41:58 for example i tried starting with iphone app dev Jul 19 05:41:59 i quit Jul 19 05:42:04 i quit iphone too Jul 19 05:42:08 ditto, Belacan Jul 19 05:42:10 obj-c is weiiird Jul 19 05:42:10 but android has been really easy to start up Jul 19 05:42:14 Gaz`, thanks Jul 19 05:42:31 i think thats a great testament to the creators of android Jul 19 05:42:45 i dont really, i think its just that we are familiar with java Jul 19 05:42:48 and not obj-c Jul 19 05:43:01 Same sh*t different pile Jul 19 05:43:03 imagine how bloody difficult android would be if u didnt know java ;) Jul 19 05:43:16 i didnt know java Jul 19 05:43:25 ... Jul 19 05:43:32 took me 10 yrs or so to grasp java Jul 19 05:43:36 even now i dont really know it all Jul 19 05:43:38 it's not really Obj-C vs Java. Android just does things differently from iPhone, like UI layouts Jul 19 05:43:42 well im not claiming to grasp it Jul 19 05:43:49 im just saying its forgiving Jul 19 05:44:00 well yeh if u can make android apps then you must be right yeh Jul 19 05:44:04 you can do a lot with a little Jul 19 05:44:07 but then again if u know c or something Jul 19 05:45:15 mind u xcode sucks but it cant be any worse than eclipse Jul 19 05:45:31 i find eclipse rather delightful Jul 19 05:45:37 with all its little helpful hints Jul 19 05:45:40 i find it buggy as sin Jul 19 05:45:42 Gaz`: what is so bad about eclipse? Jul 19 05:45:47 the other day i accidentally swapped two arguments in a method Jul 19 05:45:50 slow and buggy Jul 19 05:45:52 and the hint told me how to correct it! Jul 19 05:45:55 rarely works Jul 19 05:46:02 it is a bit buggy from time to time i must admit Jul 19 05:46:14 even netbeans is nicer Jul 19 05:46:15 imho Jul 19 05:46:16 :) Jul 19 05:46:26 dude Jul 19 05:46:29 Netbeans is typically less responsive Jul 19 05:46:30 the only thing that made me come to that conclusion is trying to run the app with the XML accidentally selected Jul 19 05:46:30 xcode is worse than eclipse Jul 19 05:46:32 buggy as fuck Jul 19 05:46:35 crashes frequently Jul 19 05:46:43 intellij 12 is nuts Jul 19 05:46:48 its gonna be super nice, cant wait Jul 19 05:47:01 guys why is it that createTabContent only gets called once for a tab host? Jul 19 05:47:17 oh i just assume xcode "works" Jul 19 05:47:33 when you assume you make an ass of yourself Jul 19 05:47:34 Gaz`: yeah, except when it doesn't Jul 19 05:47:35 haivng a brainfart unrelated to android necessarily... I want to display two items per line, and trying to come up with an expression that represents that Jul 19 05:47:38 hahah jk Jul 19 05:47:45 i%2 == 0 doesnt seem to work =) Jul 19 05:47:51 that just triggers on every other row Jul 19 05:47:57 System.out.print();?? ron_frown Jul 19 05:48:15 what?! Jul 19 05:48:22 I wonder if I can do a screen captuer on android phone somehow Jul 19 05:48:27 its a conceptual questiong Jul 19 05:48:29 eclipse isn't slow on my system. i7 + linux Jul 19 05:48:35 brb Jul 19 05:48:37 caverdude: from code? no. Jul 19 05:48:38 ron_frown: Jul 19 05:48:49 per line of what? Jul 19 05:48:55 what items? Jul 19 05:49:05 leslie, well like on windows its prtsc key Jul 19 05:49:06 i like conceptual questinos Jul 19 05:49:14 then I paste usually to ms paint Jul 19 05:49:30 caverdude: if you're on ICS, try holding the volume down button and the power button at the same time Jul 19 05:49:46 Gaz`: do you run eclipse on windows or mac os? Jul 19 05:49:52 ICS? Jul 19 05:49:58 Ice Cream Sandwich Jul 19 05:49:58 motorola Jul 19 05:50:04 hmm Jul 19 05:50:05 Android 4.0 Jul 19 05:50:06 Windows7 Jul 19 05:50:11 this is android 3 Jul 19 05:50:23 really? Jul 19 05:50:25 caverdude u can with ddms, Jul 19 05:50:26 ya Jul 19 05:50:29 what device, caverdude ? Jul 19 05:50:37 leslie, ? Jul 19 05:50:41 uh motorola? Jul 19 05:50:49 Gaz`: when i tested eclipse on mac os it was a bit slow at least compared to linux Jul 19 05:50:55 Motorola what? Droid? Droid X? etc Jul 19 05:51:00 obj c took me a while to fully get Jul 19 05:51:03 but its second nature now Jul 19 05:51:05 yeh i think java on osx isnt as worked upon Jul 19 05:51:07 Droid3 Jul 19 05:51:10 altho ill get slaughtered for saying it Jul 19 05:51:12 ive never learnt c or c++ of java before though Jul 19 05:51:13 ultrixx: not if you have 8G ram and dedicate a lot of it to Eclipse :P Jul 19 05:51:17 so maybe i didnt have prior assumptions Jul 19 05:51:18 android version 2.3.4 Jul 19 05:51:29 ah ok. if you have the android SDK installed, you can use ddms Jul 19 05:51:39 ok Jul 19 05:51:48 QubeZ: i have 8G but on the same computer the linux version is faster Jul 19 05:51:54 you mean if the phone is properly connected via usa I can use ddms.exe app? Jul 19 05:52:06 QubeZ: i mean noticeably faster Jul 19 05:52:14 caverdude: yeah Jul 19 05:52:18 ok cool Jul 19 05:52:37 what does ddms stand for? Jul 19 05:52:47 something to do with debugging Jul 19 05:52:54 dalvik debug monitoring system or something Jul 19 05:53:12 dalvik debug monitor server Jul 19 05:53:15 I accidentally made my hardware like 30% faster today Jul 19 05:53:17 haha Jul 19 05:53:19 http://developer.android.com/tools/debugging/ddms.html Jul 19 05:53:21 k Jul 19 05:53:38 anyway my question is this Jul 19 05:53:53 its html, but thats kinda besides the point Jul 19 05:54:08 Dalvik Debug Monitor Server Jul 19 05:54:13 I've got a list of items, want to display two items per row (and I've got to spit out a this is beginning of row, this is end of row) Jul 19 05:54:23 so I was coming up with an expression Jul 19 05:54:43 i%2==0 is good for alternating row colors, but doesnt necessarily map Jul 19 05:56:09 nice Jul 19 05:56:20 it worked, I just needed to update the expression in both places I had it =) Jul 19 05:56:23 DOH! Jul 19 05:59:43 modulo is awesome Jul 19 06:01:45 whats the APAC in the office hours? Jul 19 06:02:58 Asia-Pacific ? Jul 19 06:03:26 oh Jul 19 06:03:31 i didnt realise it was regional Jul 19 06:05:39 Any reason I would be getting this error for Notification.Builder? "Type The method build() is undefined for the type Notification.Builder" Jul 19 06:06:33 which api are you targetting? Jul 19 06:06:40 i think this was new in level 16 Jul 19 06:06:46 it's new in 11 Jul 19 06:06:53 there's a NotificationCompat.Builder in support lib Jul 19 06:06:58 use it Jul 19 06:07:08 Right now I'm min 14, target 15 Jul 19 06:07:17 oh, sorry, build() is new in 16, I believe it was getNotification() before Jul 19 06:07:46 Ohh i see it now Jul 19 06:07:48 Fantastic Jul 19 06:08:08 If I use the support lib, would I still be able to min 14, target 15? Jul 19 06:09:06 i'm not sure, i think you still target 16, it will just make sure that it will work on older versions as well Jul 19 06:10:02 jake Jul 19 06:10:11 chiggins: the support library is totally standalone Jul 19 06:10:13 squares js stuff on github is pretty amazing Jul 19 06:10:34 hopefully our Java stuff will catch up soon :) Jul 19 06:10:53 cant say it isnt there Jul 19 06:11:00 I just avoid java where I can Jul 19 06:11:14 I think I am going to try my hand at a kickstarter project Jul 19 06:11:17 Well, I just added in the support, changed target to 16, and no go. changed min to 16 to try, still getting the error Jul 19 06:11:18 :\ Jul 19 06:11:19 sorry guys, another question. In android, how do you account for all the different screen resolutions? Just pick the ones you are going to support and create seperate layouts for each ? Jul 19 06:11:50 sirchopsalot: i think there was an android I/O talk about that a while back Jul 19 06:11:52 not sure though Jul 19 06:11:53 relative layouts Jul 19 06:12:01 weighting where it makes sense Jul 19 06:12:02 sirchopsalot: http://developer.android.com/guide/practices/screens_support.html Jul 19 06:12:10 diff layouts if you absolutely have to Jul 19 06:12:14 sirchopsalot: pretend you're a web developer and create responsive layouts Jul 19 06:12:23 JakeWharton++ Jul 19 06:12:25 thanks guys Jul 19 06:12:25 who here did the kickstarter thing... was that you leeds? Jul 19 06:12:40 ron_frown: the ouya? I backed it, yes Jul 19 06:13:04 To create a Nexus7 AVD, is it sufficient to create a 800x1280 device at 213dpi (tvdpi) ? UI doesn't seem to rotate in landscape with these settings Jul 19 06:13:06 well it makes you setup a amazon payments account Jul 19 06:13:11 and amazon asks for business name etc Jul 19 06:13:20 I didnt know if it mattered, if I could make something up for now Jul 19 06:13:21 or what Jul 19 06:13:54 do you *have* to fill in a business? Jul 19 06:14:04 I dont know Jul 19 06:14:07 it asks for business address Jul 19 06:14:09 business name Jul 19 06:14:31 if I need to go file for EIN and shit I'd just like to know before I'm gonna get funded and have no way to collect the cash =) Jul 19 06:14:37 it doesnt ask for that stuff as far as I know Jul 19 06:14:38 soo Jul 19 06:14:45 oh, wait - you're setting up a project yourself? Jul 19 06:14:59 yessir! Jul 19 06:15:02 sorry, dunno about that - non-USians can't do that anyway Jul 19 06:15:06 ahh Jul 19 06:15:11 you fuckers better donate =) Jul 19 06:16:21 not with that attitude! Jul 19 06:17:31 haha Jul 19 06:18:00 bubbleguuum: when you say the UI doesn't rotate, do you mean the launcher? Jul 19 06:18:29 leslie: yes, but reading reviews of the nexus7 this seems to be expected Jul 19 06:18:47 yeah, that's right, portrait only Jul 19 06:19:55 and it is not going users of the nexus7 ape-mad that there is no landscape launcher ? (I know it can be altered with the dpi hack) Jul 19 06:20:59 I dunno. The Galaxy Nexus is portrait only too, but it doesn't bother me much Jul 19 06:21:20 I did a default initialization of the Fluffy location library but for some reason it's sending me location updates every 45 seconds Jul 19 06:21:26 anyone use this lib? Jul 19 06:21:35 fluffy? Jul 19 06:21:36 fer Jul 19 06:21:37 killing my battery which is the oppositive of its intention Jul 19 06:21:38 ? Jul 19 06:21:44 hmm Jul 19 06:21:48 yo does anyone know why new TabHost.TabContentFactory() only runs once? Jul 19 06:21:51 yea, this: http://code.google.com/p/little-fluffy-location-library/ Jul 19 06:21:55 I hate naming shit Jul 19 06:22:00 I need a name for some hardware Jul 19 06:22:34 The Ron 1000 Jul 19 06:22:36 I usually go with Ancient Greek mythology Jul 19 06:22:43 no no Jul 19 06:22:49 like, the desktop is Pandora Jul 19 06:22:50 I mean a hardware product I intend to sell =) Jul 19 06:23:04 (Pandora's "box", geddit? harhar) Jul 19 06:23:49 ahh, I see. hmm Jul 19 06:24:23 fuck it Jul 19 06:24:27 I'll make up some bs name Jul 19 06:52:07 Hi, does anyone know why new TabHost.TabContentFactory() only runs once? im trying to create tabs dynamicallu Jul 19 06:52:21 im realllllllly stuck on this haha Jul 19 06:53:08 so my laptop at work took 4 hours to compile the android sources, my laptop took 3 hours and my desktop took 6 minutes Jul 19 06:54:07 Belacan: did you look at the code with the new tools in eclipse, the ones that allow you to use a navigation style? Jul 19 06:54:13 they set the tab contetn dynamically Jul 19 06:54:26 Ohhhhhh??? Jul 19 06:54:50 no i didnt Jul 19 06:54:54 just select the option as tabs and compare the code Jul 19 06:55:11 ahh Jul 19 06:55:17 this is a sample project or something? Jul 19 06:55:26 well im looking at an example on the internet Jul 19 06:55:40 so in the new tools, when you start a new andoird applicaiton Jul 19 06:55:56 first choose blankactivity, and in navigations style use tabs Jul 19 06:56:02 cool cool Jul 19 06:56:05 ill have a look Jul 19 06:56:39 i dont think its doing it doing it the way you are, but its a different approach Jul 19 06:57:04 mark4: 6 minutes? what computer is that? Jul 19 06:57:32 rampage 4 extreme, lga2011 at 4.7 ghz Jul 19 06:57:54 im contemplating getting a 64 gig ram kit for it and making a ram drive and moving the compile into there Jul 19 06:58:16 isnt 6 minutes fast enough? Jul 19 06:58:24 NO! Jul 19 06:58:27 duh Jul 19 06:58:39 then build less Jul 19 06:58:47 6 minutes for a full build? Jul 19 06:58:54 and you want faster? Jul 19 06:58:57 what's wrong with you Jul 19 06:59:00 if android were written in forth instead of java my compiler (yes mine) would compile it in about 6 seconds Jul 19 06:59:03 i know right! Jul 19 06:59:23 mark4: too bad Android comes with shitloads of C++ code like webkit :) Jul 19 06:59:29 used to take us 8 hours to do a Solaris build on our 8CPU(ish) 16GB machines Jul 19 06:59:37 i compile aokp everyday painstakingly at 3 hours, and i jump with joy when its even 15 minutes less Jul 19 06:59:43 at least it doesnt use gcc Jul 19 06:59:47 or does it for some parts? Jul 19 06:59:54 gcc is used for all native code Jul 19 07:00:07 not llvm? Jul 19 07:00:12 thought it used llvm\ Jul 19 07:00:13 no Jul 19 07:00:15 ! Jul 19 07:00:23 fix that k tx Jul 19 07:00:25 thx Jul 19 07:00:53 doing another time make just to make sure i wasnt halucinating Jul 19 07:01:06 do a make clobber first Jul 19 07:01:20 that like a make extra clean? Jul 19 07:01:20 make clean && make -j $MANY Jul 19 07:01:32 mark4: yeah Jul 19 07:01:34 -j 13 is what i used, thats threads plus 1 Jul 19 07:01:50 on my 12 cores machine the sweet spot is -j30 Jul 19 07:02:03 ill have to try that next Jul 19 07:02:11 12 cores? or 12 threads Jul 19 07:02:16 there is a diff u know lol Jul 19 07:02:27 that's why I wrote 12 cores Jul 19 07:02:37 wow wish i had 12 cores! Jul 19 07:02:43 24 threads drool! Jul 19 07:02:58 * _Auron_ sighs Jul 19 07:03:18 _Auron: did you get the callback? Jul 19 07:03:32 <_Auron_> f2prateek: eh? no, it has even been a week yet Jul 19 07:03:36 <_Auron_> and I have two friends that work there Jul 19 07:03:40 <_Auron_> hasn't* Jul 19 07:03:43 im srsly thinking of telling vzw to stuff their teather plan up their ass. im paying for 4g and cant even get better than 40k downloads :( Jul 19 07:04:03 i freakin hate 9 patches Jul 19 07:04:05 _Auron: oh i thought you were expecting it today, god luck Jul 19 07:04:08 *good Jul 19 07:04:10 if i can get the dumbass cable ppl to give me one of their modems rent free ill get cable Jul 19 07:04:28 but im not payhing for a modem when i have a perfectly fine modem right here that they are too stupid to be able to provision Jul 19 07:04:40 <_Auron_> nah, may been another week or two. guy I'm supposed to talk with is out of town right now Jul 19 07:05:10 <_Auron_> but some guys there already looked at my programming test and said it was pretty good Jul 19 07:05:25 applying to be a coder? Jul 19 07:06:29 <_Auron_> yeah, game dev Jul 19 07:06:40 gl Jul 19 07:06:45 _Auron_, with who? Jul 19 07:09:11 i really need to write a random forth source puker so i can generate a few gigs of random legal forth sources and benchmark my compiler on this puppy Jul 19 07:09:46 doing libwebcore now in this build Jul 19 07:11:15 romainguy, what would it take to get google to fix adb push to work sanely? Jul 19 07:11:20 i wish eclipse would refresh graphics properly Jul 19 07:11:25 what a joke Jul 19 07:11:56 properly retarded program Jul 19 07:11:59 i.e. adb push somedir should push the dir not somedir/* Jul 19 07:12:16 it's open source, you fix it Jul 19 07:12:45 JakeWharton++ Jul 19 07:12:51 i have a rule, one you wont like but. i wont touch c/c++ for anything less than $50 an hour. thast my usual rate Jul 19 07:13:09 I have things break in Ubuntu Jul 19 07:13:17 mark4: nothing because changing this behavior would probably break tons of scripts Jul 19 07:13:26 my brain outright rejects 99% of all trash c coder. i hate it that much Jul 19 07:13:30 well I don't listen to people bitch about free things that are open source that don't work 100% like they expect for less than $100/hr. that's a discount rate Jul 19 07:13:32 But then I see the breakage is due to the Ubuntu/Gnome3 split on the Ubuntu/Unity side Jul 19 07:13:38 So I don't fix it Jul 19 07:13:49 romainguy_: would implementing an "adb cp" with the same semantics as Linux's "cp" have the same effect? Jul 19 07:13:53 romainguy, so fixing the push behavior would break lots of BROKEN scripts so lets not do that? Jul 19 07:14:26 mark4: except the scripts are not broken since they are written for the existing behavior Jul 19 07:14:36 which is broken lol Jul 19 07:14:49 meh Jul 19 07:14:58 Uh...so when is v2 Developer Console coming out? Jul 19 07:15:45 hi romainguy, hope you're doing well :) is createTabContent supposed to only run once per tabhost? thanks :) Jul 19 07:15:56 no clue Jul 19 07:15:59 don't use TabHost Jul 19 07:16:03 use ActionBar and ViewPager Jul 19 07:16:19 okay :( Jul 19 07:17:04 TabHost should be marked with @hide in the next SDK Jul 19 07:17:04 taking a bit longer than 6 minutes this time. i did a make clean previously, how much is prebuilt when u do a repo sync? Jul 19 07:17:29 mark4: not much in AOSP Jul 19 07:17:57 i followed googles "get the sources" to sync Jul 19 07:17:59 i didnt even realise tabhost was defunct Jul 19 07:18:12 Belacan: also if you go with romaniguys solution, eclipse will do most of it already for you, just select the tabs+swipe navigation mode Jul 19 07:18:12 we haven't deprecated it Jul 19 07:18:21 but actionbar+viewpager is a lot better Jul 19 07:18:23 ah ok Jul 19 07:18:35 ill remember that Jul 19 07:18:49 Cool cool thanks ill give it a shot, is it similar to the tabhost way? Jul 19 07:19:02 because Ive done a special thing for creating my valve objects Jul 19 07:19:17 where by they are created in a parent Jul 19 07:19:29 so in this case i used the linear layout of my tabhosts tabs as the parent Jul 19 07:19:38 almost done i think Jul 19 07:19:43 should it be possible to do something similar without changing everything? Jul 19 07:20:40 why not use a gridlayout with custom views? Jul 19 07:21:00 and add the cusotm view for every valve object Jul 19 07:21:05 *custom Jul 19 07:22:49 install system fs image blahj blah Jul 19 07:23:07 21 minutes Jul 19 07:23:28 so there must have been quite a bunch of stuff precompiled last time i ran i Jul 19 07:23:44 did you reuse the same source tree on several machines? Jul 19 07:23:48 real 21m17.267s Jul 19 07:23:48 user 200m4.731s Jul 19 07:23:48 sys 6m45.050s Jul 19 07:24:16 also what lunch did you use? Jul 19 07:24:22 no after doing the repo sync at work i did stuffed it all into a tar.bz2 and transferred it to my laptop Jul 19 07:24:32 get home and istributed taht to this box and extracted Jul 19 07:24:41 full-eng Jul 19 07:26:11 faster ram and a ram drive will improve that time somewhat too i think Jul 19 07:26:30 but im no spending $700 on 2200 ram. ill get the 1600 fr 400 lol Jul 19 07:27:05 running again with -j26. i think this will take longer Jul 19 07:27:42 there's no need to improve this time Jul 19 07:27:50 it's not like you would do a clean build every time Jul 19 07:27:56 is chrome going to be the default browser in 4.2? Jul 19 07:28:08 it's already the default in 4.1 Jul 19 07:28:18 oh ok Jul 19 07:28:21 i don't have that yet Jul 19 07:28:22 true. but theres another reason for doing this, im smoke testing the OC Jul 19 07:28:56 im not sure i like chrome, i dont trust google enough to use it Jul 19 07:29:08 eep i didnt say that out loud did i? Jul 19 07:29:14 hehe Jul 19 07:29:18 we're not in the room with you so we don't know Jul 19 07:29:19 so i am not going to get firefox then Jul 19 07:29:23 but you sure typed it into IRC Jul 19 07:29:55 mark4: but you use the Android browser? Jul 19 07:29:55 thats not how i remember it! Jul 19 07:30:23 romainguy, ive contemplated putting FF on my android, tried it once, it wasnt too good there Jul 19 07:30:37 im running a modified version of it anyway, rooted tbolt Jul 19 07:30:37 is it ok to save a password in sharedpreferences Jul 19 07:31:13 or should i avoid doing that? Jul 19 07:31:18 Firefox is decent for pre-ICS devices... Chrome is better for ICS+, except for the bug which means it randomly stops rendering on some devices, including my OneX Jul 19 07:31:19 yea i think this build has all my cores pegged Jul 19 07:31:24 dont think the last one did Jul 19 07:31:25 eSatsu: in general, no Jul 19 07:31:59 figures Jul 19 07:32:10 you shouldn't store a password anywhere on the device Jul 19 07:32:11 i have isues with firefox on my pc too. mostly related to them whoring themselves out to google :/ Jul 19 07:32:18 romainguy: this bug seems to still be present in 4.1.1 ? : http://code.google.com/p/android/issues/detail?id=34913 Jul 19 07:32:34 mark4: you'd prefer to pay for your browser? shareware, perhaps? Jul 19 07:32:48 leeds i actually used to be a regged user of opera Jul 19 07:33:00 but that was a long time ago Jul 19 07:33:32 i Do pay for software Jul 19 07:33:32 I'm quite surprised that opera have lasted this long as an independent company Jul 19 07:34:12 i regged a386/d386, guitar pro, IDA Pro (im thinking of updating to the latest pro version of this too) and i just regged sublime text 2 Jul 19 07:34:24 bubbleguuum: I didn't say it was fixed in 4.1.1 :) Jul 19 07:34:39 ok so I'll have to workaround it Jul 19 07:35:18 Hey Guys, I'm inflating menus in onCreateOptionsMenu() but I would later like to add a menu item to the start of the menu list, menu.add just adds it to the end Jul 19 07:35:24 happens only of first app run in my app Jul 19 07:35:25 well my box is pumping out some heat now, pity i cant get the core temps in linux Jul 19 07:36:16 hemanshu: the method is overloaded with parameters such as "order" and "group" which allow you to control its position Jul 19 07:37:21 aah didn't notice that thanks JakeWharton Jul 19 07:43:00 how can i check my core temps in linux, i dont seem to have a /proc/acpi/thermal Jul 19 07:44:27 aha sensors Jul 19 07:44:32 Core 0: +55.0°C (high = +81.0°C, crit = +91.0°C) Jul 19 07:44:52 thats at 4.7ghz Pegged for the past 15 ish minutes Jul 19 07:49:16 yea 20 minutes with -j26 Jul 19 07:49:24 so that was no change from -j13 Jul 19 07:51:22 how much core u have? :D Jul 19 07:51:35 6 cores, 12 threads Jul 19 07:52:24 the -j26 was a smoke test for my overclocking, ive run the PI cruncher for 8 hours in windows but i think this is a more realistic smoke test Jul 19 07:52:52 but its time to log anyway lol Jul 19 07:52:58 ack almost 3 am Jul 19 07:53:09 10am here :) Jul 19 07:53:27 lol Jul 19 07:55:19 <[SP]JESTER> anyone know the build.prop to set go launcher default theme on first boot Jul 19 07:56:33 whats the simplest way of passing cookies from one activity to another Jul 19 07:56:51 to a fragment of another activity to be precise Jul 19 08:01:02 hey Jul 19 08:01:09 is there a list of devices and their sensors somewhere? Jul 19 08:01:21 (I'm mostly interested in which devices have the humidity sensor) Jul 19 08:05:45 humidity? Jul 19 08:17:03 Hi. I think I haven't fully understood the activity concept yet. I'd like to develop a new app which will consits of framgments (one as the main menu and others for detailed purposes) so that you'll see the menulist on the left and the details on the right on tables and you can switch between them on a regular mobile. Now there are for example three things I'd like to do. Take a picture, edit it, store it. I thought every one of this would be an Jul 19 08:17:03 acitivity but as I read the doc it seemed to me that you add fragments to an activity … will I have to create a PictureActivity and add the menu to it and do the same for the EditActivity or how is it supposed to be? Jul 19 08:21:20 ListView question: I have a listview with about 300 items in it, (rather simple layout, 2 textviews and 1 checkbox), at the top performance is fine, but the further down in the list i scroll performance degrades drastically. Does this sound familiar? Any hints? I tried setting a fixed layout_height to the container element for the listviewitem if perhaps the recyling wasn't kicking in. (and yes, I am creating a Jul 19 08:24:44 how to center the text of a CheckedTextView vertically on API >= 11, which aligns it with the check mark ? On GB and below, android:gravity="center_vertical" works but above, text is always in the top part of the CheckedTextView Jul 19 08:28:14 I am trying to create an update method for my apps. the phones we use do not have market so i have to come up with my own. I have a server with the apk file, so far all i do is launch that apk file in the browser and tell the user to run it manually, is there a way i can trigger the execution of the apk file aswell? Jul 19 08:32:08 asfdd: no, that'd be a huge security hole if an app could silently install something Jul 19 08:32:59 hi chaps Jul 19 08:33:11 is there any way to access individual entries in an ArrayList Jul 19 08:33:21 like, myArrayList[2] for example Jul 19 08:33:24 list.get(2) Jul 19 08:33:26 appel1 it doesn't have to silently install it, just laucnch the install window Jul 19 08:33:27 read the doc :) Jul 19 08:33:39 asfdd: oh, that you can do. Jul 19 08:33:43 okay sorry & thanks Jul 19 08:33:56 I think Jul 19 08:34:06 any suggestion on how? because the file has to be downloaded first Jul 19 08:34:19 then launched when download is finished Jul 19 08:34:41 Question: Im trying to install API10 but SDK manager says Missing SDK Platform 10. What do i have to do? Jul 19 08:35:17 asfdd: download to external storage and use ACTION_VIEW intent I believe Jul 19 08:36:21 hmm ok i'll google a bit on how to do that, i don't often work in android =) Jul 19 08:36:22 ty Jul 19 08:36:25 anyone know? Jul 19 08:38:38 CaseOfInsanity: have you installed SDK Platform 10? or is that what you're trying to get? Jul 19 08:38:44 hello, i want to debug an app, i don't have the source code, i would like to debug it while running (similar to using ollydbg with a windows program) Jul 19 08:39:02 do you know if there is any program that enables me to do that? Jul 19 08:39:20 whose app is it? Jul 19 08:39:49 ahh seems someone else has already done it =) Jul 19 08:39:50 http://stackoverflow.com/questions/4967669/android-install-apk-programmatically Jul 19 08:39:52 it's a game Jul 19 08:40:37 yes, whose game? Jul 19 08:40:48 and why are you trying to 'debug' someone else's game? Jul 19 08:41:29 i want to reverse engineer it Jul 19 08:41:49 for what purpose? Jul 19 08:41:57 cheating in game :P Jul 19 08:42:03 hehe Jul 19 08:42:07 why you ask? Jul 19 08:42:10 http://code.google.com/p/android-apktool/ try that maybe Jul 19 08:42:37 i know about apk-tool Jul 19 08:42:37 well, because cheating or piracy are really the only two likely answers Jul 19 08:42:51 but i want to debug it while running Jul 19 08:43:08 apktool is more of a dissasembler Jul 19 08:48:58 Hey Guys, I want to center the title on my actionbar, however I don't want to set a customView (as I'm using setDisplayHomeAsUpEnabled and all ) Jul 19 08:50:26 Nexus7 is a PITA to handle as far as layouting goes. Is it tablet ? is it phone sized ? Not even Google seems to know. Jul 19 08:50:54 what Jul 19 08:51:10 bubbleguuum: here's your answer http://android-developers.blogspot.com/2012/07/getting-your-app-ready-for-jelly-bean.html Jul 19 08:51:16 don't think in terms of phones vs tablets Jul 19 08:51:23 just think in terms of available space Jul 19 08:51:33 nexus7 has secondary tvdpi, right? Jul 19 08:51:50 what do you mean "secondary tvdpi"? Jul 19 08:51:59 I've read it but my feeling is that it should use my phone sized layouts for portrait and my tablet layots for landscape. Frankenstein device :p Jul 19 08:52:03 that sounds like a disease... Jul 19 08:52:51 gah Jul 19 08:52:56 its identity hisself as tvdpi? Jul 19 08:52:59 or hdpi? Jul 19 08:53:01 Evernote ruined performance in their latest update Jul 19 08:53:13 ixc: the device is tvdpi and acts as a tvdpi device Jul 19 08:53:29 romainguy_: and I'm not even mentionning the whole mess created by the large/xhdpi 5.3" Galaxy Note, regarding layouts.... Jul 19 08:54:52 btw any good article about why TVs use tvdpi/xhdpi? usually they has very low dpi Jul 19 08:55:14 ixc: because you seat much farther Jul 19 08:56:01 ohh :) Jul 19 08:56:40 Ok i fixed the problem finally Jul 19 08:56:51 does anyone care to know the solution? Jul 19 08:57:06 Belacan: what were you doing wrong? :) Jul 19 08:59:32 Well it appears as though if you use createTabContent() and then inflate some stuff into it and then try to call createTabContent again, it wont run again. So you need to call all of your createTabContents one after the other. so in order to do this I inflated my views into an array list of ViewGroups and then once all the views had been inflated into the ViewGroups then I used a for(arraylist) to create all the tabs Jul 19 09:00:33 anyone else experienced more lag when using a custom font on a listview? Jul 19 09:00:33 so basically the moral of the story is dont use TabHost unless you want a headache Jul 19 09:02:19 let me paste it up for you incase someone else is stuck on the same problem one day Jul 19 09:06:56 hello. have someone experience to get accurate GPS position in android with using reference GPS? Jul 19 09:08:39 alright peeps Jul 19 09:08:47 behold: http://pastie.org/4282743 Jul 19 09:08:59 I wish I could drop 2.x and 3.x compatibility :p Jul 19 09:10:44 Anyone have a recomendation for a sqlite wrapper for c++? Jul 19 09:11:15 Hi lasserix Jul 19 09:11:20 didnt notice you come in Jul 19 09:12:13 Hey, still working on the valves? Jul 19 09:12:29 yeah i was stuck on a silly problem all day Jul 19 09:12:37 but with this hurdle out the way i think im done Jul 19 09:12:48 now the app is fully configurable via a CSV file Jul 19 09:13:01 Ahh right on, does this mean you are finished with android for the meantime though? Jul 19 09:13:11 you can add tabs, add valves, add transmission panels and add displays Jul 19 09:13:16 ummmmm Jul 19 09:13:21 maybe Jul 19 09:13:27 well probably yes haha Jul 19 09:13:33 unless i ever do something again Jul 19 09:13:36 Belacan yeh im sick of tabhost too, will do what romain said from now on Jul 19 09:13:46 *agreed Jul 19 09:13:56 it was too late for me Jul 19 09:14:01 i had already built everything Jul 19 09:14:11 same here Jul 19 09:14:20 last 3 apps use tab host heavily Jul 19 09:14:26 taking a month or more to build each Jul 19 09:14:36 wow Jul 19 09:14:36 what's the alternative to tab host? Jul 19 09:14:39 thats fast Jul 19 09:14:49 lasserix: actionbar i think Jul 19 09:14:55 ahh Jul 19 09:14:55 actionbar and viewpager Jul 19 09:15:12 Belacan, well maybe took longer, the development wasnt that fast for sure, and was very painful Jul 19 09:15:18 but now im almost good with android ;) Jul 19 09:15:28 haha its the best way to learn isnt it Jul 19 09:15:33 infact, its the only way to learn Jul 19 09:15:41 yep Jul 19 09:16:10 i intend to make a lot o money from android over the next ten years Jul 19 09:16:40 theres lots of money to be made! Jul 19 09:16:42 itll prob be my sole bread n butter :) Jul 19 09:16:44 i think android will crush apple Jul 19 09:16:48 as j2me was for the last 10 yrs Jul 19 09:17:08 Dont get me wrong im probably the biggest apple fanboy Jul 19 09:17:14 but ive been so impressed with android Jul 19 09:17:22 interesting Jul 19 09:17:25 from a developers standpoint and also from a consumers Jul 19 09:17:27 i really dont like apple one bit Jul 19 09:17:41 but im prob not as anti apple as many coder sin here im guessing ;) Jul 19 09:17:52 What they've got right is the hardware-software 'synergy' as they say Jul 19 09:18:01 yep Jul 19 09:18:04 reminds me of the amiga Jul 19 09:18:05 as steve would say haha Jul 19 09:18:15 ahh steve Jul 19 09:18:22 is there any simple way to create a cookie from a string? Jul 19 09:18:34 i hated him ever since he slagged off java :) Jul 19 09:18:40 how about steve balmer? Jul 19 09:18:41 haha Jul 19 09:18:50 he had some good points about Java Jul 19 09:18:52 oh i hate MS more prob Jul 19 09:18:56 DEVELOPERS DEVELOPERS DEVELOPERS DEVELOPERS DEVELOPERS DEVELOPERS DEVELOPERS DEVELOPERS Jul 19 09:19:00 but at the time he said it, what he was saying was true Jul 19 09:19:07 Hahaha CallumTaylor Jul 19 09:19:16 if u count up the years ive wasted being very anti MS id say i hate MS more, altho ive learned to use windows now Jul 19 09:19:32 nothing jobs said about java was true Jul 19 09:19:36 i hate all the companies but use their software Jul 19 09:19:40 i could hit u with some classic quotes if i could be bothered Jul 19 09:19:41 x_x Jul 19 09:19:42 i have a cookie.get(1).toString(); saved in sharedPreferences, how do turn that into a cookie again? Jul 19 09:19:43 i only started hating microsoft after i started using apple Jul 19 09:19:54 is there any simple way or do i need to parse the whole cookie Jul 19 09:19:54 i didnt know any better as they say Jul 19 09:19:59 CallumTaylor: http://www.youtube.com/watch?v=KMU0tzLwhbE Jul 19 09:20:12 i get slaughtered by many for saying i like java too tho Jul 19 09:20:12 lol DEODORANT DEODORANT DEODORANT DEODORANT Jul 19 09:20:22 seems the "real k00l katz" hate java Jul 19 09:20:55 my impressions of java have changed since using android Jul 19 09:21:03 They've done something to it Jul 19 09:21:05 its not the same Jul 19 09:21:08 they made it better Jul 19 09:21:09 haha Jul 19 09:21:12 its identical Jul 19 09:21:19 ooo Jul 19 09:21:20 runs a bit faster possibly, but even then not really Jul 19 09:21:21 you can't say that Jul 19 09:21:26 oracle might sue again Jul 19 09:21:30 hehehe Jul 19 09:21:45 im a java fan boy but only cause im not competant with much else Jul 19 09:21:53 dito Jul 19 09:21:54 haha Jul 19 09:22:06 im sure im a C++ guy underneath somewhere :) Jul 19 09:22:09 I'm not massively a java fanboy, i like the language though Jul 19 09:22:15 i don't think I'm really a fanboy of anything Jul 19 09:22:19 yay! Jul 19 09:22:27 im an amiga fan boy and thats all Jul 19 09:22:36 :-> Jul 19 09:22:39 lmao http://www.youtube.com/watch?v=Qv1pvRDFFqs&feature=related Jul 19 09:22:44 i guess i could say I'm a starcraft 2 fanboy Jul 19 09:22:48 hehehe Jul 19 09:23:09 of course alcohol women and drugs we are all fan boys of them Jul 19 09:23:10 :) Jul 19 09:23:16 and computers in general and tech Jul 19 09:23:16 lol Jul 19 09:23:20 oh Jul 19 09:23:22 im a canon fanboy Jul 19 09:23:29 ya!! me too Jul 19 09:23:32 u tried CHDK ? Jul 19 09:23:34 yes! Jul 19 09:23:39 i got magic lantern on my 550d Jul 19 09:23:40 i love that shit to bits Jul 19 09:24:01 niceee i use it on my sd-1000 well i did until it died from taking millions of photos from timelapsing Jul 19 09:24:10 lol Jul 19 09:24:20 the video i did for one of our apps was filmed on my 5500d Jul 19 09:24:26 nice, slr? Jul 19 09:24:28 i also recently bought a whole bunch of equipment Jul 19 09:24:30 ya Jul 19 09:24:37 someone told me chdk wont work on slrs.. Jul 19 09:24:48 i wanna buy the best canon i can get that runs chdk Jul 19 09:24:57 http://www.youtube.com/watch?v=DWlc3Pt5VHI&feature=plcp Jul 19 09:25:12 hm Jul 19 09:25:18 CallumTaylor: I dont mean to spam this channel with youtube videos but http://www.youtube.com/watch?feature=endscreen&NR=1&v=rgfFoZ8tq5w Jul 19 09:25:35 ah yes i saw this, nice app Jul 19 09:25:42 dat laugh Jul 19 09:25:47 thanks :) Jul 19 09:26:01 LOL Jul 19 09:26:16 looks cool Jul 19 09:26:22 i dont like the cliche stock music though Jul 19 09:26:26 that one track is over used Jul 19 09:26:32 apple use it Jul 19 09:26:41 so is there any simple and easy way to create a cookie from a string? I have a cookie saved as a string in sharedpreferences Jul 19 09:26:41 for their macbook pro video Jul 19 09:26:52 we made it from scratch Jul 19 09:27:01 it might be similar, but it's our own Jul 19 09:27:14 also i didn't edit the video, i only shot it Jul 19 09:28:39 thats your app CallumTaylor Jul 19 09:28:41 ? Jul 19 09:28:46 ya Jul 19 09:28:49 woahhh Jul 19 09:28:50 well i did the android version Jul 19 09:28:57 sick Jul 19 09:29:02 actually looks great Jul 19 09:29:09 I'm working on a more ICS style on for their future apps Jul 19 09:29:10 and useful Jul 19 09:29:18 we're doing about 10 apps for the american red cross Jul 19 09:29:30 and eventually, the first aid app will have the same style, it looks amazing atm Jul 19 09:29:30 Nice Jul 19 09:29:42 will it be free\ Jul 19 09:29:48 yeah Jul 19 09:29:52 nice nice. Jul 19 09:29:58 gonna save loads of lives Jul 19 09:30:12 man, some of the stories we have from people using the app Jul 19 09:30:15 absolutely amazing Jul 19 09:30:36 is that your hand CallumTaylor ? Jul 19 09:30:37 the current app I'm working on for them http://s.scruffyfox.me/i%202012-07-19%20at%2010.30.25.png Jul 19 09:30:48 I'm at 30s Jul 19 09:31:22 awesome Jul 19 09:31:39 looks very cool Jul 19 09:31:52 thanks Jul 19 09:32:00 how long are you given Jul 19 09:32:14 for this new app, 3 weeks Jul 19 09:32:20 we've had to work weekends :/ Jul 19 09:32:28 :{ Jul 19 09:32:28 yeah thats not long at all Jul 19 09:32:36 will be launched tuesday for android, iPhone will be avaiable be then swell Jul 19 09:32:43 yeah, the first aid app was about 2 months Jul 19 09:32:56 they push you hard eh Jul 19 09:33:13 yeah, we wanted to change aload of stuff aswell Jul 19 09:33:39 Folks, does anyone know an example test for a syncadapter? I'm only starting unit testing my app but the synchronization is the fundamental part and I think it makes sense to start there. However, it's extremly complex and I'm not sure how I can test this, yet Jul 19 09:37:50 hi all. Does anyone know if NETWORK_PROVIDER refers to cell tower network or wifi network? trying to get a location based on that. Also, can you get cell tower information without a sim? Jul 19 09:40:21 amro_: http://developer.android.com/reference/android/location/LocationManager.html#NETWORK_PROVIDER Jul 19 09:40:53 thanks Jul 19 09:41:17 still new to this tsuff Jul 19 09:41:23 stuff* Jul 19 09:41:36 amro_: reading the docs is usually a good place to start :) Jul 19 09:42:14 appel1 well, i have quite specific stuff to work out, and i don't get to find tutorials to solve them :| Jul 19 09:42:37 amro_: not sure about your second question though, most likely it needs a connected wifi network to work without a sim.. Jul 19 09:43:07 tested a bit on a phone without sim, and seems true Jul 19 09:43:29 Has anyone here given either of the MapFragment workarounds a go? Jul 19 09:43:33 amro_: you don't have to limit yourself to only reading tutorials, plenty of other documentation available Jul 19 09:47:36 appel1: btw, have my usb debugging on but I don't get any logs back from the phone (though im sure it hits the code) Jul 19 09:47:43 any ideas? Jul 19 09:48:15 amro_: does adb devices show your device when connected? Jul 19 09:49:11 using eclipse Jul 19 09:49:18 and the device tab says yes Jul 19 09:49:56 hi Jul 19 09:50:34 amro_: what about if you run adb logcat outside of eclipse? just to verify that everything is working? Jul 19 09:50:52 need to find it Jul 19 09:50:55 sec Jul 19 09:55:45 I use canvas drawText method to draw text on bitmap and the text is in very poor quality, if I set on paint I use to draw this text myPaint.setAntiAlias(true); it helps a little, but the text have still poor quality - can anyone have the solution on that ? Jul 19 09:56:30 appel1: how can I filter the logcat adb output to tags i use? Jul 19 09:58:30 amro_: http://developer.android.com/tools/debugging/debugging-log.html Jul 19 10:01:00 tnx Jul 19 10:06:27 How can one make android recognize a mounted sdcard after init and vold have run? Jul 19 10:12:52 the fundemental flaw of earbud headphones is they are easier to unplug from the audio jack than remove from the ear Jul 19 10:13:11 kselos maybe its the jpeg compression causing the low quality Jul 19 10:14:17 Oh hi google! http://www.android.com/images/brand/get_it_on_play_logo_large.png this is not large! Jul 19 10:15:02 how large is large Jul 19 10:15:35 500, 1000, vector Jul 19 10:40:05 1 billion dorrar Jul 19 10:43:02 Is there a way to check whether IP address is DHCP assigned? Jul 19 10:43:46 anyone know how to make tabs stretch to fit the screen, got 3 tabs but theres gaps between them Jul 19 10:44:51 bene looking for this solution for ages, must be one Jul 19 10:46:40 hi, how can I receive broadcasts from other applications which are intended for youtube action? Jul 19 10:53:16 how can I iterate a bundle? I need to know each key and remove them Jul 19 10:55:36 elegos: Bundle.keySet() ? Jul 19 10:56:02 Estel: thanks, I was searching under "get" :) Jul 19 10:56:21 Bundle.clear() ? Jul 19 10:56:32 uhm Jul 19 10:56:34 better :D Jul 19 10:57:03 will this clear the intent's extras, or just an instance of it? getIntent().getExtras().clear(); Jul 19 10:57:17 Instance Jul 19 10:57:23 Uhh, I think Jul 19 10:57:38 no, it clears the extras Jul 19 10:57:49 thanks Jul 19 10:57:54 "Removes all elements from the mapping of this Bundle." Jul 19 10:58:30 and is there a way, in Java, to pass the object reference and not a copy of it to methods? Jul 19 10:58:43 (to a function/method) Jul 19 10:59:21 Hi all.. I want to develop an offline dictionary for my project.. i have downloaded the wordnet database.. please throw some light on how to combine it with my application..thanks Jul 19 10:59:53 chithra1: first of all: do you have the rights to do this? Jul 19 11:00:04 chithra1: 2nd, I'd study SQLite Jul 19 11:00:29 and maybe the Android's auto complete text editable Jul 19 11:02:47 btw a general question: usually Android apps look not "ugly" but pretty standard. Or at least this is what you can do with the standard API. While on iPhone you have to handle only 2 or 3 screen resolutions, Android world has way more screen resolutions, most of them under some layout standards (ldpi/mdpi/hdpi/xhdpi etc) Jul 19 11:03:06 my question is: how can you create a layout which will fit the same on all devices? Jul 19 11:03:28 ofc without having to deform the layout for different resolutions Jul 19 11:03:38 ^-- talking about custom layout Jul 19 11:04:37 elegos: what do you mean by 'fit the same'? Jul 19 11:05:37 Most layouts only vary for -large/-xlarge for tablet specific UIs Jul 19 11:10:23 Estel: for instance, you may have the app background a photo Jul 19 11:10:32 for example a photo of a physical instrument Jul 19 11:10:43 you have to resize it to fit each screen resolution Jul 19 11:10:58 and to put dynamic content on it Jul 19 11:11:03 for example buttons etc Jul 19 11:11:28 so, you can't simply set the background with gravity center Jul 19 11:12:06 as depending on the particular screen resolution, items will be displayed in a different position relative to the background Jul 19 11:12:37 while on standard apps, you don't have this problem, as things are not really graphical Jul 19 11:12:58 hehe characterbased android apps Jul 19 11:13:01 awesome Jul 19 11:13:29 you can have webviews, textviews, listviews etc, but they'll always be modules inside a fluid layout Jul 19 11:14:04 just an example, you have to add a header... you have to fit the screen's width at least Jul 19 11:14:38 I've never tried, but I think vector images are the only option to fit it in all the cases Jul 19 11:15:23 and you can't position things upon it seriously thinking the items will fit the place you imagined they will cover on all resolutions Jul 19 11:16:02 hi Jul 19 11:17:36 i'm porting my activity to fragments, which is best place to do the findviews that i used to do in onCreate? onCreateView, onActivityCreated or onViewCreated ? Jul 19 11:20:41 I usually do it onCreateView Jul 19 11:20:50 (after defining the view ofc) Jul 19 11:22:41 hi Jul 19 11:23:16 how can I build a file path? I want to be able to do something like build_path(externalRoot, "media", "ringtone") Jul 19 11:23:30 is there a source and compilable application that reads from a web service a simple xml that contains 4 records and make a graph with these records? Jul 19 11:23:33 and either that gives a string, or I can somehow create file object with it Jul 19 11:23:41 or i've to write one from 0? Jul 19 11:29:01 and471: http://stackoverflow.com/questions/711993/does-java-have-a-path-joining-method is closed I've found on java, I also crave for python like os.path.join() Jul 19 11:29:10 *closest Jul 19 11:30:12 hemanshu, thsnk buddy :) Jul 19 11:33:55 virtx: you have to disassemble your problem: (1) XML parser (just search with google android parse xml), (2) graphic library (try to search on google android graphs) Jul 19 11:34:12 yes. Jul 19 11:34:27 but i need an app that already use it, i have no time to write it from 0 :( Jul 19 11:34:54 I don't think there's an app which will load custom XML in a graph you want Jul 19 11:35:17 there are libraries that can do that already, you only have to implement the layout and a little of wrapping code Jul 19 11:39:05 elegos: i need just a working example, so i've time to mod it... Jul 19 11:39:37 elegos: what if i do getView().findViewById from onActivityCreated ? will that work just as well ? Jul 19 11:39:53 virtx: have you tried searching for those two things? there are plenty of examples and tutorials Jul 19 11:41:02 ddreamer0: I usually first declare the View I'm gonna return (i.e. View view = inflater.inflate(R.layout.blah, container, false); then I find the views via MyType var = (MyType) view.findViewById(R.id.blah); Jul 19 11:41:40 or yadda if you prefere :P Jul 19 11:45:35 hello Jul 19 11:46:36 i need help how to add intent acitivity in this code so when i click any image i go another activity source code is this http://www.codeproject.com/Articles/146145/Android-3D-Carousel?msg=4314597#xx4314597xx Jul 19 11:47:40 nazeerahmed: please post the code on pastebin or similar Jul 19 11:48:06 ok Jul 19 11:48:25 what is pastebin ? Jul 19 11:48:29 is ur nick or channel Jul 19 11:49:54 nazeerahmed: lmgtfy.com/?q=pastebin Jul 19 11:50:13 nazeerahmed: no private message Jul 19 11:50:22 sorry im new here Jul 19 11:50:31 tell me how can i sent code? Jul 19 11:50:38 http://lmgtfy.com/?q=pastebin Jul 19 11:50:40 srsly... Jul 19 11:50:45 ok Jul 19 11:51:34 irvu do u help me? Jul 19 11:51:38 im in triouble Jul 19 11:51:43 I'm trying to find all the values/colors I can override for holo light/dark.. Jul 19 11:51:47 is there a list somewhere which explains this? Jul 19 11:53:40 XeruX: I'd try with code-completing feature of Android, searching for android.color.(CTRL+space) Jul 19 11:53:49 laterzzz Jul 19 11:56:12 hello Jul 19 11:56:18 is there any one help me? Jul 19 11:56:30 no never Jul 19 11:57:13 is it weekend yet? Jul 19 11:57:15 i want to sleep Jul 19 11:57:59 is it possible to use a different color for the divider-line in holo light/dark? Jul 19 11:58:17 Which divider line? Jul 19 12:01:47 hi. does permissions required by dependencies added using android update project --library propagate to main application manifest? Jul 19 12:05:03 If I want to create an UI like this https://developer.android.com/training/basics/fragments/fragment-ui.html (two columns on a tablet) is there then an activity that does nothing else than checking if the device is big enough and managing the fragments or what is the main activity supposed to do? Jul 19 12:05:48 The method onItemSelected(AdapterView, View, int, long) in the type AdapterView.OnItemSelectedListener is not applicable for the arguments (CarouselAdapter, View, int, long) Jul 19 12:05:57 this error will come Jul 19 12:06:00 wht will i do Jul 19 12:07:25 soa2ii: Android already checked device sizes and applies the correct XML file depending on which are provided in various layout- folders Jul 19 12:27:02 Hi, I downloaded android source code and made some changes in framework, added some log functions. But I didn't see the log when I use emulator. Jul 19 12:27:21 adb logcat Jul 19 12:27:37 Is it safe to use the default android status bar icons? Or are they device dependent? Jul 19 12:27:55 Aicasn, I did use adb logcat, and I used Lod.d in code. Jul 19 12:28:27 Aicasn, I build framework.jar use "make framewrok" Jul 19 12:28:34 hi i need help Jul 19 12:28:35 The method onItemSelected(AdapterView, View, int, long) in the type AdapterView.OnItemSelectedListener is not applicable for the arguments (CarouselAdapter, View, int, long) Jul 19 12:28:40 this error will come Jul 19 12:28:41 are you saying that your changes caused debug statements not to be printed in the log when running on an emulator? Jul 19 12:28:58 Aicasn, yes, it is. Jul 19 12:29:45 hey there, I'm using actionbarsherlock for my actionbar and am using list navigation mode, it looks great, but the list is in the center of the action bar, I would like to move it to the right Jul 19 12:29:48 any way to that ? Jul 19 12:29:48 not to be snide, but i think that's your problem. you can't break the framework and then ask why it doesn't work anymore. Jul 19 12:30:23 if the changes you made are of a reasonable size, you could pastebin them and ask someone to look over it Jul 19 12:30:50 Aicasn, I just add "Lod.d("test", "test");" Jul 19 12:31:09 Aicasn, that is all. Jul 19 12:31:16 where? Jul 19 12:31:25 hi, is there some kind of API or different way to know the Android version of the device at run time from an NDK / C app? Jul 19 12:31:46 How do I change the blue color under the tab-bar? Using holo light.. android 4 Jul 19 12:32:01 nazeerahmed: it's telling you that your first argument is the wrong type Jul 19 12:32:15 framework/base/core/jave/android/webkit/WebViewCore.java Jul 19 12:33:24 pespin: http://developer.android.com/reference/android/os/Build.VERSION.html ?? Jul 19 12:33:27 is there any android developer? Jul 19 12:33:32 i need help Jul 19 12:34:26 no android developers here Jul 19 12:34:51 they are developing software. There's lots of wannabees though Jul 19 12:34:54 j/k! :D Jul 19 12:35:06 Aicasn: then I need to get it trough JNI ? Jul 19 12:35:15 no native way? Jul 19 12:36:34 Is there a way to check whether IP address is DHCP assigned? Jul 19 12:37:30 hi all.. i have downloaded the wordnetsqlbuilder.. anyone please help how to use the wordnetsqlbuilder tool to convert wordnet database release to sql.. thanks Jul 19 12:37:35 jimmy_lo_chien_f: okay that will help. i'm not a framework hacker but you now have a question that might get you an answer. once you're sure that that one change causes the issue you can ask "if i put this line ABC in file X at line Y why does it cause result Z" Jul 19 12:37:58 pespin: oh i see what you're asking. eh... one second Jul 19 12:38:41 Aicasn, OK, thank you. Jul 19 12:39:04 sure thing. good luck ;) Jul 19 12:40:52 <20WAAWNAG> hi Jul 19 12:41:05 <20WAAWNAG> I have one question Jul 19 12:41:20 Aicasn: ok thanks :) Jul 19 12:42:19 <20WAAWNAG> How to act on the VelocityX parameter of the 'onFling' method to make the effect smooth ? Jul 19 12:43:03 pespin: just a shot in the dark here.... try reading "ro.build.version.release" from /system/build.prop. there are some other values in that file that might help you as well. be __veeeeeery__ careful. open as read-only Jul 19 12:44:17 hi Jul 19 12:44:23 How to act on the VelocityX parameter of the 'onFling' method to make the effect smooth ? Jul 19 12:44:31 thans in advance Jul 19 12:46:30 Aicasn:nice! thanks! :D Jul 19 12:46:38 no problem Jul 19 12:47:06 I'm tyring to create a new project using eclipse juno. For navigation I'm selecting tabs + swipe but the wizard tells me that such is only supported when using SDK version 14. And mine is set to 4. Shouldn't android support lib take care of this? Jul 19 12:48:47 ? Jul 19 12:50:36 firstdeveloper: you haven't told us very much, but i would suggest you start with http://developer.android.com/reference/android/view/GestureDetector.OnGestureListener.html and maybe check out http://www.monkeycancode.com/simple-gesture-fling for an example Jul 19 12:51:17 Aicasn: ok thanks :) Jul 19 12:53:02 sure :) Jul 19 12:53:52 btw guys most of these answers are google-able. i've never written an android app in my life other than "hello world" Jul 19 12:54:48 Aicasn: gogole isnt helping me... but maybe you are more lucky? Jul 19 12:55:17 snot: ah, well yours is over my head. i don't know how to help you. sorry :(( Jul 19 12:55:40 i'm not sure how eclipse works with the support lib Jul 19 12:55:42 Aicasn: np, mate :) Jul 19 12:56:25 snot: if it were me, i'd google the exact wording of the error message (if there is one) Jul 19 12:58:51 Aicasn: sorry but i didn't find what I wanted to know Jul 19 12:59:21 Aicasn: I will explain what i wanted to do Jul 19 12:59:27 please Jul 19 13:00:08 Aicasn: I override to Gallery class, and override the 'onFling' method with "super.onFling(e1, e2, 0, velocityY);" Jul 19 13:01:00 to what end? what would you like the user to see as a result of this code? Jul 19 13:01:35 Aicasn: ok, I want gallery go to the next image Jul 19 13:01:49 you're just zero-ing out the X component of the user's finger movement Jul 19 13:02:00 Aicasn: It works but sometimes the emulator didn't finish the movement Jul 19 13:02:02 Aicasn: already done that... that is how I debu Jul 19 13:02:05 debug Jul 19 13:02:47 firstdeveloper: oh, well the emulator is slow and clunky. to test responsiveness on a particular device, you need to test on that device Jul 19 13:03:04 though i hear there's a much better emulator just around the corner Jul 19 13:03:28 Aicasn: where ? Jul 19 13:03:47 http://android-developers.blogspot.com/2012/04/faster-emulator-with-better-hardware.html Jul 19 13:04:51 Aicasn: Ok thanks so much ;) Jul 19 13:05:13 sure thing Jul 19 13:07:01 afk for a bit Jul 19 13:12:41 Is it possible to get Lint to check for if statements that check for SDK version before spamming me with errors that I have conflicting SDK versions? Jul 19 13:14:22 what version of ADT do you have? Jul 19 13:15:02 20 I believe, one moment Jul 19 13:15:21 Yes, 20 Jul 19 13:15:38 I could simply suppress it Jul 19 13:15:39 huh, i thought all that got worked out a few versions ago Jul 19 13:15:47 But I quite like the warning Jul 19 13:15:54 It is handy Jul 19 13:16:03 Just not when I have already accounted for it Jul 19 13:16:44 is your target SDK set to the same as the SDK you're building against? Jul 19 13:17:09 Aicasn, I find a link about my question, http://devtcg.blogspot.tw/2009/03/building-running-and-debugging-android.html Jul 19 13:17:38 min sdk is 7, target is 15 Jul 19 13:17:47 huh, i got nothin Jul 19 13:18:24 Darn Jul 19 13:26:44 It seems that there are differen R classes. Once android.R and one my.package.R. I read that it's evil to import them. Do you always have to write the full name then or just R.*? The latter seems to have no auto completion in eclipse though Jul 19 13:27:27 soa2ii: yeah, android.R has all the OS resources, my.package.R has indices for resources in your app Jul 19 13:27:44 soa2ii: if you import correct "R" on top of the file you can just use "R" :) Jul 19 13:29:21 Mavrik: Hm … ok Jul 19 13:29:50 soa2ii: usually Eclipse does that import automatically Jul 19 13:30:00 yep Jul 19 13:30:09 unless you choose a symbol from a "wrong" R file the first time you use autocompletion Jul 19 13:30:15 I just read that it's evil because it can provoe errors Jul 19 13:30:16 then it'll import the wrong one :) Jul 19 13:35:43 I'm pretty sure this isn't possible without extreme measures, but just to make sure I'm not missing something obvious... Jul 19 13:35:55 Is it possible to get a location update when the user has stopped moving? Jul 19 13:37:02 define 'stopped moving' Jul 19 13:37:11 The user was in a state of movement Jul 19 13:37:14 the location calculated by the gps receiver must change for you to get an update Jul 19 13:37:19 that can happen if you're "not moving" Jul 19 13:37:23 and it may not happen if you are "moving" Jul 19 13:37:43 Anyone with good idea how to copy my db on the device backup server? Jul 19 13:37:56 to backup server* Jul 19 13:38:00 canadiancow|work: my understanding is that the location updates come as often as the provider gets them, and that I have no control Jul 19 13:38:14 other than rate limiting, via min_time and min_distance parameters. Jul 19 13:38:17 yes, but they are "updates" Jul 19 13:38:24 they only come if a value changes Jul 19 13:38:41 I need to explain to the boss that we can't get one when the courier "stops moving" then Jul 19 13:38:56 but due to the imprecision of gps, this generally means that if you put a phone on the ground, it will get updates forever Jul 19 13:38:57 I wrote a huge program already to draw a graph of why we can't request "more updates as we go faster" Jul 19 13:39:16 it seems any min_time less than 5 minutes just kills the battery Jul 19 13:41:15 got a very weird errir here - unable to add window -- token null is not for an application Jul 19 13:41:31 the same code works perfectly throughout my entire app and other apps but in this one case i get that and it crashes Jul 19 13:41:59 you cant draw windows unless you do it from an activity or a service. Jul 19 13:42:07 hmm Jul 19 13:42:17 weird how it always works tho Jul 19 13:42:20 fire off a service and draw from there :) Jul 19 13:42:27 nah, it doesn't you're surely mistaken Jul 19 13:42:29 its when i hit a button in a tabhost Jul 19 13:42:48 oh Jul 19 13:42:51 serously iexact same code works like 50x all over my apps Jul 19 13:42:57 then it has to be from an activity... Jul 19 13:43:02 but yeh i must be doing something silly Jul 19 13:43:07 well it is an activity Jul 19 13:43:58 completely baffling Jul 19 13:43:59 + Jul 19 13:44:22 my leg fell asleep and I had to lean forward to cope with the numbness, then I hit the plus key... Jul 19 13:44:31 haha Jul 19 13:44:43 - Jul 19 13:44:46 same happened to me Jul 19 13:44:51 only it was the minus key for me Jul 19 13:45:05 god this is annoying Jul 19 13:45:08 wtf is different Jul 19 13:45:35 when you run lint on the command line, any idea what each "." is when it's scanning? Jul 19 13:45:41 becuase the exmaple they give have very few dots Jul 19 13:45:46 whereas i have like pages of them :) Jul 19 13:45:51 one per file or something? Jul 19 13:45:58 hopefully not one per error T_T Jul 19 13:48:34 this is driving me up the wall Jul 19 13:48:46 Is it safe to use the default android.R.drawable.stat_* notification icons? Jul 19 13:50:11 safe? Jul 19 13:50:21 code1: if they're documented Jul 19 13:51:18 SimonVT: not device-specific (installed on all devices as part of the framework)? Jul 19 13:51:52 It's part of the api, so yeah Jul 19 13:52:01 wongk: I'm not sure if they are documented, they just show up in Eclipse (code-completion) which is why I wonder if it's safe to use. Jul 19 13:52:25 so now you know how to find the answer to that question Jul 19 13:52:26 Is there a way to check whether IP address is DHCP assigned? Jul 19 13:52:53 wongk: how!? :) Jul 19 13:53:22 * wongk evil glare Jul 19 13:53:32 ! Jul 19 13:53:45 http://developer.android.com/reference/android/R.drawable.html Jul 19 13:53:52 Think wongk wants you to rtfm ;d Jul 19 13:54:40 haha, I was actually frantically looking at the reference... Jul 19 13:54:46 thanks for the link :p Jul 19 13:55:26 aha... there was a difference -> getApplicationContext() Jul 19 13:55:37 why does that exist if it causes so much shit Jul 19 13:55:42 If it shows up in eclipse, it's in the api.. Like with everything else, make sure to check api level Jul 19 13:56:13 its gonna work now i bet :) Jul 19 13:56:43 Gaz`: because sometimes you want a context not bound to the lifecycle of the current activity :) Jul 19 13:56:43 So it's safe to use. I'm assuming the icons may look different depending on the device? Jul 19 13:56:54 Yep Jul 19 13:56:59 yeh no crashhhh Jul 19 13:57:04 Looks is device/platform specific Jul 19 13:57:14 ok thanks. Jul 19 14:01:58 Hi, I added "Log.d("test", "test")" in View.java. "make framework" is OK, no error message. Then I used "adb remount", "adb shell stop", "adb sync", "adb start", but emulator hung in the loading page. Jul 19 14:07:59 An activity in my app is started from a BroadcastReceiver. When I end the Activity, I am returned to the main activity of the app, not whatever activity had the foreground previously. Is there a way around this? Jul 19 14:18:35 ejcweb: use the correct flag when starting the activitiy from the boradcastreceiver Jul 19 14:18:48 awesome, i love how i can back all my code up to 32 gig usb Jul 19 14:18:53 makes u feel nice and safe Jul 19 14:19:14 Gaz`: offsite, man Jul 19 14:19:28 what do u mean Jul 19 14:19:33 bitbucket ftw Jul 19 14:20:01 I mean if all your code is backed up to a USB key which sits next to your computer... when some junkie robs your shed, you'll lose the lot Jul 19 14:20:35 lol Jul 19 14:20:35 shed Jul 19 14:20:37 true Jul 19 14:20:43 its on a drawer but its "on site" yeh Jul 19 14:20:52 who else can i trust to keep my data safe :) Jul 19 14:20:57 ive got 105 gig on dropbox too now Jul 19 14:21:01 use crashplan! or dropbox if its mall backups Jul 19 14:21:05 *small Jul 19 14:21:15 ik have 25g or zo Jul 19 14:21:15 only prob with dropbox is it needs that much hd space too Jul 19 14:21:23 how much stuff do you actually need to backup? Jul 19 14:21:44 i just set up all my workspaces on dropbox too, so its only using the hd space onc Jul 19 14:21:49 *once Jul 19 14:21:56 my entire code fpr everything since like 2004 fits into 19 gigs when rared Jul 19 14:21:58 f2prateek_: Do you know what flag I'd need when starting the activity? Jul 19 14:22:26 not really sure where my earlier stuff is think its lost forever Jul 19 14:22:30 ejcweb: no, try a couple of different ones from the developer site Jul 19 14:22:57 Gaz' plus you have dropbox pro right? unlimited revision history ith pack rat Jul 19 14:22:59 ;0 Jul 19 14:23:06 yes Jul 19 14:23:23 but thats 20 gigs on my hdd if i use dropbox Jul 19 14:23:25 bit annoying Jul 19 14:23:36 selective sync? Jul 19 14:23:37 dropbox should let u not sync certain files Jul 19 14:24:02 I've got around 5TB of space on my server here, of which the most important 1.5TB or so is backed up to crashplan Jul 19 14:24:04 VCS, always use VCS Jul 19 14:24:15 f2prateek oh i didnt know u could do that! Jul 19 14:24:36 Gaz': yeah its not for files though, only folders Jul 19 14:24:37 f2prateek so how would istick 20 gig file in there and not have it stored on my hd Jul 19 14:25:10 just upload it to dropbox, and go to your settings, in mac its under advanced Jul 19 14:25:16 and uncheck the fodler Jul 19 14:25:18 *folder Jul 19 14:25:31 ah, so i will need the space avialable while its uploading Jul 19 14:25:50 you can just upload it from the drive directly Jul 19 14:25:52 use the web uploader Jul 19 14:26:00 first createan empty folder Jul 19 14:26:03 *create Jul 19 14:26:11 then disable it under selective sync Jul 19 14:26:17 then upload from your backup drive Jul 19 14:26:22 awesome Jul 19 14:26:23 thanks man Jul 19 14:26:26 thats very handy Jul 19 14:26:36 you're welcome Jul 19 14:27:14 AVD emulator 7in 1280x800 is very slow on my laptop (macbook air) is there anything I can do to speed it up Jul 19 14:27:43 the emulator is very slow on every machine Jul 19 14:27:57 Gaz`: so you're not jumping on an early flight then? ;) Jul 19 14:28:06 the intel one is faster apparently Jul 19 14:28:15 *intel image Jul 19 14:28:21 Leeds id consider it if i had cash, i was there only like 2 weeks ago too Jul 19 14:28:22 what is the best way to view what im doing as I dev? Jul 19 14:28:27 the emulator is fine for smaller phone screens... once it gets up to tablet size, things start to seize up Jul 19 14:29:25 Gaz`: I think it's just a local thing - I'm half-expecting it to be in Cantonese, and them to have forgotten to mention it Jul 19 14:29:28 afternoon. How can I add support for additional versions of Android to my SDK? If I run the 'android' tool it shows 4.0.3 and 2.2 which I have installed, but I can't see where to add new ones? Any hints? Thanks Jul 19 14:29:46 ah dropbox wont let u upload huge files, bugger Jul 19 14:29:51 Leeds yeh that woudl suck Jul 19 14:32:01 f2prateek so yeh it wont let me do it from the site, files too big Jul 19 14:32:17 We've put an admob AdView in front of a glsurfaceview, but get alot of frame drops in our game when some ads animate, but only on nexus s running 4.0.4, but it runs fine on a galaxy s running 2.3.7. Is there a way to offload the ad to a different thread or something? Jul 19 14:33:42 Dropbox REALLY needs this feature: https://www.dropbox.com/votebox/3009/ignore-file-like-gitignore Jul 19 14:33:56 can't believe they still don't have something like that in place already! Jul 19 14:34:00 any developer of android here who is from india Jul 19 14:34:28 I create a MainActivity, two main.xml layouts in layouts and layouts-large and two fragments. Now I start my app and everything stays blank. Just the Name and a white window. Where should I begin to look? (Just started today and the fragment/activity/inflate stuff is kinda confusing :S) This is the acitivity: http://pastebin.com/7AiRdYvb those are the layouts: http://pastebin.com/gz1bQWgX Jul 19 14:35:31 if more code is need I can provide more Jul 19 14:36:44 soa2ii: you never use your layout in your activity Jul 19 14:37:03 uhm … omg … Jul 19 14:38:45 appel1: ok, let's see Jul 19 14:39:19 If you read the docs everything makes perfec sense … if you implement it you suddenly know nothing anymore … Jul 19 14:39:44 ok … now it crashes Jul 19 14:42:17 this is the first time ive thought dropbox sucks Jul 19 14:42:24 ive got a file i want to put into my ample sapce online Jul 19 14:42:33 but not enough hd space on the drive where my dropbox folder is Jul 19 14:43:12 so i cant use it Jul 19 14:44:08 i don't even use the dropbox software Jul 19 14:44:13 only the webstire Jul 19 14:44:15 er Jul 19 14:44:17 website Jul 19 14:44:31 OH yeh Jul 19 14:44:36 if i drag to site it does upload Jul 19 14:44:43 "4 days left".. Jul 19 14:45:01 lol Jul 19 14:45:16 oh no upload error Jul 19 14:45:17 i need someone to develop application Jul 19 14:45:17 grr Jul 19 14:45:23 so i can use that space Jul 19 14:45:30 hence the bloody usb stick Jul 19 14:45:30 wp-developer be prepared to whpi out a ton of cash =) Jul 19 14:45:43 and hence onsite Leeds :P Jul 19 14:45:59 wp-developer - I'd just mention the topic says no open solicitation for engineers... I dont care, but others might Jul 19 14:46:43 Gaz': did the web uploader not work? Jul 19 14:46:49 no files are too big Jul 19 14:47:06 oh :( Jul 19 14:47:20 yeh u reallyshould be able to ftp to your space Jul 19 14:48:01 how about using box.net? they have 50 gb of space free for android now so should be big enough. they have ftp as well i think Jul 19 14:48:14 but not as awesome as dropbox though Jul 19 14:48:48 oh Jul 19 14:48:49 thats good Jul 19 14:48:55 all i want is to know this file is safe somewhere Jul 19 14:48:59 incase my house burns down Jul 19 14:49:35 well you better get on it then :p Jul 19 14:49:49 :) Jul 19 14:50:21 anyone know how to code tonemapping algo ? Jul 19 14:51:09 ah they have limits on free one Jul 19 14:51:11 so its no use Jul 19 14:51:35 you have to install the android app to get the 50gb right? Jul 19 14:51:54 100 meg file limit Jul 19 14:52:12 basicallyif i migrated my dropbox folder to my terabyte drive id be sorted Jul 19 14:52:16 but i bet thats a pain hehe Jul 19 14:52:30 yeah too bad Jul 19 14:53:04 dropbox needs some sort of ftp wher eu can put stuff and then turn off the syncing Jul 19 14:53:23 damn i been coding too long, i want to stop now Jul 19 14:53:26 can't be done with smart sync? Jul 19 14:53:45 dont think so Jul 19 14:53:53 as i dont have space on the drive holding my db folder Jul 19 14:54:02 not enough anyway Jul 19 15:07:19 any good example code of showing xml data in android application Jul 19 15:08:31 someTextView.setText(""); Jul 19 15:08:33 Or Jul 19 15:08:39 Your question is much too vague. Jul 19 15:13:10 Is anyone aware, can I import a list of words that voice recognition can match to? I am attempting to improve the odds of the recogniser picking good words. Jul 19 15:15:59 anyone here? Jul 19 15:16:04 I have a really weird problem Jul 19 15:16:20 lots of people here :-) what's your problem? Jul 19 15:16:53 we all got problems Jul 19 15:17:37 so, I am making custom ROMS with AOSP on ubuntu Jul 19 15:17:48 everything is fine, have installed a number succesfully Jul 19 15:17:54 but suddenly fastboot goes missing Jul 19 15:18:03 like, 'fastboot: command not found' where it used to work Jul 19 15:18:15 CurlyBrace: I guess you'll more help in #android-root Jul 19 15:18:20 *find Jul 19 15:18:22 also @David- could you explain what you want to do more? You are maybe expecting the user to say one of a certain set of words, so you want to restrict the voice recog to just that set? Jul 19 15:18:57 Exactly Jul 19 15:19:20 The user will only ever say one word, of a maximum dictionary of 30 words Jul 19 15:20:02 so I would look to give google a string array of which it could choose from to select a result Jul 19 15:21:39 hmm give me a minute to check something - i feel like i've used a library that can do that but i cant remember if it was android Jul 19 15:22:08 I'm looking at the Java Speech API at the moment, it has grammars, and so may be what I need Jul 19 15:22:35 The Google system looks good for complete language dictaction, but that isn't what I need Jul 19 15:22:40 *dictation Jul 19 15:22:50 yeah the one included with the API does not support what you want Jul 19 15:24:51 can anybody answer a question about actionbar? Jul 19 15:25:02 Probably. Ask it and try Jul 19 15:26:10 I want to show a custom spinner on my action bar ( as the list navigation one comes at the center of action bar, I want it right aligned) Jul 19 15:26:27 setCustomView works as expected but my Icon and title goes puff! Jul 19 15:26:36 anyway I could have both of them Jul 19 15:27:17 Can anyone point me to an open source well tested Android application to get some inspiration for testing methods and best practices? I'm new to Java and Java testing and I think I hit a wall Jul 19 15:27:20 the built-in indetermintate progress spinner is right aligned Jul 19 15:27:37 on all the styles i've seen Jul 19 15:27:44 or if I could just use NAVIGATION_MODE_LIST and somehow get the spinner to get right align Jul 19 15:28:01 anybody ever get the kaltura java client to work on android? kaltura boasts about an android java sdk, but it doesn't exist afaik Jul 19 15:28:04 wongk: I'm talking about drop-down kinda spinner, not progress spinner Jul 19 15:28:12 ohhh Jul 19 15:28:27 that makes more sense Jul 19 15:28:38 they say use the traditional java client, yet the java client uses Log4J and the dex compiler complains about the jar files they've included... Jul 19 15:28:48 hemanshu: I think you might have to do setCustomView and add the icon and title back manually Jul 19 15:29:00 It's definitely not a standard pattern to have a right-aligned spinner Jul 19 15:31:20 Estel: Yeah I tried adding the icon and title, but I guess default implementation is pretty neat and it sets icon size/resolution and size/font of title very well Jul 19 15:31:33 @david- still researching your issue. This might help you: http://cmusphinx.sourceforge.net/2011/05/building-pocketsphinx-on-android/ Jul 19 15:31:53 hmm.. I guess my title is gonna stay constant I'll try add blank spaces to it that might push spinner to right :) Jul 19 15:32:09 But you don't know how wide the device it's on is Jul 19 15:32:44 pocketsphinx should allow you to run the Java speech API on Android but it may take a lot of refactoring - it looks like people had trouble with it before. I was wrong - I had done something for BlackBerry not Android Jul 19 15:34:13 Estel: you're right, I'll be ugly but I only need it for phones Jul 19 15:35:01 Why does the app icon disappear with setCustomView btw? The documentation says it should stay Jul 19 15:35:14 thanks for looking zachmccormick , I'll look Jul 19 15:35:46 no problem - i'll be in this channel all day and might look at it again while i'm at work. I'll try to send a pm if I find anything later Jul 19 15:36:14 Thanks :D This Pocketsphinx looks interesting Jul 19 15:36:32 Estel: you're probably calling setDisplayOptions(custom_blah) rather than setShowCustomBlah(true); Jul 19 15:36:34 Let me pastebin the code, I might be doing something wrong there Jul 19 15:36:36 hi guys, can anyone point me in the right direction for creating a custom control(or view) which ideally is based off of a layout(template_for_view.xml) Jul 19 15:37:08 JakeWharton: was meant to be replying to hemanshu Jul 19 15:37:33 indeed Jul 19 15:37:45 i've only been awake for 4 minutes so still a little slow :) Jul 19 15:38:17 Not at all, my lack of clarity was the issue. Jul 19 15:38:31 Estel: aah crap, the layout has layout_width fill_parent :( Jul 19 15:38:45 am trying after fixing it Jul 19 15:38:51 why are people still using "fill_parent" Jul 19 15:38:55 it was deprecated like 2 years ago Jul 19 15:39:00 Because API<8 I guess? Jul 19 15:39:13 Also all the old tutorials on random websites still use it :( Jul 19 15:39:20 if your build target is greater than or equal to 8, you can use it Jul 19 15:39:28 because it's an inlined constant with the same value as fill_parent Jul 19 15:39:36 and if your build target is less than 8, then wtf are you doing :( Jul 19 15:39:46 Even in xml it's inlined Jul 19 15:40:56 so fill_parent is bad? Jul 19 15:41:12 im not sure "bad" is the best adjective Jul 19 15:41:14 it's deprecated Jul 19 15:41:19 you should use match_parent Jul 19 15:41:30 ohk Jul 19 15:41:32 it implies wrong behavior Jul 19 15:41:40 So it was changed to match_parent Jul 19 15:42:28 hey i have a question what did they mean if users mean when they say something about CheesWiz ?? Jul 19 15:42:46 hi, can anyone help me with listview problem? i am trying to add two different types of rows, depending on current position http://codepad.org/2lUDfFM6 Jul 19 15:42:58 works on 4.0 emu, but fails on 2.2 device, says invalid cast (line 40 or 44) Jul 19 15:42:59 hi! some users with hardware keyboards complain that the soft keyboard does not show when they click an EditText (hardware keyboard not opened at this time). I set android:windowSoftInputMode="stateHidden|adjustPan" so that the keyboard is not automatically shown when starting the activity and when the ET is clicked the keyboard is shown above the layout. What prevents the soft keyboard from appearing on devices with hardware keyb Jul 19 15:42:59 oards? Jul 19 15:43:10 Marcus2729877676: Cheezwiz == TouchWiz Jul 19 15:43:21 Marcus2729877676: did you get that from MikeyMike01? Jul 19 15:43:22 Does anyuone have any wisdom regarding allowing users to login using there gmail account? I looked at newChooseAccountIntent() but its not available till api 14... Jul 19 15:43:51 mobilenoob11: appengine Jul 19 15:43:53 ttvd: line 40/44 of that paste, or the full activity? Jul 19 15:43:59 ttvd, are you using the view types properly? Jul 19 15:44:00 paste Jul 19 15:44:04 getItemViewType(int) or whatever it is Jul 19 15:44:16 my guess is no Jul 19 15:44:20 i get view types by findViewById Jul 19 15:44:29 becuase it can recycle views, so when you scroll to the 20th item, you may get back the cell from position 2 Jul 19 15:44:36 oh Jul 19 15:44:39 yes i told that i have problems to enable in settings the car-mode option by system default i'm running an ics custom rom on a s galaxy i-9000 Jul 19 15:44:42 how do i get around this? Jul 19 15:44:48 getViewTypeCount() getItemViewType(int position) Jul 19 15:44:48 mobilenoob11: you just request an auth token for their accoount, they don't have to login, they do have to give your app permission to their gmail Jul 19 15:44:50 sorry it's my first day with android :/ Jul 19 15:44:53 you need to learn how to use listview :) Jul 19 15:45:02 http://www.youtube.com/watch?v=wDBM6wVEO70 Jul 19 15:45:34 mobilenoob11: see AccountManager Jul 19 15:46:13 wongk I did, but I don't see an account chooser activity availalbe before api 14. Jul 19 15:46:28 mobilenoob11: there isn't one Jul 19 15:47:01 why do you want an activity for that Jul 19 15:48:04 wongk So users don't have to enter there email again. Jul 19 15:48:18 why don't you just load their account into a spinner Jul 19 15:48:22 accunts Jul 19 15:48:27 wongk I mean, they choose an account, then the AM does an auth right? Jul 19 15:48:30 canadiancow|work, yeah i see the problem, awesome thanks Jul 19 15:48:41 wongk, spinner? Jul 19 15:48:55 mobilenoob11: google android spinner Jul 19 15:49:57 wongk I can't find any examples of allowing a user to log into an app w gamil account. Jul 19 15:50:24 there's a picasa example floating around somewhere Jul 19 15:53:35 here's a good one: http://blog.notdot.net/2010/05/Authenticating-against-App-Engine-from-an-Android-app Jul 19 15:54:12 hey guys Jul 19 15:54:26 what does it take to work in san fransisco as an android dev? Jul 19 15:54:41 A job? Jul 19 15:55:04 1 million dollars should be able to get you something Jul 19 15:55:05 unpossible Jul 19 15:55:16 what? Jul 19 15:55:17 -.- Jul 19 15:55:22 are you trolling or serious? Jul 19 15:55:22 trolling is a coping mechanism used by self hating chatters to attempt to cause as much external misery as they feel inside Jul 19 15:55:30 hi Jul 19 15:55:45 chups: It was just a pretty vague question :P Jul 19 15:55:53 well Jul 19 15:55:58 i dunno Jul 19 15:56:02 wanna work there Jul 19 15:56:03 I use the DiskLruCache providing by the ICS code source Jul 19 15:56:06 and see what all the fuss is about Jul 19 15:56:11 and i was wondering what it took Jul 19 15:56:13 but "context.getExternalCacheDir()" return null Jul 19 15:56:18 i suppose the best answer is: someone to hire you Jul 19 15:56:21 wongk Bottom line here: What do I need to allow user to login to my app w a Gmail acc? I'm tired of working on this. Jul 19 15:56:21 I don't know why Jul 19 15:56:53 mobilenoob11: i've already given you the answer, you'll need to ask a more specific question Jul 19 15:56:56 could someone help me please Jul 19 15:56:57 i was asking more on the lines of, what does it take to get hired? Jul 19 15:56:57 ? Jul 19 15:56:58 chups: probably also depends on whether you're a US citizen and what your level of experience is. Jul 19 15:57:10 like, do i need to already have an app that has at lease 1k users or something? Jul 19 15:57:26 level of experience.. like what kinda level? Jul 19 15:57:31 like hacked in opengl Jul 19 15:57:33 stuff like that? Jul 19 15:57:48 11:56:45 < wongk> i suppose the best answer is: someone to hire you Jul 19 15:57:58 Probably depends on what level of job you apply for :/ But I guess most places would want to see demonstrable knowledge and a solid grasp of the API Jul 19 15:58:00 do you actually have android development experience? Jul 19 15:58:05 lets say that I asked you to write the Pandora app. Jul 19 15:58:15 (assume that I give you information on how to access their webservices for the music) Jul 19 15:58:18 could you? Jul 19 15:58:36 ? Jul 19 15:58:40 If the answer is "no", then you probably need more experience. Jul 19 15:59:10 No one is going to hire you because you have an app with 1000 users or something Jul 19 15:59:16 wongk OK. What activity/intent do I use to allow a user to choose an account listed w account manager. Jul 19 15:59:17 https://play.google.com/store/apps/details?id=com.pandora.android&hl=en -> well i know i can port it to ICS Jul 19 15:59:23 .... Jul 19 15:59:30 that's not what I asked. Jul 19 15:59:31 and i guess audio streaming and manipulation is sort of trivial Jul 19 15:59:33 mobilenoob11: you don't Jul 19 15:59:33 i guess Jul 19 15:59:45 mobilenoob11: or you write your own Jul 19 15:59:53 Can you tell me what all of the different contexts are, and when you would use them? Jul 19 16:00:02 is there a way to prevent users from hitting the back button within your app, so that when they hit it, it doesn't take them to the previous activity? Jul 19 16:00:11 mysteronyx: yes. Also, it's evil Jul 19 16:00:15 really.. Jul 19 16:00:19 mysteronyx: you can override onBackPressed, but this is generally considered A Bad Idea Jul 19 16:00:21 mysteronyx yes Jul 19 16:00:28 wongk why is it that this framework has no facility for this basic application? Jul 19 16:00:30 mostly because you're breaking the user's mental model of how the app works Jul 19 16:00:37 ah Jul 19 16:00:42 I'd recommend only overriding this to display an "are you sure?" dialog or some such Jul 19 16:00:42 ok Jul 19 16:00:44 Some cases it makes sense, like games Jul 19 16:00:47 mobilenoob11: why would you expect it to have a built-in activity for this? Jul 19 16:00:49 note that you can't prevent them from pressing home, etc. Jul 19 16:00:56 true Jul 19 16:01:03 mobilenoob11: if you're ICS+, then yes, there's a way to do it. Jul 19 16:01:04 wongk because it is reused so much. Jul 19 16:01:06 chups: You should be able to build a simple app that communicates with the network safely, performs well, and doesn't crash. Jul 19 16:01:09 i'm surprised they added one, it seems useless Jul 19 16:01:15 when you hit the back button, does it completely reload the previous activity? Jul 19 16:01:21 wongk it has one, but its not till api 14 Jul 19 16:01:28 mobilenoob11: http://developer.android.com/reference/android/accounts/AccountManager.html#newChooseAccountIntent(android.accounts.Account, java.util.ArrayList, java.lang.String[], boolean, java.lang.String, java.lang.String, java.lang.String[], android.os.Bundle) Jul 19 16:01:36 holy URL Jul 19 16:01:38 you can override it, k9 does. k9 is open source as well, so if you're determined to do it, you can look there Jul 19 16:02:03 so scottferg, that's it? no like, previous startup experience no porting stuff from ICS to gingerbread, etc.. ? Jul 19 16:02:03 mobilenoob11: is writing 10 lines of code to list the accounts is difficult? Jul 19 16:02:13 chups: I don't know why you're stuck on "porting" Jul 19 16:02:21 i dunno lov Jul 19 16:02:38 i see porting ICS as the biggest thing on Android atm Jul 19 16:02:40 chups: No, it's a start Jul 19 16:02:40 Estel: it doesn't seems to work, http://pastebin.com/QrcqSgNj here's my code Jul 19 16:02:52 We're looking for developers who can do a variety of interesting things, not just being able to figure out how to use fragments. Jul 19 16:03:02 Tell me; when would I use a content provider? Jul 19 16:03:03 when you hit the back button, does it completely reload the previous activity? Jul 19 16:03:03 hmmm, maybe i should try sending resumes or something scottferg? Jul 19 16:03:07 chups: The example I just gave is a very baseline set of skills Jul 19 16:03:07 wongk no but, the list adapter does accept account[] objects Jul 19 16:03:12 chups: We're in Chicago, not SF Jul 19 16:03:21 chups: But I can review it for you if you like Jul 19 16:03:22 chups: which apps have you worked on? Links... Jul 19 16:03:27 mobilenoob11: i have full faith and confidence you can think your way around that Jul 19 16:03:37 * wongk lunch Jul 19 16:03:40 i mean, send resumes to SF jobs sites or something Jul 19 16:04:01 chups: We handle a lot of developers who are still trying to break into the mobile space though. Having a "successful" app isn't a requirement, just the ability to write one Jul 19 16:04:06 chups: Definitely, it's worth trying Jul 19 16:04:09 wongk I have been working on this for 2weeks, the documentation stinks Jul 19 16:04:21 chups: sending resumes out will get you an INTERVIEW. Jul 19 16:04:26 It won't, however, get you the JOB> Jul 19 16:04:48 seriously, you haven't answered any of my questions. That implies that your answers are "I don't know" which would be an automatic no-hire from me. Jul 19 16:05:16 I use the DiskLruCache to store images for my application. I had already setup the cache, but when I run the application, i get a "nullPointerException" due to this method "context.getExternalCacheDir()" that return "null". Have you any idea to fix it? I am using android v2.3 Jul 19 16:05:30 wongk I bet IOS has a built in account chooser Jul 19 16:05:54 firstdeveloper: you should paste more code, I think. When/how is context set? Jul 19 16:06:01 firstdeveloper: are you using DiskLruCache from http://developer.android.com/training/displaying-bitmaps/cache-bitmap.html ? Jul 19 16:06:10 yes Jul 19 16:06:12 mobilenoob11: not that I can recall... Jul 19 16:06:28 firstdeveloper: if you get null from getExternalCacheDir() try using getCacheDir() or something Jul 19 16:06:39 well, i'm pushing out a beta build this august 4, but it's on hockeyapp right now Jul 19 16:06:44 i can pm you the public link Jul 19 16:06:48 I mean, why not have me write my own adapters? or my own hardware driver while im at it... Jul 19 16:06:51 lov: ok thanks, I try Jul 19 16:07:38 wongk how do other devs handle this? Jul 19 16:07:41 mobilenoob11: #ios is right there. Go nuts. Jul 19 16:07:41 what? wait sorry lov, missed it Jul 19 16:08:04 mobilenoob11: probably write a custom listadapter for account objects Jul 19 16:08:38 lov, content provider? i dunno, for quick search i guess Jul 19 16:08:58 i usually do away with content providers, find them too cluttering and use a DAO layer using ormlite instead Jul 19 16:09:07 just me personally, makes things more readable Jul 19 16:09:13 hello, can I somehow simulate an incoming sms when I debug on my device ? Jul 19 16:09:16 estel thats a good idea, but it seems like alot of work for basic functionality Jul 19 16:09:17 but i do know that you do need one for quick search Jul 19 16:09:29 maybe this is why ios is kicking our asses... Jul 19 16:09:38 and what sucks is that android requires devs to format table names Jul 19 16:09:39 Pinas: telnet localhost 5554 Jul 19 16:10:00 which breaks through the law of decoupling Jul 19 16:10:09 there is a sms send command Jul 19 16:10:12 i dunno, maybe i'm wrong Jul 19 16:10:21 but it's my honest opinion on content providers Jul 19 16:10:46 chups: you're assuming that the consumer is going to be your own application. Jul 19 16:11:34 hemanshu - i can connect to the phone via telnet ? Jul 19 16:11:57 Ok well thanks. Now I have MORE documentation to read. The last 100 pages told me how to do everything except what I need to do, but hey I have time to waste. Jul 19 16:11:58 huh? i don't get it lov Jul 19 16:11:59 mobilenoob11: a custom list adapter is a pretty simple task usually. As wongk said, < 20 LOC etc. Jul 19 16:12:01 care to expand? Jul 19 16:12:15 well if its emulator then you can telnet to it yes Jul 19 16:12:26 or I'm sure there would be option in DDMS to do the same Jul 19 16:12:47 well no it is not the emulator it is a real phone :) Jul 19 16:13:11 chups: Content providers are one of the primary building blocks of Android applications, providing content to applications. They encapsulate data and provide it to applications through the single ContentResolver interface. A content provider is only required if you need to share data between multiple applications. For example, the contacts data is used by multiple applications and must be stored in a content provider. If you don't need to share data Jul 19 16:13:11 Calling it version 4 without an account chooser...... Ballsy Jul 19 16:13:21 Contact info is one good example Jul 19 16:13:26 More like version .8 Jul 19 16:13:47 yeap, i.e. quick search as well Jul 19 16:13:53 I can't remember many apps that use account choosers :/ Jul 19 16:13:58 mobilenoob11: trolling is unproductive Jul 19 16:13:59 trolling is a coping mechanism used by self hating chatters to attempt to cause as much external misery as they feel inside Jul 19 16:14:07 trolling Jul 19 16:14:18 Pinas: yeah no telnet to device Jul 19 16:14:19 is liquid a bot or something? Jul 19 16:14:27 mobilenoob11: you can leave it out, or you can leave... Jul 19 16:15:10 hemanshu - so no sms emulation on device ? Jul 19 16:15:11 chups: the point is that if you're writing an app that wants to expose information to other applications, you'd want to use a content provider. Jul 19 16:15:29 They're extremely useful for widgets at 3.0 and above as well; have you seen the carousel type widgets that allow you to flip through them? Jul 19 16:15:30 is there a map like in perl? i have an ArrayList and i want to make it an ArrayList...so just curious Jul 19 16:15:41 the information propagated there comes from a content provider Jul 19 16:15:54 okay, so i guess your greater point would be in depth knowledge on the api i guess? Jul 19 16:16:03 not just the api but the fundamentals. Jul 19 16:16:11 lol, thanks leeds. I'll leave. Thanks wongk . Be aware that this is why there are no apps, and hardwaRE SALES SUCK. Jul 19 16:16:13 Content Providers are considered an Android fundamental, but almost no one uses or knows about them Jul 19 16:16:21 Pinas: I'm afraid I don't know a way to do that Jul 19 16:16:21 mobilenoob11: Samsung is crying all the way to the bank. Jul 19 16:16:21 bye Jul 19 16:16:34 shitty troll is shitty Jul 19 16:16:36 just to make sure he doesn't come back... Jul 19 16:16:44 * Leeds waits for the /msg abuse Jul 19 16:16:54 he's from florida. Nothing of value was lost. Jul 19 16:17:19 well, i used a carousel library once but i think it's different from what you mentioned since it didn't use a content provider Jul 19 16:17:21 hmmm.. Jul 19 16:17:23 okay love Jul 19 16:17:25 lov* Jul 19 16:17:26 sorry Jul 19 16:17:29 giggle Jul 19 16:17:29 i got your point Jul 19 16:17:32 lov: to be fair, content providers are one of the less straightforward power APIs - most devs simply don't need to provide them Jul 19 16:17:43 hey, whats the new varriable u can check at run time to see if it's a debug build? Jul 19 16:18:14 hey scottferg Jul 19 16:18:19 yo Jul 19 16:18:26 Leeds: that's totally true, but they need to know ABOUT them. Jul 19 16:18:27 what are your thoughts about imports applying for jobs? Jul 19 16:18:36 hemanshu - ok no problem, thx anyway :) Jul 19 16:18:36 like non-american android devs Jul 19 16:18:39 also true Jul 19 16:18:47 that came to the states to find a job Jul 19 16:18:50 chups: if you're from canuckistan, it's straightforward. if you're not, you need an H1B visa. Jul 19 16:18:52 lol, mobilenoob11 undersold an android port to a client probably Jul 19 16:18:55 anyone knows how I can emulate an incoming sms when doing on-device debugging ? Jul 19 16:18:59 and is now raging because it's not 100% like iOS Jul 19 16:19:10 argh theres another scratch on my gnex :( Jul 19 16:19:22 Pinas: I don't think you can, at least not with a device. You can fake it on the emu. Jul 19 16:19:30 Pinas, on device? i usually open a new emulator and text 5554 Jul 19 16:19:32 chups: All circumstantial. We'll fly a person out if the first few interviews make them seem worth the investment Jul 19 16:19:32 H1B is a PITA and enough to make me really not want to work in the US Jul 19 16:19:42 come to canada first Jul 19 16:19:45 then you can get in easily :) Jul 19 16:19:48 yeah, the screen isn't exactly scratch-resistent on the gnex Jul 19 16:19:48 oh scottferg? interesting.. Jul 19 16:19:59 chups i can text from emulator -> connected device ? Jul 19 16:20:06 haha, thanks for raising my hopes guys! Jul 19 16:20:11 chups: it makes you pretty vulnerable though Jul 19 16:20:13 Pinas, haven't tried it but theoretically no Jul 19 16:20:18 why Estel? Jul 19 16:20:23 k :D Jul 19 16:20:33 ie if you lose your job, which isn't too unlikely in a startup, you don't have very long to find a new one before you have to leave the country Jul 19 16:20:48 might be human trafficking or something? Jul 19 16:20:58 oh? Jul 19 16:21:00 hmmm.. Jul 19 16:21:13 so dont move to a new country for a "startup" ? :P Jul 19 16:21:26 chups: We do sell you into slavery if you don't get the job yes Jul 19 16:21:28 but i guess it doesn't really matter at that point, all i really want is to see for myself what all the fuss is about i gues Jul 19 16:21:33 Additionally, H1Bs are expensive; if you're not worth $100k/yr, you're probably not worth an H1B. Jul 19 16:21:36 It's the only logical way to make back our investment on the plane ticket Jul 19 16:21:38 haha scottferg lol Jul 19 16:21:52 H1B? Jul 19 16:21:53 hmmm Jul 19 16:21:53 Yeh, I guess you'd have to be relatively senior to be worth the company's investment. Jul 19 16:22:20 If you're in the EU, do Shoreditch or Berlin instead. Jul 19 16:22:29 chups: if you're a visiting worker, you'd need an H1B visa. There are only so many of them granted, and they cost something like $50k per application. Jul 19 16:22:31 there are other countries which encourage startups... Jul 19 16:22:32 Amsterdam! Jul 19 16:22:33 how many years does it usually take for one to be considered a senior? Jul 19 16:22:46 50k o_________o Jul 19 16:22:46 i know actual knowledge affects the status Jul 19 16:22:47 5-10? It's more a question of skill than experienece. Jul 19 16:22:48 *experience Jul 19 16:22:54 5-10? Jul 19 16:22:54 Enough for Android to become deprecated? Jul 19 16:22:56 hmmm.. Jul 19 16:22:57 canadiancow|work: canuckistani workers don't need H1Bs Jul 19 16:23:00 i know Jul 19 16:23:03 there's some other streamlined visa Jul 19 16:23:04 yeah, i guess Estel Jul 19 16:23:05 lol Jul 19 16:23:06 TN visa Jul 19 16:23:12 although i dont even think that's "necessary" Jul 19 16:23:24 Seriously though, some great startups at the Silicon Roundabout Jul 19 16:23:31 chups: 5-10 years development experience, not just android experience. Jul 19 16:23:32 50k? Jul 19 16:23:40 wow Jul 19 16:23:52 Pretty sure I've seen a job advert asking for 8-10 years Android experience Jul 19 16:24:00 LOL Jul 19 16:24:04 Estel: you can safely know to avoid those job adverts :> Jul 19 16:24:13 Estel: time travelers Jul 19 16:24:23 well what's a "year" Jul 19 16:24:29 i do android dev 10 hours a week for a year Jul 19 16:24:33 is that a year of experience? Jul 19 16:24:38 what about 40? 60? Jul 19 16:24:51 lov: yep. Tell-tale "Oh HR totally didn't write this job specification" Jul 19 16:24:52 ok socrates Jul 19 16:24:59 lov: maybe they're trying a really targeted ad, and they want to hire arubin? Jul 19 16:25:02 it's an imperfect metric Jul 19 16:25:06 Leeds: ha Jul 19 16:25:17 At least job adverts don't ask for LOC as a metric of experience. Jul 19 16:25:41 yeah, it's more on standardized imperfect metric which hr makes up for using interviews Jul 19 16:25:49 and probation Jul 19 16:26:31 oh man Jul 19 16:26:58 hey guys Jul 19 16:27:03 what's your current project about? Jul 19 16:27:30 i dunno, honest question Jul 19 16:27:36 might hear something interesting Jul 19 16:27:52 People with interesting answers probably aren't at liberty to reveal them Jul 19 16:28:01 What Estel said Jul 19 16:28:08 All our client work is under NDA until release Jul 19 16:28:46 Which is painful because we're about to ship a super cool iOS app that is getting negotiated for Android right now buttttttttt Jul 19 16:28:49 can't say what :) Jul 19 16:28:56 Tease Jul 19 16:29:20 hey so i got an app here made by some iOS guys, and they have a single activity that they simply swap fragements in and out of instead of having an activity for each fragement. (It's an iOSy thing to do) how can I convince them that multiple activites are the way to go :P Jul 19 16:29:45 Wavesonics: how many fragments? Jul 19 16:30:10 ~20 Jul 19 16:30:16 I would assume you have some sweet logic for routing when all of those fragments should swap in and out, could probably cut down on a ton of code by doing traditional activities Jul 19 16:30:31 and they are all individual screens in practice Jul 19 16:30:44 Oh, no tablet support at all? Jul 19 16:30:48 Inherited an app recently where the original dev did essentially that but with WebViews, it was awful Jul 19 16:31:12 Estel, nope, but there could be Jul 19 16:33:33 Wavesonics: I dunno, but what'd be easy to do for them is instead of managing the 'fragment backstack' themselves Jul 19 16:33:56 Wavesonics: is simply starting a new instance of the single activity with the target fragment Jul 19 16:34:42 MDijkstra, ya that, plus opening the door to doing tablet UIs for certain activities Jul 19 16:35:30 Wavesonics: actually, I think the many fragments-structure is more easily adaptable, because it forces you to do all the stuff in the fragments Jul 19 16:35:38 *adaptable to a tablet layout Jul 19 16:36:08 *and all of the communication through the parent activity Jul 19 16:36:17 ^ Jul 19 16:36:21 MDijkstra, well its all done in fragements already, but doing combo layouts for certain screens all in the same activity would get messy i think Jul 19 16:37:23 In what way is that similar to an iOSy way of doing stuff btw? Jul 19 16:37:37 Wavesonics: just saying, it's easy to accidentally couple your fragments too closely to the containing activity, especially if you're used to iOS Jul 19 16:37:50 Estel: in the sense that a Fragment kind of is a UIViewController? Jul 19 16:37:51 MDijkstra, true Jul 19 16:38:06 (with emphasis on kind of) Jul 19 16:38:12 MDijkstra, yup, and they are treating the Activty like the AppDelegate Jul 19 16:38:24 Ahh ok Jul 19 16:38:58 AppDelegate in Android is more so the Application object IMO Jul 19 16:40:00 Wavesonics: agreed, Activity is like a super beefy UIViewController Jul 19 16:40:01 Wavesonics: the split android is in is kind of weird though with tablet/phone activities Jul 19 16:40:06 hey guys, i imported an android app from github and Eclipse wants me to delete a bunch of @override functions: http://i.imgur.com/x4rqQ.png did I import something wrong? Jul 19 16:40:26 MDijkstra, scottferg, ya Jul 19 16:40:59 I get the iOS way of doing things, I feel like it makes more sense for custom views and the like, but I prefer Android's harder defined Application/Activity/Fragment for overall app architecture Jul 19 16:41:25 scottferg: well, the problem with android's way is imo that they've largely deprecated it on tablets Jul 19 16:41:40 In what way? Jul 19 16:42:01 scottferg: in the way that you do fragmenttransactions which manages the backstack for you Jul 19 16:42:06 Lord_Zero: imported a fresh project? I guess you cleaned? Jul 19 16:42:21 scottferg: I mean, a single activity app for a tablet isn't weird or wrong at all Jul 19 16:42:27 I can see where you're coming from, yeah Jul 19 16:42:31 It could be Jul 19 16:42:35 It's circumstantial really Jul 19 16:42:38 true Jul 19 16:42:54 What you're saying is true for GTV apps as well Jul 19 16:43:04 Though I've found tablet -> TV apps are more 1:1 than phone -> tablet apps Jul 19 16:43:08 Has anyone used the LocalActivityManager implementation of MapActivity and can give pointers on communicating between the FragmentActivity and MapActivity? Jul 19 16:43:11 in terms of architecture and whatnot Jul 19 16:43:15 Estel: this is a post screenshot of the clean just now: http://i.imgur.com/IMQQz.png Jul 19 16:43:30 to be honest, I would've preferred they had adapted the activity model to split layouts Jul 19 16:43:38 rather than just changing it completely Jul 19 16:43:42 but this is more flexible Jul 19 16:43:45 Change compiler compliance to 1.6 in your project properties, Lord_Zero Jul 19 16:44:41 SimonVT: on both these? http://i.imgur.com/2cAqI.png Jul 19 16:45:24 Also the one above Jul 19 16:46:08 Worked! I am new at importing andrroid apps. How would I know to do this in the future? Jul 19 16:46:23 good morning Jul 19 16:47:12 You'd know it by knowing java Jul 19 16:47:57 i know all the javas Jul 19 16:48:24 SimonVT: im new-ish to java. I took a year of it here at the uni but we never made any large scale projects with eclipse Jul 19 16:48:50 ALL of the javas? Jul 19 16:48:58 yes Jul 19 16:49:00 ALL the javas Jul 19 16:49:20 hence his nickname, "the authority" Jul 19 16:49:22 All of the jabbas Jul 19 16:50:05 Lord_Zero: that particular case isn't necessarily something you'd encounter all that often. Jul 19 16:50:15 Should one always use Project -> clean when importing? Jul 19 16:50:15 can anyone tell me why /proc/net/tcp does not contain all information about outgoing connections ??? Jul 19 16:50:30 You could also change the compliance level to 1.6 workspace wide, not just for that project Jul 19 16:51:34 MY NEXUS 7 ARRIVED Jul 19 16:51:40 yah Jul 19 16:51:46 did you pee your pants a little? Jul 19 16:52:33 GeeksOnHugs, managed to open it? Jul 19 16:52:41 heh Jul 19 16:52:42 Estel: its currently set to 1.7 I believe Jul 19 16:52:58 Lord_Zero: that's a problem Jul 19 16:53:09 *pees pants* Jul 19 16:53:13 at least, for android projects Jul 19 16:53:15 it does that sometimes when importing projects, just make sure you do it everytime you import one Jul 19 16:53:23 change it to 1.6 that is Jul 19 16:53:31 okay ill change it Jul 19 16:53:52 you can keep the first checkbox enabled, just change the first one to 1.6 Jul 19 16:53:54 jabbas the hutt Jul 19 16:55:31 Estel: im sure this is a really common question but can you recommend some good tutorials for someone that needs a strong grasp of android basics? Jul 19 16:56:11 http://developer.android.com/training/index.html Jul 19 16:56:50 wongk: oops I meant aise from the actual google ones. Unless they are the best? Jul 19 16:57:58 Probably? Also try Reto Meier's book? Jul 19 17:01:01 Estel: apparently reto meier's book is actually terrible ._. Jul 19 17:01:28 Hmm. I feel like my attention span is shorter with booka Jul 19 17:01:44 books* I like web tutorials and videos im very visual and respond well to hearing directions Jul 19 17:02:26 let's put that to the test... jump! Jul 19 17:03:16 Im in a wheel chair... Jul 19 17:03:22 aka my office chair :P Jul 19 17:03:33 thats messed up Jul 19 17:03:39 Almost had you though. Probably lol Jul 19 17:03:57 you did have me Jul 19 17:04:37 you can have you back! Jul 19 17:04:54 * Lord_Zero brain melts Jul 19 17:05:22 when will then be now? soon Jul 19 17:06:05 Have you ever been so far even as decided to use go want to look more like? Jul 19 17:23:11 Anybody have a good tutorial for writing tests with Robolectric. I have it all installed, but am blanking at the actual writing tests part... Jul 19 17:29:40 public void testSomething() throws Exception { assertTrue("I stink at writing tests", false); } Jul 19 17:29:55 does anybody have kaltura working on Android? Jul 19 17:30:34 i was just contacted by a competitor (i.e. i would really piss people off i i wnet to work there) to work as a senior ios developer Jul 19 17:30:57 based on a linkedin profile that probably says something like "fixed a bug in an ios app two years ago" Jul 19 17:38:28 canadiancow: sounds like LinkedIn Jul 19 17:39:01 :D Jul 19 17:42:32 How do I put a < in my android xml? Is it the standard html style &; style markup? Jul 19 17:43:47 u can use it (lint also say u should use them) Jul 19 17:52:03 Anyone design a database for linking some indexed content to tags? Jul 19 17:53:00 ListView question: I have a listview with about 300 items in it, (rather simple layout, 2 textviews and 1 checkbox), at the top performance is fine, but the further down in the list i scroll performance degrades drastically. Does this sound familiar? Any hints? I tried setting a fixed layout_height to the container element for the listviewitem if perhaps the recyling wasn't kicking in. (and yes, I am creating vi Jul 19 17:53:26 My application is hanging on a function call (encryption is involved). I want to keep the UI responsive while this computation is taking place (upating a textView for progress etc). What is the concept / keyword I'm looking for here? Jul 19 17:53:46 a new thread Jul 19 17:53:48 deadmund Jul 19 17:54:04 mediaplayer.setDatasource() fails when it is done a second time. What can I do? I called mediaplayer.release() already. Jul 19 17:54:27 deadmund: create a Class that implements Runnable and override the run() method to do what you want it to do Jul 19 17:55:01 then create a new Thread in your UI that uses the Runnable you made as it's Cosntructor, and call thread.start(), run() will run in it's own execution path :) Jul 19 17:55:51 (optionally you can extend the Thread class, but the functional result is about the same unless you're keeping collections of Runnables) Jul 19 17:56:16 deadmund: or create an AsyncTask and show a progressDialog while you're busy in doInBackground Jul 19 17:56:32 hemanshu: fancy Jul 19 17:56:55 I'm so hung up on Kaltura Jul 19 17:57:11 I'm about to use their Ruby library and run it on my device with JRuby Jul 19 17:57:14 which sounds absurd Jul 19 17:59:59 I need some wise counselling regarding Tabs and like Jul 19 18:00:19 consesus is to use view pager + action bar instead of tabs Jul 19 18:00:49 view pager you say, let me look it up Jul 19 18:03:36 so I'm already using Jack's abs, which is awesome btw, I just need 4 static tabs, like we see in Dropbox Jul 19 18:03:41 Hey, I'm having issues downloading the adt for eclipse. It's saying there is missing files. Off hand, where could I check to see where the issue lies? As I understand it seems to be a very popular issue. Jul 19 18:04:00 only trouble I've so far is, tabs don't play well with multiple activities Jul 19 18:04:55 hemanshu, i really have no idea but last night romainguy was advising to use action bar + view pager since tabs can quickly become nearly intractable Jul 19 18:06:01 thank saltmiser hemanshu Jul 19 18:06:37 Can someone help me with my fragment? Jul 19 18:06:39 Noob issue! Anyone have issues downloading the adt on eclipse? Jul 19 18:07:09 I see this http://viewpagerindicator.com/ and it says it works with abs ..would give it a try Jul 19 18:07:12 thanks lasserix Jul 19 18:08:06 Hi, I was settings the ringtone of my phone using a ContentResolver however something has gone wrong in the database as when I open Sound Settings, it crashes Jul 19 18:08:06 GoogleDroid: what 'issue' are you facing? Jul 19 18:08:18 with this message in LogCat http://pastebin.com/raw.php?i=DKmZpn8W Jul 19 18:08:24 How can I fix this? Jul 19 18:10:36 I cant find the drawable images for tabs(the tabs too switch fragments) in https://github.com/android/platform_frameworks_base/tree/ics-plus-aosp/core/res/res/drawable-hdpi Jul 19 18:10:53 help!!! Please!!!! Jul 19 18:13:35 can you put .gitignore in .gitignore Jul 19 18:14:34 writing is error-prone and frustrating to debug. Documentation is super obscure and incomprehensible on the matching rules Jul 19 18:15:20 yea Jul 19 18:15:24 Layout question: Three views in a linear layout (horizontal). View one is an image, view two could be a linear layout with a text view and long amounts of text. View three is an image (mostly fixed with/height). How can i make sure that all three views show and allow the *maximum* space possible for the second view, which could push the third view off screen if allowed to run rampant. Jul 19 18:15:29 i was tring to get it to match some URI once Jul 19 18:15:36 is a FileDescriptor automatically closed if it is set to null? Jul 19 18:15:36 i ahd to start with getting it to match "http" Jul 19 18:15:39 then add the host Jul 19 18:15:41 then the path Jul 19 18:15:44 slowly tweaking Jul 19 18:15:45 80% of the reason I'm asking is because stack overflow is screwing up for me. :-) Jul 19 18:16:12 when you think you got a complex right, then it is probably wrong Jul 19 18:16:30 canadiancow|work: What do you mean put a .gitignore in gitignore? Like a bash line to insert to another file? Jul 19 18:17:08 You could always just pipe one gitingore into another and it would still work... Jul 19 18:19:36 no i mean Jul 19 18:19:43 echo ".gitignore" > .gitignore Jul 19 18:20:30 afaik that works. Jul 19 18:20:47 That would take you two minutes to test Jul 19 18:21:18 i'm trying to make an Activity Picker...it lists all the activities and then i pick one, this all works...but to then call that activity later i am not sure what parts of ActivityInfo I need to know in order to then creat the Intent to call it later... Jul 19 18:21:53 I cant find the drawable images for tabs(the tabs too switch fragments) in https://github.com/android/platform_frameworks_base/tree/ics-plus-aosp/core/res/res/drawable-hdpi Jul 19 18:22:06 -+ Jul 19 18:22:09 I can get the packageName and the ActivityItem.name...but can't seem to call the needed activity with just those... :( Jul 19 18:23:06 Blade: It would help you more to look in the drawable XML to see what resources the tab is using. Jul 19 18:23:13 http://pastebin.com/7N8L3q8w Jul 19 18:27:35 eric256: ActivityInfo is parcelable. Why don't you just return that to the calling activity? Jul 19 18:29:12 and i could then create an intent based on that somehow? Jul 19 18:29:20 * eric256 feels blind some days Jul 19 18:29:56 er Jul 19 18:30:12 you can just create a ComponentName using the package and classname in the ActivityInfo Jul 19 18:30:23 no need to turn them into a string and then try to use a ComponentName utility to un-stringify it Jul 19 18:31:05 http://developer.android.com/reference/android/content/ComponentName.html#ComponentName(java.lang.String, java.lang.String) Jul 19 18:31:37 Mind you, if the activity expects a certain action, you'll have problems. Jul 19 18:32:13 ericrichardson - have you let everyone know that we're looking for android developers at willowtree? Jul 19 18:32:48 yea thats what i was trying to do Jul 19 18:32:51 mlake900: This room is not for hiring so no. Jul 19 18:34:13 oh oops..didn't see that Jul 19 18:34:29 can someone explain why this intent: Intent { act=android.intent.action.VIEW dat=http://www.google.co.uk/m/products?q=4005209114530&source=zxing flg=0x3c80000 }, passes succesfully this intent filter: http://pastebin.com/1uT1RiGv Jul 19 18:34:33 yea i was trying to do just that Jul 19 18:34:39 i'll join you. i just need $250k salary, and a house Jul 19 18:34:53 and a tub full of GOLD Jul 19 18:34:57 nah Jul 19 18:34:59 and i was making it a string cause i was stuffing it in an extraString for the Intent.. Jul 19 18:34:59 why would i wnat that? Jul 19 18:35:04 Why wouldn't you Jul 19 18:35:16 planning on being able to savei it and acll it in a list, and i know which action it is expecting so thats okay Jul 19 18:35:19 because then id have nowhere to bathe Jul 19 18:35:29 Bathing is for suckers and poor people Jul 19 18:35:41 Who needs to bathe when you have a tub of gold Jul 19 18:35:45 Can someone answer this question: https://www.dropbox.com/s/aski5yk46dkn137/2012-07-19%2011.33.27.jpg Jul 19 18:36:16 for serious? Jul 19 18:36:18 why dear god is that question posed in an image???? lmao Jul 19 18:36:29 give the TextView a layout_weight="1" Jul 19 18:36:38 and a layout_width="0dp" Jul 19 18:36:49 ImageViews should both be layout_width="wrap_content" Jul 19 18:37:04 also: lol @ scanned question :) Jul 19 18:37:15 although i could probably handwrite and scan faster than mock something up in paint :( Jul 19 18:37:33 I like it Jul 19 18:37:46 Need more question as pics Jul 19 18:37:51 +1 for way of asking question Jul 19 18:38:02 use layout_weight=0 Jul 19 18:38:02 yea but then mikedg will come and show you a picture of his... Jul 19 18:38:12 sorry weight 1, width 0 Jul 19 18:38:25 oh yeah like canadiancow said Jul 19 18:38:55 huh, ok. The text and images are wrapped in linear layouts, but i'll try this regardless. Jul 19 18:39:47 no more paper + pen pls Jul 19 18:39:51 lol Jul 19 18:39:52 papyrus + reed only Jul 19 18:39:53 wait what? Jul 19 18:39:55 I vote for doing all your layouts as images, and making them a series of ImageViews Jul 19 18:40:03 so you have ... ? Jul 19 18:40:38 canadiancow|work: yes… there are multiple text views/images Jul 19 18:40:43 but it seems to be working... Jul 19 18:40:59 the solution you gave. effing awesome! Jul 19 18:41:02 Thanks all. Jul 19 18:41:04 for your example, you want Jul 19 18:41:15 no other "wrapping" linearlayouts Jul 19 18:41:18 why is it wrapped in ll individually? Jul 19 18:42:47 one sec Jul 19 18:43:08 https://www.dropbox.com/s/y3za2z544qgesv7/2012-07-19%2011.42.35.jpg Jul 19 18:43:13 My real layout looks like ^ Jul 19 18:43:25 * mdwright tilts head Jul 19 18:43:27 and having multiple LL's is easy. Jul 19 18:43:40 well now i'm getting somwhere...Permission Denial: starting Intent Jul 19 18:43:53 well, the left image doesnt need to be in a linear layout Jul 19 18:43:59 mdwright: it isn't. Jul 19 18:44:48 I have Jul 19 18:44:50 Then we just the weights/widths on the immediate children of the outer most LL Jul 19 18:45:01 hwrd|work: sgtm. if you run into performance issues you could probably use a relativelayout to cut down on the depth of your layout Jul 19 18:45:03 wtf is LL_TEXT Jul 19 18:45:18 canadiancow|work had a good solution… makes sense. The reason is because i didn't set my width to 0dp :-( Jul 19 18:45:42 im sure he means Jul 19 18:46:01 canadiancow|work: my text LL. i didn't want to be like Jul 19 18:46:24 oh... why do you have one textview in a LL? Jul 19 18:46:34 that ^^ Jul 19 18:46:34 QubeZ: look at his second drawing Jul 19 18:46:36 -_- Jul 19 18:46:46 he has multiple textviews in a vertical LL Jul 19 18:46:51 ok Jul 19 18:47:16 when will there be a drag and drop editor to make this easier ala ios/xcode Jul 19 18:47:29 i mean one that works Jul 19 18:47:30 there is a drag and drop editor... Jul 19 18:47:49 in ios, you're positioning stuff fairly absolutely Jul 19 18:47:58 im sure drag and drop works fine in AbsoluteLayout Jul 19 18:48:15 canadiancow|work: no you're not, there are struts and springs in the editor Jul 19 18:48:18 its not absolute Jul 19 18:48:48 no its not... not you're =) Jul 19 18:50:17 maybe i am! Jul 19 18:50:26 QubeZ: there's some new enhancements coming to the layout editor which were demoed at I/O Jul 19 18:50:31 heh Jul 19 18:50:46 that include things like recommended margins and better support for gridlayouts Jul 19 18:50:53 mdwright: thanks, i'll have to catch up on my i/o session viewing Jul 19 18:50:58 right now im focused heavily on gcm Jul 19 18:51:04 QubeZ: the tools talk is where you'll find it :) Jul 19 18:51:12 GCM is pretty cool Jul 19 18:51:21 mdwright: thanks Jul 19 18:51:32 mdwright: ya, we'll be leverage that in todomapr(.com) Jul 19 18:54:43 hey in the screenshot for todomapr on the website, where are the buttons on the phone? Jul 19 18:55:13 yea i dunno... thats what the frame generator generated Jul 19 18:55:17 lol Jul 19 18:55:30 Pfft, that's unprofessional Jul 19 18:55:47 Hello! I'd like to know, is there any way to set a command in the app to run like, for example, every 90 seconds? Jul 19 18:56:37 theres a schedulr service Jul 19 18:56:42 its in the apidemos Jul 19 18:56:45 *scheduler Jul 19 18:57:07 Schedulr sounds like a web startup Jul 19 18:57:13 f2prateek: Do you have a link for their docs? Jul 19 18:57:31 JoseeAntonioR: they're in the SDK Jul 19 18:57:32 is it possible Locale did something with there activities so that they can't be started? cause I can call my own plugin and another thirdparty and it works, but if i call theirs i get "Permission Denial" Jul 19 18:57:43 mdwright: great, thanks Jul 19 18:58:17 JoseeAntonioR: $SDK_PATH/samples/ specifically Jul 19 18:58:20 sure thing :) Jul 19 18:58:26 eric256: you might just need to request a particular permission. Jul 19 18:58:28 its in the alarm controller class in the api demos Jul 19 18:58:36 *AlarmController Jul 19 18:58:49 eric256: alternately, the Activity may not be exported. Jul 19 18:59:06 or AlarmService, i can't remember which one Jul 19 18:59:07 JoseeAntonioR: either use a Timer or use the AlarmManager Jul 19 19:00:54 hmm i guess if they had it all in one package on their end it wouldn't need to be exported...wish it told me what permission i was missing lol Jul 19 19:01:25 oh yea guess the error says "Not Exported" when I hover over it....well dang Jul 19 19:01:56 that severly limits the utility of the idea i had for a locale plugin... Jul 19 19:02:14 canadiancow|work: looks like the new frame generator works porperly... we'll updat ethe image Jul 19 19:02:24 heh Jul 19 19:05:24 someone knows by head how to exit the action mode? started by startActionMode(... ) ? searched api but can't seem to find it :) Jul 19 19:06:19 ActionMode#finish() Jul 19 19:06:20 Call finish on it Jul 19 19:06:45 finish ALL the actions Jul 19 19:06:57 guys, i've got this: http://pastebin.com/vmiHjd0c so, where should I insert the command I want to run repeatedly? And is it fine? Jul 19 19:08:28 evancharlton, SimonVT don't have an actionmode object.. Jul 19 19:08:54 yes you do Jul 19 19:09:00 you made it with startactionMode(..) Jul 19 19:09:12 is there documentation about the javascript limitations of webviews? Jul 19 19:09:33 dzan: What does startActionMode return? Jul 19 19:09:39 hey all. a simple question: I have activities a, b and c. b has nohistory=true. if I navigate a -> b -> c, then press back on c - nothing happens, I have to press back one more time to get to a. how can I implement getting to a from c by pressing back one time? Jul 19 19:09:57 SimonVT, evancharlton sorry thanks :) Jul 19 19:09:58 evll: have b finish() when starting c Jul 19 19:10:09 evancharlton: thanks, will try that Jul 19 19:10:11 was an Object here :D stupid me Jul 19 19:11:51 JoseeAntonioR: just fire an intent as show in the code when you want it to Jul 19 19:12:19 f2prateek: erm, sorry, just starting to code, and I'm doing something very basic :) Jul 19 19:12:22 what did you mean? Jul 19 19:13:25 JoseeAntonioR: There's a good explanation of Intents here: http://developer.android.com/guide/components/intents-filters.html Jul 19 19:13:52 evancharlton: I tried calling finish() after I call startAcitivity(c) from activity b. that did not change anything. should I call finish from somewhere else? Jul 19 19:14:27 doing it wrong Jul 19 19:14:29 i'll give you the basic example, you have two buttons, one to start the scheduler, and one to stop (The code is in there, dont use the oneshotalarm). When the intent is scheduled, it goes to the onReceive of the receiver class and does whatever it is in Jul 19 19:15:36 i wanted to add a functionality to my application which automatically loads up when a nfc tag is tapped against the phone Jul 19 19:16:07 evll, launch activity a with flag e FLAG_ACTIVITY_CLEAR_TOP Jul 19 19:16:26 to go from c to a Jul 19 19:18:02 noooo Jul 19 19:18:05 he's going back Jul 19 19:18:57 don't we have cron in Android? Jul 19 19:19:20 JoseeAntonioR: no. Use AlarmManager. Jul 19 19:19:35 doesnt he want to go from c to a? just launch a from c with the right flag.... Jul 19 19:19:36 lov: I'm trying to, but can't get where should I put the command to run Jul 19 19:19:45 er Jul 19 19:19:55 JoseeAntonioR: put it in onCreate Jul 19 19:20:02 ideally should be inside a button listener Jul 19 19:20:06 JoseeAntonioR: AlarmManager registers PendingIntents. You fire off that intent to some class of yours that understands what the intent does.... Jul 19 19:20:15 f2prateek: I do not launch a from c. I press back on c. Jul 19 19:20:17 but just to see how it works put it onCreate Jul 19 19:20:37 e.g. You create a PendingIntent for a Service of yours, with an action of DO_WHATEVER. Jul 19 19:20:42 so when you press back, you want to got from c to a? Jul 19 19:20:52 Your service will check the action of the intent that it just got, see that it's DO_WHATEVER, and do it. Jul 19 19:21:14 sounds more like something for the up button, back button shouldnt be overridden if you follow the deisgn guide Jul 19 19:21:30 If you need this to persist across reboots, register a BroadcastReceiver for the BOOTUP broadcast intent (whatever it's called; look at the Intent docs), and have that receiver register your stuff with Alarmmanager Jul 19 19:21:43 f2prateek: yes, I want to get from c to a. I can do that if I press back TWO times. but I want to press back once. I press it once - and nothing happens, because b has nohistory=true Jul 19 19:22:08 f2prateek: there is no up button on my phone :) Jul 19 19:22:20 evll: you put it in the action bar Jul 19 19:22:51 you can override onBackPressed (or somehting like that) and start actvity a form c Jul 19 19:22:56 f*form Jul 19 19:23:00 *from Jul 19 19:23:17 no Jul 19 19:23:18 dont do that Jul 19 19:23:19 with the necessary flags Jul 19 19:23:34 if you're overriding onBackPressed, you are almost certainly doing something wrong Jul 19 19:23:37 ^^ also what canadiancow said Jul 19 19:23:51 yes, probably that is what I am going with. I know that it is advised not to overwrite the back button, but it is the logical thing to do in this situation. and that is what a user would expect Jul 19 19:24:28 hi i have a newb question. i am following a tutorial on android central about how to build android on ubuntu. i am trying to make a .zip and its telling me that i am on Java 1.6.0_24 and i need to be on Java SE 1.6. how do i go about fixing this? Jul 19 19:24:39 evancharlton already gave the solution, finish b when starting c Jul 19 19:25:04 SimonVT: nohistory property in the manifest does the same doesn't it? Jul 19 19:25:07 b is not launched Jul 19 19:25:14 but back does not do anything Jul 19 19:25:16 if pressed once Jul 19 19:25:25 have press twice to go to a Jul 19 19:25:46 I don't know, does it? Jul 19 19:26:00 yes, it allows to avoid going back to b Jul 19 19:26:11 but the problem is that I have to press back twice anyway Jul 19 19:26:30 Do you have to press twice if you finish b manually? Jul 19 19:26:55 yes, I tried calling finish. unless it has to be called in a specific place - it does not change anything Jul 19 19:27:28 evll: show the code Jul 19 19:28:49 finish does absolutely the same thing as nohistory=true Jul 19 19:29:27 QubeZ: I do not know what to show. it is very basic. startactivity calls and that's it Jul 19 19:29:43 plus android:noHistory="true" in the manifest Jul 19 19:29:48 for activity b Jul 19 19:30:07 again: b is finished - it does not appear when I press back from c - that is good Jul 19 19:30:14 so what is the behavior you're observing? a -> b -> c (back pressed goes to b again) ? Jul 19 19:30:16 but to get to c - I have to press back twice Jul 19 19:30:33 ahh, pressing it once takes you where? Jul 19 19:30:34 QubeZ: no, pressing back the first time just does nothing Jul 19 19:30:48 it reloads the screen or something like that. looks like that Jul 19 19:30:58 then I press it one more time - and get to a Jul 19 19:31:01 you sure you have'nt overriden onBackPressed()? Like canadiancow|work said, dont do that unless you have a really good reason Jul 19 19:31:05 I never see b again Jul 19 19:31:10 I am sure Jul 19 19:31:57 what is your minSdkVersion and targetSdkVersion set to ? Jul 19 19:32:41 both are 8 Jul 19 19:33:13 Well, something else is wrong in your code Jul 19 19:33:20 I just tried both approaches, neither had me pressing back twice Jul 19 19:33:30 ya but anyways, you should set your targetSdkVersion to 16 Jul 19 19:33:35 evll: show the code Jul 19 19:34:02 i know you said its simple, but you're "simply" doing something wrong Jul 19 19:34:59 ok, will try to show it now Jul 19 19:35:56 How do I use "" on a button? Jul 19 19:36:20 Paging JakeWharton (or anybody who knows the answer): How do I change the color of the overflow vertical ellipses in an ABS implementation? I updated all of the overflow drawables packaged with ABS, but it didn't work... Anybody have a quick solution? Jul 19 19:36:33 theme attribute Jul 19 19:37:03 wow paging JakeWharton worked Jul 19 19:37:05 Blade: