**** BEGIN LOGGING AT Wed Jul 04 02:59:58 2012 Jul 04 03:00:47 JakeWharton that was for me? Jul 04 03:00:54 yes Jul 04 03:01:16 drpenguin, thanks, if i want to only support one screen size, do i just have one of those folders? Jul 04 03:02:32 F1rstAid: yes Jul 04 03:02:48 in 99.99999% of cases you should never need that permission Jul 04 03:03:02 Jug6ernaut can you tell me which one is the permission for that or I have to dig it alone Jul 04 03:03:20 JakeWharton asume that this is 0.00001% case for app which is not going to be public Jul 04 03:03:31 How do you kill processes in android? Jul 04 03:03:34 loin: to support 1 screen size, you must specify that as the sole supported size in your manifest Jul 04 03:03:45 kill -9 pid/nameprocess Jul 04 03:03:49 like linux Jul 04 03:03:50 :) Jul 04 03:03:53 oh shit Jul 04 03:03:57 killall name also works Jul 04 03:03:58 ;) Jul 04 03:04:07 I didn't think they gave you permissions to run arbitrary commands Jul 04 03:04:13 because like, when I use the terminal Jul 04 03:04:20 the only commands I can use are like Jul 04 03:04:23 cd ls and cat :P Jul 04 03:04:23 I have root Jul 04 03:04:26 maybe grep Jul 04 03:04:34 Nevermind -_- Jul 04 03:04:34 and I added more things to busybox Jul 04 03:04:35 ;) Jul 04 03:04:46 You and your damn sudo! Jul 04 03:04:52 :D Jul 04 03:04:57 no I have su onlyu :P Jul 04 03:06:02 hahahaha Jul 04 03:06:05 drpenguin, thanks again and one more thing, what happens if someone tries to open it and their screen size is unsupported? Jul 04 03:06:33 They wont be able to Jul 04 03:06:47 Play will filter their device and they wont even be able to see the app Jul 04 03:06:48 nice, thanks drpenguin Jul 04 03:07:05 not play Jul 04 03:07:06 i don't plan on releasing it Jul 04 03:07:08 is it possible to use netbeans for android dev "easily" Jul 04 03:07:09 ? Jul 04 03:07:09 it's just for myself Jul 04 03:08:34 loin: ooooooooh.. in that case, itl probably just look sei messed up Jul 04 03:08:37 s/sei/semi/ Jul 04 03:08:56 i see Jul 04 03:09:05 thanks drpenguin Jul 04 03:09:18 thats what we call a "hand slap and "dont do that" thing" Jul 04 03:10:06 Technodrome: Android is only a .jar that you mark as provided, otherwise it's a normal Java project Jul 04 03:10:09 drpenguin, do i need to declare that i only have one folder or will android notice it and take pictures from it Jul 04 03:10:14 so, yes, you should be able to use netbeans without much effort Jul 04 03:10:26 you can probably also google "netbeans android" and find 50 tutorials Jul 04 03:10:37 loin: ehh,, that I dont know Jul 04 03:10:39 JakeWharton: like can you use the emulator etc easily? Jul 04 03:10:49 from the command line, sure Jul 04 03:10:53 not sure about through the IDE Jul 04 03:10:57 drpenguin, i will try anyway, thanks for the help Jul 04 03:10:57 JakeWharton: yeah there is a ton, just wanted to see if it was realistic you know Jul 04 03:11:08 I cannot speak to that part Jul 04 03:11:18 i'll just stick to eclipse for now Jul 04 03:11:21 but i do like netbeans Jul 04 03:12:04 you should try IntelliJ Jul 04 03:15:03 is that what you use JakeWharton ? Jul 04 03:15:13 I do Jul 04 03:15:17 VIM AND TERMINAL MASTER RACE Jul 04 03:15:28 (sorry, I couldn't help myself) Jul 04 03:15:32 >_>; Jul 04 03:15:49 hahaha, but yeah Technodrome stick with eclipse Jul 04 03:16:05 IMO it's far more powerful than netbeans Jul 04 03:16:18 and perfectly suited for development in MAAANY languages Jul 04 03:16:29 hence why google uses it for both android and dart Jul 04 03:16:38 aptana... Jul 04 03:16:41 titanium studio Jul 04 03:16:51 Eclipse is awesome! Jul 04 03:16:53 dart uses a custom editor based on eclipse Jul 04 03:16:58 not the same Jul 04 03:17:03 d'oh I keep quitting the emulator thinking it's like the iOS simulator which starts up in about a second Jul 04 03:17:23 close, but not Jul 04 03:17:49 Oh, there isnt a plugin? :S Jul 04 03:18:00 oh wait dart Jul 04 03:18:05 I was thinking aptana for a second Jul 04 03:18:10 Yeah... Jul 04 03:18:23 aptana is both a plugin and custom editor iirc Jul 04 03:18:25 But SEE Jul 04 03:18:27 Gneiss: would like to try netbeans with it at some point, but yeah, getting this done is more important :) Jul 04 03:18:44 yeah, for sure Jul 04 03:18:54 what are you working on Gneiss ? Jul 04 03:18:59 Hey, you might even learn to love eclipse Jul 04 03:19:08 what is a "custom editor" vs a pre-configured distribution of Eclipse? Jul 04 03:19:14 on a mac the ui of netbeans is a bit better i think hehe Jul 04 03:19:39 jcromartie I assumed that he meant the same thing Jul 04 03:20:44 i really think android is really just starting to hit that *point* Jul 04 03:21:16 or maybe its just my bad perception Jul 04 03:21:57 what point its that? Jul 04 03:23:39 jcromartie: windows in 94 right before windows 95 Jul 04 03:24:12 hm Jul 04 03:24:13 windows with 3.1 etc it was still sorta in "limbo" popular used by many but still people unsure about its future Jul 04 03:24:27 If I'm using a custom dialog, how can I use findViewById to change a textview's text if I haven't set the contentview to the xml file? Jul 04 03:24:46 android same way, but now with all the new great hardware and the overall polish that android has enjoyed over the last few releases, its looking good Jul 04 03:25:06 i would say at some point the iphone could easily hold less than a 10 percent market share Jul 04 03:25:10 if not less Jul 04 03:25:17 the macintosh all over again Jul 04 03:25:17 is there an easy library for HttpUrlConnection that does multipart,gzip,progress notification, async (+ cancel)? if yes, where. if not, i will start working on it :) Jul 04 03:25:33 Onions: You have to inflate the view at some point right? Once its inflated, ous hould be able to rever to stuff in it by view id Jul 04 03:25:38 Onions: you have to use a time machine or just wait until you inflate the view Jul 04 03:25:46 I've inflated it Jul 04 03:26:05 What now? Jul 04 03:26:05 Onions: then you can just call view.findById on your inflated view Jul 04 03:26:21 then you set the content view to the view instance not the xml Jul 04 03:26:21 ahhh Jul 04 03:26:23 ty Jul 04 03:26:33 np Jul 04 03:28:48 ron_frown: have another lovely day at work ? :P Jul 04 03:29:10 I've been on vacation this week Jul 04 03:29:28 I've been building a new deck for my house =0 Jul 04 03:29:40 I Jul 04 03:29:55 ron_frown: sounds like a great learning experience Jul 04 03:29:57 I'll spend at least 1 day updating my resume, and getting applications in =) Jul 04 03:30:02 have you done that before ? Jul 04 03:30:06 g00s I am multi talented Jul 04 03:30:07 haha Jul 04 03:30:10 :) Jul 04 03:30:28 the deck is more money than it is effort or difficulty Jul 04 03:30:30 So no easy to use HttpUrlConnection wrapper library? everyone using HttpClient in that case? Jul 04 03:30:51 pboos - how hard is it to use httpUrlConnection ,I wrapped it up in about 1hr Jul 04 03:30:57 Currently using HttpClient as well (easy libraries and stuff available), but want to switch to the lightweight HttpUrlConnection :) Jul 04 03:31:13 there really aren only a few difference Jul 04 03:31:18 ron_frown: it is easy to use. but not if you want to do multipart file upload, progress information on download/upload, oauth, digest auth, ... Jul 04 03:31:51 ron_frown: for httpclient you have nice existing libraries for most of that stuff. Jul 04 03:32:00 well I'd hesitate to say nice Jul 04 03:32:03 but I hear you Jul 04 03:32:11 ron_frown: true.. not that nice, but they work :D Jul 04 03:32:30 reading http://android-developers.blogspot.jp/2011/09/androids-http-clients.html i feel like it is about getting time to switch :) Jul 04 03:33:23 pboos lts put it this way... I had intermittent issues where connection manager would hang up and quit handling further requests for a blurb of time Jul 04 03:33:34 I also had problems with memory usage and processing times Jul 04 03:33:37 ron_frown: and those httpclient libraries to do multipart, ... are way too big (okay proguard helps), but i want to have something similar for httpurlconnection.. if there is something, i will use it and send pull requests. if not, i will create an open source thing (i hope my company allows me to open source it) Jul 04 03:33:45 I swapped it out for HttpUrlConenction and it was a major blessing in disguise Jul 04 03:34:10 httpurlconnection you can send raw http verbs as far as I know Jul 04 03:34:55 ron_frown: what os version? seems like there are some bugs with httpurlconnection on 2.2 devices.. but don't know which. one i found: .disconnect() does not work. but if you close the inputstream and outputstream, it will finish (some devices throw a nullpointerexception, but that can be caught :D) Jul 04 03:35:14 pboos my problems were using apache httpclient Jul 04 03:36:03 ron_frown: but did you discover any problems with httpurlconnection on 2.2 devices? Jul 04 03:36:06 I wrapped up httpclient with a asynch request connection pooling manager Jul 04 03:36:15 no, but to be fair my apps target 2.3+ Jul 04 03:36:35 fuck froyo Jul 04 03:36:36 haha Jul 04 03:36:36 ron_frown: i have some async with httpclient right now, which seems to work here. but want to switch Jul 04 03:36:52 wll the way I abstracted it apart it was SUPER easy to swap over Jul 04 03:36:57 ron_frown: :D i would like to say that too. Jul 04 03:37:09 if I was going to do multipart uploads ec, I wouldnt use http Jul 04 03:38:02 http? you mean httpclient? Jul 04 03:38:20 no I wouldnt use http at all Jul 04 03:38:26 anyone here can help me with this question? - http://stackoverflow.com/questions/11303314/expandablelistview-is-showing-indicator-for-groups-with-no-child Jul 04 03:38:30 I know you may have servers out of your control Jul 04 03:38:35 ron_frown: you would use https only? why that? Jul 04 03:38:39 but http in general handles file uploads really fucking shitty Jul 04 03:38:44 raw tcp Jul 04 03:39:08 ron_frown: ah :D well, it is a little bad, true.. but i have no other way, since the api limits me Jul 04 03:39:16 how long you guys been dev'ing for? Jul 04 03:39:18 a lot of servers basically write files out disk once the file is completely uploaded... which allocates that file in memory Jul 04 03:39:24 Technodrome - 17yr Jul 04 03:39:28 sorry Jul 04 03:39:30 android Jul 04 03:39:36 since 1.0 Jul 04 03:39:43 1.something anyway Jul 04 03:39:54 stupid me delaying Jul 04 03:39:59 meh Jul 04 03:40:03 the tools are just now getting good Jul 04 03:40:06 I wouldnt stress it Jul 04 03:40:11 got any apps on the play store? Jul 04 03:40:15 I have an app I made with the 1.0 SDK Jul 04 03:40:22 still works on Jelly Bean Jul 04 03:40:37 Technodrome - no... I am all behind the scenes work for the client Jul 04 03:40:48 and do embedded dev with a highly modified android base Jul 04 03:40:55 hmmm Jul 04 03:41:07 get a good app in there :) Jul 04 03:41:30 my thing is I am a tool builder, I've yet to come up with a winning idea that I can deliver Jul 04 03:41:32 minus games Jul 04 03:41:34 which I am working on Jul 04 03:41:42 How do I add a linebreak? Jul 04 03:41:45 (in xml) Jul 04 03:42:04 ron_frown: people create better mouse traps all the time and do very well, thats always an option if you don't want to do ground up Jul 04 03:42:12 the great thing Jul 04 03:42:18 the android app store is... kinda bare Jul 04 03:42:25 i mean loads of apps.. .lots of them with great ideas Jul 04 03:42:27 its picking up Jul 04 03:42:34 heavily picking up Jul 04 03:42:35 but terrible terrible gfx and implementation Jul 04 03:42:46 the richest 2 guys i know …both got super rich off the android market Jul 04 03:42:56 one made 3 million , the other 4 Jul 04 03:43:03 what apsp Jul 04 03:43:06 appa Jul 04 03:43:14 one was a weather app that was popular last year Jul 04 03:43:26 its not been updated for 4.0 and he doesn't care Jul 04 03:43:32 he now manages his money in hedge funds Jul 04 03:43:44 just to show you ….things come and go but still all you need is a little bit of time Jul 04 03:43:51 cyberrog: writing a solution right now (indicator problem) Jul 04 03:44:08 time is not my issue Jul 04 03:44:13 its coming up with something people will buy Jul 04 03:44:18 i meant time in the "spotlight" Jul 04 03:44:24 my old coworker built an app that was jokes Jul 04 03:44:28 jokes? Jul 04 03:44:32 charged for it and made a ton of money Jul 04 03:44:35 and it wasnt a great app Jul 04 03:44:35 most android apps have horrible horrible graphics Jul 04 03:44:40 its programmers trying to do design Jul 04 03:44:47 they know nothing about lighting shadows good perspective Jul 04 03:44:50 its programmer art Jul 04 03:45:14 a well executed app, with good art and a "tiny" marketing budget (higher the better obviously) can do wonders Jul 04 03:45:17 cyberrog: wrote quick answer.. more details later... have to go for lunch Jul 04 03:45:38 pboos thanks anyways Jul 04 03:46:58 pboos this own indicator on my list should be via java or via a selector.xml as I did in my code? I didnt understand what you mean in that situtaion Jul 04 03:47:11 ron_frown: it reminds me of the early days of windows 95 Jul 04 03:47:24 tons of applications that all had bad graphics Jul 04 03:47:39 but they had an excuse, it was really the first time graphics were in the spotlight Jul 04 03:47:40 its more the people who gravitate to android are the more intellectuals Jul 04 03:47:41 the engineers Jul 04 03:47:50 and likewise not the artsy fartsy people Jul 04 03:47:52 i do programming and vector art Jul 04 03:48:05 they are both skill sets to me Jul 04 03:48:46 i think art can be learned pretty decently, it is taught and once you learn some basic principles, you can do some amazing things, but without those training wheels, you will fall every time Jul 04 03:52:55 I do have an idea for a jewel game Jul 04 03:53:07 but I'd have to sell it mainly on being smooth and bugless Jul 04 03:53:14 becaus there are LOADs of games similar Jul 04 03:54:57 forget a jewel game ron_frown Jul 04 03:55:05 to many other things, come on :D Jul 04 03:56:05 I need to find a creative partner that is the idea man, and I'll be the builder Jul 04 03:57:41 * JakeWharton volunteers Jul 04 03:57:49 come on now Jul 04 03:57:53 ron frown is my hero Jul 04 03:57:57 ? Jul 04 03:57:58 wha? Jul 04 03:58:11 you are every bit as capable as myself in the code dept Jul 04 03:58:58 having me involved wouldnt really benefit you any =) Jul 04 03:59:06 we could be twice as effective! Jul 04 03:59:21 well you know I'm game... so einsetzen never got finished Jul 04 03:59:23 don't let JakeWharton touch any code Jul 04 03:59:34 he'll break it and then you won't find the problem for _months_ Jul 04 03:59:48 I can get ahold of jake any time I want Jul 04 03:59:49 we need einsetzen at Square Jul 04 03:59:51 and harass him =) Jul 04 03:59:57 re-heheheaaaallly Jul 04 04:00:01 is play3 out? Jul 04 04:00:03 How would I make a button a third of it's parent's width? Jul 04 04:00:07 you mean 2? Jul 04 04:00:08 yeah Jul 04 04:00:09 or whatever the new ver was going to be? Jul 04 04:00:35 wanna take another crack at it? or would that be a conflict of interest? Jul 04 04:00:43 Onions: set a LinearLayout weightSum to 3 and your button's layout_weight to 1 Jul 04 04:01:03 its not a competitor obviously, but if you help build, and we try to sell services to... Jul 04 04:01:18 What do I do with android:width ? Jul 04 04:01:29 0sp Jul 04 04:01:43 dp Jul 04 04:01:43 DP Jul 04 04:01:51 sp is for text unless you are my coworkers =) Jul 04 04:02:51 hahaha Jul 04 04:03:13 I'm motivated as fuck right now, and have 5-6 more days of my vacation =) Jul 04 04:04:15 ty jake & ron Jul 04 04:05:17 same coworker had a problem early on with our SCM... so one day I was looking at checkin logs and noticed every time he checked in, it would check in every one of maybe 1000 files, making merges... interesting Jul 04 04:05:32 ron_frown: I'm barely motivated and have as much time as I want Jul 04 04:05:56 ends up he got latest once, and it hosed his code cause he didnt know how to merge, so he'd get latest, copy files to a diff folder to work on it Jul 04 04:06:03 then copy entire folder system back over the top of the old one Jul 04 04:06:11 and check the entire structure in Jul 04 04:27:46 can someone point me to a step-by-step for how to get my GNex from 4.0.1 to 4.1? Jul 04 04:28:30 HorizonXP: #gn might have some good ideas Jul 04 04:28:37 but it should be basically the same as flashing other roms Jul 04 04:29:01 Tagami: yeah, but i'm totally new to Android and Android-Dev, so I'm really starting from scratch here Jul 04 04:29:13 I'd really like to keep it as close to stock as possible Jul 04 04:29:18 ah hah, then probably #gn or something along those lines is your best bet Jul 04 04:29:29 cool, i'll try there Jul 04 04:29:36 it's mostly just for dev purposes anyway Jul 04 04:29:39 HorizonXP, wrong channel checkout #android-root Jul 04 04:29:56 luxurymode: #gn or #android-root? Jul 04 04:30:07 also, 4.1 is comoiing to your gnex pretty dang soon so id honestly just wait Jul 04 04:30:15 luxurymode: also, I'm here for dev purposes too Jul 04 04:30:34 dang soon = this week? Jul 04 04:30:39 hello all Jul 04 04:30:42 HorizonXP, thats cool, but you can still ask non-dev related questions there while you ask dev questions here :) Jul 04 04:30:50 HorizonXP, what country and provider? Jul 04 04:30:58 thank you JakeWharton for giving my life purpose again! Jul 04 04:31:08 that's what I'm here for Jul 04 04:31:10 or at least distracting me from the bs that is my day job =( Jul 04 04:31:11 =( Jul 04 04:31:12 anyone have trouble running adb on mac os x lion? every time I try to run it by changing my directory to platform-tools folder I get a "doesn't exist" type error Jul 04 04:31:14 =) Jul 04 04:31:14 lol Jul 04 04:31:24 ron_frown, how did JakeWharton do it this time? ABS, Otto? Jul 04 04:31:28 luxurymode: of course, just figured someone here could point me to the right place, including the right channel. :-) Jul 04 04:31:33 I dont know what otto is Jul 04 04:31:35 theguy200: ./adb and it is +x ? Jul 04 04:31:43 ron_frown: http://corner.squareup.com/2012/07/otto.html Jul 04 04:31:46 1 sec Jul 04 04:31:51 JakeWharton: you're too fast Jul 04 04:31:53 luxurymode: Canada and Bell. it's not my daily device, doesn't have SIM in it usually. It's unlocked. Jul 04 04:31:58 oh an idea we dreamed up long ago, apparently is still viable Jul 04 04:32:13 i'm not 100% sure how to use Otto just yet Jul 04 04:32:13 ron_frownhttps://plus.google.com/107049228697365395345/posts/6j4ANWngCUY Jul 04 04:32:16 whoops Jul 04 04:32:19 but thats how ABS was initially hehe Jul 04 04:32:28 ron_frown https://plus.google.com/107049228697365395345/posts/6j4ANWngCUY Jul 04 04:32:43 what does +x mean? im not familiar with unix terms Jul 04 04:32:49 executable Jul 04 04:32:49 is that permissions or something? Jul 04 04:32:53 oh man i can switch tons of broadcastreceiver type pattern to using otto Jul 04 04:32:55 theguy200: executable i.e. chmod +x adb Jul 04 04:33:00 in your platform-tools directory Jul 04 04:33:09 okay i ran the command Jul 04 04:33:14 now try ./adb Jul 04 04:33:15 JakeWharton is otto just a static singleton for bus? Jul 04 04:33:24 HorizonXP, hmm yeah then im not sure. the guys in android-root whould know more Jul 04 04:33:26 it's a bus with Android nods Jul 04 04:33:46 luxurymode: already there :) thanks Jul 04 04:33:47 thread awareness, reflection caching, etc. Jul 04 04:33:52 brb one minute... sorry. Jul 04 04:34:01 sweet Jul 04 04:34:47 it's really simple by design Jul 04 04:35:19 I built basically this exact same thing for .net Jul 04 04:35:30 ya but this is relevant :) Jul 04 04:35:35 har har har Jul 04 04:35:48 broadcast receiver stuff depends on whats doing the broadcasting Jul 04 04:36:06 its not cross process right? Just preventing you from having to do a bunch of manual passing Jul 04 04:36:16 yep Jul 04 04:36:21 sweet Jul 04 04:36:57 I'll use it in einsetzen client Jul 04 04:37:17 its just like a IOC container, its value isnt necessarily immediately realized Jul 04 04:37:27 but guarenteed to make life easier later Jul 04 04:38:04 okay sorry about that... i had a phone call, can anyone help me with ADB and terminal on mac? Jul 04 04:38:18 it says -bash: command not found Jul 04 04:38:45 theguy200: edit the file ~/.profile Jul 04 04:38:50 or ~/.bash_profile Jul 04 04:38:58 and put into it: Jul 04 04:39:17 export PATH=$PATH:/path/to/your/android-sdk/platform-tools/ Jul 04 04:39:30 export PATH=$PATH:/path/to/your/android-sdk/platform-tools/:/path/to/your/android-sdk/tools/ Jul 04 04:39:46 both or just the second line? Jul 04 04:39:48 using ./adb should work Jul 04 04:39:53 even if its not in your $PATH Jul 04 04:39:53 just the second line Jul 04 04:40:10 but make sure you adapt it to the correct path :D Jul 04 04:40:24 then open a new terminal and you should be able to call adb from anywhere Jul 04 04:40:28 quebez.. that worked thanks, but not on my home directory, will running tapas' thing make it work on my home directory without having to cd to Jul 04 04:40:37 kk awesome i'll give it atry Jul 04 04:40:49 theguy200: right, tapas recommentation will work for you from anywhere Jul 04 04:40:56 recommendation Jul 04 04:42:04 /.bash_profile doesn't exist.. so should i touch to make one and then -e to edit it Jul 04 04:42:05 theguy200: the tilde ~ stands for your home directory btw.. Jul 04 04:42:20 okay, thanks for confirming, that's what i thought Jul 04 04:42:29 OS X makes things difficult though.. so i would recommend using the following command from the console to edit it: Jul 04 04:42:41 cd; vi .bash_profile Jul 04 04:42:51 then press i to enter insert mode.. Jul 04 04:42:54 enter the line Jul 04 04:42:58 then press ESC Jul 04 04:43:03 and then press :wq Jul 04 04:43:08 .. Jul 04 04:43:11 wow, welcome to unix 101 in #android-dev Jul 04 04:43:12 =) Jul 04 04:43:25 hey, android is a unix Jul 04 04:43:29 and os x is a unix, too Jul 04 04:43:43 he needs to learn how to use his OS before trying to work on Android Jul 04 04:43:47 haha, yea thanks a lot.. i'm not familiar with unix, this is my first apple machine Jul 04 04:44:09 i'm an amateur just trying to mess around.. learn stuff.. college student. Jul 04 04:44:21 well to be honest, the android sdk could setup the paths for him :D Jul 04 04:44:41 in my C++ class we didn't do any terminal stuff.. all we did was oop concepts and actual programming, on a windows machine, so no unix there haha Jul 04 04:44:43 or no, i forgot, os x sucks too much for real unix work.. Jul 04 04:45:01 tapas: how so? Jul 04 04:45:33 * tmandry likes OSX unix Jul 04 04:45:36 tmandry: the whole /Application infrastructure, the finder (urks), etc.. Jul 04 04:45:55 if you come from a unix like BSD or linux you'll know :D Jul 04 04:45:59 eh, just nuancy things you have to learn Jul 04 04:46:03 okay, so i created the file with vi, now i tried to access it, no permission, so chmod it? Jul 04 04:46:06 hah, I used linux for years before OSX Jul 04 04:46:17 theguy200: no need to execute it.. Jul 04 04:46:24 and yes, OSX has some annoyances, but so does every OS imo Jul 04 04:46:25 have you entered the export statement into it? Jul 04 04:46:26 well adb isn't working yet Jul 04 04:46:40 open a new terminal and enter: Jul 04 04:46:43 echo $PATH Jul 04 04:46:49 what does it show you? Jul 04 04:47:04 /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin Jul 04 04:47:15 guess i didn't edit the file correctly, not showing your added paths Jul 04 04:47:29 hmm, show me the content of your .bash_profile Jul 04 04:47:38 http://redfinsolutions.com/blog/creating-bashprofile-your-mac Jul 04 04:47:48 this might be easier than using vi :D Jul 04 04:47:51 after you add the line into your profile you either need to 1) log out then log back in so you new profile is set or 2) type: source .bash_profile Jul 04 04:48:02 oh duh.. nevermind, forgot to add my own path.. idiot haha Jul 04 04:48:15 QubeZ: starting a new bash instance should be enough :D Jul 04 04:48:26 [which opening a new terminal should do already] Jul 04 04:48:26 tapas: ya but i wasn't sure he did that Jul 04 04:48:30 ok Jul 04 04:48:33 kk Jul 04 04:49:10 edit .bash_profile should work, too, to edit it.. Jul 04 04:49:15 if touch isn't in your path either ;D Jul 04 04:49:20 gnah os x :D Jul 04 04:49:50 i know... Jul 04 04:49:54 killall finder Jul 04 04:49:57 ive done this before.. Jul 04 04:50:02 killall Dock as well Jul 04 04:50:16 to kill it with fire: sudo killall -9 finder ;D Jul 04 04:51:29 anyone see the android games console :D Jul 04 04:51:57 http://www.eurogamer.net/articles/2012-07-03-USD99-android-console-ouya-is-a-real-thing Jul 04 04:52:01 theguy200: if in doubt: go to the channel #macosx and ask there about setting up paths, they might have better instructions than us :D Jul 04 04:52:26 i'm sitting here at home at my awesome linux box, so i can only help from memory ;D Jul 04 04:52:38 nope im figuring it out.. Jul 04 04:52:51 great, that's the spirit Jul 04 04:55:37 man i wish i never got this razr phone and went with the nexus instead Jul 04 04:55:40 what a horrible decision Jul 04 04:55:48 hah Jul 04 04:55:51 figured it out.. echo $PATH /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/path/to/your/android-sdk/platform-tools/:/path/to/your/android-sdk/tools/ Jul 04 04:55:59 need to revert back to Android from my iPhone 4s but I dont want to go back to the razr lol Jul 04 04:56:08 oh wtf.. i didnt save the changes to my folder.. hold on... almost got it lol Jul 04 04:56:42 export PATH=${PATH}:/path/to/your/android-sdk/platform-tools/:/path/to/your/android-sdk/tools/ problem was you forgot to give me the {} Jul 04 04:57:42 okay.. nevermind, i just had to open a new terminall... it works:) thanks, and i learned a little unix Jul 04 04:58:22 the google io sessions stop streaming all a sudden wtf Jul 04 05:03:20 anyone else try the x86 emulator yet? Jul 04 05:07:02 theguy200: yes i did.. it is fast. Jul 04 05:07:38 only up to ICS for Intel Atom right, no JB? Jul 04 05:08:50 wish there was also Google API's support, i can't test my app except on real hardware Jul 04 05:09:39 Is it possible to write to the sdcard in one thread, and then write to the sdcard using another thread? Jul 04 05:10:17 woot finally got the cv updated, been trying for months Jul 04 05:10:29 playing a song off the sdcard while recording from the mic on two seperate threads, but both working with the sdcard at the same time? Jul 04 05:11:33 wondering if theres any good examples of webview being used within fragments, at the moment its opening the browser in full screen for me instead of showing the contents under a tab Jul 04 05:12:08 QuebeZ: yea.. jb and ics i think, Jul 04 05:12:16 eSatsu could be its got some sort of reirection thats why it does that Jul 04 05:12:27 gotta override shouldOverideUrl I think Jul 04 05:12:49 o, thanks, ill try that Jul 04 05:17:02 so i am trying to make a surfaceview. here is my ctor: http://pastebin.com/pyfmgAKn surfaceCreated in that callback never gets called after the view is set to the surface view. what am i missing? Jul 04 05:21:44 How do I get a text input widget with the blue line underneath it and a clear button? Jul 04 05:27:05 SearchView Jul 04 05:29:58 thank you JakeWharton! Jul 04 05:31:21 JakeWharton: I saw Square's post about ABS, grats :) Jul 04 05:31:43 So, I'm trying to dynamically add Tabs in Java. Code here: https://gist.github.com/3045550 . Can someone tell me what's wrong with this? I'm get red skwigglies under "setContent" and "TabContentFactory" Jul 04 05:32:16 under setContent, eclipse is telling me "The method setContent(int) in the type TabHost.TabSpec is not applicable for the arguments (new TabContentFactory(){})" Jul 04 05:32:40 And under "TabContentFactory", it's telling me: "TabContentFactory cannot be resolved to a type" Jul 04 05:33:05 thanks :) Jul 04 05:36:13 I don't think it would help that much, but if it does, I can definitely show my XML file as well Jul 04 05:39:18 canadiancow? (: Jul 04 05:43:57 overwriting shouldOverrideUrlLoading fixed my problem, thanks Jul 04 05:50:05 jake you install a jb rom on your nexus yet? Jul 04 05:50:09 man the new notifications are sex Jul 04 05:52:18 wow Jul 04 05:52:32 googles re-working of the developer.android.com is confusing Jul 04 05:52:58 you just noticed? Jul 04 05:53:08 wow, what did they do XP Jul 04 05:53:43 ron_frown: installed, looks really nice.. but went back to my cyanogenmod ICS build :) Jul 04 05:53:48 seems that's trend every time somebody decides to recreate their web page. "ooh this is cool" they think and make the pages hell :D Jul 04 05:53:57 ron_frown: somehow i missed many things i got used to in CyanogenMod :D Jul 04 05:54:01 the reference is untouched though Jul 04 05:54:04 that's the important part Jul 04 05:54:06 like what Jul 04 05:54:09 (no wonder i didn't notice :P) Jul 04 05:54:34 ron_frown: yeah - and there are still links broken Jul 04 05:54:36 As long as you use the Expand width button at the bottom of the page, it's not that strange. Jul 04 05:54:54 google now is fantastic Jul 04 05:54:55 How can I overwrite my app with adb? I's getting tiresome to remove the app every time I make a minor change Jul 04 05:54:59 ron_frown: actions from the lock screen (custom ones besides the camera), screenshots (i thought ICS had them by default), the wifi/bluetooth/.. toggles in the notification pulldown (as well thought they were in ICS by default) Jul 04 05:55:06 spat, adb install -r path/to/apk Jul 04 05:55:11 oh yeah those were nice Jul 04 05:55:14 they will be back Jul 04 05:55:21 lut4rp: thanks Jul 04 05:55:24 np Jul 04 05:55:33 I liked my aokp pop up docked widgets with the unicorn button Jul 04 05:55:34 haha Jul 04 05:55:54 ron_frown: and the move launcher icon to top and keep to uninstall. or move from launcher and then to info (next to delete) to get info. use them a lot to clear cache/force close my apps i develop to test. Jul 04 05:56:17 ron_frown: unicorn? :D Jul 04 05:56:19 whaaaa Jul 04 05:56:27 it was their little contributrion Jul 04 05:56:37 you get another button next to home/back/etc Jul 04 05:56:40 a unicorn Jul 04 05:56:48 and it would slide up a drawer with your widgets in it Jul 04 05:56:49 neat Jul 04 05:56:51 ron_frown: lool.. i do not have a dock :D Jul 04 05:57:30 ron_frown: oh wait.. misread.. :D Jul 04 05:58:00 its neat cause it works something like the dashboard view on osx Jul 04 05:58:09 hit a button, get my weather, ups shipments etc Jul 04 05:58:23 god damn it my mind has been nuts lately Jul 04 05:58:29 ron_frown: that does sound good :) Jul 04 05:58:39 feel like things are going so fast my brain is misfiring Jul 04 05:58:44 When installing the JB ROM, how did you guys backup the /sdcard partition on the Galaxy Nexus? Jul 04 05:59:05 only things that seem to keep my focus and calm me down, is c++ and my database engine project =) Jul 04 05:59:09 lut4rp - I didnt Jul 04 05:59:12 because thats how I roll Jul 04 05:59:21 That's rolled up enough :P Jul 04 05:59:37 hrm Jul 04 05:59:38 lut4rp: i did not either.. because it does not get deleted :) Jul 04 05:59:44 pboos, OH? Jul 04 06:00:00 pboos, did you use the ROM that's available on clockworkmod.com? Jul 04 06:00:01 lut4rp: but i did a backup of all the rest within ClockworkMod Recovery Jul 04 06:00:19 lut4rp: no, i used one from xda. not sure if it is the same. Jul 04 06:00:40 pboos, Did you have to format data to install it? Jul 04 06:00:44 lut4rp: but most likely they are (or very similar) Jul 04 06:00:48 honeslty it doesnt wipe shit like data from your apps Jul 04 06:00:49 lut4rp: yes Jul 04 06:00:55 my music and my vidoes and stuff stayed just fine Jul 04 06:01:01 Oh! Jul 04 06:01:10 dalvik caches and shit get wiped, as do settings and such Jul 04 06:01:22 I thought if you choose Wipe data/format from Clockwork recovery mod, it also erases the /sdcard on the GN Jul 04 06:01:24 but persisting settings across os upgrades etc often problematic anyway Jul 04 06:01:32 * ron_frown shrugs Jul 04 06:01:36 lut4rp: well, you can use titanium backup to get your apps and data back ;-) Jul 04 06:01:45 pboos, I can use adb backup too for that :) Jul 04 06:01:46 I did wipe dalvik and wipe data factory reset Jul 04 06:01:51 and it left my sdcard partition alone Jul 04 06:01:54 my downloads and shit Jul 04 06:01:57 ron_frown: same here Jul 04 06:02:00 ron_frown, On a Galaxy Nexus? Awesome. Jul 04 06:02:04 yep Jul 04 06:02:09 Oh the love :D Jul 04 06:02:22 Fire her up, ye ol' Clockwork! Jul 04 06:02:22 I cant tell if these roms include "project butter" Jul 04 06:02:31 kinda seems like they'd require kernel patches ands hti Jul 04 06:02:42 which I doubt are in the current jb roms Jul 04 06:05:17 Any developers around? lol.. Jul 04 06:05:21 I'm so stumped :( Jul 04 06:05:54 yes there are devs around Jul 04 06:07:25 ron_frown, Aha, so I got confused because the stock recovery DOES erase /sdcard, but CWM does not. Jul 04 06:07:42 * lut4rp makes mental note to donate something to CWM :) Jul 04 06:07:56 meh Jul 04 06:08:01 cwm is a pita Jul 04 06:08:07 I bought rom manager pro (same dude) Jul 04 06:08:29 instead of selling through app store where apps could follow my phone, I gotta just bitch and moan each new device I get Jul 04 06:10:56 Ohai Jelly Bean Jul 04 06:10:58 That was fast :p Jul 04 06:11:04 jessicajames I dont read minds Jul 04 06:11:20 happy 4th! ok so jellybean is out already and I'm still on eclair. I've been adhering to the API so far, but is there anything i need to do with my game rendering to accommodate for these changes in 4.1? Jul 04 06:11:23 ron_frown, didn't know you were offering to help! ;) Jul 04 06:11:47 I didnt see a problem Jul 04 06:11:50 thus I cant help Jul 04 06:12:04 themirror - if I had to guess its just derived from the emulator images Jul 04 06:12:18 plop jellybean userland shit ontop of a ics kernel and fix what broke Jul 04 06:12:20 Code here: https://gist.github.com/3045550 . Can you tell me what's wrong with this? I'm get red skwigglies under "setContent" and "TabContentFactory" Jul 04 06:12:26 under setContent, eclipse is telling me "The method setContent(int) in the type TabHost.TabSpec is not applicable for the arguments (new TabContentFactory(){})" Jul 04 06:12:30 And under "TabContentFactory", it's telling me: "TabContentFactory cannot be resolved to a type" Jul 04 06:12:38 ahh Jul 04 06:12:51 last I played with tabs, I completely rewrote tabbing implementation from scratch =) Jul 04 06:13:00 :( Jul 04 06:13:08 I have no idea wtf google was thinking, seemed like it was completely backwards Jul 04 06:13:17 and a simpler implementation was easier to use and performed better Jul 04 06:13:18 * ron_frown shrugs Jul 04 06:13:35 Whenever I need tabs, I use ViewPager and VPI Jul 04 06:13:40 ron_frown: sorry, i don't understand. i'm currently only shooting for 25 fps until i get some feedback on targetTime vs actualTime, so if it's at 60 fps will the system just draw whatever's been drawn again on its own timer? Jul 04 06:14:13 haha Jul 04 06:14:21 I am not answering that question but that jb rom is not official Jul 04 06:14:28 probably not even built from AOSP source Jul 04 06:19:44 any suggestions how I should implement a calendar view that loads images from a webserver? Jul 04 06:19:47 in a fragment that is Jul 04 06:32:00 Hello can sombody help me if i start up a program the simulator is force quit error with every startup of the new screen or go back to a other screen. im using skd 20. Jul 04 06:32:44 http://developer.android.com/reference/android/app/Notification.Builder.html <- I tried to import the android.app.Notification.Builder but eclipse claims cannot resolve the import. Do I need to add some library to project settings or something? Jul 04 06:33:00 GKeizer: adb logcat Jul 04 06:33:22 ah nvm. Jul 04 06:33:33 where can i prot it? Jul 04 06:33:38 iduno Jul 04 06:33:47 tneva82_ targetting wrong sdk? Jul 04 06:33:48 =) Jul 04 06:33:48 prot = post Jul 04 06:33:54 ohok Jul 04 06:34:02 postebin Jul 04 06:34:47 http://pastebin.com/0FiWS4nc Jul 04 06:35:10 Sorry Prot that i used your name :( Jul 04 06:35:42 yes. I'm obviously developing for sdk for android that I have in my phone too :) Jul 04 06:36:10 are you trying to do networking operations in your main thread? Jul 04 06:36:23 yes Jul 04 06:36:27 interesting they say to use function that is from android 3 onward when lots of phone's still been sold with 2.x androids Jul 04 06:36:34 JSON Jul 04 06:36:34 If you havin' curl problems I feel bad for you, son. I've got 99 problems but HTTP ain't one. Jul 04 06:36:43 GKeizer: don't ... Jul 04 06:37:03 so i have to make a new thread? Jul 04 06:37:03 tneva82_: Notification.Builder is API 11+ Jul 04 06:37:13 tneva82_: there's a NotificationCompat.Builder in the support library Jul 04 06:37:27 tneva82_: I also wrote an extension of it to support the new Jelly Bean notification APIs Jul 04 06:37:38 GKeizer: yep or async task Jul 04 06:37:50 oke thx ill try it :D Jul 04 06:37:52 if teh Googlers every update the framework/support.git repo in AOSP I can contribute it back, but until then, it exists as a standalone lib Jul 04 06:38:14 jake: Yes noticed it now. And since I have 2.2.1 won't move past sdk8 Jul 04 06:38:59 well read the rest of what I wrote, the support lib and my lib have no SDK requirement Jul 04 06:39:06 and they'll automatically use the best API available Jul 04 06:39:49 or just use the notification class constructor Jul 04 06:40:05 ... Jul 04 06:40:49 Hi all, sorry if this off-topic but anyone has any info/advice on how to promote apps on goggle play? Jul 04 06:41:21 hmm. guess this didn't work. don't see anything that would indicate service was started as foreground service :( Jul 04 06:41:38 is it me or does the idea of creating a god damn screencast on how to do x for programming seem overkill? Jul 04 06:41:45 I want to add auth provider to this application Jul 04 06:41:49 maybe you better create a screencase Jul 04 06:41:51 cast Jul 04 06:41:55 how do you set the size of a textview in java? Jul 04 06:42:00 as in, increase font? Jul 04 06:42:03 I just want the 5 instructions Jul 04 06:42:08 textSize Jul 04 06:42:22 thats straighforward and easy to derive from samples/developer.android.com Jul 04 06:42:38 Hello, I'm trying to generate a hsv color gradient along the triangles of a circular triangle fan in opengles1.0. It works along the edge, but since I set the first point's (origin of the fan) color only once, the inside of the circle always blends to that original color set. Is there a way to update the color value per triangle so that it'll blend towards the next incremeneted hue value Jul 04 06:42:38 (such as it is along the edge) instead of to that original color set? Jul 04 06:43:09 jessicajames: mytextview.setTextSize(..); Jul 04 06:43:20 thank you guys Jul 04 06:45:57 I am usually up for beginner questions, but it sure seems like even the precursory glance would have answered that Jul 04 06:46:21 or intellisense ;p Jul 04 06:48:01 Please excuse the messed up indentation, but how can I add text2 to this tab? Code: https://gist.github.com/3045765 Jul 04 06:48:20 I thought "return (text, text2);" would work Jul 04 06:48:22 ..i was wrong Jul 04 06:50:24 I imagine you probably need to create a Layout, and put those TextViews in the layout, then return the Layout. Jul 04 06:50:34 I'm not certain though, because I have never used that Tab system Jul 04 07:01:16 Knossos, so i just tried that: https://gist.github.com/3045809 Jul 04 07:01:28 however, it's still only showing text, and NOT text2 Jul 04 07:01:32 any idea why? Jul 04 07:02:05 set the layout to orientation vertical Jul 04 07:03:44 Knossos, that worked. thank you! Jul 04 07:03:59 No problem, that'll be 30 Jul 04 07:05:40 hmm why gps doesn't seem to always get heading and speed is seriously messed up(5km/h on highway...). Sign of too short time spent looking for best location? Jul 04 07:06:50 does get them sometimes so guess it's not case of phone not having capability to get those Jul 04 07:20:06 hey hi every one Jul 04 07:20:41 can any one help me on how to create a camera application for android 2.3.3 Jul 04 07:20:45 ?? Jul 04 07:20:57 theres examples in the api demos Jul 04 07:20:59 check em out Jul 04 07:21:40 gaz`: hi, actually i am new to android programming, cn i have some refrence where i can start Jul 04 07:22:00 read the topic.... Jul 04 07:22:39 grab sdk then see android-sdk/samples/apidemos Jul 04 07:22:53 http://developer.android.com/sdk/index.html Jul 04 07:23:37 gaz`: i am done with sdk and make some simple layout projects Jul 04 07:23:51 no ii need to integrate camera Jul 04 07:23:56 I highly recommend the books by Wei-Meng Lee Jul 04 07:24:07 as i say look at the examples its all there for you to rip Jul 04 07:24:23 gaz`: cool i will look at it Jul 04 07:28:27 gaz`: i am trying api demo but when i click graphic---> camera preview my app foce quit Jul 04 07:28:46 could be an old version, camera stuff is one of the most fragmented things Jul 04 07:28:53 try get a version that matches your phone i gues Jul 04 07:29:23 gonna have a shower and go to shop bbiab Jul 04 07:29:47 ps it usually crashes mostly when it tries to use a resolution not available to the camera Jul 04 07:30:04 i think the newer examples show how to query the cam and get back the right results to avoid crashes Jul 04 07:31:33 gaz`: I am trying that load an api compatible to my phone its android 2.3.6 and trying to load android 2.3.3 api every thing is working fine except camera :( Jul 04 07:34:04 Hi, I got one seriously important question... Where does all the wierd compiler errors come from in eclipse? Jul 04 07:34:24 I get some complete with ";" to close block statement Jul 04 07:34:39 gaz`: ? Jul 04 07:34:43 when i delete the line and readd it it works again Jul 04 07:34:48 i use latest eclipse Jul 04 07:34:54 and latest java Jul 04 07:34:58 compiling against java 1.6 Jul 04 07:35:39 kreaper: i am getting the same error often.. stupid lint :D clean project always helps.. i did that one to ignore :D Jul 04 07:35:57 kreaper: because eclipse would give me that error anyway. Jul 04 07:36:09 hmm Jul 04 07:36:36 that's just stupid, welcome to the 90's Jul 04 07:38:55 gaz`: hey when i click camera previe it gives me an error shutting down vm Jul 04 07:50:35 time to debug it shankey and fnid out why Jul 04 07:57:59 whee. didn't expect I could create program that crashesh whole phone Jul 04 07:59:50 Congrats? :P Jul 04 08:01:55 my app would cause a hard freeze on my old hardware Jul 04 08:02:05 I think it was surface flinger deadlocking Jul 04 08:02:18 That shouldnt even be possible should it Jul 04 08:02:23 no Jul 04 08:02:31 bug in android that was fixed quite some time ago Jul 04 08:02:35 Ahh Jul 04 08:03:22 Good morning all Jul 04 08:04:25 I've just come back to Android development after a break. I'm updating my app to be 4.0 friendly, and it appears the CursorAdapter has had parts deprecated. Jul 04 08:04:46 My question is: Do I have to use a ContentProvider to access the DB even if my app never publishes its data? Jul 04 08:05:25 It seems like an unnecessary extra step, and prevents me from having the SQLiteOpenHelper instantiate objects for me, taking away a layer of abstraction Jul 04 08:05:30 so i've got an expandable list adapter and want to change the color of a text view inside of it. i tried getting the view by listadapter.getCHildView(...) and then using view.setTextColor(....) but that doesnt work. how do i do it? Jul 04 08:06:12 midi: change the color in getView in the adapter. Jul 04 08:06:19 wonder though why the service kicks off even when log on screen pops up. There's if sentence that results in either service binding or show logon screen so as far as I understand shouldn't happen Jul 04 08:06:25 midi: i mena in getchildview :) Jul 04 08:06:39 well i did , didnt i? Jul 04 08:06:43 How difficult is it to display some kind of model error pop-up message on Android programatically? Jul 04 08:07:05 BadMrsFrosty: Would Toast.makeText() do? Jul 04 08:07:13 could explain further please? Jul 04 08:07:15 No idea. What is toast? Jul 04 08:07:32 midi: no. you are getting the view through that function. but that function should only be called by the listview Jul 04 08:07:33 I have never developed for Android. Jul 04 08:07:41 The little Text boxes that pop up, usually when you do something wrong :) Jul 04 08:07:45 I just need a rough idea of the difficulty level. Jul 04 08:07:55 http://developer.android.com/guide/topics/ui/notifiers/toasts.html Jul 04 08:08:01 oh, so im supposed to use listview.getadapter()? Jul 04 08:08:01 Incredibly easy Jul 04 08:08:02 midi: do NEVER call getChildView by yourself.. it does not do, what you want Jul 04 08:08:04 Never developed for nor used an Android so I have no clue. Jul 04 08:08:17 so what should i call? sorry, im a noob :) Jul 04 08:08:22 Oh, and it has to be NDK. Jul 04 08:08:31 midi: well, when do you want to change the color Jul 04 08:08:31 How about doing that from NDK? Jul 04 08:08:32 ? Jul 04 08:08:38 not development related as such but anybody can think of a reason why google drive stopped refreshing few days ago without first shutting it down? Jul 04 08:09:03 BadMrsFrosty: Now I have no idea. Sorry! Jul 04 08:09:11 since I use the google drive as way to get updated version of apk to my phone kinda annoying Jul 04 08:09:20 uh the activity fills the adapter with some date from an sqlite db in oncreate, and then i want to change a child's views color wheter it's id is in the favorites table or not Jul 04 08:10:28 midi: okay.. so give the favorites table to the listadapter Jul 04 08:10:31 Anyone have an idea? Jul 04 08:11:09 yeah but i want other entries to be in there too Jul 04 08:11:20 midi: and in the adapter in your getView (getChildView/getGroupView) you check that favorites list against your item Jul 04 08:11:49 midi: well, somehow you have to let the adapter know which ones should have a different color and which ones not. Jul 04 08:12:02 midi: because the adapter reuses views (convertView) Jul 04 08:12:12 ah well i'm not using a custom adapter, im using a simpleExpListAdapter Jul 04 08:12:52 midi: well, the thing you want to do can only be done by a custom adapter.. but you could just extend simpleExpListAdapter to add your functionality Jul 04 08:14:14 so i'll have two views, one for a favorite entry and one for a regular one Jul 04 08:14:57 hum hum. problems left to solve: a) the service should not start up when coming to program which has been logged off. rather it should wait for logging in to happen b) figure out why speed and heading results are all wrong c) find out whether the service really STAYS up rather than get android-assasinated Jul 04 08:15:05 midi: that is one way.. depends how much they differ.. and call notifyDataSetChanged() on the adapter if some view needs to be changed (new added favorite), ... Jul 04 08:15:48 ok thanks Jul 04 08:16:26 pboos: but two different views means you would need view types... but if only small things change, you can just in the override of getChildView take the view super.getChildView returns and adjust the TextView color. Jul 04 08:16:58 midi: maybe you should search on youtube for "World of ListView" where you find a talk from Romain Guy who explains a lot about ListView and Adapters. Jul 04 08:17:33 i dont really understand how this will work in the end, am I going to call the getChildView or am I just overwriting it so the listView will know what to do when displaying the data Jul 04 08:19:08 midi: no, you NEVER call getChildView yourself, you override it :) Jul 04 08:20:14 ok i think i got it now Jul 04 08:20:48 ill just do an extended class of the adapter, override getCHildview, do the super.getChildView first an dthen check for favorites and stuff Jul 04 08:20:54 and change the color if necessary Jul 04 08:25:10 I'm gettin bitmap size exceeds VM budget. I get this only every second launch of the app. That would suggest i dont release all the images properly or i dont kill the app properly. Yet i'm pretty sure i'm releasing all views and images. Jul 04 08:25:32 is there a simple and foolproof way to kill the entire app with few lines of code? Jul 04 08:25:33 how are you releasing them? Jul 04 08:25:36 what's the screen size most android phones run on these days? Jul 04 08:25:47 s2 is 800x480 Jul 04 08:25:55 X-suriV tough question that but id say older ones around 480x800 newer ones can be a lot higher Jul 04 08:26:05 valio: inchwise what is that? Jul 04 08:26:06 htc one x i 720x1280.... Jul 04 08:26:20 valiolap - ive found you need to call recycle on bitmaps to clear them Jul 04 08:26:20 X-suriV i Jul 04 08:26:34 i'm not sure but google galaxy s2 Jul 04 08:26:53 gaz` hang on i put smth on pastebin Jul 04 08:27:22 oh wow lemme try that recycle thing first Jul 04 08:27:32 be right back Jul 04 08:27:35 that is guarenteed to leak if you dont Jul 04 08:27:40 k Jul 04 08:27:43 or at least VERY likely Jul 04 08:27:49 midi: sorry, was afk. yes that sounds good :) Jul 04 08:27:54 * ron_frown wonders if lint catches that Jul 04 08:28:08 but does that mean u have to go thru an entire view removing each bitmap and recycling when you kill that view ron_frown? Jul 04 08:28:29 well theoretically the activity ceasing should clean it up with gc eventually Jul 04 08:28:37 but say you are scrolling up and down through a list Jul 04 08:28:39 and u kind of cant do that until the view is off screen Jul 04 08:28:39 hi Jul 04 08:28:42 and you are dynamically fetching images Jul 04 08:28:47 you can murder that pretty quick Jul 04 08:28:51 so if u have a transition it cant really be done Jul 04 08:29:04 hmm hang on i will upload my whole app Jul 04 08:29:11 where can I put a file that must be shared between a system service (that runs with "system" rights) and a standard app? Jul 04 08:29:30 is there a way to change the resolution of the default skin on the emulator? it loads up 480 x 800 regardless of what size you scale the screen too Jul 04 08:29:44 i still dont fully get how to release all the memory of each activity personally, it just mounts up and up til it crashes with out of memory Jul 04 08:29:53 i have tricks to release some but i never get it all back Jul 04 08:30:19 and even if i do manage that eentually even with a ton of memory left it will crash with out of memory (due to memory fragmentation?) Jul 04 08:30:39 gaz`: make sure you do not have root references to the objects you have. than they should be garbadge collected Jul 04 08:30:54 root references? Jul 04 08:31:44 gaz`: google ;-) references to objects from your second activity hanging around. like registering your activity for events, but not unregister from those events, and so on.. Jul 04 08:31:59 cheers Jul 04 08:32:04 so a classic example is a static variable? Jul 04 08:32:29 I'm trying to do getLoaderManager().initLoader(1, null, this) inside a class implementing LoadManager.LoaderCallbacks. However, initLoader() is telling me that this doesn't match, since the last argument needs to be LoaderManager.LoaderCallbacks. Any ideas what's going wrong? Jul 04 08:32:48 gaz`: no. a static variable is not a root reference. Jul 04 08:33:07 gaz`: it is kind of difficult to explain in a few words and without drawing something :D Jul 04 08:33:23 yeh Jul 04 08:33:26 never come cross em Jul 04 08:33:33 and i never had memory issues even in j2me Jul 04 08:33:34 ron_frown gaz` http://piratepad.net/8duHlB3kNk Jul 04 08:33:35 here we go Jul 04 08:33:38 u can comment on the code Jul 04 08:33:41 so i think its some android weirdness mostly ;) Jul 04 08:33:43 why o why it doesn't stop the GPS locating :( Jul 04 08:33:47 gaz`: that kind of explains them, and what they do to memory: http://pawlan.com/monica/articles/refobjs/ Jul 04 08:34:31 So anyone have an idea how hard it is to display modal pop-up error messages in Android via the NDK? Jul 04 08:34:55 thanks pboos Jul 04 08:35:02 ill prob find a comp sci lecture on it later lol Jul 04 08:35:27 gaz` its a slideshow Jul 04 08:35:30 with images / videos Jul 04 08:35:35 for kids to "read" Jul 04 08:35:42 locationmanager calls removeupdates, I call unbindservice and even stopservice Jul 04 08:35:45 still it keeps going on Jul 04 08:35:51 well id say once u move form one slide to another, recycle the big bitmap on the last one Jul 04 08:41:48 wtf someone just sent me like a dollar on paypal Jul 04 08:42:05 pboos: still there? I can't really get it to work ;_; Jul 04 08:42:31 midi: what is working and what not? Jul 04 08:42:47 guess nobody have idea what I have forgotten to do since those 3 steps ain't enough? Jul 04 08:42:59 gaz`: nice :D maybe someone you helped here :) Jul 04 08:43:00 i override , then create a view with super.getCHildView, then I manipulate that view and return it, right? Jul 04 08:43:27 pboos surreal! :-) yeh be great to help for cash eh, but then id end up spending all my money o getting help too lol Jul 04 08:44:34 gaz`: haha. i doubt you could make much money with that :D let us say 1 dollar for helping someone for 10min? that is 5$ in an hour... pad pay :D Jul 04 08:45:07 well yeh, maybe half a dollar a minute would be fair :) Jul 04 08:45:26 altho i prefer the free model :) Jul 04 08:45:31 having to clean the project over and over to make lint happy is very annoying.. Jul 04 08:45:35 considering im more often looking for help than giving it hehehe Jul 04 08:45:37 hmm. service's on destroy get called. How it can keep running??? Jul 04 08:47:28 pboos: i override , then create a view with super.getCHildView, then I manipulate that view and return it, right? Jul 04 08:50:14 what's the easiest way to convert the string, "20.0" to "20"? Basically rounding Jul 04 08:50:21 math.round didn't work...or i might be doing it wrong Jul 04 08:51:31 very annoying. now the gps keeps draining battery even if user wants to stop the program Jul 04 08:51:45 and of course likely results in data being sent to server too for added fun Jul 04 08:51:51 so basically log off button is useless Jul 04 08:59:03 hi. If i want my page to act as a forward to other activities.. should i make it extend Activity? i'm asking this because if i make it extend activity, and the page forwards to another activity, say the user clicks on back, he'll go back to the forward page (empty).. Jul 04 09:01:14 hi Jul 04 09:02:18 I am facing an issue when the device sleeps all the currently running Threads also sleep Jul 04 09:02:34 i dont want the the threads to sleep any suggestion Jul 04 09:02:53 what values should I fill-in in the StringPart when i want to send to a PHP server based on this code: http://stackoverflow.com/questions/3698059/concise-example-of-file-upload-via-java-lib-apache-commons Jul 04 09:03:33 midi: sorry was gone.. that sounds good.. pastebin? Jul 04 09:13:41 hi. If i want my page to act as a forward to other activities.. should i make it extend Activity? i'm asking this because if i make it extend activity, and the page forwards to another activity, say the user clicks on back, he'll go back to the forward page (empty).. Jul 04 09:15:56 what values should I fill-in in the StringPart when i want to send to a PHP server based on this code: http://stackoverflow.com/questions/3698059/concise-example-of-file-upload-via-java-lib-apache-commons Jul 04 09:18:29 superlinux-hp: do you know how HTTP post works? Jul 04 09:19:00 yes, but not completely Jul 04 09:19:15 it's the opposite of GET Jul 04 09:19:30 the variables are sent hidden Jul 04 09:19:41 the form variables are sent hidden Jul 04 09:19:43 ah, so you have no idea Jul 04 09:20:21 which are the best books to buy on android? Jul 04 09:20:43 wonderwal: commonsware books, I'd say - or reto's professional Android development Jul 04 09:21:26 wonderwal, watch the videos of the youtube channel "thenewboston". they have a series of 200 clips Jul 04 09:21:59 this is how i learnt the interface/GUI Jul 04 09:22:23 Leeds, so ? Jul 04 09:22:55 superlinux-hp: so I'd suggest if you're trying to use HTTP POST outside of a browser environment you should learn how it actually works Jul 04 09:23:36 [12:23:09] what the hell really Jul 04 09:23:37 [12:23:17] i add system.exit(0) to my ondestroy Jul 04 09:23:37 [12:23:23] and the app kills it self on launch? Jul 04 09:23:40 whats my issue? Jul 04 09:24:07 Leeds, I can send all html data . and i am able to save them on the mysql thru php. Jul 04 09:24:18 superlinux-hp: how exciting! Jul 04 09:24:23 but i am stuck on this very last part Jul 04 09:24:27 p-h-fucking-p Jul 04 09:24:57 'nuff said Jul 04 09:30:21 hi Jul 04 09:32:18 I've got this activity where the user edits information and whatnot, and when user clicks the button "View-mode", I want an effect that flips everything 180 degrees and dispaly textviews etc instead of edittexts.. how would one do this? Jul 04 09:33:24 Hi Guys, what are the best practices in order parse a HTML file into android, there is actually a huge ecosystem regarding HTML parsing in Java, but considering library size, packaging, performance, etc, what should I look at? Jul 04 09:35:24 Having a SQLiteOpenHelper as a singleton (used across activites and asynctasks) where/when should I ever call close() on the helper? Jul 04 09:36:01 anyone knows any graphical tool that can connect avd's sqlite3 db and can show graphical representation of tables and data? Jul 04 09:37:22 jahid: dab pull it and then fire up one of the many available for desktops Jul 04 09:38:14 JakeWharton, that will not hot update the true copy of the db, right? Jul 04 09:38:23 adb push it back Jul 04 09:38:28 also, *adb above Jul 04 09:38:41 JakeWharton, I will check that. thanks Jul 04 09:55:27 Does Bufferedwriter/FileWriter combo work in Android as opposed to FileOutPutStream? Jul 04 09:56:22 I'm making extending a listview, and I'm overriding the onMeasure, but it seems it's being called with some unitialized values. I'm getting 1073742512 for widthMeasureSpec and something similar for height. Anyone have clues ? Jul 04 09:58:17 havchr: I dont know the answer, but just curious, can those values then be used if called correctly to determine if a device is in landscape vs portrait? Ie if someone with landscape brought up the list view, would the width measure sec be greater then the height and vice versa? Jul 04 09:59:26 I don't know. They seem very wrong, and also further down my call to measureChild crashes internally in the measureChild function Jul 04 10:03:28 Is there any way I can rotate some text I am drawing on a canvas without rotating the whole canvas? Jul 04 10:03:44 It would be nice if I could just put it inside a rectangle, and then rotate that manually. Jul 04 10:03:56 mad1231999: isn't that what the transformation matrix is for? Jul 04 10:04:39 * mad1231999 is googling... Jul 04 10:05:15 hmm Jul 04 10:05:19 anyone tried codility Jul 04 10:05:20 lame Jul 04 10:12:43 can someone recommend me a tutorial for 2d (graphical) game development? Jul 04 10:18:21 i really dont get Photoshop cs5 Jul 04 10:18:29 absolute horse shit compared to the old ones Jul 04 10:21:43 grrr Jul 04 10:21:53 getting up early ha sjust put me in a bad mood and i done no work! Jul 04 10:22:04 Hey people, what are your first impressions when seeing this logo for a game? http://vrieskist.uselogic.nl/logotest.png Jul 04 10:22:29 gaz`: Coffee might fix that :P Jul 04 10:22:43 its alright, not badly drawn, presumably a casual/kids game ? Jul 04 10:22:47 gaz`: it's almost 6:30, you call this early? :) Jul 04 10:22:54 hehe Jul 04 10:22:57 yeh Jul 04 10:22:57 BlackIce_: presumably the rest of the game is in a 'sketch' style? Jul 04 10:23:23 it's a concept logo, sorry I didn't tell. Casual is in the right directions, anything on what the game might be about? Jul 04 10:23:42 I'm going to guess airborne royalty? Jul 04 10:24:20 lol Jul 04 10:24:42 im going to guess its about tossing kings from their own castle Jul 04 10:24:46 tossing of royalty, like angry birds? :-) Jul 04 10:24:51 not bad :D anything on the thingy behind the text? Jul 04 10:25:10 kings arse? Jul 04 10:25:16 lol Jul 04 10:25:28 jelly bean! Jul 04 10:25:41 or a balloon, one or the other Jul 04 10:26:02 BlackIce_: did you draw it? Jul 04 10:26:54 Leeds: nah one of our artists did. We like this logo but aren't sure if it's not confusing. We can see plenty good what the logo is but that might be because we're working on the game for some time now Jul 04 10:27:37 I'd say it's fine for a logo - doesn't need to tell you what it is at first glance, but will be recognisable Jul 04 10:28:11 Yeah that's true, it also shouldn't give the wrong idea too much though Jul 04 10:30:58 why do adove make things worse with each release Jul 04 10:31:03 adobe Jul 04 10:33:47 time for red bull BlackIce_ Jul 04 10:33:48 :) Jul 04 10:34:46 Vitali just isnt cutting it Jul 04 10:43:57 why my avd can not use PC's internet connection? i get error when its trying to resolve places using google api for location Jul 04 10:44:30 got permissions set? Jul 04 10:44:56 gaz`, well it runs on my cell phone, so i guess yes Jul 04 10:45:13 Jul 04 10:45:16 it is there Jul 04 10:45:52 hmm, what would be the best way to get a SurfaceView to fire surfaceChanged when it actually hasn't? Jul 04 10:49:40 i swear I'm going fucking mental Jul 04 10:49:52 how do i change the done icon for action modes in action bar sherlock Jul 04 10:51:47 jahid: have you set up WLAN? Jul 04 10:52:02 hrnt, yes Jul 04 10:52:31 is there any way to connect to sqlite db when i am running my application on device? Jul 04 10:54:13 is there any way to includa a webbpage fully functional inside an app? Jul 04 10:54:24 webbview does not do very much :( Jul 04 10:54:59 webviews do alot Jul 04 10:55:10 you need to manually enable javascript Jul 04 10:55:24 you can call a javascript function from within java Jul 04 11:01:33 there's no event associated to the cancel button of list preference? Jul 04 11:09:32 CallumTaylor ask jake Jul 04 11:10:42 i figured it out, i just couldn't get it working even when i was changing the library's drawables Jul 04 11:10:50 :) Jul 04 11:12:25 CallumTaylor: so no way to easy convert a working javascript page to webbview then? Jul 04 11:12:47 you can bundle a web page in with your app and load it in Jul 04 11:12:53 are you talking a remote page? Jul 04 11:13:02 still no clue as to why some bloke called Michael Watkins stuck $0.95 into my paypal earlier.. Jul 04 11:13:18 lol Jul 04 11:13:31 if only it would happen 500x a day Jul 04 11:13:35 one of the apps I built is on red it O: http://www.reddit.com/r/YouShouldKnow/comments/vxv6o/ysk_that_there_is_an_emergency_first_aid/?sort=new Jul 04 11:13:50 CallumTaylor: yeah, I'm a noob to webdevelopment Jul 04 11:13:51 reddit, god damn mac auto correct Jul 04 11:14:02 and built page first then adapted for mobile device app Jul 04 11:14:04 easiest thing is to make the web page, put it in your assets Jul 04 11:14:04 gaz`: someone whose name I don't know apparently gave Blizzard US$59.99 from my credit card yesterday... I think you win Jul 04 11:14:12 then load it into the web view Jul 04 11:14:27 Leeds whats happening to the world! Jul 04 11:14:39 the page is 95% javascript, how do i get it to work smoothly? Jul 04 11:14:49 Leeds only one course of action http://www.youtube.com/watch?v=VbnEB9ntztY&feature=player_embedded Jul 04 11:14:52 better than the last fraud I had, which was someone spending hundreds of quid in a Korean furniture store! Jul 04 11:14:53 you need to enable javascript Jul 04 11:15:10 mWebView.getSettings().setJavaScriptEnabled(true); Jul 04 11:15:43 yeh at least this theif was a gamer Jul 04 11:15:54 you can take a look at my custom web view implementation Jul 04 11:15:55 blizzard offered me a jobnot long ago Jul 04 11:15:55 https://github.com/scruffyfox/X-Library/blob/master/src/x/ui/XUIWebView.java Jul 04 11:16:04 stupid money and wasnt even coding, just tech writing :) Jul 04 11:16:05 has some extra methods which are useful Jul 04 11:16:19 gaz`: I actually have a reputation around here for going ballistic with the typically-appalling HK customer service... I have chucked chairs around a phone company store once, and blockaded the front door of a different one (same company) until they showed any sign of wanting to give *actual* customer service Jul 04 11:16:34 YES!! Jul 04 11:16:39 thats legendary Jul 04 11:16:51 i usually just charge off mumbling under my breath Jul 04 11:17:01 to be fair, I actually had a pretty pleasant experience with T-Mobile last time I was in the UK Jul 04 11:17:10 i got a phone call at 8:20am this morning from a card company Jul 04 11:17:16 i was like, dude its fucking 8:20am Jul 04 11:17:28 what you've got to love is the people cheering him on :D Jul 04 11:17:33 my land lord did that today, called me at 825am Jul 04 11:17:41 yeh Leeds its hilarious Jul 04 11:17:50 so i hung up and unplugged the phone Jul 04 11:18:06 also, just how calm he is Jul 04 11:18:09 How do I put items in a bufferedreader into a listview? Jul 04 11:18:23 yeh when he starts using the fire extinshguisher is class Jul 04 11:18:48 but he's not ranting and raving, just calmly destroying the place Jul 04 11:18:59 How do I put items in a bufferedreader into a listview? Jul 04 11:19:08 prob they ri[pped him off for a few hundred quid so hes evening the odds Jul 04 11:19:42 presumably he'll get fined a couple of grand for property damage and go home Jul 04 11:19:44 Rogue: you'd have to serialise it to an array then create a custom array adapter Jul 04 11:19:47 maybe spend a night or two away Jul 04 11:20:02 Tmobile will prob hire him for adverts Jul 04 11:20:23 heh Jul 04 11:20:25 or Barclays Jul 04 11:20:29 hahaha Jul 04 11:20:32 was just aboutto say that Jul 04 11:20:38 he can be the cool version of that crapbloke they had Jul 04 11:20:43 saw him once in glasgow Jul 04 11:20:56 what, Bob? Jul 04 11:21:06 ah thought u might have been on about that black guy Jul 04 11:21:10 did ads for some bank Jul 04 11:21:13 not the Halifax guy? Jul 04 11:21:17 yeh could be! Jul 04 11:21:40 CallumTaylor: I know to little of this area to measure the value of your code :P Jul 04 11:21:53 damn csv man Jul 04 11:22:00 wonder if theres a lib for this crap Jul 04 11:22:06 probably Jul 04 11:22:08 gah Jul 04 11:22:17 why is camera preview such an awkward thing to try and do.. Jul 04 11:22:29 all the cams are different Jul 04 11:22:36 and rely on drivers made by the manufacturer Jul 04 11:22:37 not even that Jul 04 11:22:41 his name is apparently "Howard Brown" :) Jul 04 11:22:41 it's quite difficult to setup :D Jul 04 11:22:53 Leeds the crap black guy? Jul 04 11:23:00 at the moment i'm just struggling to get a SurfaceView that doesn't distort the camera preview Jul 04 11:23:01 the Halifax guy Jul 04 11:23:04 ah yes Jul 04 11:23:07 met him heh Jul 04 11:23:34 Alan oh yeh, basically blows, u trying in portrait or landscape? Jul 04 11:23:36 although i HAVE managed to get a Service to handle the camera acquire/release instead of the Activity Jul 04 11:23:51 gaz`: I'm going for landscape-only Jul 04 11:23:52 CallumTaylor: it did work great with the "allow javascript" command tough. thanks a lot for saving me an afternoon! Jul 04 11:24:01 Alan good, seems to workish in landscape Jul 04 11:24:24 Guys Jul 04 11:24:25 GUYS! Jul 04 11:24:28 I figured out something! Jul 04 11:24:30 HOLY CRAP! Jul 04 11:24:40 i think my problem is i need to resize my surfaceview Jul 04 11:24:48 this is HUGE Jul 04 11:24:50 HUGE i say Jul 04 11:25:01 ............ Jul 04 11:25:03 God is a fairy tale Jul 04 11:25:04 ra4king: did you discover higgs boson ? Jul 04 11:25:09 * gaz` craps himself in anticipation Jul 04 11:25:09 havchr: yup Jul 04 11:25:11 kreaper: no probs Jul 04 11:25:19 kreaper: i had the same problem at the start Jul 04 11:25:21 I discovered God is not real....through the God particle Jul 04 11:25:24 gaz`: lol Jul 04 11:25:35 but god is real? Jul 04 11:25:43 who else created adam and eve? Jul 04 11:25:55 we are 99.99995% sure Higgs Boson exists Jul 04 11:26:06 God is actually a bot i wrote for the Amiga, in Arexx when i first started learning Jul 04 11:26:07 CallumTaylor: your mom Jul 04 11:26:13 just left him going on an old A500 til now Jul 04 11:26:15 gaz`: dude that's awesome Jul 04 11:26:34 what's a mom Jul 04 11:26:38 think what he will do when i put him on an A4000 Jul 04 11:26:44 CallumTaylor: something your dad rapes at night Jul 04 11:26:50 LOL Jul 04 11:26:56 im not a mom though Jul 04 11:27:06 thank god eh Jul 04 11:27:07 yes you are, accept the fact that your dad rapes you Jul 04 11:27:13 at night Jul 04 11:27:13 ok Jul 04 11:27:16 ok Jul 04 11:27:19 ok Jul 04 11:27:20 i pretend I'm asleep, but I'm not Jul 04 11:27:25 C-C-C-C-C-COMBO BREAKER! Jul 04 11:27:31 lol Jul 04 11:27:36 * ra4king shits his pants Jul 04 11:27:44 Ok so, I'm bored and this channel is boring Jul 04 11:27:53 sorry for going off-topic guys! Jul 04 11:27:57 * ra4king quietly walks out Jul 04 11:28:00 theres a channel for that Jul 04 11:28:06 gaz`: ooh where? Jul 04 11:28:07 but its populated by strange ppl Jul 04 11:28:11 #android-offtopic Jul 04 11:28:15 im banned Jul 04 11:28:21 possibly for being too ontopic? Jul 04 11:28:21 gaz`: why? Jul 04 11:28:44 gaz`: ehh btw it forwarded me to #justsayin Jul 04 11:29:23 i see Jul 04 11:29:29 hes lost a trillion users Jul 04 11:29:30 lol Jul 04 11:29:45 bah Jul 04 11:30:25 i wish people would do things correctly on android... Jul 04 11:30:39 me too Alan, me too Jul 04 11:30:43 the "are you sure you want to exit?" prompt for a mere information app Jul 04 11:30:59 o: i have that in all my apps :x Jul 04 11:31:08 hehe Jul 04 11:31:12 really there's no reason to ask it unless somebody's going to lose something Jul 04 11:31:19 because they can always bring the app up again Jul 04 11:31:33 yeah true, sometimes you forget you're in a tab view Jul 04 11:31:34 in my case anywya Jul 04 11:31:35 and really your app shouldn't be in a position to lose something Jul 04 11:32:24 also Jul 04 11:32:31 if you want the best example ever of a horrendous android app Jul 04 11:32:35 the myfitnesspal app Jul 04 11:32:40 is terrible beyond belief Jul 04 11:32:48 lol ill check it out Jul 04 11:32:51 you got a link? Jul 04 11:33:00 Alan: link? Jul 04 11:33:16 synchronous network waits all the damned time, and their activity flows are so unbelievably broken Jul 04 11:33:49 e.g. if you exit out of the app and then launch it again from the launcher, it remembers all the activities that were there before you exited and the back button won't take you back out of the app Jul 04 11:34:07 however if you actually kill it in the task manager it will forget Jul 04 11:34:11 link Jul 04 11:34:13 i gottta see it Jul 04 11:35:29 so you want me to search the market for it for you and give you a link to the top and only result, instead of you doing it? Jul 04 11:35:32 :| Jul 04 11:35:36 yes Jul 04 11:35:43 https://play.google.com/store/apps/details?id=com.myfitnesspal.android Jul 04 11:35:45 happy now? Jul 04 11:35:47 thanks Jul 04 11:36:11 ill never be happy till i own my own house and have a few million in the bank Jul 04 11:36:29 oh wow, 4.5 star rating Jul 04 11:36:45 this annoys me, this app here https://play.google.com/store/apps/details?id=com.usa.health.ifitness.firstaid&feature=search_result#?t=W251bGwsMSwxLDEsImNvbS51c2EuaGVhbHRoLmlmaXRuZXNzLmZpcnN0YWlkIl0. Jul 04 11:36:47 yeah, it's actually a good app Jul 04 11:36:49 is absolute shit Jul 04 11:37:02 compared to my app https://play.google.com/store/apps/details?id=com.cube.arc.fa Jul 04 11:37:07 it's just a terrible android app, if that makes any sense Jul 04 11:37:12 the other one has like 10000000 5 stars Jul 04 11:37:38 god do i have to create an account? -_- Jul 04 11:38:01 CallumTaylor: you made the red cross apps? Jul 04 11:38:05 yeah Jul 04 11:38:09 CallumTaylor: Your ★ ratio is better than his though. Jul 04 11:38:16 I'm getting huge UI hickups when a background thread does thousands of update calls to an SQLiteDatabase that is sometimes read by UI. What is the best way to update thousands of rows in a SQLiteDatabase in the background? Jul 04 11:38:17 hope it stays that way Jul 04 11:38:31 * rking goes and gives it one star just to be a troll. Jul 04 11:38:52 god this app is pretty shit, the sign up screen has stuff checked by default you have to click again to go next Jul 04 11:38:59 CallumTaylor: in that case it was your app i was complaining about (assuming you're also responsible for the british red cross one, and they're essentially the same app?) Jul 04 11:39:10 The background procedure de-normalizes data by doing a query to one table, iterate the cursor and for each record and update to another table is called. Jul 04 11:39:14 “First aid? More like WORST aid. Would give 0 stars if possible.” Jul 04 11:39:14 where was you complaining? Jul 04 11:39:15 But CallumTaylor you are biased Jul 04 11:39:18 basically i don't think the "are you sure?" barrier is particularly necessary Jul 04 11:39:27 and yeah they are, but the american red cross wanted more features Jul 04 11:39:31 so its slightly different Jul 04 11:39:46 the new apps I'm working on are more ICS themed, which is nice, will roll that out for the first aid app in the future Jul 04 11:39:50 if i back out of the main screen of an app i want it to go away Jul 04 11:40:13 because otherwise i wouldn't have hit back Jul 04 11:40:22 but just one user's opinion of course Jul 04 11:40:26 i do agree, but i don't think it hinders that much, and plus they requested it Jul 04 11:40:32 I feel the same Alan Jul 04 11:40:41 CallumTaylor: they requested it? Jul 04 11:40:43 who is they? Jul 04 11:40:47 red cross Jul 04 11:40:52 and do they know anything about mobile app design? Jul 04 11:40:56 nope Jul 04 11:41:00 then slap them :P Jul 04 11:41:01 don't even get me started Jul 04 11:41:03 oh man Jul 04 11:41:09 whoever has the gold makes the rules ;p Jul 04 11:41:10 they were like "we want tabs on the bottom" Jul 04 11:41:19 heh Jul 04 11:41:20 i was like, ilke fuck am i putting tabs on the bottom Jul 04 11:41:47 the icon is awful, but we literally had no choice because of ownership and stuff Jul 04 11:41:56 we spent a good month trying to convince them Jul 04 11:41:57 the biggest problem in software development: you can't ever tell your client they're wrong, because they'll just find somebody else that has no problems churning out their poorly-thought-out turd Jul 04 11:42:18 nah, they didn't have the time/money to do that Jul 04 11:42:19 And then you are stuck with that App on your resume :P Jul 04 11:42:23 haha Jul 04 11:42:24 so we were pretty good Jul 04 11:42:36 you were in a position to actually tell them they're wrong Jul 04 11:42:38 that's good Jul 04 11:42:39 i just don't put my shit apps on my portfolio Jul 04 11:42:44 :P Jul 04 11:42:50 i did this one app Jul 04 11:42:53 CallumTaylor i wondered why it was empty :p Jul 04 11:43:03 https://play.google.com/store/apps/details?id=com.cube.tsc Jul 04 11:43:11 the client was the worst person to work with Jul 04 11:43:16 this app isn't on my portfolio Jul 04 11:43:27 I'm kinda ashamed of it, the code behind is terrible Jul 04 11:43:34 every client is a c0ck Jul 04 11:43:42 in the end we got so fed up with him, we were just like fuck it, bodge here, bodge t here Jul 04 11:44:16 haha Jul 04 11:44:34 but I'm glad we did it, because we learned so much from that project Jul 04 11:44:42 we? Jul 04 11:44:49 i work for a company Jul 04 11:44:55 CallumTaylor: i notice a lot of "we want to make it look like an iPhone app" in there Jul 04 11:45:01 with the rounded input boxes and stuff Jul 04 11:45:02 yeah :/ Jul 04 11:45:10 dont they all Jul 04 11:45:16 I'm not sure i could handle having to deal with clients Jul 04 11:45:20 iPhone designer designed that app, but the future apps are going to be more ICS themed Jul 04 11:45:29 and plus at the time there was no standard Jul 04 11:45:44 hi, anyone know how i can use the standard qwerty keyboard with AVD? Jul 04 11:45:52 just because I'd get so pissed off when they think they know what they're doing Jul 04 11:46:06 thats why i don't deal with clients, I'm only a developer :) Jul 04 11:46:11 like, hey, if you're so good at mobile app design, why the hell did you hire me? Jul 04 11:46:29 the amount of times we've said that Jul 04 11:46:33 or, you know, any other thing Jul 04 11:46:44 http://theoatmeal.com/comics/design_hell Jul 04 11:46:46 reminds me of that Jul 04 11:46:51 suedoh: in my experience, you only have to configure the VM to have a hardware keyboard, and it will recognize your keyboard as if it belongs to the device. Jul 04 11:46:52 hi Jul 04 11:47:15 Rainbowtron, I couldn't find a option for that in the AVD manager Jul 04 11:47:26 Am I missing something somewhere? Jul 04 11:47:28 Look harder. Jul 04 11:47:36 suedoh: It's weird. I haven't had that problem, but you're the second person I've seen, recently, that has. Jul 04 11:48:55 I have a service, and I want to set alarm and run some method in the service in response to that alarm on specific time - how to do that Jul 04 11:49:16 Rainbowtron, nope :-( no option in the Edit Jul 04 11:49:19 using - shockingly enough - the AlarmManager Jul 04 11:49:46 I'm looking to customize the title bar. What would be the difference between actually customizing the title bar rather than just getting rid of it altogether and just putting it directly into the layout? Jul 04 11:50:00 right, time to go back to trying to understand how a View's lifecycle works Jul 04 11:50:09 Alan Jul 04 11:50:10 wait Jul 04 11:50:10 I had this after changing the layout of my activity: java.lang.RuntimeException: Unable to start activity ComponentInfo{www.superlinux/www.superlinux.June27Activity}: java.lang.ClassCastException: android.widget.ImageView cannot be cast to android.widget.Button Jul 04 11:50:19 http://blog.callumtaylor.net/archives/142 Jul 04 11:50:24 check out my post, i cover custom views Jul 04 11:50:25 kselos: sorry, that was for you Jul 04 11:51:06 CallumTaylor: cool, i'll take a look, thanks Jul 04 11:51:15 Boyds Toast, now thats an awesome website Jul 04 11:51:16 what should I do? Jul 04 11:51:31 superlinux-hp: I suggest not casting an ImageView into a Button Jul 04 11:51:41 but i don't have any Jul 04 11:52:02 the image view is only used after i call the camera Jul 04 11:52:16 and i call the camera from a button Jul 04 11:52:43 You probably put the wrong ID into a findViewById metho Jul 04 11:52:43 d Jul 04 11:53:24 ok, again - I know how to run Activity or Service from AlarmManager, but I wont to run specific method in working service Jul 04 11:53:29 the image views start with which numbers? Jul 04 11:54:32 CallumTaylor nice bl0g! Jul 04 11:54:38 Anyone tackled custom title bars? Jul 04 11:54:43 could always be better Jul 04 11:54:51 i just never have the topic to write about Jul 04 11:54:53 and I'm really lazy Jul 04 11:55:03 suedoh: Do you not have this? http://oi45.tinypic.com/uwmdu.jpg Jul 04 11:55:11 superlinux-hp: http://developer.android.com/reference/android/view/View.html Jul 04 11:55:17 Look under the "IDs" header Jul 04 11:55:22 Hi guys, Can someone pointme to the best practises in order to parse html form my app? Jul 04 11:55:41 kselos: then you run whatever code you want in response to the incoming Intent Jul 04 11:55:47 my app was working before change in Layout Jul 04 11:55:59 superlinux-hp: and you've cleaned... right? Jul 04 11:56:06 Rainbowtron, Oh I am doing this through command line Jul 04 11:56:12 Rainbowtron, let me see how to use AVD CLI for this option Jul 04 11:56:14 Thank Jul 04 11:56:16 *Thanks Jul 04 11:56:19 Leeds, do you mean i must clean my project? Jul 04 11:56:27 always and forever Jul 04 11:56:40 ok Jul 04 11:56:44 cleaning project, fixing 99% of the problems since 2000 Jul 04 11:56:48 first thing you do, *always*, particularly if it's a problem with resources, is you clean Jul 04 11:56:53 then you clean again for luck Jul 04 11:56:56 +1 Jul 04 11:57:05 and if that doesn't work, restart eclipse Jul 04 11:57:14 and if that doesn't work, proceed to killing yourself Jul 04 11:57:17 thanks. now it works Jul 04 11:57:22 cooooz! Jul 04 11:57:28 hehe! Jul 04 11:57:38 CallumTaylor: here's a topic idea for your blog: How to create a custom title bar! ;) Jul 04 11:58:00 well code1, you use my awesome x library class XUITtitleBar Jul 04 11:58:08 Anyone have a probelm where they cant use thier computer's keyboard to type into a avd? Jul 04 11:58:16 https://github.com/scruffyfox/X-Library/blob/master/src/x/ui/XUITitleBar.java Jul 04 11:58:26 or actionbarsherlock Jul 04 11:58:35 at the moment I'm using ABS, its pretty nice Jul 04 11:59:15 Leeds, how do you clean an android project in eclipse? Jul 04 11:59:28 project -> clean Jul 04 11:59:28 tough question Jul 04 11:59:29 j0hnsm1th: no ide, I don't use eclipse Jul 04 11:59:31 Project/Clean Jul 04 11:59:34 Leeds, is it the same as manually deleting the /bin and /gen folders Jul 04 11:59:35 lol Jul 04 11:59:38 project>clean Jul 04 11:59:38 also, no idea - but no ide works too :) Jul 04 11:59:38 CallumTaylor, tx Jul 04 11:59:39 Darn, now I just get a blank screen. Jul 04 11:59:42 What's up with this AVD Jul 04 11:59:45 i thinks it must under file - new Jul 04 11:59:46 Yeah I need to look into ABS. I'm just going to do a simple change for now. I'm actually trying to make 2.2 look like the title bar in ICS Jul 04 11:59:47 http://www.lmgtfy.com/?q=eclipse+clean+project Jul 04 11:59:47 Hasn't been too reliable for me Jul 04 12:00:05 Rainbowtron, how much RAM and SD-RAM size do you allocate for your AVD's? Jul 04 12:00:09 Knossos, i tried but hit a lazy streak when it wasnt the first result :P Jul 04 12:00:20 suedoh: get a real device Jul 04 12:00:30 trust me, you'll have about 5 hours each day Jul 04 12:00:33 save * Jul 04 12:00:33 CallumTaylor, I need to use the AVD to create a screen cast Jul 04 12:00:38 CallumTaylor: is there any difference (functionaly) between acutally having a title bar and just using NoTitle and putting it directly into the layout? Jul 04 12:01:00 I'd prefer to use a phone too, I just need to use the AVD to do a screen-cast for an upcoming meeting :) Jul 04 12:01:10 code1: with ABS, the title you can put buttons and stuff, but apart from that, thats what my custom titlebar class does Jul 04 12:01:25 does it have to be super smooth? Jul 04 12:01:31 suedoh: I haven't used an AVD since before ICS, so I wouldn't know. I generally try to closely imitate the latest low-end device, but my computer is too old for that now. Jul 04 12:01:54 CallumTaylor: it doesn't need anything other than the app icon and the title Jul 04 12:02:08 id implement a custom one then Jul 04 12:02:17 you can create a layout then use in each one of your layouts Jul 04 12:02:25 but you need to remember to requestFeature(hide title) Jul 04 12:02:28 I'd use ABS, because hten you are future proof Jul 04 12:02:39 yeah, it would be better to use ABS Jul 04 12:02:45 start getting used to it now Jul 04 12:02:57 CallumTaylor, Knossos, yeah will do, it's just a temp measure Jul 04 12:03:29 CallumTaylor: How do I take the ic_launcher icon and make it a *little* smaller? Jul 04 12:03:38 edit it Jul 04 12:03:54 Like without createing another version Jul 04 12:04:04 oh in the title bar? Jul 04 12:04:08 yeah Jul 04 12:04:12 you could add some padding on the image view Jul 04 12:04:20 either padding or margin, i can't remember which one Jul 04 12:04:32 but you'd need to set adjustViewBounds="true" Jul 04 12:04:45 My current version uses the ic_launcher pic but I noticed that the ICS title bar uses a slightly smaller version Jul 04 12:04:53 suedoh: google for androidscreencast.jnlp, allows you to view a device over USB Jul 04 12:05:06 ooh Jul 04 12:05:20 let me take a look for that, thanks Jul 04 12:05:23 its not the /best/ but its good Jul 04 12:05:33 be about the same lagg as an emulator though Jul 04 12:05:43 CallumTaylor: btw: why is requestFeature(hide title) needed instead of NoTitle theme? Jul 04 12:06:08 heh Jul 04 12:06:09 you could use the theme Jul 04 12:06:15 but as long as the thing boots up Jul 04 12:06:19 avd is inconsistent here Jul 04 12:06:20 for me Jul 04 12:06:27 my station's a bit too old for it i believe Jul 04 12:07:13 suedoh: alternatively, you can try the VNC Server app from the Play Store. Jul 04 12:12:32 What does it mean when an AVD outlines in red? Jul 04 12:14:00 BankZ: in the AVD manager? Jul 04 12:14:22 no, around the running AVD Jul 04 12:14:50 I think something is jacked, I cant type using my keyboardm gota use the mouse and the soft keyboard Jul 04 12:14:59 argh Jul 04 12:15:04 the running thing is called the emulator Jul 04 12:15:16 sorry Jul 04 12:16:09 any ideas? Jul 04 12:17:21 what happens if you press F6? Jul 04 12:18:30 odd, seems to be working now Jul 04 12:18:36 not sure whats the deal Jul 04 12:19:43 hello all Jul 04 12:19:55 Did someone ever had problem with truncated data returned ? Jul 04 12:20:13 from an http call? Jul 04 12:20:47 the http call is returning a normal json Jul 04 12:20:58 and the response is truncated Jul 04 12:21:04 always at the same character Jul 04 12:28:05 the image that i get from the camera I can bearly see it. it has verry low quality. that's in my emulator. so how can increase the quality? Jul 04 12:39:58 yo developerZ. Which do you prefer: jquerymobile vs. jqTouch vs. sencha touch? Jul 04 12:42:13 is there a way to play sounds through the ndk on android 2.2? Jul 04 12:42:52 via the JNI, I think Jul 04 12:43:12 NDK is basically JNI... Jul 04 12:45:45 suedoh: none Jul 04 12:45:54 suedoh: web mobile apps are bad mkay Jul 04 12:48:37 hackkitten, i'm not sure i'm following you Jul 04 12:48:51 there are different APIs on the ndk, as I can tell Jul 04 12:49:16 CallumTaylor: is there a way to inject the header layout to the top of the screen? Jul 04 12:49:20 could be, haven't looked at those yet Jul 04 12:49:34 you can call c++ code from java Jul 04 12:49:35 in code? Jul 04 12:49:38 but i don't think it works the other way Jul 04 12:49:41 either Jul 04 12:49:42 if the NDK exposes those APIs, then yes, you can do such things... Jul 04 12:49:46 umm Jul 04 12:50:02 not to the direct root Jul 04 12:50:04 hackkitten, there's no api for sound for android 2.2 or less Jul 04 12:50:06 unless you get the id of the root container Jul 04 12:50:08 it only came with 2.3 Jul 04 12:50:10 ppl anyone build 2d game for android/ios? i want to know what's the best/most used 2d engine to create games for both OS Jul 04 12:50:12 ah Jul 04 12:50:17 then do addView(view, 0) Jul 04 12:50:25 probably due to the OpenSL support in 2.3.3 Jul 04 12:50:41 yes, exactly Jul 04 12:51:23 it just seems silly that I can't play sounds on older versions and have to target higher versions of android just for that Jul 04 12:51:33 CallumTaylor: the root is a linearlayout with gravity="center" Jul 04 12:51:34 and throw away ~15% of the userbase Jul 04 12:51:55 wrap everything in another container then Jul 04 12:52:13 CallumTaylor: ok, was seeing if there was another way. Jul 04 12:53:11 Android 2.2 should just die already =/ Jul 04 12:53:22 heck, anything pre-ICS should roll over and die Jul 04 12:53:52 all those old versions makes Android dev as much fun as writing JS and CSS fixes for IE 6 :P Jul 04 13:02:37 CM9 ftw Jul 04 13:05:08 well, I still need to make it work Jul 04 13:10:06 works superb on my s2 Jul 04 13:14:15 why I get this error? ----> java.lang.IllegalArgumentException: provider=network Jul 04 13:14:30 for my code ---> locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0, locationListener); Jul 04 13:14:42 Isn't it network provider is known? Jul 04 13:14:59 I added a search action button at the top, when click it supposed to extend to recieve user input. It extends on my honeycomb tablet emulator but not my phone emulator Jul 04 13:15:05 Help Jul 04 13:15:05 I do not get this exception if I make my application permission fine, now its coarse Jul 04 13:16:41 this is happening on 4.0.3. but does not happen if i use any emulator before that version Jul 04 13:18:18 * Ge0rG just had half-an-hour of WTF. added stuff to an ArrayAdapter, but the entries last added were not showing up on screen. finally found the reason: ListView was higher than the screen /o\ Jul 04 13:28:34 claro Jul 04 13:30:26 can i import ObjectOutput instead of implementing to make a object serialized? Jul 04 13:33:30 I have an array with 4000 items in it, I want to sort them by a date, whats the fastest way to do it? Jul 04 13:33:49 WHat its doing now is taking forever under the debugger Jul 04 13:34:16 how the array created? it's often best to sort it when building it Jul 04 13:34:25 O_O; uhhwow thats a big array Jul 04 13:35:06 hrm, I think I need to do more research to see if thats whats taking so long Jul 04 13:35:19 I am just assuming Jul 04 13:35:22 What sort proceedure are you using? Jul 04 13:35:48 it implements Comparator Jul 04 13:36:01 and then does this: Jul 04 13:36:01 final Date d1 = m1 == null ? EARLY : m1.getSentDate() != null ? m1.getSentDate() : EARLY; Jul 04 13:36:02 final Date d2 = m2 == null ? EARLY : m2.getSentDate() != null ? m2.getSentDate() : EARLY; Jul 04 13:36:02 return d2.compareTo(d1); Jul 04 13:36:33 So.. bubble sort? Jul 04 13:36:49 this has been running for 30+ mins Jul 04 13:36:58 under the debugger Jul 04 13:37:02 Are you just comparing items, and switching them out 1 at a time based on value, moving them up and down? Jul 04 13:37:03 must be something else Jul 04 13:37:28 is there no builtin sort procedure? Jul 04 13:37:38 BankZ: refactor that code if it's yours, it's much harder to read than what's needed. Jul 04 13:37:49 Even if there isnt, pseudo code for sorting methods are out there Jul 04 13:38:03 BankZ: wh[3~t sort are you using? Jul 04 13:38:05 which* Jul 04 13:38:09 havchr: its an open source project I am thining about working on Jul 04 13:38:38 Arrays.sort(msgs, MessageComparator.INSTANCE); Jul 04 13:39:11 then it does return d2.compareTo(d1); Jul 04 13:39:31 so, I assume that does a bubble sort Jul 04 13:39:34 can i import ObjectOutput instead of implementing to make a object serialized? Jul 04 13:39:46 Yeah.. you dont wanna do a bubble sort on a big input of items Jul 04 13:39:54 pboos you there? Jul 04 13:40:19 why would arrays.sort use bubble sort Jul 04 13:40:49 yuizy: he implemented his own sort routine being passed to sort, which looks like Bubble sort Jul 04 13:40:59 can i import ObjectOutput instead of implementing to make a object serialized? Jul 04 13:41:05 o.O Jul 04 13:41:12 he implemented a comparator Jul 04 13:41:24 not a sort routine Jul 04 13:41:32 can i import ObjectOutput instead of implementing? Jul 04 13:41:55 Rogue: please stop spamming, and read some doc about serialization Jul 04 13:41:59 BankZ: Date d1 = (m1 != null && m1.getSentDate!=null) ? m1.getSentDate() : EARLY Jul 04 13:42:35 olivier_b: you have nothing to contribute so stfu Jul 04 13:42:40 Rogue: to make it fast ObjectOutputStream can be used to write an object witch implements Serializable to an underlying output stream Jul 04 13:42:48 i was writing, but please stop spamming Jul 04 13:42:53 BankZ: if the .getSentDate() does something that takes time, you should calculate it dynamically Jul 04 13:43:04 ok Jul 04 13:43:10 but otherwise an O(nlogn) algorithm should not take 30min+ Jul 04 13:44:32 Hello! i was wondering if anybody can help me with asynctask and screen rotation... i was wondering if its a good idea to use a service to do the asynctasks and then, send the activity Messages when those are finished Jul 04 13:45:15 so the activity can reach and take the data from the service... also, if the activity is destroyed before getting the handle, it can ask onCreate to see if the data is there to take it Jul 04 13:45:23 is it a good idea? or is just too complicated? Jul 04 13:48:45 scofmb, this might help: http://www.vogella.com/articles/AndroidPerformance/article.html Jul 04 13:49:44 scofmb, I've recently encountered the whole screen-rotation problem while doing network tasks too, the link provides what i've been working with to try make it work nicely. Jul 04 13:51:08 scofmb, btw im not expert. Jul 04 13:54:34 Sorry, phone rang, im looking at this more, may have some questions ;) Jul 04 13:54:45 Hi Jul 04 13:55:09 olivier_b: Oliver, ok you answered my question but it didn't help my problem. I still get a error after making the buffreader variable, saying it expected a comma instead of a semicolon http://pastebin.com/PzvHzEwU Jul 04 13:55:31 what i really wonder if the doInBackground is running while the UI thread is recreated, will the onPostExecute wait and run on the new thread.. or will just get skipped Jul 04 13:55:37 if i have an apk, how can in stall that on my s3? Jul 04 13:55:57 jahid: adb install foobar.apk Jul 04 13:56:10 I am having a problem trying to establish a bluetooth connection to a linux board, Blueterm can connect to it and the serial port is working, I can send/receive messages, however I can't get it working in my own app :/ Jul 04 13:56:15 havchr: think thats faster? or just easier to read? Jul 04 13:56:16 Leeds, this need to be done when device is connected? Jul 04 13:56:28 I mostly only do copy/paste from here : http://developer.android.com/guide/topics/connectivity/bluetooth.html Jul 04 13:56:31 Bankz: just easier to read Jul 04 13:56:33 jahid: no, you can use USB debugging without having USB plugged in Jul 04 13:56:41 olivier_b: you there? Jul 04 13:56:49 rogue: why are you using Serializable instead of parcelable? Jul 04 13:56:57 Leeds, i want to install that apk on my device. not on emulator Jul 04 13:57:12 Rogue: yes Jul 04 13:57:16 jahid: then you need to buy adb pro Jul 04 13:57:25 scofmb: Idk I just needed to serialize the object so I just pick that Jul 04 13:57:28 it founds the device but fail to connect to it with this error message : Service discovery failed, it seems to be caused by a wrong UUID but I can't find how to find the good one Jul 04 13:57:33 BankZ: but if it's an innerloop, you should rather say to people passing stuff in, that null is not excepted. it'll save all the null checking. Make people filter the data before sending it to a sort. Jul 04 13:57:41 Leeds, there is no other way to install an apk into my phone manually? Jul 04 13:57:44 I want to put the buffreader into a array Jul 04 13:57:46 alot of this code seems really slow. Do thinks run a lot slower under an emulator? Jul 04 13:57:52 jahid: yes, carrier pigeons Jul 04 13:58:00 jahid: stupid questions get stupid answers Jul 04 13:58:02 Rogue: which line ? Jul 04 13:58:03 jahid : copy it to the sd card, and run it there :D Jul 04 13:58:03 then a array adapter Jul 04 13:58:16 9 Jul 04 13:58:24 scofmb, thanks Jul 04 13:58:59 Rogue: http://stackoverflow.com/questions/5550670/benefit-of-using-parcelable-instead-of-serializing-object Jul 04 13:59:08 oh damn all the americans are off today Jul 04 13:59:11 irc is gonna be boring Jul 04 13:59:45 lol Jul 04 14:00:09 canadiancow|work: I recommend invading - they'll never notice over the fireworks Jul 04 14:00:18 Rogue: Rogue why no parenthesis for method calls on last line ? Jul 04 14:00:41 aaah Jul 04 14:01:01 or we can say since they are our overlods, we have to celebrate their day too Jul 04 14:01:35 i was in the US on the 1st and canada on the 4th Jul 04 14:01:39 i missed out on all the parties Jul 04 14:02:56 #failing Jul 04 14:03:50 I have an old application that I am trying to modify, when I try to run the application I get this message---> error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Theme.Dialog.Alert'. Jul 04 14:04:03 my mistake olivier_b but the error is still there Jul 04 14:04:44 http://i49.tinypic.com/31501ux.png - exactly the same mp3 file, hosted on Apache and IIS servers respectively. When the Apache link is opened on a smartphone, it's able to determine the length of the file. On the IIS server it is not. Any ideas? Jul 04 14:05:49 sorry but i don t know, it seems coorect Jul 04 14:07:01 what do you mean by being able to determine the length of the file? Jul 04 14:09:58 when you hold a ruler up to the screen Jul 04 14:10:05 my file is 3.24cm long Jul 04 14:10:49 where can i find more of android's built in styles? Jul 04 14:10:58 i mean a document Jul 04 14:19:20 ppl anyone build 2d games for android/ios? i want to know what's the best/most used 2d engine to create games for both OS Jul 04 14:19:46 debatable Jul 04 14:19:58 ive tried two or three cross platform engines Jul 04 14:20:05 i didnt like any of them Jul 04 14:20:15 when your cross platform engine has methods with "retinaIpad" in the name... Jul 04 14:21:43 canadiancow|work: thats for Windows Phone silly goose Jul 04 14:22:00 g00s isn't here Jul 04 14:22:07 I see what you did there Jul 04 14:22:45 now i'm working with unity 3d! ok we can build "2d" stuff with it, but it seems like a RPG to kill a small worm lol Jul 04 14:23:44 i've been reading about starling engine, but i don't know if adobe air + starling would run smoothly in android/ios Jul 04 14:24:21 how is unity? I grabbed afree download a while ago but never used it.. right now teaching myself game programming via SDL on my linux box Jul 04 14:25:54 unity is very nice, has a good concept, 90% of the work is done... it's just like assembly all things together Jul 04 14:26:27 looks like I was wrong about the sort being whats taking forever, this app is using k9 to get emails, and its the getting the 4k messages that is taking forever Jul 04 14:29:18 i've also watch corona engine in action and it seems nice, but unfortunately we need to pay for develop :\ Jul 04 14:41:03 can a fragment hold a viewpaer? Jul 04 14:41:21 yes? Jul 04 14:41:25 a viewpager is a view, right? Jul 04 14:41:34 i think so Jul 04 14:41:35 lol Jul 04 14:42:34 does complib v7 contain the v4 stuff as well? Jul 04 14:43:34 i think v7 just contains the gridlayout Jul 04 14:43:36 or something like that Jul 04 14:44:31 canadiancow|work jw'ing bc i have a viewpager layout that works fine in an activity, but i put it into a fragment and its...well...is all messed up lol. Jul 04 14:45:07 oh my change is in the changelog of r9 :) Jul 04 14:45:18 General Improvements - Updated NotificationCompat.Builder to support the setNumber() method. Jul 04 14:45:19 :):):) Jul 04 14:45:51 * Jug6ernaut waits for n7 to come in Jul 04 14:46:12 that & mb,ram for new desktop Jul 04 14:46:17 * Jug6ernaut hates waiting Jul 04 14:46:25 http://www.youtube.com/watch?v=KRWILztAr6g Jul 04 14:46:26 enjoy Jul 04 14:47:40 9hours 59minutes 56 seconds? Jul 04 14:53:37 http://www.ebuyer.com/390394-higgs-boson-higgs126 Jul 04 14:53:49 now i'll stop spamming everybody with offtopic links :p Jul 04 14:54:04 canadiancow|work: ah ok Jul 04 15:01:41 Hi all Jul 04 15:01:49 Hi one Jul 04 15:10:54 Wath your are coding? Jul 04 15:19:29 Hi all Jul 04 15:20:19 I'd like to use a CursorAdapter with my ListActivity, but the Documentation says I have to use a CursorLoader for that, and all tutorials I have found so far are for Fragments. Jul 04 15:20:34 Is it possible to use a CursorLoader without having to convert my entire app into Fragments? Jul 04 15:24:35 Pingless: yes Jul 04 15:24:52 Pingless: http://developer.android.com/reference/android/content/CursorLoader.html Jul 04 15:24:55 read the documentation Jul 04 15:27:56 siyb: As far as I can tell, that doesn't work; the standard CursorLoader seems to require a ContentProvider (required URI parameter), and I don't serve my data through a ContentProvider. Jul 04 15:30:31 What's the standard pattern for loading ListView content from a database without using Fragments? Jul 04 15:32:05 Pingless: get a cursor and place it into a list adapter Jul 04 15:32:19 fyi the problem you are having is not related to fragments in any way Jul 04 15:32:47 What is the easiest way to get ahold of the android source code? Jul 04 15:33:07 finally finished my game: http://imbusy.org/get Jul 04 15:33:18 at least the first version Jul 04 15:33:56 imbusy: That looks cool! Jul 04 15:34:00 thanks Jul 04 15:34:23 Kinda like a more adorable version of Limbo from what I could see. Jul 04 15:34:43 somewhat influenced by limbo probably Jul 04 15:35:05 but it's mainly based on an old soviet animation with the same name Jul 04 15:35:17 * cythes looks outside for the first time in weeks "Oh yeah....that place? what was it called again.....Life?" Jul 04 15:38:01 JakeWharton: ping Jul 04 15:45:46 hi everyone, just a question... sharedpreferences will be loaded always from disk or memory? Jul 04 15:46:38 yes Jul 04 15:47:03 canadiancow|work: always from disk? So, it's expensive to abuse reading from this place? Jul 04 15:47:13 no, yes to "always from disk or memory" Jul 04 15:47:38 i wouldnt be too concerned with reading sharedprefs from disk unless you're reading a base64 encoded movie or something Jul 04 15:47:53 but i can guarantee the first time you read your preferences, they will be from disk Jul 04 15:47:55 after that, im not sure Jul 04 15:48:47 Is Java.IO different in Android and Java? Jul 04 15:48:56 hmmm Jul 04 15:52:28 guys! i think i found a mistake in the camera example code in the guide Jul 04 15:54:03 oh no Jul 04 15:54:41 yes Jul 04 15:55:50 emm.. it's the onActivityResult() . the Intent variable "data" will make the application crash Jul 04 15:56:15 so the whole function body must be deleted. Jul 04 15:56:32 use anything else instead. Jul 04 15:57:02 Does android have FileInputStream.read(byte[])? Jul 04 15:57:31 Kake_Fisk: I'd probably read the FileInputStream docs Jul 04 15:57:44 I'm there, but can't find it Jul 04 15:57:55 Javadocs have a read(byte[]) Jul 04 15:58:01 Guess it doesn't then Jul 04 15:58:17 woopsie Jul 04 15:58:17 :| Jul 04 16:00:13 Hi Jul 04 16:00:37 Why is the AVD manager in Eclipse separate to the one on the start menu in windows? Jul 04 16:04:30 I'd guess it's because one is integrated into eclipse, and one's a standalone application Jul 04 16:04:49 Yeah it's just that my emulators are not in the eclipse one. Jul 04 16:05:08 I suppose I'll have to copy them over somehow. Jul 04 16:07:26 ok bye Jul 04 16:28:16 my application keeps stacking up memory usage. I have multiple images in imageviews that i initialize on the progress. I'm doing imageview.destroyDrawingCache() to the images i dont need, but it does not seems to help. Jul 04 16:28:21 anyone can help me with this? Jul 04 16:34:01 Anyone experienced in bitmaps taking too much memory? Jul 04 16:34:24 I get out of memory VM budget exceeded error Jul 04 16:35:20 all Jul 04 16:35:21 the Jul 04 16:35:22 time Jul 04 16:35:29 * Jug6ernaut fails at bitmap allocations Jul 04 17:02:08 hey guys, so, new to android-dev here, so bear with me Jul 04 17:02:26 i created a new project in Eclipse ADT, and I'm using a blank activitiy Jul 04 17:02:36 however, it has my app's icon and name at the time Jul 04 17:02:47 i'd rather replace this with an image/different font Jul 04 17:02:52 how can I do that? Jul 04 17:03:47 when you run it on the phone? Jul 04 17:04:08 errr Jul 04 17:04:15 this is in the preview in Eclipse Jul 04 17:04:27 emulator? Jul 04 17:04:52 im in eclipse now and don't see icons for my project Jul 04 17:05:08 what icons where? Jul 04 17:05:22 Droido: http://imgur.com/3hU3P Jul 04 17:05:27 that's a screenshot Jul 04 17:05:40 i'm taking about where it says "taab's cafe" at the top Jul 04 17:05:53 ok in the layout sorry Jul 04 17:05:58 I'd like to get rid of that, and the coffee cup icon next to it, and replace it with my own Jul 04 17:06:21 the harder way is to go into the xml file you want to try to do it without going into source first? Jul 04 17:06:37 not afraid of source Jul 04 17:06:42 if that's quicker/easier, let's do that. Jul 04 17:06:53 Is onCreate called when I flip my screen? Jul 04 17:07:06 click the androidmanifest.xml on the left in the navigator Jul 04 17:07:25 mine has android:icon="@drawable/ic_launcher" Jul 04 17:07:44 Droido: so does mine Jul 04 17:07:49 so remove those I'm guessing? Jul 04 17:07:51 Do you already have another icon or know where I can dload one to do it too? Jul 04 17:08:13 no we change it or change the ic_lancher.jpg in the res/drawable folder. open the res/drawable folder in another window Jul 04 17:08:43 err, i don't want to change it exactly Jul 04 17:08:46 i want to remove those Jul 04 17:09:06 becaues I want my layout to look like this: http://imgur.com/C6wl0 Jul 04 17:09:09 try removing the line and run - save it with cut so you can paste it back Jul 04 17:09:26 im noob too hopefully someone comes in and helps. Jul 04 17:10:06 well, removing those removes the text and icon Jul 04 17:10:08 Should I save my game onPause or whenever a level is complete? Jul 04 17:10:11 but that bar remains Jul 04 17:10:19 the dark blackish one Jul 04 17:10:48 they may break this part down on the android page trying to find it Jul 04 17:11:33 okay overloaded no idea Jul 04 17:12:34 i think that is the blue title bar when run on the phone. maybe there is a property to change the title backgound for the app Jul 04 17:13:17 http://elliotth.blogspot.ca/2009/07/removing-title-bar-from-your-android.html Jul 04 17:14:18 are you going to try the xml one or the procedural one? Jul 04 17:14:40 can you search the closed captioning in a youtube video? Jul 04 17:14:46 if i want to find the part that talks about a specific thing Jul 04 17:14:50 Droido: XML Jul 04 17:16:47 HorizonXP: it works good job finding that. it doesn't look like the layout will let you do that. maybe it has a drop down to set it. Jul 04 17:16:58 In ICS, what do you call that bar that is invoked on long-tap on text in an edit text that shows copy/cut/select/share Jul 04 17:19:19 actionmode Jul 04 17:19:25 how to get the path from a picked photo- is going through /mnt/... proper or should an api derived path be used for the read and right path. currently using photoPickerIntent Jul 04 17:19:41 hi SimonVT! Jul 04 17:19:42 lol write path.. thanks Jul 04 17:19:52 Hi canadiancow|work ! Jul 04 17:24:12 onActivityResult is the convention to return info from a launched activity? for instance launching a photo picker activity then get the results in a method with some set variables/references? Jul 04 17:24:59 yes. Jul 04 17:26:31 thanks Jul 04 17:35:33 guess it's a little weird, I had an EditText invoking an action mode in 4.0, now nothing in 4.1 Jul 04 17:49:30 lol, what is this? Jul 04 17:49:41 MotionEvent.ACTION_CANCEL, i've never seen that before? Jul 04 17:49:59 thats been there since forever Jul 04 17:50:06 i am noticing that from the docs Jul 04 17:50:11 but i've never encountered this before, wtf does it mean? Jul 04 17:50:21 ive never seen it happen Jul 04 17:50:34 hey guys Jul 04 17:50:37 im seeing it now, it's causing a control in my app that i, admittedly, never tested on the emulator to fail on the emulator Jul 04 17:50:37 but my guess is that there is a circumstance where you would get it instad of an UP Jul 04 17:50:49 ah Jul 04 17:50:55 how I can start/stop android process from my app? Jul 04 17:51:25 canadiancow|work: im getting it seemingly as an up Jul 04 17:51:31 i mean, i am simply clicking on this control Jul 04 17:51:37 ah Jul 04 17:51:38 i see ACTION_DOWN, then ACTION_CANCEL Jul 04 17:51:42 scratching my head here Jul 04 17:51:46 honestly ive always treated cancel and up the same way Jul 04 17:51:52 just from the docs Jul 04 17:51:58 I need a little tip according to locationlisteners, mapviews and stuff if someone would be so nice to give me a "hint" ;) I am asking myself how I could send back the location updates to my "locationlistener calling activity" ? :) Jul 04 17:52:04 "cancelling" a gesture vs "finger up"... Jul 04 17:52:37 is it maybe because i'm saying i handled the ACTION_DOWN? Jul 04 17:54:30 is it just me or are the intel x86 emulator images slower than the arm images? Jul 04 17:54:31 it would seem that yes. Jul 04 17:54:51 if i return false from onTouchEvent during ACTION_DOWN, ACTION_UP is sent. if i return true, ACTION_CANCEL is sent. this is on the gingerbread emulator. Jul 04 17:54:56 what the shit? Jul 04 17:54:58 jasta i always said i was handling down :S Jul 04 17:55:41 i'm looking at the gingerbread source right now to see if this is supported by explicit code Jul 04 17:55:48 becuase this doesn't jive with my understanding at all Jul 04 17:56:48 d'oh, red herring i think. being in the emulator and taking a second or so to handle the action caused the cancel Jul 04 17:57:02 lol Jul 04 17:58:13 oh, a weirder problem entirely is happening Jul 04 17:58:24 enabling hardware acceleration on this view is causing some drawing anomalies ;0 Jul 04 18:02:17 Hey Jul 04 18:02:27 I just read https://developer.android.com/design/patterns/actionbar.html#elements about the two types of tabs Jul 04 18:02:53 I think my tabs fit into the 'Fixed Tabs' category, however, some text is just too long in some languages. What is the usual solution for this problem? Jul 04 18:04:19 Hello, I am new to android-dev. But I need to import a pre-populated sqlite database to my app. Are there any good guides? Most guides ive looked up seems to only be work-arounds with creating new databases at first start of app and then populating it Jul 04 18:07:36 sliddjur: i wish i knew Jul 04 18:08:02 how to check a variable in eclipse? I tried log.d bu do not know where to find the output? Jul 04 18:08:04 Does anyone have a foolproof method for finding a contact photo? I'm having difficulty finding the photo for a contact, also when synced with Facebook. Jul 04 18:08:39 Droido: Log.d() shows in logcat Jul 04 18:10:50 can eclipse open the emulator automatically? Jul 04 18:11:53 Yes Jul 04 18:11:57 Yes Jul 04 18:12:51 does anyone here watch minute physics? Jul 04 18:12:55 aried3r: trying to get filepath into a variable. String filePath = cursor.getString(columnIndex); Log.d("imagepathg", filePath); Jul 04 18:13:30 Dany0: you mean two cars crashing head on at 50 is the same as one hitting a wall at 50? Jul 04 18:13:39 Droido no the youtube channel Jul 04 18:14:31 Dany0: yes do you like their videos? Jul 04 18:14:42 Droido yeah, *his Jul 04 18:14:48 Droido what do you think, minute graphics Jul 04 18:14:55 explaining computer graphics y'know Jul 04 18:15:07 because I myself don't understand them well so it would be interesting Jul 04 18:15:34 Sure. you don't have to download physics though what program would it use? Jul 04 18:15:55 what program to draw? Jul 04 18:16:19 MarcAurelio: when i click run as android application, it open a virtual device thing Jul 04 18:16:27 There is pixels and draw tools that draw pixels and functions to average pixels and do other things with them. Jul 04 18:18:44 Technodrome: that is the screen to choose if running on which emulator or direct on phone Jul 04 18:18:50 That the emulator Jul 04 18:19:04 Technodrome: you may need to setup an emulator or what MarcAurelio just said Jul 04 18:19:14 i need to set it up then Jul 04 18:19:24 so i should have the emulator running at all times? Jul 04 18:19:25 @Technodrome Jul 04 18:20:00 i get choose a running android device and launch a new android virtual device Jul 04 18:20:07 im guessing virtual in this case Jul 04 18:20:30 nothing available in either Jul 04 18:21:51 Droido what Jul 04 18:22:26 Droido oh I thought I'd do it on paper just like minutephysics, but when I've done it previously I did it with smartdraw3 and a tablet(same thing khan from khan academy uses) Jul 04 18:22:33 You don't close the emulator and then can you work and new compile in eclipse. Jul 04 18:22:42 Dany0: what would you draw how to draw a circle? Jul 04 18:22:53 Droido what o.o Jul 04 18:22:57 MarcAurelio: so i need the emulator open at all times then? so eclipse doens't start the emulator for me? Jul 04 18:23:19 It starts it and if you don't close it then it is faster the next time you compile and run. Jul 04 18:23:32 ok then yeah, its not starting it Jul 04 18:23:36 no targets found etc Jul 04 18:23:39 plug in your phone for any hope if you make quick changes and compiles. Jul 04 18:23:53 that better then the emulator? Jul 04 18:23:57 than* Jul 04 18:23:57 i had to get a usb driver for my galaxy Jul 04 18:24:05 yes the emulator is super super super slow. Jul 04 18:24:13 wasn't the emulator improved heavily? Jul 04 18:24:21 not in the last 30 seconds. Jul 04 18:24:30 Droido what do you mean Jul 04 18:24:32 Yes, eclipse use the open emulator when your click on run in eclipse Jul 04 18:24:36 i thoguht a new release happened or something Jul 04 18:24:39 Anyone know if reading values from preferences is "slow"? is it something you should not do in a getView for a list adapter? Jul 04 18:24:48 MarcAurelio: so i guess my tool chain is somewhat broken here Jul 04 18:25:20 I've had the same config trouble perhaps Marc can tell where to focus. Jul 04 18:25:41 Droido? ;_; Jul 04 18:26:06 Log.d("imagepathg", filePath);System.out.println(filePath); How to print anything to a log, console or even a quick popup on the phone to help debug? Jul 04 18:26:09 Wath you using for a eclipse version? Using te new android sdk? Jul 04 18:28:05 Dany0: click the down arrow the right of the play button and go to run configurations Jul 04 18:28:53 Droido duuuude >:( Jul 04 18:29:02 Log.i(LOG_TAG, "imagepathg"+filePath); Jul 04 18:29:37 Droido: ^^ Jul 04 18:29:48 logtag undefined Jul 04 18:29:55 right i use logtag Jul 04 18:30:13 replace logtag with "imagepathg" Jul 04 18:30:19 with quotes Jul 04 18:30:41 sorry didn't realize it was literally a tag Jul 04 18:30:55 yes i do it because its easier to me Jul 04 18:31:22 final static String LOG_TAG = "My ImageG"; Jul 04 18:31:34 there you go to statically set logtag Jul 04 18:32:17 MarcAurelio: newest eclipse Jul 04 18:32:26 and i installed the android eclipse plugin yep Jul 04 18:32:31 i put it in oncreate with strings and not geting anything. does it require running on emulator not phone? Jul 04 18:32:33 can create new android app etc Jul 04 18:32:39 Technodrome: i think he was asking if u updated to the latest Android Sdk Jul 04 18:32:51 on both the android sdk updater and eclipse Jul 04 18:32:56 i just grabbed it yesterday Jul 04 18:33:47 afaik: they dont recreate the android sdk base tools until major releases are released u just download the main sdk and update it Jul 04 18:34:51 Droido: if u run it on the phone well either you need to watch logcat in eclipse Jul 04 18:35:11 or download a logcat recorder for your phone and record events Jul 04 18:35:33 no compatible targets were found etc etc when i click run on a basic hello wrold Jul 04 18:35:41 tried emulator but it has no media in the gallery lol. Jul 04 18:35:54 Technodrome: did you download any or all the sdks for android Jul 04 18:36:00 droidbuster: so it works to run on phone and watch logcat in eclipse? Jul 04 18:36:02 it ships with only ICS Jul 04 18:36:11 Droido: Yes Jul 04 18:36:37 it really treats your phone as an emulator but it is a real device obviously and will monitor all the events Jul 04 18:36:57 why does it dissapear? I just tried to bring it up with window-other and its not Jul 04 18:37:09 Technodrome: it sounds like you have not installed Any of the Sdks or the correct Sdk you are trying to devel for Jul 04 18:37:17 Can you type part of the string when it is verbose mode to see its value? I have nothing still. Jul 04 18:38:18 Can I get Facebook contact photos in my own app? Jul 04 18:38:30 in logcat are you selected on the correct filter on the left side if you have run multiple apps. Also the logcat log.i should be placed after whatever action is setting the images filepath Jul 04 18:39:06 hmm Jul 04 18:39:41 Apps like Hancent SMS seem to be able to load all of my contact photos Jul 04 18:40:02 Droido: otherwise there will never be a path defined to the param filepath... Jul 04 18:40:04 bbl Jul 04 18:40:41 someone is aware what LocationManager.getBestProvider(Critiera, true) returns if there is no enabled provider? Jul 04 18:41:57 try? Jul 04 18:43:00 Aeefire, http://developer.android.com/reference/android/location/LocationManager.html#getBestProvider(android.location.Criteria, boolean) Jul 04 18:44:40 Tryin to get the file path /sdcard/... from photopicker onActivityResult http://pastebin.com/HK47zT7P Jul 04 18:44:46 thanks... gawd do you also have issues with adb recently? -.- Jul 04 18:45:30 hmm not really.. Jul 04 18:45:37 droidbuster: thanks I got them to show up in logcat :) Jul 04 18:46:08 Droido: np :) Jul 04 18:47:51 I want to develop an application that still running in background after I run and configure it (like a daemon in a computer)... I want this application to do tasks every 5 minutes. How can I do it? I developed few things in android before, but I don't know to reach things lkike this. Any help will be very appreciated. Thank you in advance. Jul 04 18:48:35 Aeefire: i have not i just updated two days ago myself Jul 04 18:49:51 anybody here good with webkit ? Jul 04 18:50:05 Argorok: set an alarm Jul 04 18:50:10 Argorok, you can use services, or perhaps AsyncTask class Jul 04 18:50:49 Argorok: every 5 mins will drain any phone or devices battery rapidly Jul 04 18:51:21 I have problem. I have rooted device with su and etc. When I try to get su with proc.exec() i always get request rejected (10063->0 /system/bin/sh) . Any ideas why is that happending? Jul 04 18:52:07 F1rstAid: #android-root Jul 04 18:52:45 this is a devel channel not a rooting and busybox, etc channel Jul 04 18:53:04 droidbuster I am developing app which need such things.. so I think it is related Jul 04 18:55:50 Unable to find a 'userdata.img' file for ABI armeabi to copy into the AVD folder shouldn't this already be there? Jul 04 18:59:28 I am getting package R does not exist on running ant debug Jul 04 18:59:35 looks like my xml file is corrupt Jul 04 18:59:43 can anyone point me to some help ? Jul 04 18:59:58 r doesnt generate itself if there are errors in the project Jul 04 19:00:02 clean up all errors and itll reappear Jul 04 19:00:09 droidbuster hmm then its probably my HOX's fault... someone wanna donate a young developer who just graduated a GNEX? :PPP ^^ Jul 04 19:00:16 R doesn't get genreated if there are *resource* errors Jul 04 19:00:22 it should still be generated if there are *java* errors Jul 04 19:00:36 Aeefire what do i get out of it Jul 04 19:00:41 canadiancow|work so the resource error in this case is my xml file ? Jul 04 19:00:49 probably? Jul 04 19:00:57 how do I debug them ? Jul 04 19:00:58 it is something in your res/ directory Jul 04 19:01:05 aapt should give you some kind of error message Jul 04 19:01:29 command: appt not found Jul 04 19:01:49 wrong spelling dang Jul 04 19:01:49 ok, why is this so difficult Jul 04 19:02:07 i have an ImageView, who's src image is larger than the screen. I want to scale it down to a specific width and height. How? Jul 04 19:02:12 canadiancow|work what option do I pass to aapt ? Jul 04 19:02:52 err when you try to do a build Jul 04 19:02:55 aapt gets run automatically Jul 04 19:03:01 and it should give you an error Jul 04 19:03:10 that is when I run ant debug Jul 04 19:03:21 canadiancow|work but appt doesn't give me any error Jul 04 19:03:29 canadiancow|work a happy young dev and maybe soon his first app published ? :DD Jul 04 19:04:18 HorizonXP ...is the src image a drawable? Jul 04 19:04:28 bullicon what exactly does it say theN? Jul 04 19:04:35 can you put the whole output on pastebin or something? Jul 04 19:04:43 Aeefire: yes, drawable PNG Jul 04 19:04:49 HorizonXP http://developer.android.com/reference/android/widget/ImageView.ScaleType.html => anyway, look at this :) Jul 04 19:05:10 canadiancow|work http://pastebin.com/zUmAZ2jS Jul 04 19:05:30 aapt is saying No changed resources. R.java and Manifest.java untouched. Jul 04 19:05:32 you should then use either MATRIX for pixel-resizing or set the view to fill_parent / match_parent Jul 04 19:05:39 hmm that is strange bullicon :P Jul 04 19:05:40 Aeefire: figured it out. had to set maxWidth to 519px instead of 519dp Jul 04 19:05:44 have you tried ant clean ? Jul 04 19:05:50 yes Jul 04 19:05:55 =\ Jul 04 19:06:00 have you tried eclipse? Jul 04 19:06:09 HorizonXP hmm however, I wouldn't set view sizes to fix pixelsizes as they appear different on different devices Jul 04 19:06:11 yes but not for andoird dev Jul 04 19:06:14 I hate eclipse Jul 04 19:06:19 its memory heavy Jul 04 19:06:26 i meant on this project Jul 04 19:06:29 no Jul 04 19:06:35 sometimes it can be more helpful at finding issues like this Jul 04 19:06:38 although usually its the other way around Jul 04 19:06:50 usually i get some stupid error in eclipse, and ant syas "OH THIS IS EXACTLY WHAT'S WRONG" Jul 04 19:06:57 Aeefire: definitely agree, but for now, this is a prototype app on a Galaxy Nexus. Jul 04 19:07:00 canadiancow|work which is what I expected Jul 04 19:07:05 Is there some sort of bug in the SDK which makes the application take AGES to start up? Jul 04 19:07:09 just need it to look right on one device for now. Jul 04 19:07:15 kk ;) Jul 04 19:07:57 why is my listview turning white when i scroll in it? Using theme holo, i though the cache color hint stuff was suppose to turn it dark if trying to use a custom background color, not white. That is what all the hits on google sais Jul 04 19:08:55 canadiancow|work modified the xml a bit Jul 04 19:08:58 appt says [aapt] Found modified input file Jul 04 19:08:58 [aapt] Generating resource IDs... Jul 04 19:09:05 but still gives me that error Jul 04 19:09:09 you guys wouldn't happen to know how to set the font typeface in XML so it shows in the preview, would you? Jul 04 19:09:13 do you have a gen/ directory? Jul 04 19:09:16 right now, i'm loading it programatically Jul 04 19:09:36 yes and it has R.java.d Jul 04 19:09:43 does it have an R.java ? Jul 04 19:09:45 without the .d Jul 04 19:09:57 yes in the package root Jul 04 19:10:08 package absolute root Jul 04 19:10:10 wtfux Jul 04 19:10:32 My app is taking something like 5 seconds to load when it is very small, and when I tried something more complex, it took almost a minute. Jul 04 19:10:47 mad1231999, what device Jul 04 19:11:17 Sony Ericsson XPERIA mini. Jul 04 19:11:25 Just temporarily :) Jul 04 19:11:27 have you tried on any other devices? Jul 04 19:11:47 No. I unfortunately don't have any more. But I'll get another one soon. Jul 04 19:18:17 canadiancow|work: possible to open an existing project in eclipse ? Jul 04 19:18:27 yes Jul 04 19:18:28 one you started with command line ? Jul 04 19:18:41 and you can revert back to command line from an eclipse messed up project ? Jul 04 19:18:45 yes Jul 04 19:18:48 great Jul 04 19:19:01 i do all my dev in eclipse, and my builds with ant Jul 04 19:19:12 the only difference between the two is the .project file, really Jul 04 19:19:19 eclipse needs it, ant doesnt use it Jul 04 19:20:41 I am sold Jul 04 19:20:49 so if I create a project using command line Jul 04 19:20:59 how do I create the .project file for eclipse Jul 04 19:21:52 get file path? http://pastebin.com/HK47zT7P Jul 04 19:22:07 you open it in eclipse, and eclipse creates it Jul 04 19:22:35 bullicon: what is command line? Jul 04 19:22:48 terminal Jul 04 19:22:53 Droido terminal Jul 04 19:22:58 bullicon: hospital? Jul 04 19:23:10 Droido no, Morgue Jul 04 19:23:25 lol now i am a getting a bit annoyed by my device Jul 04 19:23:25 bullicon: that is where the command line is? Jul 04 19:23:26 lol Jul 04 19:23:34 absolutely Jul 04 19:23:49 Droido: you wanna go there? Jul 04 19:24:07 bullicon: you already are. maybe try an icon. Jul 04 19:24:27 Droid: join me Jul 04 19:25:03 File-new project-android-android project Jul 04 19:25:09 Can someone tell me if this app https://www.dropbox.com/s/ldiaavy9ownodgu/Engine.apk is starting up very slow? Jul 04 19:25:35 There is a program out which lets you type menu commands from eclipse on a command line. you can type alt-f-l-tab-tab-click to get the third file for instance. Jul 04 19:26:11 That way you can use a gui based program but still feel like you have the power and freedom of the command line. Jul 04 19:26:21 I use a guy program Jul 04 19:26:33 Droido: gui* a light one for writing code Jul 04 19:26:42 just compile from terminal Jul 04 19:26:55 why not click a button in the gui? Jul 04 19:26:59 avoiding eclipse's extra learning curve Jul 04 19:27:01 I'm trying to use Amazon Web Services SDK for Android with Amazon Simple Email Service (SES) but after I add the two libraries in my libs folder: aws-android-sdk-1.3.0-ses.jar and aws-android-sdk-1.3.0.jar I get some weird errors saying that I have duplicate entries in the classpath for Apache Logging, Jackson JSON Parser and some other, see http://pastebin.com/7umf8Tuf Anyone here worked with AWS SKD for Android before and knows which libraries Jul 04 19:27:19 im switching to mac when I get a chance. spent hours trying to get filepath for a clicked on image. Jul 04 19:27:51 coded java for years and think this framework is whack- will get it down but the learning curve is worse than any ide and putting callback code in parameters is nastehhh. Jul 04 19:28:09 my java knowledge is doing me no good right now :) Jul 04 19:29:07 same here. you only need photos with colors and boxes to show what their insane framework is doing. and they don't provide that. Jul 04 19:29:48 Droido clicking a button doesn't give me a sense of what is going on Jul 04 19:30:16 anyways, I am installing eclipse at the mo Jul 04 19:30:40 if the button is just executing compile file x and put in y then you only need to look at the text once. Jul 04 19:30:57 which text? Jul 04 19:30:57 we haven't been able to know what is going on since apple 2 plus using 6502 Jul 04 19:31:30 Droido: whatever that means Jul 04 19:31:34 On the first apple you could go look at the code that was letting you type and blink the cursor lol. anyway we need a bunch of lower level stuff out of sight to do things now. Jul 04 19:31:59 how layout connects to classes and instances. I made up an image: http://snag.gy/Z0DJ4.jpg Jul 04 19:33:00 http://www.youtube.com/watch?v=XFtmkILu6xg Jul 04 19:33:10 bullicon: what stage are you not clear on? all the files and things made from compiling in eclipse? apk pak nik knack? Jul 04 19:34:18 Droido: exactly Jul 04 19:34:34 hmmpf i am getting a bit frustrated... what's the price for a GNEX atm? Jul 04 19:35:16 350 Jul 04 19:35:22 well it was while you could buy them Jul 04 19:35:28 they were pulld yesterday because of the injunction Jul 04 19:35:44 curious just to know or worried that not knowing will make something harder? Jul 04 19:36:03 Droido: both Jul 04 19:37:05 I do to with my programming background. It is like they teach it from the other side telling me words when I want to learn the alphabet and grammar. Jul 04 19:37:27 did anyone experience that, when you try to show a location on google map, the map activity is dipled, the location pin is there, but the map graphics is not rendered, only background is visible (which is square shapes on white background) Jul 04 19:37:40 for now I just compile it and it runs on the phone then followed a thing for the app store. not needing to go into the files for anything to do with the apps functionality. Jul 04 19:37:40 *is displayed Jul 04 19:37:48 canadiancow|work I am from europe, so that wouldn't be the problem.. but 350$ (usually also 350€ then >.<) is pretty hard for me atm hehe... gotta save much money then :P Jul 04 19:38:15 Is there any country where the womens eyebrows go up if you tell them you code? : Jul 04 19:38:29 Droido: I have had enough of your intelligent gibberish Jul 04 19:38:34 its Droido land Jul 04 19:38:37 its called computer science master's degree :P Jul 04 19:38:37 where this happens Jul 04 19:39:34 bullicon: if you want to know that much detail about the entire compile process go read the android site on it. Jul 04 19:40:04 bullicon: I've had enough of your over generalized intelligent bull. Jul 04 19:40:23 Droido: so lets call it a day Troll Jul 04 19:40:28 Anyone here used Amazon Web Services SDK for Android? Jul 04 19:40:45 bullicon: if thats keepin you quiet fine. Jul 04 19:41:03 Droido: deal Jul 04 19:41:12 Man, if google pushed their consumer releases as hard as they did SDK platforms, we'd all be on 4.1 in no time. Jul 04 19:41:20 Stupid automatic checkboxes. Jul 04 19:41:34 google doenst control consumer releases Jul 04 19:41:39 well on nexus devices they do to an extent Jul 04 19:41:51 but nexus devices will probably all have 4.1 by the end of the month Jul 04 19:41:51 canadiancow|work whats consumer releases ? Jul 04 19:42:00 like...on a phone :P Jul 04 19:42:27 * Aeefire wonders how he could get the *maps location* of a mapview where the user clicked on Jul 04 19:42:58 why should anyone dev for Android over iOs? Any opinion ? Jul 04 19:43:18 bullicon: Because it's a more open platform? Jul 04 19:43:29 E.g. I pay $0 to do it. Jul 04 19:43:33 i think you need both Jul 04 19:43:34 because i prefer it? Jul 04 19:43:38 because i get paid a lot to do it? Jul 04 19:43:59 canadiancow|work more pay than iOs dev? Jul 04 19:44:04 Because there's a lot more room for app improvement than on iOS? Jul 04 19:44:04 rking: make sense Jul 04 19:44:09 err Jul 04 19:44:14 TheTrash how so ? Jul 04 19:44:15 I.e. less mature market Jul 04 19:44:24 if i drop the "modesty", im pretty damn good at what i do Jul 04 19:44:29 so yes, i probably get paid more than the average ios dev Jul 04 19:44:38 bullicon: because they don't have the cash for a mac Jul 04 19:44:51 canadiancow|work: But I think the question is asking: why don't you become good at iOS dev instead? Jul 04 19:45:09 rking: true canadiancow|work then you might get more pay Jul 04 19:45:16 rking because he is doing fine and not interested in changing? it's not all about the money imho! Jul 04 19:45:25 [15:43:34] because i prefer [android]? Jul 04 19:45:26 I can think of a few niches that have pretty bad "market leaders" on Android. Jul 04 19:45:31 because everyone and their mother devs for ios Jul 04 19:45:42 its a lot easier to be "the best" at android becuase there are fewer people doing it Jul 04 19:45:50 TheTrash: Do tell. Jul 04 19:45:51 :p Jul 04 19:45:53 lol Jul 04 19:46:14 canadiancow|work: really? few people? Jul 04 19:46:18 bullicon: other than that I have recently concluded that android is a bit messy and wierd for instance getting the file path from an image clicked on. but then why be afraid of some chars lol... Jul 04 19:46:28 rking: oh there's lots of examples... can't give 'em all away, though, but browsing Play store for 10 minutes should get you a few ideas. Jul 04 19:46:50 make it big on IOS with an app then pay some guy to make it for other markets. Jul 04 19:46:51 But there's no real useful calendar, for instance, and most stock ones are not very good either. Jul 04 19:47:39 Droido: hm is there any platform where clicking an in-memory instance of an image gets you a file path? Jul 04 19:47:44 how do you cope with fragmented device screen dimension and multiple api versions ? Jul 04 19:47:52 Sounds like a weird thing to expect from anything besides a browser. Jul 04 19:48:00 TheTrash: I've never messed with iPhones, so I don't know what excels there relative to here. Jul 04 19:48:18 TheTrash: The iPhone people I know are pretty weak, appwise. Jul 04 19:48:25 TheTrash: the in-memory instance that came from a function that has the path? Jul 04 19:48:58 TheTrash: I'd not be complaining about it if someone would take a look at the pastebin so I can continue coding droid. don't have mac or iphone. Jul 04 19:49:22 openend 67 other windows or so its fun and trying hoping for help from this window too! Jul 04 19:49:40 bullicon: a bit of common sense when constructing your UI (i.e. think about what parts can safely scale and what parts need to be fixed size) as well as looking at API levels a bit when you do exotic stuff will get you a long way. Jul 04 19:49:42 http://pastebin.com/HK47zT7P learnin as fast as I can but the sun moves so fast! Jul 04 19:50:17 TheTrash: cool Jul 04 19:51:15 when rotating does it use two different layouts or just adjust the sizes? to use more than one layout is that fragments? Jul 04 19:51:58 bullicon: Android has its quirks when it comes to that, but I find it quite manageable, and most of the people complaining don't spend the few hours reading about what the platform has to offer in terms of supporting a multitude of form factors... they just start hacking at 480x800 with fixed dimensions and are surprised it doesn't scale. Jul 04 19:52:33 Droido: fragments are generally only needed if you want to display completely different / separate elements in say, a tablet layout. Jul 04 19:52:48 If you want to display the same elements, but in a different layout, Android has a directory structure you can use. Jul 04 19:53:00 iOS GUI has only Absolute Layout, for dummies. Jul 04 19:53:02 Based on density, api level, portrait/landscape and small/medium/large. Jul 04 19:53:49 phew! Eclipse solved it Jul 04 19:53:50 Take the drawable dir, you can use drawable-land, drawable-*dpi, drawable-nl, drawable-v4 (and combinations of those). Jul 04 19:53:51 TheTrash: thanks. so you could have tools and a canvas to draw on in one area and switch between them for instance? Jul 04 19:54:04 Droido: you bastard won Jul 04 19:54:30 TheTrash: I see what you mena Jul 04 19:54:45 bullicon: lol? I feel like a winner. Jul 04 19:55:07 Droido: well, that's what fragments are ideal for... show the tools on one screen and the canvas on another for small screens, e.g. with a toggle button... but on a tablet, automatically display them alongside. Jul 04 19:55:50 TheTrash: saw a job offer and it said must be good with fragments. well of course if the app has some interfaces. its on my agenda. thanks. Jul 04 19:57:48 Sorry to go for a bit guys. I'll get a Monster drink and be back so we can talk code and bbq. Jul 04 19:58:17 In which method of the activity should I put the code that when the activity is closed it persists some data and after my application is closed when I reopen it and I open that activity my data should be loaded back? Jul 04 19:58:30 onFinish() and onCreate() ? Jul 04 19:59:07 id be more tempted to do onresume and onpause Jul 04 19:59:11 BadDesign: depends a bit... generally onPause() for persistence. Jul 04 19:59:13 onFinish() does not exist Jul 04 19:59:27 onCreate and onResume depends on the behaviour you're looking for. Jul 04 19:59:35 yea...we really need more details Jul 04 19:59:44 but definitely onPause() for saving Jul 04 19:59:57 Yes Jul 04 20:00:00 BadDesign: do you mean totally closed? if phone off etc... I believe there is way to store. Jul 04 20:00:51 I want to build a reference guide (like recipes) app. Where do I start? I have a pre-populated database. What format should I be looking at? It is static data that not will be changed nor will anything be added. I need to be able to use it without internet connection. Jul 04 20:00:56 _where_ you store it is a different thing, of course, but generally.. sharedpreferences for simple structures, sqlite for complicated structures that need to be queryable. Jul 04 20:01:45 sounds good. Jul 04 20:02:14 sliddjur: http://androidblogger.blogspot.nl/2009/05/how-to-ship-application-with-pre-baked.html something like that Jul 04 20:02:22 shared for this one? http://www.mail-archive.com/android-developers@googlegroups.com/msg81056.html when activity a goes to b then b goes back to a? Jul 04 20:02:31 It's quite iffy, though... Android can't just use a database from a file, unfortunately. Jul 04 20:02:55 ..but it works. Jul 04 20:03:47 Droido: yes, as the comments say :) Jul 04 20:04:04 TheTrash: oop Jul 04 20:04:43 TheTrash: IMdefense noscript was on Jul 04 20:06:10 Droido: I've been trying to figure out what your code does, can't you simply work with URIs? Jul 04 20:06:53 is it just me, or is creating a UI pretty time-consuming ? Jul 04 20:07:04 HorizonXP: heh, it's not just you. Jul 04 20:07:18 for example, I'm trying to align a textview within a LinearLayout to center Jul 04 20:07:42 seems that isn't allowed but.. how else might i do it? Jul 04 20:08:13 Oh, the building blocks are relatively usable... let's look at your specific issue. Jul 04 20:08:48 sure. want a screenshot? or pastebin? Jul 04 20:08:54 LinearLayout's gravity="center" should do it, given some other constraints. Jul 04 20:08:59 Pastebin Jul 04 20:09:44 oh wow, so that's what Gravity is for Jul 04 20:09:56 that's actually very useful thanks! Jul 04 20:17:19 TheTrash: I'm happy too just got my panties in a bunch when I saw some uri code. Jul 04 20:17:49 gawd. i need to figure out a "click" with onTouch... and can't use MotionEvent.ACTION_CANCEL (or however it is exactly called) because I would then interfere with the mapview's zoom... Jul 04 20:17:56 any tips? Jul 04 20:18:08 the previous thing I tried was all uri and didn't work that was the second attempt. will go at the uri method again. Jul 04 20:18:56 Aeefire: is the regular ontouch for a tap code already installed? Jul 04 20:19:32 onTap is in there.. but this is only called if the user touches an OverlayItem, right? That's not what i want :/ Jul 04 20:19:54 i mean onTap is in the itemizedoverlay... or do you mean something different? Jul 04 20:20:26 should a layout be able to compile if it ereferences a view that doesnt exist? Jul 04 20:20:33 not sure I'm noob: http://developer.android.com/reference/android/view/View.OnTouchListener.html so that function is in there?public abstract boolean onTouch (View v, MotionEvent event) Jul 04 20:20:51 if that is the right one even. not sure. don't know about overlayitems. Jul 04 20:21:22 there is no onTap for a "view" as far as i have seen Jul 04 20:21:40 canadiancow|work: should... no. Would... maybe :D Jul 04 20:21:53 i mean is this a bug in aapt or wahtever? Jul 04 20:22:00 like its definitely compiling Jul 04 20:22:51 i hate hwo people fucking delete SomeFragment.java Jul 04 20:22:54 but not some_fragment.xml Jul 04 20:22:55 ~_~ Jul 04 20:23:04 maybe you can overlay something then tie the tap to that and it ignores other things so the map still gets drags. is that what your going for? Jul 04 20:23:19 Droido yes, but it records "motions" which means if you zoom, i would register a " ACTION_CANCEL" and "ACTION_DOWN" ... even if you didn't only "tap" Jul 04 20:23:44 no but i got something different Jul 04 20:23:54 maybe the part that reacts to the tap can check to see if it is also being zoomed? Jul 04 20:23:55 i just record the timedifference between action_down and action_cancel Jul 04 20:24:07 if it's under some value, it's a tap... good one? :P Jul 04 20:24:25 one of the masters must not be in here there must be a elegant way. Jul 04 20:24:25 hm hm hm Jul 04 20:24:36 :D Jul 04 20:24:54 http://stackoverflow.com/a/4177697 does that not work for you Jul 04 20:24:56 ? Jul 04 20:25:11 Oh zoom is the issue? Jul 04 20:25:39 pretty much yes, but i still want my user to have zoom Jul 04 20:26:15 http://mobiforge.com/developing/story/using-google-maps-android > "Getting the Location that was touched"? Jul 04 20:26:30 https://github.com/commonsguy/cw-advandroid/tree/master/Maps/NooYawkTouch/ Jul 04 20:26:43 i saw this Jul 04 20:26:44 but again Jul 04 20:26:50 it also gets triggered when zoomed Jul 04 20:26:51 :) Jul 04 20:27:02 gonna try my idea ... will respond soon^^ Jul 04 20:27:04 Even in that last example? Jul 04 20:27:14 mom Jul 04 20:27:42 http://stackoverflow.com/questions/4806061/how-do-i-respond-to-a-tap-on-an-android-mapview-but-ignore-pinch-zoom Jul 04 20:29:02 anyone know how I might flip an imageview horizontally? Jul 04 20:29:26 I have an image I'm using as a horizontal line, and I'd like to flip it, instead of creating a new one Jul 04 20:30:13 Hmm probably not as easily as just creating a new one :/ Jul 04 20:30:43 :( Jul 04 20:30:53 in Qt/QML it's just mirror: true Jul 04 20:30:59 would've been nice to have the same here. Jul 04 20:31:02 http://stackoverflow.com/questions/8981845/androidrotate-image-in-imageview-by-an-angle Jul 04 20:31:09 No such thing, unfortunately. Jul 04 20:32:37 TheTrash i like the pinch approach Jul 04 20:32:49 going to use that, better than the timing thingy i guess Jul 04 20:32:55 if it works, i'll tell you ;) Jul 04 20:32:58 Yeah, that sounds rather iffy. Jul 04 20:41:38 TheTrash lol i got now what basically confused me Jul 04 20:41:39 onTap(GeoPoint p, MapView mapView) Handle a tap event. protected boolean onTap(int index) Override this method to handle a "tap" on an item. Jul 04 20:42:02 onTap with geopint + mapview handles onTop anywhere on the map, the other one (how i thought) only on an overlayitem Jul 04 20:42:02 :P Jul 04 20:42:18 I suck at Android programming xD Jul 04 20:42:42 I just make a lot of workarounds to make it as similar as possible to what I'm used to Jul 04 20:44:17 Or you could, like, try to learn :P Jul 04 20:55:40 :| Jul 04 20:55:46 I just like making games Jul 04 20:56:00 I prefer to release games over good code :D Jul 04 20:56:37 curious to pick your guys' brain re device testing Jul 04 20:56:54 Kake what kind of game do you make Jul 04 20:57:07 how / do you test with active SIM cards on GSM devices or active accounts on CDMA devices? Jul 04 20:57:28 and what plans do you use for this? anything out there to manage costs a bit better than just buying a ton of voice minutes I don't want on regular old consumer accounts? Jul 04 20:57:28 we do, but it's less important for us Jul 04 20:57:39 Is there any way of adding an onTouchListener inside a fragment? Jul 04 20:57:45 we just have a bunch of sims lying around Jul 04 20:57:57 but there arent even any more national cdma netowrks in canada, so thats harder for us Jul 04 20:57:59 how do you service them? regular consumer accounts at around $60/mo? Jul 04 20:58:05 no idea :P Jul 04 20:58:11 that's what i'm really interested in Jul 04 20:58:12 but quite possibly Jul 04 20:58:20 it seems like such a rip-off. Jul 04 20:58:30 Is it possible to put Google Maps in a fragment? Jul 04 20:58:49 i figured out a loophole to scam T-Mobile into giving us a $30/mo prepaid data SIM card, but it was only 1 and i doubt i could pull that trick again Jul 04 20:58:51 luyang, android.support.v4.app.Fragment (or wahtever that one is) ? Jul 04 20:58:58 hah Jul 04 20:59:03 or android.app.Fragment Jul 04 20:59:29 canadiancow|work: so you embed a mapview in it? Jul 04 20:59:40 im asking which kind of fragment Jul 04 20:59:46 because the latter should be easily possible Jul 04 20:59:53 the former requires some slight hackery of the support library Jul 04 21:00:11 basically s/FragmentActivity extends Activity/FragmentActivity extends MapActivity/ Jul 04 21:00:32 oh ok Jul 04 21:00:50 thanks Jul 04 21:01:48 Is there any way of adding an onTouchListener inside/to a fragment? Jul 04 21:02:09 I'm going crazy trying to make my activity to a fragment Jul 04 21:02:12 You don't touch fragments. You touch views Jul 04 21:02:19 So set the touch listener on a view Jul 04 21:02:48 I find the view of the linearlayout that the fragment inflates, and try to set the listener to that Jul 04 21:03:07 but it doesn't work Jul 04 21:04:05 I get NullPointerException Jul 04 21:04:48 Set it after you inflated your layout Jul 04 21:09:19 SimonVT, you are a genius! Jul 04 21:09:38 Ive been so hung up on this that I totally forgot that the view had to be inflated first Jul 04 21:09:57 is there any hope that Android could be built with gcc (GCC) 4.7.0 20120507 (Red Hat 4.7.0-5) ? http://www.fpaste.org/IsTy/ Jul 04 21:11:14 haha it works :D Jul 04 21:11:21 might be able to release today after all Jul 04 21:12:52 woooo works :) Jul 04 21:13:01 TheTrash works :) Jul 04 21:16:01 so ive got this listView which has listentrys that contain a progressbar each. after setting up the adapter and all that and adding it to the listView i want to update the progressbars. I've tried listView.getChildAt(0) for the first entry, and then on the returned View i used findViewByID with the progessBar's ID. next I set the progress of the progressbar to some value, but the bars stay at their initial value anyway (0). what am i doi Jul 04 21:19:46 anyone here testing their apps on android 4.1? Jul 04 21:20:05 not yet, but what have you found? Jul 04 21:20:44 Hello, I use findViewById in my Activity OnCreate and give it parameter to another views method, but in the another view method it is null Jul 04 21:21:09 I check it in the OnCreate that it is not null before calling the method of my another view Jul 04 21:21:16 here code from OnCreate http://paste.ubuntu.com/1075479/ Jul 04 21:21:29 Aeefire: ooh nice Jul 04 21:22:30 jasta, I *think* this used to work on 4.0 and under, but when I'm viewing an activity and a service of mine tries to access the database it fails to find the thing IU'm looking for. However, the query works fine when I do it from the activity that launches the service. Upon investigating, I tried to browse my database with root explorer but root explorer ALSO get's an error doing a lookup of the tables in the database. Not rea Jul 04 21:22:30 lly sure if it's android 4.1 or my code, causing the error.. Jul 04 21:23:12 How it can be null in my another View's method when it is not in Activity's onCreate Jul 04 21:23:56 ArGGu^^: please post the entire thing, I'm guessing it's a scope issue but it's impossible to tell if you paste it like this. Jul 04 21:24:02 ninjai: hmm, i can't really resolve what your set up looks like from that. Jul 04 21:24:36 ArGGu^^: why on earth do you even test it for null here? is it actually expected that it would be null? Jul 04 21:24:52 in my XML, what style property do I need to modify to change the halo colour from blue to a custom one? Jul 04 21:25:11 uri to get filepath of photopicker intent - http://groups.google.com/group/android-developers/browse_thread/thread/07f021ae279a1fd8 any tips? Jul 04 21:25:20 no but I tested because it thows nullpointer in my another view's method Jul 04 21:25:26 *throws Jul 04 21:25:51 ArGGu^^: you just showed us your onCreate, and it tests it for being non-null, does it not? Jul 04 21:26:39 If it throws a nullpointer in the method, why are you showing us oncreate Jul 04 21:27:15 is there any way I can test using fake location updates without having to go for a walk to test my app that tracks your distance..? Jul 04 21:27:18 HorizonXP: http://stackoverflow.com/questions/2251714/set-title-background-color Jul 04 21:27:26 ninjai: yes, many ways. Jul 04 21:27:27 so ive got this listView which has listentrys that contain a progressbar each. after setting up the adapter and all that and adding it to the listView i want to update the progressbars. I've tried listView.getChildAt(0) for the first entry, and then on the returned View i used findViewByID with the progessBar's ID. next I set the progress of the progressbar to some value, but the bars stay at their initial value anyway (0). what am i doi Jul 04 21:27:29 ddms can do it. Jul 04 21:27:31 for one :) Jul 04 21:27:48 TheTrash jasta SimonVT There se method of my view http://paste.ubuntu.com/1075491/ Jul 04 21:27:59 ninjai: you can also use test providers, though this is more awkward than just using like gpx tracks Jul 04 21:28:08 Droido: errr... i'm not looking to change the title color Jul 04 21:28:10 ArGGu^^: why didn't you answer my last question to you? Jul 04 21:28:23 damm xD there typo xD Jul 04 21:28:24 i'm looking to change the colour on radiobuttons, seekres, etc. from blue to a custom colour Jul 04 21:28:24 title background right? Jul 04 21:28:27 thanks jasta I'll give it a shot. Jul 04 21:28:34 I should go to sleep already Jul 04 21:28:52 fts: getChildAt doesn't necessarily get you the view for the first item Jul 04 21:28:53 I have been hitin my head like hour already Jul 04 21:28:58 The first item might not even be on screen Jul 04 21:29:04 Hence, it's not a child of the listview Jul 04 21:29:12 So update your data, and call notifydatasetchanged Jul 04 21:29:19 HorizonXP: http://stackoverflow.com/questions/1521640/standard-android-button-with-a-different-color ? Jul 04 21:29:39 SimonVT: so then what does? Jul 04 21:30:58 sorry for bothering, I really should try code at night Jul 04 21:31:05 *should not Jul 04 21:31:10 HorizonXP: http://dibbus.com/2011/02/gradient-buttons-for-android/ Jul 04 21:31:31 ArGGu^^: that's not your problem. you're coding without thinking. Jul 04 21:31:42 you could do that at any time of day Jul 04 21:34:57 jasta well yeah, but I can't think when I'am tired Jul 04 21:35:26 also when you don't want to Jul 04 21:36:28 well that not the case in this :P, when ever I'am doing my own projects, motivation is not the problem Jul 04 21:37:20 but yeah when need to something that does not interest at all it is really hard to stay focused Jul 04 21:37:57 Just develop a pattern autopilot. Jul 04 21:38:08 Does the job for me. Jul 04 21:38:27 ArGGu^^: i said when you don't want to think. that's got nothing to do with motivation, you might just be a reckless intellectual. Jul 04 21:38:45 trying to debug http://www.mail-archive.com/android-developers@googlegroups.com/msg31321.html get path from uri not getting log output thanks! Jul 04 21:41:18 jasta, when I try to send location updates to my emulator it freezes the emulator... Jul 04 21:41:23 cursor.moveToFirst(); ? Jul 04 21:43:08 hello everyone just hoping someone can help me out. I have a class file that contains an arraylist with some methods to add/remove items from said list. I have implemented a button that basically acts as an undo function i.e remove last item. However the button has to be caught in the Activity (MapActivity) file but I do not know how to call the remove method from my other class is this possible? Jul 04 21:43:34 make the method static ? Jul 04 21:43:46 i mean public Jul 04 21:43:56 it is public Jul 04 21:44:04 so what happens when you call it? Jul 04 21:44:11 public void addItem(GeoPoint item) { myGPs.add(item); } Jul 04 21:44:37 eclipse just tells me to create the method addItem Jul 04 21:45:01 yeah well do you have a reference to an object of said class? Jul 04 21:45:24 no... how would I go about that Jul 04 21:46:25 I've got a TextView, and am positioning it using textView.layout(0, top, width, bottom). When I call textView.setGravity(Gravity.RIGHT), with the intention of right aligning the text, this has no effect. Can anyone suggest what is wrong? Jul 04 21:49:36 ejcweb: uhh, you're contradicting yourself pretty drammatically by these two calls Jul 04 21:50:14 calling a views layout method should only be done if you are yourself a ViewGroup and are in the onLayout method. Jul 04 21:51:01 and if you are the ViewGroup, you are the one that's supposed to implement the views _layout_ gravity. the gravity method you're referring to is actually something different though, and just tells textview to right align inside its own frame Jul 04 21:51:33 so, the question now is, are you the ViewGroup parent of this text view? :) Jul 04 21:51:47 jasta: Yeah, this is code I didn't write. I guess this is inside the onLayout method somehow. The code is pretty much this: http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/2.1_r2/com/android/internal/widget/SlidingTab.java#361 Jul 04 21:51:57 I'm trying to create a sliding tab. Jul 04 21:52:11 so you're just copy and pasting around code you don't understand then? Jul 04 21:52:40 However, the text gravity seems to do absolutely nothing, and I can't work out why. Jul 04 21:52:50 i told you what it does. Jul 04 21:53:06 if the textviews frame is the width of the text, then aligning it center or right would do nothing. Jul 04 21:53:17 Is the textview larger than the text? Jul 04 21:53:22 ^ Jul 04 21:53:24 SimonVT: Yes. Jul 04 21:53:39 ejcweb: i bet you're not correct :) Jul 04 21:53:51 better go confirm with hierarchyviewer or something Jul 04 21:54:09 jasta: I have no doubt I'm not correct somewhere down the line. Perhaps more investigation is in order. Jul 04 21:54:17 setGravity definitely works just fine Jul 04 21:54:32 So yeah, I'm also guessing the text and the view is the same size Jul 04 21:55:14 SimonVT: Which seems odd to me since the text obviously is right aligned when such sliders are used in Android normally. I must be missing something. Jul 04 21:55:34 http://pastebin.com/dZZGdPym what am I doing wrong to get the file path from the uri? Jul 04 21:55:48 jasta: Can heirarchyviewer work on dynamically created views? (rather than just xml). I've never used it. Jul 04 21:56:53 hierarchyviewer builds a hirarchy of the current layout Jul 04 21:57:00 How the views are instantiated doesn't matter Jul 04 21:57:08 ejcweb: of course. Jul 04 21:57:35 Hello, I want that my main activity check if this is the first run after a installation or update. This is my solution: http://pastebin.com/vSDGvCia Is there perhaps an easier way? Jul 04 21:58:36 That's how it's done Jul 04 22:01:05 jasta: hierarchyviewer doesn't seem to work for my device - 'Unable to get view server version from device HT019P806367'. Do I need to do something to enable it? Jul 04 22:01:56 is there a way of styling a list view so the first item is always green, and the last item always red? Jul 04 22:02:08 at least the text of a listview Jul 04 22:02:21 ejcweb: you very likely do, yes. Jul 04 22:02:23 JaredCE: Of course, just make a conditional on your adapter Jul 04 22:02:39 ejcweb: romain guy has a post on this, specifically enabling it in i think gingerbread Jul 04 22:02:45 if( position == 0 ), then textview color is green Jul 04 22:02:47 It doesn't work on production devices Jul 04 22:02:50 use the emulator Jul 04 22:03:05 Or, add romainguy's viewserver to your app Jul 04 22:03:21 SimonVT: it does, actually. romain addressed this. Jul 04 22:03:32 it does? Jul 04 22:03:46 Huh, got a link? Jul 04 22:03:57 waltercool, ahh so not xml? Jul 04 22:04:38 https://plus.google.com/111962077049890418486/posts/R3wZZ3C3a9d Jul 04 22:04:48 Hm is 1:23s a confusing time format (for elapsed time)? I'm confused now that I'm actually thinking about it. Jul 04 22:05:05 Or 1m23s but that looks weird Jul 04 22:05:19 Yeah, viewserver :p Jul 04 22:05:22 Or should I simply leave out units? Jul 04 22:05:27 JaredCE: if you are making a "hot" change, coding it's your solution, xml it's just for static things, like for all your list elements Jul 04 22:05:35 On eng devices it works everywhere Jul 04 22:05:41 With viewserver, it works in your app Jul 04 22:06:43 JaredCE: What I say is, if all your list elements are green, except your first element, make green on xml and change on your adapter the first to red Jul 04 22:07:25 How to get the file path from a clicked image in the gallery: http://pastebin.com/wh05eST2 Thanks for the go uri suggestion. Jul 04 22:07:34 random thought, is it any wonder that the most adament opponents of the command-line are the ones who refuse to learn anything about the shell. Jul 04 22:08:34 one of my co-workers struggles so desperately to access git's advanced features via OS X GUI tools and when you force him into the command-line he does things like type fully the name of files instead of just using tab completion and stuff like that. Jul 04 22:08:43 it's no wonder the command-line is undesirable :) Jul 04 22:08:54 also, he types as slow as my mom Jul 04 22:19:54 why wont ddms work with my cell phone attached? Jul 04 22:20:04 I can't send commands to it through ddms Jul 04 22:20:47 does adb work ? Jul 04 22:20:50 yes Jul 04 22:20:55 everything else works Jul 04 22:21:01 i normally test my apps on my cell phone Jul 04 22:21:20 but trying to debug location glitch and its harder to walk around the block and test than to use ddms... if it works... lol Jul 04 22:22:12 the buttons are all greyed out Jul 04 22:22:43 or am i doing ti wrong? can you not send false location updates to cell hpones with ddms? Jul 04 22:24:22 don't know, but there's a fake GPS app you can use Jul 04 22:26:09 ninjai: I'm fairly certain we don't support sending fake GPS locations to your phone Jul 04 22:26:15 if you want to use that feature, use the emulator Jul 04 22:26:51 damn that would be veryu handy right about now Jul 04 22:27:42 jasta: I've got hierarchyviewer working now, and so can look at the SlidingTab view. If I inspect the TextView in question, it is definitely wider than the text itself. I can't see anything immediately to do with gravity though? Jul 04 22:28:07 ejcweb: is it being laid out consistent with its measured width? Jul 04 22:28:58 jasta: Hmm, no. getWidth() is 480, but measured width is 215. Jul 04 22:29:22 ninjai: you can create a mock location provider and test with that Jul 04 22:30:06 see: http://developer.android.com/reference/android/Manifest.permission.html#ACCESS_MOCK_LOCATION and http://developer.android.com/reference/android/location/LocationManager.html#addTestProvider(java.lang.String, boolean, boolean, boolean, boolean, boolean, boolean, boolean, int, int) Jul 04 22:30:24 ninjai: did you look into gpx routes first as i suggested? Jul 04 22:40:16 Is there a way to start/stop native application from Android app? Jul 04 22:40:24 jasta: What does it mean to have a different measured width? Presumably this suggests that the text itself is only 215 wide, and so setting right gravity for that alone doesn't really do anything? Jul 04 22:40:29 under native I mean c++ compiled for ARM Jul 04 22:41:18 an SMS within the 160 char limit, does that data all fit on one PDU? Jul 04 22:53:39 was told not to go thorugh /mnt/sdcard and use api. is okay if api is returning that path? Jul 04 22:54:14 it wont Jul 04 22:55:05 use yourContext.getExternalFilesDir(null) Jul 04 22:55:22 Is there a way to store an array of strings with additional parameters in an xml resource? Jul 04 22:55:47 serialize? Jul 04 22:56:11 For example a list of RSS feeds, requiring name + url + locale Jul 04 22:58:09 it should not work to load save files through /mnt/sdcard path? is uri the context:// path? Jul 04 23:00:44 Jug6ernaut: right thanks. I was getting that path through cursor.getString. Is it proper to use that path or should another path format be used? Jul 04 23:01:50 what are you wanting Jul 04 23:04:24 hey Jul 04 23:04:42 why is eclipse not launching the emulator Jul 04 23:04:44 this is annoying heh Jul 04 23:05:03 techno: any error messages in console? Jul 04 23:07:11 eclipse has a lot of bugs relating to it's communications with adb - i get so sick of it i just run the adb commands manually ( install -r stuff ) Jul 04 23:08:18 makes me want to just say f it and use netbeans Jul 04 23:08:30 I don't want to require my users to register so is it possible to get a device ID or something? Jul 04 23:08:32 I am loading an image picked from the gallery and after modifying it saving it back to the same folder it was picked from. using onActivityResult to get the file name and path. Jul 04 23:08:58 netbeans isn't as good as eclipse with android stuff IMO ... if you close down eclipse and open it back up again it'll talk to adb and the emulator fine Jul 04 23:09:00 Technodrome: yell for a bit then keep at it. Jul 04 23:09:13 ok Jul 04 23:09:35 i just prefer netbeans all around bankai_ there looks to be a few android plugins for it, i wonder how good / bad it is Jul 04 23:09:38 Technodrome: its just a dumb setting somewhere we'll find it. Jul 04 23:09:56 eclipse has so many updates to Jul 04 23:10:10 every 3 months im getting a new version it seems Jul 04 23:10:33 Technodrome: the classic one is working fine I said the same thing and found a site on that subject. Jul 04 23:10:40 Technodrome: i'd rather netbeans too, but eclipse does what i need it to and i found the android plugins for NB to be a bit clunky Jul 04 23:10:48 How is everyone? Jul 04 23:10:56 bankai_: then maybe you saved me time! Jul 04 23:11:03 let me know in 2 years bankai_ :) Jul 04 23:11:08 futhong: I'm feeling like its time for a footlong. Jul 04 23:11:11 Technodrome: personal opinion, mate .... do whatever works for ya Jul 04 23:11:17 netbeans looks better and just feels better on the mac Jul 04 23:11:33 well all the xml layout editing is not there right bankai_ ? Jul 04 23:11:46 Droido: lol...hurry and get to the nearest Subway! Jul 04 23:11:49 can't remember, sorry Jul 04 23:11:56 futhong: lol Jul 04 23:13:13 Soz this program came up to me and said 'imagepath = cursor.getString(column_index);' and I got a path /mnt... to my gallery image and now it is threatening me to separate the path from the file name. Does that require a function to go back to the last slash or is there a way to just get the path? Jul 04 23:13:34 what are the advantages of using Netbeans over Eclipse?...Always been using Eclipse and it suits me quite well. Jul 04 23:13:48 Kake_Fisk: You can use AccountManager and associate it with one of their accounts Jul 04 23:14:34 looks like i forgot one step in the install Jul 04 23:14:35 blah Jul 04 23:14:35 Droido:what are you trying to achieve? Jul 04 23:14:36 futhong: I did Java with a double buffer and graphics. they had some goofy adt classes that were good for calculators then these swing sets then Yuban beans. I think Eclipse is the editor and netbeans are classes. But then they have a netbeans IDE? Jul 04 23:14:37 futhong: depends what you're using it for.... i find NB a lot better for anything that uses to JBoss/Tomcat. NB also seems a bit faster and less buggy Jul 04 23:15:39 Droido: I agree...Eclipse is IMO more Android-oriented Jul 04 23:15:44 futhong: get the path for the image the user chose. I have the entire path with file name but need just the path so I can save the edited image back to the same folder. Jul 04 23:16:07 bankai_:Eclipse sure has quite some bugs Jul 04 23:16:15 futhong: 'features' Jul 04 23:16:34 what does windows call them, 'unexpected features' ? Jul 04 23:16:40 getpath("mnt/sdcard/haveacow.jpg") would give mnt/sdcard/ Jul 04 23:17:29 its better to use a live device for dev rigth? Jul 04 23:17:34 or when getting the image path using something different than cursor.getstring. Apparently the onactivityresult was designed in the one flew over the cookos nest programming room. Jul 04 23:17:54 Technodrome: I am but wonder if it lacks some debugging. Jul 04 23:18:46 Droido: I use MediaStore class when it comes to image path...suits me well Jul 04 23:20:43 futhong: tried a few examples with mediastore and didn't know where the racks for the cd's were. http://pastebin.com/38i2rrLL is working and guess extracting the path may be proper in this circumstance since the cursor may not have the path alone. Jul 04 23:23:26 is a uri path one that starts with content:// ? Jul 04 23:23:48 we don't use a uri path to access files do we or is that the safer way? Jul 04 23:23:52 Droido: I usually (by choice) do not like to work with the explicit path, change to content:// path first Jul 04 23:24:36 File file = new File("content://media/external/images/media/output.jpg"); trying this and confused it seems like a different folder structure Jul 04 23:24:47 mdwright: Thanks for the suggestion. But AccountManager looks like a lot of work Jul 04 23:25:36 pboos u there? Jul 04 23:26:07 futhong: would mediastore class be added to http://pastebin.com/38i2rrLL or is it used from scratch to do it totally differently? Jul 04 23:26:34 Kake_Fisk: using the device ID is a security risk and a really terrible user experience all around. if you don't want to deal with accounts then AccountManager is the best option. it really isn't that much work to use. Jul 04 23:27:05 Oh. I see Jul 04 23:27:47 Droido: where do you have issues? The Uri path? Jul 04 23:27:48 bye 2600 Jul 04 23:28:23 the paradigm I guess. Jul 04 23:29:10 i am recieving a generic chunk of data with functions available to extract it. figuring out what the even handler has to deal with. Jul 04 23:29:46 Droido: I know what the problem is Jul 04 23:29:48 I could cheat and strip off the file name but would be using /mnt... and that means bad news with other devices or who knows. Jul 04 23:30:04 futhong: besides being noob? Jul 04 23:31:09 Droido: when you do: cursor.getString(N)...is the imagepath in the form content://? Jul 04 23:31:38 no... ooh wait lets log that. Jul 04 23:32:18 yes it was logged already. /mnt/sdcard/DCIM/... Jul 04 23:32:22 Droido: I assume you aren't actually opening the file like that and using getExternalStoragePublicDirectory(String type), right? Jul 04 23:33:02 using theimage = BitmapFactory.decodeFile(imagepath); Jul 04 23:33:12 Droido: no, I check the path afterwards Jul 04 23:34:38 futhong: check after what? Jul 04 23:35:47 Droido: we have quite different ways to deal with media files...so what exactly is going wrong again? Jul 04 23:37:22 I have no way lol. it works with /mnt and if I strip off the file name from the given path. it should work with 'context://' apparently and there is a getpath function somewhere that could avoid the stripping. essentially loading a jpg from where the user chooses with the picker and saving it under a different name to the same folder. Jul 04 23:38:13 If I put a activity in onPause when not in used do it save memory? and when I call onPause do I have to restate the commands like onClickListener from OnCreate? Jul 04 23:38:41 Have not found a clean example to pick an image from gallery and store a copy of it in the same folder. Jul 04 23:39:01 with what I have working it uses /mnt and that is supposed to cause problems. Jul 04 23:39:28 The complexity of the references to accomplish this is amazing. Jul 04 23:39:32 Droido: wait, so you have the File object of the image? Jul 04 23:39:42 If I put a activity in onPause when not in used do it save memory? and when I call onPause do I have to restate the commands like onClickListener from OnCreate?\ Jul 04 23:39:55 Last time im restating Jul 04 23:40:07 I do have one working example right in from of me...can't really share but I can give you as much hints as you want Jul 04 23:40:10 Blade: thats a little demanding. Jul 04 23:40:58 Droido: LOL I meant this is the last time I'm gonna say the exact same thing again i dont want to spam Jul 04 23:40:59 Droido: LOL I meant this is the last time I'm gonna say the exact same thing again i dont want to spam Jul 04 23:41:00 Droido: LOL I meant this is the last time I'm gonna say the exact same thing again i dont want to spam Jul 04 23:41:02 Last time im restating Jul 04 23:41:09 Blade: When we have an answer to your question you will be the first to know. guess you will be kicked. Jul 04 23:41:26 Blade: no please don't fall on your blade... noo! Jul 04 23:41:37 Up button is right next to enter button Jul 04 23:42:16 Blade: go read up on the activity life cycle it is not a yes no answer depending on persistence- maybe. Jul 04 23:43:03 Blade: what was your question again? Jul 04 23:43:04 Droido: onPause just tells you when your application is being sent to the background. it doesn't necessarily save any memory, that's up to you. Jul 04 23:43:27 The docs on the lifecycle are pretty good, I recommend reading them: http://developer.android.com/reference/android/app/Activity.html#onPause() Jul 04 23:43:50 The use of the ContentResolver class should solve your path issues Jul 04 23:44:07 When rotating an app I made it loses all variable values. Blade read the life cycle but didn't tell me- so I tried reading it too. It is saving memory when I rotate my app? Jul 04 23:44:33 can u help me with this question plz? - http://stackoverflow.com/questions/11303314/expandablelistview-is-showing-indicator-for-groups-with-no-child Jul 04 23:44:44 by rotating I mean the whole phone. it changes view and the sliders are reset. Jul 04 23:45:01 A rotation pretty much recreates the activity Jul 04 23:45:17 cyberrog: congrats on being able to code that. no idea. Jul 04 23:45:28 Droido code what? Jul 04 23:45:33 futhong: thanks. wow rotating has more power than pause. Jul 04 23:45:49 that stackoverflow link you posted. Jul 04 23:46:20 Droido, what you mean you dont understand about ExpandableListView or Android/java itself?[ Jul 04 23:46:45 Droido: keep in mind that you can specify in your manifest whether or not you want a particular activity to recreated on rotation Jul 04 23:46:46 their syntax and framework for what are very simple ideas and connections and callbacks. Jul 04 23:47:20 futhong: thanks. Is that settable by gui in the layout or a theme setting put in the text? Jul 04 23:47:50 hi there Jul 04 23:48:01 hi xevious Jul 04 23:48:10 Droido: yep Jul 04 23:48:25 futhong: cool. Jul 04 23:49:11 brb Jul 04 23:49:26 The recommended ways for handling a rotation event are here: http://developer.android.com/guide/topics/resources/runtime-changes.html Jul 04 23:49:30 does anyone know why Android does not free up the resources used by an application when it exits (i.e it is destroyed) ? For example, I have a singleton class with a soundpool in it, and when I restart the application, the class is still there... is not the gargabe collector supposed to free it ? Jul 04 23:50:06 I just wish pboos could login and explain me better the answer he posted Jul 04 23:50:07 futhong: what is the psuedo english code to use the mediastore in a activity result to get the .jpg name and its path chosen in the photopicker? and it must be the uri? path not explicit? path mnt/... which is there for no reason apparantly. Jul 04 23:50:13 android:configChanges="orientation" tells that you will handle the orientation changes yourself Jul 04 23:50:30 futhong: that should be the last resort Jul 04 23:50:35 see above for the recommended way of handling it Jul 04 23:50:50 futhong: my prog that needs that is too tall for landscape. does that need fragments or is there a way to define another layout for landscape? Jul 04 23:51:12 Droido: if you're defining your layout in xml just put it in layout-landscape Jul 04 23:51:24 layout-land, rather Jul 04 23:52:30 mdwright: so you can have two layouts in the main.xml one for landscape? Jul 04 23:52:43 Droido: you have two main.xmls Jul 04 23:52:51 one in layout/ the other in layout-land/ Jul 04 23:53:05 see: http://developer.android.com/guide/topics/resources/providing-resources.html Jul 04 23:53:25 mdwright: thanks! Jul 04 23:53:28 is 4.1 available to download via sdk manager yet? Jul 04 23:53:34 if they share code, you can always use an Jul 04 23:53:35 http://developer.android.com/training/improving-layouts/reusing-layouts.html Jul 04 23:53:40 Sleepybear: Yes Jul 04 23:53:45 Droido: sure thing :) Jul 04 23:53:55 ha, as soon as I ask the sdk manager decides to update my list Jul 04 23:54:07 :) Jul 04 23:54:20 how do I begin to understand uri or mediastore to simply read and write a jpg with paths grabbed through the photo picker? Jul 04 23:55:01 what type of google search. been trying since this morning. Jul 04 23:55:21 mediastore extract path file name... Jul 04 23:55:53 Droido: So you've called startActivityForResult and got a result from the photo picker? Jul 04 23:57:13 strange, I dont see any actual links to http://play.google.com/apps/publish from developer.android.com Jul 04 23:57:35 mdwright: yes things are going good actually. a fun 4th. http://pastebin.com/HK47zT7P gives me the /mnt/ style path but am being told other ways are better and not to use/mnt Jul 04 23:58:50 Is mediastore an object with a bunch of code that reads the uri data passed to it? Jul 04 23:59:32 will go try an Oggis brew thanks!!! Jul 05 00:01:17 robb_www: Click the big "distribute" button at the top Jul 05 00:02:26 Droido: Do you want the Bitmap? What are you trying to do with it? Jul 05 00:03:38 ahh yes, under Publishing > Get Started , so it is Jul 05 00:04:32 mdwright: yes but that part is working. just need the path of the image they clicked on. the current method is giving the /mnt style path. people are saying not to use that and use the context:// type of path. Jul 05 00:04:51 Droido: Yes, but *why* do you want that path? Jul 05 00:05:03 mdwright: to save back ot the same folder. Jul 05 00:05:45 mdwright: write now I am hard code saving it to /mnt/sdcard but it needs to save to the folder where the image was clicked. Jul 05 00:05:54 Droido: why not just use MediaStore.Images.Media.insertImage(ContentResolver, Bitmap, String, String) Jul 05 00:06:50 because I don't know what that means. is it inserting the image into a memory buffer? how is the path gotten out of that? is that a giant object? Jul 05 00:07:08 mdwright: that is what I told him to use Jul 05 00:07:25 Droido: it inserts the image into the designated folder for pictures Jul 05 00:07:26 Droido: look it up Jul 05 00:07:29 don't get the paradigm- is that a reference to the image, a giant object that handles the callback... Jul 05 00:07:48 futhong: tried dude no idea must not have gotten the page or teacher you had- your too smart. Jul 05 00:07:54 yes 'your' lol Jul 05 00:08:02 and right now, your code can *only* get pictures from there because you're using MediaStore APIs, so you have no worries about it putting it in a folder other than the one it came in Jul 05 00:08:15 asked for any type of english summary of how to use it. Jul 05 00:08:39 i'll take a brake and another crack at reading it, trying examples then ask :) Jul 05 00:08:51 futhong: thanks Jul 05 00:08:56 mdwright: thanks Jul 05 00:08:59 Sounds good :) Jul 05 00:09:12 Droido: no problem...let me know if I can help Jul 05 00:22:10 wow its taking so long to download and install everything wit hteh sdk manager Jul 05 00:23:39 does anyone know why the SoundManager is not shutdown when an application is destroyed ? Jul 05 00:24:16 what other resources do need manual cleanup ? Jul 05 00:24:35 I know services continue running for example, but SoundManager is not a service Jul 05 00:27:56 xroberx: what do you mean by the SoundManager is not shutdown? Jul 05 00:28:04 and I assume you're talking about AudioManager Jul 05 00:28:23 mmm, sorry, I mean the SoundPool Jul 05 00:28:38 the SoundManager is actually a singleton class of my own... Jul 05 00:30:39 mdwright: I mean, I know if you create a SoundPool instance, it has a release() method, but since the SoundPool is not a service, it should be garbage collected (without having to call release()) when the application exits, or am I missing something ? Jul 05 00:33:44 mdwright: also the SoundManager singleton I created that holds the SoundPool instance is still there after exiting (onDestroy()) and starting the application again Jul 05 00:38:14 ok someone help me plz, this is getting crazy Jul 05 00:38:40 xroberx: it's because the soundpool holds (expensive) native resources Jul 05 00:38:40 but I just met you Jul 05 00:38:43 so call me, maybe. Jul 05 00:38:57 you can wait for the GC to collect it and the native objects will get freed by it's finalizer Jul 05 00:39:08 s/it's/its Jul 05 00:39:35 but you should call release yourself as a matter of practice so you don't hold large chunks of memory beyond when you need them Jul 05 00:39:36 on a general note how many is to many processes for an android application to saw off? Jul 05 00:39:39 spawn* Jul 05 00:39:50 http://pastebin.com/DguBWyit Jul 05 00:40:15 mdwright: Ok, i'll call release() then, but... besides the SoundPool, are there any other classes out there with that same behaviour ? Jul 05 00:41:05 what is going on here Jul 05 00:41:14 xroberx: static singletons won't necessarily go away in onDestroy because onDestroy only tells you what's happening *to that activity* Jul 05 00:41:21 not to the process as a whole Jul 05 00:41:31 my button style isn't being applied when I inflate it via code and add it to a linear layout that spaces the buttons with equal weights, any ideas? Jul 05 00:41:45 the buttons don't get equally laid out either Jul 05 00:41:50 Your process can be killed at any point after you receive onStop, but just because you receive an onStop or onDestroy doesn't mean it has been killed Jul 05 00:42:16 mdwright: but if the application is not running at all, why are its resources not automatically garbage collected ? Jul 05 00:42:29 AlCapwn: Equal weight != equal layout. weight has to do with remaining layout. try setting your buttons widths to 0dp Jul 05 00:42:49 I want to read some data right after my application starts into a globally accesible ArrayList, where should I do this ? In the class that extends Application ? Jul 05 00:43:15 xroberx: If we don't need the memory right then, we'll let it continue to run. This means that apps can be resumed much much more quickly Jul 05 00:43:19 i.e. the list of favorite items selected saved previously. Jul 05 00:43:20 mdwright: the button i defined in its own file, but if I copy/paste the button to the linearlayout, it gets laid out fine. Jul 05 00:43:26 s/i/is Jul 05 00:43:28 mdwright: I mean... I hope I won't have to manually free all Bitmap instances :) Jul 05 00:43:34 linearlayout container + Jul 05 00:43:44 ugh, this is what typing at 1.45am does Jul 05 00:44:14 xroberx: you don't have to, but if you use a lot of Bitmaps you might want to consider calling recycle on them Jul 05 00:44:17 ;) Jul 05 00:44:23 http://developer.android.com/reference/android/graphics/Bitmap.html#recycle() Jul 05 00:45:04 but I wouldn't worry about it. Jul 05 00:46:03 Anyone? Jul 05 00:46:34 mdwright: I can understand the use of recycle() when the app is running, because maybe you don't have room for all bitmaps loaded at once, but I never call it when the application exits Jul 05 00:48:04 BadDesign: It's recommended not to subclass Application if you can avoid it. But if you already have, then yes, that's where to do it. Jul 05 00:48:28 mdwright: anyway, I solved the problem with the SoundPool, thank you ! Jul 05 00:50:47 pboos u there? Jul 05 00:54:48 pboos I have a question about that answer you posted on my SO question Jul 05 00:55:09 cyberrog: sorry, yes i am here :) Jul 05 00:55:47 pboos the link is here Jul 05 00:55:48 http://stackoverflow.com/questions/11303314/expandablelistview-is-showing-indicator-for-groups-with-no-child Jul 05 00:55:57 already editing my answer and writing a comment ;-) Jul 05 00:57:01 you said that I must use viewHolder.indicator. Another doubt is, how do I implement getChildrenCount() since it must return the size of the children in the current position. But I just request the cursor after clicking the group, it's not loaded by default. got it? Jul 05 00:57:18 cyberrog: answered Jul 05 00:58:04 pboos wait lemme try to understand that. hheheh Jul 05 00:58:29 cyberrog: about ViewHolder by Romain Guy: http://www.youtube.com/watch?v=wDBM6wVEO70&feature=player_detailpage#t=511s Jul 05 00:59:01 cyberrog: maybe a few seconds back. and listen for a few minutes.. he explains why and how to use the ViewHolder pattern. Jul 05 00:59:12 pboos ok, lemme check first Jul 05 00:59:20 pboos u are not gonna leave for now, right: Jul 05 00:59:49 cyberrog: leave? no.. i will stay here.. 10am here Jul 05 01:00:00 ohh, 10 PM here heheheh Jul 05 01:06:42 pboos I dont see where romain guy is talking about ViewHolders in that part Jul 05 01:07:30 pboos whatever I see how to use ViewHolder. I'm gonna update my code and show you, ok? Jul 05 01:08:24 cyberrog: http://www.youtube.com/watch?v=wDBM6wVEO70&feature=player_detailpage#t=511s Jul 05 01:09:11 pboos this is the part I'm watching. You mean I should use getView in my case? Jul 05 01:09:49 cyberrog: no Jul 05 01:10:19 cyberrog: getView is in normal adapters. CursorAdapter does createView and bindView. Create the viewHolder in createView, and use it in bindView. Jul 05 01:10:39 cyberrog: or to make it easy for now. just don't use it. you just loose some performance Jul 05 01:11:12 pboos got it. let me create the view holder than Jul 05 01:12:22 pboos in my case I'm using CursorTreeAdapter, only has newGroupView and bindGroupView. So I should declar the holder in newGroupView and use in bindGroupView, correct? Jul 05 01:12:24 is there any creative channels for android dev? like where people talk about the design aspects? Jul 05 01:12:44 cyberrog: in that the part i put there should be in bindGroupView Jul 05 01:13:14 cyberrog: sorry. did not finish reading :D yes, you are right. create ViewHolder in newGroupView and use in bindGroupView Jul 05 01:13:32 Technodrome, IDK about a channel, But I know this site, is very good http://www.androiduipatterns.com/ Jul 05 01:13:38 cyberrog: in new... you need to make sure to view.setTag(viewHolder) Jul 05 01:13:42 pboos, indeedd Jul 05 01:13:53 pboos, why? Jul 05 01:13:55 Technodrome: im interested in that stuff if you wanna shoot the breeze with me in PM Jul 05 01:13:55 cyberrog: then in bind you need to get it with viewHolder = (ViewHolder) getTag() Jul 05 01:14:14 cyberrog: otherwise you will never be able to get the viewHolder in bind... ;-) Jul 05 01:14:22 cyberrog: just curious what programs people are using to create graphics and animations in the android world Jul 05 01:14:23 pboos, why cant I make the a class variable Jul 05 01:14:55 seems like many use flash for their animation mocks Jul 05 01:15:17 cyberrog: class variable of what? the adapter? that would be very bad :D because there are many views the adapter creates. and not just one.. every other way (or most other ways) would make things turn out weird. trust me. Jul 05 01:15:52 pboos got it.. Jul 05 01:22:06 pboos what about the getChildrenCount() method, I havent implemented it since Im using a cursor. And my doubt is you mentioned it in ur answer. How can I handle that? Jul 05 01:25:03 cyberrog: well, problem is what you do in getChildrenCount() might block the UI thread. maybe you can have a field in your cursor, that tells you how many children there are? Jul 05 01:27:00 pboos am I obligated to use getChildrenCount() ?? Jul 05 01:28:10 cyberrog: no, you can use whatever tells you if that item has children or not. Jul 05 01:28:26 cyberrog: or in otherwords. you can use whatever tells you, if the indicator should be shown or not. Jul 05 01:29:21 pboos as u can see in my question. I have a method getContactCursor(). this method is called when I click the group, and maybe inside this method I can check it's size and set a flag or something else, and use this flag in bindGroupView() Jul 05 01:30:10 pboos I can set a class variable boolean hasChildren, and inside the method I check the cursor size and set the boolean flag. Jul 05 01:30:23 cyberrog: something like that, yes Jul 05 01:30:34 pboos Jul 05 01:30:37 ok wait.. Jul 05 01:31:05 cyberrog: since i do not know how your data structure looks like and how you query it, i can not tell.. but as well do not have the time to read :) Jul 05 01:34:07 just me or does the emulator run slower than my 386? heh Jul 05 01:35:00 is it normal to run this slow? Jul 05 01:36:54 o_o; is there something wrong with the latest adt plugin? I just did a few edits from the gui to my project and my manifest file is all fubar Jul 05 01:37:21 is there a way to SNEP push an NDEF message without using Android Beam? Jul 05 01:37:31 or rather, having the user Touch to Beam Jul 05 01:37:31 did a new ADT plug in come out? What version is it at now? Jul 05 01:38:11 pboos here is my final code. it seems correct? http://paste.ubuntu.com/1075735/ Jul 05 01:38:40 yeah wth.. I create a brand new project and the manifest file is all wrong Jul 05 01:39:14 Technodrome: Do you have GPU emulation enabled? Jul 05 01:39:41 how can i tell? Jul 05 01:39:55 Technodrome: then the answer is no :) Jul 05 01:39:59 try turning it on Jul 05 01:40:04 i mean its just sorta slow Jul 05 01:40:09 i mean i guess thats normal for an emulator Jul 05 01:40:17 but i have no clue how someone could do game dev with an emulator Jul 05 01:40:19 seems impossible Jul 05 01:40:34 where is the option? Jul 05 01:41:09 https://plus.sandbox.google.com/100659176559657364492/posts/bcZ9zbZCtTz Jul 05 01:41:27 cyberrog: no, that will not work correctly Jul 05 01:41:35 pboos why? Jul 05 01:41:49 cyberrog: you create a haschildren variable inside the adapter. that would have to be on the GroupObject Jul 05 01:42:26 cyberrog: so how do you know with that WHICH group view has children and which has not? Jul 05 01:42:26 whoops. Jul 05 01:42:29 damn googlers and their sandboxes Jul 05 01:42:32 :-x Jul 05 01:42:43 cyberrog: in your current implementation either ALL groups have children, or ALL have not.. Jul 05 01:42:56 Technodrome: https://plus.google.com/100659176559657364492/posts/bcZ9zbZCtTz Jul 05 01:43:03 cyberrog: you have an original cursor, that you give the adapter, right? Jul 05 01:43:09 Technodrome: Where's Krang and Shredder? :D Jul 05 01:43:25 pboos but that method is called only when I click a single group Jul 05 01:43:25 X-suriV: locked up in dimension X of course Jul 05 01:43:26 cyberrog: easiest would be if that original cursor would have a field has_children Jul 05 01:44:04 cyberrog: yes kind of, but it won't work. maybe in some cases it might look like it works.. but i am sure it will mess things up, once you have enough elements to scroll the list... Jul 05 01:45:04 pboos no, but the cursor is requested when I click the group. So I get the cursor for that specific group. So it's not a cursor with all data, is a cursor with the data for that group Jul 05 01:46:11 cyberrog: the thing is, yes that might work.. but what happens when you scroll and new views are bound with bindGroupView? they will all think they are the last one that was clicked. Jul 05 01:46:44 pboos indeed! Jul 05 01:46:56 cyberrog: you could call getChildrenCursor from the bindGroupView. but i do not know how you get the cursor. probably a query, and that would be very bad for the performance. Jul 05 01:47:37 Technodrome: if that doesn't speed it up, try using the x86 emulator image (assuming you're running ICS or GB) Jul 05 01:53:12 pboos I get the cursor via a query. But I don't implement getChildrenCursor(). That's what i've told you. Jul 05 01:55:26 cyberrog: looking at your code, you are doing some weird stuff.. you should read a little more about listadapters ;-) Jul 05 01:55:47 pboos ok.. i'll check Jul 05 01:56:02 Working with onactivityresult to get path from photoPickerIntent and a bit confused on path types. there is /mnt/sdcard... and context:// is there a name for those two types of paths? Jul 05 01:56:10 cyberrog: having fields like mContactNameTextView, mContactNumberTextView and mIndicatorImageView and using them in createView/bindView is a deadly sin! ;-) Jul 05 01:56:22 cyberrog: they guarantee that you will see weird stuff happening. Jul 05 01:56:52 cyberrog: you won't have an exception, but views will look different than they should. and it will always be different. Jul 05 01:57:37 Can uri and path point to the same file with a totally different path? http://stackoverflow.com/questions/5913427/how-to-get-the-uri-from-mediastore-via-file-path Jul 05 02:00:12 pboos it's a weird complicated for me. I'm not understanding how it will work. would you mind to provide me a pseudocode for a CursorTreeAdapter class implementing this case. My code looks like a mess.. Jul 05 02:01:05 cyberrog: sorry, i do not have the time to write that much code, since i am at work. but google for "World of ListView" and listen to the whole talk. that might help some :) Jul 05 02:01:28 pboos thanks for your help. anything can I message on twitter. Jul 05 02:01:30 ? Jul 05 02:03:19 cyberrog: and here an example: http://www.java2s.com/Code/Android/UI/DemonstratesexpandablelistsbackedbyCursors.htm Jul 05 02:03:32 cyberrog: did not get your last question Jul 05 02:03:57 pboos in case I need ur help may I tweet u? Jul 05 02:04:08 cyberrog: pboos on twitter ;-) Jul 05 02:04:40 cyberrog: that example actually is not that advanced as you need it.. so skip that one Jul 05 02:05:08 pboos i see that.. because it's not using cursor as I'm using it. I've seen this example in API Demos Jul 05 02:05:14 cyberrog: but you should be able to find a lot of useful stuff by just searching on google/stackoverflow Jul 05 02:10:49 mdwright: this is the 4.1 jelly bean image Jul 05 02:10:58 how do i tell if its x86 or not? Jul 05 02:11:08 It isn't an x86 image then, Intel hasn't come out with one yet Jul 05 02:11:17 oh Jul 05 02:11:26 ARM should be fine Jul 05 02:11:34 doesn't it just plain *suck* to be a newb? Jul 05 02:11:48 We were all there once :) Jul 05 02:11:50 absolutely sucks out of this world Jul 05 02:12:45 i hear that Jul 05 02:12:52 the good news is it only gets easier Jul 05 02:15:18 Technodrome: without this feeling of confusion life is not a challenge and a bit boring. Jul 05 02:15:47 and boy am I confused right now. out of uri I am the most confused. Jul 05 02:16:32 i hate it so much, i can program C and all these different languages (java skill is decent) but its just like a -_- feeling right now Jul 05 02:16:40 Did they mention that Android programming comes armed with boxing gloves and hits hard when you go in the ring? Jul 05 02:17:12 Just cause we are good at walking doesn't mean we can cross a new maze fast. Jul 05 02:17:28 Android really is not hard Jul 05 02:17:33 Technodrome: for knowing what the emulator is, look at the CPU EABI spinner when creating it, itl show you, by default it will be ARMEABI, unchangable, unless its ICS or GB Jul 05 02:17:41 +1 Leeds Jul 05 02:17:43 as long as you're used to Java... Jul 05 02:18:24 I made http://botbattle.3x.ro/ in Java and am ruined right now but sorta catching on. Jul 05 02:19:54 drpenguin: what do you mean not changeable? Jul 05 02:19:57 i thought i couldn't change it? Jul 05 02:20:09 Leeds: i did c# programming for a long time Jul 05 02:20:20 so java is somewhat easy Jul 05 02:20:23 Most Android images are strictly ARM, so the EABI wont be changable, but there is an ICS and GB x86 CPU EABI image offered Jul 05 02:21:01 For me Java is fun and easy but being so ignorant that I can't even know what to type for a question or what I am reading is a little annoying lol. Jul 05 02:21:19 drpenguin: i see Jul 05 02:22:01 Why is using /mnt/sdcard not the best practice and what is the other practice called? Jul 05 02:22:03 i only see 4.1 arm image Jul 05 02:22:08 but i see a 4.0.3 intel image Jul 05 02:22:17 4.1 is Jelly bean Jul 05 02:22:22 4.0.3 is ICS Jul 05 02:22:43 so the newest version doesn't have a intel but older ones do? Jul 05 02:23:06 do i need to dl the whole sdk platform for 4.0.3 as well? Jul 05 02:23:23 Yeah? Dont take me for this, but Android hasnt really been built for x86 until recently Jul 05 02:23:40 i can't just download the image and not the whole sdk platform right? Jul 05 02:23:40 Theres only like.. one phone that was just made that uses an Intel chip for Android Jul 05 02:23:42 i need both Jul 05 02:23:53 but the emulator is faster that way right? Jul 05 02:24:08 x86 would be faster yes, mainly because it doesnt need to emulate ARM instructions Jul 05 02:24:13 yep Jul 05 02:24:23 do i need the 4.0 sdk platform to? Jul 05 02:24:36 You download what you are targeting Jul 05 02:24:50 in just downloading it out of sdk manager Jul 05 02:24:54 i already got all the 4.1 stuff Jul 05 02:24:57 If you target Jelly bean, your app *may* work on ICS, and by may, meaning as long as you dont use things in JB that arent in ICS Jul 05 02:24:59 im just learning right now Jul 05 02:25:17 since i have an ics phone and if i can use an intel image, i might as well use that Jul 05 02:25:22 but i need both sdk's right? Jul 05 02:25:38 Download for the sdk you are targetting Jul 05 02:25:48 i just can't use the image of 4.0 and the sdk of 4.1 ? Jul 05 02:25:53 ok Jul 05 02:26:00 You cant target 4.0 specifically without the 4.0 sdk Jul 05 02:26:00 so i can download multiple sdk's with no issue Jul 05 02:26:04 yeah ofcourse Jul 05 02:26:30 Another word of caution, if you are doing ndk stuff, you will need the arm image as well Jul 05 02:27:16 no ndk stuff :) Jul 05 02:27:20 one step at a time Jul 05 02:27:32 wtf any help with these two different path types? http://efreedom.com/Question/1-3401579/Get-Filename-Path-Uri-Mediastore can they be used interchagably? I'm simply trying to get a path for 9 hours now thanks! Jul 05 02:27:50 in 08 i downloaded the sdk Jul 05 02:27:57 i was going to start doing it then, then i delayed it Jul 05 02:28:04 so yeah 4 years later …..blah Jul 05 02:28:19 like ozzie you would have to have gone through changes. Jul 05 02:28:54 i worked on a few profitable ios apps but android is so big now Jul 05 02:29:27 I'm wishing I had a mac right now. no hope for the most simple of operations and having literally written 800,000 lines of Java in the past. Jul 05 02:30:38 another day wasted on android with only the two who could answer in irc gone and the most insane classes and docs ever lol. it takes 15 hour days for a few weeks just to grow the neurons to understand the beginner docs. turned on an ios and the layout thing was clean and even put the basics in the code as wellas the layout. Jul 05 02:30:41 what do you use? Jul 05 02:31:03 Droido: you new to? Jul 05 02:31:14 i mean i was having a cofig problem more than anything Jul 05 02:31:26 have a dual screen pc and have opened at least 200 windows on one topic. tried many many pasted of a simple 10 line handler and it is a joke to say the least. bad people made this lol. Jul 05 02:31:42 bad people make android? Jul 05 02:32:02 whats wrong Droido?? Jul 05 02:32:12 seems like hes having more issues than me :) Jul 05 02:32:17 bad people made the cryptic non-intuitive framework. even eclipse when copying a project ruins the activity name in the manifst. very well thought out tools. Jul 05 02:32:52 Thats probably just eclipse Jul 05 02:32:56 eclipse is.. a POS Jul 05 02:33:10 way more. give me a break. two types of paths. people on irc say don't use the /mnt one but the working code I have uses it. to use the 'api' method god knows- seen 3 ways to do that from getting environment path to a mediastore clown handler it goes on lol. Jul 05 02:33:57 the way the media store is instanciated in the middle of a normal string in one example is insane lol. wish I had a handle on it. Jul 05 02:34:23 or maybe it is a giant semi constant which can update itself magically. Jul 05 02:35:21 [2012-07-04 22:34:47 - Emulator] HAX is not working and emulator runs in emulation mode Jul 05 02:35:26 this means im still getting emulated? Jul 05 02:37:07 thanks for you help http://pastebin.com/s7s4Zd30 Jul 05 02:38:14 intent.getdata gives a path like 'context://' which is the same? as the other way which gets ... okay whatever then... Jul 05 02:40:16 yes people who have a lack of empathy or ability to see themselves without their current knowledge make windows, android, lindows, creative mp3 player, linux os, gnome, unity interface with the launcher vertical on the left, cli users Jul 05 02:40:46 For the record, Unity sucks Jul 05 02:40:48 the same people made apple but their boss understands subjective user experience and how the mind visually connects things in space. Jul 05 02:40:50 Continue Jul 05 02:41:03 unity made by robots for robots Jul 05 02:41:43 Dr. shows the ego involved. Penguin is Linux. a power hungry control freak nah... Jul 05 02:41:52 mer mer mer Jul 05 02:41:59 eh eh eh Jul 05 02:42:19 thanks for your help http://pastebin.com/s7s4Zd30 Jul 05 02:42:30 hey, java syntax question Jul 05 02:42:32 http://pastebin.com/D39kFTKK Jul 05 02:42:35 gonna geta mac and my code is gonna work. Jul 05 02:42:35 can you guys think of a way to express that code more concisely? Jul 05 02:42:37 I was thinking ternary operators, but not sure how exactly Jul 05 02:43:52 drpenguin: its the lack of help that is helping me get a mac. I'd be happy to code droid but as stated the help books arent as good as ios etc.... people are dicks in the irc etc... Jul 05 02:44:06 i really hate ternary operators Jul 05 02:44:17 this framework is heavy i will say that! Jul 05 02:44:17 I love ternary ops Jul 05 02:44:22 but everything in java is heavy right hehe Jul 05 02:44:41 Droido: Im sorry about that, yeah there are some ircs where people are douches (#C, #Java), and I agree books are el crappo too Jul 05 02:44:46 Ive learned by just doing Jul 05 02:44:47 Droido: stop your complaining :) cheer up Jul 05 02:45:22 http://www.devdaily.com/java/edu/pj/pj010018 ternery operators are a shortcut if statement - you must be dealing with mass code on either side and struggling with brackets? Jul 05 02:45:46 yeah ternary ops are pretty great Jul 05 02:45:52 does android not come with sshd by default? Jul 05 02:45:59 but i think in this case, it's just going to make things ugly Jul 05 02:46:11 this has gone on for a long time trying to learn android. knowing programmig means nothing. I guess none of you know about uri paths vs. the bad ones and which commands use them and which dont? Jul 05 02:46:32 maybe I can help sort it out? Jul 05 02:46:53 how do i turn on intel hardware acceleration Jul 05 02:47:01 i installed it through eclipse Jul 05 02:47:19 eh? it's not a bios option Technodrome? Jul 05 02:47:41 its not really 3 its still two branches and a conditon. every if statement with an else is a trinary or ternery Jul 05 02:47:51 he means for the emulator Jul 05 02:47:58 How would an android specific thing require the bios? unless its doing something like leveraging VT-X, which you may need to turn THAT on in the bios if it uses that.. but I doubt it Jul 05 02:48:01 there used to be a guide on d.android.com for that Jul 05 02:48:07 but with their new design I can't find it Jul 05 02:48:09 man he makes quadinary if statements. respect him or else. else if what? else! Jul 05 02:48:16 bjorkintosh: sorry, i meant the framework part or whatever Jul 05 02:48:20 and yea, it uses VT-X Jul 05 02:48:26 hmmm Jul 05 02:48:48 Then yeah you need to make sure your chipset supports VT-X and its turned on.. Some BIOS allow you to turn it on and off, on others (like mine) its just straight up enabled Jul 05 02:49:31 since I am unable to solve this simple code problem myself and believe mac will be easier gonna call a relative and explain. maybe can get a mac. if you don't like this maybe check out the code. since you don't care cause you are at a distance with a keyboard hehe oh well Jul 05 02:49:33 this is a macbook, i wonder if i can even boot into anything called a bios hehe Jul 05 02:49:44 Technodrome http://developer.android.com/tools/devices/emulator.html#acceleration Jul 05 02:50:07 oh sweet, it supports AMD-V now Jul 05 02:50:08 didn't before Jul 05 02:50:15 except only on linux :-/ Jul 05 02:50:26 Macbooks have.. what EFI? Id imagine Macs by default will have VT-X or AMD-V enabled Jul 05 02:52:07 yes it jsut can't load that dang on hax module Jul 05 02:52:13 dam family is broke but this sucks. so I can use this code but according to you guys it will break somewhere because of the paths it gets from its funcitons. http://pastebin.com/HK47zT7P thanks! Jul 05 02:52:54 how cool well screw you guys and I am going to just check it on some phones and maybe get an app in the store. thanks for the wasted 9 hours trying to live up to your expectations in coding methods. Jul 05 02:53:37 * drpenguin is sad Jul 05 02:54:05 Super troll? Jul 05 02:54:27 Super Ultra Mega troll Jul 05 02:54:34 Droido we're just living up to your expectations, weren't we all supposed to be dicks Jul 05 02:54:40 * t0mless Troll-Fives drpenguin Jul 05 02:54:46 I see what you did there Jul 05 02:54:55 melureus he's gone dude Jul 05 02:55:08 wtf was all that about :S Jul 05 02:55:20 Apparntly we are dicks Jul 05 02:55:23 Thats news to me Jul 05 02:55:27 * t0mless is a dick. Jul 05 02:55:31 Not news to me Jul 05 02:55:38 he wasted 9 hours on IRC asking stupid questions, didn't he ? Jul 05 02:55:52 where does the SDK main directory reside when everything was installed through eclipse? Jul 05 02:55:55 Pretty sure I've wasted more time on IRC than that Jul 05 02:56:09 in ~ I believe Jul 05 02:56:20 Technodrome you have to install the sdk seperate from eclipse Jul 05 02:56:33 i installed it through eclipse Jul 05 02:56:37 ADT plugin != SDK Jul 05 02:56:39 t0mless: eclipse offers to grab the SDK for you Jul 05 02:56:46 the adt plugin will install it though Jul 05 02:56:46 oh, that's new Jul 05 02:56:48 yes Jul 05 02:56:59 where is it, i need to go manually install the hax module i downloaded Jul 05 02:57:06 prolly in ~ Jul 05 02:57:11 ~/android-sdk Jul 05 02:58:00 are there any other x86 images aside from the 2.3 one yet? Jul 05 02:58:17 i got one for 4.0 right now im trying to get to work Jul 05 02:58:18 ICS Jul 05 02:58:21 and that is the correct location yes Jul 05 02:58:28 Droido is gone? Wow lol Jul 05 02:58:44 i thought that droido guy was a guru for a few minutes :P Jul 05 02:58:45 ahh Jul 05 02:58:46 cool Jul 05 02:59:06 now they just need to have the HAXM support AMD-V on Windows Jul 05 02:59:34 or maybe I'll have to get another SSD and dual boot this shit Jul 05 02:59:45 you wont Jul 05 02:59:48 truth **** ENDING LOGGING AT Thu Jul 05 02:59:58 2012