**** BEGIN LOGGING AT Mon Jun 15 02:59:57 2009 Jun 15 03:02:05 whiplash, wrong packages has exactly nothing to do with 1.5 Jun 15 03:03:56 * sammyF is going to listen to Dead Kennedy's "I fought the law and I won" now .. but will be hearing "I fought OpenGL ES and I won" :P Jun 15 03:06:00 sammyF, haha Jun 15 03:07:07 not pefect yet .... but I'm slowly getting what I want from that pos :P Jun 15 03:07:23 still won't colour my point cloud Jun 15 03:12:56 what are you working on now? top secret? Jun 15 03:13:10 ADC2 project ;) Jun 15 03:13:15 haha, same Jun 15 03:13:22 I want to be able to buy a few more pizzas :P Jun 15 03:13:38 yeah, $100K would buy a few I imagine Jun 15 03:14:12 KNY: well ... as I said yesterday : considering how much I made from my games thus far, anything above 30$ is a bonus :P Jun 15 03:14:18 haha Jun 15 03:14:28 I wonder how badly this voting system is going to be gamed Jun 15 03:14:44 I have a feeling it's going to be a lot of "vote for me and I'll vote for you" Jun 15 03:14:50 if the market is any indication, I could as well give up ow ;) Jun 15 03:14:58 or "I'll pay these thousand people $1 each to vote for me" Jun 15 03:15:28 yep ... or "I have lots of friends with Android phones. let them vote for me and get their friends to vote for me too" Jun 15 03:15:38 yeah Jun 15 03:15:40 oh well Jun 15 03:16:57 hey kny do you have any idea what i might be doing wrong? Jun 15 03:18:38 I know one person with an android phone who is not developing ... sooooo ;) Jun 15 03:19:57 KNY: anyway, care to see what I have so far? You still got time to copy it till the start, but well .. I'll trust that you're working on something different anyway ;) Jun 15 03:20:11 haha Jun 15 03:20:27 whiplash: did you rename any package, or remove by accident the package name at the start of one of your files? Jun 15 03:20:27 whiplash, I would guess you left out the package Jun 15 03:20:29 either in the manifest or in the code Jun 15 03:20:31 make some pastebins and I'll check it out Jun 15 03:20:41 sure. And yeah, opengl es means it's already wayyyy over my head Jun 15 03:20:45 I don't do the whole graphics thing too well :) Jun 15 03:21:06 KNY: it's very very early alpha ... started yesterday evening ;) Jun 15 03:21:32 This is all I have: (HelloAndroid.java) Jun 15 03:21:32 http://pastebin.com/d565bf07e Jun 15 03:22:07 sent Jun 15 03:22:07 yep, left off the package Jun 15 03:22:11 direct copy-paste from the tutorial... Jun 15 03:22:15 did i miss something? Jun 15 03:22:26 whiplash, add package com.android.helloworld; or something to the top Jun 15 03:22:34 what KNY said Jun 15 03:22:39 sammyF, is your phone rooted? Jun 15 03:22:44 KNY: nope Jun 15 03:23:00 excellent; I'll trade you testing time if you want, haha Jun 15 03:23:10 KNY: I have a german one. tried rooting using the goldcard thingy, didn't work out, and then I just gave up. doesn't matter THAT much Jun 15 03:23:22 nah, it really doesn't Jun 15 03:23:26 that did it :) Jun 15 03:23:28 thanks a lot Jun 15 03:23:52 whiplash, have you written Java before? Jun 15 03:23:59 not for an entire year Jun 15 03:24:11 i had a basic class on it Jun 15 03:24:14 KNY: the only reason I wanted to root it back then was to install cupcake. got hold of the install file anyway Jun 15 03:24:56 what i need is a terminal that's compatible with cupcake's on-screen keyboard Jun 15 03:24:57 KNY: obviously I need to work on the particles and the way they behave when you turn around .. along with the turning around to start with. But well ... it's a start :) Jun 15 03:25:08 sammyF, I /msgd you Jun 15 03:25:16 whiplash, ConnectBot 1.5 Jun 15 03:25:23 is that local? Jun 15 03:25:38 whiplash, 1.5 has a local mode, I believe. Right, kRutOn ? Jun 15 03:25:39 i'm not looking for telnet or ssh Jun 15 03:25:54 can i just telnet or ssh into localhost? Jun 15 03:26:20 I believe so. Read the wiki, I think it's written up Jun 15 03:27:41 which wiki? Jun 15 03:28:00 code.google.com/p/connectbot Jun 15 03:28:40 thanks Jun 15 03:31:34 the soft keyboard should work automatically right? Jun 15 03:36:52 whiplash: it does, yes Jun 15 03:37:20 whiplash: unless the person who developped the application you're using did something particularly wrong Jun 15 03:37:36 fair enough Jun 15 03:37:59 oh god I hate the GC Jun 15 03:38:23 losing ~ 140ms every 20secs or so Jun 15 03:39:04 sammyF, did you watch that presentation on real-time games? Jun 15 03:39:16 KNY: yeah Jun 15 03:39:39 KNY: yes, it does... Jun 15 03:39:50 KNY: very good by the way. I especially liked the part where the guy said "Java sucks" (except that he used different words ;) Jun 15 03:39:53 whiplash: http://the-b.org/~kenny/temp/cb-transports-beta2.apk is a test version Jun 15 03:40:06 sammyF, haha yeah Jun 15 03:40:33 you could literally see all the other devs behind him waiting with baseball bats ;) Jun 15 03:40:40 haha Jun 15 03:40:50 his game looked fun though Jun 15 03:41:11 anyway, as far as I know, I don't allocate any memory while the game is running. lots and lots of initialization up front Jun 15 03:41:29 so I guess it's what he was saying about Java doing weird stuff in the background Jun 15 03:41:39 yep. his game looked like fun :) Jun 15 04:07:08 wow, I never realized how clever Java is. Jun 15 04:07:46 Many of the design patterns and sneaky tricks you have to apply to get help from the compiler are already built in. Jun 15 04:08:00 Compared to C++, that is Jun 15 04:20:54 ravon, like what? Jun 15 04:21:37 KNY: Not sure I've got this correct, but @Override gives you a warning if the method isn't in the base class, correct? Jun 15 04:21:59 ravon, yeah, or if the base definition changes Jun 15 04:22:39 Yeah. At work we have this "no virtual-only methods" policy just to avoid missing something when the signature in the base class is changed. Jun 15 04:22:54 interesting Jun 15 04:23:03 Instead we have to make it pure virtual and call a "defaultXXX()" method from the classes which don't want to implement it. Jun 15 04:23:17 Meaning adding a new virtual method is a bitch. @Override solves this quite elegant. Jun 15 04:23:18 seems like you could define a comment or something which a static analysis could pick up Jun 15 04:23:28 like you have to do #Override Jun 15 04:23:34 errm, //Override Jun 15 04:23:41 <_Auron_> .. what's the difference between dispatchTouchEvent and onTouchEvent? Jun 15 04:24:16 _Auron_, same as if I dispatched a slap to your face and you reacted on an onSlapFace Jun 15 04:24:30 (from what I understand anyway) Jun 15 04:24:42 one creates the event, the other receives it Jun 15 04:24:56 Ah, that would be an option. It's something which have to be run manually though, but I guess it could be integrated into the build scripts. Jun 15 04:25:16 yeah Jun 15 04:25:32 but if you have a process that already works, then stick with it :) Jun 15 04:25:56 "works" is stretching the truth. Nobody adds virtual methods anymore since it's such a hassle. Jun 15 04:26:16 heh Jun 15 04:26:23 could be something to propose I guess Jun 15 04:26:43 <_Auron_> KNY: So essentially I could use dispatchTouchEvent to control how often it checks for input? Jun 15 04:26:45 there must be something like findbugs for c++ Jun 15 04:28:01 _Auron_, I don't really know when you would use it, but it allows you to propogate touch events Jun 15 04:33:07 dispatchTouchEvent() does not create events Jun 15 04:33:16 it dispatches them to the children (hence the name) Jun 15 04:33:28 onTouchEvent is what you use to process events you receive and do something with them Jun 15 04:33:39 basically, if you're not sure what you're doing, use onTouchEvent() Jun 15 04:34:54 romainguy, right, I didn't mean it created fake events or anything Jun 15 04:35:08 fake or real, it doesn't create them :) Jun 15 04:35:13 haha Jun 15 04:35:27 events won't bubble by default, right? Jun 15 04:35:32 KNY: There are some nifty C++ tools out there. The problem is that the companies have no problem charging >100k USD for them :/ Jun 15 04:35:36 (without using dispatchTouchEvent()) Jun 15 04:35:36 KNY: bubble? Jun 15 04:35:43 romainguy, sorry, Flex term I guess Jun 15 04:35:49 events are dispatched down Jun 15 04:36:02 at least touch and key events Jun 15 04:36:21 so why would you need to call dispatchTouchEvent()? wouldn't it automatically keep going to its children? Jun 15 04:36:35 who said you have to call it? Jun 15 04:36:37 just leave it alone Jun 15 04:37:02 ah Jun 15 04:37:36 what would be an instance when you would use it though? or is it not really intended to be used by developers? Jun 15 04:37:44 just forget about it Jun 15 04:37:49 it's just used to dispatch touch events Jun 15 04:37:51 that's all Jun 15 04:37:54 haha, fair enough Jun 15 04:37:55 Why would doing a readLine on this bufferedReader from a socket cause my app to stall? BufferedReader reader = new BufferedReader(new InputStreamReader(socket.getInputStream())); Jun 15 04:38:12 plediii, are you doing it on the UI thread? Jun 15 04:38:38 yes Jun 15 04:38:44 i think so Jun 15 04:38:51 it's in my onCreate method Jun 15 04:38:53 that might be why Jun 15 04:39:01 ok Jun 15 04:39:07 look up AsyncTask Jun 15 04:39:09 i need to create a service? Jun 15 04:39:11 ok Jun 15 04:39:31 thank you Jun 15 04:40:36 KNY: "look up AsyncTask" seems to be the answer to almost everything these days ;) Jun 15 04:40:59 sammyF, I'll keep that in mind next time you ask about OpenGLES :) Jun 15 04:41:15 :P Jun 15 04:41:39 although it would have been a good advice BEFORE I started out with that ;) Jun 15 04:42:03 "hey I've got a question about OpenGL ES" "Stick to normal apps and look up AsyncTask" :P Jun 15 04:43:09 <_Auron_> openGL ES is fun Jun 15 04:43:11 ok, it isn't just that the app takes a long time to respond, it *never* completes the readLine Jun 15 04:43:12 that surprises Jun 15 04:43:51 _Auron_: what did you wish for for your birthday? a session at your local BDSM shop? Jun 15 04:44:04 hahah Jun 15 04:44:18 _Auron_: OpenGL ES is not fun. It's infuriating :P Jun 15 04:44:44 _Auron_: on the other hand : do you know if I can change the colour of "POINT" elements? Jun 15 04:45:53 no matter what I try they end up white :/ Jun 15 04:46:29 <_Auron_> 'point'? Jun 15 04:46:59 <_Auron_> gl.glColor4f() doesn't work? Jun 15 04:47:03 well ... actually it's GL10.GL_POINTS Jun 15 04:47:15 hmm ... didn't try that Jun 15 04:47:30 <_Auron_> that's what you typically use to color polys Jun 15 04:47:31 I actually created a color buffer, assigning each vertex a color Jun 15 04:47:59 <_Auron_> oh, I didn't bother with that (since the engine I wrote is for sprites, so vertex colors are pointless) Jun 15 04:48:08 I'll try gl.glColor4f() .. maybe that works better Jun 15 04:48:24 the Colorbuffer thing works nicely for lines and triangles Jun 15 04:48:36 not that well for points :/ Jun 15 04:48:50 <_Auron_> heh Jun 15 04:51:16 it seems if I don't try to write to the socket before trying to read, it reads successfully Jun 15 05:03:20 this doesn't make sense at all Jun 15 05:04:03 I disabled the gl.glcolorpointer call and added the gl.glColor4f with 4 fixed values, and now my points just change colour all the time Jun 15 05:05:35 <_Auron_> ? Jun 15 05:06:00 _Auron_: exactly Jun 15 05:06:07 <_Auron_> no, I don't understand what the problem is Jun 15 05:06:33 _Auron_: the problem is that if I do it the way it should supposedly be done, Jun 15 05:06:44 using a color buffer Jun 15 05:07:00 the colour doesn't change from plain white Jun 15 05:08:03 if I disable the buffer and just use gl.glColor4f before I call DrawElements( GL10_GLPOINTS ...), the colours seem to be random and changing, as if I was getting them from some random part of the mem Jun 15 05:08:38 which, in itself, is funky and could probably be used in some really neat application, but right now, it's just frustrating Jun 15 05:08:50 grr, it was because my writer wasn't flushing :( Jun 15 05:10:51 <_Auron_> sammyF: can I see your code? Jun 15 05:11:12 sure. one sec. trying one thing first Jun 15 05:11:26 <_Auron_> since I'm going insane staring at a single line of code that I know something is going wrong, but the math appears to be perfectly correct, and I'm going crazy. Jun 15 05:11:29 <_Auron_> okay Jun 15 05:15:13 http://pastebin.com/d2f989705 Jun 15 05:15:22 bleh Jun 15 05:15:23 one sec Jun 15 05:15:30 redoing it with syntax highlighting Jun 15 05:15:52 http://pastebin.com/m55c483e4 Jun 15 05:16:17 mPointBuffer has a list of vertices Jun 15 05:16:44 mPointBufferList has just numbers counting up from 0 to the number of vertices Jun 15 05:17:09 drawing the points work now. it's the colour which gets me crazy Jun 15 05:18:26 <_Auron_> hmm Jun 15 05:18:49 the result are white points Jun 15 05:19:07 no matter what I put in debrisRed, aso ... Jun 15 05:19:23 <_Auron_> what is mGenerator.nextFloat()? Jun 15 05:19:36 just a random number generator Jun 15 05:19:44 standard Java stuff Jun 15 05:19:45 <_Auron_> oh. you might want to do /10.0f Jun 15 05:19:59 nextFloat() should return something between 0 and 1 Jun 15 05:20:44 <_Auron_> also why are you subtracting from green but adding red, blue, and alpha? Jun 15 05:21:01 yep.. better style, doesn't change a thing Jun 15 05:21:16 oh .. green is 1.0f in the base colour Jun 15 05:21:41 the idea is to get some light randomness to the whole thing, without going for garish :) Jun 15 05:22:01 <_Auron_> disable those lines and just put something in like 0.6f on each and see if the particles are colored or not Jun 15 05:22:18 red, blue and alpha can be increased by 0.1 easily wihtout getting over 1, green is already at 1 so can get a bit lower Jun 15 05:22:19 <_Auron_> as a gray instead of white Jun 15 05:22:25 _Auron_: already tried Jun 15 05:22:28 <_Auron_> nothing? Jun 15 05:22:31 white Jun 15 05:23:22 the really weird thing is : I disabled all that stuff, and tried to put glColour4f before the drawElement, and that resulted in blinking colours Jun 15 05:23:55 I mean, anything from black to pure red and yellow, with points actually changing colour after some time Jun 15 05:24:09 now you know why I hate OpenGL ES ;) Jun 15 05:25:07 this is really trivial stuff, but the result is just plain weird Jun 15 05:25:30 * _Auron_ blinks Jun 15 05:25:52 <_Auron_> well.. for my particle and such I'm using pairs of triangles (to essentially create quads) Jun 15 05:25:55 Hi, does anyone know how to install IM Application on emulator? Jun 15 05:25:56 <_Auron_> care to see my code? Jun 15 05:26:08 i tried any times, i can't get that to work. Jun 15 05:26:30 any help is appreciated Jun 15 05:26:39 sure Jun 15 05:26:58 although triangles are not much of a problem right now :) THEY work ;) Jun 15 05:27:44 I just have that damn feeling that nobody ever uses points except me, and so nobody ever cared to actually debug that part of the code ;) Jun 15 05:27:52 <_Auron_> lol Jun 15 05:28:22 I tried finding sampled about point rendering in openGL Es ... nada Jun 15 05:29:09 <_Auron_> here's my sprite code: http://pastebin.com/d2a13220 Jun 15 05:29:49 <_Auron_> under my sprite class Jun 15 05:31:16 yeah ... definitely better than mine :) Jun 15 05:31:40 <_Auron_> I coded it organized so I could use it quite simply when coding my game(s) Jun 15 05:31:56 <_Auron_> and developed that structure in C++, but recently when starting with android I ported the code over Jun 15 05:34:22 nice :) Jun 15 05:34:31 * _Auron_ stares at "float ang = (float)Math.toDegrees( Math.atan2(Math.abs(fireY - sPlayer.getY()), Math.abs(fireX - sPlayer.getX())) );" and goes insane Jun 15 05:34:37 my code is quite a mess really, as I figure out how stuff works in openGL on the run mostly Jun 15 05:35:00 ahhh ... yeah .. the joys of trigonometry ;) Jun 15 05:35:06 <_Auron_> I suppose I can take out the abs() bits as it's not helping Jun 15 05:35:19 <_Auron_> I swear it's completely correct and my friend can't figure out whats wrong with it either Jun 15 05:35:54 what's the part that goes wrong? Jun 15 05:35:59 I mean ... how does it go wrong? Jun 15 05:36:38 _Auron_: did you look at the "developing real time games on android" talk? Jun 15 05:36:38 <_Auron_> well it's supposed to calculate the angle between the point of firing (where I touch) and the player's ship, then go from there Jun 15 05:36:47 <_Auron_> deebo: nope, sounds interesting though. Jun 15 05:37:08 <_Auron_> sammyF: except every 10 pixels vertical or horizontal it does a rotation of 360 degrees Jun 15 05:37:11 watch it, im nott a game dev but it had lots of info i wouldnt have even thought about :) Jun 15 05:37:15 <_Auron_> which confuses the hell out of me Jun 15 05:37:27 <_Auron_> 10 being a guess Jun 15 05:37:32 <_Auron_> deebo: hmm, link? Jun 15 05:37:41 _Auron_: Atan2 awaits rads Jun 15 05:37:52 http://code.google.com/events/io/sessions/WritingRealTimeGamesAndroid.html Jun 15 05:38:05 <_Auron_> sammyF: ? I'm converting to degrees though, as you can see Jun 15 05:38:06 _Auron_: and yeah... the google IO session is really nice Jun 15 05:38:22 <_Auron_> unless it takes in rad values, but that's kinda weird Jun 15 05:38:31 <_Auron_> I tried using atan() instead and I get the same exact result Jun 15 05:38:48 let me check... I have something similar in my code Jun 15 05:40:08 _Auron_: that I understand you correctly (and remember, it's nearly 2AM here, so I might be slow) Jun 15 05:40:21 <_Auron_> it's cool :) Jun 15 05:40:53 _Auron, you're trying to figure out the angle between the fire X/Y point and whatever sPlayer.getx/y is ? Jun 15 05:41:13 <_Auron_> yeah Jun 15 05:41:19 k ... try that : Jun 15 05:42:01 <_Auron_> is there supposed to be something past the colon on that line? Jun 15 05:42:05 float ang = (float)Math.toDegrees( Math.atan2(fireY, fireX) - Math.atan2( sPlayer.getY(), sPlayer.getX()) ); Jun 15 05:42:09 <_Auron_> oh, sorry Jun 15 05:42:26 yes... there is supposed to be sound of hectic keyboard clicking :P Jun 15 05:42:26 <_Auron_> o.O Jun 15 05:42:38 <_Auron_> is that really how its supposed to be used? Jun 15 05:42:49 I MIGHT have a ) too many or missing Jun 15 05:43:05 my IRC client doesn't have () checking :P Jun 15 05:43:24 <_Auron_> lol Jun 15 05:43:48 for my part, I had to remove 90 degrees afterward ... but as I said, my code is messy Jun 15 05:44:36 but that's the way to compute the angle between two vectors Jun 15 05:44:53 as far as I know and remember, 10mn before going to bed Jun 15 05:45:13 <_Auron_> okay somehow my app is broken now Jun 15 05:45:53 hmmm ... because of my line or because you changed stuff while trying to find a solution? Jun 15 05:45:59 <_Auron_> but I think its install broke because my usb cable was slightly loose Jun 15 05:46:07 <_Auron_> and because it was in sleep and I was trying to wake it Jun 15 05:46:25 <_Auron_> but eclipse won't 'reinstall' because it says its already deployed Jun 15 05:46:28 * _Auron_ uninstalls it then tries again Jun 15 05:46:39 ahh ... yeah. I love when that happens Jun 15 05:47:03 <_Auron_> I was getting a blank view that wasn't fullscreen (my app is fullscreen), which was slightly transparent, and it eventually force closed Jun 15 05:48:03 <_Auron_> wtf ??? Jun 15 05:48:18 <_Auron_> ActivityManager: Error: Activity class {com.Android.Stroids/com.Android.Stroids.main} does not exist. Jun 15 05:49:23 <_Auron_> okay cleaning my project in eclipse fixed that Jun 15 05:49:24 <_Auron_> weiiiird Jun 15 05:49:52 <_Auron_> by the way, your code doesn't fix it at all Jun 15 05:49:56 <_Auron_> it's doing the same exact thing Jun 15 05:50:00 * _Auron_ screams Jun 15 05:56:18 well ... maybe the error is somewhere else?! Jun 15 05:58:31 <_Auron_> I don't see how. Jun 15 05:59:50 can't tell you Jun 15 05:59:55 <_Auron_> also what's weird is the ang doesn't affect the rotation of the image (even though ang affects the direction/movement of the bullets) no matter where I press unless the ship actually moves, then the rotation Jun 15 06:00:09 <_Auron_> then the rotation is changed for the image Jun 15 06:00:25 <_Auron_> even though ang is directly used for the rot value of the bullets' sprites Jun 15 06:00:32 sounds like you have a problem elsewhere Jun 15 06:00:40 but seriously, I'm off to sleep ;) Jun 15 06:00:45 eyes are falling Jun 15 06:00:51 nighty Jun 15 06:00:58 <_Auron_> it can't be elsewhere. Jun 15 06:02:18 <_Auron_> night. Jun 15 06:02:50 <_Auron_> if I set ang to a specific value everything works perfect for that value, so that single line is the problem Jun 15 06:02:53 <_Auron_> :/ Jun 15 06:06:13 <_Auron_> wait Jun 15 06:11:59 <_Auron_> I think I found a fix. Jun 15 06:14:45 <_Auron_> fixed. Jun 15 06:14:51 <_Auron_> except for an offset, but I think I know what that is Jun 15 06:20:57 <_Auron_> and done Jun 15 07:22:47 * _Auron_ is watching the Google IO on developing real time games and is wondering wtf draw_texture is Jun 15 11:24:24 yea, i watched that last night Jun 15 11:24:49 i hope he releases the source soon, i cannot find one decent example of doing parallax scrolling with Java and OpenGL ES Jun 15 12:26:33 Hi, i have a problem with WebView: i use "webview.loadurl(url) ... but evertime it is firing a new Browser ... is there a solution to oppress this? Jun 15 13:10:22 Hello. Is it possible for an installed application to write to its own ressources (like writing new strings, updating images)? Jun 15 13:36:22 buster: you'll have to write them to the SD Card I think Jun 15 13:41:46 and then i'd have to check in the program if some newer files exist on the SD card. updating the actual ressources would have been better but this seems to be an alternative Jun 15 13:49:27 hello Jun 15 13:49:31 I'm setting up a TabActivity, and launching an activity in one of the Tabs. Everything is okay, but when I start a new Intent from withing my (sub) tab activity the desired activities starts in a blank screen. Not in the tab host. Jun 15 13:49:35 is there something to ask the new Intent to start IN the TabHost ? Jun 15 14:04:23 whats an API in flux? Jun 15 14:04:30 a one that is not finalised yet? Jun 15 14:07:49 yes Jun 15 14:11:06 cool! Jun 15 14:12:05 but you can use a flux capacitor to compensate Jun 15 14:12:05 thought id heard em all :) Jun 15 14:12:11 it was on the google wave api site hehe Jun 15 14:12:16 yes Jun 15 14:12:28 so you go into the future, and use a finished api :) Jun 15 14:17:58 hi, if i start a mapView in a TabHost i got a verfyError! can anybody help me? Jun 15 14:29:40 My app needs access to same info that the Field Test app displays, anyone know how it does it? or how to send/recieve AT commands to the GSM modem? Jun 15 14:30:12 As far as i can tell there arn't any ways of doing it with SDK API's Jun 15 14:37:41 anyone know how i can open the settings app on a special page ? like the default keyboard can if you click the *(gear) button ? Jun 15 14:46:41 Hey all. I'm developing a simple time tracker for Android, but if the user opens the application, backs out, and then goes back to the application, the timer state is lost. Jun 15 14:46:56 What is the best way to handle this? Jun 15 15:00:59 LogicallySound: you could use SharedPreferences to store the timer and then read from it again once they re-start your app Jun 15 15:01:51 I'll give that a try. But is that good practice? Jun 15 15:02:44 SharedPreferences are useful for storing application data, as long as you aren't abusing it with a large database or something similar Jun 15 15:03:06 Also, I need to store that state in onPause, I take it? Jun 15 15:03:46 (and restore in onRestart?) Jun 15 15:04:05 onResume Jun 15 15:04:42 Ah, right. Thank you. =) Jun 15 15:05:34 What are SharedPreferences shared by? All applications? All instances of one application¿ Jun 15 15:07:52 jt436: thanks by the way :) Jun 15 15:08:02 hey sammyF :) Jun 15 15:08:09 jt436: and you're aiming high ;) I didn't make THAT with 3 games ;) Jun 15 15:08:44 hahaha Jun 15 15:09:02 LogicallySound: taken from the documentation for SharedPreferences, Note: currently this class does not support use across multiple processes. This will be added later. Jun 15 15:09:32 Thanks. Jun 15 15:09:38 sammyF I have a trick up my sleeve that will be revealed soon, hopefully it will help Jun 15 15:10:24 jt436: I hope it for you :) Though, as I said the other day : Pr0n isn't really allowed ;) Jun 15 15:10:33 ha Jun 15 15:11:38 jt436: I have 3 reviews comling up for circuits, maybe 4... hopefully that will help a bit Jun 15 15:11:55 nice Jun 15 15:13:02 well ... the way I see it, either they say it's a shitty game, and I don't lose much, or they say it's a good game, and sales will probably stay the way they are, or they say it's a stupenduously great game and nobody should have died without having played it, and I might actually break the 50$ limit ;) Jun 15 15:13:20 either way, I don't lose much Jun 15 15:15:09 cross your fingers for later in the year as more devices hit the market Jun 15 15:15:17 hopefully your code is smart and will work on everything ;) Jun 15 15:15:56 jt436: yeah ... only problem will be the screen res Jun 15 15:16:12 jt436: so hopefully people won't start using really high res screens :P Jun 15 15:16:40 it will happen sooner or later Jun 15 15:16:58 yeah .. I know :/ Jun 15 15:17:18 I'll have to fix that someday Jun 15 15:17:27 hopefully the 800x480 devices will have mor horsepower Jun 15 15:17:28 I cheated, my camera area just gets bigger so you see more of the map Jun 15 15:17:39 the actual gfx all stay the same size Jun 15 15:17:53 currently working on my ADC2 entry though, so resizing the sprites and backgrounds in the old applications will have to wait a bit Jun 15 15:18:15 jt436: that's not cheating, that's "effective programming" ;) Jun 15 15:19:03 kRutOn: yep. more horsepower would be nice, although, at least for games, it won't matter much. You'll still have to code for some lowest common denominator :/ Jun 15 15:20:44 I mean hopefully it will be transparent to you as the developer. Unless you're doing manual timing with sleep() calls Jun 15 15:22:08 lol.. no. not THAT bad Jun 15 15:22:30 well if devices get more powerful you might need to slow things down Jun 15 15:22:39 since most games thus far are fairly basic Jun 15 15:22:44 kRutOn: but doing some heavy mathematical work because some devices CAN handle it in a timely manner will still be not possible Jun 15 15:25:15 at least I don't rely on the trackball anymore ... Jun 15 15:25:25 all coming devices have a touchscreen, right? Jun 15 15:28:46 hello Jun 15 15:28:49 I'm setting up a TabActivity, and launching an activity in one of the Tabs. Everything is okay, but when I start a new Intent from withing my (sub) tab activity the desired activities starts in a blank screen. Not in the tab host. Jun 15 15:28:55 is there something to ask the new Intent to start IN the TabHost ? Jun 15 15:29:31 I've tried setContent(intent) on a tabSpec Jun 15 15:29:36 but nothing happens Jun 15 15:30:27 would LocalActivityManager be of a little help at least ? Jun 15 15:49:12 hi, can anyone help... ive recently gotten android onto beagleboard and want to test a few things.... such as viewing media (pic/audio) Jun 15 15:49:29 where do I place my pics and audio files in the android filesystem? Jun 15 15:49:42 i put them in sdcard...but it cant see it Jun 15 15:57:08 by sdcard, i meant the folder called sdcard in the root dir Jun 15 15:59:49 mcgeagh: try #android, -dev is for application development not system hacking Jun 15 16:00:43 k Jun 15 16:02:35 yawn Jun 15 16:02:37 morning folks Jun 15 16:17:33 hey, can anybody help me out with a listview? I can't get the divider to display Jun 15 17:21:17 Is there a simple to use key-value-store for android with an apache or bsd-license? I need to store byte-arrays for string-keys. sqlite3 seems a bit too much for this simple purpose. berkeley-db seems to have the wrong license. Jun 15 17:24:01 biafra, perhaps SharedPreferences? Jun 15 17:24:11 I believe you can save/load serializable stuff Jun 15 17:26:18 KNY: I thought about that too. wouldn't that be abusing the SharedPreferences? Jun 15 17:27:27 biafra, only if they complain :) Jun 15 17:27:35 what's so "heavy" about using sqlite? Jun 15 17:28:54 KNY: lots of boilerplate code Jun 15 17:29:16 biafra, only if you're using ContentProvider; you can open/close/create direct sqlite databases if you want Jun 15 17:29:53 KNY: or is there a wrapper for SQLiteOpenHelper? Jun 15 17:30:35 biafra, you can just use SQLiteDatabase.openOrCreate() or something like that (sorry, don't have my IDE open right now) Jun 15 17:30:57 KNY: I already have to sqlite3-dbs in my app Jun 15 17:31:05 two even Jun 15 17:31:34 so what's the big deal about adding another, or a table on an existing one? Jun 15 17:31:59 I find its not as easy as it could be for a simple key value store Jun 15 17:32:54 biafra, I would try SharedPreferences first because it's easier (and faster to code) and if you run into performance problems then consider other solutions Jun 15 17:33:07 but that's just me Jun 15 17:55:56 hi there Jun 15 18:00:39 hi mobidroid Jun 15 18:01:57 KNY: is the recommended way to get POJOs from a Cursor or a database to create a custom SQLiteDatabase.CursorFactory() and override newCursor? Jun 15 18:07:12 does anyone know if there is any more comprehensive documentation of the new scripting environment aside from what is on the google code wiki for the ASE? Jun 15 18:10:14 MrFlakes: did you check androidCommunity website? If there is no info there, I doubt there is elswhere Jun 15 18:13:22 mobidroid: thanks, no i havent looked there yet. googling didnt come up with much. but i'll look there Jun 15 18:14:40 MrFlakes: well I checked pretty rapidly and dind't find much but usually they have lot's of new up2date info there Jun 15 18:41:12 wondering if anyone knows how the g1 handles charge rates through the extUSB connector Jun 15 18:42:07 well, the rate is different for USB vs A/C adpater. Jun 15 18:42:17 i forget what the rates are. Jun 15 18:42:22 Does it require usb data connections to draw 500ma from the plug or will it limit itself to 100ma untill it sees usb there Jun 15 18:42:43 that i don't know Jun 15 18:42:58 i have a feeling its trying to draw more than 100ma as my regulator is getting a tad warmer than i'd like Jun 15 18:43:19 anybody using openGL Es to draw some untextured stuff? Jun 15 18:43:23 SanMehat is the one to ask here on IRC, i think Jun 15 18:43:33 but he's not here right now, only in #android Jun 15 18:43:51 ctate: me, or sammy? Jun 15 18:44:15 voila Jun 15 18:44:31 SanMehat: gent had a question about usb charge rates Jun 15 18:44:32 im here! Jun 15 18:44:43 * ctate | Does it require usb data connections to draw 500ma from the plug or will it limit itself to 100ma untill it sees usb there Jun 15 18:44:45 ctate: okedoke Jun 15 18:44:47 yes. thankyou :-) Jun 15 18:46:39 im grafting a griffin itrip auto to the extusb plug. i have a 5v linear reg for 12v to 5v but it seems to be getting pretty hot. its rated for 100ma so i was wondering if the g1 was trying to pull 500ma from it even though usb data + and - were unconnected. Jun 15 18:47:15 audio works fine tho after shorting the pins that enable it Jun 15 18:47:33 phishinphree: yeah we pull 500ma when we detect 5V Jun 15 18:48:22 aww, thats a shame. i'll have to figure a better way of stepping down the 12v then. running out of room in the itrip :-) Jun 15 18:48:42 thx SanMehat Jun 15 18:49:08 yes, many thanks. i didn't think i'd get an answer, let alone one so quick Jun 15 18:51:44 this would be much easier if the ipod didn't accept 12v on the dock connector Jun 15 19:05:47 phishinphree: actually.. i should probably fix the charger driver to not do that Jun 15 19:11:08 hmmm. 170k XML takes a long time to parse on the target :/ Jun 15 19:16:52 hy all, does someone know how i can simulate an update of a package like if someone updates it from the market? (I want to test the update before i upload it to the market ;-)) Jun 15 19:16:52 ravon: slow disk, slow memory bus... what could go wrong? ;) Jun 15 19:18:36 ;) Hopefully it can be cached with sqlite Jun 15 19:20:30 SanMehat: most usb devices limit to 100ma till they can request more, up to 500ma. i think usb 3.0 is bumping that up to 1a or so. not sure if the g1 will charge over an unpowered usb hub, I don't have one to test with. Jun 15 19:21:11 phishinphree: well it will probably *try* to charge :) Jun 15 19:21:17 it may not do too well... :) Jun 15 19:21:42 probably, would take overnight i'd imagine Jun 15 19:29:37 1000 mA? ow Jun 15 19:29:49 the phone that could fry eggs! ;) Jun 15 19:43:43 phishinphree: Godspeed Jun 15 19:43:57 phishinphree: I hope you put instructions for how to build your own when you are online Jun 15 19:45:54 i just finished up most of it. i just need to find a really small 12 to 5v regulator that can handle 500ma Jun 15 19:46:45 or wait till the driver is updated. Jun 15 19:47:15 *hugs* Jun 15 19:51:08 it works fine as far as an fm transmitter now, it just doesn't charge. There isn't much room in the inline belkin transmitter other than a surface mount regulator. a small package transistor sized regulator fits but can't handle more than 100ma :-( Jun 15 20:08:56 Http POSTs in android: how do I do them? I'm trying to use HttpClient with HttpPost and HttpParams, but it doesnt seem to be working. I hit the server with a 200 but it can't see the params at all Jun 15 20:09:27 I also tried sending the params as part of an entity, but that just returned a 417 Jun 15 20:29:11 Hi all i'm wanting to dev some aplications for the android platform i'm a linux coder i understand that the android os is bassed on linux is the applications bassed on a different coding ? Jun 15 20:30:53 java :) Jun 15 20:31:12 lol Jun 15 20:31:20 yeah, you'll probably want to do some reading at dev.android.com Jun 15 20:31:24 think of linux as like... a glorified bootloader. ;) Jun 15 20:31:25 i'm sure that games are bassed on java Jun 15 20:31:38 hehe Jun 15 20:31:42 ya Jun 15 20:32:02 i've setup linux on jf 1.5 Jun 15 20:32:08 and gnome Jun 15 20:32:28 wich runs quite well Jun 15 20:32:47 what is jf? Jun 15 20:33:17 JesusFreke's release Jun 15 20:33:26 great! Jun 15 20:33:30 * srm runs for it Jun 15 20:34:03 Refuge: I do all my coding for android in eclipse on a linux box Jun 15 20:34:14 lol Jun 15 20:34:22 yah Jun 15 20:34:25 eclips Jun 15 20:34:26 developing Android applications is basically nothing like developing Linux/X apps Jun 15 20:34:31 is that a emulator Jun 15 20:34:32 ctate: thank god. Jun 15 20:34:33 for the phone Jun 15 20:34:38 grey-: word Jun 15 20:34:45 * grey- stakes X in the heart; but it just won't die! Jun 15 20:35:19 X marks the spot Jun 15 20:35:36 so Jun 15 20:35:45 kRutOn: first I thought of JF as a joke, now I'm scared... Jun 15 20:35:47 it's kinda like learing a new lang Jun 15 20:35:47 X marks the pedwalk! Jun 15 20:35:56 lol Jun 15 20:35:57 oh, JF is ok. Jun 15 20:36:00 Refuge: No, it's in Java. Jun 15 20:36:27 jesus freaks is a modded rom that still allows root to non dev phones Jun 15 20:36:32 has mulitouch Jun 15 20:36:42 great stuff! Jun 15 20:36:45 ya Jun 15 20:36:52 not really hard to install Jun 15 20:37:03 *ahem*, this is #android-dev guys Jun 15 20:37:13 speaking of root... do the rogers' phones have # for adb shell/dev? Jun 15 20:37:31 i assume that all of the retail phones are rootless Jun 15 20:37:35 u just revert to rc29 wich had the exploit of the terminal emulator and root and then replace the boot loader and upgrade the modded firmware Jun 15 20:37:35 weakz. Jun 15 20:38:14 ctate, "rootless" as in "not rooted" ? Jun 15 20:38:20 there are ways to go rootless that are better security gains (e.g. niels provos' systrace drop priv/rootless stuff as deployed on monkey.org) Jun 15 20:38:27 as in not-root-capable Jun 15 20:38:39 hacking root access yourself through security holes doesn't count Jun 15 20:38:47 ctate: k. Jun 15 20:38:49 lol Jun 15 20:38:51 developer phones offer root access out of the box Jun 15 20:38:57 yep Jun 15 20:38:59 they do Jun 15 20:38:59 * sammyF feels alone with his original unmodified G1 Jun 15 20:39:01 * grey- cues domokun. Jun 15 20:39:15 frickin kittens. Jun 15 20:39:17 but my thinking is this phone was supposed to be open source Jun 15 20:39:20 sammyF: nah, that's a great testphone. Jun 15 20:39:27 i think they are playing big brother Jun 15 20:39:35 well, carriers think they have something to gain. Jun 15 20:39:36 Refuge: the *hardware* is not open source. Jun 15 20:39:45 yah Jun 15 20:39:48 i know Jun 15 20:39:50 i mean Jun 15 20:39:56 * grey- isn't sure what they think they have to gain; and he isn't sure they know either... but as long as they think there's something. Jun 15 20:40:06 without root some possibiltys like tethering ect.. are not aviable Jun 15 20:40:08 and the terms of the open source license say that they can do whatever they want. if they want to ship a closed non-rootable carrier-locked phone, that's not against the license. Jun 15 20:40:14 they should have bought/joint venture'd with OpenMoko Jun 15 20:40:17 grey-: yep. and besides, so far I wouldn't know what to do with root access on my phone anyway Jun 15 20:40:22 OTOH, if someone wanted to sell a root-capable unlocked phone, then that would be allowed, too. Jun 15 20:40:34 sammyF: yeah the only thing I've used that is handy that requires root is the tethering. Jun 15 20:40:40 but adhoc tethering I assume could be done w/o root. Jun 15 20:40:45 with some futzoring. Jun 15 20:40:56 but again; carriers might frown. Jun 15 20:40:56 ya Jun 15 20:40:59 they're a frowny bunch. Jun 15 20:41:01 the root packages that at least some people are using are scary unsafe Jun 15 20:41:02 grey-: yep Jun 15 20:41:04 that and installing linux Jun 15 20:41:09 on the sdcard Jun 15 20:41:11 is nice Jun 15 20:41:33 yeah union mounts could be handy; haven't done it though. Jun 15 20:41:40 I just ssh to a real unix machine when I need it with connectbot. ;) Jun 15 20:41:41 it's nice Jun 15 20:41:45 linux runs well Jun 15 20:41:53 with a vnc loopback Jun 15 20:41:57 kRutOn: best app evar. Jun 15 20:42:46 grey-: ? Jun 15 20:42:54 kRutOn: err connectbot. Jun 15 20:42:56 * sammyF agrees with grey- Jun 15 20:43:07 kRutOn: I'm still waiting for localbot. ;) Jun 15 20:43:17 * grey- would vote for it in the app contest. ;) Jun 15 20:43:32 grey-: at least it would get 1 vote. Jun 15 20:43:38 :) Jun 15 20:43:44 see! Jun 15 20:43:50 hmm ... speaking of best app ever and going in the other direction : am I the only for whom Eclipse doesn't really shut down? Jun 15 20:43:57 I have want to store data, as I receive it into a SQLite DB, I also want it to show in a ListView, what's the best way to do this? (I'm pretty confused about Adapters), I've been thinking... Jun 15 20:44:38 if I use a Cursor as the adapter, I'd have to re-query each time I add something? or does the cursor update itself (and thus the list)? Jun 15 20:45:24 kRutOn: hmm, nope still getting a crash even using Math.min Jun 15 20:45:53 If I re-query the cursor, would that cause the list to be entirely redrawn? rather than an individual item added? Jun 15 20:47:55 doc_savage: listview generally does the right thing. if your cursor has a notify uri associated with it, the listview will update all on its own Jun 15 20:47:57 digitalspaghetti: sorry, you want WIDTH-320 etc since you're using scrollX directly Jun 15 20:48:01 if it does not, you can simply call notifyDataSetChanged() Jun 15 20:48:06 on the adapter Jun 15 20:48:10 or ratehr, FROM the adapter Jun 15 20:48:38 doc_savage: however, if an underlying db is modified, a requery is necessary of course. but still, listview will be very smart about this. Jun 15 20:49:49 jasta: ok... so would I create an extended ListAdapter, with a SQLite DB within, then give it an "add" method, to store it in the DB? (I think I need to read more, very confused) Jun 15 20:50:38 no, just use a cursor adapter. get the cursor from a content provider, and if you wrote the content provider make sure you set a notify uri on it. see the numerous examples of ContentProviders to learn how. Jun 15 20:51:12 sorry kRutOn where about? /me is dumb tonight Jun 15 20:51:13 doc_savage: or, as i said before, simply call notifyDataSetChanged(). Jun 15 20:51:28 jasta: I don't have a content provider, the data to store is coming from gps/wifi, and i then want to store it in a database for later use, but also display it live in the list Jun 15 20:51:54 Hi all ! I've a question about the keyboard configuration with the emulator, i've found this file http://android.git.kernel.org/?p=platform/packages/inputmethods/LatinIME.git;a=blob;f=res/xml/kbd_qwerty.xml;h=9794710596baa05989b937e3ff7799a954302d63;hb=HEAD it contain the QWERTY keyboard. If i modify it, the keyboard on the emulator change ? Thanks ;-) Jun 15 20:51:59 ahh, well in that case as an optimization i would store the data in an adapter, possibly one extending baseadapter Jun 15 20:52:13 and during your applications onStop(), persist the data to a database. Jun 15 20:52:22 that way you only write to the database when the user leaves the "live updating" data. Jun 15 20:52:39 but of course your app logic might dictate another solution... Jun 15 20:52:55 that sounds like what I'm trying to get at :) Jun 15 20:52:58 oh wait i think i see Jun 15 20:53:21 doc_savage: there are some great talks at Google I/O on stuff like this. i strongly urge you to watch them Jun 15 20:53:31 theyre hosted on youtube, linked to from the io web page Jun 15 20:53:53 jasta: I have watched a few, I have bookmarks to them, I'll have a look again, it's just taking a while to sink in :) Jun 15 20:53:58 romain's talks in particular gives a nice diagram about how lists and adapters work together Jun 15 20:54:25 jasta: yeah I have seen that, it makes sense when I watch it, then when I come to code my brain spins, I'll watch again Jun 15 20:55:15 thanks for your help jasta, I'll re-watch and come back with any more questions :) Jun 15 20:55:16 man t-mobile need to get on there 3g cov there bein slow Jun 15 20:55:52 sprint is alreay working on 4g Jun 15 20:56:15 Refuge, true. You could always pay double in your phone bill to help them along a bit :) Jun 15 20:57:42 the downside, ofc, is having to use CDMA ;) Jun 15 20:58:23 amen to that. I'd rather use EDGE on GSM than (3...N)g on CDMA Jun 15 20:59:03 * ctate had a phone on Sprint's only GSM cell network, back in the day. Jun 15 21:00:18 actually hm, it was "Sprint Spectrum," which i *believe* was affiliated with Sprint Jun 15 21:01:19 * KNY waits for ctate to tell those darn kids to get off his lawn Jun 15 21:02:31 mmmh I think my question is not good... I want to change the localisation of my virtual keyboard on my htc magic, i've an AZERTY keyboard from france, but i'm swiss and i prefer really a QWERTZ keyboard. So, i just want to change some letter in the good order. And my question: there is an xml file with the keyboard configuration or the config is compiled ? Jun 15 21:10:19 no one have an idea ? Jun 15 21:10:43 Or my english is really bad ? ^^ Jun 15 21:11:54 hi all. Any links to how I would add my app's settings to the settings menus? Jun 15 21:12:52 FordPrefect, you can't, unless you're on an iPhone :) Jun 15 21:13:49 what's better iphone or android g1? Jun 15 21:13:53 i vote for android Jun 15 21:13:54 :p Jun 15 21:14:37 from a development perspective, the g1 Jun 15 21:14:42 by a country mile Jun 15 21:14:49 hehe Jun 15 21:14:50 yep Jun 15 21:14:51 is there any performance difference between "private boolean mIsBound = false;" and "private boolean mIsBound;"? Jun 15 21:15:19 doc_savage: java? C#? Jun 15 21:15:20 does using "= false;" initialize it to false, then set it to false? Jun 15 21:15:23 java Jun 15 21:15:49 I thought the accepted OO dogma was to init everything in your contructor Jun 15 21:15:59 but I could be wrong, I spend most of my days banging out C Jun 15 21:16:36 ewon: my understand is java always initializes class variables, boolean to false, but I like to be explicit (paranoya), but not if it costs time Jun 15 21:16:41 understanding* Jun 15 21:35:07 java always inits to 0, iirc Jun 15 21:35:26 i.e. false in the case of booleans, null in the case of pointers, etc Jun 15 21:40:21 it surely takes no longer than typing up the question :D Jun 15 21:43:51 ok question - i've got a custom view for an image that allows the user to scroll around. Fine for touchscreen using a GestureDetector, but what do i use to capture the input from the trackball? Jun 15 21:44:34 http://paste.ifies.org/503 Jun 15 21:46:58 digitalspaghetti: there is a onTrackballEvent(MotionEvent ) Jun 15 21:47:37 ahh, should i implements that in my custom view, not in the activity/ Jun 15 21:47:38 ? Jun 15 21:47:44 digitalspaghetti: method in the view Jun 15 21:53:14 hrrm, doesn't seem to be picking it up Jun 15 21:54:27 http://paste.ifies.org/504 Jun 15 21:54:32 i'm not even getting the log Jun 15 22:00:17 anyone Jun 15 22:00:23 ? Jun 15 22:14:03 Can anyone point me to resources dealing with designing/writing/installing new input methods? I'd like to be able to input without sliding out the keypad Jun 15 22:14:36 http://android-developers.blogspot.com/search/label/Input%20methods Jun 15 22:14:57 is there a method of removing missed calls from the notifications via some service? Jun 15 22:23:21 herriojr, wouldn't be too hard to write one Jun 15 22:53:43 is onPause called before onSaveInstanceState? Jun 15 22:54:14 well, onsaveinstancestate may never be called for the life of your process Jun 15 22:54:47 ah ok... that makes that easier :) onPause it is Jun 15 22:54:47 similarly, onpause might happen second in certain odd cases. if your logic depends on onsaveinstancestate calling at a specific moment in the apps lifecycle, design fail :) Jun 15 22:54:48 onPause is the only one guaranteed to be called, right? Jun 15 22:55:08 KNY: well, onsaveinstancestate is guaranteed to call when it is defined to Jun 15 22:55:11 go read its definition :) Jun 15 22:55:25 jasta, haha, right, but anywhere after onPause() your process can be killed Jun 15 22:55:46 (onStop(), onDestroy() have no guarantee that they'll be called when that happens) Jun 15 22:55:55 KNY: I see a method, but I don't think I have access to it (internal function to android) Jun 15 22:56:09 KNY: I can't remove notifications for other applications unless they provide a method for me to do so Jun 15 22:56:10 herriojr, ? Jun 15 22:56:27 herriojr, just make them as read in the call log using their content provider Jun 15 22:56:38 I believe there's a NEW flag that needs to be set to 0 or something Jun 15 22:56:51 the notifications will get updated automatically (IIRC) Jun 15 22:57:11 I don't see anything in their update code to clean the notifications Jun 15 22:57:53 herriojr, is the notification service registered as an observer for that content provider? Jun 15 22:59:03 actually, I have to run off really quick, so I'll get back to you on it later Jun 15 22:59:21 but from what I tried, setting NEW to 0 doesn't work Jun 16 00:30:54 what the...google released new maps version though the market??! Jun 16 00:31:01 err Jun 16 00:31:03 wrong window Jun 16 00:40:54 why is new File("foo").getAbsolutePath().equals("/foo") == true and how can I create a File relative to the application directory? Jun 16 00:42:00 or is the cwd of the InstrumentationTestRunner == / ? Jun 16 00:43:48 biafra: look at openFileOutput() and openFileInput - lets you create file in the application's directory Jun 16 00:44:17 doc_savage: thanks. I'll have a look Jun 16 00:48:07 doc_savage: it is impossible to make directories inside the app dir? Jun 16 00:48:19 doc_savage: can I create direcories in the cacheDir? Jun 16 00:48:45 via getCacheDir() ? Jun 16 00:48:49 biafra, yes, this is all documented Jun 16 00:49:21 KNY: may be. but the Docs on File are not clear about that Jun 16 00:49:40 biafra, sorry, it's not on File; look at Context, I believe Jun 16 00:50:13 sorry, ContextWrapper: http://developer.android.com/reference/android/content/ContextWrapper.html Jun 16 00:51:33 KNY: ah! so getDir() gives the Path I was looking for. Thanks! Jun 16 00:52:18 or may getFilesDir() I'll sort that out Jun 16 00:56:28 man I wish I could remove the decoration around the API docs and maximize the bit that matters Jun 16 00:56:35 the header/sidebar take up far too much root Jun 16 00:56:36 room* Jun 16 01:00:27 getFilesDir() points to your app's little playground on /data Jun 16 01:00:33 feel free to create dirs there etc. Jun 16 01:40:40 hello all, I am having an issue with the web browser. It forces a refresh of a webpage whenever I return to an already rendered page from the home screen or from another browser window. I think it may be a bug as I see this posted as issue 2171 on android's google code page Jun 16 01:41:23 is anyone familiar with this? and have any advice for a fix? I am running Tmo G1 with cupcake Jun 16 01:44:02 sorry i forgot a link to the previously mentioned issue: http://code.google.com/p/android/issues/detail?id=2171 Jun 16 02:11:16 Can some one please help me how to start an intent for capture picture? Jun 16 02:13:01 lucius, http://developer.android.com/reference/android/provider/MediaStore.html#ACTION_IMAGE_CAPTURE Jun 16 02:13:20 thank you. Jun 16 02:56:45 I'd like to reference the system default divider in an ImageView. It seems to be at com.android.internal.R.styleable.ListView_divider. How would I go about doing that? **** ENDING LOGGING AT Tue Jun 16 02:59:57 2009