**** BEGIN LOGGING AT Thu Aug 06 02:59:57 2009 Aug 06 03:39:11 Is it possible to have a layout create a dropshadow for you, or do you have to use 9patches always? Aug 06 03:42:32 w00T getting there Aug 06 03:42:37 (rendering 2d textures :P) Aug 06 03:43:45 <_avatar> jasta: no, i am not, unfortunately. shame, too, it seems like a really nice app Aug 06 03:44:03 hmm Aug 06 03:44:15 Amorgos: yes, shadowColor, shadowX, shadowY, etc Aug 06 03:44:27 its a feature of paint, exposed via attributes of TextView (or maybe just base View?) Aug 06 03:46:18 i can't see any reference to shadow in View Aug 06 03:46:39 it's somewhere -- look harder. Aug 06 03:46:53 it is being used by the framework for the text in the default activity title bar (look closely, you'll see) Aug 06 03:47:48 i've found setters for shadowcolor, x, y in TextView but they seem to be related to text Aug 06 03:47:58 not views themselves Aug 06 03:48:30 yes but the feature is generic, as i said. Aug 06 03:48:33 it's a property of Paint Aug 06 03:49:06 if you want to use it on a regular View, you can wrap it and draw the view yourself with a paint that has a shadow Aug 06 03:49:16 but honestly, a 9-patched png would probably be simpler Aug 06 03:49:51 <_avatar> jasta, what do you think of the Amazon.com app? it's surprisingly quick. however, their service calls probably don't return 10x as much metadata as necessary. Aug 06 03:50:00 * _avatar shakes his fist at the MP3 APIs Aug 06 03:50:39 havent used it yet Aug 06 03:50:54 Amorgos: Paint.setShadowLayer() is probably what you're looking for Aug 06 03:50:56 <_avatar> ah Aug 06 03:50:58 its just a helper Aug 06 03:51:28 cool. Aug 06 03:51:32 that looks good Aug 06 03:52:10 thanks all Aug 06 03:55:49 w00t Aug 06 03:55:50 works :) Aug 06 04:30:59 Any suggestions for handling mock objects? Right now it's between doing it manually or using EasyMock. I've never really done either. Aug 06 04:44:38 anyone know how to have a tabactivity with no tabs? Aug 06 04:44:50 to prevent it from erroring out? Aug 06 04:46:47 http://www.youtube.com/watch?v=pXyl7puN2C8 :) Aug 06 09:06:13 I'm trying to create a basic service, but it's not being executed. tag defined in manifest etc. Anyone had any experience with services? Aug 06 09:10:37 I created, and specified in manifest. But i didn't actually start it :) thats why.. Aug 06 09:11:23 Amorgos: yeah, you have to start it :) Aug 06 09:42:34 hi all Aug 06 09:43:20 does anyone here succeed in using MediaRecorder to record video and audio??? Aug 06 10:00:26 I have a listview with a LinearLayout for each item.. I am not getting any "selected" state on the items though (the usually orange indicator) Aug 06 10:01:19 how would I implement this myself? Aug 06 10:12:08 actually, I was setting the background color on the linearlayout to #fff, so obviously that overwrote whatever default stuff is there, hehe Aug 06 10:12:38 however! when I scroll the list, the background of the items becomes black... what gives? :p Aug 06 10:19:24 aha, cacheColorHint :) thanks Romain! Aug 06 10:23:19 is there any way to prevent scrollview from sending a cancel touch event to the children? (ie when dragging a thing within a widget it gets cancelled when the scrolling kicks in) Aug 06 10:24:03 roosmaa: what do you mean by a thing? Aug 06 10:30:23 Amorgos: something dragdroppable ... whatever widget (by widget, I don't mean the home screen one, but UI widget in android.widget.*) Aug 06 10:30:43 so a button for example? Aug 06 10:31:58 for example... or say: scrollview -> customDnDwidget -> textview .. Aug 06 10:33:18 Just a stupid Question, when launching an activity from a service we must use Intent.FLAG_ACTIVITY_NEW_TASK, then how can we update the UI of this activity (still from a service) ? Aug 06 10:34:21 My use of Scrollview has resulted in the expected behaviour of it's children so i haven't had any similar problems. but on the widgets, there are listeners for both click and touch... if that's any help Aug 06 10:35:50 Loules. If the service is in a different thread (which it probably will be), then you won't be able to update the main thread. Aug 06 10:37:42 But there is a way to notify your activity to update from another thread Aug 06 10:39:43 Loules: Read up on Handlers. That's how I've been updating/notifying the UI/Main thread of events. Aug 06 10:41:24 Amorgos: but how to acces the Handlers ? Aug 06 10:41:39 I will have to be static I guess... then i wont be able to perform non static task... Aug 06 10:43:03 what is the "proper" way to open up a browser on a specified URL with an intent? Aug 06 10:44:00 you execute a handler from a thread (your service), that then executes a method in your UI thread (Your activity) Aug 06 10:45:23 im not sure where you get the idea of them being static from :/ Aug 06 10:45:54 I dont understand how to acces the handler, it have to been in the activity class Aug 06 10:46:06 and in Service i just get an "intent" Aug 06 10:46:15 I'm quite sur I'm missing something... Aug 06 10:46:57 ok. you create a custom handler class which is responsible for calling a method(s) in your activity. (Read up on how Handlers work) Aug 06 10:47:55 you instantiate that handler from your service, and when you're ready to notify the activity, there's methods like sendMessage() in the Handler class Aug 06 10:50:40 ok, i'll try this. Aug 06 10:50:42 thx Aug 06 10:52:43 Hello, I have problem with webview. I have link with javascript alert. When I click on the link page sroll up Aug 06 10:54:29 I don't want scroll up Aug 06 10:56:22 Is there any solution? Aug 06 11:23:08 I'm walking through the android development tutorial (the hello world app). Should the downloaded SDK directory be put somewhere specific? I ask because I'm having trouble setting up a new android project (in Eclipse) and the it seems the problem is that the AVD I've created can't be found. Aug 06 11:23:57 Well, in Eclipse, you need to specify where the SDK is. Aug 06 11:25:28 TigerTael: Yep, you're right. I recall it gave that prompt and I dismissed it. Thank you. Aug 06 11:31:04 Can you help me with webview? Aug 06 11:45:25 I get the error "No python nature for project: [ProjectName]" when I try to run a project. What does that error mean? Aug 06 12:06:10 hm. a ConventResolver is almost certainly not what I wanted there. Aug 06 12:14:52 I have the following code for an AsyncTask: http://pastebin.com/m6e1828c4 . When the program gets to the to the progress update it crashes. any ideas as to what I'm doing wrong? Aug 06 12:17:35 hello Aug 06 12:17:58 is there anyone who could help me with video recording? Aug 06 12:18:19 I'm trying to develop an application to record video, but I got problems with the camera Aug 06 12:20:48 deekjx, when the app crashes do you get a stacktrace in LogCat ? Aug 06 12:21:53 hoerup, it no longer crashes. I made a change at somepoint but not sure what it was. The problem Ihave now is the progress bar never shows up Aug 06 12:22:15 i think its because I never defined a final void publishProgress maybe? Aug 06 12:22:31 i have this error... E/CameraInput( 554): Camera is not available Aug 06 12:24:05 no, publishProgress() is final, so it should not be overridden Aug 06 12:26:25 then I'm at a lost, lol. It does pass the variables to the Task. The task does go through its motions, but once the publishProgress is set, nothing happens. Aug 06 12:26:47 I called it fromt he ui thread like this new ProcessText().execute(fullbuffer, corp); Aug 06 12:27:59 do I need to define a dialog somewhere? Aug 06 12:28:00 Is there any way to output SQLite statements (hopefully via configuration) hitting the app database? Aug 06 12:29:50 im not familiar with the AsyncTask, but I think i have figured it out Aug 06 12:29:53 ... Aug 06 12:31:27 It seems as though it should be pretty simple. I'm at the point where I just need two things to happen. I need it to show the progress indicator. And then I'll work on posting my results to the screen Aug 06 12:31:43 you should create a progress dialog or somethinglike that before calling execute() and in onProgessUpdate() you should set the progress on the dialog Aug 06 12:32:09 ahh, thank you Aug 06 12:34:47 hi all Aug 06 12:35:30 Do you know how to use python gdata API with an ASE python script ? Aug 06 12:36:30 I guess I have to find a gdata jar first, then put it somewhere .... Aug 06 12:36:37 can you help ? Aug 06 13:03:09 <_Roman> I am developing on a T-Mobile G1 phone, how do I get access to the sqlite databases that I created in my application? Aug 06 13:05:29 hello Aug 06 13:06:07 anyone know how i can schedule an asynctask? Aug 06 13:06:32 i tried timer but it doesn't seen to work, throws an error saying in needs looper.prepare(); Aug 06 13:06:40 if i add that the timer doesn't do anything Aug 06 13:07:39 how about using Handler for the scheduling ? Aug 06 13:09:14 gaah Aug 06 13:09:27 I'm getting my phone in less than 7 hours Aug 06 13:09:33 ah that looks ideal, cheers hoerup Aug 06 13:09:33 *6 hours Aug 06 13:09:37 gimmeee :P Aug 06 13:09:41 for instance use Handler.sendEmptyDelayedMessage() Aug 06 13:10:57 http://saeedsiam.blogspot.com/2009/03/timer-in-android-better-way.html that sorta thing? Aug 06 13:13:10 yes either post a Runnable object or do a (anonymous) subclass of handler and override handleMessage() Aug 06 13:18:49 hoerup: I'm able to get the progress dialog box by calling it in the main thread like you suggested, but how do I get AsyncTask to up date the called progressbar? The AsyncTask does as it should and runs in the background. I just can't get the update out of it Aug 06 13:19:38 just for reference my AsyncTask is http://pastebin.com/m6e1828c4 Aug 06 13:21:06 What phone are getting SinnerG? Aug 06 13:21:47 your processtext object should have some way of referencing your progressdialog - and then in onProgressUpdate you should call dialog.setProgress(); Aug 06 13:22:51 I see Aug 06 13:22:58 or you could make onProgressUpdate() call some other function which has a reference to the dialog Aug 06 13:23:20 I like the idea about callig the dialog directly Aug 06 13:26:25 <_Roman> I am developing an application on my T-Mobile G1 phone. The problem is that I can not get access to the sqlite database that I create (either using DDMS or adb shell), I just get permission denied errors. If I use the emulator, then there is no problem. Can anyone help me to get access to the database? Aug 06 13:28:48 <_martin___> if you had access to your database on your phone with the adb shell user you would have access to everybody else's database Aug 06 13:31:08 deekjx : a magic Aug 06 13:31:30 I was considering getting the dream but.. it has a keyb Aug 06 13:31:37 its good but I'm buying it to dev on Aug 06 13:31:52 and I except that alot of future phones wont have a keyb as well Aug 06 13:32:09 so I figured getting the magic is the best to prevent me from coding for phones with a keyb :P Aug 06 13:32:10 i hate that alot future phones don't have keyboards Aug 06 13:32:13 (keyb specific) Aug 06 13:32:24 <_Roman> _martin___: is that a round about way of saying that it is not possible? Aug 06 13:32:54 _Roman, you could always have your app copy it to your SD card Aug 06 13:33:03 you have a good point. I developed and app only to discover the listener I was using on caught keyboard events, not virtual keyboard events Aug 06 13:33:28 <_Roman> KNY: yeah, that was on my list of things to do, I just wondered if there was an easy way to do this without messing round Aug 06 13:33:49 had I tested with the virtual keyboard, i would have discovered the problem alot sooner. instead I found out from a friend Aug 06 13:33:50 _Roman, have you tried using adb shell? Aug 06 13:34:08 see exactly the reason why I got the magic :P Aug 06 13:34:54 excuse mu, what's the import for Runtime ? Aug 06 13:35:06 oxman, ctrl+shift+o Aug 06 13:35:09 if you're using eclise Aug 06 13:35:12 I using Textmate :) Aug 06 13:35:12 eclipse* Aug 06 13:35:14 heh Aug 06 13:35:16 hmm my handler doesn't seem to be doing anything Aug 06 13:35:17 http://pastebin.com/m597c08cd Aug 06 13:35:18 <_Roman> KNY: yes, I can get it to work with the emulator, but not on a real G1, I presume it is to do with the security of the device. Aug 06 13:35:23 the runnable doesn't seem to run at all Aug 06 13:35:42 _Roman, yeah, I wasn't sure. Sounds like you'll have to have it copy to the SD card Aug 06 13:35:55 (which is a good feature to have anyway since it lets users make backups) Aug 06 13:37:21 No one ? Aug 06 13:41:07 oxman, i've just (re)joined - what was your question ? Aug 06 13:41:10 use eclipse :P Aug 06 13:41:35 whats the import for runtime Aug 06 13:41:38 thats his q Aug 06 13:42:06 java.lang.Runtime Aug 06 13:42:09 this any good? Aug 06 13:42:14 oh Aug 06 13:42:22 helps if you call runnable.run().. lol Aug 06 13:42:34 lol ;p Aug 06 13:43:24 nothanks Aug 06 13:43:26 thanks Aug 06 13:43:33 my problem was getInstance instead of getRuntime Aug 06 13:44:30 <__martin_> it is a sad day when my gprs connection is more reliable than my dsl connection Aug 06 13:44:43 hehe Aug 06 13:45:01 <__martin_> I timed out after you said "a magic£ Aug 06 13:47:03 lol martin, i have the same at uni. the internet is better if i tether my macbook to my iphone than if i use the uni wireless Aug 06 13:50:40 <_Roman> Is anyone having trouble getting on to the developer.android.com website at the moment? (I keep getting the error that states that my qurey looks like a bot) Aug 06 13:51:19 yes Aug 06 13:51:22 but it was very slow Aug 06 13:51:47 i'm making a tiny opengl game and i want the player to jump. jumping would require some concept of time to be able to accelerate.... should this be done by getting the system time in the onDrawFrame or by using a different timer thread? Aug 06 13:56:42 for reference, I just use the website that gets bundled with the SDK Aug 06 14:02:01 has anyone noticed getting directed to "sorry.google.com" recently ? Aug 06 14:02:29 just when doing searches on android related queries. Aug 06 14:02:42 wmealing: what is that? Aug 06 14:02:56 sorry.google.com seems to me to be exactly the same as www.google.com Aug 06 14:03:10 * wmealing will take a screenshot Aug 06 14:05:28 http://img256.imageshack.us/i/root1.png/ Aug 06 14:05:47 the funny part is, that its redirect from searching with google Aug 06 14:07:56 wmealing: ah. that happens to me sometimes too Aug 06 14:08:16 its happening to me more and more recently. Aug 06 14:08:16 wmealing: for me, it's because I'm going through the IPS's proxy Aug 06 14:08:31 wmealing: someone using the same proxy is infected by a virus Aug 06 14:08:36 i'm in singapore,so the whole country gets messed up by the governments proxy. Aug 06 14:08:42 wmealing: well, same here Aug 06 14:08:54 ah, hi btw. Aug 06 14:09:14 it's fucking idiotic Aug 06 14:09:20 from my office we have no such proxy Aug 06 14:09:28 * wmealing fully agrees Aug 06 14:09:32 I should get myself a corporate connection Aug 06 14:09:36 loke: so you're in singapore right ? Aug 06 14:09:39 it's way more expensive though Aug 06 14:09:42 wmealing: yah Aug 06 14:14:54 can an eclipse project dir be moved around, or does it contain absolute paths to something? Aug 06 14:15:15 * wmealing gets it.. yet again Aug 06 14:16:03 <___martin> if that didn't get sent before i disconnected, do inputstreams cache x lines ahead of the line you just read or the entire document? Aug 06 14:17:15 <___martin> and also does freenode support /ns ghost to kill ghost nicks if I register? this constant disconnecting combined with a huge timeout period is getting annoying Aug 06 14:18:30 Ramosa: you can add an external eclipse project (outside your workspace) Aug 06 14:18:46 http://developer.android.com/reference/android/graphics/Bitmap.html <-- singapore proxy doesn't like that page. Aug 06 14:18:47 yes.. but can I move projects around as I please? Aug 06 14:19:06 as long as i remember to delete it from eclipse and load it again ofcourse Aug 06 14:19:14 ___martin: the better solution is using a stable connection :) Aug 06 14:19:19 Well, yes. as long as you tell eclipse where they are! Aug 06 14:19:26 ok Aug 06 14:27:07 <_martin__> if anybody replied to my previous two questions, i didn't get it -_- Aug 06 14:29:03 06:15 bnovc | ___martin: the better solution is using a stable connection :) Aug 06 14:29:25 whatwas your previous 2 questions? Aug 06 14:29:39 <_martin__> re input streams and /ns ghost Aug 06 14:31:20 thats no help. Aug 06 14:31:36 <_martin__> i wanted to know if i was still here, now it seems my dns is down :p Aug 06 14:31:45 <_martin__> the inputstream question was because I wanted to know is if I stopped reading from a web document that I had an inputstream for halfway through, would the data connection still have downloaded the entire document or would it only have cached the next few bits Aug 06 14:33:10 it would have kept the next few bits Aug 06 14:33:23 <_martin__> good Aug 06 14:33:25 <_martin__> thankyou Aug 06 14:34:23 no. i mean, it would have got the whole thing. sorry. Aug 06 14:35:23 <_martin__> ah, ok Aug 06 14:36:15 does that effect the logic in your programming? Aug 06 14:36:45 <_martin__> it is sub-optimal only in that more data is used than necessary Aug 06 14:36:56 <_martin__> oh, there i go Aug 06 14:37:28 <_martin__> I am just creating an rss reader for learning purposses Aug 06 14:37:33 when you make a request, you get what you're given. Aug 06 14:38:16 <_martin__> I am checking the last publication date of the feed (to see if it's been updated) which is near the top, I can stop the sax parser as soon as I get the information i need which saves unnecessary processing Aug 06 14:38:29 rss readers are like the new "hello worlds" :) Aug 06 14:38:34 <_martin__> I was wondering if stopping the parse would also stop the unecessary data Aug 06 14:38:50 no Aug 06 14:40:16 <_martin__> well rss reader teaches some things that hello, world doesn't :P Aug 06 14:41:47 That's true. It's a good way to mess about with the framework Aug 06 14:45:46 What/Why are you developing with with android martin? if you don't mind me asking Aug 06 14:47:51 any suggestions for a "task manager" app Aug 06 14:48:00 <_martin__> Amorgos, what, well... i made a simple pedometer, a notepad (via the tutorial), a program that sends out of office / in meeting / currently driving etc replies when you receive an sms, this rss reader and yesterday i made a widget that keeps track of how many calls and texts i'd made in the billing month Aug 06 14:48:12 <_martin__> Amorgos, why? fun :p Aug 06 14:49:39 cool. I'm just asking 'cause its interesting to see what people are making :) Aug 06 14:50:39 a pedometer? cool. I only have the emulator, and I don't have an android phone. Even if i did i hardly walk so it would be useless to me :-D Aug 06 14:50:58 <_martin__> yeah it's pretty useless to me too :p Aug 06 14:51:17 is it based on gps? Aug 06 14:51:27 <_martin__> but I've done some work with the accelerometer of the nintendo wii remote, was curious about the htc magic's accelerometer Aug 06 14:51:43 <_martin__> i haven't included gps yet, that's the next thing to add to it (it's also on my to-learn list) Aug 06 14:51:51 <_martin__> I'm just making a bunch of small things in order to get an overall feel of what I can do with android, went for the device as I'm more of the open source mentality than an apple-own-my-soul type Aug 06 14:52:09 so you're making apps for yourself basically? Aug 06 14:52:43 ah, a google-own-my-soul type :p Aug 06 14:53:11 <_martin__> simply a quest for knowledge/understanding...I feel that if I can replace all the apps that I've downloaded with ones i've made, then I've understood what I'm doing ;D Aug 06 14:54:12 I'm gonna have to get my own android phone. I've spent the last 2 months messing about with the framework and I still don't know what other ppl have developed yet Aug 06 14:54:20 <_martin__> ...so basically my phone will end up with lots of slightly worse versions of things Aug 06 14:55:47 <_martin__> well I've done two years of java at uni so an android device was natural for expanding that knowledge... i find developing on a device that has restrictions forces you to learn more than you would before Aug 06 14:56:40 <_martin__> Falcon4ev, quite ;P Aug 06 14:57:15 I'm a j2ee developer for a living. I got into android cause they wanted me to and I love it. It's a fantastic framework and IMO we're at a great stage at the moment where a lot of things haven't been developed Aug 06 14:57:47 There's a lot of gaps that need to be filled Aug 06 14:59:17 There's so many things i want to code with android, but I just haven't got the time :-( Aug 06 14:59:41 anyone know how to use sha1 message digest on android? google turns up this answer which is less than helpful because one of the classes used isn't in android http://groups.google.com/group/android-developers/browse_thread/thread/add97ced80d6217e Aug 06 15:00:06 org.bouncycastle.jce.provider.BouncyCastleProvider just isn't there Aug 06 15:05:36 any recommendations for a good simple intent send/receive code sample to look at? Aug 06 15:06:03 <_martin__> the notepad example shows sending an intent with extras and startActivityForResult Aug 06 15:06:37 <_martin__> fotoflo, http://d.android.com/guide/tutorials/notepad/notepad-ex2.html Aug 06 15:06:52 startActivityForResult receives the intent? Aug 06 15:07:11 <_martin__> the onCreate method of the Activity you start receives the intent Aug 06 15:08:14 <_martin__> when an activity that has been started is finished you can call setResult() and it will be passed back to the calling activity when you call finish() Aug 06 15:08:44 <_martin__> (which incidentally is handled with the calling Activity's onActivityResult method) Aug 06 15:10:45 I need an excuse to get into the 3D stuff for android. looks interesting Aug 06 15:12:33 Ive been told the 3d stuff is "amazingly painful Aug 06 15:12:33 " Aug 06 15:12:50 <_martin__> Amorgos, then your excuse is masochism :) Aug 06 15:12:50 i have not done any myself though. Aug 06 15:13:37 Hi. I'm new to game development and have run into a bit of a brick wall, and was hoping someone could offer up some spare brain cells. I have a method that moves a "sprite" given a distance and direction. With each "tick" in my loop, the distances are minute. The problem is that the x/y coordinates must be rounded to integers before I can position them, and because the integers are so small, they never go above 0, and the sprite never moves :-P Aug 06 15:13:56 I've not done any 3D stuff since Java3D at university. Aug 06 15:14:04 savid, use double Aug 06 15:14:05 *100 :P Aug 06 15:14:10 yeah, or *100 Aug 06 15:14:39 KNY, the original distances are double, but the method I use on the Canvas for positioning the image only accepts int Aug 06 15:14:55 right, so you'll have to round it to the nearest int Aug 06 15:15:09 savid: that's fine, just keep incrementing the double and cast it to int right as you call the positioning method Aug 06 15:15:38 eventually the tiny bits you add on should cause it to increase by 1 Aug 06 15:15:40 don't just cast because that will floor it Aug 06 15:15:53 (int) Math.round() Aug 06 15:16:06 nothing wrong with flooring it if it works how he's described it Aug 06 15:16:20 <_martin__> if his double says 0.9 you want it to not move? Aug 06 15:16:25 f^x, I must be missing something here. The problem is that I call the positioning method w/ every tick, and with every tick the x,y double-typed coordinates are < 0.5. Aug 06 15:16:42 OH I think see what you mean Aug 06 15:16:54 _martin__: that's fine if his game field is 320x240 or whatever, yeah Aug 06 15:17:41 it's not like anyone is going to notice it moving a half pixel behind where it "should" be Aug 06 15:18:32 you know... i've god eyesight Aug 06 15:18:37 good* Aug 06 15:18:45 yeah I was storing the position member variable as an int ... heh Aug 06 15:19:08 Martin, thanks. im starting with the notepad tutorial from scratch ;-) Aug 06 15:19:09 yeah that's the problem, if you keep adding fractions to an int... nothing happens Aug 06 15:52:47 could anyone explain why i'm getting this error and my application is closing: http://bnovc.pastebin.com/m4e59d215 Aug 06 15:52:56 well not really even an error just those messages Aug 06 15:53:03 i'm gusesing from low memory but it doesn't really say that Aug 06 15:53:44 08-06 15:50:53.795: WARN/ActivityManager(563): Unable to start service Intent { action=android.accounts.IAccountsService comp={com.google.android.googleapps/com.google.android.googleapps.GoogleLoginService} }: not found ? Aug 06 15:53:58 oh wait.. nevermind Aug 06 15:54:42 bnovc, it looks like you're having serious memory problems Aug 06 15:55:28 my app is only like 100 lines :( and i'm not allocating any memory in draw events Aug 06 15:55:32 unless gl* does Aug 06 15:58:17 bnovc: use DDMS' allocation tracker Aug 06 15:59:08 ah yes, i do recall that being mentioned in one of the videos. possibly from you Aug 06 16:00:28 gah, i see it anyway... office mate adding allocations to a base class's draw. super. Aug 06 16:00:32 thanks Aug 06 16:22:38 h1 4ll Aug 06 16:22:49 learn to type; thanks Aug 06 16:23:48 can't he salute a long long int 4 ? Aug 06 16:24:22 bilboed-pi, h1 is a salute? :) also, he was doing the same stuff in #android, haha Aug 06 16:24:23 hold in register 1 a long long of value 4? Aug 06 16:24:38 KNY, erf, hadn't even seen the '1' Aug 06 16:24:40 haha Aug 06 16:24:52 can some one tell how long it take to develop a good android application to participate in google competition Aug 06 16:25:03 u_can, months. Aug 06 16:25:24 how many Aug 06 16:25:44 somewhere between 1nanosecond and 1 google years Aug 06 16:25:56 :p Aug 06 16:26:01 u_can, depends on the app. Figure 2-6 Aug 06 16:26:24 i wanna participate in android challange Aug 06 16:26:33 not having a ballpark estimate to start with... is a sign that you can multiply that number by 5-10 :) Aug 06 16:26:45 u_can, you're too late. the competition ends in like 3 weeks. Aug 06 16:26:57 KNY: is the 6th drawing in chapter 2 a chart of development times? Aug 06 16:27:16 Leeds, what else did you think I meant? Aug 06 16:27:17 is it impossible to do it in 3 weeks Aug 06 16:27:25 u_can, yes Aug 06 16:27:44 (if you have to ask, then yes, you don't have enough time) Aug 06 16:27:50 u_can: are you an experienced Java and mobile developer with a good, fleshed-out plan and design for an app? Aug 06 16:27:59 KNY do u know any other challange Aug 06 16:28:03 u_can, no. Aug 06 16:28:23 yeh i'm a good java dev Aug 06 16:28:44 great, so you have 5% of the requirements taken care of Aug 06 16:29:01 wht why.. Aug 06 16:29:29 u_can, I can use a hammer and welder. Think I could build an awesome building in 3 weeks? Aug 06 16:30:27 KNY:and u did u participate Aug 06 16:30:43 no Aug 06 16:31:21 so why u r her Aug 06 16:31:30 ??? Aug 06 16:31:34 I thought KNY was a dude Aug 06 16:31:53 :) Aug 06 16:32:02 u_can, this is a development channel. I develop applications. I didn't submit any to ADC2. Aug 06 16:32:28 KNY: didn't evil Google strip your app from the iTunes App Store? Aug 06 16:32:43 Leeds, eh? I'm not Sean Kovacs :) Aug 06 16:32:51 wht i must learn to develop strong app Aug 06 16:32:57 u_can, everything. Aug 06 16:33:00 patience Aug 06 16:33:24 wht u mean by everyth Aug 06 16:33:34 u_can, d.android.com -- memorize that site. Aug 06 16:33:47 yeh i in now Aug 06 16:33:56 i'm in the guide section Aug 06 16:33:59 also, consider learning how to spell and punctuate properly Aug 06 16:34:04 so that people don't think you're 13 Aug 06 16:34:08 is it anoughth Aug 06 16:34:37 if u tlk lk ths ppl thnk ur rtrd Aug 06 16:34:47 n u dun get hlp Aug 06 16:35:07 wht wht wht ? Aug 06 16:35:22 I think u_can is from Algeria, so maybe harping on his English isn't productive. Aug 06 16:35:24 whts th fck Aug 06 16:35:26 nd hr i ws thnkng I hd pckt lss on m line Aug 06 16:35:42 yeh i'm from algeria Aug 06 16:35:47 kroot: if it sounded like he was making an honest effort, I wouldn't mind. broken english is fine. 12 year old sms msg english doesn't help. Aug 06 16:35:49 we learn french Aug 06 16:36:01 and i learned english alone Aug 06 16:36:26 u_can: don't say "wht", say "what". don't say "u", say "you". don't say "r", say "are". Aug 06 16:36:33 u_can, come up with an application idea and just get started. You'll learn on the way. Aug 06 16:36:37 ok Aug 06 16:36:50 thank you KNY Aug 06 16:37:24 yes, that too. Just start making things. Aug 06 16:38:30 i'll try thanks to all Aug 06 16:39:00 KNY: can i know where are you from Aug 06 16:39:15 I'm from the Internet. Born and raised. Aug 06 16:39:39 i hoped to be like but her Aug 06 16:40:04 i get the internet a year ago Aug 06 16:40:24 and i did a lot of effort to get it Aug 06 16:40:40 it was my dream to have internet Aug 06 16:41:07 welcome :) Aug 06 16:41:48 :) now i'm happy...cause i feel like i'm in my world Aug 06 16:42:14 h4ck1ng programming is my life Aug 06 16:56:30 did anyone ever want to use (non existing) method Resources.getText(int, Object...)? Aug 06 16:56:30 what would be the best implementation of such method? Html.fromHtml? or using Resources.getText(int) and then applying parameters? Aug 06 16:58:39 pskink, what are you trying to do? Aug 06 16:59:31 can anyone point me (software engineer, very limited android devel experience) to a link/document/whatever that provides something of an overview of how android widgets work (architecturally)? i'm trying to better understand why i see processes spawned for .WhateverWidgetProvider when said widget(s) aren't anywhere on the home screen Aug 06 16:59:51 i want to setText on TextView, text is rich and with parameters Aug 06 17:00:05 pskink, ahh, I don't know how to do both, sorry Aug 06 17:00:44 in strings.xml i want smg like this hello %s Aug 06 17:02:28 i think that for symmetry there shoud be Resources.getText(int, Object...) but it isn't Aug 06 17:30:11 I'm getting this error in logcat: http://pastebin.com/d2a7e69cf Aug 06 17:30:32 have you tried googling it? Aug 06 17:30:48 i could have swear i saw someone ask the same question last week Aug 06 17:30:58 I haven't googled it Aug 06 17:31:10 give it a try. Aug 06 17:31:19 I thought if someone here had seen that error it would be quicker Aug 06 17:31:19 it's a common problem with an easy fix Aug 06 17:34:14 you're not closing yoru dialogs in onDestroy Aug 06 17:38:17 I wanna make a custom home application, I have done some modifications to the home sample and all is well but I would like to start with what defaultly comes with android 1.5. Is the default home app not open source or am I looking in the wrong place? Aug 06 17:41:46 Home is open source Aug 06 17:41:49 source.android.com Aug 06 17:42:22 good eye romain. I had a dialog I'd forgotten about that was poping up and disapearing as it finished(I thought it would block until dissmissed). Aug 06 17:43:43 And if you hadn't pointed that out I might have spent a very long time looking for the problem because I am also creating an AsyncTask and I suspected that was the issue(it seems to be working fine though). Aug 06 17:43:45 cani, it's called Launcher in the repo, I believe Aug 06 17:43:58 whaledawg, I assume you didn't take my advice and google it then, right? :) Aug 06 17:44:05 Oh!! thanks source.android.com and KNY! Aug 06 17:45:19 no I did Aug 06 17:45:29 but other people were talking about rotation changes Aug 06 17:45:36 ah Aug 06 17:46:04 and they were leaking memory, which made my suspect my asyntask Aug 06 17:46:27 but it's the dialog. Aug 06 17:47:06 is there a way to make a dialog block for a response? Aug 06 17:48:05 set a flag Aug 06 17:48:22 I'll look for that Aug 06 17:48:37 no, I mean set a flag that your asynctask checks Aug 06 17:49:06 and/or have it notify your thread when it's done Aug 06 17:54:22 I don't think I have to. There's no communication between the 2. The AsyncTask just starts up and does it's thing. When the activity finishes another activity is given the UI process and the task is blissfully unaware. Aug 06 18:12:51 guess who just received its htc magic? :) Aug 06 18:12:59 *his Aug 06 18:13:00 :p Aug 06 18:13:07 SinnerG, the hero is far better :P Aug 06 18:13:11 I dont care Aug 06 18:13:15 I got ma magic :p Aug 06 18:13:17 *hugz* Aug 06 18:14:34 I'll stick with the G1 thank you very much. I like a phone thick enough to deflect a bullet Aug 06 18:14:38 just in case Aug 06 18:15:22 lol Aug 06 18:17:23 can the api deal with permanent tcp connections like irc? Aug 06 18:17:48 i got my hero yesterday, market bugs :/ Aug 06 18:18:01 whaledawg, I cant blame you :) Aug 06 18:18:08 deebo, WHAT????!!!! Aug 06 18:18:14 I want a hero :( Aug 06 18:19:40 i can be your hero Aug 06 18:21:20 Falcon4ev, not in that way :P Aug 06 18:21:30 i mean the phone :D Aug 06 18:30:28 What is the relationship between the bundle passed to onCreate(Bundle b) and the intent gotten via this.getIntent() in an activity? Aug 06 18:34:51 does anyone know why/how various WidgetProvider broadcasts would still show up in logcat (with processes starting/dieing in response) for widgets that aren't currently on the home screen? Aug 06 18:35:11 this behavior seems to persist across reboot, uninstall/reinstall of the package that provides the widget, etc. Aug 06 18:54:08 Has anyone on T-Mobile tried sending and receiving UDP packets? There's talk on the mailing list about getting it to work in the emulator, but I was wondering if it worked in the wild. Aug 06 19:01:56 note that on T-Mobile's cell network you're behind their NAT service Aug 06 19:02:30 one thing that's been said to me before is that you shouldn't count on anything other than http if you can help it and I think that's right Aug 06 19:02:53 since you don't know what provider a user will have Aug 06 19:03:05 i would certainly hope that other TCP should work, not just port 80 Aug 06 19:03:07 but ew Aug 06 19:07:29 Right, so I'm just wondering if the tmo NAT blocks UDP or not. I guess I'll just have to write some test code. Which brings me to my next problem. My phone doesn't show up in the list of ADP devices. I can't figure out what's wrong. Aug 06 19:11:16 you have definitely enabled USB Debugging in the settings -> applications -> development panel? Aug 06 19:12:19 Indeed. Aug 06 19:13:24 i'm drawing a background texture with opengl and when i move it too much it looks like its at an angle momentarily....anyone know what would cause that? Aug 06 19:13:33 i was thinking double buffering but it looks like opengl es defaults ot htat Aug 06 19:14:02 blanu: what system are you on? Aug 06 19:14:12 Windows Aug 06 19:14:37 in the past I've had problems with connecting the USB through a hub on windows. Try directly connecting the PC Aug 06 19:16:26 Hi, I'm using the eclipse debugger and am trying to enter in "watch expressions" so ca Aug 06 19:16:33 stupid enter key Aug 06 19:17:25 whaledawg: Ah yes, I was using a hub indeed. Unfortunately, plugging in directly didn't seem to change anything. Aug 06 19:17:50 I'm using the eclipse debugger and am trying to enter in "watch expressions" so I can see the value of certain variables as my game is running. When I enter in an expression, it seems that all it does is show it as a string... Even if I do "1+2" as an expression, it just shows "1+2" in quotes. Aug 06 19:18:11 I feel like there must be some magical step besides enabling USB debugging and plugging it in and running "adb devices". Aug 06 19:29:30 blanu: do you have the emulator running in the background? Checkyour tasks list Aug 06 19:31:25 No, no emulator. Wouldn't it show up in the adb devices anyway? The adb daemon is running from earlier. Aug 06 19:31:53 anyone know why the WidgetProvider for a widget that has been removed from the home screen would still be revoked? i'm seeing this for a variety of widgets, both first and third party Aug 06 19:32:06 In eclipse, how do I add a watch expression without actually having a breakpoint within the same scope? I just want to see certain values of a different objects (e.g., x/y of a drawable) as I interact with my game, don't really need to step through.. any ideas? Aug 06 19:32:19 s/revoked/invoked/ Aug 06 19:33:08 hi, i have a question concerning layout and mediaplayer ;-) i have a linear layout with 2 buttons and a surfaceview.... how can i make something like the real mediaplayer.... hat the buttons appear on touch? Aug 06 19:33:33 blanu: all I have the same advice people without anything useful to say have. Check your settings(again) and reboot your phone and computer. Sorry Aug 06 19:34:19 Yes, a reboot! Why not? Are there are other magic settings I might be missing besides enabling USB debugging? Aug 06 19:35:10 try adb kill-server Aug 06 19:37:23 okay, another question.... how can i make the surface in the linearlayout down sit beside the buttons.... Aug 06 19:37:42 in html i woud add an clearing div;-) Aug 06 19:41:30 Still not working. Argh. Maybe I will update my ADP tools from 1.5_r1 to 1.5_r2. Aug 06 19:41:57 blanu: have you restarted your device? Aug 06 19:42:01 blanu, are you on linux? Aug 06 19:43:09 Yeah, I restarted everything. I'm on Windows. Aug 06 19:44:35 I might as well try it on Linux as well, why not? Aug 06 19:46:58 blanu, you followed the page on d.android.com, right? Aug 06 19:48:06 Yes, I just feel like I must have missed a step somewhere. Aug 06 19:54:56 im on linux ;-) maybe now someone could help me? ;-) Aug 06 19:57:00 finfin82, linearlayout? just make the orientation vertical Aug 06 19:57:07 Ah, I bet it's the USB driver! That seems like the thing that is most likely to cause this problem which I am also most likely to have screwed up. Aug 06 19:57:39 KNY: then my buttons are stacked as well Aug 06 19:58:08 finfin82, so you need to either use RelativeLayout or a nested LinearLayout (RelativeLayout is preferred) Aug 06 20:01:17 blanu: are you at least using the adb USB driver that came with the SDK? Aug 06 20:01:37 oh timing, looks like you thought of that Aug 06 20:02:21 haha Aug 06 20:03:55 Success! Yes, it seems obvious in retrospect. You see, I had remembered installing a "special" Android driver way back when I got my phone, but I think it was the HTC driver and not the ADB one. Aug 06 20:04:28 Thanks for the help everyone. Aug 06 20:05:41 so if i start a static progressbar [public static ProgressDialog show (Context context, CharSequence title, CharSequence message) ] how would i dismiss it Aug 06 20:06:10 without waiting for the user to press Back button on the phone Aug 06 20:07:56 KNY: thx ;-) and then i have to work with the property gravity of the elements? Aug 06 20:08:06 yes Aug 06 20:08:40 did you allready worked with mediaplayer? Aug 06 20:08:48 yes Aug 06 20:09:01 i have trouble to reset my player on back-button click Aug 06 20:09:17 which state the opened activity will get in this case? Aug 06 20:09:40 ./click/push/ Aug 06 20:10:00 (my player runs in an new intent) Aug 06 20:10:30 wenn i try to run another video, it will allways play the same (first) video ;-) Aug 06 20:14:06 is there something like a z-index property? Aug 06 20:14:27 i guess this way i could bring the buttons to front on surface-touch Aug 06 20:16:43 sry im still pretty new to java and android Aug 06 20:18:52 KNY? *smile* Aug 06 20:21:52 finfin82, sorry, phone. To stack elements use a FrameLayout Aug 06 20:30:43 Does anyone know if the MSN IM app in CyanogenMod uses sms to send messages? Aug 06 20:34:13 I bet cyanogen in #android knows Aug 06 20:35:20 yeah, this channel is for Android app development questions Aug 06 20:36:03 Hmm owke :) Aug 06 20:38:58 hi, i want to make date expiration test in my application, do you thing it would be enough to call it onCreate of my activity or it would be more wise to call it in many different places of my app? Aug 06 20:39:26 KNY: hmmm now i have 3 buttons and a surfaceview in my frame-layout.... the buttons are in the background ... even when i say gravity of the buttons is fill Aug 06 20:40:01 gravity has nothing to do with z-axis ordering Aug 06 20:40:04 pskink: maybe you should get the date from i-net Aug 06 20:40:42 KNY: i tried to attacht the onClick listener to the surface and call button.bringToFront .... Aug 06 20:40:42 pskink, use onResume() Aug 06 20:41:22 well, all i want is to limit app usage to lets say 1-dec-209 Aug 06 20:41:34 haha, looking at the "Android Emulator Chooser" got stretched at each run with amusement :D before I was guilty wondering what I had screwed up again to cause that ;) Aug 06 20:41:45 only in onResume? Aug 06 20:41:54 aunn, haha Aug 06 20:42:14 pskink, there's no benefit to checking elsewhere, unless the user never ever lets your app leave the foreground Aug 06 20:42:23 KNY: nothing happens when i call bringToFront() on the buttons Aug 06 20:42:33 finfin82, have you read the documentation? Aug 06 20:42:47 of ...? framelayout Aug 06 20:42:58 i was thinking about different places just in case someone tries to hack it Aug 06 20:43:07 i don't know what you mean by saying that the buttons are "in the background" Aug 06 20:43:22 no... this would be a great idea.... im pretty new to java and dont get use to the docu-way Aug 06 20:43:42 ctate: the buttons are behind my surfaceView Aug 06 20:43:51 oh, you're saying it overlaps them? Aug 06 20:43:59 right Aug 06 20:44:15 sorry for my english Aug 06 20:44:21 no, i understand now; it's fine Aug 06 20:44:44 thanks Aug 06 20:46:09 btw is reverse engineering in android as easy as in j2me? Aug 06 20:46:11 my surface, which holds the mediaplayer is layout widht/height fill_parent Aug 06 20:46:23 pskink: good question ;-) Aug 06 20:46:49 pskink, I don't know. how easy is j2me? Aug 06 20:48:19 hello. i want to root my phone and know how to do it. but how can i backup my phones internal data like SMS ? Aug 06 20:48:39 well even if soneone uses obfuscator in most cases is not that hard to break the code Aug 06 20:50:28 I want all of my activities to have a default margin of around 10px on the left. What's the right way to set that in a theme? I tried adding a "android:layout_marginLeft" to my application theme, but that seems to set the the left margin for lots of things, not just the root menu Aug 06 20:50:43 but i hope there are no such tools like decompiler for j2se, jad for example Aug 06 20:51:16 jad isn't j2se specific; it's a general java bytecode decompiler. fwiw. Aug 06 20:51:35 pskink, baksmali Aug 06 20:53:39 but baksmali produces "assembler" code, not regular java? Aug 06 20:54:38 yes i know had is not soecific to j2se, but produces quite good code Aug 06 20:55:13 per my left margin question above, i can of course go through all my activities and add a left margin style to each of their root nodes, but it would be nice if i could do it in the application theme instead Aug 06 20:56:29 pskink, patches welcome Aug 06 20:59:40 I'm trying to compile a custom launcher and I ran into an issue with it needing "com.android.internal.R", so I added internal to my project but it still doesn't find it Aug 06 20:59:47 any ideas on what I'm doing wrong Aug 06 21:00:08 com.* is NOT public and you should NOT use it in your projects. Ever. Aug 06 21:00:32 well, you should if your'e a company. Aug 06 21:00:44 but not com.android Aug 06 21:00:52 How would I recompile launcher? Aug 06 21:01:06 ctate, right, I was referring to anything in AOSP. Aug 06 21:01:10 *currently* Launcher doesn't build successfully with the SDK. Aug 06 21:01:20 ctate, wasn't that patched? Aug 06 21:01:28 oh, maybe, but maybe not. Aug 06 21:01:54 so merge stuff it requires out of com.android to my project would be best route? Aug 06 21:02:08 gn8 guys Aug 06 21:02:15 cani, yes Aug 06 21:02:30 cani: you could at least clone its source tree and change its package name Aug 06 21:02:42 but then if it still needs private-internal stuff, bleh Aug 06 21:02:46 no Launcher still doesn't build with the SDK Aug 06 21:02:56 and btw Aug 06 21:03:10 Market now rejects apks that use android, com.android and com.google as package names Aug 06 21:03:17 nice Aug 06 21:03:28 romainguy: awesome Aug 06 21:03:38 com.example too Aug 06 21:03:41 presumably that excludes us, too? :) Aug 06 21:03:51 I'm sure we have ways :) Aug 06 21:03:59 hax! Aug 06 21:04:15 My house; my cards; my rules. Aug 06 21:04:25 ;) Aug 06 21:04:52 :O Aug 06 21:05:20 * KNY makes a note to never play poker with ctate on his own turf Aug 06 21:08:21 anyone know why the WidgetProvider for a widget that has been removed from the home screen would still be invoked? i'm seeing this for a variety of widgets, both first and third party Aug 06 21:10:16 it's a known issue Aug 06 21:10:17 ask jsharkey Aug 06 21:13:32 gotcha, thanks Aug 06 21:20:15 hm, my dev phone keeps logging into my private gmail/gtalk account. Where's the setting to remove my personal google account info from my dev phone? Aug 06 21:26:34 Hi all, does anyone here have android complied for osx. I need mkbootfs and mkbootimg but dont have anything setup here to build them Aug 06 21:39:53 LinearLayout can automatically adjust the width of two views if the views are set to width=0 and corresponding weights are set. Is there any way to achieve a similar effect when using RelativeLayout? Aug 06 21:59:02 okay, that sms problem solved itself due to SQLite.. Aug 06 21:59:08 root, here i come ! Aug 06 22:14:23 my phone displays serial0 and nothing else Aug 06 22:14:32 is it flashing ? Aug 06 22:16:48 erlehmann: no Aug 06 22:16:52 you're not in fastboot mode Aug 06 22:16:55 try pressing the back button Aug 06 22:17:04 if it says fastboot after a couple seconds, you are in fastboot mode! Aug 06 22:17:08 if not, you screwed up ._. Aug 06 22:17:11 I'm trying to use getPackageManager().queryIntentActivities(intent,0) to launch a specific package / intent. Aug 06 22:17:21 How can I use the returned resolveInfo to launch the activity? Aug 06 22:17:45 the applicationInfo.className is null, so I can't create a component out of it.. Aug 06 22:17:50 lov: how do i restart ? Aug 06 22:19:46 there should be instructions of keys you can press. You can always pull the battery if worse comes to worse. Aug 06 22:19:57 you'll get better support for rooting your device in #android, probably Aug 06 22:20:03 k thx Aug 06 22:20:19 bdodson: are you sure it actually returned something correctly? Aug 06 22:20:29 I don't know too much about queryIntentActivities, sorry Aug 06 22:20:46 I mean, I don't know if it's correct Aug 06 22:20:48 but it returned something Aug 06 22:20:54 and the thing corresponds to what I want to launch Aug 06 22:21:13 the packageName is good Aug 06 22:21:23 I'll just ask here too, so if anyone knows if it's possible to add a EditText into an WidgetApp please tell me so Aug 06 22:21:51 because I've heard someone said that it's not possible Aug 06 22:22:22 but then I saw this official Facebook app that has an Widget with a EditText box inside it Aug 06 22:26:08 does anyone know how to draw a path overlay on a MapView? Aug 06 22:26:42 i tried extending Overlay and overriding the draw method Aug 06 22:27:06 but android jsut calls the draw method over and over and over endlessly Aug 06 22:33:32 radiob: that's probably correct. Aug 06 22:35:51 Hey all, quick question. Anyone aware of a way to get the current language setting on the phone? Aug 06 22:36:02 programatically? Aug 06 22:36:12 Yes, please. Aug 06 22:36:35 you might want to try Locale.getDefault() Aug 06 22:36:52 lov: the problem is that the app practically freezes because draw is being called so frequently Aug 06 22:37:23 radiob: do you have a thread that does something like "while(true) { postInvalidate(); }" Aug 06 22:37:30 if so, you might want to add sleep(10) or something in there Aug 06 22:37:59 lov: thanks! Aug 06 22:38:16 Flashpass: don't thank me yet, I have no idea what will happen :P Aug 06 22:39:05 lov: haha, okay I take it back - I'll thank you when it works Aug 06 22:43:06 lov: no, i'd don;t have a loop with postInvalidate(), I only call that method once after the overlay has been added to the MapView Aug 06 22:44:08 lov: it worked, thanks! Aug 06 22:44:12 radiob: sorry, I don't remember enough about overlays :( Aug 06 22:44:23 Flashpass: change your language and retest before you rest easy Aug 06 22:44:26 no problem, thanks anyway :) Aug 06 22:44:41 does Service.stopSelfResult() take into consideration that something may be bound to the service or only things that go throug onStart()? Aug 06 22:44:42 lov: I used Locale.getDefault().getCountry(), returned country code US Aug 06 22:45:39 that sounds reasonable; the default locale is probably en_US Aug 06 22:52:03 radiob: try this: http://androidguys.com/?p=1413 Aug 06 22:52:08 Does anyone know how to create an Intent out of a ResolveInfo returned by packageManager.queryIntentActivities(intent,0) ? Aug 06 22:58:04 the documentation for ResolveInfo is not in sync with the SDK Aug 06 23:01:38 what does it mean in java code for there to be a block between { } randomly in a method Aug 06 23:01:53 there is no preceding if/else/whatever Aug 06 23:03:54 it doesn't really mean anything Aug 06 23:04:01 the only effect it will have is to local scope any local variables Aug 06 23:04:16 public void foo() { int x; { int y = x; } { int y = x; } } Aug 06 23:04:20 this is perfectly valid code Aug 06 23:04:31 well, if you initialize x anyway... Aug 06 23:08:03 is it possible to get the view to scroll up without putting the entire program in a scroll view? Aug 06 23:08:15 like on click for a textbox I want the view to scroll up accordingly Aug 06 23:21:58 Why can't I use an argument of "in List list" inside of an aidl function declaration? Aug 06 23:22:32 because the generic container classes aren't parcelable Aug 06 23:22:46 ok Aug 06 23:22:55 #pedant Parcelable Aug 06 23:27:49 ctate: ok, thinking about it a bit more, I think I see why they did it that way Aug 06 23:40:04 I'm getting finalizing cursor error, but I deactives the cursor in onPause() and closes it in onDestroy.. where should i do this if this isn't right? Aug 06 23:40:29 That isn't true Aug 06 23:42:12 frez: do you do more than one query for the cursor (outside of onCreate)? Aug 06 23:42:53 if you only do the query in onCreate, I'd suggest using managedQuery, so you don't have to manage it yourself Aug 06 23:43:42 I have a query in onListItemClicked Aug 06 23:43:59 no, but that's not on the cursor Aug 06 23:44:19 when do you close the one in onListItemClicked? Aug 06 23:45:02 never Aug 06 23:45:03 :P Aug 06 23:45:09 I found the problem then, thanks :) Aug 06 23:45:31 well Aug 06 23:47:26 yup, thanks for pointing me in the right direction :) Aug 06 23:47:41 Got blinded my looking at my code for some time now Aug 06 23:47:45 by* Aug 06 23:48:34 when I try and play a video file on the android, it is giving me a message saying "reset video duration to -1 in openVideo" Aug 06 23:48:41 i googled for it and didnt get anything Aug 06 23:48:50 does anyone know what might cause this? Aug 06 23:49:35 any french here ? Aug 06 23:52:09 out of curiosity, why do I need to know the length of the array when reading from a parcel, when it is written to the function with Parcel.writeStringArray()? Shouldn't the length be encoded when I write to the parcel instead of having to write the length separately? I'm sure there's some good reason for it Aug 06 23:52:58 Steel: I think half of Google's framework's team speaks french :) Aug 06 23:53:08 herriojr: hmm? Aug 06 23:53:10 oh really cool Aug 06 23:53:19 I'm kind of lazy talking english Aug 06 23:53:27 ctate: romain guy does Aug 06 23:53:30 ha ha, not half but yes, several people Aug 06 23:53:31 for real I would like to know how to start Aug 06 23:53:40 since I'm a C++ guy Aug 06 23:53:45 romainguy, jbq, xav are all frenchmen who hang out here Aug 06 23:53:50 ctate: yeah, I know not everyone, I was exaggerating a bit :) Aug 06 23:53:52 and never played with java style Aug 06 23:54:08 herriojr: i don't understand your complaint re Parcel and string arrays, btw Aug 06 23:54:49 the number of items *is* written to the marshalled byte stream Aug 06 23:55:34 oh, let me try something, I think I was doing something stupid Aug 06 23:55:49 aHA Aug 06 23:56:04 ctate: it wouldn't be the first time :-/ Aug 06 23:57:38 ctate: ok, here's where my trouble is at, when reading from a Parcel, I do in.readStringArray(String[] val), which requires you know the size in advance Aug 06 23:57:59 right Aug 06 23:58:06 see also Parcel.createStringArray() Aug 06 23:58:09 which does not :) Aug 06 23:58:14 hmm, ok Aug 06 23:58:24 guess I missed that one :-/ Aug 06 23:58:59 the point of readStringArray() is that it doesn't need to allocate the array Aug 07 00:00:08 and in.createStringArray() reads the integer off of the parcel and increments pointer to the next position in the parcel? Aug 07 00:00:28 it consumes the string array from the parcel, yes Aug 07 00:00:33 returns null on error Aug 07 00:01:16 read the docs, yo! :) Aug 07 00:01:40 ctate: maybe they updated the docs then, F2 in eclipse isn't showing anything Aug 07 00:01:58 http://developer.android.com/reference/android/os/Parcel.html Aug 07 00:02:12 ctate: thanks, already navigated there :P Aug 07 00:03:39 ctate: read http://developer.android.com/reference/android/os/Parcel.html#createStringArray() Aug 07 00:03:39 oh geez, there's no javadoc for a lot of those Aug 07 00:03:53 ! Aug 07 00:03:54 yup :P Aug 07 00:03:57 feh Aug 07 00:04:23 hence my problema Aug 07 00:04:43 theres plenty of classes with no javadocs in the android framework. tsk tsk shame on you android devs :P Aug 07 00:04:48 okay, the create{Foo}Array() methods all extract *and allocate* a Foo[] from the current position in the parcel Aug 07 00:04:56 meanburrito920: file bugs pls Aug 07 00:05:26 ctate, really? I can file a bug for missing docs? Aug 07 00:05:31 of course Aug 07 00:05:41 ctate: so always do x = in.createStringArray(); in.readStringArray(x); Aug 07 00:06:12 herriojr: no Aug 07 00:06:19 one or the other Aug 07 00:06:38 meanburrito920: yeah, I used to, but then I started over filing for misunderstandings in the javadoc, and I got a thrashing from romainguy Aug 07 00:06:41 String[] x = in.createStringArray(); // allocates the array and reads its contents from the parcel Aug 07 00:06:51 ctate: ok, thanks Aug 07 00:07:07 herriojr, yeah, thats what i'm afraid of :) Aug 07 00:07:13 herriojr: ? Aug 07 00:07:22 in.readStringArray(x); // read array contents into an already-allocated array 'x'; fails if 'x' is not the right size for the stored array Aug 07 00:07:27 romainguy: oh, it was from a long time ago, I'd have to redig it up Aug 07 00:07:52 wheres the bug reporter? Aug 07 00:07:55 romainguy: it had something to do with lists Aug 07 00:07:58 i know iv'e been there before Aug 07 00:08:02 but i cant remember the url Aug 07 00:08:03 romainguy: he just discovered that Parcel.create*Array() all have no documentation :( Aug 07 00:08:06 meanburrito920: search for android issue tracker Aug 07 00:08:07 hehe Aug 07 00:08:07 its on google code right? Aug 07 00:08:08 meanburrito920: http://b.android.com/ Aug 07 00:08:09 ah Aug 07 00:08:18 easy to remember alias to the codesite tracker for it Aug 07 00:08:22 b for bugs Aug 07 00:08:27 like d for developer Aug 07 00:10:01 the google search bar is not considered a widget right? Aug 07 00:10:08 nope Aug 07 00:10:19 chouman82: no, it's built into the home screen Aug 07 00:10:26 ctate, can you get them to add s for source? Aug 07 00:10:33 chouman82: you can't do EditText in an app widget Aug 07 00:11:00 I can't remember where in the docs the subset of views for RemoteViews are, let me check Aug 07 00:11:15 does anyone know why my VideoView repeats the video when i call finish() on the activity, and then exits after it repeats? Aug 07 00:11:46 chouman82: http://developer.android.com/guide/topics/appwidgets/index.html#CreatingLayout Aug 07 00:13:55 you know, I've thought about faking EditText in app widgets Aug 07 00:14:20 bring up a fake keyboard, have them enter test, hit ok, then then it go back to the widget after an update Aug 07 00:14:27 *test=text Aug 07 00:14:36 but I don't know how the user experience will be Aug 07 00:20:15 fake keyboard = activity that looks like the on-screen keyboard with transparent background Aug 07 00:23:11 when i view a mapview activity with an itemizedoverlay, the itemizedoverlay's overidden draw method gets called over and over, and it really slows down my app. can any1 help me solve this probleM? Aug 07 00:24:00 fangus: I think it might be because each time you move the map view, it invalidates the entire mapview portion of the screen (including anything inside of it) Aug 07 00:24:18 fangus: I'm just guessing since I haven't dealt with map stuff Aug 07 00:24:35 herriojr could u clarify? Aug 07 00:24:51 i dont think it has much to do with the map more than the overlay class Aug 07 00:25:02 fangus: as I said, I'm just guessing Aug 07 00:26:09 I just know that if you call invalidate() or whatever it is, it will redraw that entire portion of the screen....if I remember correctly, you can enable something to see where portions of the screen are being redrawn Aug 07 00:26:40 maybe only on the emulator, I can't remember where I saw it Aug 07 00:28:04 ahh i see, ill see what i can do Aug 07 00:28:50 so since your sub-view seems to be inside an entire mapview which I'd assume refreshes quite a bit, it will cause your overlay to redraw...but I could be wrong Aug 07 00:29:15 fangus: I'm guessing, so don't quote me on anything ;) Aug 07 00:33:49 herriojr: assuming your guess is correct, is there anyway for me to reduce the number of times the overlay redraws? Aug 07 00:34:02 thx for the suggestions btw Aug 07 00:34:26 fangus: if I were to poke another guess, maybe ignore subsequent redraws Aug 07 00:34:34 unless certain conditions are met Aug 07 00:34:48 i tried redraw every 10 se conds lol, that didnt' work Aug 07 00:34:51 ill see waht else i can try Aug 07 00:35:02 or even just optimizing your onDraw Aug 07 00:35:11 did you try profiling? Aug 07 00:35:35 no Aug 07 00:36:27 oh wait Aug 07 00:36:49 well i kinda did, it spends most of the time invoking draw over and over.. Aug 07 00:37:38 fangus: http://developer.android.com/guide/developing/tools/traceview.html Aug 07 00:37:51 I'm just saying if you can't get around it, it might be a good idea to optimize it Aug 07 00:37:58 as a last resort sort of thing Aug 07 00:39:23 I'm assuming you're only having this issue when moving the map, correct? Aug 07 00:40:35 yep Aug 07 00:40:45 and zooming in/out Aug 07 00:40:46 etc Aug 07 00:41:29 yeah, so it is probably either somehow ignore the draw requests or optimize Aug 07 00:41:37 probably a combination of both Aug 07 00:43:53 are you doing calculations in onDraw? Aug 07 00:44:04 or memory allocation? Aug 07 00:44:13 no, havent tried that yet Aug 07 00:44:39 no, I mean you don't want to do either in onDraw Aug 07 00:44:45 or as little as possible Aug 07 00:44:55 yeah, onDraw() should be absolutely as fast as possible Aug 07 00:44:56 right Aug 07 00:45:38 see ctate, things don't just go in one ear and out the other on me ;) Aug 07 00:45:59 indeed, young Grasshopper Aug 07 00:55:07 herriojr hmm can't seem to solve the problem right now, but thx for ur help Aug 07 00:58:11 the draw function in the overlay will be called time after time Aug 07 01:34:20 is there an easy and quick way to create a count-down-counter (HH:MM:SS)? **** ENDING LOGGING AT Fri Aug 07 02:59:57 2009