**** BEGIN LOGGING AT Sun Apr 21 02:59:58 2013 Apr 21 03:28:04 *sigh* its so close to working, http://ideone.com/RUejJh it loads, I can press the button to start logging, and tap around, but no text file is created on the sd card Apr 21 03:28:19 i added the external write permission to the manifest too so im not sure whats going on Apr 21 03:30:57 learn how to debug Apr 21 03:34:15 is debugging in eclipse pretty much similar to any other debugging? Apr 21 03:34:25 except i can do it while running the app on the phone? Apr 21 03:45:49 yes Apr 21 03:54:38 so this is kind of a generic java/eclipse question (sorta new to programming), but maybe i'm misunderstanding something Apr 21 03:55:07 omg, i just learned something amazing Apr 21 03:55:08 probably best in #eclipse or #java Apr 21 03:55:17 @billybobjoe Apr 21 03:55:22 so i'm poking around some of the classes, trying to understand the source code.. Apr 21 03:55:30 android debugging w/ development server. then move it all to production server Apr 21 03:55:47 StingRay_: well.. here me out.. :) Apr 21 03:55:49 hear* Apr 21 03:55:57 no more back and forth debugging and uploading to a server Apr 21 03:56:10 so i'm poking through the PackageManager.class in android.content.pm Apr 21 03:56:34 and looking at the method getInstalledApplications Apr 21 03:57:01 hum so i tried debugging, my app starts up and i press the button and it just stays solid blue like its frozen, im looking at the code and i set a breakpoint after the button press so i dont get it, plus i dont see that the program is stopped at the breakpoint Apr 21 03:57:03 any ideas Apr 21 03:57:19 i have the source code downloaded and attached in eclipse, and it brings it up and everything, but there's no like.. 'code' for that method Apr 21 03:57:32 Jack3k3: maybe it dont reach the breakpoint Apr 21 03:57:48 does that make sense? in other words.. the entire method is "public abstract List getInstalledApplications(int flags);" Apr 21 03:58:01 so.. how exactly is it getting the installed applications? Apr 21 03:58:23 stingray_ weird it just started working.. now it hit th break point... maybe my phone was just frozen Apr 21 03:58:25 billybobjoe: look at the method constructor... List Apr 21 04:00:01 okay quick question, if i use a sleep command will my method to see touch events still trigger? Apr 21 04:01:02 billybobjoe: heres an example http://pastebin.com/nUXkfJbP Apr 21 04:01:12 On my Samsung Admire I finally got my wifi and bluetooth mac address problemsresolved. However, I can't figure out how to reset my MSL and SPC code. When I use the app "Get My MSL" it returns an MSL that contains 6 little square boxes. Any ideas?? Apr 21 04:01:42 on an activity onStop - how do i wait for a set period before doing something? Apr 21 04:02:15 Solupus: yeah, i found that example too Apr 21 04:02:25 lol, was my own example :/ Apr 21 04:02:35 ah, hahah Apr 21 04:03:06 StingRay_: do you know much about lighting when it comes to graphics? Apr 21 04:03:07 Solupus: what i'm really trying to get at is how that method determines what apps are installed? like, is there a database of apps? hence why i was trying to find the source code for it Apr 21 04:03:27 tnzr: I hate to admit this, but everything Apr 21 04:03:42 I can tell you the components of light Apr 21 04:03:56 StingRay_: awesome... would you happen to know if the diffuse coefficient of reflection is a separate value from the ambient component? or are they one in the same? Apr 21 04:04:00 the types of calculations that are responsible for subdermal light Apr 21 04:04:02 :) Apr 21 04:04:20 glad I asked you :) I had a feeling you would have something to share on the matter Apr 21 04:04:37 all different shading models/sections Apr 21 04:04:52 btw, they have sod all to do with light ;) Apr 21 04:05:11 billybobjoe: IIRC there are a few layers of the PackageManager, something like an abstract class then an implementation possibly as an inner class of ContextImpl ?, then it uses AIDL to connect to the PackageManagerService (name might be wrong, but close). ultimately there is an XML file with all packages and their info Apr 21 04:05:13 i'm implementing diffuse/specular shading in a raytracer and I'm confused as to whether or not my material class should have separate fields for ambient and diffuse coefficients Apr 21 04:05:24 the reading I've been doing seems to sometimes mix the terms so Im starting to think they may be one in the same Apr 21 04:05:47 depends on the shading model Apr 21 04:05:51 anyone good with GLSES 2.0 ? Apr 21 04:05:58 as to IF they should or should not Apr 21 04:06:06 so a lambert no Apr 21 04:06:15 kevinb: thanks! do you happen to know where that xml file is? Apr 21 04:06:18 on a phong yes Apr 21 04:06:24 I see ok Apr 21 04:06:43 but a lamber would have no IOR/reflection coef Apr 21 04:06:53 so I guess you mean a phong shading model Apr 21 04:06:54 billybobjoe: I think packages.xml somewhere in /data/system, but it might have changed in 4.1 or 4.2 with the multiuser stuff Apr 21 04:06:54 :) Apr 21 04:07:03 I think I might Apr 21 04:07:24 hi, in my jni app, i am getting an "Unsatisfied link error": http://pastebin.com/RX1tCm14 . Could someone please help me with some suggestions? Apr 21 04:07:35 kevinb: yep, its there! thx again Apr 21 04:08:05 tnzr: you could aslo mean blin … a bit more advanced than phong Apr 21 04:08:19 the first step I was doing was multiplying the material color by the material's ambient factor Apr 21 04:08:21 blinn* Apr 21 04:08:30 then I was using the result of that as my coefficient of diffuse reflection Apr 21 04:08:47 it seemed to look ok but I'm just trying to make sure I'm not missing something in the conventional sense Apr 21 04:09:11 https://dl.dropboxusercontent.com/u/4461195/raytrace/initial-scene.PNG <-- that was just ambient on a reddish sphere Apr 21 04:09:37 erm, well to me Color, Ambient Color = Visual color Apr 21 04:09:47 and this was using that same ambient as the diffuse coefficient: https://dl.dropboxusercontent.com/u/4461195/raytrace/diffuse-one_white_light.PNG Apr 21 04:10:04 i see Apr 21 04:10:05 Diffuse would be the multiplier of light influence Apr 21 04:10:49 I would not call something reflection either Apr 21 04:11:07 ok Apr 21 04:11:13 oh hang on Apr 21 04:11:13 until I start implementing reflection anyway :) Apr 21 04:11:18 your doing a renderer ? Apr 21 04:11:23 with reflections ? Apr 21 04:11:25 its a raytracer Apr 21 04:11:27 yeah Apr 21 04:11:35 oh yeah, well call it that then Apr 21 04:11:36 i mean I haven't started on reflections yet Apr 21 04:11:41 but its on the todo list Apr 21 04:11:46 thought you were implementing a shader Apr 21 04:11:56 in mobile ogl or something Apr 21 04:11:57 :) Apr 21 04:12:09 hehe that would be sweet Apr 21 04:12:21 a raytracer in the shader Apr 21 04:12:42 you also have Phong E shading models that control specular shading in a differed pass Apr 21 04:12:44 I wonder if that's possible, not sure it would be since each fragment shader knows nothing of its neighbors and thus you couldn't really trace a ray through the scene Apr 21 04:12:57 maybe with the vertex shader too? Hell I dunno Apr 21 04:13:50 incandescense is important in phong shaders Apr 21 04:14:03 thats not the same as ambient values Apr 21 04:14:14 I think my terms may just be munged Apr 21 04:14:33 because my material struct has RGB fields but also a GLfloat for ambient Apr 21 04:15:11 between 0.0 and 1.0... if I do a first pass with that (basically do color = ambient * RGB) its that first screenshot I pasted Apr 21 04:15:16 and ambient is amount of RGB ? Apr 21 04:15:20 yeah Apr 21 04:15:23 thats not ambient Apr 21 04:15:27 well to me Apr 21 04:15:29 but if I do a second diffuse pass where I use that updated color as the coefficient it looks like the 2nd Apr 21 04:15:29 ok Apr 21 04:15:32 thats Diffuse Value Apr 21 04:15:35 ok cool Apr 21 04:15:52 that feels right to me, and looks right, but I think I was using the wrong terminology so that's a releif Apr 21 04:16:24 thanks dude :) Apr 21 04:16:38 eg a Diffuse Value is the value %/ratio of RGB that can have diffuse light influence it Apr 21 04:17:22 so with a light of 1.0 and diffuse val of 0.8, it can only ever reach RBG/0.8 as a rendered end pixel Apr 21 04:17:38 but I'm talking phong here Apr 21 04:18:05 i see Apr 21 04:18:27 oh, and thats a shading question Apr 21 04:18:36 lighting is far more interesting Apr 21 04:18:37 :) Apr 21 04:18:54 will it be lighting when I start doing reflection/refraction? Apr 21 04:19:01 no Apr 21 04:19:21 if i want to keep something running when screen is turned off, do i need to create a Service or IntentService? Apr 21 04:19:22 you doing/spec oh how values are altered when shading Apr 21 04:19:34 lighting is what values are passed and how Apr 21 04:19:47 hmm i see Apr 21 04:20:36 by reflections do you mean IOR and reflective values ? Apr 21 04:20:46 or do you actually mean specular components ? Apr 21 04:22:11 kevinb (or anyone): how does the launcher determine what apps to display in the 'app drawer' ? Apr 21 04:22:17 eg, diffuse + ambient = black to values of the shader (if the light contributes a full unit) specular + spec methods = current shader values and above Apr 21 04:23:28 actually specular can take it either way, darker or lighter than current Apr 21 04:23:33 ugh, tis late Apr 21 04:23:37 billybobjoe: launchers use PackageManager.queryIntentActivities , looking for an intent with ACTION_MAIN and CATEGORY_LAUNCHER . If you checkout the AOSP code I think it's in packages/app/Launcher2/src/com/android/launcher2/LauncherModel.java Apr 21 04:23:40 5:30 am Apr 21 04:23:48 jeez! Apr 21 04:24:01 * StingRay_ goes and gets a coffee Apr 21 04:24:02 StingRay_: i'm not entirely sure I understand the question to be honest Apr 21 04:24:26 well reflection+ ior is a raytrace method Apr 21 04:24:44 but is not directly a specular attrib Apr 21 04:24:55 I wondered which you mean Apr 21 04:26:54 when my ray intersects with the sphere, I dot the unit normal at that point on the sphere with the normalized vector pointing from that point to the light source, then multiply that (if it's >0) by the ambient*RGB value from earlier and again by the RGB of the actual light Apr 21 04:27:21 and I add that to the initial color at that point on the sphere Apr 21 04:27:29 jeez that was longwinded, my apologies Apr 21 04:29:31 are the motion events like up/down the lowest level i can get from android os? Apr 21 04:29:48 *!*@60-242-153-150.static.tpgi.com.au Apr 21 05:09:22 first non mac box in a long time Apr 21 05:10:51 windows ? Apr 21 05:10:56 you crazy fool Apr 21 05:10:57 ? Apr 21 05:11:44 it could run linux Apr 21 05:11:48 lmafo whats the problem with windows? Apr 21 05:11:52 im using it right now Apr 21 05:11:53 but right now its running indows Apr 21 05:12:11 Windows can do everything any other machine can do + more Apr 21 05:12:24 I dont agree Apr 21 05:12:35 agy2154: do you use osx ? Apr 21 05:12:38 git and others are second class citizens on windows Apr 21 05:12:52 cant REALLY run riak and shit Apr 21 05:12:56 StingRay_, At school only. Windows all the way thoguh. Apr 21 05:12:59 lots of modern tech stuff linux only Apr 21 05:13:06 wel more of unix like os only Apr 21 05:13:08 Idk... I think im more productive on other systems thoguh. But still windows can do more. Apr 21 05:13:16 StingRay_, What do you recoomend? Apr 21 05:13:26 agy2154: then if you have not used it professionally….you dont know what your on about ;) Apr 21 05:13:39 me….windows,linux,unix,osx Apr 21 05:13:45 can you elaborate on "professionally" Apr 21 05:14:12 oh and stuff like c++ and what not Apr 21 05:14:16 not great on windows Apr 21 05:14:19 vs.net is awesome Apr 21 05:14:19 StingRay_, Im honestly considering getting a mac just for ios but was wondering if it is worth the money Apr 21 05:14:22 but compilation etc Apr 21 05:14:23 you rely on it in a business to perform a commercial task that both you, the business and others are downstream affected Apr 21 05:14:23 boo Apr 21 05:14:25 imac Apr 21 05:14:39 agy2154 - do you have any bllion dollar ideas for ios? Apr 21 05:14:47 i have a few Apr 21 05:14:49 *million Apr 21 05:14:57 *million dollar Apr 21 05:14:59 whats wrong with windows then?' Apr 21 05:15:05 app dev is really proven to be mostly not profitable for MOST app devs Apr 21 05:15:24 I am willing to take potential losses for apple being a bunch of douches Apr 21 05:15:30 and forcing you to buy a mac to build apps Apr 21 05:15:35 haha Apr 21 05:15:43 hey guys, I'm trying to do a android app that works as a direct login to a website. The idea is that when I click the app, it logins and also redirects me into the control panel of my University. The problem is that I don't know how I can make a http post in android to do this, someone can help me? Apr 21 05:15:52 ron_frown, do you have a mac? Apr 21 05:15:55 yes Apr 21 05:16:00 I've build ios apps Apr 21 05:16:12 and I actually prefer mac ios dev over android Apr 21 05:16:24 ios market is way more saturated Apr 21 05:16:29 StingRay_, why don't you use it? what is more profitable Android or iOS? Would you reccomend me building my own build at the cost of an imac or just buying an imac Apr 21 05:16:32 and very few people make it for themselves Apr 21 05:16:46 ron_frown, what mac do you have? Is it good for the price? Apr 21 05:16:53 macbook pro Apr 21 05:16:57 and honestly not really Apr 21 05:17:06 mac != osx Apr 21 05:17:07 I had about a 1.5yr old macook pro at work Apr 21 05:17:17 ik Apr 21 05:17:19 I'm a fan of osx Apr 21 05:17:32 StingRay_, So you have OSX on a intel machine ;D ? Apr 21 05:17:32 I "upgraded to a core 2 duo desktop" Apr 21 05:17:32 and its way way faster Apr 21 05:17:32 sadly Apr 21 05:17:35 not a real fan of mac, well suppose build quality Apr 21 05:17:51 I have osx on macbook pro, intel workstation Apr 21 05:17:53 the only thing apple has going for it anyway Apr 21 05:17:55 I find the build quality of apple products better than any other product. Apr 21 05:17:59 is that its common hardware set that works well together Apr 21 05:18:01 and is stable Apr 21 05:18:04 osx has bogged down Apr 21 05:18:13 I have an iphone. I gave my nexus to my mom. Apr 21 05:18:28 StingRay_, Is it a offical mac ? Apr 21 05:18:37 is what ? Apr 21 05:18:41 you computer Apr 21 05:18:50 ron_frown, I might get one. I'm not sure though if i might make some of that money back via dev. Apr 21 05:18:50 my macbook's and macbook pro and mac pro Apr 21 05:18:51 yes Apr 21 05:18:57 ahh Apr 21 05:19:00 but the intel i7 is not Apr 21 05:19:05 and I run osx on that too Apr 21 05:19:06 :) Apr 21 05:19:17 StingRay_, Ha does it preform better than the others? Apr 21 05:19:23 heres the thing Apr 21 05:19:30 osx for ios dev alone Apr 21 05:19:32 well my mac pro is old Apr 21 05:19:34 probably not a great investment Apr 21 05:19:35 so yeah Apr 21 05:19:44 especially if its your "great" app idea Apr 21 05:19:53 if you are learning ios dev to do it professionally for a company Apr 21 05:19:55 thats a diff story Apr 21 05:20:38 hello there Apr 21 05:20:50 I would suspect the average iOS dev to be able to charge more and earn more from his/her own apps Apr 21 05:21:04 by charge I mean commercial rate Apr 21 05:21:15 Well Im in Highschool atm and I make a bit of money working freelance online so I have some to spend. As for the app its also about learning so i don't know. how would mac run on my laptop: i7... 310m nvidia. 4gb ddr3 Apr 21 05:21:20 any ideas about encoding gif's in android, it seems to be possible to decode with Movie, and possible to encode with awt stuff, but i can't find anything that would allow me to do it natively in android Apr 21 05:21:30 agy2154 GUARENTEE the saturatin is way worse than android Apr 21 05:22:06 ron_frown, damn i thourht that apple only accepted higher quality apps Apr 21 05:22:09 like unique Apr 21 05:22:18 market has been around a lot longer Apr 21 05:22:24 and thats just another excuse to owrry Apr 21 05:22:32 spend 5mo buildin an app to have it rejected Apr 21 05:22:38 damn Apr 21 05:22:40 (especially if you arent a big company) Apr 21 05:22:46 if i don't pay my $99 will my app stay on the app store Apr 21 05:24:39 I don't know. I want to get an Imac. My laptop is kinda crappy: http://www.pcmag.com/article2/0,2817,2370639,00.asp... 3 Years old Apr 21 05:26:04 agy2154: you dont run MAC!!!!!! Apr 21 05:26:10 mac = hardware Apr 21 05:26:14 StingRay_, my bad ik. OSX Apr 21 05:26:16 just liek ios Apr 21 05:26:19 I get confused Apr 21 05:27:00 But I don't know if would be better than windows on my laptop. Apr 21 05:27:09 not Apr 21 05:27:23 OSX is stable cause of fixed hardware Apr 21 05:27:27 well most of the time Apr 21 05:27:29 :) Apr 21 05:28:12 any ideas on image encoding for gif? i'm about to write this one from scratch Apr 21 05:28:37 erdos why gif ? Apr 21 05:28:39 StingRay_ I'd say anymore, I doubt thats true if you get a dell workcenter etc Apr 21 05:28:57 StingRay_: it's part of the whole project, i'm porting this: http://gifbone.com to an android app Apr 21 05:29:37 oh you mean why gif over png... because the animation Apr 21 05:29:38 erdos: gonna say png lib would be easier to do a frame list no ? Apr 21 05:30:04 png support index pallets and even index transparency Apr 21 05:30:11 gif bone is bad Apr 21 05:30:14 too much penis Apr 21 05:30:20 lol Apr 21 05:30:22 so much penis Apr 21 05:30:33 every day i check, new penis animations Apr 21 05:30:56 well i want the gif to be available on the sdcard, and send to the server so users can do whatever they want with their dick gifs Apr 21 05:31:04 download, put on their own sites etc Apr 21 05:31:15 ron_frown: well I use RH/CENTOS for serious visual effects work, windows for game art dev, and osx for …pissing around, video + comping and android dev Apr 21 05:31:26 and that all fits me well Apr 21 05:31:53 I dont like screens / screen res on macbook pros Apr 21 05:31:56 probably other laptops Apr 21 05:32:00 ok for browsing etc Apr 21 05:32:01 but Apr 21 05:32:39 yeah I only use 17 macbook pro for docs and pissing around, oh and xbmc with remote when I'm in a hotel Apr 21 05:32:40 :) Apr 21 05:33:16 I do a lot of ,net shit Apr 21 05:33:16 so Apr 21 05:33:24 windwos is what I should have been running all along Apr 21 05:34:34 different worlds Apr 21 05:34:56 oh saying that, I have rEFIt and have windows and ubunto on mac pro too Apr 21 05:34:58 :) Apr 21 05:35:05 hahah Apr 21 05:35:06 ubuntu* Apr 21 05:35:10 refit was my biggest mistake ever Apr 21 05:35:21 just give it time Apr 21 05:35:25 you'll realize that was a mistake Apr 21 05:35:55 well I have a few efi bootloaders Apr 21 05:36:03 so I should be good Apr 21 05:36:13 it fucked up my harddrive Apr 21 05:36:18 I had to back it up to external hd Apr 21 05:36:25 complete wipe everything as if ti was a new device Apr 21 05:36:25 oh wow, the raw data in a gif isn't even that complicated, i kind of assumed there would eb more voodoo than this! Apr 21 05:36:34 fucks up guid partition table etc Apr 21 05:36:56 ron_frown: yeah, well that can happen if you dont follow the instructions ;) Apr 21 05:37:03 no Apr 21 05:37:06 it was working Apr 21 05:37:09 it worked just fine Apr 21 05:37:17 it was only down the road did I realize it was a problem Apr 21 05:38:41 well I patched the GUID table to work, and checked it a number of times Apr 21 05:38:55 needed to, cause of ubuntu + windows + osx Apr 21 05:40:04 there is only one thing that has been missing from my osx experience to-date, and I think it's been that long absent that for some reason I will never see it Apr 21 05:40:12 finder "cut" Apr 21 05:40:22 or even "move" Apr 21 05:40:28 everything in osx is a hack Apr 21 05:40:29 I'd settle for either Apr 21 05:40:31 and like IOS Apr 21 05:40:35 osx is getting kinda dated Apr 21 05:40:44 I hate the shitting win8 launch thingy Apr 21 05:40:51 but with that turned off, I'm liking win8 Apr 21 05:40:59 hmmm Apr 21 05:41:04 hmmm x 10 Apr 21 05:41:20 out of box, win8 perplexed me Apr 21 05:41:27 way to alienate users =) Apr 21 05:43:19 I'm hoping with wayland and weston Apr 21 05:43:23 linux desktop gets there Apr 21 05:45:28 doubt it Apr 21 05:45:51 well you think about it Apr 21 05:45:54 I hate the fact that windows is still a must in console game dev Apr 21 05:46:03 whats the diff between osx and freebsd Apr 21 05:46:05 not a shitlaod Apr 21 05:46:10 just a real nice gui toolkit Apr 21 05:46:11 polish Apr 21 05:46:18 and window server sitting on top of the kernel Apr 21 05:47:08 well it's probably quite far branched now, from orig bsd kernel Apr 21 05:47:17 but yeah I know whaty our saying Apr 21 05:47:34 I just dont like the directx prison in mainstream dev Apr 21 05:47:36 linux could be there as a desktop if they made it less linux-y to avg user Apr 21 06:11:33 Before Api 11 every new action was represented by standalone "activity" ? Apr 21 06:36:17 Hello, anyone on who may be able to help me out with some debugging? Apr 21 06:43:03 vinzt: erm, how would we do that ? Apr 21 06:49:19 by reading a stacktrace or some code Apr 21 06:49:34 which is most likely paste binned Apr 21 06:55:22 I have some solutions to my problem, just not the correct one. Can't get an AsyncTask to work the way I want it to. Apr 21 06:55:47 and that would be Apr 21 06:56:03 async is pretty straight forward lol Apr 21 06:57:42 vinzt, you want help but youre not giving much for us to go on Apr 21 07:02:57 who what Apr 21 07:06:18 you have to sweet talk the async task vinzt Apr 21 07:07:07 I just talk dirty to it Apr 21 07:07:27 "come on you little bitch.... let me see you do that work!..." Apr 21 07:07:46 hehe that would actually work better ;p Apr 21 07:08:03 then slap android on the ass Apr 21 07:09:40 doesnt work on my wife either =( Apr 21 07:10:11 lol! Apr 21 07:24:22 irc is so boring at night Apr 21 07:27:02 its boring all the time :) Apr 21 07:27:12 unless ron_frown is here, of course Apr 21 07:27:35 It's a 1pm-blazing-sun here, folks Apr 21 07:27:36 :) Apr 21 07:27:41 I'm sure you could write up a little script to strobe the text and window background colors, party it up a bit ;p Apr 21 07:28:03 (after some interval of channel inactivity) Apr 21 07:28:17 how to starch ImageView to fix half of the screen? Apr 21 07:28:17 Like that mode in emacs? Apr 21 07:28:20 haha Apr 21 07:28:22 * lut4rp forgets what it was called Apr 21 07:28:28 lut4rp where is here Apr 21 07:28:33 ron_frown, Bangalore, India Apr 21 07:28:35 lut4rp hey - i just downloaded emacs the other day Apr 21 07:29:00 read about something called orgmode which was pretty cool Apr 21 07:29:00 kamol: one way is to drop it in a linearlayout with two child views, each layout weight of 1 Apr 21 07:29:41 g00s, yep, org-mode is pretty awesome Apr 21 07:29:45 lasserix: RelativeLayout cannot? Apr 21 07:29:58 My designer friend uses emacs for org-mode even though he doesn't write any code Apr 21 07:30:18 lut4rp: looked around for some books on emacs; the oreilly one is like 8 years out of date or something Apr 21 07:30:30 kamol: you can't use relativelayout with layoutweight Apr 21 07:30:46 that's just one way to do it though Apr 21 07:30:55 g00s, Learning Emacs? I think it will still be mostly relevant Apr 21 07:31:05 lasserix: tq! Apr 21 07:31:07 hmm, ok. Apr 21 07:31:24 let me try then, shit, I already spend some time with this relative layout :) Apr 21 07:31:45 I've gone through it many years ago, I don't remember it being anything specific to a version of emacs. Apr 21 07:31:48 well it depends on if you are centering it or not, or what you are doing Apr 21 07:31:54 ron_frown: i think you and i should be Statler and Waldorf during I/O Apr 21 07:32:31 g00s you should hang out in #emacs it is a very lively channel Apr 21 07:32:43 Indeed Apr 21 07:32:54 g00s I have no idea what you are talking about Apr 21 07:32:54 lol Apr 21 07:32:56 interesting Apr 21 07:33:31 emacs just full featured text editor? Apr 21 07:33:39 lasserix: with this linearlayout. Then I will have to have 3 linear layouts? just make image view in the half and the rest views on other halft? Apr 21 07:33:40 its like a frameowkr Apr 21 07:33:45 afaik Apr 21 07:33:48 emacs can do anything Apr 21 07:34:02 yeah Apr 21 07:34:02 ron_frown: http://www.youtube.com/watch?v=14njUwJUg1I Apr 21 07:34:21 kamol do you have a mock up of what you are trying to do? Apr 21 07:34:24 ron_frown: mobile emacs coming 2015 ! Apr 21 07:34:39 lasserix is way more than that. It is an extensible editor. Ressemles a lisp machine in that it is easier to program new functionaly or replace its built in features Apr 21 07:34:49 ahh Apr 21 07:34:51 in fact I'm connecting to irc from emacs Apr 21 07:35:03 so its virtual glyphing Apr 21 07:35:41 whoever decided office chairs should be leather Apr 21 07:35:42 should be shot Apr 21 07:36:28 ron_frown: you like the mesh ones so you can pass gas easier to your neighbors, right ? Apr 21 07:37:09 :lasserix http://pastebin.com/yLS0iYFd Apr 21 07:38:03 as soon as it gets remotely warm, its the sole cause of much swamp ass Apr 21 07:38:49 btw if I want to access a property of a EditText in a Listener, how do I reference it? I can't pass it as a parameter to the listener right? I'm having trouble with defining a public setter Apr 21 07:39:36 PuercoPop: are you using emacs for android dev ? Apr 21 07:39:53 no, I'm pretty new the Android and Java Apr 21 07:40:03 kamol: so collectively the textviews's are supposed to take the top half and the image view take the bottom half? Apr 21 07:40:08 I've tried emacs + android and it is a fair amount of pain Apr 21 07:40:17 so I'm starting on Eclipse first and when I get a hold of it maybe switch to emacs and the console tools Apr 21 07:40:25 This, when I've been using emacs for 6-7 years now. Apr 21 07:40:27 kamol: err the other way around? Apr 21 07:40:28 :lasserix yes, but opposite Apr 21 07:40:36 :lasserix correct Apr 21 07:41:29 hey ron_frown , jdk 8 slipped until 2014 Apr 21 07:41:44 i'm glad they aren't dropping lambda though Apr 21 07:41:52 g00s big surprise =) Apr 21 07:41:53 lol Apr 21 07:42:03 kamol: here http://pastebin.com/8YWKz99n Apr 21 07:42:13 my exposure to java is only android Apr 21 07:42:18 and no desire to use it elsewhere Apr 21 07:42:22 you can likewise give each textview a layoutweight of 1 and layout_height of 0dp and it'll look very symmetric Apr 21 07:43:33 ron_frown: i'm not interested in java, but Closure and Kotlin were interesting for server side Apr 21 07:43:55 no idea what that is Apr 21 07:44:01 Closure? or Clojure Apr 21 07:44:12 heh, yeah Apr 21 07:44:21 I've been invovled with .net a long time... and its served me very very very well Apr 21 07:44:25 kamol: here throw this one in your GUI editor : http://pastebin.com/M32mDMW9 Apr 21 07:44:43 i removed the relativelayout stuff and changed fill_parent (which is deprecated) to match_parent Apr 21 07:45:06 Before Api 11 every new action was represented by standalone "activity" ? Apr 21 07:45:56 bluesm: that was generically the idea Apr 21 07:46:47 honestly c# to me is just going exactly where it should go Apr 21 07:46:56 lots of dynamic functionality Apr 21 07:47:07 lasserix: actually it is just 2 layouts, awesome! Thank you a lot! Apr 21 07:47:15 kamol: np good luck! Apr 21 07:47:25 is java slowing down at all because of the foundation? I know key players were threatening to quit because of oracles bs Apr 21 07:47:38 ron_frown: just wish you could make standalone binaries from it Apr 21 07:47:46 from what Apr 21 07:47:47 .nte? Apr 21 07:47:51 yeah Apr 21 07:48:03 well wtf, its not like you can from java can you? Apr 21 07:48:10 wiht mono you can do AOT compilation Apr 21 07:48:32 which I thought would make it a static exe statically linking whtaever it needed Apr 21 07:48:44 yeah i know i just spent a few months working on various personal projects and only two of the five people i shared the stuff with could actually run it Apr 21 07:49:13 requiring a runtime to me is a non issue whatsoever Apr 21 07:49:28 if people request java to be installed... .net is a LOT more compact Apr 21 07:49:47 no its not cross platform portable (even though non ui stuff largely is) Apr 21 07:50:18 not even within the windows enviroment is it intraplatform a lot of the time ;p Apr 21 07:50:28 I have absolutely not had that problem whatsoever Apr 21 07:50:40 and I've been with .net since its inception in 2000 Apr 21 07:51:00 you build an app for v 4.5 and a person has 3.5 runtime install... whats gonna happen lol Apr 21 07:51:09 broke for me Apr 21 07:51:18 and even then, .net is kind enough to grenade onlyt when you use that higher level functionality Apr 21 07:51:37 right that's what i had problems with--and the fact transparency is such a pain Apr 21 07:51:40 if you took a 3.5 app, targetted 4.0, and got it running on a 3.5 machine, it'd run just fine Apr 21 07:51:53 I just dont see how this is any different than anything else Apr 21 07:51:59 android does the exact same shit Apr 21 07:52:02 java as well Apr 21 07:52:20 yeah yeah, i know, just saying ;p Apr 21 07:54:20 Hi everybody Apr 21 07:54:24 uh oh Apr 21 07:54:29 Hi Dr Nick Apr 21 07:54:31 hue hue hue Apr 21 07:54:44 ? Apr 21 07:54:47 what did I miss Apr 21 07:55:16 It's me, I tend to have weird problems and ask weird questions that get the veterans frustrated with me. Apr 21 07:56:22 That being said, I'm having a small prob with google maps API. When I test on my device I get grey tiles. I've got all the right permissions and I've registered and gotten a key. Also tried using debug.keystore and generating my own. Any ideas on what's going on? Apr 21 07:56:52 Tricknology wrong zoom levels or invalid lat/lngs? Apr 21 07:57:10 forgot to mention server is returning 3. Apr 21 07:57:30 you zoom in at 0,0 you are in the middle of the ocean and zoomed in, you'll gte gray tiles Apr 21 07:57:34 no details Apr 21 07:58:22 well i can see my image on the overlay.. i zoom out and still tiles Apr 21 08:01:36 Hey If I run my emulator Apr 21 08:01:43 i'd like to reiterate that this is a device, not emulator. Apr 21 08:01:48 ctr+f12 don't work to change orientation. Apr 21 08:01:51 AND THEN?! Apr 21 08:03:32 ron_frown: ? Apr 21 08:03:48 not meant for you Apr 21 08:04:26 man I hate when people build shit in x language... and its clear this person didnt know this language Apr 21 08:04:35 eg, java techniques, c# code Apr 21 08:06:49 ok Keypad (7) changed orientation :] Apr 21 08:14:16 If I use support library. Than what happens if i run my app on device that doesn't need this support library ? Apr 21 08:16:39 ron_frown: and? Apr 21 08:17:02 bluesm: it'll rip a hole in the fabric of space and time and all that we know will come to an end Apr 21 08:18:53 I set up touch listener for all views in the root layout group, but how can I get a handle on the action bar itself? Apr 21 08:19:22 lasserix: Seriously ? Apr 21 08:20:03 I dont know Apr 21 08:22:44 ron_frown: and ? and ? ! Apr 21 08:28:26 Anyone know how to get a handle on the action bar (the entire thing) so I can force the soft keyboard to close when the user touches it? Apr 21 08:35:19 ahh this makes me so sad Apr 21 08:40:46 ugh, i hate it when they change api's Apr 21 08:52:58 How does the actionbar handle text with icon on sizing? Apr 21 08:53:00 aaah Apr 21 08:53:05 aaaahhhh! Apr 21 08:53:15 i don't know exactly, i would listen for a touch event Apr 21 08:53:21 maybe get the general location of the touch Apr 21 08:53:24 uhh Apr 21 08:53:34 you can't set a touch listener on the general action bar Apr 21 08:53:43 i mean on the whole screen Apr 21 08:53:50 yeah you cant Apr 21 08:54:06 the whole screen does not include the action bar Apr 21 08:54:24 as far as i can tell--i just skipped it and put it in the options selected, Apr 21 08:54:31 works well enough Apr 21 08:54:50 i dont want to spend 3% of the overall app dev time on this app just cleaning the edittext / virtual keyboard Apr 21 08:54:52 pow http://stackoverflow.com/questions/11079718/action-bars-onclick-listener-for-the-home-button Apr 21 08:55:00 yeah for the home button Apr 21 08:55:05 but i wanted generically for the action bar Apr 21 08:55:18 :/ sry man, never done anything like that before Apr 21 08:55:40 ahh its just i want the virtual keyboard to close anytime the user clicks outside of the edit text Apr 21 08:56:13 so for instance if you open the virtual keyboard by clicking on an edit text, then click on a menu action to go to a new fragment, the virtual keyboard won't automatically close :( Apr 21 08:56:19 i swear there's a way to set a listener to the entire thing Apr 21 08:56:37 yeah i did it, but only inside the view hierarchy of the layout--which does not include the action bar itself Apr 21 08:56:53 ooh, i see Apr 21 08:57:08 anyways get anywhere with your grey tiles? Apr 21 08:57:20 haha i figured out that they changed the api :( Apr 21 08:57:31 it's been awhile and a lot has changed Apr 21 08:57:33 better than some ghost bug :) Apr 21 08:57:39 lol Apr 21 08:57:47 maybe listen to the focus? Apr 21 08:58:25 onFocusChangeListener Apr 21 08:58:27 ahh its cool, i figure if the the user touches an empty part of the action bar the virtual keyboard doesn't necessarily need to close, if it'll close everywhere (menu actions, or in the layout) else the user touches Apr 21 08:58:39 i see. Apr 21 08:58:48 nah im over it it's good enough, this is really a small detail but i like the app to be clean :) Apr 21 08:59:22 okie dokey, well gl Apr 21 08:59:23 hf Apr 21 09:04:57 sorta newish to programming/java.. that said, i'm having trouble figuring out how to use Log.d to print a message Apr 21 09:05:18 did you buy a megaphone? Apr 21 09:05:22 i just want to print the result of some method Apr 21 09:05:30 Log.d goes to the ddms Apr 21 09:05:45 i don't think it goes to the console if that's where you're checking Apr 21 09:05:46 right.. so the method returns a boolean Apr 21 09:05:58 but Log.d expects a string Apr 21 09:06:00 wow they really simplified the maps.. no overlay? heck yes Apr 21 09:06:19 i'm not sure what it returns, the return value isn't really of any consequence Apr 21 09:06:20 is this only for android 3.0+? or can i still target 2.3.3? Apr 21 09:06:29 but yeah, it takes two strings Apr 21 09:06:36 billybob ... like this Log.d("KEYWORD", "message in the form of the string, you can probably check whether it is is true" + myBoolean) Apr 21 09:07:09 oh right Apr 21 09:07:10 Log.d("String" ,value); Apr 21 09:07:14 ahhh Apr 21 09:07:16 misread Apr 21 09:07:30 didnt know you could append a boolean to a string like that Apr 21 09:07:39 oh yea Apr 21 09:08:00 like i said.. noob here. ha Apr 21 09:08:15 so.. ive had the hardest time just trying to figure out how to rename a file Apr 21 09:08:17 acts like normal string concatenation i believe Apr 21 09:08:18 sometimes you have to use that hack if you want to display an int as well. like Log.d("TAG", myInt +""); Apr 21 09:08:49 renaming files can be a pain, are you using eclipse? Apr 21 09:08:58 or any time you convert # to string Apr 21 09:09:06 lasserix: yes Apr 21 09:09:15 what file are you trying to rename? Apr 21 09:09:17 googled for hours Apr 21 09:09:22 using right clicking --> refactor will work Apr 21 09:09:29 saw on stackoverflow something like this: http://pastebin.com/u4zfhBxG Apr 21 09:09:40 unless you do that to an xml file, in which case you have to go through all your code files and change the xml file pointer Apr 21 09:10:08 ie changing myactivitylayout.xml in the ide will not refactor it in youractivity.class R.layout.myactivitylayout Apr 21 09:10:23 no.. im just trying to rename a file programmatically Apr 21 09:10:29 not trying to rename something in my project Apr 21 09:10:31 oh dont Apr 21 09:10:33 use refactor Apr 21 09:10:42 wait.. im confused Apr 21 09:10:53 i *want* to .. ie its part of my app Apr 21 09:10:57 what are you trying to change, sorry i guess i was assuming Apr 21 09:11:04 just trying to rename a file Apr 21 09:11:13 something in your src folder? Apr 21 09:11:16 in the app's /data/data/ dir Apr 21 09:11:21 oh Apr 21 09:11:38 something like i pasted earlier.. http://pastebin.com/u4zfhBxG Apr 21 09:11:43 but that fails Apr 21 09:12:09 did you add the permission to write to sd card or whatever in your manifest? Apr 21 09:12:27 yep Apr 21 09:12:52 ive been able to write to that dir.. but the renameTo method is returning false Apr 21 09:13:06 from.txt definitely exists? Apr 21 09:13:47 lemme double check Apr 21 09:14:33 yeah it exists Apr 21 09:14:45 hello! Apr 21 09:14:57 i want to ask you something about performance Apr 21 09:15:19 waiit Apr 21 09:15:23 i have an sqlite db in my app Apr 21 09:15:26 no ha.. my bad.. wrong dir Apr 21 09:15:31 got it working, thx! Apr 21 09:15:49 hehe great! it's often something like that Apr 21 09:15:56 i'm doing stuff at the moment that writes to the sdcard, i've noticed that the file system on the card doesn't change until you unplug and plug the phone, just fyi Apr 21 09:16:14 and i want to get run a query to get some results Apr 21 09:16:51 resou1 and... Apr 21 09:17:44 are you forgetting to move your cursor to first before trying to pull the data? Apr 21 09:18:03 no no i want to ask you which is better to use Apr 21 09:18:11 cursorloader Apr 21 09:18:35 or 1000's monkeys with telegraphs? Apr 21 09:18:39 or handle the cursor in my activity inside a thread or asynctask Apr 21 09:18:47 for example Apr 21 09:19:03 cursorloader is a kind of asynctask Apr 21 09:19:15 and it depends on whether you are populating a list or not Apr 21 09:19:28 i have one method getresults which is responsible for the query and it returns a cursor Apr 21 09:20:09 then i run a for loop inside my activity to get every result of the cursor Apr 21 09:21:01 i know that cursorloader is a kind of asynctask but my guess is that it will be more efficient if i include all the for loop which reads the results from cursor loader Apr 21 09:21:24 inside a thread or asynctask Apr 21 09:21:27 what are you doing with all this data? Apr 21 09:22:10 i initialize the markers of my AR app Apr 21 09:22:50 so first of all there are a big amount of them and second the initialization is in the beginning of the app Apr 21 09:23:52 for the time being i just use a cursor but i can see a little lag when i retrieve the markers from the db Apr 21 09:24:50 hmm idk sounds like you gota bench it and see, from what i understand the cursorloader as an async task is already offloaded into its own thread, so using another thread to do even more processing sounds like you are doing something incorrect Apr 21 09:25:19 but definatly if retrieving the cursor on your main thread is causing hiccups offload it one way or another Apr 21 09:25:33 for what you are doing you may want to implement your own async loader Apr 21 09:26:01 i believe someone posted one up for doing sqlite transactions without having to do cursorloader Apr 21 09:26:20 have you got any link for this? Apr 21 09:28:00 maybe the cursorloader will be enough for my goal but i am afraid that in both cases it will be a risk to initialize the view of my layout without having retrieved the results from my db yet Apr 21 09:28:08 is this possible to become? Apr 21 09:28:32 it could be this link https://github.com/dinocore1/DevsmartLib-Android/blob/master/devsmartlib/src/com/commonsware/cwac/loaderex/AbstractCursorLoader.java i can't remember Apr 21 09:28:37 sorry for my english Apr 21 09:28:41 np Apr 21 09:28:50 you should plan on some lag time Apr 21 09:29:01 because some people will not have best phones anyways Apr 21 09:29:20 so you may do some kind of simple cool animation EVEN if it initialization is fast Apr 21 09:30:13 for instance do a pseduo heads up display of old school terminal style that overlays whatever (since its just text, it'll be fast) Apr 21 09:30:32 and it'll look cool and you could even just post a pseudo triangulation of gps coordinates or whatever Apr 21 09:31:24 ultimatly you'll have to bench and compare what works best if you are looking for absolutly smooth initialization though Apr 21 09:31:45 in the case of using only the cursorloader how can i be sure that the views won't initialize with null and after that the results will be ready? Apr 21 09:32:07 cursorloader has a callback that only returns when it is finished loading Apr 21 09:32:26 you are right thanks! Apr 21 09:32:41 thanks for your help Apr 21 09:32:52 that's why i was saying you might as well make a cool splash/transition animation Apr 21 09:33:47 thank you very much Apr 21 09:35:51 if you did something like this in fast motion with a transparent background overlayed on the ar while the cursor loader was going Apr 21 09:36:15 it might be cool http://www.youtube.com/watch?v=engqGfYYV4w (except use relevant info like "TRIANGULATING GPS 23232.232323 23232.232332" etc) Apr 21 09:37:03 no problem good luck! Apr 21 09:38:43 (or a matrix number style overlay that streams past and then fades out :P ) Apr 21 09:39:17 back to work! Apr 21 09:42:13 my problem is not what the user will see while the data were loading because he can see the live image of his camera and other staff Apr 21 09:43:01 it is only for performance reasons. I just make a toast("updating markers") in the beginning Apr 21 09:44:00 as i look for the cursorloader it is not as trivial as i expected! Apr 21 09:49:14 How do I have a resource file set for devices below a given dp width? Apr 21 09:49:51 values-sw640dp for example matches >=, but there doesn't seem to be a setting for < so I can have two groups. Apr 21 09:58:39 Using small, normal, large, xlarage, which are marked as deprecated, seems to work well. Apr 21 10:25:29 values/ would match < sw640dp Apr 21 10:45:28 oh netflix what crap will you come up with next Apr 21 10:45:34 hi ya'll Apr 21 10:45:56 hello Apr 21 10:46:26 how you doing Apr 21 10:47:36 can someone tell me how i use the sketchs Apr 21 10:47:44 in eclipse Apr 21 10:47:56 can i integrate them into eclipse Apr 21 10:48:10 sketches? Apr 21 10:48:13 yer Apr 21 10:48:19 what is a sketch Apr 21 10:48:27 like the keypad Apr 21 10:48:40 let me get the webpage Apr 21 10:52:56 ? Apr 21 10:53:25 sorry Apr 21 10:53:33 https://www.graffletopia.com/categories/android Apr 21 10:53:33 i think there called stencils Apr 21 10:53:55 how do you want to use them? Apr 21 10:54:31 i want to know if those stencils Apr 21 10:54:56 can be integrated into my application i want to program Apr 21 10:55:03 or better yet Apr 21 10:55:06 umm like you want to add icons to your app? Apr 21 10:55:11 are there libraies in the sdk Apr 21 10:55:21 libraries Apr 21 10:55:30 those probably either come as vector images or png files Apr 21 10:55:31 that i can get say the keypad Apr 21 10:55:39 png files can be used in many ways in an eclipse Apr 21 10:55:39 yer Apr 21 10:55:45 really Apr 21 10:55:50 yeah of course! Apr 21 10:56:08 there is also a library for using svg (vector) files in your app and avoid handling different densities Apr 21 10:56:38 but in reality you wouldn't use a keypad image in your app, you'd use buttons and then use images for the button states of each of the keys Apr 21 10:56:56 which might be a lot of work if the holo buttons aren't good enough for you anyways Apr 21 10:57:09 ahh Apr 21 10:57:19 how do you call the holo buttons Apr 21 10:57:20 but anyways to answer your question yes its very easy to incorporate that stuff Apr 21 10:57:29 awesome Apr 21 10:57:40 it's the native GUI android on i believe versions 3.0 and up use Apr 21 10:58:02 howcome eclipse has a very basic gui builder Apr 21 10:58:14 do i have to code in xml Apr 21 10:58:18 or java Apr 21 10:58:24 to get that keypad say Apr 21 10:58:34 why are is our reproductive organs next to our waste organs? who knows? Apr 21 10:58:40 lol Apr 21 10:59:04 because they used to be the same orifice. Apr 21 10:59:26 ;p Apr 21 10:59:38 zeppelin, what are you using this keypad for? Apr 21 10:59:40 do you know any good tutorials apart from google androids site Apr 21 10:59:46 to learn Apr 21 11:00:01 yeah but a device typically has its own keyboard Apr 21 11:00:07 are you making a calculator? Apr 21 11:00:21 no dude Apr 21 11:00:35 i was just using the keypad as an example Apr 21 11:00:46 oh Apr 21 11:01:04 i have no idea how to basically make the gui of the app Apr 21 11:01:09 first up Apr 21 11:01:40 and then i need to look at how to call the android libraries Apr 21 11:01:40 I'd stick with the official Guide and Training for starters. Apr 21 11:01:47 And yes, you have to do XML and Java. Apr 21 11:01:57 ahh Apr 21 11:02:03 Zeppelin what's your level of programming exp? Apr 21 11:02:08 xml looks pretty easy Apr 21 11:02:21 i done java in a couple of courses Apr 21 11:02:23 It is. It's merely a markup language. Apr 21 11:02:30 some c++ Apr 21 11:02:46 html 12 years ago Apr 21 11:03:20 i'm not a pro Apr 21 11:03:21 Zeppelin: go over the basic android tutorials Apr 21 11:03:28 but if that's boring or you want something better Apr 21 11:03:33 this tutorial looks decent Apr 21 11:03:34 http://cloud101.eu/blog/2012/03/10/android-introduction-to-a-simple-calculator/ Apr 21 11:03:41 but i get the programming basics Apr 21 11:03:48 for every language Apr 21 11:04:31 so i don't need these stencils at all Apr 21 11:04:40 its all in the sdk Apr 21 11:04:40 yeah Apr 21 11:04:43 everything i need Apr 21 11:04:47 awesome Apr 21 11:05:11 i was trying to figure out how the heck i was gonna make a picture look like a button was pressed in it Apr 21 11:05:12 unless you want to customize the way it looks most of the stuff is built in Apr 21 11:05:35 buttons do that automatically with something called states, but that's stuff you don't worry about until you actually have an app working Apr 21 11:06:17 holo is the standard theme of android os version 3. (or 4. i cant remember) and up and it looks not bad Apr 21 11:07:11 yer i want the standard look Apr 21 11:07:17 technically holo is a theme, but for now just get an app working and worry about what it looks like whats you got everything up and running Apr 21 11:07:18 for jelly bean Apr 21 11:07:20 or ice cream Apr 21 11:07:38 the thing is Apr 21 11:07:51 im dumbfounded on what to create Apr 21 11:07:54 because you can spend a lot of time customizing the graphics and unless you are being paid to do it the time is better spent on making a smooth operating app Apr 21 11:07:56 everythings been created before Apr 21 11:08:13 make something useful for yourself Apr 21 11:08:37 make a game of tic tac toe or hang man Apr 21 11:08:46 make an app that lets you add captions to photos Apr 21 11:08:58 how would i go about making a game Apr 21 11:09:00 make an app that looks up recent statistics for online games Apr 21 11:09:10 that is beyond the scope of irc ;) Apr 21 11:09:15 lol Apr 21 11:09:29 i mean do i have to have a program like unity Apr 21 11:09:38 or can i just write lines of code Apr 21 11:09:50 say in xml Apr 21 11:09:59 does not require unity one sec Apr 21 11:10:00 saying at this position draw Apr 21 11:10:10 the head Apr 21 11:10:24 and then at this position the body then the legs Apr 21 11:10:51 say store it in a variable x or something Apr 21 11:10:55 yeah Apr 21 11:11:00 and get x to move across the screen Apr 21 11:11:09 i have not watched this i founda good tutorial a long time ago but here http://www.youtube.com/watch?v=B9mXPBo_WTs Apr 21 11:11:18 ok thanks Apr 21 11:11:31 does programming take you guys lots of time Apr 21 11:11:56 because the reason why i don't really program much is because i have a problem spending to much time on something Apr 21 11:12:00 it used too until i trained my cat to debug for me Apr 21 11:12:04 except playing games Apr 21 11:12:09 lol Apr 21 11:12:13 your cat Apr 21 11:12:15 Hey guys I have been struggling with an issue for a long while now, I have written a android application which makes use of the GCM push notifications, now when onMessage() is called in the GCMIntentService I can record the values but I cannot find a simple way to from that class change the textView and imageview of the main action if its currently running Apr 21 11:12:58 well i mean before you even get to the debugging stage Apr 21 11:13:13 just writing the code Apr 21 11:13:16 takes time Apr 21 11:13:19 a lot of time Apr 21 11:13:25 when you find bugs to fix Apr 21 11:13:40 the idea is you think about it enough and plan it out once you sit down and code you spend very little time ever debugging Apr 21 11:13:43 and you have to think and research a lot of stuff thats new because you dont know it Apr 21 11:13:49 do you find this too? Apr 21 11:14:05 of course Apr 21 11:14:13 the idea is not write code that doesn't need debugging, that is what seperates a master programmer from a very good programmer Apr 21 11:14:25 err write code that doesn't need a lot of debugging Apr 21 11:14:43 but do you find that you constantly need to look up new things Apr 21 11:14:48 and lots of them Apr 21 11:14:56 which means you spend lots of time thinking every detail out, ahead of writing the code, and knowing how to reuse code that you know works over and over again Apr 21 11:15:06 sure as your learning it but that's true for anything Apr 21 11:15:14 ahh' Apr 21 11:15:36 this is not like the matrix you can't just stick something into your spine and know kung fu like the back of your hand Apr 21 11:15:39 ive forgotten java as i did i back in 2009 Apr 21 11:15:48 and in 2000 Apr 21 11:16:04 lol Apr 21 11:16:08 any ideas on how to run something like imgview.setImageResource(R.drawable.img); from outside the activity that its in? Apr 21 11:16:29 store it in a variable? Apr 21 11:16:34 and call that variable Apr 21 11:16:40 in another function Apr 21 11:16:42 ? Apr 21 11:16:52 Brando why are you trying to set an imageview in an activity that is not current? Apr 21 11:16:53 im not sure just making a suggestion Apr 21 11:17:05 Zeppelin: I have tried that but I get issues Apr 21 11:17:14 really Apr 21 11:17:20 what kind of issues? Apr 21 11:17:47 what are you declaring the variable as Apr 21 11:17:50 Zeppelin you just got to dive in and start working and hopefully find projects that are either fun or you collaborate on make some money Apr 21 11:17:53 hi. in the Developer console of the google play: i uploaded an APK but i clicked save as a draft. but I want to publish it . how? Apr 21 11:18:04 lasserix: like I said prior, I implemented GCM push notifications and the system will run the method onMessage() in the GCMIntentService class I want to modify those values in the activity on a push Apr 21 11:19:16 i havent used push notifications but it sounds like you need to load the intent with the a pointer to whatever image file you want to load and only load it once the activity is created Apr 21 11:19:49 *load the intent that starts the activity, or otherwise check in the activity the latest image file to set the imageview to Apr 21 11:19:59 only once the activity becomes current thoguh Apr 21 11:21:00 i didnt know java had pointers Apr 21 11:21:08 it doesn't Apr 21 11:21:28 you could also set something in a shared preferences file and check it everytime the activity creates and depending on what value the key returns as set the proper image Apr 21 11:21:29 problem is currently I have not been able to access anything but static methods and variables in my main activity, the imageView seems to be a instance object and I do not believe I can change that ... Apr 21 11:21:38 how do you point to it then Apr 21 11:21:41 lasserix: I could do that Apr 21 11:21:44 lasserix: but Apr 21 11:21:55 lasserix: then what if the app is running and a push comes through? Apr 21 11:21:59 i was thinking you needed an if statement Apr 21 11:22:02 lasserix: I would have to keep looping a check Apr 21 11:22:20 Zeppelin: what? Apr 21 11:22:31 can't you call the static method that forces a check? Apr 21 11:22:41 ... Apr 21 11:22:43 maybe Apr 21 11:22:49 onesec let me look >.> Apr 21 11:22:49 i was thinking you needed an if statement saying Apr 21 11:22:57 zeppelin: i use pointer in the way meaning that at some point in the code you'llhave to point a method to some file path Apr 21 11:23:06 if this button is pushed Apr 21 11:23:08 or something like that Apr 21 11:23:15 then store that in this variable Apr 21 11:23:20 Zeppelin: does not quite work like that Apr 21 11:23:32 and call that variable Apr 21 11:23:33 *or some variable Apr 21 11:23:49 ahh lasserix Apr 21 11:23:53 this is an asynchronous push notification Apr 21 11:24:04 really Apr 21 11:24:10 Zeppelin: try and make an app that might be useful to some game you play Apr 21 11:24:21 ahh Apr 21 11:24:27 like for instance, make a digital version of a stat guide or something Apr 21 11:24:36 what is asynchronous Brando753 Apr 21 11:24:38 with a search and other such features Apr 21 11:24:50 yer Apr 21 11:25:08 if its a popular game you can actually make money that way Apr 21 11:25:10 can you just take somebodie else app idea Apr 21 11:25:17 and tweak it to yours Apr 21 11:25:23 Zeppelin: In computer programming, asynchronous events are those occurring independently of the main program flow. Apr 21 11:25:32 and add a bit of different functionality Apr 21 11:25:44 and slap a different gui on it Apr 21 11:25:47 and sell it Apr 21 11:26:14 you could do that but the music industry is in a sorry state because of exactly that happening in music so please use some creativity and originality Apr 21 11:26:25 lol Apr 21 11:26:38 i seen heaps of crap apps Apr 21 11:27:02 theres a lot of apps the same as the next one Apr 21 11:27:06 anyways got to get back to work, zeppelin, the best thing you can do is stop sitting on your hands and actually dive into coding some project Apr 21 11:27:15 ok lasserix Apr 21 11:27:18 thanks Apr 21 11:27:35 no problem good luck! Apr 21 11:27:47 lasserix: Cannot make a static reference to the non-static method is the issue I keep running into even with calling this method... Apr 21 11:27:59 I know why its happening Apr 21 11:28:08 I just cant think of a solution for this setup Apr 21 11:28:10 really Brando753 Apr 21 11:28:26 would you need to create a different class for it then Apr 21 11:28:35 and call the class at the start of the program Apr 21 11:28:37 i haven't done it, but can't you just use a callback from your service to the activity ? Apr 21 11:28:48 and return it at the end? Apr 21 11:28:48 lasserix: hmm? Apr 21 11:29:54 the problem is this which I want to change Apr 21 11:29:59 imgView = (ImageView) findViewById(R.id.imageView1); Apr 21 11:30:04 is not and cannot be static Apr 21 11:30:06 :/ Apr 21 11:32:47 Brando: this is a little beyond me but this thread might help: http://stackoverflow.com/questions/7276537/using-a-broadcast-intent-broadcast-receiver-to-send-messages-from-a-service-to-a Apr 21 11:33:25 lasserix: seems like a guy with my exact same issue, thanks I will look at that Apr 21 11:33:26 :D Apr 21 11:33:43 good luck! Apr 21 11:33:50 thank you very much Apr 21 11:33:50 :D Apr 21 12:08:25 can asynctask only return one value ? Apr 21 12:16:40 hey ppl Apr 21 12:55:14 I have a text view in a relative layout. The textView may display numbers in the range from 0 to, say, 999, i.e. it can have variable widths. I want to add a background image to the text view that grows/shrinks accordingly (horizontally) Apr 21 12:55:43 I have a 9patch image for the background, but I'm unclear if I should use a second ImageView and put that behind the TextView, or what else I should best be doing Apr 21 12:56:10 I need to still be able to play with the padding/offset of the text view's content relative to the background image Apr 21 12:58:21 And I'm also not sure if I need to do any of this in code (e.g. when the TextView's text changes), or if that gets updated automatically once I establish the relationship in the XML file. Apr 21 13:18:49 hey, I'm implementing some simple list view populated using an adapter, when I define the element, that is a thumbnail and a textview, it suggests me to use a simple drawable in the textview, can I load the image with the adapter later? what should I specify in the xml attributes ? Apr 21 13:44:09 hello everyone Apr 21 13:44:37 i want to use a callable object in order to get the result when the thead finishes its job Apr 21 13:45:07 for this reason i create a ExecutorService executor = Executors.newFixedThreadPool(1); Apr 21 13:45:20 this is overhead because i use only one thread? Apr 21 13:46:15 also how important is to shutdown the executor?because if i call it in onPause i don't create a new object of this again and i catch an exception Apr 21 13:46:40 hi when I get incoming phone I have to swipe to answer can it be tap on green phone image instead or just automatically get into answer mode for every incoming call ? I see few autoanswer setting but works only for headset else there are apps which put phone in speaker mode. I just want the phone to be in answer mode and even better would be if I say hello it should get into answer mode for... Apr 21 13:46:41 ...incoming phone Apr 21 13:47:03 is it good solution to initilize it every time i need it or i should initialize it in on create and shut it donw in onDestroy? Apr 21 14:08:59 can one guide what I need to code to get the feature of accept / answer incoming call with voice command like hello ? Apr 21 14:40:30 how can I scroll output off of textview when text is added to it and it's full? similar to an Irc client on a channel window Apr 21 15:12:11 Hi. Apr 21 15:12:20 HI! Apr 21 15:13:33 Does always starting activity have such "graphical" effect transition ? Apr 21 15:21:24 bluesm1, you can disable it Apr 21 15:21:50 brx_: how ? Apr 21 15:22:50 theres a couple of ways Apr 21 15:22:56 try FLAG_ACTIVITY_NO_ANIMATION Apr 21 15:40:34 does nokia have plans of making an android phone? Apr 21 15:40:36 hi - i just got a new samsung stratosphere running an android 4 version - after putting in an sd card - i still do not see the button to "move app to sdcard" Apr 21 15:40:47 any ideas how to debug / understand this .. Apr 21 15:41:56 btw the phone does recognize the sdcard mem as available..but i cant get it to use the space Apr 21 15:42:08 vpathak: this is for an app you're developing? Apr 21 15:42:38 yes - i wanted to enable running from sd card and was hoping to test it on the new phone Apr 21 15:43:04 unfortunately even the market apps cant be moved to sd card because that button is missing Apr 21 15:43:18 have you set the install location in your manifest? http://developer.android.com/guide/topics/manifest/manifest-element.html#install Apr 21 15:43:43 SimonVT: I went away for a while. Thank you. Using values as a starting point for small screens and then values-sw600dp works well for me. Apr 21 15:43:48 brx_: Thanks :) Apr 21 15:43:56 i know...but how to test it if new android os does not give user the option to move to sd card Apr 21 15:44:45 vpathak: have you set it or not? Apr 21 15:44:53 i have Apr 21 15:45:15 i want to test it by installing on device and then moving to sd card Apr 21 15:45:30 i cant see any button to move app to sd card Apr 21 15:45:44 post a screenshot of the settings->apps->YOURAPP page Apr 21 15:46:17 right now i dot have the phone on me...maybe i can post on a forum that you visit often Apr 21 15:46:22 say in an hour or so Apr 21 15:46:24 say in an hour or so? Apr 21 15:47:08 nope, I'm going to bed in a couple of minutes Apr 21 15:47:36 ok thanks anyway... Apr 21 15:48:46 also, why would you bother coming and asking for help if you're not in a position to actually use any advice you're given? Apr 21 16:08:11 i have asked a question in stackoverflow for which now i have made a 50 bounty. if anyone is intrested in this he can follow the http://stackoverflow.com/questions/16108878/developer-android-com-training-bitmapfun-project Apr 21 16:08:42 i will be very greatful if anyone solve this as this is my last problem from my thesis project Apr 21 16:17:13 Hello, I've got a relative view and a few image views inside it. i've created a onTouchListener so it's possible to move the image views around with a drag motion. because Im using a relative view when one image view moves the others also change position. any suggestions on how to solve that? Apr 21 16:18:00 should I use an AbsoluteView? Apr 21 16:18:10 sorry, layout Apr 21 16:20:47 Hi all. In case someone here uses admob or mopub network mediation, they can find this new app of mine that I just published: https://play.google.com/store/apps/details?id=it.pinenuts.adsrevenue Apr 21 16:21:32 I use it to monitor revenue from different ad networks. Only three are available right now but I'll add more in the future. thanks! Apr 21 16:37:56 is it possible to add a local image an an email intent using the img tag? Apr 21 16:45:38 Can I instead of android:name="com.example.android.fragments.ArticleFragment" Apr 21 16:45:48 Use android:name=".ArticleFragment" Apr 21 16:45:50 ? Apr 21 17:15:55 Hi, i have a problem with some code that should retrieve the broadcast adress, on my 2.3 this code works, but on a newer version i get some erros and the app crashes, if someone sees what i'm doing wrong tell me please, https://gist.github.com/anonymous/5430079 , thanks Apr 21 17:39:26 Why here Apr 21 17:39:26 http://developer.android.com/training/basics/fragments/creating.html Apr 21 17:39:41 They use : com.example.android.fragments.HeadlinesFragment Apr 21 17:39:49 and not just .HeadlinesFragment ? Apr 21 17:47:39 Why onCreate is public ? Apr 21 18:00:44 Does anyone know what showStatusIcon on inactive InputConnection means? Apr 21 18:01:30 it's only happening when my widget is clicked with the emulator is in landscape mode Apr 21 18:02:00 (its a logcat warning) Apr 21 18:08:49 anyone know if i can format the external sd card using ext2 or ext4 and it will be still usable ? Apr 21 18:11:49 Why I have to make package ' MY PACKAGE NAME ' ? Apr 21 18:14:50 bluesm: In Java, you usually bundle classes that are related in packages. That's why you put that statement in your classes. Apr 21 18:15:06 That's about the gist of it. Apr 21 18:19:36 Hi, i have a problem with some code that should retrieve the broadcast adress, on my 2.3 this code works, but on a newer version i get some erros and the app crashes, if someone sees what i'm doing wrong tell me please, https://gist.github.com/anonymous/5430079 , thanks Apr 21 18:21:35 Hi, I'm using MapFragment in my app, when I'm running the app on a device: i get a black screen with a text saying that some of my apps use google-play services that's not supported by my device. WHy and How can I do a workaround? Apr 21 18:35:29 Hi :) Apr 21 19:02:55 hi there guys have a question about canvas and drawing Apr 21 19:03:05 I am using onTextChanged(CharSequence s, int start, int before, int count) of Text watcher which is attached to MultiAutoCompleteTextView in my activity. Apr 21 19:03:05 MultiAutoCompleteTextView use adapter that is updated by AsyncTask that make json call for some suggested sentences. Now the issue is a bit tricky. Apr 21 19:03:05 When i type some sentence i got my suggested sentences, when i select one of them I see that second call is made, so adapter is updated with new list but this list is not displayed. Apr 21 19:03:05 Then when i press back button, the sentence back to those letters that was typed in first time but now the list instead having the same sentences have the last one. Apr 21 19:05:03 code: http://pastebin.com/RbtzTkcz Apr 21 19:05:34 i have a bitmap ... have to crop, rotate , scale and drow it on canvas. i`m using Matrix and canvas.drawBitmap(bitmap, matrix ,new Paint(Paint.ANTI_ALIAS_FLAG));. on matrix i use setRectToRect and setRotate to accomplish mi objective. Problem is that the method is not cropping the original bitmap but just centering the source rect to the destination rect. Whats wrong Apr 21 19:07:52 i have a bitmap ... have to crop, rotate , scale and draw it on canvas. i`m using Matrix and canvas.drawBitmap(bitmap, matrix ,new Paint(Paint.ANTI_ALIAS_FLAG));. on matrix i use setRectToRect and setRotate to accomplish my objective. Problem is that the method is not cropping the original bitmap but just centering the source rect to the destination rect. Whats wrong Apr 21 19:14:38 so pls Apr 21 19:14:42 can someone help me Apr 21 19:21:16 anyone here know how to change the background color of spinner when using the dialog mode ? i cant seem to find any info on it ? Apr 21 19:22:03 hello Apr 21 19:22:55 hi Apr 21 19:23:00 can someone help me Apr 21 19:23:10 any up for giving me some pointers on using the headset play/pause button to wake a 2.1 device from sleep? Apr 21 19:23:20 spacca, if i can, whats up? Apr 21 19:23:25 i have a bitmap ... have to crop, rotate , scale and draw it on canvas. i`m using Matrix and canvas.drawBitmap(bitmap, matrix ,new Paint(Paint.ANTI_ALIAS_FLAG));. on matrix i use setRectToRect and setRotate to accomplish my objective. Problem is that the method is not cropping the original bitmap but just centering the source rect to the destination rect. Whats wrong Apr 21 19:24:09 hmm, not my usual arena, it might be worth looking through some tutorials Apr 21 19:24:45 it sounds like a coordinate issue with the rotation Apr 21 19:24:57 i disabled the rotation Apr 21 19:25:02 but did nothing Apr 21 19:25:12 still not cropping what is outside the source rect Apr 21 19:25:37 just moving one rectangle to the other Apr 21 19:25:42 aha - i see it cant crop whats outside the image right? Apr 21 19:25:55 right Apr 21 19:26:31 so you need to find a way to get your image into a larger border... Apr 21 19:27:02 what is the best way to rotate huge Bitmap without getting OOM? Apr 21 19:27:20 no... i`m tring to get just one piece of a bigger bitmap Apr 21 19:27:30 MoshDev, convert to jpg or gif first? Apr 21 19:27:30 but setRectToRect just moves it Apr 21 19:27:44 never matter, let say PNG Apr 21 19:28:27 spacca, so you need to look at which part of the original you targetting: start x,y to end x,y ... Apr 21 19:29:27 why? Apr 21 19:29:36 MoshDev, ive not worked with images before on android, but try converting it, saving it to object, then rotating it Apr 21 19:30:36 ok but when you load huge images you need to down-scale it, so you can display it without OOM, but i need to rotate the original image, and its huge image Apr 21 19:30:43 with same rects this funtion canvas.drawBitmap(bitmap, sourceRectF, destRectF, null); does crop my image Apr 21 19:30:43 spacca, hang on a moment Apr 21 19:30:51 ok Apr 21 19:31:05 spacca, isnt that your goal tho? Apr 21 19:31:30 yep... but that function doesn`t rotate it... just crops... i need both Apr 21 19:31:47 but you disabled rotation so it wont Apr 21 19:32:03 spacca: why not you use this Apr 21 19:32:04 http://developer.android.com/reference/android/graphics/Bitmap.html#createBitmap(android.graphics.Bitmap, int, int, int, int) Apr 21 19:32:18 good call MoshDev Apr 21 19:32:42 this will need start x, start y , and the width with height Apr 21 19:32:53 then you will get the cropped image Apr 21 19:33:01 then rotate it Apr 21 19:33:09 it could be a solution Apr 21 19:33:33 give yourself a coffe, take break, then give it a shot Apr 21 19:33:34 but i`m working in a gameloop and creating a bitmap would be to much of an effort Apr 21 19:33:53 creating new bitmap each time Apr 21 19:33:54 maybe use a service? Apr 21 19:34:07 you mean thread? Apr 21 19:34:25 for rotating you should use Canvas.rotate(float angle) Apr 21 19:34:45 this would rotate all the game :D Apr 21 19:35:32 spacca, whats the source of the images? Apr 21 19:35:33 no Apr 21 19:35:39 rotate the image Apr 21 19:35:43 then restore the canvas Apr 21 19:36:26 it is a bitmap Apr 21 19:36:32 from png Apr 21 19:36:37 int save = canvas.save(); Apr 21 19:36:37 canvas.rotate(100); Apr 21 19:36:37 canvas.drawBitmap(bitmap, 0, 0, null); Apr 21 19:36:39 canvas.restoreToCount(save); Apr 21 19:36:47 from a file? camera? file download? Apr 21 19:37:22 spacca: this will rotate the image 100 degree to right then restore the rotation of the canvas to its original state Apr 21 19:37:27 give it a try Apr 21 19:38:50 i found no way to rotate an image from the camera ;( Apr 21 19:38:56 so does anyone have an idea for how to wake device up from a headset play/pause button click event? Apr 21 19:39:10 there's no ram for a 8mp image Apr 21 19:39:10 hmm i do setThreshold(1), on my MultiAutoCompleteTextView but still i need type at least 2 characters to show my list, any clue why ? Apr 21 19:39:13 it is from file Apr 21 19:39:36 spacca, as in a res ? Apr 21 19:41:10 spacca, if its in the res directory then why not rotate it before hand? Apr 21 19:42:06 or is the rotation needed during gameplay? Apr 21 19:42:22 gamplay Apr 21 19:42:24 rotation Apr 21 19:42:30 ah - i see Apr 21 19:43:22 in that case id take MoshDev's advice, hes more skilled at graphics from what i can see Apr 21 19:50:58 MoshDev i think your method reverts the draw to... nothing shows up Apr 21 19:51:20 spacca: which method? Apr 21 19:52:07 [21:36] int save = canvas.save(); [21:36] canvas.rotate(100); [21:36] canvas.drawBitmap(bitmap, 0, 0, null); [21:36] canvas.restoreToCount(save); Apr 21 19:52:12 canvas rotate Apr 21 19:52:19 i get black screen Apr 21 19:53:31 what should you get? Apr 21 19:54:46 the rotated immage... Apr 21 19:54:55 replace canvas.rotate(100) Apr 21 19:54:56 with Apr 21 19:54:57 canvas.rotate(100, (imageWidth+imageX)/2, (imageHeight+imageY)/2); Apr 21 19:56:56 if you still gets black screen, remove my code and test your code without rotation Apr 21 19:57:00 getTag() in my fragment onCreateView() is always returning null Apr 21 19:57:17 brx_: because you didnt set the fragment tag Apr 21 19:58:54 ahh i see Apr 21 19:58:59 thanks MoshDev Apr 21 19:59:20 humm Apr 21 19:59:32 mosh this only works if the image is at the center of the canvas Apr 21 19:59:40 otherwise it will appear moved Apr 21 20:00:02 why does the nexus4 have no hw buttons= Apr 21 20:00:13 i really love the phone but this sucks Apr 21 20:00:21 Hmm. It seems that I can't use both LinkMovementMethod, required for ClickableSpans, and textIsSelectable at the same time. Apr 21 20:00:40 The click behaviour from both together causes problems. Apr 21 20:01:48 spacca: no, the last code i gave you, should set canvas rotation pivot x y to image center Apr 21 20:02:04 anyone know what the logcat warning "showStatusIcon on inactive InputConnection" means? Apr 21 20:13:19 HEy guys, so i've been learning android dev but my apps are ugly, pls where can i get good UI packs and a tut on how to use it? Apr 21 20:15:00 fayimora, theres no easy way, find tutorials and work through them Apr 21 20:16:47 has anyone coded for the Google IOIO board? Apr 21 20:18:11 The_Fred: have any recommendations? Apr 21 20:19:04 nope, just use google search for layout tutorials, maybe tabs and fragments, and custom skins for buttons etc... its up to you Apr 21 20:20:47 hmm ok thanks Apr 21 21:33:03 anyone here know how to wake a device up from a headset event (play/pause button) ? Apr 21 21:34:40 a BT headset? Apr 21 21:34:56 if yes i would suggest adding bluetooth as google keyword to your search ;) Apr 21 21:35:09 nope, the wired one Apr 21 21:35:45 i have an intent that works while the activity is in view, but it wont wake the device from sleep Apr 21 21:36:37 hey guys my app crashes when i tilt my phone orientation to landscape. This only happens with the first login activity thuogh and there are no errors Apr 21 21:37:20 monsti, i will use your suggestion - thanks Apr 21 21:37:33 my app just quits as soon as it's in landscape :? Apr 21 21:38:34 coco89: read on how to handle configuration changes Apr 21 21:38:46 coco89: or - in general - how to handle rotation events Apr 21 21:38:58 coco89: there are more then three answers to that Apr 21 21:38:59 monsti, but it doesn't happen with my main activity or the other activities Apr 21 21:39:09 coco89: in case of a crash, there is a coding bug Apr 21 21:39:13 why only this one? Apr 21 21:39:22 coco89: you understand "bug"? Apr 21 21:39:37 a coding error - which happens - when coding ;) Apr 21 21:39:42 or - f.w.i.w. force your app to use only either landscape or portrait... i know its not perfect but if your against the clock it could buy you some time while you research it Apr 21 21:40:10 as i told before - there are more then three ways of handling this ;) Apr 21 21:40:23 The_Fred, true Apr 21 21:40:24 thanks Apr 21 21:40:56 monsti, no i dont know what a bug is tell me moar Apr 21 21:41:47 you made a bug in your code Apr 21 21:42:56 tl;dr you're doing it wrong Apr 21 21:45:06 okay I've realised i had android:orientation="vertical" in my linear layouts but when I take them out it starts complaining Apr 21 21:45:35 coco89, could you do it dynamically? Apr 21 21:45:46 Wrong orientation? No orientation specified, and the default is horizontal, yet this layout has multiple children where at least one has layout_width="match_parent" Apr 21 21:47:00 actually Apr 21 21:47:11 that's for the inner linear layout Apr 21 21:47:16 coco89, try "fill_parent" as "match_parent" can have its issues... but are your using fragements? Apr 21 21:47:36 if i take out the orientation for the outter linear layout it doesn't complain but then my editText views disappear Apr 21 21:47:58 "match_parent can have its issues" ? Apr 21 21:49:13 SimonVT, depends which api your working against - i found that match_poarent simply wasnt allowed on <2.1 apis Apr 21 21:49:28 as in xml errors Apr 21 21:49:38 Well yeah, it wasn't introduced until api8. But as long as you build against >= 8, it works fine Apr 21 21:49:59 this is the layout http://pastebin.com/B0Pcas4J Apr 21 21:50:14 yes, but i dont know what version coco89 is working on Apr 21 21:50:16 if i take out the orientation=vertical, everything but the image disappears Apr 21 21:52:38 anyone Apr 21 21:53:00 If you remove orientation=vertical, then it's horizontal Apr 21 21:53:02 if you cant do it with xml, then id go for dynamic layouts Apr 21 21:53:14 do what with xml Apr 21 21:53:27 SimonVT, i see, so what would I have to do Apr 21 21:53:30 solve your problem Apr 21 21:53:54 I have no idea what you're trying to do Apr 21 21:54:29 i'm trying to prevent mmy app from crashing when it's in landscape mode Apr 21 21:54:40 i'm guessing orientation="veritcal" is the offending line/ Apr 21 21:54:57 Read the stack trace Apr 21 21:55:04 And stop guessing Apr 21 21:55:34 nothing shows up Apr 21 21:55:37 in the stack trace Apr 21 21:55:41 I doubt that Apr 21 21:56:29 SimonVT, isn't that line the cause of the crash though Apr 21 21:56:42 No Apr 21 21:59:53 SimonVT, http://pastebin.com/ZftTMvWE Apr 21 22:02:14 ? Apr 21 22:02:28 give him a chance to read it Apr 21 22:02:34 Can someone help me with this error?Stack trace: http://pastebin.com/1K3ZRAbc Apr 21 22:03:03 You're probably filtering logcat or something Apr 21 22:03:30 agy2154: you need to get the application data dir, and write the image there Apr 21 22:03:37 you can't write directly to / :) Apr 21 22:03:41 ahh Apr 21 22:03:42 thanks Apr 21 22:03:55 SimonVT, what else should i be looking at Apr 21 22:04:49 anyone here have experience with andrioid annotations? can a EBean not be used in an EFragment? Apr 21 22:16:02 hmm Apr 21 22:16:08 well this is fucking up Apr 21 22:35:42 anyone know what method might be called when a widget is recreated. have some logic I would like to execute once when the widget is initially created. Apr 21 22:36:40 figured onEnabled or onUpdate but they do not appear to be called Apr 21 22:53:40 well that makes more sense, looks its the orientation change causing my issue. Now I just need to figure out if I can detect the layout change due to the screen rotation Apr 21 22:59:24 cool my app is #475 of play's best new free apps Apr 21 23:05:04 Protoxide: Death Race Free? Apr 21 23:05:41 xorgate: \o/ Apr 21 23:06:29 indeed \p/ Apr 21 23:14:58 what is the best way to get an elements HTML ID when clicking within a webview ? Apr 21 23:16:36 xorgate, Where do you get overall rating stats from? Apr 21 23:16:53 Sonicadvance1 in the play app Apr 21 23:17:47 * StingRay_ is moving 15TB of data, not a nice thing! Apr 21 23:17:57 in the back of a truck? Apr 21 23:18:30 xorgate, Just scroll until you find it? :P Apr 21 23:18:32 I'm replacing a few of my NAS drives with a 5Bay one Apr 21 23:18:34 yep :) Apr 21 23:19:03 i reckon i could sniff the actual url Apr 21 23:20:17 omg, decided to re-init timemachine to another drive too, 5 days remaining ? Apr 21 23:20:18 Anyone: what is the best way to get the HTML ID of an element when clicking within a webview ? Apr 21 23:20:24 * StingRay_ passes out Apr 21 23:21:26 kifst: not sure many ppl here do web sites, packaged as apps ;) Apr 21 23:21:40 kifst i would suspect that if you use a webview, you are surrendering control already Apr 21 23:22:13 xorgate: what do you mean by 'surrendering control' ? Apr 21 23:22:34 i mean you lose control about what happens Apr 21 23:22:51 Apparently my app is too niche to hit the top 500 :P Apr 21 23:23:00 kifst: you know when you control every thing ? swap the word "everything" with "not much" Apr 21 23:23:04 like when you send a package to UPS, you don't get to decide what route it takes Apr 21 23:23:45 still not getting how this relates to getting the ID of a clicked element :P Apr 21 23:23:57 Sonicadvance1 i think i have 4 more days left in those lists, then it's 1 month old and not 'new' anymore. This is speculation though Apr 21 23:24:18 kifst: in app development why would you want to ? Apr 21 23:24:20 kifst webview may not offer this information to you Apr 21 23:24:23 ah, could be Apr 21 23:24:35 Sonicadvance1 but it's great for downloads Apr 21 23:24:46 StingRay_: for hybrid apps Apr 21 23:25:13 same reason you'd want to get the ID for native elements Apr 21 23:25:37 you using phonegap or something ? Apr 21 23:26:33 maybe better asking in their channel tbh, they are more web/html orientated #phonegap even if your not Apr 21 23:26:36 :) Apr 21 23:27:35 thanks i'll see what they have to say Apr 21 23:35:23 Hello. Why isn't this layout showing the icon on the action bar? http://pastebin.com/jMvwpmaK Apr 21 23:38:04 Target api 4.0, the icon asset is at each of the drawable-{hdpi,ldpi,mdpi,xhdpi}. Apr 21 23:38:24 because it's ifRoom ? Apr 21 23:38:53 If I remove it, I get only nothing at the action bar. Apr 21 23:39:02 try making it 'always' Apr 21 23:39:23 Samething. Apr 21 23:39:38 Jesus, I can't type today. Same thing* Apr 21 23:39:58 ifRoom / always don't control whether the icon is shown, only whether the menu item is shown in the overflow or now Apr 21 23:40:00 *not Apr 21 23:42:23 Do I need to do something else other than just pasting the icon (properly scaled) at the drawable folders? Apr 21 23:43:34 how are you inflating it? picture of the result? Apr 21 23:44:12 inflater.inflate(R.menu.action_bar_menu, menu); Apr 21 23:47:47 picture? Apr 21 23:49:10 Are you sure it's necessary? I can't take screenshots on the device I'm using to develop... I end up with the action bar and only the text get's shown. It seems to be working just fine, except for the icon. Apr 21 23:49:35 in the actionbar, you don't see an icon? Apr 21 23:49:45 Yeah. Just the text. Apr 21 23:49:48 no not necessary , but owuld help Apr 21 23:49:59 that's... strange Apr 21 23:49:59 why not @android:drawable/ic_menu_add Apr 21 23:50:11 are you using a dark icon on a dark action bar maybe? Apr 21 23:50:15 xorgate, because might have tweaked that icon to be stupid Apr 21 23:50:16 :P Apr 21 23:50:35 well gotta go with the current theme :0 Apr 21 23:51:39 do you guys think its a good idea to still provide ldpi assets ? Apr 21 23:51:48 no Apr 21 23:51:54 i never provided them Apr 21 23:51:59 thanks canadiancow :) Apr 21 23:52:06 m through x Apr 21 23:52:11 and the occasional xx Apr 21 23:52:26 Well, let me try with @android:drawable/ic_menu_add, just for the sake of testing Apr 21 23:52:30 you should probably put your app icon in mipmap-mdpi through mipmap-xxhdpi Apr 21 23:53:03 mipmap o_O Apr 21 23:53:17 yeah Apr 21 23:53:22 that's been around since hte honeycomb days i think Apr 21 23:53:29 Odd, it works when I use @android:drawable/ic_menu_add Apr 21 23:53:32 because tablets display larger icons than phones Apr 21 23:53:55 so like, on nexus 10, if you have a mipmap-xxhdpi image, it will use that for the app icon, even though it's xhdpi Apr 21 23:54:04 Perhaps something to do with the way photoshop exported it? Apr 21 23:54:09 hstefan: are you using a dark icon on the dark action bar? Apr 21 23:54:19 canadiancow: interesting. i never heard of mipmap Apr 21 23:54:25 f2prateek, if that were the case, he'd see nothing, not the text Apr 21 23:54:33 Nope. I'm following the design guidelines. Apr 21 23:54:50 g00s, it's definitely not well advertised Apr 21 23:54:58 but yeah, put app icons in mipmap Apr 21 23:55:12 i think gmail has the app icon and the label shortcut icon in mipmap Apr 21 23:55:16 everything else in drawable Apr 21 23:55:31 canadiancow: doesn't it display the icon to the left of the text? I was just thinking it's just not visible over the background Apr 21 23:55:41 only if it's ifRoom|withText Apr 21 23:55:46 oh yeah Apr 21 23:56:19 Bizarre, re-exported it and it's working. Problem solved. Apr 21 23:56:24 +1 Apr 21 23:56:45 +1.0000001 Apr 21 23:58:10 -1.00001 Apr 21 23:59:11 two few 0's for u Apr 21 23:59:31 Must be due to rounding errors Apr 21 23:59:50 Would i be able to directly save a file in my apps cache foldeR? Apr 21 23:59:57 yes? Apr 22 00:00:06 if you don't do it, who else will? Apr 22 00:00:31 lol Apr 22 00:00:47 i'd be pretty annoyed if jug6ernaut's app was saving files into your app's cache Apr 22 00:00:59 if u only knew... Apr 22 00:01:05 :P Apr 22 00:01:42 users randomly accept SU access so easily.... Apr 22 00:01:58 canadiancow, I get an error when i try to save there Apr 22 00:02:02 i dont even run rooted any more Apr 22 00:02:11 What's the right place to set-up action bar callbacks? onCreateOptionsMenu? Apr 22 00:02:13 or rather, i dont let apps do it Apr 22 00:02:21 "action bar callbacks" ? Apr 22 00:02:26 i do, but VERY selectively Apr 22 00:02:34 i mean i dont have the support on my phone Apr 22 00:02:38 i can adb root, but that's it Apr 22 00:02:44 Touch events and such. Apr 22 00:02:45 ah Apr 22 00:03:00 if you want a click, it's onOptionsItemSelected Apr 22 00:03:13 if you want to know when the user is pressing an actionbar button, i dont think that's supported Apr 22 00:03:35 http://pastebin.com/X1UQQy13 Apr 22 00:03:50 canadiancow sure u can, theres listeners for all them Apr 22 00:04:05 yeah? Apr 22 00:04:10 * jug6ernaut looks Apr 22 00:04:39 agy2154: I thin that error is pretty obvious Apr 22 00:04:50 if you read it, it cant be more clear Apr 22 00:05:18 public boolean onActionItemClicked(ActionMode mode, MenuItem item) Apr 22 00:05:31 jug6ernaut, no i know you can get that Apr 22 00:05:38 oh Apr 22 00:05:39 it sounded more like he wanted touch events Apr 22 00:05:43 StingRay_, Can;t find a file? Im not trying to find one. Apr 22 00:05:44 ohhh Apr 22 00:05:49 StingRay_, i think it could be a LITTLE more clear Apr 22 00:05:50 yea…u don't get that level access afaik Apr 22 00:06:05 canadiancow: how ?? Apr 22 00:06:11 StingRay_, Maybe i need to make it like .jpg Apr 22 00:06:14 one sec Apr 22 00:06:24 the first thing it says is FileNotFoundException Apr 22 00:06:38 but it's not that the file isn't found, so much as that it's a directory, rather than a file Apr 22 00:06:43 poor little lost file... Apr 22 00:06:56 well yes, ok could be 10% clearer Apr 22 00:07:01 i should stop coming on irc when i'm trying to do work Apr 22 00:07:01 but no more obvious Apr 22 00:07:18 canadiancow just stop trying to do work :P Apr 22 00:07:18 lmfao Apr 22 00:07:36 but then there will be a lot of disappointed people Apr 22 00:07:49 there will always be disappointed ppl Apr 22 00:08:28 so canadiancow u going to IO? Apr 22 00:08:44 i'd rather have someone disappointed because i disabled the spacebar heating feature than because there was no update to an app Apr 22 00:08:44 :P Apr 22 00:08:50 jug6ernaut, yeah Apr 22 00:08:51 you? Apr 22 00:09:05 * jug6ernaut struck out getting a ticket Apr 22 00:09:13 lame Apr 22 00:09:19 aye :\ Apr 22 00:09:19 did they do a code jam thing again this year? Apr 22 00:09:36 idk, I've been really busy past few weeks :S Apr 22 00:09:45 i know the feeling ~_~ Apr 22 00:10:33 * jug6ernaut needs to start working on his side project again Apr 22 00:10:43 so busy haven't touched it in a while :S Apr 22 00:11:19 i also know that feeling :) Apr 22 00:11:31 maybe after i/o i'll have some free time :P Apr 22 00:11:45 nice Apr 22 00:12:00 my mom booked a trip down here to visit before the i/o dates were announced Apr 22 00:12:10 and by the time they were, it was going to cost like $500 to change her flight Apr 22 00:12:31 http://imgur.com/a/2jtOG Apr 22 00:12:38 :\ Apr 22 00:13:15 the power of PS and digital art Apr 22 00:13:16 nice Apr 22 00:13:28 PS is all powerful Apr 22 00:15:07 anyone with a sony ZL Apr 22 00:15:37 some of those don't look photoshopped to me. i guess that means they were really good at it Apr 22 00:16:01 i don't think they are all photoshopped ether Apr 22 00:16:05 g00s: I think I looked at about 4 and thought, oh, they could just be TTL shots Apr 22 00:16:17 the rest I thought manip Apr 22 00:16:26 some really manip Apr 22 00:16:28 :) Apr 22 00:25:42 well I just kissed goodbye to linux Apr 22 00:26:01 on my average working machine anyways Apr 22 00:26:07 to what Apr 22 00:26:30 oh I had mint + ubunto and centos Apr 22 00:26:54 ubuntu* Apr 22 00:27:17 what are u going to? Apr 22 00:27:18 StingRay_: so you use just mac now ? Apr 22 00:27:42 well no, my main machine that I use "most" has osx and win Apr 22 00:27:53 my macbook pro still has a tio Apr 22 00:27:58 trio* Apr 22 00:28:11 and my xeon workstation has win / linux Apr 22 00:28:29 thats the 3 machines I use the most really Apr 22 00:28:52 just on "this" machine I had linux on some nice raptor drives Apr 22 00:28:57 but wasn't using linux Apr 22 00:29:03 and wanted the drives :) Apr 22 00:29:16 Hello Apr 22 00:29:55 I'm looking for some people who would like to help port a Java IRC Bot to Android, I mean like just displaying the console on the UI Apr 22 00:29:59 StingRay_, I think it turned out to be a conflixt with my file manager appp lmafo Apr 22 00:30:34 agy2154: really ? I thought it was cause you were opening a stream to a directory ??? Apr 22 00:30:57 StingRay_, http://stackoverflow.com/questions/13976276/java-io-filenotfoundexception-temp-png-open-failed-erofs-read-only-file-sys going to try that right now. exactly whats happenign to me Apr 22 00:31:39 that wasnt your error Apr 22 00:31:50 StingRay_, ohh eyah this is anew one. I was playing around and I can't get it to work. Apr 22 00:31:55 yours was a "i cant open a file stream cause your giving me a directory" Apr 22 00:31:56 Still didn;t work Apr 22 00:32:11 can it be becaus eof SU? Apr 22 00:32:22 erm Apr 22 00:32:27 read what I just said Apr 22 00:32:33 and then read the error again Apr 22 00:32:36 :) Apr 22 00:32:48 is english your primary lang ? Apr 22 00:33:06 Yeah.^ Apr 22 00:33:07 04-21 19:31:27.855: W/System.err(27455): java.io.FileNotFoundException: /cool: open failed: EROFS (Read-only file system) Apr 22 00:33:34 Maybe forgot to add .png? Apr 22 00:33:48 http://pastebin.com/X1UQQy13 <---- Apr 22 00:33:52 thats what you pasted Apr 22 00:33:59 and tis there in ingrish Apr 22 00:37:15 agy2154: now you're trying to write to a file with the same name as your application data dir. I suspect you want to name a file within that dir ;) Apr 22 00:37:40 JesusFreke, Yeah but then shouldn't "this.getActivity().getApplicationContext().getCacheDir() + "/cool.png"" work? Apr 22 00:37:47 In a FileOutputStream? Apr 22 00:38:02 (I'm doing it from a fragment) Apr 22 00:38:14 use new File(, "cool.png") Apr 22 00:38:21 ahh Apr 22 00:38:24 wait Apr 22 00:38:27 * JesusFreke waits Apr 22 00:38:30 ok Apr 22 00:38:33 :D Apr 22 00:40:47 JesusFreke, http://pastebin.com/gd5FGMFB Apr 22 00:41:31 yep. now you're getting a different unrelated error :) Apr 22 00:41:49 commence standard NPE debugging procedure. Apr 22 00:42:14 I am facing a problem. my app terminates automatically when the phone is kept idle for some hours even if it is in the foreground Apr 22 00:42:18 airlocks opening in 4 … 3 … 2 … 1 Apr 22 00:43:12 error…please initiate JesusFreke remote debugging…… Apr 22 00:43:21 lol Apr 22 00:43:29 is that possible? Apr 22 00:43:35 xD Apr 22 00:43:50 ill try to figure it out Apr 22 00:43:57 is it normal? Apr 22 00:45:50 doctorkira activity...service... Apr 22 00:46:15 jug6ernaut its an activity Apr 22 00:46:41 y on earth would an activity be foreground for hours :| Apr 22 00:46:45 but it is the only app that is in the foreground (except that the lock screen comes on top of it) Apr 22 00:47:51 if u have something u want to run for a long time it shouldn't be in an activity. If ur looking to have something foreground for a long time(visibly) i have no idea Apr 22 00:49:26 jug6ernaut i want only one instance of an Activity class to be displayed. if the service starts it, it could be another instance I guess Apr 22 00:49:54 u control how many instances there are Apr 22 00:50:58 jug6ernaut how would the service know whether the activity is already there or not? Apr 22 00:51:08 already active (running)! Apr 22 00:52:03 doesn't need to Apr 22 00:53:17 if it is running,it shouldnt start the activity again, this is what I meant Apr 22 00:53:52 if the activity* is running Apr 22 00:53:55 depends on what u pass in the intent Apr 22 00:54:11 in the intent that u call the activity u can specify to only have one instance Apr 22 01:00:11 could anyone please help out this newbie with java. Apr 22 01:00:22 ... /webview interaction Apr 22 01:00:25 http://pastebin.com/rzQKXQ26 Apr 22 01:01:44 did you not try phoneGap ? Apr 22 01:01:52 i'm using phonegap Apr 22 01:02:02 no i mean the channel Apr 22 01:02:08 ?? Apr 22 01:02:19 this is for android dev, so not sure there are many people here who can help Apr 22 01:02:22 #phonegap Apr 22 01:02:34 oh, well, they only seem to know html :< Apr 22 01:02:59 Leeds: maybe the topic should say Native Android Application Development :D Apr 22 01:03:06 i think most of it is just b/c i'm a newbie to java /android dev Apr 22 01:03:12 How can I make a menu-item icon "toggleable"? Say I have a "pause" icon that when the user clicks on it, it becomes a "play" icon and so on. Apr 22 01:03:26 (I'm talking action bar here) Apr 22 01:03:36 hstefan: statelistdrawable Apr 22 01:04:13 kifst: well web stuff not really happening in here, and yours is more of a web question that android dev Apr 22 01:04:24 we dont really use webpages for ui stuff :) Apr 22 01:04:32 StingRay_: did you look at my pastebin? most of my issue is passing state etc in java, no web element to it really Apr 22 01:04:36 or I dont Apr 22 01:05:22 yeah, some phonegap JS stuff, that I know nothing about, and not sure anyone here will either Apr 22 01:05:36 hell I'm not even a real programmer ;) Apr 22 01:07:28 The only phonegap JS stuff is the one line 'appView.addJavascriptInterface(mc, "MyCls");', which runs a JS function (listed), which then runs the processMsg method in java Apr 22 01:11:19 and the major thing of that activity extending DriodGap ? Apr 22 01:15:41 anyone know if eclipse only warns you when you are using old methods and not the opposite. Make sense since I think they just mark it deprecated. Apr 22 01:16:01 keep getting burned by using the newest methods which don't exist in older versions. Apr 22 01:16:19 would be nice if there was a warning based on minimum support Apr 22 01:16:32 lower your target api Apr 22 01:17:03 thank you Iam an idiot Apr 22 01:17:17 of course that would be the way Apr 22 01:19:38 not perfect but at least it tells me what methods I forgot to wrap in a version check Apr 22 01:20:05 doesn't lin do that? Apr 22 01:20:22 I remeber having targetAPi annotations everywhere Apr 22 01:20:26 *lint Apr 22 01:20:43 g00s: nothing to do with me :P Apr 22 01:20:45 I thought it would may have to configure it Apr 22 01:21:05 seems to only tell me when I use older methods Apr 22 01:21:20 which of course I need to to support older devices Apr 22 01:21:21 StingRay_: what am I missing here? I get no icon now, lol http://pastebin.com/dfGZNKrS Apr 22 01:21:45 dont know how you guys do it. Iam just supporting ICS and JB Apr 22 01:22:38 hstefan: you are doing too much there Apr 22 01:23:02 select = drawable defined as states/items in selector and assigned as either drawable/background for the view Apr 22 01:23:16 not sure you can have it all in one for a menu like that Apr 22 01:23:28 not sure though, just never thought of attempting it like that Apr 22 01:23:30 :) Apr 22 01:38:19 cbates there is Apr 22 01:41:11 Hello, i don't find Android Support package...where can i find it? Thanks Apr 22 01:43:48 For some reson, one of my R.id is "2131099650", weren't they supposed to be sequential? Apr 22 01:48:17 don't think they are sequential just unique Apr 22 01:50:29 they are a) not sequential and b) opaque Apr 22 02:42:28 would the cursor result of a sqlite rawQuery come back null if the device is still connected to the computer? Apr 22 02:43:25 what on earth would a connection to a computer have to do with sqlite? Apr 22 02:43:44 the device not being able to write to itself Apr 22 02:44:05 i understand this happens with connections to sd cards, just trying to rule things out Apr 22 02:44:19 also.. is there a convenient way to get and look at the sqlite database created? Apr 22 02:45:21 ah Apr 22 02:45:33 tricknology use a rooted device Apr 22 02:46:00 i think there is actually an app for non-root to pull sqlite database from data folders Apr 22 02:51:55 i think the db object would exception if it could not read the source Apr 22 02:52:15 so I would think before the you init a cursor you would have probs **** ENDING LOGGING AT Mon Apr 22 02:59:58 2013