**** BEGIN LOGGING AT Tue May 29 02:59:58 2012 May 29 03:01:13 thumbor? May 29 03:01:50 7humb0r May 29 03:03:07 * b1n0ry googles May 29 03:03:13 looks intriguing May 29 03:05:35 DubLo7, i'm not sure i remember what we were talking about, but you're undoubtedly welcome :) May 29 03:07:30 so... despite the docs that say http cache response is available on sdk 13 and newer, i have an sdk 13 device that doesn't like it... May 29 03:08:30 had a sdk version detection that enabled it if the sdk >= 13... loaded it into my device and crashes because it can't find the class May 29 03:09:08 so, note to self to not assume that the docs are always accurate because who knows wtf OEMs do with their devices... May 29 03:30:20 morning all May 29 03:35:22 hmm... something i'm doing wrong. even the scaled images are coming in looking like garbage. May 29 03:36:46 how does the market make images in listviews/downloads and stuff look so crisp? May 29 03:42:09 Hi May 29 03:42:53 If I use cout << "hello" << endl, where is the "hello" going? May 29 03:43:49 I mean in c++ layer May 29 03:44:16 /dev/null apparently May 29 03:44:36 b1n0ry: it probably downloads pixel-perfect sizes May 29 03:45:13 well, if i pass it 240dpi, which i am, it downloads a 72x72 image May 29 03:45:29 and it's putting it into a 48x48sp box. May 29 03:45:36 you mean dp? May 29 03:47:21 yeah, dp May 29 03:47:33 ok well that's correct May 29 03:47:57 so, my calculations say that a 72 x 72 image is right for that size box May 29 03:48:04 unless my calculations are wrong May 29 03:48:04 yes May 29 03:48:06 no May 29 03:48:23 so when i look at the image on the web server, it's crystal clear. when i look at it on the screen it's terrible. May 29 03:48:27 240dpi is HDPI which means 1.5x DP therefore 48dp is 72px May 29 03:49:04 are you in ARGB_8888 mode? May 29 03:49:11 that i don't know... May 29 03:49:15 how would i know that? May 29 03:49:34 getWindow().setFormat(PixelFormat.RGBA_8888); May 29 03:49:58 can i do that in my fragment? May 29 03:50:01 no May 29 03:50:05 put it in your base activity May 29 03:50:09 as the very first thing in onCreate May 29 03:50:09 ok, i'll give it a shot May 29 03:50:23 what is it/what's it do? May 29 03:50:39 set the pixel mode to full color May 29 03:51:20 i'm off May 29 03:51:44 added that, they still look terrible. May 29 03:52:09 debug it May 29 03:52:13 make sure it's the correct size May 29 03:52:17 make sure there's no additional scaling May 29 03:52:18 etc. May 29 03:54:58 I need to convert an animated gif into a sprite sheet texture for rendering inside GLSurfaceView, but cant figure out how to extract the individual animated gif frames. any ideas? May 29 03:56:27 Photoshop has that capability im fairly certain. You can view individual frames and export them by loading the gif into PS May 29 03:57:13 hi May 29 03:59:31 EastCoastCal, i could easily split the animated gif into frames but I want to distribute the animations to the app in gif format May 29 04:00:01 I m new at android communication .. n stuck at proceeding communication through usb without changin ny config details.. plz help May 29 04:01:30 i wana set up a bidirectional pipe between android device and pc through usb May 29 04:02:54 does anyone know of a launcher that allows custom icons greater than 90x90 or a way to get MIUI launcher to allow larger icons? May 29 04:05:11 -clear May 29 04:07:07 DopeShope: what? May 29 04:12:16 hi May 29 04:23:32 hi 2 all May 29 04:24:25 can anyone please help me how to do communication between computer and phone without the help of adb? May 29 04:24:43 phone is android phone May 29 04:27:25 net123: Mount it as a storage device? May 29 04:30:22 sonicrules1234 can you please elaborate on this? May 29 04:30:49 net123: Plug it in, and see if it works like a thumb drive May 29 04:34:30 how to get contacts from the android phone to computer? May 29 04:36:12 sonicrules1234 how to get contacts from the android phone to computer? May 29 04:45:08 apparently imageview can scale png files much better than it can jpg files May 29 04:45:33 why is if ( f.length == 0L ) throwing a java.lang.NullPointerException ?? May 29 04:45:35 good to know May 29 04:45:55 if f is null, you can't call the length method May 29 04:46:19 if (f == null || f.length == 0L) ... might work May 29 04:46:29 File[] f = new File( extras.getString("appDir") ).listFiles(fileFilter); if ( f.length == 0L ) May 29 04:47:21 if that was not able to create f would that not throw an exception? which I have a try catch for May 29 04:49:02 i don't know the file io stuff as well as i should, sorry May 29 04:49:10 i guessed f was a string or something May 29 04:49:20 i figured it out :D May 29 04:49:32 what was going on? May 29 04:50:13 i just did if ( f == null ) instead of doing if (f.length == 0L ) May 29 04:50:37 that works May 29 04:50:48 i think null is a legitimate return May 29 04:50:57 net123: No idea May 29 04:50:58 which is probably why it's not throwing an exception May 29 04:51:15 You can probably export it from your google account May 29 04:52:53 cool May 29 04:53:19 nice job May 29 05:45:03 http://sachagreif.com/why-cheap-customers-cost-more/ May 29 06:17:40 hi May 29 06:53:47 JakeWharton: I've given in and decided to use your actionbar May 29 06:54:28 pragma-: how is it going so far ? May 29 06:54:54 Just added it to my project and got it to build successfully May 29 06:55:11 now I have to actually USE the sherlock classes and enable the actionbar May 29 06:55:18 let me know if you have any questions May 29 06:55:36 it's pretty straightforward if you're not an idiot but there's a lot of gotchas unfortunately :( May 29 06:55:48 and I know you're not an idiot May 29 06:55:52 so watch out for the gotchas May 29 06:56:12 I tried to go with the google actionbarcompat example but discovered that it had a couple of bugs and was extremely lacking May 29 06:56:12 imports, theme, base classes, support methods May 29 06:56:31 I'm glad you recognized it as an example rather than a library May 29 06:56:36 yeah, use Sherlock's menuitems, etc May 29 06:57:05 yeah, those four things are my checklist that I run down whenever I have problems May 29 06:57:07 pragma-: i think they really dropped the ball there :| May 29 06:58:33 aside, my project has now increased from 250Kb in size to 650Kb in size since adding the library :) May 29 06:58:38 s/project/apk/ May 29 06:58:51 * pragma- is approaching the dreaded 1MB mark May 29 06:59:13 5MB is the dreaded mark for me May 29 06:59:26 It seems as if all the 200 byte 9patch image files are actually taking up 1024 bytes of space in the zip May 29 06:59:40 40MB is the dreaded mark for me... that is where stuff stops working >_< May 29 06:59:53 pragma-: you can fork and delete one of the themes if you're not using it May 29 06:59:58 seems to be storing the files on boundaries May 29 07:00:14 1KB block sounds reasonable for a zip file May 29 07:00:16 we keep an internal fork where all of the Theme.Sherlock.Light assets are gone May 29 07:00:21 JakeWharton: yeah, I'm likely to do that May 29 07:00:36 reasonable == reasonable expectation May 29 07:00:53 if Android actually used Maven I could specify them as dependencies and then you could just them May 29 07:00:57 if only... May 29 07:02:20 VERSION May 29 07:02:27 * pragma- assaults woozly May 29 07:04:04 god, I love git. I was able to pause my actionbarsherlock integration and stash it, switch to a different branch to update a feature and commit and push it, then go back to my actionbar branch and stash apply May 29 07:04:32 pragma-: thats basic stuff any decent vc will have :) May 29 07:04:34 so painless May 29 07:04:46 yeah, try doing that with svn May 29 07:04:54 i said decent :) May 29 07:04:58 ^ May 29 07:05:43 I'm not sure mercurial could do that so elegantly May 29 07:06:31 I'm willing to bet it could do it more elegantly, as it supports all those features plus has some better tools available May 29 07:07:12 well tools are irrelevant to this discussion May 29 07:07:24 what? May 29 07:07:36 i was referring to the convoluted nature of mercurials branching May 29 07:08:02 The discussion appeared to be about how elegantly a task could be completed within a VCS. the tools providing the interface to the VCS are very definitely on topic. May 29 07:08:40 yeah but I could write a bash script that did exactly what he described for ANY version control system May 29 07:08:58 dammit, i got disconnected May 29 07:09:14 get a bouncer May 29 07:09:51 sure, but the effort to write the script would be a factor in consideration. If it requires writing a script to complete the action, it's not elegant. May 29 07:10:14 well someone had to write the tools May 29 07:10:26 therefore they shouldn't be a factor May 29 07:11:10 IMO that reply makes no sense. May 29 07:11:19 freenode is really flaky in the last weeks May 29 07:11:33 That is like saying someone had to build that airplane, so it's just as easy if you build your own. May 29 07:12:07 it is nothing of that sort May 29 07:12:30 It is exactly that sort May 29 07:12:33 we're talking about the capabilities of a VCS not additional functionality provided by tooling built on top of it May 29 07:13:40 I have also added the follow bash aliases for git: g, gti, and gt May 29 07:14:02 I'm not talking about obscure scripts on some random github repo, I'm referring to the tools I'd expect to be present when using Hg vs when using Git. May 29 07:14:13 which would be the CLI May 29 07:14:25 since that's what's provided out of the box with both of those VCSs May 29 07:14:40 I wish I could just plug something into my spine to interface with my PC without having to type May 29 07:15:25 * pragma- gives new meaning to "Lo and behold" May 29 07:15:27 both git and Hg contain GUI components as well. For instance git comes with gitk May 29 07:16:19 Imagine just being able to hold the image of a 3d model in your mind and have your computer generate the proper resource. May 29 07:16:28 holy crap, this LG display is going to have a pixel density of 440 ppi May 29 07:16:35 of course, there'd probably be a lot of headaches at the end of the day May 29 07:16:40 If that existed, I'd be scared to visit the internet. May 29 07:16:46 where is my f%$%^ svg assets google May 29 07:17:07 I can barely hold 3 numbers in my head at once May 29 07:18:14 g00s: of all the things I'd complain to google about, svg is not one of them... I'd blame the SVG working group first. May 29 07:18:32 there's drop-in SVG libraries May 29 07:18:34 they work great May 29 07:18:44 i thought they didn't work great May 29 07:18:49 have you tried any ? May 29 07:18:52 I've never seen one that worked great May 29 07:19:00 yes, use one May 29 07:19:01 it works great May 29 07:20:19 we only use it for about 6 assets though, it's easier and faster to provide scaled images May 29 07:20:26 I've seen a couple that are insanely popular, but uses a ton of resources (for a mobile device), neither of which were very "drop in" when I last tried them. The others were either horribly buggy or horribly non-compliant. May 29 07:20:32 JakeWharton: what library? I'd be very interested. May 29 07:20:50 svg-android maybe? May 29 07:20:51 i don't know May 29 07:21:03 we wrote a 150ish line SvgImageView that does all the work for you May 29 07:21:09 i only interface with that May 29 07:21:53 nice work with actionbarsherlock jake May 29 07:22:06 using it for a second time now May 29 07:22:11 heh May 29 07:22:13 cool May 29 07:22:14 w May 29 07:22:17 what was the first? May 29 07:22:51 a project that will never see the light of day sadly, funding got cut May 29 07:23:00 ah, always a shame May 29 07:23:09 well hopefully this one will make it through haha May 29 07:23:34 bit of a shame, im just updating some old code now to give it a fresh new look May 29 07:23:53 of an existing app May 29 07:27:24 cool this android phone has a radiation detector May 29 07:28:24 my coworker just got a galaxy S3 May 29 07:28:25 next i want ozone, fanboy, pm2.5, pm10, voc, humidity sensory May 29 07:28:35 g00s: radiation? how does it do that? May 29 07:28:45 i'll take a fuckwad sensor May 29 07:28:45 Ge0rG: i dunno http://www.theverge.com/2012/5/29/3049388/softbank-pantone-5-107sh-hands-on-radiation-detection May 29 07:29:11 if (isUserAnIdiot()) { //TODO flash bright shiny things } May 29 07:29:41 probably a hardcoded "return true;" and then all the custom ROMs can change it to false May 29 07:29:42 perfect! May 29 07:30:11 JakeWharton: you are one step closer to it with face-unlock ;) May 29 07:30:31 just need a metric for face dumbness May 29 07:30:35 haha May 29 07:30:49 that might be a new interviewing question May 29 07:31:04 write an algorithm for determining how intelligent someone is using this facial recognition API May 29 07:31:34 g00s: there recently was an app in the news that used the camera ccd, which was taped over with black tape, to detect radiation May 29 07:31:46 Ge0rG: yeah, i seem to remember that May 29 07:31:54 if (hasDuckFace()) { intelligence -= 1e10; } May 29 07:31:55 it showed up as noise i think May 29 07:32:03 maybe they just put in a second ccd somewhere in the case? May 29 07:32:33 JakeWharton, some people tend to associate a lot of facial hair with low intelligence May 29 07:32:39 at least in my experience May 29 07:32:48 but it also could mean they're a Unix sysadmin May 29 07:32:55 yes indeed May 29 07:33:06 we need another metric to differentiate the two May 29 07:33:13 hasPocketProtector() May 29 07:33:34 that may be too old school May 29 07:33:54 isWearingDeveloperConferenceShirtThatIsTooSmallForTheirBodyType() May 29 07:34:00 there we go May 29 07:34:08 :P May 29 07:34:31 hasFatMufflerOnCar would be another predicate May 29 07:34:56 wonder if I can get my skype profile photo out of skype somehow.. May 29 07:37:32 ha, there May 29 07:38:58 JakeWharton, here's something you can work on! http://pikersden.eu/~eclipser/me.jpg May 29 07:39:02 ;) May 29 07:40:27 Zharf: that face rather looks like it urgently needs a big cup of coffee May 29 07:40:46 Hey guys, is it possible to save an integer during a livewallpaper onPause call through something like sharedpreferences, or am I going to lock stuff up ? May 29 07:40:53 Ge0rG, I don't drink coffee May 29 07:41:32 Zharf: maybe you should, then! :P May 29 07:41:47 :p May 29 07:42:00 I have way to much stuff I need to load to do it all at once and have a good experience, figure its worth asking here before I attempt it and turns out you can do that because :P May 29 07:46:07 Exano, try it ;) May 29 07:48:24 Totally works May 29 07:48:48 How do you like that May 29 07:50:34 ? May 29 07:50:41 hello guys May 29 07:50:47 yo May 29 07:51:27 I need some help. I have an app that needs to detect if the phone was turned over and how May 29 07:51:36 is there a good tutorial on this? May 29 07:54:30 Can't seem to find any library for couchdb for android (client) May 29 07:54:31 maybe use the light sensor May 29 07:54:53 Tried downloading the java client sdk from http://www.couchbase.com, but it doesn't seem to be compatible with android? .s May 29 07:55:21 Blou_Aap: thanks, but i need to know how exactly it was turned May 29 07:55:31 right to left, top to bottom May 29 07:55:35 stuff like this May 29 07:55:58 there is the orientation listener May 29 07:56:12 you can use that instead of using configchanges May 29 07:56:13 and it can detect exactly this? May 29 07:56:31 well, it's not always perfect May 29 07:56:56 then you can have the angles conditioned ilke if angle>260 && angle < 280 etc May 29 07:57:22 the orientation sensor has angles? May 29 07:57:46 i use it on an app that has been downloaded 3 million times and haven't got 1 crash report using it May 29 07:58:03 so i think its good to use May 29 07:58:03 3 mil?!?!?!?! May 29 07:58:07 NICE! May 29 07:58:13 hi from what I understand is that even if I do not have data enabled / internet from my service provider enabled / purchased I can still use location service since it will use cell tower connectivity to get location. is that right ? May 29 07:58:13 there's not really an orientation sensor in a lot of devices, so it depends on the accuracy you need, afaik May 29 07:58:13 is there a good tutorial on that? May 29 07:58:17 well its kind of forced by a carrier lol May 29 07:58:38 Blou_Aap: even better, sweet deal May 29 07:58:38 not 3million "willing" downloads hahaha May 29 07:59:10 but you want flip over where the screen is facing the ground ? May 29 07:59:20 or are you talking about rotation? May 29 07:59:37 location meaning some local information that the cell tower will provide like name of locality it uses to identify itself. May 29 08:00:03 the phone is faceing the ground, and when you flip it back, I need to know how you did this May 29 08:00:19 there's a difference between the different flips May 29 08:00:24 mmm that would be using the light sensor May 29 08:00:49 well then you use the 2 together and use your logic for the conditions May 29 08:01:00 do you have a good source for learning this? May 29 08:01:39 started googling about this May 29 08:02:00 i used the docs for the OrientationListener, very simple class and simple callbacks I haven't used the light sensor yet May 29 08:02:05 will see if i can find one May 29 08:02:42 http://kpbird.blogspot.com/2011/05/android-light-sensor.html May 29 08:02:46 ^ for light sensor May 29 08:03:14 oooo thanks May 29 08:03:35 try use an inner class though, i find it a lot more maintainable with inner classes for event listeners May 29 08:04:37 ok May 29 08:04:42 I'll look into it May 29 08:05:13 http://developer.android.com/reference/android/view/OrientationListener.html May 29 08:05:27 Blou_Aap: if i force the screen orientation in the manifest, does it kill the OrientationListener? May 29 08:05:28 and that instead of ConfigChanged May 29 08:05:38 yes it does May 29 08:05:50 h wait no May 29 08:05:53 oh* May 29 08:05:58 well, I'm screwed, because the boss told me to force that May 29 08:06:08 its ok May 29 08:06:14 you can force it at manifest May 29 08:06:20 android:screenOrientation="portrait" May 29 08:06:22 any of you used oauth before? May 29 08:06:27 the OrientationListener checks the sensor May 29 08:06:34 won't flip your views or anything May 29 08:06:34 can you do identity only authentication with it, no priveledge grants? May 29 08:07:01 so the views will stay the same but the sensors will preform onOrientationChanged? May 29 08:07:16 yes May 29 08:07:21 awesome May 29 08:07:21 ill post my code May 29 08:07:24 hold on May 29 08:12:58 thepoosh, http://pastebin.com/drdiMU65 May 29 08:13:09 thanks a bunch May 29 08:14:00 remember it measures all degrees May 29 08:14:11 cool May 29 08:14:12 so use conditions with like 10 or 20 lee way May 29 08:14:50 but this is a 3-dimension sphere and not a 360 circle May 29 08:14:57 I wounder May 29 08:16:25 hey, anyone have any experience with making zxing work in portrait? May 29 08:16:32 Blou_Aap: how do I take care of the 3D part, it's the turning over the phone that I need to detect May 29 08:16:39 not the orientation May 29 08:16:50 as a 2D orientation May 29 08:17:12 thats what i asked before, you said you using a combination of both May 29 08:17:25 the light sensor is used to do the flip over May 29 08:17:47 well, i need to know how it was turned from top to bottom, from right to left and so on May 29 08:17:57 hmmmm May 29 08:17:59 ok May 29 08:19:34 so basically, if the light sensor detects a turning, I need to detect orientation and do somthing accordingly> May 29 08:19:37 ? May 29 08:27:26 Hello May 29 08:28:27 Is it possible to wait after a user has not been typing in an autocomplete textview for a certain amount of time before doing something else? May 29 08:29:35 I am trying to show autocomplete elements from a php script with json, but I deep getting a random threadpoolexecutor exception. May 29 08:30:30 I read somewhere that it could be due to the fact that I am trying too many asynctask worker threads. May 29 08:37:10 hi is it efficient to use a alarm service to pull information about location periodically or better to implement location listener ? May 29 08:38:13 thepoosh, http://android-er.blogspot.com/2011/02/detect-phone-flipping.html May 29 08:39:22 Blou_Aap: thanks, my boss just told me to look at this too May 29 08:39:49 RazielZ: why share you're IP with everybody? May 29 08:41:09 no idea May 29 08:42:27 Anyone used an API for automatic saving of game data out over the cloud, so that it could be used on multiple devices? May 29 08:54:42 hi guys, does anyone know any good book to master creating professional UI interfaces? not finding much documentation and examples on the net May 29 08:59:45 Gambit-: reasonably sure there isn't one May 29 09:01:40 ocx, It's called The Book of Life - The Trial and Error series :P May 29 09:01:51 haha May 29 09:01:53 good one May 29 09:02:01 I think I need to stop service when the phone is locked and start when unlocked May 29 09:02:06 how to do that ? May 29 09:02:18 use bcast receivers? May 29 09:03:01 ocx: ok which intent then ? May 29 09:03:23 look it up i dont know its name May 29 09:03:39 ocx: so do I still need to code it as service ? May 29 09:04:46 yea since your activity will pause when your phone phone is locked, or implement onPause() ? :/ May 29 09:04:47 Hi guys May 29 09:05:17 do you know how to put a layout in overlay when you wake from lockscreen? (eg: music player) May 29 09:05:42 ocx: the thing is its not having any gui...basically I want to show location only May 29 09:06:15 ocx: sounds like I will start stop service in broadcast and in service update using notification May 29 09:07:38 hello May 29 09:08:03 stermi: watch out, on some devices you can't draw anything when the screen is locked. on others, you might be able to use a notification May 29 09:08:35 i have a problem following a tutorial from the official site, can someone help me please? May 29 09:08:48 Ge0rG, users (and boss) want the lockscreen feature for our music player :D So I need to implement that feature :) May 29 09:09:20 something is not ok, with gridview May 29 09:12:03 or should i ask somewhere esle? May 29 09:13:00 hi May 29 09:13:33 hi May 29 09:14:09 hello May 29 09:14:13 I've seen an example using @Override before a "public void onPrepared(MediaPlayer)" definition, since MediaPlayer.OnPreparedListener is an interface is that @Override needed or suggested at all? May 29 09:15:56 anyone here disposed to help me with my gridview problem??? May 29 09:16:16 Can anyone tell me , DO we have an android x11-session manager ie android-x11 similar to android-vnc , is it under construction ,or someonw has already done it May 29 09:18:01 hi May 29 09:18:34 how do i stream camera vids in my app? May 29 09:23:21 saintrafter: have you tried tutorials and camera API reference? May 29 09:23:52 have been searching the net for three days. no luck May 29 09:24:18 what do you mean by streaming vids? May 29 09:24:54 i mean i want to live stream the camera to s server May 29 09:25:34 so you want to send live video from camera to server via network like wifi? May 29 09:25:56 yes and 3g May 29 09:29:16 are you sure 3g network has good enough upload? video is bandwith intensive and 3g is designed for downloading, not for upload May 29 09:29:50 pihhan: the big marketing point of 3G was live video both way May 29 09:29:52 *ways May 29 09:30:29 have you tried MediaRecorder.setOutputFile with native socket identifier, connected to remote server as TCP connection? May 29 09:33:31 p_l: depends on what resolution and framerate will be used, you may believe the marketing, or not :) May 29 09:34:32 but i would expect you will have to catch each frame, pass it into video encoder, its output then sent over socket or http connection. May 29 09:36:20 a lot of work from my view, but i dont know high level apis that might be able do that quick May 29 09:42:40 I have only a service and receiver in apk then do I need to add intent filters main and launcher ? May 29 09:43:16 receiver is going to start/stop service so should I make receiver main and launcher ? May 29 09:49:21 mms_: no, those are for activities afaik May 29 09:49:48 appel1: thanks...I then have no main in my apk... May 29 09:51:49 hi guys. any idea how to manage the untrusted certificates? i need to get rid of them, actually i'm having a "No peer certificate" response.. May 29 09:52:06 mms_: are you sure yo do not want some configuration activity, or status display? it should not be needed, but users might expect some activity May 29 09:52:33 hey there i would use another http client lib, but it seems that i have to change the package name to use it? May 29 09:52:53 pihhan: actually I currently would have only status notification but then I am going to add later...currently using just logging May 29 09:53:38 for now can I guess I can stop service using setting right ? May 29 09:53:50 OK, sorry, network stopped working. May 29 09:54:20 pihhan: What would I need server-side in your solution? May 29 09:56:20 saintrafter: i dont know what you are supposed to do on the server with that video. You might just save it to file. I May 29 09:57:06 saintrafter: if you want work with that video, you would need complete decoding pipeline on server. May 29 09:58:36 If I manually exclude support for a certain device what happens to all the people who own that device and have already bought the app? May 29 10:05:34 whats the emulator key to lock / unlock the phone ? May 29 10:07:28 I want to move the play button to the right http://d.pr/i/wpW7 - should I use an horizontal layout with a spacer? May 29 10:14:49 thing is i want to live stream from one android camera to another android phone. saving the file won't be an option. May 29 10:15:54 I have a LinearLayout (vertical, FILL_PARENT, WRAP_CONTENT) and inside I want to have several TableLayouts. I want each TableLayout to have a android:marginBottom. But somehow these margins are not working. Does anyone have an idea why? May 29 10:19:52 because it's called layout_marginBottom May 29 10:19:55 not marginBottom May 29 10:19:58 sebastiandeutsch: May 29 10:20:50 readme: Sorry typo here in the chat - I've actually used android:layout_marginBottom="10dip" May 29 10:23:24 Fun fact. I have a static layout where it works. In my non working code I've adding the views programatically by inflating the TableLayout from an xml. May 29 10:23:53 Anyone know how to live stream from android camera to another android phone? May 29 10:24:04 I assume in emulator I will not get location updates ? May 29 10:24:22 sebastiandeutsch: fun fact.. more like information that was vitally needed to answer your question May 29 10:24:37 show me the inflated layout xml? May 29 10:24:46 you'll probably need to supply LayoutParams programmatically for your margin May 29 10:25:29 or, if you nest the TableLayout in the XML inside a FrameLayout, you could specify margin relative to that May 29 10:25:30 getLastKnownLocation will return null I guess in emulator May 29 10:29:25 mms_: open the emulator control tab in eclipse May 29 10:29:29 inject a location May 29 10:32:07 readme: hi I see contral tab it shows longitude and latitude....I guess I need to figure out my location details for it ? May 29 10:32:33 or shall I just use 20, 20 and then 30, 30 for testing ? May 29 10:33:10 readme: Here is the inflated layout xml: http://pastie.org/3987960 May 29 10:33:37 ok I am able to send the location but then geocoder fails May 29 10:33:52 so atleast I am able to test so far May 29 10:34:29 mms_: yes May 29 10:34:32 just pick a better loca May 29 10:34:37 is it possible to establish communication using adk .. where HOST will be PERSONAL COMPUTER? May 29 10:34:52 sebastiandeutsch: i think margin has to be relative to something, like an enclosing layout May 29 10:35:07 ok so now can I just export apk using eclipse and then copy to phone ? May 29 10:35:12 sebastiandeutsch: and when you just inflate it, don't supply a parent, and jam it in, the margin is ineffective May 29 10:35:22 so when you add it, you need to give it a set of LayoutParams May 29 10:35:25 programatically May 29 10:36:00 i mean usb communication using adk May 29 10:36:16 is it possible? May 29 10:36:25 where HOST will be PERSONAL COMPUTER? May 29 10:36:39 readme: ok I'll try that May 29 10:36:52 it will def work, I do it in one of my apps May 29 10:37:09 except I do it to position an item arbitrarily on the screen May 29 10:37:13 not to space things out May 29 10:37:29 readme: Can I specify the root when inflating? May 29 10:37:44 Hi all, I'm having a custom CursorAdapter and CursorLoader-problem on SO that I'd really appreciate if anyone in here could take a swing at: http://stackoverflow.com/questions/10785862 May 29 10:38:15 any body has fix to make win 7 recognize android htc g1 ? May 29 10:38:33 I have already installed google usb May 29 10:46:51 does anyone know how come Google's Play ranking has not been changed in 4-5 days ? it used to changed every day for months, is there already a bug reported ? May 29 10:50:05 btw about my own question layout_gravity was the answer May 29 10:52:57 sebastiandeutsch: maybe, i've tried it and failed May 29 10:53:17 i dont completely understand what that root param is for and usually just pass null May 29 10:53:31 I've tried to use it and my code crashed, every time May 29 10:54:08 hi. i call setInputType(InputType.TYPE_CLASS_NUMBER | InputType.TYPE_NUMBER_FLAG_DECIMAL); on an EditText May 29 10:54:18 i still can't enter a decimal point (nor comma) May 29 10:54:28 you can probably use a decimal? May 29 10:54:33 my problem was with just comma May 29 10:54:43 use android:digits="0123456789,." May 29 10:54:51 maybe there is a way to do that in code, lets see May 29 10:55:17 i tried both points and commas.. May 29 10:55:46 http://developer.android.com/reference/android/widget/TextView.html#setKeyListener(android.text.method.KeyListener) May 29 10:55:53 the way I fix it is in xml with android:digits May 29 10:55:59 but programatically you can use that May 29 10:56:03 ok May 29 10:57:06 in XML, when I use inputType="numberDecimal" I can use decimal points, but no comma May 29 10:58:55 readme: do you need the comma for some special purpose or is it just to support locales where a decimal comma is used? May 29 10:59:39 because people see the comma on the IME keyboard May 29 10:59:46 and since in the US we use it for numbers May 29 10:59:49 they expect it to work May 29 10:59:53 so yeah, locale partially May 29 11:00:52 to enable location on phone I need to go to Location and Security and enable Use GPS Satellite ? May 29 11:01:46 I am getting onProviderDisabled currently May 29 11:02:12 mms_: yes May 29 11:02:24 umm no May 29 11:02:26 vavirta: I did that on my htc g1 but it did nothing May 29 11:02:35 You can use gps or network based location May 29 11:03:07 vavirta: how to enabled location without having data service from carrier ? May 29 11:03:20 at least on htc desire there is Settings -> Location May 29 11:03:28 mms_: On the GN I go to Home -> Appdrawer -> Settings -> Location services and there get three options: Google's location service, GPS satellites and Location & Google search May 29 11:03:32 and two options, use wireless networks and use gps satellites May 29 11:04:11 drlaban: I have wireless and gps only May 29 11:04:43 mms_: have you enabled them? May 29 11:04:49 or atleast one of them May 29 11:05:27 vavirta: I have enabled GPS but it did not trigger provider enabled but on locking, unlocking I see its doing some thing May 29 11:05:59 but probably did not get updates May 29 11:06:31 I believe you are familiar with this tutorial? http://developer.android.com/guide/topics/location/obtaining-user-location.html May 29 11:06:34 it seems it not able to fetch location updates May 29 11:06:49 Make sure that you have request necessary permissions on your android manifest May 29 11:07:31 And that you are using correct location provider (if you have gps enabled, then LocationManager.GPS_PROVIDER) May 29 11:07:55 its shows a blinking sun in status bar when I unlock screen May 29 11:08:26 but then seems the locationChanged callback never occurs May 29 11:08:40 it tries for some time and then that blinking is gone May 29 11:08:41 have you registered it correctly? May 29 11:08:56 vavirta: register yes May 29 11:09:09 could you paste your class to pastebin? May 29 11:09:46 I get the user present notification May 29 11:09:51 yes sure May 29 11:10:31 http://dpaste.com/752978/ May 29 11:11:11 onLocationChanged is not getting fired May 29 11:15:02 and you are getting lastKnownLocation? May 29 11:15:24 vavirta: I do not know...I have not put logging statement for it...I guess not... May 29 11:15:27 have you tried GPS Status or other application, that is will get location? May 29 11:15:44 when registering your listener, try to set both numbers to 0 May 29 11:15:56 so you are requesting location when ever it is possible (read always) May 29 11:17:10 ok let me try May 29 11:20:59 because now it says that "obtain new location every 2 minutes or 5 meters" May 29 11:21:16 how can I use a contact uri (from pick intent) to fill an address of a sms? May 29 11:21:16 Name May 29 11:23:52 vavirta: lastknown location is null ...I added debug log May 29 11:24:45 I have changed time and dist to 0,0 ...lets see if any thing changes May 29 11:25:45 hmm, if lastknown location is null, I believe that you aren't requesting location provider correctly May 29 11:26:02 or atleast lastknown location will be null if provider is disabled May 29 11:27:00 so uhm, have you added correct permissions to your manifest file? May 29 11:27:48 May 29 11:27:50 you should have this line in your manifest file May 29 11:27:50 vavirta: I have May 29 11:27:50 fine and coarse both May 29 11:27:53 ok, you need only fine, because: May 29 11:27:53 that sun in status is blinking this time May 29 11:27:53 Note: If you are using both NETWORK_PROVIDER and GPS_PROVIDER, then you need to request only the ACCESS_FINE_LOCATION permission, because it includes permission for both providers. (Permission for ACCESS_COARSE_LOCATION includes permission only for NETWORK_PROVIDER.) May 29 11:27:53 keeps blinking May 29 11:32:57 I adjusted by display screen timeout to 30min so I now can rest easy May 29 11:33:04 while I do testing May 29 11:38:49 the signal strength is full but still why cannot it get location ? May 29 11:38:54 hmm, you are indoors right? May 29 11:38:54 vavirta: yes May 29 11:38:54 but signal strenght is strong May 29 11:38:54 Try to change provider to network May 29 11:38:54 gps signal or network signal? May 29 11:38:54 you mean in code ? May 29 11:38:54 yeah May 29 11:38:54 and without data enabled it will work ? May 29 11:38:54 and actiavte it from settings May 29 11:38:54 yeah May 29 11:38:54 activate what ? May 29 11:38:54 enable the network location May 29 11:38:55 I do not have that kind of setting May 29 11:38:55 settings -> location -> use wireless networks May 29 11:38:55 I have only two , wifi and gps May 29 11:38:55 the place where you did find two options, gps and the other May 29 11:38:55 yeah May 29 11:38:55 ok use wifi ? May 29 11:38:55 activate the wifi May 29 11:38:55 ok let me try May 29 11:38:55 it is the "network base location" May 29 11:38:55 no its in location and securit May 29 11:38:55 what is network base location ? May 29 11:38:55 I do not see such setting May 29 11:38:55 Use wireless networks? May 29 11:38:55 then atleast on my htc desire below "Use wireless networks" reads "Location determined by wi-fi and/or mobile networks" May 29 11:38:55 and by mobile networks I belive it means gsm-accesspoints etc May 29 11:38:55 What could be the cause when an AsyncTask is canceled that the onCancelled method from this Task is not executed? May 29 11:38:55 then you should able to use "requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0, locationListener);" May 29 11:38:55 bascially do I need to go into wireless network ? May 29 11:38:55 umm no May 29 11:38:55 ok May 29 11:38:55 wait let me do things May 29 11:38:55 just enable "use wireless networks" May 29 11:38:56 Hello, have anyone got libspotify v12 work in an android app? May 29 11:39:35 vavirta: should I then disable gps ? May 29 11:39:50 you don't need to May 29 11:39:56 ok I keep both on May 29 11:40:10 gps is just more accurate than network based location May 29 11:40:28 WHY am I getting NoClassDefFound: org.apache.commons.io.IOUtils when I clearly have hadded commons.io-jar as library in the build-path ? May 29 11:41:06 XeruX: put it in libs folder, maybe it makes it into the final apk too May 29 11:42:43 vavirta: that blinking sun in not coming up at all now May 29 11:43:03 looks like its not getting update from network provider ? May 29 11:44:17 blinking sun means gps, so it shouldn't be coming up at all now May 29 11:45:58 hmm, it seems correct to me.. May 29 11:46:16 do you have any errors or something in logcat? May 29 11:47:05 no errors May 29 11:47:14 lastknownlocation is still null May 29 11:47:23 apprently I was stashing shit instead of committing to another branch May 29 11:47:26 wtf is wrong with me May 29 11:48:18 What could be the cause when an AsyncTask is canceled that the onCancelled method from this Task is not executed? May 29 11:50:02 kazoooka: canceled too late? May 29 11:51:54 mms_: then I can't help... could it be that you are working with services? May 29 11:52:19 because I haven't ever use location obtaining from service, but I can't see why it shouldn't be possible May 29 11:52:36 vavirta: ok thanks ....I have one service and one receiver thats it in my code May 29 11:52:57 ok you mean carrier service ... May 29 11:53:00 hmmh, i dont know, could it be because of an interrupt exception? i heard it can only be canceled when you let it sleep for 1ms with Thread.Sleep(1); - May 29 11:53:28 but when i cancel the task i only get the exception, and onCancelled never gets called May 29 11:54:13 hey I see one exception in log May 29 11:54:49 its about D/SntpClient: request time failed: java.net.UnknownHostException: north-america.pool.ntp.org May 29 11:55:09 I hope its nothing to do with location service ? May 29 11:56:47 nope :/ May 29 11:57:22 ok May 29 11:57:47 seems the phone is unable to get location by gps and network both May 29 11:59:14 what can I do about this sntp error ? May 29 11:59:45 I think I do not have internet so I should disable it ? May 29 12:00:07 could anyone give me a hint why a query to phone numbers is always crashing? May 29 12:00:57 you could start by telling us what a "query to phone numbers" is May 29 12:01:36 select phonenumber from people May 29 12:01:46 where name like 'mom' May 29 12:01:51 oh May 29 12:01:54 * readme throws MomNotFoundException May 29 12:01:54 '%mom%' May 29 12:01:56 my bad May 29 12:02:10 i'll be your mommy readme May 29 12:02:14 :) May 29 12:03:21 heheh, i've made the user pick a contact with an intent and on the onResultActivity i'm trying to retrieve the picked contact's number.. I'm able to get the name, but the phone number query always crashes May 29 12:03:38 show code and stacktrace May 29 12:03:57 ok, the code is very poor but i will paste May 29 12:04:00 hang on a second May 29 12:04:45 https://gist.github.com/2828071 code May 29 12:05:10 https://gist.github.com/2828073 the error May 29 12:05:21 hi all, I am using a GridView to display some imageviews, unfortuanetly I cannot get the layout to correctly populate the entire area of the grid item :( If I click on a grid element, the selector show the exact area dimension I want. How can I make my imageview be as big as the selection area that encloses it? Thankx! May 29 12:05:54 requires android.permission.READ_CONTACTS May 29 12:05:57 andreluiz: ^ May 29 12:06:05 i've done that already May 29 12:06:11 show the manifest May 29 12:06:38 all of it or just the permission? May 29 12:06:44 just paste the whole thing May 29 12:06:47 ok May 29 12:07:03 "show me your code, stacktrace, manifest, the whole thing" May 29 12:07:04 :D May 29 12:07:09 https://gist.github.com/2828082 May 29 12:07:19 heheh :D May 29 12:07:36 andreluiz: not sure what that stanza is May 29 12:07:47 just take uses-permission and move it into the stanza May 29 12:07:53 i guess that since i'm making the user pick a contact, if the permission wasn't there i could not make that May 29 12:07:54 and delete your tag May 29 12:07:57 ahm May 29 12:09:13 you mean put uses-permission inside ? May 29 12:10:29 any one has got locationlistener to work ? May 29 12:10:40 I am not getting onLocationChanged to fire May 29 12:11:15 readme i just love you :D it worked May 29 12:11:16 thanks May 29 12:11:16 hehe May 29 12:11:44 hi guys, i'm making my first maven hello world with Android. i've created a intellij project with inside the app project and the integration tests app. i would like to use actionbar sherlock but in which pom is supposed to be the declaration? everywhere i put it i get java.lang.IllegalArgumentException: already added: Lcom/actionbarsherlock/ActionBarSherlock* May 29 12:13:46 :D May 29 12:14:04 which max signal strengths of PhoneStateListener.LISTEN_SIGNAL_STRENGTHS& May 29 12:14:11 in percent or what? May 29 12:14:31 woozly: it's probably documented by the javadoc of that key or phonestatelistener itself May 29 12:14:56 or in the worst case it's meaningless value. :-/ May 29 12:15:13 More a eclipse question then an android question: Is there a way to disable a package in a project in Eclipse? May 29 12:16:22 Myr: right click the package and exclude it from the build path May 29 12:16:23 the phrase 'disable a package' probably doesn't mean a whole lot to any one of us May 29 12:17:41 Thanks readme, that worked :D May 29 12:26:31 Hey people! May 29 12:27:44 I have a preferenceactivity and I'm trying to launch another preferenceactivity from it. The elegant way would be to have that in the XML, but it doesn't work. The error I get is that the second activity could not be found. May 29 12:27:48 Why could that be? May 29 12:28:07 The second activity is defined in the manifest... May 29 12:28:39 what's android.jar file that's in android-sdk-/platforms/ directory? May 29 12:29:15 I show a dialog from my activity. When I change the orientation of the device while the dialog is in the FG, I get a window leak exception, the dialog is automatically dismissed. How can I prevent this from happening? May 29 12:29:23 This is what I have in the preference XML: May 29 12:29:24 android:targetPackage="my.package" May 29 12:29:24 android:targetClass="my.package.otheractivity" /> May 29 12:29:44 What could be the reason it doesn't find otheractivity? May 29 12:36:39 UnbertKant: what are you trying to do? May 29 12:36:44 int st = 28; float z = st / 31; System.out.println(z); // why z = 0.0 ??? May 29 12:36:55 what I do wrong? May 29 12:37:15 UnbertKant: have you read http://developer.android.com/guide/topics/fundamentals/activities.html ? May 29 12:37:21 woozly: You are assigning an integer operation to a float variable :) May 29 12:37:28 it's not typecasted to a float until it does the assignment May 29 12:37:40 but how to do math operation? May 29 12:37:53 28 / 31 = 0.9 .. May 29 12:37:54 woozly: Coerce it May 29 12:37:57 woozly: float z = st / 31.0; May 29 12:38:18 woozly: you're doing integer math so 28/31 = 0 May 29 12:38:18 appel1: oh.. thanks! May 29 12:38:29 oh.. ive got it.. yeah.. May 29 12:39:20 hmm, or perhaps 31.0 would be interpreted as a double.. May 29 12:39:46 would that be bad? May 29 12:40:27 Well, I have these settings, defined in a XML May 29 12:40:41 When you click one one of them, it is supposed to open another settings screen. May 29 12:40:57 This is the first time I use these PreferenceActivities, so I'm not sure I'm doing it right. May 29 12:41:06 appel1: Well I would say float z = (float) st / 31; :) May 29 12:41:28 or just float z = st / 31f; May 29 12:41:49 yup, thats the best hack :) May 29 12:41:57 What's the best way to have a Settings screen where you can click one one entry and it opens another settings screen? May 29 12:46:00 java allows 1f but I recommend 1.0f if there is any chance you write C also... spares from code copypaste problems between languages May 29 12:46:53 Anyone got any experience with TouchDB-Android ? Trying to keep application synced with CouchDB-server, not sure how to procede.. Couldn't find any decent examples on teh net May 29 12:48:54 how much dpi has this tab http://www.samsung.com/it/consumer/mobile-devices/tablets/tablets/GT-P7500UWDITV ? May 29 12:48:58 320 ? May 29 12:51:39 question about play console, i have my own accuont, and someone wants to add me as dev to their account. will their apps just show up besides mine or how is this done? May 29 12:53:47 Is anyone here using EGit? May 29 12:53:56 I have used it in the past May 29 12:54:01 I prefer to just use git on the command line though. May 29 12:54:07 Since it's more obvious what is actually happening htat way May 29 12:54:22 I agree May 29 12:54:58 git gui is also pretty handy when you need to look at your branch history May 29 12:54:59 I use git from the CLI too. But I have a few project members (on Windows mainly) who just _want_ a UI. May 29 12:55:16 they should try tortiosegit May 29 12:55:21 And I must say, switching branches from within Eclipse is pretty nice. May 29 12:55:27 git gui May 29 12:55:29 call them noobs May 29 12:55:38 tortoise* May 29 12:55:56 I used to use tortoisesvn and it was awesome. I tried tortoisegit a few times and it's similar. May 29 12:56:07 egit, I don't recommend. May 29 12:56:13 TortoiseSVN is nice indeed. TortoiseGit, not sure. May 29 12:56:27 Yeah, EGit seems far inferior to MercurialEclipse for example. May 29 12:56:34 just use git gui May 29 12:56:35 Maybe I'll give IDEA a try. May 29 12:58:58 I don't understand some people. There are actually industry programmers that can't pick their own tools? They need you to go figure it out? May 29 12:59:16 * readme hasn't worked for any bigcorps. May 29 13:00:29 :D May 29 13:00:30 readme i prefer using it on command line as well.. for the time i was trying to use eGit i didnt know how to see diffs and if i start an android project or gwt i really dont know how to use egit to upload it to github.. so command line it is May 29 13:00:53 yeah i found it confusing. May 29 13:01:03 tried to hide the git underneath May 29 13:01:09 readme: I'd let them, if I wasn't afraid they'd mess up the repo. Guess I'll just see how things turn out. May 29 13:01:18 ah May 29 13:01:33 make sure they've got a good diff tool May 29 13:01:50 like, git diff ;) May 29 13:02:32 git gui that mikedg suggested looks fine May 29 13:04:01 I haven't used 'git gui' before. How can I do the equialent of 'git checkout --track origin/dev' in the GUI? May 29 13:04:32 no clue, i always use the command line May 29 13:04:41 except for comments May 29 13:04:44 and file picking May 29 13:04:48 sorry May 29 13:04:58 it could very well be missing huge features May 29 13:05:28 I doubt you're missing features. The CLI always seemed more powerful than any git GUI I met. May 29 13:05:53 http://git-cola.github.com/ May 29 13:05:57 i mean the gui could be missing otns of features May 29 13:05:57 might want to try it May 29 13:06:02 and i'd never realise May 29 13:07:59 is there a way to copy Android source code from google's servers, without repo? I need source code only, not all the change history May 29 13:15:23 What does this mean? May 29 13:15:23 android.database.CursorIndexOutOfBoundsException: Index -1 requested, with a size of 64 May 29 13:15:46 I am reading a String that is in my database, and I get it querying the DB with a cursor May 29 13:15:52 but in one of the field I get that May 29 13:15:54 did you use movetofirst May 29 13:15:58 or movetonext on the cursor May 29 13:16:06 I do May 29 13:16:09 it is in this loop: May 29 13:16:18 for(c.moveToFirst() ; !c.isAfterLast() ; c.moveToNext()) May 29 13:16:44 why not just while (c.movetonext) May 29 13:16:53 lol May 29 13:16:57 I like to write ^^ May 29 13:17:23 verbosityplusplus May 29 13:17:50 How can I know if I lost my GPS fix ? May 29 13:20:37 have any of you guys thrown money at advertising for your apps, or reviews? May 29 13:20:46 if so, where, and did it work? May 29 13:21:16 thrown money @ buying reviews? May 29 13:21:23 Sure May 29 13:21:38 I would pay for a review if I thought it would increase my sales May 29 13:21:49 there are too many corrupt people in the world to play fair against them all. May 29 13:21:51 -_- May 29 13:21:57 i'll review your app =D May 29 13:22:09 * Myr isn't really a fan of buying fake opinions May 29 13:22:27 ok goody two shoes May 29 13:22:35 Then again... I'm not exactly a saint either :P May 29 13:22:47 wongk: i would love that. should I PM you an apk? May 29 13:23:13 When I uninstall an APP, my DB is deleted for that APP? May 29 13:23:16 or it should be deleted? May 29 13:23:24 It should be deleted May 29 13:23:26 Tsukaza: if you keep it in its local app storage May 29 13:23:35 I just use the onCreate method May 29 13:23:49 readme: where do you have your app currently hosted? May 29 13:23:52 readme: i can't promise you anyone would read my review... does that matter? :P May 29 13:23:53 and create it by: catabase.execSQL May 29 13:23:55 market, myr May 29 13:23:59 Well my app goes to Download Apps May 29 13:24:00 wongk: that's fine May 29 13:24:01 name? May 29 13:24:11 the default path May 29 13:24:13 Going to check it out then May 29 13:24:22 not telling, you've shown me that you're bitter towards my opinion and I fear you'll leave a negative review to spite me. May 29 13:24:26 readme: awesome, that will be 1 million dollars May 29 13:24:30 :O May 29 13:24:35 wongk: how about 5 May 29 13:24:40 5 dollars that is May 29 13:24:50 5 million dollars?! May 29 13:25:19 Myr: sorry bro, risk management. May 29 13:25:44 "bitter towards my opinion" Alright :P May 29 13:25:57 I get tons of funny emails from spammers that promise me several reviews and spamming services that I decline if it makes oyu feel better. May 29 13:26:17 but I find it hard to believe if you could pay to get on tech crunch or something, and you had the money, that you wouldn't do it May 29 13:27:04 http://en.wikipedia.org/wiki/Crab_mentality May 29 13:27:17 Ok, found a way to do that in EGit and git gui. Conclusion: I'll give a short presentation on why the CLI is so much easier to use :x May 29 13:27:24 * readme knows the secrets of human behavior. May 29 13:27:44 Hmm May 29 13:28:07 I read this article not long ago about a guy who worked in an office somewhere. May 29 13:28:07 So, I have the default path for my APP, is it re-created when I uninstall and run it again tot he phone from IntelliJ? The database May 29 13:28:24 He was so productive that he finished all his work before everyone else. He used the rest of the time to run a sideline business in the office. May 29 13:28:28 I wonder how many people here use IntelliJ May 29 13:28:35 His coworkers ratted him out, even though he was doing better than all of them. May 29 13:28:38 Yeah... really... but I must use it... May 29 13:28:53 Management told him he could continue to run the business, because he was the most productive worker :) May 29 13:28:58 Tsukaza: This was a serious question. I see a _lot_ people in here using it. May 29 13:29:18 I know mate, I dont like it but I must use it May 29 13:29:30 But I need some help with my lil problem ^^ May 29 13:29:35 I have intellij installed May 29 13:29:38 but I don't like it that much. May 29 13:29:41 me 2 May 29 13:29:44 and it works like crap on my distro. May 29 13:29:50 distro? May 29 13:29:53 some libraries underneath must not be doing the right things. May 29 13:29:55 linux mint. May 29 13:30:02 everyone there should be fired May 29 13:30:07 him for not working May 29 13:30:14 the other people for doing their job poorly May 29 13:30:24 but still, paying people to do reviews is too risky for my opinion and pricy for my opinion May 29 13:30:24 he was working though. he was completing all his work every day May 29 13:30:30 shall I have a delete if exists sql statement in my onUpgrade? May 29 13:30:51 and he should have helped everyone else May 29 13:30:56 Myr: don't pay the full sum until you see a positive review May 29 13:30:59 lots will do it for free, though. May 29 13:31:05 if you send them nice emails May 29 13:31:16 but the better ones mostly charge, I would bet May 29 13:31:16 http://stackoverflow.com/questions/10800145/how-can-i-know-if-i-lost-my-gps-fix May 29 13:31:26 ... May 29 13:31:38 delete if exists? May 29 13:31:39 bad idea May 29 13:31:46 as opposed to what May 29 13:31:47 i assume you mean drop May 29 13:31:49 delete if not exists? May 29 13:32:01 but what if one of them starts spreading the fact that you have been paying for reviews= doesn't seem that great for your rep if they can make it solid May 29 13:32:18 I recently rewrote an app... the prior versionw as dropping all the databases every time it upgraded because the developer put DROP TABLE in the onUpgrade() May 29 13:32:25 CVirus: see my reply May 29 13:32:26 and pushed it to the market that way. May 29 13:32:44 dropping all the tables in the database* May 29 13:32:56 that can make sense for certain things May 29 13:33:01 why would you drop tables? May 29 13:33:02 readme: theres some google example that used to do that May 29 13:33:12 wongk: easier to upgrade May 29 13:33:16 for development it makes sense to drop them all May 29 13:33:19 *cough* what is wrong with that?, how else could one switch to a new database model? May 29 13:33:26 but for production and you want to not lose the user's data! it's not a good idea. May 29 13:33:30 mikedg: easier to drop all the user's data :P May 29 13:33:32 canadiancow|work: replied back May 29 13:34:07 wongk: heh, my client had one stars on his old app "lost all my conferences after the upgrade--uninstall" May 29 13:34:40 i can imagine May 29 13:35:01 CVirus, have you actually just tried this? May 29 13:35:09 rather than asking a question that you could answer yourself by just implementing it May 29 13:35:16 readme: yeah, but I need to delete my database and run it again May 29 13:35:22 I inserted new fields on my tables May 29 13:35:33 Tsukaza: i didn't say it was always wrong May 29 13:35:36 canadiancow|work: it doesn't make any sense man .. If I stop receiving location updates it means that I'm either standing still OR I lost GPS fix May 29 13:35:43 but, be careful when you push to production.. May 29 13:35:52 no May 29 13:35:53 fuck May 29 13:35:54 Yeah im not saying, the onUpgrade will be called if we ++ theversion and I wont do it... May 29 13:35:55 just go try it May 29 13:36:22 a negligible change in air pressure (i.e. happens every second) will affect the path the gps signals travel May 29 13:36:24 I cant delete my database and create a new one :/ May 29 13:36:25 CVirus: afaik, GPS updates aren't guaranteed May 29 13:36:28 and result in a "change" May 29 13:37:19 canadiancow|work: so if I stop receiving location updates for like 3-5 seconds it means that I lost the fix ? May 29 13:37:29 i wouldnt set the limit that low May 29 13:37:38 but i stand by my original point May 29 13:37:39 JUST TRY IT May 29 13:37:45 unless you want your phone to burn with heat May 29 13:37:56 you could have implemented and tested this in less time than it took for you to write your question May 29 13:38:11 hi all! May 29 13:38:39 canadiancow|work: I know that it would work but it is not the right way to do it .. I'm just abusing the onLocationChanged() method this way May 29 13:38:44 I can filter intents through actions, categories and data. Is there a way to filter them with extras? May 29 13:39:04 no May 29 13:39:15 why do you want to do that May 29 13:40:50 because I have a central broadcast receiver that needs to receive correctly formed data from peripheric activities. May 29 13:41:18 I know that because I'm developing every part of the project right now, it isn't a problem. May 29 13:41:49 so have it throw an exception when it gets bad data May 29 13:42:18 ah? will the exception get forwarded to the intent sender? May 29 13:42:25 thats like saying google's servers shouldnt respond when i go to http://google.com?cow=awesome because cow isnt a valid parameter May 29 13:42:48 you have a point there. May 29 13:43:56 so, the correct way of doing this would be to silently return in onReceive(), document everything and expect future developers to read the documentation? May 29 13:49:19 i wouldnt silently return May 29 13:49:22 thats the worst coding practice ever May 29 13:49:29 throw a big nasty exception so they know right away whats wrong May 29 13:50:13 big nasty exception May 29 13:50:16 every time you roll over an exception, a kitten dies. if you roll over an exception and then return a boolean, two kittens die. May 29 13:50:33 :( May 29 13:50:36 :P May 29 13:51:20 * readme was told to do the latter by project lead before. painful memories of that code. May 29 13:51:42 i just catch the exception, then do System.exit May 29 13:52:07 "Something went wrong: False" May 29 13:52:13 that only kills 1.5 kittens May 29 13:52:14 mikedg: you have been well seeped in C tradition May 29 13:52:25 lol May 29 13:52:45 Well, _is_ there a good reference on what to do with Exceptions? May 29 13:52:52 C was my first language. Doesn't mean I can't move on to new concepts. May 29 13:52:53 * Jug6ernaut just doesnt catch the exception ands liek fuck itttt May 29 13:52:54 I mean, of course not just e.printStackTrace(); May 29 13:53:03 kakazza: you throw them or you catch them. Do not try to insert them rectally. May 29 13:53:06 kakazza: yes, the first chapter or so of bjarne stroustrup's book explains the point of an exception. May 29 13:53:11 i email all exceptions to my lawyer May 29 13:53:18 he responds back with a cease and desist May 29 13:53:19 and all is well May 29 13:53:22 Jug6ernaut: throws Exception // not a single fuck was given May 29 13:53:39 throws Exception is good. May 29 13:53:48 that way you can generically throw all the exceptions up May 29 13:53:54 catch (Exception) May 29 13:53:54 canadiancow|work: let's throw exceptions, then! May 29 13:53:55 lol May 29 13:53:56 is safest May 29 13:53:56 readme: Is the concept of a C++ exception 1:1 the same in Jva? May 29 13:53:59 you will not miss any May 29 13:54:04 * Myr would look that first chapter up, but gave that book away as a birthday present May 29 13:54:05 kakazza: conceptually, it's the same May 29 13:54:07 catch (Throwable) even better May 29 13:54:15 at least, the POINT of an exception is conceptually the same May 29 13:54:21 implementation is of course different. May 29 13:54:44 decouple error handling from the structure of the code. that is the point. May 29 13:55:23 Yeah, "Something went really wrong". But I sometimes find it hard to decide what to do. From some I can recover into a usable state, some now. May 29 13:55:31 the advantage of an exception is that you can handle errors at a higher level of abstraction. in a language without them, you must handle them on the spot, or build your own mechanism to bubble them upwards May 29 13:55:44 and in java, thanks to GC, you can often get away with not closing things like filehandles properly too. They will get closed soon enough, so the code doesn't have to turn into a try { ... } finally { try { ... } catch (Exception e) { ... } } shit May 29 13:55:57 the new Disposable makes things even better too May 29 13:56:45 I keep seeing those try {} finally { try {} catch () {} } constructs, though. May 29 13:56:51 yeah I have code like that with the finally { try {} } :( May 29 13:56:59 they'll be gone with jdk7 May 29 13:57:00 I think Eclipse doesn't let you get away without it. May 29 13:57:06 try (foo) { ... } May 29 13:57:07 its hava 6 kakazza May 29 13:57:09 java* May 29 13:57:23 I know. But until 7 is widely used... May 29 13:57:27 iirc java 7 closes stuff for you, right May 29 13:57:31 Yep May 29 13:57:38 always good style to close what you have opened May 29 13:58:11 DashCC: But sometimes all you do is within 2-3 lines, but you end up with 10-15 because of try/catch/finally May 29 13:58:14 I had to write some of that try-finally-try-catch shit for one customer though which insisted that you must not leak objects under exceptional conditions. At least java version of "memory leak" is not real memory leak, just a temporary resource sub-utilization May 29 13:59:58 just comparing here to C++, anyway, where you actually could get memory leaks unless you are careful about exceptions May 29 14:00:30 GC marries very nicely with exceptions, and the one relative downside with lack of Disposable is going away May 29 14:02:27 I wanted to fiddle with an app idea I had, what language(s) does android support for apps? Is that on the link in /topic? May 29 14:03:00 supports rtfmlang May 29 14:03:30 ty for your professionalism :) Reading the devel link now, figured I'd ask since I was here. May 29 14:05:27 just java and if you want to get busy c++ May 29 14:06:10 Cool thanks xorgate; I figured java, but I wasn't sure. May 29 14:07:44 Why can't Eclipse see "GpsStatus.Listener" ? May 29 14:09:43 what's your first go-to format for saving local data and why? (XML, flat file, sqllite?) May 29 14:10:02 bad question May 29 14:10:14 the one that suites my use case May 29 14:10:22 ==wongk May 29 14:10:28 OK, discuss please :P May 29 14:10:35 heh May 29 14:10:49 my app will store a list of locations and things to do at those locations May 29 14:11:21 I am extremely skilled with SQL...I want to make it work on the cloud eventually... May 29 14:11:27 Tjololo12: np :) May 29 14:11:47 so that's my parameters I guess... May 29 14:12:33 so I was just going to do SQLLite, but when I researched it I came across this "NoSQL" movement and that had me thinking about it...I've allways gone to RDBMS without thinking about it May 29 14:12:49 well sql would be good for local storage, but JSON and XML are good for interacting with a REST service May 29 14:13:04 GeeksOnHugs: SQLite fo sho' May 29 14:13:12 every time you use a flat file, a kittle dies May 29 14:13:16 kitten* May 29 14:13:56 this example http://developer.android.com/resources/articles/timed-ui-updates.html is using OnClickListener rather than View.OnClickListener or DialogInterface.OnClickListener, is that just a typo or a non-tested example? May 29 14:13:59 SQLite and NO content provider, please :) May 29 14:14:01 OK heh...let me ask this...the REST service...typically how does it store the data in the "cloud"? May 29 14:14:10 with SQL, usually May 29 14:14:16 sometimes with hipster nosql May 29 14:14:37 nosql is big in the "big data" arena May 29 14:14:37 I see both interfaces are from API level 1 so it cannot be due to a change in API May 29 14:14:38 it seems like since the transport of data is XML and JSON, why not store it nativevly in those formats, so no code to parse the XML/JSON or build them? May 29 14:15:02 overhead May 29 14:15:15 XML and JSON aren't relational May 29 14:15:20 I know May 29 14:15:34 relational database is a huge advantage when you want to combine some data and crunch some numbers May 29 14:15:45 yep true May 29 14:15:52 use sql.............. May 29 14:16:41 I've been writing EMR for a while andd I realize the data is really semi-structured, and multi-media...I think NoSQL database might have solved some of the issues we had with it, but yah, other info like money stuff...we need to query it in a complex way May 29 14:16:57 kk, I'll use SQLLite May 29 14:16:57 if I was going to store a document, I believe XML would be suitable. If I was going to serialize an object in human readable form, JSON would be suitable. If I was going to need to store relational data, then well.. May 29 14:18:04 if i want to generalize ViewFlipper to be able to flip through N views May 29 14:18:05 I'm going to eventually set this app (and all my apps that it makes sense for) to keep data in the cloud (like with google app engine maybe), I guess I''ll cross that bridge when i get to it May 29 14:18:18 what's the easiest route.. subclassing ViewFlipper or ViewGroup May 29 14:18:27 tapas: ViewPager? May 29 14:18:39 GeeksOnHugs: my new take is store local first, cloud second May 29 14:18:46 Is a contentprovider required for using the CursorLoader? May 29 14:18:52 lots of apps I worked on we just said, lets use rest! May 29 14:18:53 readme, what do you mean May 29 14:18:58 and stored the data remotely May 29 14:19:03 but then, your app doesn't work offline -- boo May 29 14:19:08 true dat May 29 14:19:20 and so we had to implement sqlite and rework all the rest stuff to sync the sqlite May 29 14:19:24 should have used got as the backend ;) May 29 14:19:29 git May 29 14:19:31 maybe local data with a cloud "synch" May 29 14:19:32 now I do sqlite first, rest second May 29 14:19:47 m1hael: oh cool :D May 29 14:20:16 tapas: np May 29 14:20:23 m1hael: ah it's in the support package.. that's why i didn't fint it at first :D May 29 14:21:10 this is the article that got me thinking about it: http://radar.oreilly.com/2012/02/nosql-non-relational-database.html May 29 14:21:49 I'm interested but haven't put the time in to learn yet May 29 14:22:26 I'm reading a very thick and detailed book on sql right now May 29 14:22:52 what book? May 29 14:23:05 http://tinyurl.com/bwasxqb May 29 14:23:16 SQL is one of my few strong suites, lemme know i canhelp with anything May 29 14:23:22 sure May 29 14:23:29 on the docs site it says you should think about weather you need a contentprovider http://developer.android.com/guide/topics/providers/content-provider-creating.html but on stackoverflow I read if you want to use the CursorLoader/Loader frameowkr with a database you MUST use a content provider. May 29 14:23:38 i'm working on mastering May 29 14:23:45 nice...well sounds like you are with it too :) May 29 14:24:06 and an amazing attention span...advanced sql hehe May 29 14:25:03 why i can't use pixel perfect on real hardware? i always got with my nexus: Unable to get view server version from device 01498F8E0F00B005 developer mode is enabled... i don't understand it. May 29 14:25:14 this is the coolest geek product in a long time: http://commodoreusa.net/CUSA_C64.aspx May 29 14:26:00 a commodore 64 replica case with modern PC guts: http://commodoreusa.net/CUSA_C64.aspx May 29 14:26:06 GeeksOnHugs: I'm going slow May 29 14:26:10 keeping notes and going slow May 29 14:26:15 attention is hard May 29 14:26:32 if I lose it, I just bookmark the page, commit my notes to git, and do something else. May 29 14:26:43 yah, I got ADD, but I'm reading now online with nook and I find it better somehwo May 29 14:26:59 keep notes so you remember where you are, if not for any other reason May 29 14:27:01 I can hilight and put notes electronically May 29 14:27:06 oh, nice. May 29 14:27:11 safari doesn't have a highlight i don't think May 29 14:27:43 GeeksOnHugs>> lol. May 29 14:27:53 coupled with the graphics power of an nVidia GeForce GT 520 graphics chipset for improved 3D gaming ability. May 29 14:28:36 you will probably also like this http://news.cnet.com/8301-17938_105-57440374-1/commodore-64-bass-guitar-revenge-of-the-keytar/ May 29 14:28:50 The_Coolest well it's fun retro May 29 14:28:53 I'm reading... May 29 14:29:00 yeah May 29 14:29:54 wtf, looks like someone made android's intent system for javascript May 29 14:30:00 http://webintents.org/ May 29 14:30:55 readme rofl, yah I've seen that before :) <3 geek chicks hehe May 29 14:31:20 I'm' reading Anndroid Reciepes: a problem solution approach http://www.barnesandnoble.com/w/android-recipes-dave-smith/1100096103?ean=9781430234142 May 29 14:31:26 why i can't use pixel perfect on real hardware? i always got with my nexus: Unable to get view server version from device 01498F8E0F00B005 developer mode is enabled... i don't understand it. May 29 14:32:02 and App Empire (non technical about running an app business) http://www.barnesandnoble.com/w/app-empire-chad-mureta/1110834888?ean=9781118107874 May 29 14:33:34 drindt: i think you can if you have a developer version of Android May 29 14:33:42 is there a way to download zip archive of source for for particular Android platform version? For example, I'd like to download sources of the Android library 2.3.3 May 29 14:35:12 I want to work in the new civilian space industry May 29 14:35:23 SpaceX or something like that...how cool? May 29 14:36:15 hrnt, guessed that also, but my hope that isn't won't die... :-( May 29 14:38:54 just read an article that says "While there aren’t too many merchants that accept NFC payments (that’s soon going to change) " May 29 14:39:01 who DOESNT accept NFC? May 29 14:39:11 I don't May 29 14:39:40 canadiancow|work: i know a good place that only takes cash May 29 14:39:59 ok i understand not everyone takes it May 29 14:40:04 but from my experience, its pretty common May 29 14:40:09 pretty much every fast food place May 29 14:40:17 well any store where transactions under $25 are common May 29 14:40:19 I think mobile payments are nothing more than a nifty feature at the moment. Do you agree? May 29 14:40:28 who said "mobile payments" ? May 29 14:40:30 my visa has nfc May 29 14:40:33 right May 29 14:40:42 I like NFC credit cards better May 29 14:40:46 because they don't run out of batteries May 29 14:40:49 lol May 29 14:41:25 anyone know how to detect swipes left and right on a listview? May 29 14:41:29 i was able to buy pizza at an independent shop with square a couple days ago May 29 14:41:32 strugglign to find an example that works May 29 14:41:41 gaz`: what are you gonna do with the swipe? May 29 14:41:48 move to a new activity May 29 14:41:52 use a ViewPager May 29 14:41:55 and Fragments May 29 14:42:02 i just went down the viewpager route its only views May 29 14:42:06 not activities May 29 14:42:08 right May 29 14:42:10 use fragments May 29 14:42:14 i sort of almost had it May 29 14:42:17 ahh fragments May 29 14:42:21 still not touched em May 29 14:42:22 :-X May 29 14:42:26 Heya all. A bit general question: Can I send XMPP messages to GTalk users without a GTalk acocunt (jabber.org?) May 29 14:42:29 next app i def will May 29 14:42:34 Lachezar: yes May 29 14:42:39 you can even send from your own xmpp server May 29 14:42:47 but for now im on a deadline, was hoping i could mimmick it using a swipe then a transition to an activity May 29 14:42:53 readme: Wouldn't that be SPAM prone? May 29 14:43:15 readme: or does it require the appropriate DNS records for the XMPP service server? May 29 14:43:27 Lachezar: all I know is that I've done it before May 29 14:43:43 gaz`: anything you do is going to have a shitty and laggy user experience :-/ May 29 14:43:49 I forget whether it worked with my own setup, on ejabberd May 29 14:43:54 but the client's openfire definitely worked May 29 14:44:02 I don't know if he had to configure it at all May 29 14:44:22 evancharlton whys that? May 29 14:44:30 because the activity transition would begin after the fling? May 29 14:44:49 gaz`: its easier to use fragmnets and view pager May 29 14:45:13 damn May 29 14:45:24 has anyone got an augmented reality library they prefer? I'm looking to do location based, not marker based, and it doesn't need to be very complex. I'm finding a lot of libs that are more or less discontinued. May 29 14:45:54 gaz`: correct; you won't be able to slide the activity under the user's finger and have the next one page in May 29 14:46:24 right now i dont mind too much May 29 14:46:33 dragorn: lsd May 29 15:01:39 hi all May 29 15:02:23 how to check app version from not instaled apk file in java ? May 29 15:02:33 huh? May 29 15:02:52 like you want to see the version of an app in an APK on the filesystem May 29 15:03:25 aapt dump badging myapp.apk May 29 15:05:14 thats going in my protips file May 29 15:05:57 mikedg: like this? http://pastebin.com/F87Q3vMh May 29 15:06:38 is there any reason why a fragments onCreate would not run on UI thread? May 29 15:06:45 no May 29 15:06:49 hmm May 29 15:06:53 show code? May 29 15:07:16 kselos: http://pastebin.com/F87Q3vMh May 29 15:07:22 bc i have an async task that wont run its doInBackground(); May 29 15:07:34 which i can only assume wont run bc not on UI thread? May 29 15:07:46 but its being created & executed in onCreate May 29 15:08:00 https://github.com/tom-dignan/notes/commit/15d2c2208a2aa8c246f5848f860b4ede1c8fa9bf#Android May 29 15:08:05 code, you must show May 29 15:08:32 readme me? May 29 15:08:53 show code you must May 29 15:09:14 Jug6ernaut: You stick an @Override annotation on your implementation of doInBackground() to make sure you're not overloading? May 29 15:09:28 hey, actionbar uses a state-list drawables to underline a selected tab....does anyone know how I can reference those drawables and apply them to a textview so that my custom textview is underlined? May 29 15:09:58 jjnye well get this, if i install the app, it will run one time, close app, reopen doInBackground will not run May 29 15:10:19 is there such a conversion tool that can convert xhdpi to appropriate hdpi, ldpi, and mdpi May 29 15:10:24 does anybody know what the problem with cf-root and rommanager is exactly? May 29 15:10:26 Jug6ernaut: let me see your palm, and I will look into my crystal ball! May 29 15:10:36 lol May 29 15:10:48 Jug6ernaut: are you doing .execute() in onCreate()? May 29 15:10:57 yes May 29 15:11:10 no May 29 15:11:11 repeat is there such a conversion tool that can convert xhdpi to appropriate hdpi, ldpi, and mdpi ( not photoshop _ May 29 15:11:13 onCreateView(); May 29 15:12:18 right there is something called ImageMagick May 29 15:12:25 http://www.kickstarter.com/projects/rowdyrobot/tod-connect-real-world-actions-to-mobile-devices-a?ref=users hmm May 29 15:12:28 * Jug6ernaut goes looks at fragment lifecycle again May 29 15:12:38 Jug6ernaut: try doing it in onResume() May 29 15:13:58 john_doe_jr, you copy the resources into your project May 29 15:14:07 jjnye will do May 29 15:14:14 my widget is not showing under android 4.0 could someone post me a turtorial site or give meh help ? May 29 15:14:33 Jug6ernaut: onCreate() and similar functions only get run once unless the activity/fragment in question is cleaned up out of memory and needs to be reinstantiated. May 29 15:14:48 right May 29 15:17:06 @velazcod, @mikedg: i want to see version of packet from java code, and this package is not instaled yet May 29 15:17:29 so... how does ExpandableListView.setIndicatorBounds work? May 29 15:17:44 when you are designing icons for buttons in your app how do you determine what size the base resources should be? I understand you have the different dpi qualifiers however how do you relate your button size in dp to the pixel size of the image asset you use for the button/imageview? May 29 15:18:34 pfn: why can't I just use the actionbar state-list on my custom text view to have it underlined? May 29 15:18:44 because the resource isn't public May 29 15:19:05 you can use reflection to grab it, I suppose May 29 15:19:39 pfn: reflection? May 29 15:20:42 anyone know what this message ` [com.my.package.MainActivity] is not assignable to 'android.app.Activity' ` means? May 29 15:21:01 pfn: what is reflection? May 29 15:21:20 a reverse enigner tool or not ? May 29 15:21:47 alexfu: is MainActivity extending Activity? May 29 15:22:14 john_doe_jr, learn to google May 29 15:22:28 i have no idea what these parameters are supposed to do. i can see the indicator moving around the screen with different values but i can't see the math behind it. May 29 15:22:44 pfn: I'm googling as we speak May 29 15:22:45 jjnye, at some level, yes. In my specific case, MainActivity extends SherlockFragmentActivity May 29 15:22:54 http://developer.android.com/reference/android/widget/ExpandableListView.html#setIndicatorBounds(int, int) May 29 15:24:10 pfn: Reflection gives developers the flexibility to inspect and determine API characteristics at runtime, instead of compile time. May 29 15:24:24 is it posible to create a symbolic link in android to a shared library? May 29 15:24:30 alexfu: i've run into that before. depending on your IDE, try doing a complete rebuild, clearing caches, etc May 29 15:24:43 the library itself is trying to call thelib.so.12 May 29 15:24:53 john_doe_jr: after you google, you have to also research the topic ;) May 29 15:25:05 not just paste the first line of wikipedia and beg for more May 29 15:25:08 jjnye, will do May 29 15:25:32 readme: I'm not begging ...dang ...just giving a status update May 29 15:25:52 john_doe_jr: sorry, that was just my personal impression May 29 15:26:01 I cant help but have a subjective world view May 29 15:27:08 can i buy a turtor mentor here that is helping me on my app simple questions 20Euro ? i pay more as soon as needed May 29 15:27:28 readme: true but you can expand your subjected world view w/ more information May 29 15:28:23 what did you want to know about reflection? May 29 15:29:34 Oh, resources May 29 15:29:39 readme: well, I'm wondering why I can't just use the actionbar state-list on my custom text view to have it underlined?...pfn pointed out that it's private and I'd have to do some reverse engineering...I guess I'll just make my own state-list to get it underlined May 29 15:29:58 yeah.. you definitely don't want to use reflection just for that. May 29 15:31:16 you should still learn it, though. May 29 15:31:31 * Jug6ernaut wants to kill asynctask May 29 15:31:40 * readme wants Jug6ernaut to show his code already May 29 15:31:40 readme: well maybe later...don't have time... May 29 15:31:58 murder is a seirous crime May 29 15:32:03 serious* May 29 15:32:35 readme i have no idea what part to show you lol, its just a fragment, then a asynctask :\ May 29 15:32:54 show the fragment and the asynctask then May 29 15:33:02 maybe you just made a simple oversight May 29 15:33:07 you get any stacktraces or anything May 29 15:33:20 nope, just doInBackground not called May 29 15:33:28 lets see it May 29 15:33:37 if i call from onCreate it will always go through, but views are not created yet so useless May 29 15:33:53 if i use after onCreate it will run through a few times, then not. May 29 15:34:55 give me a few seconds to clean shit up then :\ May 29 15:34:59 haha May 29 15:35:23 yeah, if you have to refactor I might be at the grocery store, but I'll look at it later if the problem doesn't come to light after you clean it up May 29 15:36:31 lol alright May 29 15:40:23 hi May 29 15:40:51 hi all May 29 15:41:06 can i call a normal funcion from within a thread? will that break all the purpose of my async thread? May 29 15:41:30 i want to load more elements to my list via webservice and not slow the list down May 29 15:42:50 readme May 29 15:43:16 hmm May 29 15:43:19 yeah May 29 15:43:23 if i've got an activity with dialog theme May 29 15:43:28 how can i set it to non cancelable? May 29 15:43:41 override onBackPressed May 29 15:43:45 readme: http://pastebin.com/m6Sbbs2Z May 29 15:44:00 http://www.youtube.com/watch?v=316AzLYfAzw May 29 15:44:04 sorry ita s must May 29 15:44:12 important parts are just the async task really, and it being run lol May 29 15:44:41 I have strange problem :) My device is Android 2.3.7, I'm writing JNI application where I'm using SDL2. So, I'm trying to use javax.microedition.khronos.egl.EGLContext class which exists in android.jar, but when I run application on device I got this error: java.lang.NoClassDefFoundError: javax.microedition.khronos.egl.EGLContext May 29 15:45:39 so if yu got dialog theme and you just press anywhere on screen it triggers a onBackPressed for the activity? May 29 15:46:00 Jug6ernaut: why are you creating an additional thread in doInBackground? May 29 15:46:15 alowaniak: oh. pressing the screen causes cancellation? May 29 15:46:26 * readme did not ntoice this fbefore. May 29 15:46:32 bah, bad typing. May 29 15:46:38 try overriding onTouch, then May 29 15:46:43 readme just for monitoring timeout May 29 15:46:57 readme but even in a blank doInBackground problem is still there May 29 15:47:00 k ty, readme will try May 29 15:47:17 Jug6ernaut: I fail to see why you even need to have doInBackground if you are going to create the thread with that thread pool. May 29 15:48:14 besides the point :P May 29 15:48:24 alowaniak: add a new style inherit the default dialog style you currently use then add false May 29 15:48:25 that's a frivolous thread May 29 15:49:13 fine, i agree, will change...still besides the point xD May 29 15:49:15 alowaniak: what you want to do is to modify a window flag which i dont believe you can do once its been attached to the window manager May 29 15:49:23 so that above is the solution May 29 15:49:59 Jug6ernaut: on the times it doesn't run, what does getStatus() return? May 29 15:50:12 yes May 29 15:50:24 Finished May 29 15:52:41 I would be inclined to believe that your current hunch about why "the task isn't running" -- whatever that means, is completely off-base May 29 15:52:47 just start coming up with brand new theories May 29 15:53:12 Once you create a state-list...how do you apply that to a TextView? Apply it as a Background Resource? May 29 15:53:28 setBackgroundDrawable May 29 15:53:57 Is anyone using zxing to _encode_ QR codes? It's easy to find documentation on a scan but not on encode. I found that http://awalkingcity.com/blog/2008/10/23/qr-codes-made-even-easier-with-android/ but I don't get it. Everyone is doing a startActivity(intent); , cool but could I just have the QR to put it in a ImageView after that? May 29 15:54:49 i did that once May 29 15:54:55 i had to modify zxing though May 29 15:55:00 it didnt support the format i wanted May 29 15:55:15 but you can get it to generate a bitmap May 29 15:55:28 Yes this is what I want to do. Just generate a bitmap. May 29 15:55:40 In memory. And put that in an imageView. May 29 15:55:54 im about 99% sure it supports that... May 29 15:56:19 Jug6ernaut: also get an @Override annotation on doInBackgrouind May 29 15:56:29 as was suggested earlier by another chatter May 29 15:56:43 woops May 29 15:56:50 * Jug6ernaut assumed he had one... May 29 15:57:02 pcboy_: I use qrencode to encode QR codes May 29 15:57:26 it requires 5 or 6 lines of code May 29 15:59:31 sam: Where can I found qrencode? Are you talking about this? http://fukuchi.org/works/qrencode/index.html.en It's not available in java on the page. May 29 15:59:46 anyone know of a hello world that assumes you have no experience at all waith java? May 29 16:00:37 ive found a few nice tuts but they all assume you have a java background May 29 16:00:50 BloodSkin: java is reqired for android development, not optional May 29 16:00:58 anyone who tells you otherwise is incompetent and not to be trusted May 29 16:01:05 You can do scala too. May 29 16:01:08 not true, you can develop in c# as well May 29 16:01:17 BloodSkin: wow, I'm impressed May 29 16:01:18 And it works in C# and clojure with some issues. May 29 16:01:25 I didn't think you'd know about xamarin May 29 16:01:40 really i dont May 29 16:01:41 pcboy_: I assume if he was trying to avoid learning java, then suggesting scala would be a non-starter. May 29 16:01:55 I avoid java. May 29 16:01:58 BloodSkin: you know what you have to do then, learn java, or, as you've mentioned, C# May 29 16:02:02 ive just stumbled onto a few articles that declare there are ides for developing in sharp May 29 16:02:14 pcboy_: if you are going to tell me you know scala but not java, you're full of bull May 29 16:02:20 oi May 29 16:02:28 I never developed anything in java. May 29 16:02:44 Each time I tried I wanted to kill myself. May 29 16:02:56 pcboy_: but you've developed in scala? May 29 16:03:06 Yeah. I'm currently doing my android app in scala. May 29 16:03:25 Not that it's my first programming language though. May 29 16:03:34 You'll have to show me when it's done. I'd be impressed to see someone complete a whole scala application without knowing java. May 29 16:06:14 tl;dr learn java May 29 16:06:51 sam: Found it http://androiducl.blogspot.jp/2012/04/bitmap-in-zxing.html May 29 16:07:32 pcboy_: ah sorry, I stupidly assumed C/C++ May 29 16:07:45 readme: I don't see what's your problem. Why do you think someone can't do scala without knowing java? May 29 16:07:59 If you know functional programming and OOP I don't see any problem there. May 29 16:08:16 In fact I don't have any big problem for now. May 29 16:09:12 pcboy_: scala makes heavy use of java libraries and runs on the JVM May 29 16:09:36 it's possible, but you would probably never have a really good understanding of it without learning java, I think. May 29 16:09:47 scala has it's own collections which I'm using. It runs on the jvm right, and? May 29 16:10:17 I believe the exact contrary, that not knowing Java has a better chance of making you a good Scala developer May 29 16:10:46 well, it doesn't give you a better chance of becoming a good android developer May 29 16:10:50 that it runs on the JVM is irrelevant May 29 16:10:50 and guess what the topic is here May 29 16:10:52 thanks,c ase closed. May 29 16:11:40 You can do android developement without any problem in scala. In fact, this is even simpler most of the time. May 29 16:11:50 guess what, I've written thousands of lines of code for Android and I don't program in Java May 29 16:12:04 http://technically.us/oscon/#0 you should read that. May 29 16:12:58 show me a notable android project that is written in scala May 29 16:13:22 Don't get the wrong impression. I think it's a cool language. May 29 16:13:25 but, show me even one. May 29 16:15:58 readme: now see what you did, you killed the chat! :P May 29 16:16:48 harsh doses of reality tend to do that, sorry Zider May 29 16:16:51 readme: bump May 29 16:16:57 they're googling for scala projects May 29 16:17:19 http://robots.thoughtbot.com/post/5836463058/scala-a-better-java-for-android May 29 16:17:30 I know the author of this article, IRL. May 29 16:17:59 does scala really work well now? last time i checked it was pretty iffy May 29 16:18:07 scala is cool; my problem was that you were suggesting it to a clueless noob May 29 16:18:21 not that you can or can't write in scala May 29 16:20:16 I never even heard of it before.. May 29 16:20:26 what, scala? May 29 16:20:30 only "scaal multimedia" on Amiga.. but I'm guessing it's unrelated ;P May 29 16:20:35 it's a much less cumbersome version of java. May 29 16:20:37 scala* May 29 16:20:41 to put it crudely May 29 16:20:42 it's .. ok May 29 16:21:08 not saying that it's java. making a crude comparsion, just to be clear. May 29 16:21:40 so what's the drawback? May 29 16:21:56 well, lets start with the lack of examples May 29 16:22:12 the other drawback would be the lack of production code that is written in scala for android May 29 16:22:21 which makes it scary/risky May 29 16:22:27 other than that, no drawbacks May 29 16:22:33 I see May 29 16:23:00 you don't run into many bugs when you write a little hello world. you run into them when you try to write actual programs. May 29 16:29:28 Zider: my point was not that you can't develop in another language. It was that you're going to have a really hard time understanding the SDK examples, most Android resources, and the official docs, without java knowledge. May 29 16:29:40 i.e. it's a requirement. May 29 16:30:04 May 29 16:33:08 besides if you're going to develop anything nontrivial and you can't pick up java in like 5 minutes you're going to have problems anyway :P May 29 16:34:02 That was my point. You don't need to know java. If you understand OOP that's ok. It's not like java is throwing at you a ton of new concepts. May 29 16:34:14 I have absolutely no problem to get the docs. May 29 16:35:39 pcboy_: my original outrage was prompted by the fact that the person asking the question was attempting to avoid java *entirely* May 29 16:35:47 I wanted to get the point across to him that it isn't happening. May 29 16:36:25 sorry if I offended your love for scala or any other alternative language May 29 16:36:50 I think they are all cool options, although they are roads much less travelled May 29 16:37:20 really? it looked like they were looking for a java tutorial that started with the basics May 29 16:37:30 no, they specifically said "no java" May 29 16:37:46 oh, lame .. why would you .. never mind ;) May 29 16:37:47 I told them they need to learn java.... May 29 16:37:57 then pcboy said oh wait no, you can learn scala instead! May 29 16:38:30 Oh yeah of course. You still need to use the sdk so yeah you can't make a pass on that. Like using rubyMotion for doing iOS development will not make you escape from the iOS sdk docs in obj-c. May 29 16:38:33 oGMo: yes, it was a mistake to even give the time of day. May 29 16:39:11 though apparently we have spent the past 40 minutes discussing it ;) May 29 16:39:56 http://xkcd.com/386/ May 29 16:40:08 exactly May 29 16:41:44 oGMo: I was in fact more replying to "java is reqired for android development, not optional anyone who tells you otherwise is incompetent and not to be trusted" . Which is a plain wrong statement. May 29 16:41:54 it is required May 29 16:42:05 eh May 29 16:42:06 in the sense that if you don't know it you won't be able to understand any of the documentation or example code. May 29 16:42:25 you might think you understand it because of your ability to infer things from previous languages, but it will only be a shallow understanding. May 29 16:42:57 readme: i'd disagree. java is fairly readable, and if you're only interested in ndk/gl/game-related stuff, 95% of the platform is irrelevant, and you can grok the rest from examples .. given there are full ndk setup/teardown now, you might never even see a line of java May 29 16:43:01 Again, I've never wrote any line of java, I have no problem understanding the documentation or example code. I can even translate them to a scala version quickly. May 29 16:43:24 Java is not hard to understand at all. I don't see why I would have a "shallow understanding". May 29 16:43:24 I would bet you miss a lot of things due to your lack of a java background and just don't realize it. May 29 16:43:36 Java is actually a fairly large and complicated language. May 29 16:43:52 i doubt it .. java isn't exactly subtle May 29 16:43:55 Just because the learning curve is easy doesn't mean it's not complicated or can be avoided selectively. May 29 16:44:01 I know it's large and complicated. Like C++ is large and complicated. May 29 16:44:05 for the record, I learned java as I went as well. May 29 16:44:13 java isn't that large and complicated :p May 29 16:44:29 more than you think May 29 16:44:31 I still haven't even learned the basics :P May 29 16:44:35 oGMo: tell me the details of WeakReferences and the volatile keyword May 29 16:44:55 readme: weak references are an age-old concept if you know any GC-based language May 29 16:45:07 Java is not as complicated as C++ but it sure gets its dose of complication May 29 16:45:10 and if i really care to know about volatile i can look it up or guess on context May 29 16:45:45 here's another example. you wouldn't automatically know how java serialization works if you hadn't at least studied that May 29 16:45:49 oGMo: you should never guess because your guess will be wrong May 29 16:45:51 that's used in the SDK, too. May 29 16:45:57 bubbleguuum: ++ May 29 16:45:59 I love you May 29 16:46:00 of course i do all my primary development in common lisp, so java is like an ez-bake oven May 29 16:46:07 that's like guessing were optimization must be done May 29 16:46:14 guessing is for amateurs. Knowing is for experts. May 29 16:46:16 99% of case you will guess it wrong May 29 16:46:19 bubbleguuum: maybe if you have no experience with other languages .. including english May 29 16:46:51 what about the transient keyword? May 29 16:46:56 that's not exactly common sense May 29 16:47:15 * readme continues to think of more curveball java quesitons May 29 16:47:27 if you encountered any of this, it's easy to google May 29 16:47:32 what's curveball? May 29 16:47:41 and "not serialized" is a trivial concept :p May 29 16:47:48 i guess you work with a lot of idiots May 29 16:47:48 Zider: the vernacular for something that isn't intuitive May 29 16:48:25 these are easily googled and the meanings are very simple May 29 16:48:25 All of these are just syntax differences. There is nothing new. These are present in a ton of other well-used languages. May 29 16:48:26 oGMo: thinking you can just infer the details of a language without actually making an effort to learn it is not being intelligent, it's being arrogant. May 29 16:48:26 readme: umm.. I don't know what vernacular means either.. (not native english speaker) May 29 16:48:33 Zider: unexpected May 29 16:48:35 anytime I encouter a developer saying: "Oh but this is easy!". I avoid it like the plague. May 29 16:48:45 readme: really? May 29 16:48:46 the vernacular is what is common place expression of a thing May 29 16:48:52 unexpected is curveball May 29 16:48:56 ohh May 29 16:48:57 :D May 29 16:49:05 readme: you can't necessarily infer the details, but you might be able to in context, and failing that, you can look it up, and if these aren't obvious/immediate things you do looking at code, you don't read very much code May 29 16:49:19 I thought you meant it was unexpected that I'm not native english speaker :) May 29 16:49:44 oGMo: I learned java that way May 29 16:49:49 it's the worst possible way to learn something. May 29 16:49:54 maybe if you're new at learning May 29 16:49:59 no, I'm not May 29 16:50:08 though if i was learning a language i'd just read the documentation May 29 16:50:11 It totally depend on people. May 29 16:50:16 learning as you go is basically akin to drinking through a firehose May 29 16:50:27 try learning mathematics "as you go" May 29 16:50:33 or physics May 29 16:50:33 yeah .. you do it enough, it's not really hard May 29 16:50:34 Some people are better with practice/reading code, some are better with theory. May 29 16:50:40 why not learn rocket science while you build a rocket!@ May 29 16:50:43 great idea May 29 16:50:54 tell that to the people who invented rocket science as they were building a rocket May 29 16:50:56 This is I how I learned everything in my life. May 29 16:50:59 i.e., smart people May 29 16:51:12 brb May 29 16:51:57 oGMo: smart people would agree that if knowledge has already been recorded and a method of teaching that knowledge has thoroughly been developed, and that said knowledge is currently being disseminated in many forms, and is readily available, then learning by experimentation is a method that is doomed to repeat the failures of others who have come before you May 29 16:52:19 smart people don't learn just from their own mistakes, they learn from the mistakes of others May 29 16:52:30 agreed May 29 16:52:58 readme: sure. read the effing manual. but if you're learning something to write java, why wouldn't you learn java first? and if you're learning something to not write java (e.g., ndk), why would you need to? May 29 16:53:02 smart people dont make mistakes May 29 16:53:08 and they dont allow others to make mistakes May 29 16:53:12 no, smart people make mistakes and learn from them May 29 16:53:19 no May 29 16:53:29 people who don't make mistakes are self-deluded people who do nothing but make mistakes repeatedly May 29 16:53:33 smart people just know stuff better so they don't make mistakes May 29 16:53:41 your mom made a mistake! May 29 16:54:00 hopefully the smart people oGMo is talking about aren't in charge of any contagious disesase laboratories or nuclear facilities May 29 16:54:21 or meth labs May 29 16:54:35 smart people don't deal with drugs. :P May 29 16:58:38 hey guys, does anyone know what's going on with Google Play ? Its ranking is stuck since a few days ago May 29 16:58:57 guys, why I hasn't slide animation when I call another Activity? May 29 16:59:20 hi! I'm sliding fragments around in my activity in order to indicate navigation. These fragments are setting up action bar items. Is it at all possible to place the action bars inside the fragments such that they'll translate along with the fragments? May 29 16:59:33 woozly: why haven't you shown us source code? http://pastebin.com/ please :) May 29 16:59:43 orospakr: no May 29 17:00:23 evancharlton, ah, I thought as much. May 29 17:00:38 thank you. :) May 29 17:01:13 I can't believe nobody has noticed Google Play rank is stuck... come on, anyone ? I'm getting mad because I uploaded an app 5 days ago, and the rank has not been changed when it usually changes every single day (even more than once) May 29 17:02:05 xroberx: do you use a tool to check the rank May 29 17:02:12 or do you just surf to your app manually for a keyword May 29 17:03:01 readme: it's just not my app, every single app is stuck on the rank it has 5 days ago May 29 17:03:08 had May 29 17:03:22 xroberx: aside from that.. I am curious how you check yur rank May 29 17:03:27 I would like a way to check mine May 29 17:03:33 readme: manually :) May 29 17:03:42 gah :)( May 29 17:04:25 readme: it would be nice if Google provided the rank in the developer console... but maybe it is asking too much May 29 17:04:44 it should definitely be there May 29 17:04:55 give us some incentive to write better apps. May 29 17:05:21 you have an incentive May 29 17:05:22 money May 29 17:05:24 xroberx: the rank? May 29 17:05:37 mikedg: i've got a cool thirty bucks coming in this month May 29 17:05:44 but I'd like... $2000 May 29 17:05:45 evancharlton: the ranking of your apps, yes May 29 17:05:53 id like $50000 May 29 17:06:06 xroberx: want to buy my apps May 29 17:06:06 If there are no results, does a Cursor return null from query()? May 29 17:06:11 readme: setBackgroundDrawable is expecting a drawable but when I define a drawable it is just an int resource reference....How do I get a drawable to give to setBackgroundDrawable....? May 29 17:06:12 i have number one rank melon app! May 29 17:06:12 xroberx: that doesn't make any sense. May 29 17:06:14 raywan: no May 29 17:06:17 raywan: no May 29 17:06:18 melons mikedg ? May 29 17:06:22 leave me a link May 29 17:06:23 raywan: it returns a Cursor with a getCount() of 0 May 29 17:06:25 I'll check it out when I get back May 29 17:06:30 evancharlton: what does not make sense ? May 29 17:06:45 https://play.google.com/store/apps/details?id=com.mikedg.android.melon&feature=search_result#?t=W251bGwsMSwyLDEsImNvbS5taWtlZGcuYW5kcm9pZC5tZWxvbiJd May 29 17:06:57 What does the javadoc mean? "A Cursor object, which is positioned before the first entry, or null" May 29 17:07:05 when will null occur? May 29 17:07:15 raywan: when you have an exception May 29 17:07:20 and it doesnt actually return May 29 17:07:30 erection, i meant when you have an erection May 29 17:07:44 ok May 29 17:08:04 xroberx: your rank to whom? what device? what location? what carrier? There are a million factors which affect your rank; it's not some global single-source-of-truth list... May 29 17:08:32 thx May 29 17:08:50 raywan: it returns null if the database cannot be opened May 29 17:09:18 evancharlton: what do you mean ? every app has a rank associated May 29 17:09:49 every app has a million ranks associated May 29 17:10:05 :-S May 29 17:10:12 xroberx: what? May 29 17:10:28 you mean the rank varies by country ? May 29 17:10:34 xroberx: of course May 29 17:10:45 oh, I know May 29 17:10:47 xroberx: what happens if every single app "above" yours isn't available in the user's country? May 29 17:11:03 or for their device May 29 17:11:11 number 1 ENGLISH NOTEPAD APP in KHAZAKISTAN! May 29 17:11:15 readme: nevermind...figured it out setBackgroundDrawable(getResources().getDrawable May 29 17:11:16 or for their content level settings? May 29 17:11:32 number 1 ENGLISH NOTEPAD APP for ATT Motorola Flipout in KHAZAKISTAN! May 29 17:11:45 evancharlton: but that doesn't make it impossible to show the rank by country in the developer console May 29 17:12:03 xroberx: country isn't the only factor, as I said... May 29 17:13:06 oops May 29 17:13:13 guys, who know how to make default change-activity animation? May 29 17:13:27 hey mikedg May 29 17:13:31 when I startActivity() - no animation between activity ( May 29 17:13:37 hi napalm May 29 17:13:58 whats up dog? May 29 17:14:56 not a lot, just admiring how random data can help find bugs May 29 17:15:27 woozly: as I said before, show us your source code. We don't like to play guess-and-check :) May 29 17:15:34 I can't May 29 17:15:35 ) May 29 17:15:39 oh whenever that happens I throw out all my code since it's probably fubar May 29 17:16:10 mikedg: im injecting random data to test layouts how and how they react May 29 17:16:18 now just to cure all these issues May 29 17:17:55 ah rounding errors May 29 17:18:01 my favorite :| May 29 17:18:55 Hello- please respond "42" if you see this post May 29 17:19:29 don't use floats for currency! May 29 17:19:36 rgvneil: no! *refuses* May 29 17:19:58 "42" if you see this post May 29 17:20:07 mikedg: indeed May 29 17:20:11 Zider: Sorry, first time irc'er here May 29 17:20:36 mikedg: tks... May 29 17:20:39 this is the wrong channcel for your first time May 29 17:20:44 try #teenvirgins May 29 17:22:27 Anyone here ever use JDBC from Android? I *KNOW* it's not usually a good idea - but in this case it is intranet only wifi connection and no web server to do a REST request. May 29 17:22:29 ? May 29 17:24:19 I tried the current mysql jdbc driver 5.1.20 and3.0.17 (the one that comes up when you google "the only jar that works" May 29 17:29:35 ... May 29 17:30:06 rgvneil: did you add this jar to the "libs" folder of your project? May 29 17:36:48 wongk: yes May 29 17:37:06 rgvneil: so what are you experiencing? May 29 17:37:17 wongk: it gives the class not found error May 29 17:38:10 in Class.forName("com.mysql.jdbc.Driver"); May 29 17:38:18 I mean when trying to execite the line " Class.forName("com.mysql.jdbc.Driver"); May 29 17:44:03 I'm getting strange behaviour in my app. I have a section in my code where I log a debug message using Log.d and yet the message does not show in my LogCat. However I'm certain that section gets executed because I added a toast there there that does show up. May 29 17:44:09 Anybody knows what could be causing this? LogCat appears to be working since i see many other messages. May 29 17:44:32 i'm not sure what the purpose of that Class.forName pattern is supposed to be, but i assume it's not the cause of the error May 29 17:44:47 rgrinberg: check your logcat filter and the device logcat is trying to use by selecting the device in ddms May 29 17:45:18 Napalm: will do May 29 17:47:29 Napalm: thanks that seemed work May 29 17:47:41 is there a way to view log messages from the console though? May 29 17:47:53 from what console? May 29 17:47:57 what do you mean May 29 17:48:11 outside of eclipse, in a terminal window May 29 17:48:39 yea May 29 17:48:41 http://rootzwiki.com/news/_/articles/fridays-big-question-is-the-verizon-nexus-experiment-a-failure-r803 May 29 17:48:45 just run: adb logcat May 29 17:49:05 helps to filter the output May 29 17:49:13 hey, I've got a drawable that sets the background color to gray when selected but I'd like to underline the text when the textview is selected...any idea? May 29 17:49:21 Napalm: thanks agin May 29 17:49:23 again* May 29 17:50:47 wongk: Do you happen to know how to use JDBC with Android? May 29 17:51:22 i know how to use external jars, i don't know anything about JDBC specifically May 29 17:51:33 I think any jdbc that is pure-java should probably do it May 29 17:51:41 not sure if android contains the javax.sql stuff May 29 17:52:29 if the ClassNotFound is the class he's trying to load specifically, and not some dependent class, then it's likely a problem with the jar May 29 17:52:40 http://dev.mysql.com/doc/refman/5.1/en/connector-j-usagenotes-connect-drivermanager.html May 29 17:53:15 The question is "How do i get to my mysql db from android BESIDES build a rest interface with php and a web server?" - the answer might be jdbc May 29 17:54:17 i'm not that experienced in java - if anyone can help me understand what Class.forname is about that would be cool, but I'll add the bit taht mentions "broken imp of java' i forgot about that May 29 17:55:38 it's essentially reflection May 29 17:56:00 yeah, that makes sense, i have used some reflection, fields by name and such May 29 17:56:20 i'm just not sure what hte POINT is in this case? e.g. it says "dont import or it will mess up" seems extremely screwe4d up May 29 17:56:41 yeah, it doesn't mention wh at the issue is, specifically May 29 17:56:59 seems to indicate some JVMs are blroken May 29 17:57:56 * wongk meeting May 29 17:58:38 * GeeksOnHugs is back, and better than ever! May 29 17:59:57 alankila: I tried an example that worked from a java desktop app first May 29 18:01:33 it's probably a horrible interface to connect to some external mysql server from java directly May 29 18:01:56 that implies your mysql db is wide open to the world, with username and password known to all May 29 18:07:28 I have a button in an activity, and when it is clicked, I want to retrieve data from my fragment. Whats the best way to do that? An interface in my fragment for a button in the fragment works, but not when the button is outside the fragment. May 29 18:07:55 how can i display some view in place of my listview before the data is loaded into it in a case where onCreateView returns the view with the listview? May 29 18:10:00 just include it in the xml that has the listview and then hide it when data is loaded? May 29 18:11:14 luxurymode: http://developer.android.com/reference/android/widget/AdapterView.html#setEmptyView(android.view.View) May 29 18:11:37 wongk, thought thats for when theres nothing to display, i.e. when the dataset in the adapter is empty? May 29 18:11:56 this is before the adapter is set May 29 18:11:56 is that not what you asked? May 29 18:12:22 no, the empty view is for when you set the adapter and whatever list you used is empty May 29 18:12:28 seems like it would be empty if no adapter has been set May 29 18:12:33 hmm May 29 18:12:41 yeah no use talking about, lemme just try :) thanks May 29 18:19:12 if u use android:theme="@android:style/Theme.Dialog" to make your activity "float" is there a way to use the transitions between activities still? doesnt seem to work now May 29 18:19:39 gaz`: better to use a dialogfragment May 29 18:19:51 is it possible without? May 29 18:20:07 not sure May 29 18:26:48 hello May 29 18:29:28 how would I underline a textview on focus? May 29 18:32:47 alankila: it's on an intranet May 29 18:32:54 port 3306 is not open to the outside May 29 18:32:56 oh. May 29 18:40:23 john_doe_jr: with StateListDrawable, as you were trying to before. May 29 18:45:18 paste your statelistdrawable source May 29 18:45:22 if you want May 29 18:48:17 if i put an empty style on an EditText, will that fuck anything up? May 29 18:49:18 inherit May 29 18:49:53 @android:style/Widget.EditText May 29 18:50:35 sensible May 29 18:50:36 ty May 29 18:50:49 how do I read logcat when my app force closes or goes into debug mode, and all I see are tons of error messages and I cant distiguish what it is causing the crash, i use logcat with error filter May 29 18:51:23 what is your filter May 29 18:51:49 readme: alright....but I just have the setBackgroundDrawable...and this works but how do I underline May 29 18:52:10 what filter am I supposed to put May 29 18:52:13 john_doe_jr: put a line across the whole thing or only underline te text? May 29 18:52:13 I typed in my app name... May 29 18:52:30 filter as in viewing only "errors" May 29 18:52:34 if the latter, I'm not sure it's supported May 29 18:52:42 hkhalid: what are you using to view the log? May 29 18:52:51 on the other hand, making a nine patch with a thin line across it is easy May 29 18:52:57 wongk: eclipse May 29 18:53:00 readme: it's not. it's kinda crazy that you can't do something as simple as a border imo May 29 18:53:21 hmm, you should be able to do a border witha nine patch? May 29 18:53:29 isn't there an orange boarder on focused edit texts? May 29 18:53:34 border* May 29 18:54:00 eclipse w/ your app name shouldn't spew out an unmanagable amount of data May 29 18:55:15 readme: underline the text May 29 18:55:21 wongk: there are a lot of errors, in the filter, its blank, I dont know what to type to filter out just app errors so I can find out why its crashing May 29 18:55:24 but honestly it doesn't really matter May 29 18:55:53 john, go with a drawable.. May 29 18:56:09 unless you want to draw the line with a canvas or something May 29 18:56:23 you can measure the size of font with the FontMetrics class May 29 18:56:36 to figure out how far to draw the line.. in your custom textview May 29 18:56:56 readme: well, how would I do it w/ a method....like now I have tvOne.setBackgroundDrawable(getResources().getDrawable(R.drawable.tv_state_colors)); ...how would I do draw a line instead of changing the background May 29 18:57:17 john_doe_jr: uh, I think it would be best to extend May 29 18:57:23 hold on a sec, I'll write one May 29 18:57:31 hkhalid: should work with some piece of your apps package name May 29 18:57:32 by a sec I mean like 15 minutes. May 29 18:57:41 readme: you don't have to May 29 18:57:48 readme: I'll figure it out May 29 18:58:25 readme: Here's something interesting I found: http://www.technotalkative.com/android-underline-text-in-textview/ May 29 18:58:36 wongk: thanks dude! May 29 19:02:03 hey guys... I'm trying to figure out how to set up the chartdroid libraries in my project, but the only available downloads are APK files. Am I able to include APK files and use chartdroid? How does this work? May 29 19:03:11 ninjai: sounds like you should ask the chartdroid folks? May 29 19:03:32 * evancharlton | As a developer, you need only to have your users install the library, then implement a Content Provider according to this simple specification. May 29 19:03:40 it's an app that gets installed alongside yours May 29 19:03:45 sounds like a stupid design to me May 29 19:03:51 if I'm to build android.jar from 4.0.3 sources, what should I include in it so most apps can compile against it? I saw this article: http://androidforums.com/application-development/1045-source-code-android-jar.html but it seems outdated May 29 19:04:22 ChartDroid is an Intent-based "library application" ... nuff said May 29 19:04:49 that being said it's open source May 29 19:09:11 evancharlton, thanks, so my suspicions were correct. That is such a stupid design May 29 19:09:33 are there any good free charting libraries I can put into my apps that anyone knows of? May 29 19:10:29 i'm trying to load my app's activity to handle a specific URL scheme, does anyone see anything wrong with this intent filter? https://gist.github.com/e8f83aab6c439bfc156a i'm just getting no action at all happening when i load a URL like that from an NFC tag or otherwise. i've tried with and without the host, and http scheme or made up one May 29 19:10:59 or is there something else i need to do? i added internet permission, even though i don't think that's needed, not sure what else to try/do May 29 19:11:27 I want my activities background to flash red and blue. What is the best approach? May 29 19:16:36 ninjai: try acahrtengine, although its not great either May 29 19:16:40 *achartengine May 29 19:17:07 i wouldn't recommend androidplot any more, it seems the community has fallen apart May 29 19:17:43 * g00s very thoroughly evaluates all aspects of a project before using it on non-hobby apps May 29 19:18:08 how to change the Android library (android.jar) against which project is compiled? May 29 19:19:10 i think we looked into achartengine at some point May 29 19:19:28 hey guys, my application needs to download a file to the phone. That works all fine (shows up in DDMS) but I was wondering what the normal place to store application-specific files (that users shouldnt see) is? I would prefer not to write it on the sdcard storage, file wont be larger than 20kb May 29 19:30:29 Hello everyone. Do you thing it's possible to have custom status bar notification with a TextView with counting down time value (dynamically changing)? How would you do this? May 29 19:32:18 canadiancow|work: did you guys settle on something ? May 29 19:32:25 no May 29 19:32:32 one guy was just doing a side project May 29 19:32:42 ive been waiting for him to come back to his desk so i can ask him May 29 19:32:43 :P May 29 19:32:49 i wasnt really involved May 29 19:32:54 good (free) charting libraries are hard to come by on every platform May 29 19:33:21 Can anyone help with JDBC? May 29 19:33:26 i think they are inherently challenging to write. so many styles of charts, as well as many customization points May 29 19:33:55 And, on a related note, why are my "Referenced LIbraries" section hidden in eclipse I wonder? May 29 19:34:14 see: http://shariqmobin.wordpress.com/2010/03/06/hello-world/ May 29 19:34:47 (step 4) May 29 19:35:01 Anyone have any thoughts? May 29 19:38:32 specifically it seems like I dont 'know how to add class libraries, never mind that I've done it before May 29 19:38:43 I'm gettin ga ClassNotFoundException in " Class.forName("com.mysql.jdbc.Driver").newInstance();" May 29 19:41:11 When I right click on the project and click build path-> configure build path - it looks ok May 29 19:42:46 that is to say under the libraries tab there is "mysql-connector-java..." as expected May 29 19:45:07 john_doe_jr: here, I basically wrote an underlined edit text May 29 19:45:28 note that on ICS, text is already underlined but not all the text.. only while typing and making spelling errors May 29 19:45:31 readme: really...where? May 29 19:45:33 my underline is in green May 29 19:45:37 https://github.com/tom-dignan/android-underlined-edittext/blob/master/src/com/tomdignan/underlined/UnderlinedEditText.java May 29 19:45:41 leslie: ^ May 29 19:45:55 it needs extra work though, it currently uses some hardcoded values I put in for expedience May 29 19:45:59 but it basically works May 29 19:46:26 ah, interesting May 29 19:47:01 readme: awesome ...thank you ...see I was doing something like this: if (TabOneText.isSelected() == true){ TabOneText.setPaintFlags(TabOneText.getPaintFlags() | Paint.UNDERLINE_TEXT_FLAG); May 29 19:47:11 what! May 29 19:47:13 no way May 29 19:47:21 did it work? May 29 19:47:40 a more general Border widget might be useful May 29 19:47:52 what would that look like, a box around the text? May 29 19:48:14 I'm thinking if he found an easier way to make underlines, that I could instead make this "strikethrough" May 29 19:48:16 yeah. I dunno if you've used HTML, but think like CSS borders May 29 19:48:22 readme: I couldn't get it to work but I was just about to debug May 29 19:48:31 ah May 29 19:48:35 yeah that's doable May 29 19:48:42 i'll make more later tonight May 29 19:49:02 file an issue on github if you want May 29 19:49:05 or is there something else i need to do? i added internet permission, even though i don't think that's needed, not sure what else to try/do May 29 19:49:10 sry May 29 19:50:41 hi May 29 19:51:30 why galaxy tab 10" has a density dpi of 240 ?? May 29 19:52:16 how could i load on it drawable of xhdpi ? May 29 19:53:23 R.drawable.urdrawable May 29 19:53:24 :) May 29 19:54:10 what ixc ? May 29 19:54:24 i dont understand ur problem May 29 19:54:36 u have a id for ur drawable as R.drawable.filename May 29 19:54:40 no May 29 19:54:41 ech0s7: Galaxy Tab 10.1 has a DPI of 149, not 240, it's mdpi May 29 19:54:56 leslie, Galaxy Tab has 240dpi May 29 19:55:00 if u want use drawable that not depend on dpi, put them to -nodpi May 29 19:55:12 ech0s7: what model? May 29 19:55:12 leslie, getWindowManager().getDefaultDisplay().getMetrics(metrics) May 29 19:55:18 the 10" is mdpi May 29 19:55:20 return DisplayMetrics.DENSITY_HIGH May 29 19:56:35 excuse me canadiancow|work and leslie May 29 19:56:48 i was reading about an LG 400+ ppi screen yesterday May 29 19:56:49 galaxy tab 10" has DENSITY_MEDIUM and SCREENLAYOUT_SIZE_UNDEFINED May 29 19:57:14 but it is different from a mdpi smartphone May 29 19:57:23 g00s: the 5" fullhd? :) May 29 19:57:35 how to make out the layout drawable resources? May 29 19:57:36 ixc: that could be it , don't remember :) May 29 19:58:02 ech0s7: just make one resource for each of l/m/h/xhdpi May 29 19:58:14 ls May 29 19:58:21 leslie, already done May 29 19:58:28 will we need xxhdpi soon :) ? May 29 19:58:32 what's the problem then? May 29 19:58:52 but if i run application on smartphone with a small display that has the same dpi (mdpi) May 29 19:58:53 g00s: vector graphics :) May 29 19:59:04 i'm trying to load my app's activity to handle a specific URL scheme, does anyone see anything wrong with this intent filter? https://gist.github.com/e8f83aab6c439bfc156a i'm just getting no action at all happening when i load a URL like that from an NFC tag or otherwise. i've tried with and without the host, and http scheme or made up one May 29 19:59:05 android load the same resources May 29 19:59:13 and this is wrong May 29 19:59:19 well May 29 19:59:22 ixc: i use inkscape for all mine, yeah. but i would like to be able to provide the toolchain svgs instead May 29 19:59:34 you can make a directory called mdpi-xlarge, ech0s7 May 29 19:59:34 yes May 29 19:59:49 ech0s7: it works for everyone else, why not you? May 29 20:00:16 i think work for he too, just he has problem with explain it :) May 29 20:00:55 I think it's more a case of just disliking that a screen with 149 dpi gets the same resources as one with 180 dpi. but it's really not a problem May 29 20:01:04 kadoban: you shouldn't need the host part, I'd expect that to work for a testtest://... url yeah May 29 20:01:23 kadoban: it's inside your activity definition? May 29 20:01:24 wongk, leslie compiling project i get invalid resource dir name May 29 20:01:44 ech0s7: did you name it drawable-mdpi-xlarge ? May 29 20:01:49 yes May 29 20:01:52 kadoban: you can eliminate the nfc part by just making a web page with a testtest:// link in it and hitting it in the browser May 29 20:01:53 hmm May 29 20:01:53 drawable-mdpi-xlarge May 29 20:02:01 dragorn: okay, thanks...yeah it's in the activity definition. there's nothing i should need to do in code just to get my activity to start, right? or a setting on my phone that'd prevent it? May 29 20:02:10 I don't see why that wouldn't work May 29 20:02:16 xlarge-mdpi May 29 20:02:24 er, you can combine mpdi and xlarge like that? May 29 20:02:35 http://dl.dropbox.com/u/278026/Schermata%2005-2456077%20alle%2022.02.01.png May 29 20:02:47 let me see if that works, i tried a link on my personal web page, not sure i tried just typing that in though May 29 20:02:49 wongk: something like that May 29 20:02:59 kadoban: it should start the activity, tho unless you get the intent it won't do much. I don't know of settings that would prevent it. May 29 20:03:01 Any idea about this error when working with the facebook api? http://codepad.org/IMKrhb8g May 29 20:03:04 ech0s7: i think first xlarge then mdpi May 29 20:03:40 drawable-xlarge-mdpi compiles May 29 20:04:12 but galaxy tab 10" doesn't load them May 29 20:04:16 everythingWorks: Caused by: android.os.NetworkOnMainThreadException May 29 20:04:27 i have already clean the project May 29 20:04:44 wongk: You think i should execute the whole thing in an own thread? May 29 20:04:50 dragorn: k, thanks...good to know it should work, at least...not sure why it's not tho May 29 20:04:59 thats what it suggessts , right? May 29 20:05:01 everythingWorks: you have to run blocking io in its own thread May 29 20:05:03 everythingWorks: certainly May 29 20:05:22 everythingWorks: "have to" for various definitions of "it will cause app not responding" to "newer android versions will just error, like this" May 29 20:05:26 everythingWorks: youve been in here for like a year now May 29 20:05:33 and you are still running into the most basic issues May 29 20:05:40 o.o ehm no May 29 20:05:48 mikedg dissaproves May 29 20:05:48 its still the first time i use the fb api May 29 20:06:02 this has nothing to do with the facebook api May 29 20:06:05 However, you can run io stuff on the main thread without getting an exc like this May 29 20:06:06 it's basic threading May 29 20:06:17 its fb-api special that this exc is thrown May 29 20:06:18 s/can/should not May 29 20:06:25 done! May 29 20:06:34 it is not specific to the fb api May 29 20:07:00 what is not specific? May 29 20:07:04 agreed. that's basic threading May 29 20:07:07 the exception May 29 20:07:08 the error May 29 20:07:25 it's specific to access the network on the main thread May 29 20:07:29 any network calls should be done in another thread, one look at that error will tell you that May 29 20:07:38 android.os.NetworkOnMainThreadException May 29 20:07:40 everythingWorks: It depends on the android version. Android is trying to prevent sluggish apps and app not responding by detecting blocking io on the UI thread and throwing exceptions May 29 20:08:05 well done, android May 29 20:08:08 yeah right, api level 11 May 29 20:08:32 This is probably why i've never heard of it :o May 29 20:08:44 thanks dragorn ;) May 29 20:08:56 Doing network IO on the main thread has always been a bad idea, now it punishes you for it May 29 20:09:07 +1 :) May 29 20:10:00 mikedg does all his network IO on the main thread, he likes to be punished May 29 20:11:41 hm, bitmapfactory.decodefile is run on main thread, not start a async task, right? May 29 20:11:59 (So i first thought it would be an fb exc, obv. ;) ) May 29 20:12:07 if you think it will cause your program to lag, then do it in an AsyncTask. May 29 20:12:17 depends on how big the bitmap is May 29 20:14:30 readme: i just thinking about in adapter binds i use drawables for imageviews May 29 20:14:59 and basicly if its appear async is no prob May 29 20:20:35 oh good its not only in my head, http://developer.android.com/training/displaying-bitmaps/process-bitmap.html May 29 20:21:38 JakeWharton: minor issue with forcing overflow, splitting the action bar when narrow and a longish text: http://imgbin.org/images/8216.png May 29 20:22:15 https://github.com/JakeWharton/ActionBarSherlock/issues/475 May 29 20:22:26 would rather have "start logging" appear in the overflow menu since it doesn't really fit May 29 20:22:56 but i'd like to to still appear on the actionbar if there's room on larger screens... so i don't want to remove the attribute May 29 20:23:34 hrm. May 29 20:23:47 this is a framework bug ? May 29 20:23:56 that's what jake's claiming May 29 20:24:10 wonders never cease May 29 20:24:42 the actionbar looks great otherwise May 29 20:24:59 tested on 3.2 and the sherlockpreferenceactivity is gorgeous May 29 20:25:09 abs 4.1.0 is out? :) May 29 20:25:20 i prefer honeycomb's preferences activity to ics's May 29 20:26:55 not sure what an icon for "Start/stop logging" would look like :p May 29 20:27:20 a red and green ying yang ;) May 29 20:27:53 pragma-: maybe a mic with and without a slash through it, with a wifi rainbow around it May 29 20:28:20 or maybe just the tired tapedeck start / stop icons May 29 20:29:03 bummer, another botched kindle photograph book :( May 29 20:29:24 do people even know what a tapedeck is anymore? May 29 20:29:37 similar to poopdeck? May 29 20:29:44 who wants to see my mixed tape collection May 29 20:30:52 do people even know what a phonograph is anymore? May 29 20:31:28 Woman: "Honey, I'm pregnant!" Man: "Shit, I knew I shouldn't have gone deeper." -- CONCEPTION -- May 29 20:32:48 "Last quarter, Research in Motion's backlog of unsold BlackBerry handsets and PlayBook tablets grew to more than $1 billion in value, underscoring the company's struggles to sell its products." ooouch :O May 29 20:33:15 pragma-: they don't know what a floppy looks like aeither May 29 20:33:15 lol blackberry. May 29 20:33:19 but we still use that May 29 20:33:34 readme: maybe you should see a doctor about your floppy May 29 20:33:51 they have pills for that! May 29 20:33:56 i can't -- obama took away my health insurance May 29 20:34:02 :o May 29 20:34:04 you figure rim would get the picture and slow down production :P May 29 20:34:06 ;) May 29 20:34:36 RIM, the new palm May 29 20:36:11 Could someone tell me how to embed a custom view inside of another one? Like a UserControl or include. May 29 20:37:38 wongk: fb should buy webos etc from hp for their new phone so they can appropriately market their device as the "facepalm" May 29 20:37:42 Jeremyz: http://android-developers.blogspot.com/2009/02/android-layout-tricks-2-reusing-layouts.html May 29 20:37:52 oGMo: haha May 29 20:37:55 that is a good one May 29 20:38:03 Thanks wongk May 29 20:38:04 nice May 29 20:38:23 oGMo: i thought hp was just open sourcing it? nothing to buy, right ? May 29 20:38:38 it is open May 29 20:38:40 is fb really making a phone? May 29 20:38:42 g00s: it doesn't really matter in the context of the joke :p May 29 20:38:47 wongk: sadly May 29 20:38:51 oh jeez May 29 20:39:09 i won't be using it. seeing as how I don't have a facebook. May 29 20:39:11 did they finally remove all the superfluous launcher icons from their android app? May 29 20:39:20 reading zuckerberg's motivation for a fb phone, if accurate, was a truly wtf moment May 29 20:39:35 the truly sad part is that people will buy them May 29 20:39:56 Wongk - What if I want to be able to reuse the code associated with the layout as well? May 29 20:40:06 fragments May 29 20:40:06 then we will be interviewing for jobs, and people will ask "Oh, do you have facebook phone experience?" May 29 20:40:20 * g00s thinks his app needs a phone too May 29 20:40:26 its own phone :D May 29 20:40:46 Any way to do it with 2.2 framework? May 29 20:40:57 there was an article last week on making your own phone, its not too crazy :) May 29 20:41:01 fragments May 29 20:41:04 g00s: what's his motivation? May 29 20:41:15 "Android introduced fragments in Android 3.0" May 29 20:41:15 by the way, zuckerberg totally walks like a girl May 29 20:41:29 Jeremyz: lrn2support library May 29 20:41:31 Jeremyz: check out the support library May 29 20:42:02 Thanks May 29 20:42:10 see 0:30 http://www.youtube.com/watch?feature=player_embedded&v=5dcODUcfT6Q May 29 20:42:39 pragma-: "A Facebook employee indicated that Zuckerberg is "worried" that, without a phone, Facebook could be relegated to simply being an app." May 29 20:42:47 see mark sashaying, wiggling his butt and swining his arms like a girl May 29 20:42:52 uh, well it is just an app :) May 29 20:42:52 swinging May 29 20:43:07 its a website May 29 20:43:23 next he needs to team up with elon musk --- spacebook May 29 20:44:19 Maybe they should start out by creating an android app with a higher score than 3.6.. May 29 20:46:21 http://chrome.blogspot.com/2012/05/next-step-in-chrome-os-journey.html May 29 20:46:57 18 tons of greek yogurt spilled out on an upstate new york highway after the truck crashed May 29 20:47:27 that will reek May 29 20:47:31 according to time magazine, 51% of young adults think facebook is a fad May 29 20:47:31 get your spoons out May 29 20:48:23 haiku os ftw May 29 20:48:42 HaikuOS ... i'd buy it May 29 20:48:50 what is a fad? May 29 20:49:02 our cto was one of the founders of BeOS May 29 20:49:21 i installed that for a day or so May 29 20:49:34 in 1998 May 29 20:49:35 i think the only reason they hired me was cause i was such a fan of his and we chatted for an hour instead of interviewing May 29 20:49:52 well played May 29 20:49:56 :) May 29 20:49:59 what company May 29 20:50:10 BOKU May 29 20:50:22 im not yelling, thats the name, its in all caps May 29 20:50:34 birbeck, if beos wasnt greedy and not saying he had steve by the balls, that would have been osx using beos instead of next May 29 20:50:36 like DIRECTV May 29 20:50:47 more companies should do all caps May 29 20:50:55 FACEBOOK May 29 20:50:59 hkhalid: and in that case i would have been an os x fanboy today May 29 20:51:02 :D May 29 20:51:03 birbeck, i read thje steve jobs recent book, it said he had steve by the balls in a business position May 29 20:51:27 birbeck, congrats oin the job though May 29 20:51:40 wongk: I sometimes think people at the top of the intellectual food chain deliberately disseminate ways for idiots to identify themselves so they can be avoided May 29 20:51:46 I think caps lock is an example of this May 29 20:51:54 pragma-: but this comment is interesting "Facebook is a platform company without a mobile platform in a world becoming increasingly mobile." May 29 20:51:54 hkhalid: however, the story i heard is that they wanted steve which would only come with next, so any price for beos was too high May 29 20:51:57 if he could do that again, he could stick them in his pocket May 29 20:52:03 readme, have you heard of fnord lol May 29 20:52:29 birbeck, ah May 29 20:52:47 readme: I DON'T UNDERSTAND May 29 20:53:01 hkhalid: I hadn't looked at this for a while, but I don't think I appreciated it then.. but I do now :) May 29 20:53:14 hkhalid: and they paid like 10x more for next than they would have for be May 29 20:53:19 wongk: lady gaga is on facebook May 29 20:53:23 go check it out May 29 20:53:26 !!1 May 29 20:53:48 readme, np, not sure if you are familiar with metaphysics of those books, nice to meet you, same with you birbeck May 29 20:54:11 hkhalid: i think i might go check the library for it today May 29 20:54:31 readme, do you know nick bostrom May 29 20:54:50 I'll check him out May 29 20:56:43 those new chromebooks and chrome os actually look kinda cool May 29 20:56:53 if only they could run eclipse... or ubuntu May 29 20:57:40 vmware for chromeos ;) May 29 20:58:01 chrome remote desktop beta May 29 20:58:19 might try setting up a vpn when i get the update May 29 21:00:30 * readme to the library! May 29 21:01:39 readme: hey, I'm using your class that you made and it underlines the entire span in a blue line...did you code that in your class b/c I don't see it May 29 21:03:18 wongk, how do you run chromeos? do you use lime/vanilla? May 29 21:04:18 what do you guys think of this comment on HN ? http://news.ycombinator.com/item?id=4039695 May 29 21:04:57 this explains more of the point of even having dalviik May 29 21:05:15 I cant wait to get a boot2gecko phone May 29 21:05:45 g00s: google has made no effort to hide their view that web based apps are the future May 29 21:05:46 a chromeOS phone May 29 21:05:56 thats what I want May 29 21:05:58 not going to happen until those cellphone providers stop bsing with caps May 29 21:06:22 however some people have been saying it for over a decade but consumers are making it clear they do not consider that the future May 29 21:06:53 who gives a shit about the consumers, just make it first, or at lest demo it May 29 21:06:53 i think cloud is fine as long as you don't have a gate keeper like AT&T/Verizon May 29 21:06:56 well, the problem also comes when your phone isn't updated much, and you are stuck with a browser of questionable HTML5 capabilities for 2 years straight May 29 21:07:09 kinda puts the damper on mobile web May 29 21:07:25 g00s, have you used boot2gecko May 29 21:07:33 hkhalid: no, i have not May 29 21:10:36 i was messing with chrome://flags and really fucked things up good :) May 29 21:12:43 Anybody knows why youtube embeded videos cannot be played using the webview ? ? based on this code , >> http://stackoverflow.com/questions/5817805/how-can-we-play-youtube-embeded-code-in-android-application-using-webview May 29 21:14:04 Is there a way to display preferences as a View, not using PreferencesActivity? May 29 21:14:20 of course May 29 21:14:26 just write to SharedPreferences yourself May 29 21:14:52 ...and full UI? May 29 21:15:38 note also the existence of PreferenceFragement May 29 21:15:45 *PreferenceFragment May 29 21:16:15 fragment? sounds like high api version :) May 29 21:16:46 support libs are yor frend May 29 21:16:51 ohai ctate May 29 21:17:05 I want to have a simple progress wheel whilst I download a 20kb file as the application opens. Lots of examples seem to point me to running separate threads and using asynctask but is that overkill? May 29 21:17:10 ctate does support lib support PFrag? May 29 21:17:14 it shouldnt take more than 1-2 seconds to download May 29 21:17:21 canadiancow|work: actually that is a good question May 29 21:17:26 it does not May 29 21:17:33 bah May 29 21:17:37 checked: "Since: API Level 11". I need it for 8. May 29 21:17:38 i usually just use one xml file and load it into a prefact and preffrag May 29 21:17:42 ctate: did you see the responses in that bug you asked me to submit? May 29 21:17:45 depending on what OS im on May 29 21:18:06 Drakonite: sorry no May 29 21:18:21 Timmaah1201: yes, you need to use a thread. I would recommend AsyncTask. May 29 21:18:24 I use the technique from this: https://github.com/commonsguy/cw-android/tree/master/Prefs/FragmentsBC May 29 21:18:28 g00s, do you think b2g is the fture May 29 21:18:28 ctate: basic response I got was "do it yourself" May 29 21:18:36 sigh May 29 21:18:38 for backward compatibility and using preferenceFragment May 29 21:18:45 hkhalid: i have absolutely no idea :) May 29 21:19:05 doesn't abs have a freferenceragment ? May 29 21:19:08 readme that looks like what im using May 29 21:19:22 g00s: freferenceragment ? May 29 21:19:23 :P May 29 21:19:25 :P May 29 21:19:38 hehe May 29 21:19:39 ctate: http://code.google.com/p/android/issues/detail?id=29895 if you want to check it out again. I didn't expect a better response; I haven't been seeing useful responses to other bugs. May 29 21:19:55 spelling failailail May 29 21:20:01 f'n fragments.. how do they work? May 29 21:20:33 I cant use "Preference" views in simple activity's layout. So, how I could display prefs than? Write all UI using standard controls and handle all events manually? May 29 21:20:53 Drakonite: bringing up and verifying a 4.5 toolchain would be a *lot* of work May 29 21:21:09 readme: they are just objects that hook into the activity lifecycle. they can provide a view for ui; they are not recusrive like viewgroups, and not contexts like activities May 29 21:21:22 After adding the android support SDK, creating a fragment and including it in my layout I keep getting 'Error inflating class fragment' on the control in my layout. Is there a step I missed? May 29 21:21:26 it's not so much the bringup that's a mess; it's verifying that it builds correctly and that the result runs correctly on all combinations of host + target architectures that we have to support May 29 21:21:38 ctate: I disagree. It would be substantially less work than 4.6 yet bring up a large number of the same fixes. May 29 21:22:16 at the cost of getting even more behind w.r.t. moving up to 4.7+ :( May 29 21:22:40 i'm not saying it doesn't suck for you, but i can see that there are at least some valid reasons not to bother with 4.5 May 29 21:23:33 I'd rather have a working toolchain now than wait another year (or more?) May 29 21:24:15 you can build it and label it as an experimental / unsupported ndk release for all I care, eliminating a big chunk of the testing May 29 21:24:18 Drakonite: could you write the inline in assembly ? May 29 21:24:27 is it simple enough ? May 29 21:24:54 that being said, I'm not going to push it anymore as it isn't worth the effort; like I said almost every issue I've ever looked at on that site has gone unfixed May 29 21:25:00 g00s: no, that isn't how inline works May 29 21:25:25 yeah, what was i thinking May 29 21:25:30 you'd have to copy/paste the code all over the place essentially, which gets to be very messy and defeats the point May 29 21:27:35 but really, without benchmarking inline functions its hard to even know if they help, since they often mess with locality of reference. May 29 21:27:50 test May 29 21:29:25 is it possible to listen for phone calls just like you can with sms', where if a phone call comes, you can have it decline the call and send a txt message out via smsmanager May 29 21:30:53 hello May 29 21:32:05 * g00s imagines Drakonite shaking his head May 29 21:32:26 hkhalid, http://android-developers.blogspot.com/2011/01/processing-ordered-broadcasts.html May 29 21:33:12 Has anyone here used JDBC successfully with Android? May 29 21:33:47 thanks Zharf ! May 29 21:36:29 I have the original samsung galaxy s using 2.3.6. Is there a way to test the latest v4 OS on my phone? May 29 21:36:37 evancharlton: Do I need to explicitly define an onProgressUpdate() and onPostExecute() ? May 29 21:39:25 Hello i am trying to stream a live video stream from my server to my android phone using rtsp. none of the code i found on the net worked. i downloaded an app from google play called rtsp viewer and it worked with my stream. can anyone help me? May 29 21:44:09 Do I have to register fragments in the Manifest or something? I have an empty fragment with just an onCreateView() method, but keep getting an error trying to inflate it. May 29 21:45:04 damn lost network... Hello i am trying to stream a live video stream from my server to my android phone using rtsp. none of the code i found on the net worked. i downloaded an app from google play called rtsp viewer and it worked with my stream. can anyone help me? May 29 21:50:13 Jeremyz: no, fragments do not go in the manifest file May 29 21:50:42 Jeremyz: need to see the xml or java which is loading the fragment to help at all May 29 21:51:47 how does one place a progressbar in the application header? The place which usually has the app name? May 29 21:52:46 Timmaah1201: in my app i just have a state list drawable in my layout May 29 21:52:56 its not a part of the title bar or action bar May 29 21:53:53 Birbeck - http://shorttext.com/VVsCRpM http://shorttext.com/aDYtYc6 May 29 21:54:05 There's the view and fragment May 29 21:54:27 Jeremyz: what was the error you got? May 29 21:55:02 ah k thanks May 29 21:55:09 g00s: sorry, had a phone call May 29 21:55:14 does anyone know why my progress bar seems to just continue and never cease? http://pastebin.com/ZPkQU7cF May 29 21:55:47 Timmaah1201: because you made it indeterminate? May 29 21:56:04 ppl any comment ? May 29 21:56:14 g00s: it's a valid comment, most people how no frakking clue about inlining and when to use it. Particularly on CPUs with small i-cache, too much inline can be bad. The bug in question prevents the compiler from picking good inline spots where they are obviously good as well though May 29 21:56:16 leslie - "05-29 16:55:48.163: E/AndroidRuntime(15220): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.believersresource.passages/com.believersresource.passages.PassageActivity}: android.view.InflateException: Binary XML file line #22: Error inflating class fragment" May 29 21:56:29 hmm May 29 21:56:32 g00s: and for what it's worth... the inline directive is only a hint, compilers are free to ignore it if they please May 29 21:56:38 leslie: ya, was testing around.. changed it so deleted that line in the .xml and made it Window.Feature_Progress but its doing the same thing May 29 21:57:19 g00s: that being said... my framework uses inlines (and pragma/attribute for forcing inlines) to cause some folding that actually reduces code size by a fair amount May 29 21:57:53 I have an Action Bar with tabs on it - how do I get the Fragment of the currently selected Tab? I have as far as actionbar.getSelectedTab() but that does not take me any closer to the current fragment? May 29 21:58:05 leslie/birbeck - Here is line 22 that it's complaining about. http://shorttext.com/xIbOnG May 29 21:58:44 Jeremyz: class, not android:name May 29 22:01:32 birbeck - Odd all the examples I saw had android:name and the compiler accepts it. I just switched it to class instead, but I still get the same error. Perhaps they are interchangeable? May 29 22:03:40 Jeremyz: did you do android:class or class. It should be just class May 29 22:04:22 but that error points to there being a issue in the fragment layout, i believe May 29 22:04:52 birbeck - I have Which returns the same error as with android:name May 29 22:05:09 anybody? how to get the current fragment of the currently selected ActionBar tab? May 29 22:05:44 Here's the fragment layout again: http://shorttext.com/VVsCRpM May 29 22:06:12 What error are you getting, exactly Jeremyz? May 29 22:06:33 Sleepybear - 05-29 16:55:48.163: E/AndroidRuntime(15220): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.believersresource.passages/com.believersresource.passages.PassageActivity}: android.view.InflateException: Binary XML file line #22: Error inflating class fragment May 29 22:07:00 so there must be some sort of error in your fragment layout or code May 29 22:07:31 Fragment layout: http://shorttext.com/xIbOnG Code: http://shorttext.com/aDYtYc6 May 29 22:07:53 Do I need to adjust my framework version? I'm using the support package and min framework of 8 currently. May 29 22:08:25 as long as you're importing the right things May 29 22:08:27 that should be fine May 29 22:08:56 try a clean build after changing it to be class= instead of android:name= May 29 22:09:14 I copied 'android-support-v13.jar' to the /lib folder and added it to the build path. May 29 22:09:58 How do I do a clean build from Eclipse? I've just been using the run button which seems to recompile it each time. May 29 22:10:08 do you set the progressbar within the asynctask? Or in the .xml of the UI-activity that will be displaying it? May 29 22:10:16 Jeremyz project->clean May 29 22:11:07 Timmaah1201 Use the built in progress bar in the title bar May 29 22:11:21 I think it's setIndeterminiteProgressVisibility() May 29 22:11:31 after you request the window feature May 29 22:11:55 i need to call that in the UI-activity, right? May 29 22:12:29 Jeremyz: you want support v4 May 29 22:13:34 also, eclipse will automatically pickup jars from the libs folder in your project folder, you should use that instead of lib May 29 22:14:02 Timmaah1201 yea, or pass the context to the asynctask May 29 22:14:13 Sorry guys, I'm having some problems doing the clean that I'm working on. I'm getting permission denied trying to delete the /bin/res folder even though I'm admin. May 29 22:14:29 did you run eclipse as admin? May 29 22:14:29 I don't think I need v4 support. May 29 22:14:33 and yea May 29 22:14:37 you do need v4 support May 29 22:14:46 you need support v4 for 2.x+ May 29 22:14:53 good point sleepybear. That's probably it. May 29 22:15:17 not sure why you put your workspace in a spot that admin is required May 29 22:15:17 Are you talking about the min framework birbeck? Switch it from 8 to 4? May 29 22:15:24 no May 29 22:15:30 you need support-v4.jar May 29 22:15:37 for 2.x support May 29 22:15:47 OH! That's probably it. I grabbed 13 May 29 22:16:56 Sleepybear, that doesnt seem to exist but setProgressVisibility(true/false) does but it doesnt seem to work May 29 22:17:10 keep minSdk as 8 if that is the minimum version you support, but you must use support-v4 instead of support-v13 if you need support for 2.x+ May 29 22:17:23 support-v13 is only for 3.x+ May 29 22:17:35 birbeck, do you like wearable computing May 29 22:17:49 hkhalid: hmm i dunno May 29 22:18:02 wimm contacted me about working with them for launch, but i passed May 29 22:18:09 never tried one however May 29 22:18:20 Timmaah1201 you have to request the window feature first May 29 22:18:48 I've got the following in my onCreate(): requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS); May 29 22:18:58 and then after the setProgressBarVisibility(true); May 29 22:19:08 http://developer.android.com/reference/android/app/Activity.html#setProgressBarIndeterminateVisibility(boolean) May 29 22:19:10 Timmaah1201: is that betfore setContentView May 29 22:19:20 yep birbeck May 29 22:19:26 setProgressBarIndeterminateVisibility() May 29 22:22:14 anyone ever used DateFormat.getDateTimeInstance().format(new Date()); and stuck it in a database and attempted to organize by it? May 29 22:22:29 My SQL queries are screwy because it's not a SQL date format I don't think :( May 29 22:22:41 not seem to be working, doesnt it make a difference that the activity is in a different thread to the UI one? May 29 22:23:16 Timmaah1201: you cannot alter the ui from any thread other than the foreground May 29 22:23:39 ninjai: you are using mysql in an android app? May 29 22:23:52 right.. so atm I'm calling the asynctask.execute() from the UI thread May 29 22:24:33 sqlite :P May 29 22:24:43 Timmaah1201: you need to call setProgressBarIndeterminateVisibility() in onPreExecute() and onPostExecute() May 29 22:25:00 Ok. I'm back at it now. The problem with cleaning the project was the files were in use by a grep program I had running. I've grabbed the v4 support package instead of v13. Unfortunately, I'm still getting the same error. May 29 22:25:22 ninjai: i would store the date as numeric Date.getTime(), and sort on that May 29 22:25:41 birbeck, thanks for the suggestion :) May 29 22:25:44 ninjai: do the formatting on demand May 29 22:26:03 ok, thanks i'll give that a try, do I also need to call setProgressBarVisibility()? or just one? May 29 22:26:38 Timmaah1201: experiment, i havent used that in ages May 29 22:27:10 k :) The issue with defining it in onPreExecute() in the asynctask.. is that it doesnt extend activity May 29 22:27:14 so it doesnt have those methods May 29 22:27:32 using a viewpager - how do I get the titles to show up in that stylish fashion á lá the Play Store? May 29 22:27:43 MyActivity.this.setProgressBarIndeterminateVisibility() May 29 22:28:06 Timmaah1201: better yet, pass the activity to the asynctask constructor and make it private static May 29 22:28:29 ok, thanks :) May 29 22:32:58 I have a RelativeLayout that I want the background color to flash from one color to another repeatedly. What would be the best approach? May 29 22:33:29 Any other suggestions for me guys? After clean and grabbing v4 support package, I still get the same error about inflating the fragment. May 29 22:35:18 * ctate | I have a RelativeLayout that I want the background color to flash from one color to another repeatedly. What would be the best approach? May 29 22:35:20 Jeremyz: sorry, it looks alright... did you clean after loading the new jar? have you tried restarting eclipse? May 29 22:35:26 don't you *like* your customers? ;) May 29 22:35:53 Yeah, I've cleaned a couple of times now and restarted eclipse after loading the right jar May 29 22:35:53 ctate: maybe this is to induce epileptic seizures :) May 29 22:35:55 ctate: hmm, there are some flashlight apps that do that May 29 22:36:50 easy enough to just post a callback that (a) sets the background, and (b) reposts the callback after hte desired delay; lather rinse repeat May 29 22:39:28 Any restrictions on what the parent element has to be for a fragment? I have it in a LinearLayout. May 29 22:39:46 no May 29 22:39:58 what's the error you're getting? Did you post a stack trace anywhere? May 29 22:40:38 so got progress bar in the title bar.. just need to figure out how to make it stop now! May 29 22:41:42 erm - trying to work with ViewPagerIndicator and all Eclipse is doing is whining about how there's a buttload of @Overrides that shouldn't be there - and it won't build my project because of it. how the hell do I fix? May 29 22:42:31 chrizc: ditch eclipse. May 29 22:42:43 its a shame the d.android.com docs keep mentioning eclipse. May 29 22:42:52 sounds like that could be incorrect imports May 29 22:42:55 pragma-; I would but /eeeeeeevery/ single Android tutorial, plugin or anything useful relating to Android is made for Eclipse. May 29 22:43:03 I'm a Netbeans user myself May 29 22:43:22 doogan; nothing to do with imports May 29 22:43:55 Further down in the error stack I found this: 05-29 22:23:09.223: E/AndroidRuntime(535): Caused by: java.lang.ClassNotFoundException: com.believersresource.passages.RelatedTopicsFragment May 29 22:43:55 * chrizc pings JakeWharton out of desparation May 29 22:43:57 chrizc: learn to build on the command line May 29 22:44:04 That class definitely exists though May 29 22:44:06 wut May 29 22:44:10 readme... how does that fix source errors? May 29 22:44:22 chrizc: use JDK 1.6 compliance May 29 22:44:27 chrizc: what source errors? May 29 22:44:28 .-. May 29 22:44:31 hang on May 29 22:44:43 chrizc: I'm curious of what eclipse specific info you have been finding in the tutorials May 29 22:44:49 chrizc: sounds lik eyou aren't using java 1.6 May 29 22:44:53 beyond hello world May 29 22:44:56 god damn, why doesn't it automatically select java 1.6 May 29 22:44:58 * chrizc facepalms May 29 22:45:05 yeah that's pretty weird May 29 22:45:16 readme; well, you know, the android plugin was created for Eclipse May 29 22:45:21 it might be an eclipse preference May 29 22:45:26 and a lot of tutorials say "This is written with Eclipse in mind" May 29 22:45:27 blah blah blah May 29 22:45:39 Jeremyz: post a comprehensive logcat dump on pastebin.com. May 29 22:45:46 chrizc: eh, you can do everything without eclipse May 29 22:45:59 if you get stuck just ask here May 29 22:46:05 btw i'm no eclipse hater, I actually prefer it May 29 22:46:05 I tried with netbeans but my god was it awkward, hacky and arse-about-face. May 29 22:46:14 Unfortunately, Eclipse is a lot easier for Android development. May 29 22:46:21 I still use NB for my other projects, though. >:3 May 29 22:46:29 I didn't say you could easily use netbeans, just that you could easily forego eclipse :) May 29 22:46:55 errrm May 29 22:46:55 05-29 23:46:07.024: E/AndroidRuntime(21453): Caused by: android.view.InflateException: Binary XML file line #9: Error inflating class com.viewpagerindicator.TitlePageIndicator May 29 22:47:00 IMO eclipse is the best IDE for android dev May 29 22:47:27 http://pastie.org/3991791 <- that's what it is whining about May 29 22:47:39 chrizc: did you link to it? May 29 22:47:52 right click your project->android and add viewpagerindicator under library projects/ May 29 22:47:56 readme; what do you mean? May 29 22:47:59 erm, hang on May 29 22:48:03 chrizc: paste your actual stack trace May 29 22:48:17 me derp May 29 22:49:06 o.o erm, okay, it's kinda working, but it doesn't actually show any titles May 29 22:49:09 * chrizc plays around some more May 29 22:49:10 thanks guys May 29 22:51:02 evancharlton - here's the log dump http://pastebin.com/ZVMEnaGw May 29 22:51:27 thanks for all those who helped me out, finally got it working now! :) May 29 22:52:03 Jeremyz: 05-29 22:47:35.253: E/AndroidRuntime(689): Caused by: android.app.Fragment$InstantiationException: Unable to instantiate fragment com.believersresource.passages.RelatedTopicsFragment: make sure class name exists, is public, and has an empty constructor that is public May 29 22:52:08 evan - I should add that I did rename the project at one point from "com.believersresource" to "com.believersresource.passages" May 29 22:52:09 read that May 29 22:52:33 Yeah, I see that, but the class definitely does exist. It's inheriting the default constructor, but I also tried manually setting one. May 29 22:52:54 And it's public. May 29 22:53:07 Jeremyz: paste your source, please. is the package name correct? May 29 22:53:18 the source to the fragment, trimmed down if you wish May 29 22:53:20 Source - http://shorttext.com/rRT5waJ May 29 22:53:31 yes, the package name is correct May 29 22:54:14 I checked the spelling about a dozen times and copy and pasted both the package and class name into the class. May 29 22:54:32 Jeremyz: can you paste the log during the time of installation? May 29 22:55:30 You lost me on that one evan May 29 22:57:29 Jeremyz: install the app, copy the log from around that time, put it on pastebin.com May 29 23:00:58 Jeremyz: use android:name in your instead of class= May 29 23:01:14 android:name="com.believersresource.passages.RelatedTopicsFragment" May 29 23:05:04 Here's the install log - http://pastebin.com/qAtjg7gN May 29 23:05:21 http://developer.android.com/guide/topics/fundamentals/fragments.html <-- see here "android:name" is used May 29 23:05:30 I had android:name before and others asked me to change it to class. I'll change it back, but neither one seems to make a difference. May 29 23:05:45 interesting May 29 23:05:55 The error messages insist that class doesn't exist. May 29 23:06:16 other places in there class= is used May 29 23:06:24 I wonder what the difference is here, if any May 29 23:06:38 i've personally been using "android:name" May 29 23:06:58 They appear to be interchangable. May 29 23:07:27 I noticed this line in the log: 05-29 22:47:35.202: W/dalvikvm(689): Unable to resolve superclass of Lcom/believersresource/passages/RelatedTopicsFragment; (13) May 29 23:08:12 does this occur always, or do you have to build a specific way for it to occur May 29 23:08:31 Always May 29 23:09:03 does it occur on 4.0, or only on 2.x devices? May 29 23:09:04 The root problem is that class doesn't appear to exist at runtime. Although the compiler seems to see it just fine May 29 23:09:09 JakeWharton: how is the issue I described earlier on 2.x with the split actionbar when narrow and long text a framework issue if the framework doesn't even support the actionbar on that platform in the first place? it behaves as expected on 3.x and 4.x. May 29 23:09:14 are you sure the compat lib is in your build path, Jeremyz ? May 29 23:09:17 Jeremyz: what is the superclass? May 29 23:09:20 I haven't tried on any 4.0 devices May 29 23:09:30 Fragment May 29 23:09:32 is the superclass May 29 23:09:53 yeah May 29 23:10:06 android-support-v4.jar is in the java build path. May 29 23:10:14 so you're building against API level 11+ but running on a device that is running something earlier May 29 23:10:21 pragma-: because the code is exactly the same as that of ICS and the bug appears on ICS as well May 29 23:10:22 and again, there's no problems building, just running. May 29 23:10:25 without using the support libs [successfully] May 29 23:10:35 i can't fix a bug that happens on ICS in ABS May 29 23:10:43 I have the min framework set to 8 and am including the support apis in order to use Fragments May 29 23:10:50 JakeWharton: ICS doesn't display the overflow button, though May 29 23:11:11 maybe not on your emulator it doesn't May 29 23:11:16 2.2 is the platform I'm targeting. May 29 23:11:17 no, not on the emulator. May 29 23:11:25 don't have an actual ICS device yet May 29 23:11:28 Jeremyz: hm, no dex errors on install, so there goes that theory.. May 29 23:12:01 the emulator is a pain in the butt too when it decides not to redraw the ui sometimes May 29 23:12:14 have to hit back and home and back and settings and home and back to get it to refresh the ui May 29 23:12:19 Look at line 4&5 here. That seems to be the root issue. http://pastebin.com/ZVMEnaGw May 29 23:14:11 pain in the ass that android keeps changing how we're supposed to draw our icons May 29 23:14:16 * pragma- goes text-only. May 29 23:14:27 You can always make an emulator without menu button May 29 23:14:30 JakeWharton: thanks for this one http://stackoverflow.com/a/9021487/615740 May 29 23:14:41 In the comments, someone attached a build that incorporates your patch May 29 23:14:54 I had to use that build with the latest abs to avoid the bug May 29 23:15:00 hmmm May 29 23:15:03 im using achartengine and I have 2 buttons. Each button generates a different chart. Each method that makes each chart uses the same variable (mChartView, which is a GraphicalView). When I press each button I tried using myLayout.removeView(mChartView) and it doesn't work, and I cannot re-add the view with my buttons May 29 23:15:03 SimonVT: snap, thanks for reminding me May 29 23:15:05 i thought it made it into the latest support lib May 29 23:15:19 JakeWharton: actually, i do have an emulator without menu buttons and the overflow does appear in that case, but it is rendered properly May 29 23:15:22 oh, I was using the support lib that was bundled with abs May 29 23:15:25 for 4.0.3 May 29 23:15:26 maybe I shouldn't do that May 29 23:15:28 the changeset was merged. if it's not in the current one it'll be in the next one May 29 23:15:52 * pragma- takes pics to prove it happened. May 29 23:16:31 pics or gtfo ;d May 29 23:17:36 when did acl 8 come out ? May 29 23:18:14 april 2012, huh May 29 23:18:28 shortly after acl7 I think May 29 23:22:33 JakeWharton: hrm, I'm mistaken, apparently. May 29 23:23:06 can't really tell if acl 8 fixed that context menu bug for fragments May 29 23:23:13 look at the source May 29 23:23:21 I doubt it May 29 23:23:21 or fix it yourself and DGAF about updates :) May 29 23:23:22 yeah, when i get the time May 29 23:23:35 i maintain my own fork May 29 23:23:41 so much easier May 29 23:25:01 http://imgbin.org/images/8222.png -- ics on emulator, "start logging" overlays its bounds with the overflow button :( May 29 23:25:44 Yeah, action bar doesn't like action items without icons May 29 23:25:47 Fucks up May 29 23:26:03 why am I getting a random NPE in onSaveInstanceState in a SherlockFragmentActivity? All I'm doing is called super.onSaveInstanceState.... now my app crashes every time it tries to "pause" May 29 23:26:11 calling* May 29 23:26:12 I can't be arsed to redesign my icons with every android update -- I can barely design and draw an icon in the first place :p May 29 23:26:33 Well, the AB fucks up if you don't have icons May 29 23:26:53 maybe I can just call it "Start" and "Stop" May 29 23:26:55 that should fit May 29 23:27:06 api14+ uses the native implementation. So that's what you should expect it to look like May 29 23:27:09 SimonVT: yeah, don't do that :) May 29 23:27:13 [action bar with no icons] May 29 23:27:19 for every 10 times someone asks about an activity, someone says fuck May 29 23:27:23 fuck May 29 23:27:26 I know, just sayin May 29 23:27:27 * g00s learns something new May 29 23:27:29 pragma-: TEN May 29 23:27:34 I actually just crunched those stats from my log May 29 23:27:34 pragma- didn't know that, ctate :P May 29 23:28:11 85 hits for fragment May 29 23:28:16 pragma-: what if you provide bs empty icons May 29 23:28:20 260 for activity, 26 for f-bomb May 29 23:28:27 100% transparency, or 9 patch May 29 23:28:28 readme: and viewgroup? May 29 23:28:40 g00s: then there's no text May 29 23:28:43 then you get blank action items May 29 23:28:43 or ehm May 29 23:28:44 tabhost May 29 23:28:52 oh May 29 23:28:59 i guess that would not work then :) May 29 23:29:12 MDijkstra: 4 for viewgroup, including when you said it just now. 11 for tabhost. May 29 23:29:23 anybody? this is really aggrevating :/ there's absolutely no reason for this to be NPE'ing simply on super.onSaveInstanceState... May 29 23:29:26 i have a feeling a few years from now, we are all going to be laughing at actionbars May 29 23:29:33 so 2012 May 29 23:29:42 s/years/months/ May 29 23:29:47 chrizc: did you paste the stacktrace & code somewhere? May 29 23:29:51 dunno. actionbar is pretty solid tech May 29 23:29:53 we're goign back to the overflow menu! May 29 23:30:03 * ctate points to the imgur link in the channel topic May 29 23:30:21 ctate: you aren't suggesting they take screenshots of code? May 29 23:30:47 oh May 29 23:30:49 its a comic May 29 23:30:50 haha May 29 23:31:42 ctate; what code is needed? @Override protected void onSaveInstanceState(Bundle state) { super.onSaveInstanceState(state); } May 29 23:31:46 and hold on for that stack trace. May 29 23:32:34 that override does nothing May 29 23:32:44 all it does is call super May 29 23:33:01 exactly - and that NPE's. May 29 23:33:26 I've managed to fix the NPE by not called super, but then that'll screw up for when I want to save my instance state... May 29 23:35:12 alright, here's one for you guys - how do you get the current Fragment that is being viewed by the Viewpager? May 29 23:38:03 myFragments[mAdapter.getCurrentItem()] should work. May 29 23:38:04 get it from the FragmentPagerAdapter? May 29 23:40:40 the currently displayed fragment will have a visible hint set on it May 29 23:41:39 I'm watching this old cowboy western, and the men and women go to bed and then wake up in the morning with perfectly combed hair. May 29 23:42:14 pragma-: Haha May 29 23:47:24 Is android.permission.WAKE_LOCK required for effective use of AlarmManager.RTC_WAKEUP? May 29 23:47:59 not at all May 29 23:48:10 well May 29 23:48:32 if you want to launch a service to continue to run *right then* right after the broadcast receiver, then yes, you need that permission May 29 23:48:33 to maintaine the wake May 29 23:48:48 because you will have to do a wakelock dance to keep the device live as the service is running May 29 23:49:08 I wonder, is there a queue associated with a Messenger/Handler that I can inspect/debug? May 29 23:49:42 there is such a queue but you can't inspect it May 29 23:50:09 unless you're building your own platform and can therefore debug arbitrary parts of the code successfully May 29 23:50:26 Well... I do have a build of AOSP with a bunch of custom bits... May 29 23:50:29 ctate: What if I schedule an alarm to go off at a specific time? I've seen it *not* actually get into the activity (it requests SCREEN ON and whatnot) :( May 29 23:50:56 ctate: Is there some sort of failrate I should take into consideration, or similar? May 29 23:51:19 so when is my phone going to have an ozone sensor in it ? May 29 23:51:43 n20: a broadcast alarm on a wakeup clock *will* cause the device to wake up and run the broadcast receiver. the framework will hold a wakelock on the receiver's behalf until onReceive() returns May 29 23:51:50 but! May 29 23:51:59 this doesn't affect activity or service alarms May 29 23:52:29 if you really want the device to light up unattended in response to an alarm, then you need to use a broadcast alarm May 29 23:52:32 ctate, any reason why an asynctask would not call doInBackground when run from the UI thread? May 29 23:52:43 okay this is very confusing - on an android 4.0.3 emulator, I can create and work with cache files fine. on my android 2.3.5 device, there are no errors thrown, but the files are never created or worked with. May 29 23:52:57 Jug6ernaut: source + log showing the failure, pls May 29 23:53:14 the source of how you're invoking the asynctask, and source of the task itself May 29 23:53:39 k May 29 23:54:26 ctate: Any pointers to where I can read more about that specific way of doing it? Right now it's the PendingIntent that fires up an Activity, that tries to light up the screen via .addFlags() :-) May 29 23:55:02 anyone? any ideas? May 29 23:55:14 n20: the problem is that the alarm goes off, the framework calls startActivity() [the ultimate result of invoking an activity PendingIntent], and then the device goes back to sleep. :) May 29 23:55:22 becuase there's no wakelock being held. May 29 23:56:48 ctate: Oh. I expected it to keep itself awake as I force the screen on in onCreate() :( May 29 23:56:59 it never gets that far May 29 23:57:16 ctate: It does actually do it if I test it within a few minutes May 29 23:57:34 ctate: I reckon it has something to do with not going into "full sleep" though? May 29 23:57:34 an Android device goes to sleep *immediately* unless there is something actively preventing it from doing so May 29 23:57:43 ctate: Hmm. That's odd. May 29 23:57:47 now, there are various things that do that May 29 23:58:01 :S weird, it works now. May 29 23:58:03 Ok, screen off now, app backed out off. :D May 29 23:58:04 user activity is one such thing; the device is kept awake for a specified interval after the end of user activity May 29 23:58:14 ctate: Alarm raised and screen on o_o May 29 23:58:17 wakelocks are another May 29 23:58:27 n20: is it plugged in to usb? May 29 23:58:33 because adb holds a wakelock :) May 29 23:58:36 ctate: Touché May 29 23:58:45 ctate: I didn't think about that. May 29 23:58:48 ctate starts asynctask http://pastebin.com/mNHBw083, asynctask http://pastebin.com/Cg3zewDa. The first time i run the app(after install) it runs through fine. after closing the app and starting doInBackground will never be called again. May 29 23:58:58 ctate: Hang on, I'll unplug it (thanks!) May 29 23:59:03 Jug6ernaut: define "closing the app" May 29 23:59:10 finish(); May 29 23:59:12 backspace May 29 23:59:17 button* May 29 23:59:39 but if i force close the application(kill the process i assume), and run again it works again one time. May 29 23:59:56 * n20 thinks this is exciting. May 30 00:00:30 ctate: Still woke it up, so something else might have that wakelock? May 30 00:00:58 JakeWharton: well, git does make it very painless to merge in updates to your own forks May 30 00:01:12 * pragma- shall investigate a fix. May 30 00:01:16 it does indeed May 30 00:01:18 Also, I don't think it's suitable to rely on on other apps actually having a lock at the given time, so I should probably get my own :-) May 30 00:01:22 ctate: ^ May 30 00:01:24 n20: maybe May 30 00:01:29 i keep our stuff on a separate branch May 30 00:01:30 exactly May 30 00:01:39 all changes are in a single commit that gets rebased on the latest master when there's an update May 30 00:01:47 Jug6ernaut: hm, kinda tangled. May 30 00:02:07 debug or put some logging at hte places where you expect a new asynctask to be kicked off. May 30 00:02:14 ctate: Thank you for the help, I feel I understand it a bit more now. :-D May 30 00:02:15 ctate also note, that if i simply override doInBackground to Log.e(); and nothing else, it will still do the same thing(run once). May 30 00:02:35 to do a Log.e()* May 30 00:02:35 Jug6ernaut: yeah, it's pretty clear that the async task is simply not being kicked off after the first time May 30 00:02:50 what are you doing in the UI that you expect to result in it running again? May 30 00:02:50 right May 30 00:03:16 JakeWharton: Good job with ABS! May 30 00:03:21 thank you May 30 00:03:22 nothing, it should only ever need to run once per time application is open. May 30 00:03:26 oh, and onResume() will *always* run on the UI thread May 30 00:03:36 I'm sorry to have to resort to this, but I've been working on this problem for about 4 hours and can't get past it. I'm hoping by posting the code, someone can see what I'm missing. http://believersresource.com/android.zip The problem is when using the Fragment element, the class I'm trying to include appears to exist at compile time, but not run time. I'm sure it has something to do May 30 00:03:37 with using the Android Support Package, but I'm at a loss. Could someone help? May 30 00:03:47 JakeWharton: I just started looking at it, seems like a great lib. May 30 00:03:50 * n20 lifts his hat. May 30 00:04:05 ctate i thought so, i just read around that doInBackground would not run if not on UI thread, so i figured i would check lol May 30 00:04:09 Jug6ernaut: if your'e running into fragment lifecycle things, i won't be able to help you much, i'm afraid May 30 00:04:32 ctate also note that it will run fine if run from the onCreate, but after that no bueno May 30 00:04:35 ctate k May 30 00:04:51 Jug6ernaut: i'm not sure what "if not on UI thread" is even supposed to mean; where'd you read that? May 30 00:05:01 the whole point of doInBackground() is that the code there runs on the background thread May 30 00:05:07 by design May 30 00:05:28 well executed only from UI thread May 30 00:05:53 the AsyncTask object has to be loaded & kicked off from the UI thread May 30 00:06:01 right May 30 00:06:10 and execute() has to be called from the UI thraed May 30 00:06:22 right May 30 00:07:11 how do I get the current fragment in a viewpager? pageradapter doesn't have .getCurrentItem() May 30 00:07:23 oh wait derp May 30 00:07:28 the viewpager itself has getCurrentItem May 30 00:11:13 (Second attempt) I'm sorry to have to resort to this, but I've been working on this problem for about 4 hours and can't get past it. I'm hoping by posting the code, someone can see what I'm missing. http://believersresource.com/android.zip The problem is when using the Fragment element, the class I'm trying to include appears to exist at compile time, but not run time. I'm sure it has May 30 00:11:13 something to do with using the Android Support Package, but I'm at a loss. Could someone help? May 30 00:27:19 (Last attempt) I'm sorry to have to resort to this, but I've been working on this problem for about 4 hours and can't get past it. I'm hoping by posting the code, someone can see what I'm missing. http://believersresource.com/android.zip The problem is when using the Fragment element, the class I'm trying to include appears to exist at compile time, but not run time. I'm sure it has May 30 00:27:19 something to do with using the Android Support Package, but I'm at a loss. Could someone help? May 30 00:27:37 I'm considering writing a book about developing with the NDK. Does anyone have any specific topics they'd like to see included? May 30 00:29:11 what's a good platform API level to target to maximize compatibility with devices May 30 00:29:18 15 May 30 00:29:24 minSdk of 7 May 30 00:30:06 I usually do minSdk=8 May 30 00:30:10 that's when the APIs became fun May 30 00:31:21 true May 30 00:31:24 C2DM May 30 00:31:31 onConfigurationChanged on Views May 30 00:32:11 I'm curious if there is a way to run Android apps via standard qemu-system-arm, rather than the emulator program. Perhaps there's a disk image someone has created? May 30 00:32:36 there is May 30 00:32:38 it's called the emulator :) May 30 00:33:20 there is no reason to support anything older than 7. At 7 it's still just 5% of devices, and even smaller percent of people who buy stuff from the market, so requiring 8 is reasonable. I'd avoid requiring anything newer than 8 unless you have to though. May 30 00:33:23 ctate: like I say, without using that May 30 00:33:51 talking about NDK, can you use it to basically control a USB device via JNI and USB host mode? May 30 00:34:07 calamari: what do you think the emulator is? May 30 00:34:20 Drakonite: some kind of modified version of qemu May 30 00:34:53 i dont want to learn java :( May 30 00:34:57 markp: you'd need to use the apis for the USB stuff, which are only available in Java, so you'd need to make a JNI wrapper May 30 00:35:18 jni wrapper, meaning jni calls and some java code May 30 00:36:08 calamari: seriously, what are you actually trying to accomplish? to run Android apps you need quite a lot of specific OS support from the kernel on out May 30 00:36:26 at which point you're basically talking about reimplementing the emulator May 30 00:37:43 ctate: I have a standard version of qemu (not by Google), qemu-system-arm. I'd like to run android apps using that emulator rather than the binary provided in the Google api. May 30 00:37:46 why does repo keep telling me that version 1.16 is available yet version 1.16 is NOT available for download? May 30 00:38:58 I440r: run repo --version May 30 00:39:05 ctate: if the emulator program is simply building a command line to pass to a standard qemu, that'd be great.. then all I'd need is to be able to access that command line May 30 00:39:20 I440r: for me, the output includes "repo launcher version 1.16" May 30 00:39:40 ctate that doesnt im at 1.9.1 May 30 00:39:56 when i run the curl command shown on the "get android sources" i get this version May 30 00:40:03 launcher version 1.15 May 30 00:40:20 hum! May 30 00:40:34 I love the fact that my FREE app got disabled due to DMCA, but other apps related to the same service (some with a price tag) are left active on Google Play. :-) May 30 00:40:34 so when it tells you that 1.16 is available May 30 00:40:40 is it not providing a command to run in order to get the latest? May 30 00:41:05 ctate: Would you mind hitting the "reactivate"-button for me? May 30 00:41:16 erm. i guess it is! why is the curl command shown on the get android sources NOT downloading the latest? May 30 00:41:16 n20: by "are left active" you mean "have not been subject to DMCA takedowns" May 30 00:41:25 that is a good question! May 30 00:42:12 and you're certain that you're running the one it downloads? May 30 00:42:17 yes May 30 00:42:20 ok May 30 00:42:29 i did multiple sanity checks lol May 30 00:42:40 ... verified; they forgot to update the downloads :) May 30 00:42:47 :) May 30 00:42:54 ctate: Yes. Exactly that part. I've been talking to their legal department but I can sum it up with "goddamn bureaucracy" - their three terms on what I would have to change (more like nerf) are actually things I see in the "competitors" :-) May 30 00:43:09 n20: FYI i have exactly zero to do with the Play Store May 30 00:43:13 or with DMCA activity May 30 00:43:14 well. i can forgive them. thers alot of minor details to manage here. they miss one no biggie May 30 00:43:33 how do i stop a currently executing repo? May 30 00:43:38 because ^c does not work May 30 00:43:45 which is dumb May 30 00:43:49 ctate: is the qemu emulator that Google provides modified from the vanilla one to add hardware support not present in the original? May 30 00:43:52 ctate: Will this box of smarties make you run into that department and flail at the keyboards, and maybe solving my problem? :D May 30 00:43:57 * n20 shows the box of smarties. May 30 00:44:01 it does but there are so many things it spins off it gets nondeterministic which is handlign the ^C May 30 00:44:02 do a ps May 30 00:44:08 find the primary repo process May 30 00:44:10 and kill it May 30 00:44:16 Whoohoo!! Finally fixed my problem with the Fragment. The class for the parent element just needed to extend FragmentActivity instead of Activity. May 30 00:44:22 python2.6 yea May 30 00:44:23 Jeremyz: woooooot May 30 00:44:26 Thanks everyone who helped. May 30 00:45:45 which is another question. why does google insist on an OLD version of python for repo, and why is make 3.81 "broken" May 30 00:46:09 building the android source wont work except with make version 2.xy i forget exactly what version May 30 00:46:45 huh? i'm using make 3.81. May 30 00:47:21 and in general the android build system uses quite advanced GNU make features May 30 00:47:29 Jeremyz: That seems odd, do you mean that you were trying to incorporate Fragments in a regular Activity and it didn't complain prior to running it? I missed some parts of the talk above. :-) » ctate May 30 00:47:42 last time i did a make in my android repository (after . build/envsetup) it told me "checking for broken versions of make" and claimed my version was broken May 30 00:47:45 i had to downgrade May 30 00:48:22 wrgh May 30 00:48:40 and NOW my envsetup isnt setting any env up dammit. May 30 00:48:52 no "lunch" command after running envsetup and make just hangs May 30 00:49:28 doing a repo sync before i call foul May 30 00:51:16 ctate i still havent figured out the problem, but im narrowing it down. Its looking like your right about the first asynctask not exiting right May 30 00:52:06 n20 - Correct. No compile time errors. At runtime it was trying to convert my class that inherits from android.support.v4.app.Fragment to com.android.Fragment which didn't exist because of the framework version and that was the superclass that didn't exist. May 30 00:53:36 Jeremyz: Seems like you imported the com.android.Fragment and ran it on a < Honeycomb-device? May 30 00:53:58 * n20 just realized that he might've stated what has already been said. :-) May 30 00:54:42 ugh. you have to run . build/envsetup, running sh build/envsetup does not work... why? May 30 00:55:01 I never (intentionally) imported com.android.Fragment. I think Activity was just expecting a class of that type for the element and was attempting the cast. May 30 00:55:20 * n20 is going to walk the walk, all the way to bed. Night 'folks! May 30 00:55:49 Jeremyz: On the brightside - we've learned something new. :-D May 30 00:56:16 Ha. Hopefully it'll help the next guy. :-) May 30 00:57:28 I440r: because when you 'sh build/envsetup.sh' that executes it in a subshell. when the subshell exits, it takes all that lovely environment configuration away with it. May 30 00:57:59 I440r: the whole point of "." [or the less-cryptic synonym 'source'] is to apply the environment changes to the *current* shell. May 30 00:59:37 aha lol May 30 00:59:54 and yea 3.81 is the highest version of make that android build will use. everything after that is considered "broken" May 30 01:00:18 i have >=sys-devel/make-3.81 in my /etc/portage/package.mask because of this May 30 01:01:57 if i wasnt masking it thusly i would be using make version 3.82-r1 May 30 01:05:21 could anyone give me a hint why i'm getting a null from findViewById here? https://gist.github.com/2831994 May 30 01:05:22 did a search, on a MAC build 3.81 is the only non broken version of make. any version will work in linux :/ May 30 01:07:30 solvd May 30 01:14:23 interesting May 30 01:14:32 and yes, supporting the Mac is mandatory for us. May 30 01:15:13 oh ah: May 30 01:15:14 * ctate | For versions of Android before ICS, there is a bug in gmake 3.82 that prevents android from building. May 30 01:15:23 is it still enforcing that for ICS and master? May 30 01:17:35 I440r: are you using gentoo? May 30 01:17:37 does repo sync just re-download 100% of the data or just the changes May 30 01:17:49 pragma nothing but for a great many years May 30 01:18:00 just changes May 30 01:18:06 yup, I figured you were one of those kids. May 30 01:18:11 it basically call git fetch on each repo May 30 01:18:21 i dont use "Ricer" use flags May 30 01:18:24 so im not a KID May 30 01:18:30 gentoo? snrk May 30 01:18:32 I440r: loved your anti-git rant a few days ago because you don't know how to use it May 30 01:18:34 gentoo is the single most configurable distro there is May 30 01:18:45 http://funroll-loops.info/ May 30 01:18:51 pragma git is DUMB. May 30 01:18:51 :D May 30 01:18:55 * sonicrules1234 uses gentoo May 30 01:19:15 download 3846583645873 gigs of repo an entire repo just to be able to check out version 1.2.3 of the sources May 30 01:19:18 <3 gentoo May 30 01:19:35 and everyone in the world has to have the entire contents of the entire repo locally May 30 01:19:39 I even got cyanogenmod compiling on here May 30 01:20:02 I440r: so just download the branch you want May 30 01:20:08 that's the -c option to repo sync May 30 01:20:19 gentoo has it's advantages for software developers more than for other use cases May 30 01:20:28 im not a big fan of cm7 on my thunderbolt, they dont have the drivers for some of the devices fully figured out May 30 01:20:42 i love cm7 on my incredible May 30 01:20:52 im hoping cm9 will work better on my thunderbolt May 30 01:21:14 cm7 works perfectly on my TB May 30 01:21:21 the cm7 repo has too many people with write access merging their pushes without peer review now May 30 01:21:24 i wouldn't think of using anything else May 30 01:21:38 gentoo is easier to manage than ubuntu. when ubuntu "just works" its fine.. sort of. when it doesnt work its a bitch to get it to do so May 30 01:22:06 ubuntu is garbage ;) May 30 01:22:21 wongk-home, yea. i think the tbolt must have different versions of say the gps hardware. i never get a lock even with the new version after first getting a lock May 30 01:22:42 admittedly, i don't use the gps May 30 01:22:45 ubuntu is a microsoft conspiracy to sabotage linux by making it look feel and fuck up just like windows May 30 01:22:50 no May 30 01:22:53 that's fedora May 30 01:22:54 i have seen solutions to get it working, however May 30 01:22:55 you're confused. May 30 01:22:57 that too lol May 30 01:23:15 visually, ubuntu is far closer to mac May 30 01:23:16 ubuntu is painless May 30 01:23:23 apt-get, done. May 30 01:23:27 one of the reason i dislike it May 30 01:23:29 wongk yea. before installing cm7 install a rom where gps works, then get a lock, then install cm7 May 30 01:23:47 launchpad.net is a nice resource May 30 01:24:09 pragma emerge has way better dependancy handling than any .deb distribution. and .deb distributions do NOT follow the FHS May 30 01:24:30 ctate figured it out...it was happening when i was using a view.post(runnable(){ run(){ view.postDelayed(this,1000); } }); i changed to a handler and it working now :\ May 30 01:25:01 i recently had the displeasure of installing fedora in a vm recently for a project May 30 01:25:15 it refused to install unless there was at least 700mb of ram May 30 01:25:25 and it won't boot up unless there's at least 256 mb of ram May 30 01:25:26 Jug6ernaut: \o/ May 30 01:25:49 gentoo has issues compiling firefox in a system with limited ram. thats a FF issue tho, not gentoo May 30 01:25:49 meanwhile ubuntu boots with only 40mb of ram May 30 01:26:01 for people who think buulding software is too much overheard, i recommend arch linux May 30 01:26:19 there are no 32-bit emulation packages, though May 30 01:26:22 i would also recommend arch linux except for one HUGE security flaw in the distribution May 30 01:26:22 that's a problem for me May 30 01:26:24 AUR May 30 01:26:40 when AUR dies a death and all the packages in there are moved into main. THEN i might even switch May 30 01:28:04 i didn't use it long enough to become familiar with the issue May 30 01:28:26 but i don't see myself using a distro that is not rolling release any time soon May 30 01:29:13 why have linux-distro version x.y.z.2.4-r1 May 30 01:29:24 ALOT of confusion factor there May 30 01:29:25 just use LFS 1.0 May 30 01:29:33 lfs is kinda shitty lol May 30 01:29:42 very nice way to learn linux but totaly impractical for a daily driver May 30 01:29:55 From http://github.com/AOKP/device_samsung_p1c May 30 01:29:55 * [new branch] FuckMe -> gh/FuckMe May 30 01:30:04 never used it May 30 01:30:04 ! May 30 01:31:03 figures you'd be interested in something with "kang" in the official name, you ricer. May 30 01:31:32 im not really that interested in it, it wont run on my thunderbolt May 30 01:31:50 i like thunderstick roms mostly May 30 01:32:07 but keep being a dickhead and using every opportunity to bash on me May 30 01:32:20 like a complete cunt you are May 30 01:32:32 y u so mad? May 30 01:32:39 that's what pragma- does, he's a sweetheart May 30 01:37:13 ctate is what i did wrong?(besides the obvious of it not working lol) May 30 01:45:56 my fedora looks nothing like windows. windows are glass and have frames. my fedora is black and rests on my head. May 30 01:46:37 i have a "discovery channel" fedora May 30 01:46:50 i have several fedoras. i wear them on stage. May 30 01:46:54 its 100% woll so its crap. want 100% beaver.. that one woul cost $500++ tho May 30 01:47:02 usually if i'm working a bar, i wear a newsboy cap May 30 01:47:21 i wore 100% beaver on my head once. was a bitch to clean up. May 30 01:47:29 but a heck of a lot of fun May 30 01:47:48 she didn't cost me quite $500 though May 30 01:52:20 im starting to wonder if there are any aduls in here at all May 30 01:52:35 I'm 20 May 30 01:52:58 being adult has nothing to do with age May 30 01:53:09 :p May 30 01:58:17 hello May 30 01:59:58 Since you're not suppose to use a ListView within a ScrollView, what element can you use instead to allow someone to select an item from a list? May 30 02:00:17 a listview thats not in a scrollview May 30 02:00:54 May main layout is a scrollview. I want to give someone the option to select one of 10 options in a section within it. May 30 02:01:48 use a listview May 30 02:02:40 where can i start to learn to dev android and ios apps? :) May 30 02:02:49 http://d.android.com May 30 02:02:58 like it says in the topic May 30 02:03:41 I can't use a ListView within a ScrollView May 30 02:04:09 yes... don't put a listview in a scrollview May 30 02:04:18 lets try another approach May 30 02:04:23 what are you trying to achieve May 30 02:05:56 My main layout is a ScrollView because the set of options on are too long to fit on a single screen. One of the options within that page is a select list where the user needs to pick one of 10 items, so I'm using a ListView there. May 30 02:06:30 I don't necessary need the scrolling functionality of a list view, all 10 can be visible at once. I just need some means of listing 10 options and letting a user pick one, within the main scrollview. May 30 02:07:24 you mean the 10 are visible on your device May 30 02:07:47 One sec. I'll get a screenshot May 30 02:08:01 what will my 200x200 pixel phone do? May 30 02:08:18 selecting 1 item out of N -> listview May 30 02:10:32 Hopefully the scrollview will take care of it on your 200x200 phone.. May 30 02:10:56 Here's a screenshot. Sorry it's so red, I have some driver problem. http://i.imgur.com/Z2rBa.jpg May 30 02:11:09 right, listview May 30 02:11:41 I have to manually set the height on that related topics section to make it work, if I let it wrap content it collapses all the way down (the problem with putting a listview in the scrollview) May 30 02:11:42 or if you refuse, just make 10 textviews May 30 02:12:00 or, maybe better, rethink your interface May 30 02:12:44 the problem with listview in scrollview is: when i start dragging, which of the 2 should scroll? May 30 02:12:57 Right. I'm looking for an alternative to listview May 30 02:13:19 you can manually create textviews for all related topics in your screen May 30 02:13:23 I don't want the scrolling behaviour of the listview at all. I want it's size to be whatever it has to be to wrap the elements and let the scrolview do the scrolling. May 30 02:13:53 so you have what you have now, i see 5 textviews or whatever May 30 02:13:57 why not place 10 ? May 30 02:15:25 That may be what I have to do. It just seems innefficient to create 10 text views in code and manually wire up all their click events. Was hoping was a control i can just bind the adapter to. May 30 02:16:09 why a button for related passages May 30 02:16:13 but not for related topics? May 30 02:16:27 optionally use 3 tabs May 30 02:16:48 or 2 tabs below the passage May 30 02:16:56 I'm in the middle of switching layouts. I originally just had a button for each, but was going to rework it to include the related passages and topics on the page and have them be expandable/collapsable. May 30 02:17:05 A tab layout could work. May 30 02:17:29 optionally an expandablelistview with 2 groups and x passages and y topics May 30 02:18:27 Can each row in an expandablelistview have a different layout? May 30 02:19:25 hmm i know a normal listview can have multiple layouts May 30 02:19:47 I think I'm going to set up tabs. That probably makes the most sense. May 30 02:20:00 yeh prolly May 30 02:20:16 Alright. Thanks for the idea. May 30 02:20:17 most passages arent too long are they May 30 02:20:29 so i would look into passage and below that 2 tabs May 30 02:21:15 They can be. I'll snap the tabs to the bottom of the screen and place the content section in a scrollview just in case it's a really long one. May 30 02:27:08 <3 girls, which means i dislike gentoo by default. May 30 02:27:59 * pragma- creates a bitbucket.org account/repo and adds it to his list of remotes. May 30 02:28:18 why not? May 30 02:28:44 getting to be a pain to upload pre-compiled .apks to each hosting's downloads page May 30 02:28:54 don't really want to store them in the repo either May 30 02:29:44 so nice that git can push to multiple remote repositories May 30 02:40:38 is there a standard method that people architect database interaction in android apps? May 30 02:43:10 mheld: yes, the data structures achieve synergy with the performance indicators fast-tracked to the knowledge base ballpark of the big business picture benchmark to empower process mapping metrics that are proactive outside the box of show stopper paradigms May 30 02:43:25 let me know if you have any questions May 30 02:43:29 ha May 30 02:43:34 that was delightful May 30 02:43:51 maybe I should rephrase :-) May 30 02:45:27 databases are usually overkill for most people's purposes. May 30 02:46:19 sqlite is typically used on android May 30 02:46:28 of course, i have no idea what you're asking. May 30 02:48:40 Drakonite: there is one book about the NDK May 30 02:48:53 http://pastie.org/private/jtlrch0qgeprlwpjrzpmiw May 30 02:48:56 "is there a standard method that people architect database interaction" <-- i would say maybe a DFD or an ERD? May 30 02:49:01 is this kosher? May 30 02:49:22 i mean, that's how i start architecting database interaction May 30 02:50:25 every model that interacts with the database has a constructor that takes in a cursor, they all have a getAllOfTypeX-ish method, they all have a create method? May 30 02:50:34 that uses the database adapter? May 30 02:52:33 here's a more transparent paste -> http://pastie.org/private/jtlrch0qgeprlwpjrzpmiw **** ENDING LOGGING AT Wed May 30 02:59:58 2012