**** BEGIN LOGGING AT Thu Jun 25 02:59:57 2009 Jun 25 03:07:49 _avatar: didn't google link to it in some android-developers blogpost? Jun 25 03:08:55 oh wait no Jun 25 03:08:56 here it is Jun 25 03:09:06 http://mac.softpedia.com/get/Graphics/5-6-5-Filter.shtml Jun 25 03:09:58 I plan on writing a complete blog post on banding, dithering, etc. Jun 25 03:10:07 especially the new tag Jun 25 03:10:22 http://www.telegraphics.com.au/sw/ its also here Jun 25 03:10:37 that seems to be the guys official page Jun 25 03:10:46 it is Jun 25 03:11:01 _avatar: some google skills you've got :) Jun 25 03:13:00 <_avatar> jasta: *sigh* thanks. it's been a long day Jun 25 03:13:13 <_avatar> i just spent about 10 minutes googling around Jun 25 03:14:08 <_avatar> romainguy: in an effort to get of your most-hated-list i just spent a bunch of time optimizing listview layouts in the amazonmp3 listviews. Jun 25 03:14:24 <_avatar> they scroll super fast now Jun 25 03:14:42 oh i think that puts you a long way from his most-hated-list Jun 25 03:14:47 you should see the shit people have done to listview :) Jun 25 03:15:36 _avatar: glad to hear that :)) Jun 25 03:15:52 and since I'm nice I made lists faster to draw in donut Jun 25 03:16:08 really? Jun 25 03:16:10 how so? Jun 25 03:16:28 I implemented opaque invalidates Jun 25 03:16:42 the views system does not draw stuff that will be covered by opaque views anymore Jun 25 03:16:52 oh, in general? not just in listview? Jun 25 03:16:53 and by default a list is 100% opaque when you scroll Jun 25 03:16:56 yes in general Jun 25 03:17:00 that's a big one Jun 25 03:17:00 but it helps listview a lot Jun 25 03:17:02 yep Jun 25 03:17:14 it was fun when all drawing was fucked up because of my changes Jun 25 03:17:17 so no need to set windowBackground @null anymore when your view is opaque? Jun 25 03:17:28 just like today when Gtalk, IM and Market were empty :) Jun 25 03:17:32 jasta: yes Jun 25 03:17:37 there's a new isOPaque() Jun 25 03:17:40 very cool Jun 25 03:17:44 method of view? Jun 25 03:17:46 which by default uses the background drawable Jun 25 03:17:49 but it can be overriden Jun 25 03:17:57 yes it's on View Jun 25 03:18:13 that's very cool :) Jun 25 03:18:15 MapView is considered opaque too now Jun 25 03:18:41 so, are there current plans to take another crack at GL-accelerated SurfaceFlinger? :) Jun 25 03:18:50 <_avatar> awesome indeed Jun 25 03:18:55 well SurfaceFlinger already is accelerated Jun 25 03:18:57 actually i dont even know if it is SurfaceFlinger that would be optimized Jun 25 03:19:05 what would matter would be accelerating the view heirarchy itself Jun 25 03:19:10 and yes we have few ideas in mind Jun 25 03:19:20 we're working on some foundations we need first Jun 25 03:19:28 anything to share? i'm very excited to see how android performance can improve moving forward. Jun 25 03:19:32 but nothing will happen until after Eclair Jun 25 03:19:43 i already heard that San improved the priority stuff a bit so background threads don't slow down the UI as much Jun 25 03:19:44 we're still working on the JIT though Jun 25 03:19:47 yes Jun 25 03:19:49 that's pretty cool Jun 25 03:20:01 after Eclair? oh my. Jun 25 03:20:12 it's a lot of work Jun 25 03:20:35 but it should be awesome when it's there Jun 25 03:20:42 so i've been thinking, if we're going to continue this naming convention, can we have Gelato after Fritter? :) Jun 25 03:21:00 we haven't decided on the F name :p Jun 25 03:21:14 oh? other ideas tossing around other than Fritter? Jun 25 03:21:27 the usual Fudge, Froyo, FunnelCake, etc. Jun 25 03:21:39 Froyo was the best candidate for a while Jun 25 03:21:48 I don't know what's the current top choice Jun 25 03:21:48 <_avatar> what about flaun? Jun 25 03:21:53 Flan Jun 25 03:21:58 I want Fromage Jun 25 03:22:02 <_avatar> oh. right. flan. Jun 25 03:22:11 Fritter i still prefer. Jun 25 03:22:20 i cant stand when people say Froyo :) Jun 25 03:22:25 I hate Froyo Jun 25 03:22:38 hate the word or the desert? Jun 25 03:22:42 the word Jun 25 03:22:45 love the desert Jun 25 03:22:52 good. you are normal :) Jun 25 03:22:55 lol Jun 25 03:23:25 anyway Jun 25 03:23:36 yes, anyway :) Jun 25 03:23:36 and there's still many optimizations we can do inside the view hierarchy Jun 25 03:23:51 reduce the number of layout passes, calls to requestLayout, invalidates, etc. Jun 25 03:23:59 really, everywhere. Jun 25 03:24:01 a big one would be the rewrite of the animation framework Jun 25 03:24:09 rewrite? oh boy. Jun 25 03:24:12 unfortunately there's not that many big optimizations left Jun 25 03:24:20 yeah but much more flexible Jun 25 03:24:23 actually not a rewrite Jun 25 03:24:25 i have very little experience with animations. they have confused me greatly from day 1 Jun 25 03:24:25 a new API Jun 25 03:24:31 yeah Jun 25 03:24:49 the new API would be something like animate(myView, "propertyName", startValue, endValue) Jun 25 03:24:59 thus you could animate arbitrary values Jun 25 03:25:13 with prebuilt interpolators for primitive types, colors, dimensions, etc. Jun 25 03:25:13 like what, textColor? Jun 25 03:25:18 for instance Jun 25 03:25:34 it also makes it a lot easier to create custom animations Jun 25 03:25:38 currently you're on your own Jun 25 03:26:04 for instance the ProgressBar uses an AlphaAnimation to generate a number between 0 and 1 Jun 25 03:26:14 and uses that number to define the current level of progress Jun 25 03:26:26 that's a total hack I had to do because our animation system is so limited Jun 25 03:26:56 i see Jun 25 03:27:11 and doing that will remove a shitload of code from ViewGroup Jun 25 03:27:25 which will help every time we DON'T animate :) Jun 25 03:27:29 which is most of the time :)) Jun 25 03:27:41 yeah i have noticed that there is a lot of code around which deals with animations Jun 25 03:27:47 tell me about it Jun 25 03:27:50 I maintain that stuff Jun 25 03:27:51 big blocks all over drawing code and stuff Jun 25 03:27:57 yeah Jun 25 03:28:23 i have looked at a lot more view code than is healthy, i think :) Jun 25 03:28:33 Cupcake in particular brought a cool optimization Jun 25 03:28:43 which made code much more complicated than begore Jun 25 03:28:47 ahah Jun 25 03:28:49 which? Jun 25 03:28:53 yeah, UI toolkits are always crazy Jun 25 03:29:06 well before having an animation would trigger an invalidate of the whole parent on every frame Jun 25 03:29:15 it now invalidates only the portion of the screen which is going to change Jun 25 03:29:31 which is a bit fucked up because that means the drawing is actually always lagging by one frame Jun 25 03:29:42 (which would not happen with a timer based animation system) Jun 25 03:30:55 how so? Jun 25 03:31:20 i mean, why would a timer-based animation system not do this? what is android's system if not timer-baesd? Jun 25 03:31:32 animations are drawing driven Jun 25 03:31:48 on each draw, we check if we need to draw more, and invalidate Jun 25 03:31:55 with a timer, on each tick you do an invalidate Jun 25 03:31:59 the code is much simpler and cleaner Jun 25 03:32:06 so why was that not done? Jun 25 03:32:06 and also, it does not max out CPU usage Jun 25 03:32:10 no clue Jun 25 03:32:15 it was like that when I started :) Jun 25 03:32:18 hehe Jun 25 03:32:28 it's mostly because it's the straightforward way to do animations Jun 25 03:32:37 and it works beautifully for games or simple animations Jun 25 03:32:41 but it doesn't scale Jun 25 03:33:06 so, are you guys still using perforce internally? Jun 25 03:33:11 nope Jun 25 03:33:15 well Jun 25 03:33:16 mostly Jun 25 03:33:19 git? Jun 25 03:33:21 yeah Jun 25 03:33:45 so why do we see these big auto-import dump commits coming from the development branches (like donut now)? Jun 25 03:34:00 i assumed that was from some perforce -> git glue. Jun 25 03:36:00 well we dump the code in donut Jun 25 03:36:07 then the donut branch goes to master Jun 25 03:36:20 but we're not setup for "real time" merges Jun 25 03:36:24 right, but why is it not a git merge or rebase? why do you fold all teh changes into one big commit? Jun 25 03:36:37 no clue Jun 25 03:36:43 I thought we were doing merges/rebase Jun 25 03:36:44 it makes reading history coming out of google absolutely nightmarish Jun 25 03:36:52 check this out Jun 25 03:36:54 jbq would now Jun 25 03:36:56 know Jun 25 03:37:21 http://android.git.kernel.org/?p=platform/frameworks/base.git;a=commit;h=843ef36f7b96cc19ea7d2996b7c8661b41ec3452 Jun 25 03:37:41 see :) Jun 25 03:37:44 indeed Jun 25 03:37:54 ask jbq :)) Jun 25 03:38:10 (he's on vacation :) Jun 25 03:39:07 any internal friction moving to git? Jun 25 03:39:11 yeah Jun 25 03:39:13 it's a pretty f'n weird tool Jun 25 03:39:23 it's totally not user friendly Jun 25 03:39:33 very powerful Jun 25 03:39:40 but gets in the way all the time Jun 25 03:40:05 i spent a lot of time really learning it and i'm extremely happy now. Jun 25 03:40:14 it's just that until you understand it, it's almost unusable. Jun 25 03:40:17 it is very powerful and the concept is awesome Jun 25 03:40:27 but it is too hard to use Jun 25 03:40:30 i'm getting fancy as hell now, doing interactive rebasing and cherry-picking into other branches all the time Jun 25 03:40:37 yeah me too Jun 25 03:40:41 i love that about it Jun 25 03:40:45 probably my favorite feature Jun 25 03:41:03 but it looks like mercurial does the same, except it makes it easier to learn :) Jun 25 03:41:04 so is that internal friction still happening? or is it pretty settled? Jun 25 03:41:10 it's better Jun 25 03:41:20 but we have 150 git repos Jun 25 03:41:31 and that is sometimes hard to manage Jun 25 03:41:32 we have some amount of that friction. i've been converting the non-believers. Jun 25 03:41:44 we also have people working on donut and some on eclair Jun 25 03:41:52 <_avatar> i really need to get with the times and learn how to use git. i'm just so unmotivated though, for some reason Jun 25 03:41:57 so we end up with a LOT of merge conflicts when we do the automerges donut -> master Jun 25 03:42:01 _avatar: it's so worth it. trust me. Jun 25 03:42:21 romainguy_: well the merge machinery in git's not so unlike other tools. Jun 25 03:42:25 so you'd conflict no matter what Jun 25 03:42:35 and you can use p4merge to resolve it if you want. that's what a lot of folks over here do Jun 25 03:42:48 git mergetool is compatible with p4merge, i mean Jun 25 03:42:58 we have way fewer conflicts to manually resolve with p4 Jun 25 03:43:07 thanks to the p4 resolve -am which was doing a great job Jun 25 03:43:24 I've had many conflicts with git that were definitely not "real" conflicts Jun 25 03:43:37 but git was unhappy about an extra empty line or a couple of whitespaces at the end of a line Jun 25 03:44:13 oops, almost my shuttle stop Jun 25 03:44:18 hmm, i've never noticed that. Jun 25 03:45:22 well many engineers working on two different branches of 150 projects, it's bound to happen :) Jun 25 03:45:31 of course Jun 25 03:46:01 <_avatar> maybe i'll migrate my new project from svn to git. however, i assume i won't see much benefit because i'll be the only dev, and won't be doing a bunch of crazy branching and merging Jun 25 03:47:09 I hate how svn is so linear. Jun 25 03:57:10 I saw HTC Hero Demo Video today. Their new Home Screen, They write their own launcher or they implment something deeper than that. Jun 25 03:57:39 they've developed lots of additional widgets for stuff Jun 25 03:57:52 it's the same homescreen.. they just have more things to customise it with Jun 25 04:01:22 http://som-itsolutions.blogspot.com/2009/06/composite-design-pattern-in-android.html Jun 25 04:01:23 wtf Jun 25 04:01:26 Radix__, are you sure it's the same home screen? Jun 25 04:03:00 romainguy__, I just skimmed that, but um, isn't he just stating the obvious? Jun 25 04:03:22 yes he is Jun 25 04:03:35 haha Jun 25 04:03:55 but he has a long explanation to explain the obvious :) Jun 25 04:04:19 romainguy_, his next blog post will likely detail his research into the subtle fact that everything* extends Object Jun 25 04:04:26 (* - except primitives) Jun 25 04:04:37 romainguy_: Maybe some people can't go outside into the world without having it explained in GoF terminology. Jun 25 04:05:08 whatever floats his boat, I guess Jun 25 04:07:55 GoF fans scream in horror when they hear interface calls take longer :-) Jun 25 04:08:13 ^^ Jun 25 04:08:41 kRutOn: maybe they remember what design patterns really are: common solutions to common problems Jun 25 04:12:31 _avatar: actually, you'd be surprised. Jun 25 04:12:41 git has many features that affect your local workflow, independent of other people. Jun 25 04:12:47 This is a bigger wtf. First video made about ConnectBot: http://www.youtube.com/watch?v=SmncQX4YzKg Jun 25 04:12:52 if you're as anal as i am about clean revision history, you'll love git :) Jun 25 04:14:05 kRutOn: oO Jun 25 04:14:46 kRutOn: maybe you should send the link to the DEA : "this is what happens when you try to use an electornic device while baked" Jun 25 04:15:49 I don't know if drugs fully explains what's going on there :-) Jun 25 04:16:46 kRutOn: seriously ... I'm watching it for the second time ... and I'm still not certain what's going on ... it's like being a rabbit trying to hypnotise a truck Jun 25 04:17:24 kRutOn: you? http://www.youtube.com/watch?v=T7eN93eb6D4&feature=related Jun 25 04:17:51 yes Jun 25 04:18:05 kRutOn: somehow you make more sense than the previous vid Jun 25 04:29:12 sammyF: Hey, how's circuits doing? Jun 25 04:30:15 svm_invictvsyou don't want to know ;) Jun 25 04:30:42 svm_invictvs-: sold 7 times or something like that ;) Jun 25 04:32:49 10 times actually, though the last time was on the 14th Jun 25 04:33:32 hm Jun 25 04:33:58 svm_invictvs: the positive side is that I've got the dev license back in :) Jun 25 05:19:49 "Could not find class 'com.google.android.maps.GeoPoint'' any ideas why ??? Jun 25 05:20:34 Hello. Jun 25 05:20:41 Anyone using JetCreator? Jun 25 07:51:04 how to get button coordinate, such as (x,y) and (width,hight)? Jun 25 08:00:00 * jasta slaps aOa: *NO*! Jun 25 08:00:16 what are you trying to do? Jun 25 08:00:20 (exactly) Jun 25 08:00:37 want to get the coordinate of one button Jun 25 08:01:11 when touching, if it is in the range of the button, it can do something Jun 25 08:02:02 why wouldnt you just install a click handler? Jun 25 08:02:15 and when the user clicks the button (any way), you react Jun 25 08:02:49 i don't know how to do that yet Jun 25 08:02:56 go look at ApiDemos. Jun 25 08:03:29 consider spending lots of time in there and other documentation online learning how to use android before you begin a real project. Jun 25 08:03:37 ...trust me. Jun 25 08:04:55 i do trust you, but i must first implement the function Jun 25 08:05:03 go through the entire NotePad tutorial. Twice, if you need to Jun 25 08:06:00 * jasta sighs Jun 25 08:07:12 very well, thank you Jun 25 08:09:27 it can support to add some buttons to statusbar, and the layout class extends Activity? Jun 25 08:10:09 omg, seriously dude? Jun 25 08:10:19 haha Jun 25 08:10:25 jasta, deep breaths. Jun 25 08:10:46 jasta: what's up? Jun 25 08:13:05 i know it's not good behaviour, but my device has not any hard button, such as home, and so on. what should i do? Jun 25 08:14:04 i'm afraid i cannot help you, sorry. Jun 25 08:14:53 jasta: return back my original question, that's what i want to do Jun 25 08:15:57 i'm also always wondering how to add some activity-like class to statusbar Jun 25 08:16:18 KNY: i'm in my happy place. Jun 25 08:16:24 everything is good here :) Jun 25 08:17:43 you are feeling very happy, but i am feeling very bad Jun 25 08:19:14 you are so smart, so you may be have better ideas Jun 25 08:29:22 Does a ListView throw its rows' layout objects out when they scroll out of screen? Jun 25 08:30:08 ravon: it recycles them. Jun 25 08:30:17 but only if you don't fuck it up by implementing your adapter incorrectly Jun 25 08:30:41 romain's session at google i/o talks about this if you want more detail Jun 25 08:32:04 oh? Downloading... Jun 25 08:32:46 .....eclipse keeps crashing Jun 25 08:32:50 killing me Jun 25 08:34:13 jasta: This one "Turbo-charge your UI: How to Make your Android UI Fast and Efficient" ? Jun 25 08:34:57 i don't remember, did Romain give that one? Jun 25 08:35:21 yup Jun 25 08:35:35 then yes :) Jun 25 08:35:38 Probably it. Getting it either way since it sounded interesting. Jun 25 11:10:33 Hey guys! Jun 25 11:11:19 Does anyone have a good idea how to set some constants differently in release vs. debug builds? Jun 25 11:12:26 I'm not grokking ant enough to see anything obvious, but figure it'll involve ant in some way or another Jun 25 11:12:49 t/j #androidforums Jun 25 11:22:27 Can someone explain http://www.talkandroid.com/android-forums/android-development/1961-new-android-development.html to me? :) Jun 25 11:27:45 riceri: you mention buttons Jun 25 11:27:55 but dont mention them existing inn any layouts Jun 25 11:28:26 I suggest using a ListActivity for the first scene Jun 25 11:28:35 when you click on something pop up another activity with the info Jun 25 11:28:41 that way hitting back button works as expected Jun 25 11:31:09 ok, i will check up on ListActivity thanks Jun 25 11:32:56 http://www.anddev.org/listactivity_-_functionality-t20.html, this might help Jun 25 11:33:13 what error are you getting on your buttons? Jun 25 11:33:34 you've added a listener to them? Jun 25 11:34:31 It is when i try to add listeners to them that i get error if i havn't loaded that layout Jun 25 11:35:34 I think the biggest problem i have is that i don't understand how the views work kinda Jun 25 11:36:09 riceri: check out the API Demos app included with the sdk Jun 25 11:36:18 its a GREAT start for anything Jun 25 11:36:20 prob gonna have to give up on android personally Jun 25 11:36:29 has too many unexplained performance issues i cant get around Jun 25 11:36:46 id rather dev for JP8 or JP9 Jun 25 11:37:01 blau-mikeDG: i got each view working as i want it is the changing views that is the problem Jun 25 11:37:28 my latest one that ive just discovered in ALL my apps is that uif you press the menu key you will often randomly lose 20FPS on your surface view which is unrecoverable til you retart the activity Jun 25 11:39:52 Like if i load my layout main and sets the listeners that that view needs it is ok and works as i want, the same if i put up the status view. But i can't find a good way of changing view from main to status and then back Jun 25 11:41:43 your status view is some popup information thingy? Jun 25 11:42:42 yea, kinda. Jun 25 11:45:21 I want something like mytracks with 3 "screens" Jun 25 11:48:56 I wounder why i didn't find anddev.org when i was googeling, nice site :) Jun 25 13:33:55 romainguy_, here? Jun 25 13:34:05 romainguy is eating lettuce Jun 25 13:35:47 http://b.android.com/1076, why's that declined? Jun 25 13:55:59 Anyone know how to get the cursor to start in the upper left hand corner in a EditText box? Jun 25 14:07:51 romain is a tyrant Jun 25 14:17:16 I'm using showDialog() to show a managed dialog but it's not restored during orientation change. logcat yells "WARN/PhoneWindow(1922): Previously focused view reported id 2131427361 during save, but can't be found during restore." - I'm doing something wrong, right? Jun 25 14:17:48 doing that from a activity inside a tab activity Jun 25 14:52:23 Is there a way to delete character by character (delete key, backspace) in sqlite3 terminal mode? Jun 25 14:52:26 someone has a suggestion for a good 'android' dev book? i had a look at several tutorials in the net, but could only find old ones not supporting the newest SDK (and not even 1.1) Jun 25 14:52:43 I am tired of scraping queries just because of one mistake :( Jun 25 14:54:21 commonthingy books ... one sec.. don't remember the name, but I have a link Jun 25 14:54:46 bytecode: http://commonsware.com/ Jun 25 14:54:53 bytecode: supposed to be good Jun 25 14:55:54 bytecode: that one will definitely get you off the ground Jun 25 14:56:48 Anybody played with the JetPlayer? Jun 25 15:01:52 sammyF: thanks a lot Jun 25 15:02:14 sammyF: i suggest it also works with the newest sdk? Jun 25 15:02:36 you mean you "suppose" ? Jun 25 15:03:00 err yes :) Jun 25 15:03:13 sorry, not a native speaker Jun 25 15:03:39 you'll get updates to the books for a full year, so I guess it's about 1.5 now Jun 25 15:03:49 I don't have them myself sadly Jun 25 15:04:08 website says: # Revamped to support the Android 1.1r1 SDK Jun 25 15:04:10 need to wait for my ~paycheck~ in a few weeks before getting them Jun 25 15:04:44 bytecode: anyway, a lot of what was true for 1.1 is true for 1.5 too Jun 25 15:05:07 yep Jun 25 15:05:17 but i realzied this isnt true for m5 <-> 1.x Jun 25 15:05:18 ;-) Jun 25 15:05:26 thats why im asking Jun 25 15:06:18 things are backwards compatible now. Jun 25 15:11:34 I am optimizing my background service by using the AlarmManager like jsharkey suggested in his I/O talk. Its working fine, however I need to stop the AlarmManager later on when the app is started again. How can I do this? The only way I see is by am.cancel(), but I would need to save the PendingIntent for it. Jun 25 15:14:09 And saving that PendingIntent seems useless, ass my App is shut down (and maybe dropped out of memory) as soon as the service starts. Jun 25 15:39:30 I found it out for myself. It doesnt need to be the same PendingIntent object, just needs to have the same class. Jun 25 16:01:17 Hey, if you build apps, Google takes 30%. Does T-Mobile take a cut? Jun 25 16:02:31 sammy123, most of that 30% goes to t-mobile Jun 25 16:02:56 sammy123, and that's only if you sell them through google's Android Market (which you are under no obligation to do) Jun 25 16:03:31 what about if you gave away your app for free and want to have it on the market? Jun 25 16:04:01 what's 30% of 0 Jun 25 16:04:14 what martin___ said Jun 25 16:05:15 lol, I just happened to check in during this conversation, thanks for a laugh Jun 25 16:05:25 howdy how Jun 25 16:05:31 martin___: well another possibility would be, that youve to pay then :P Jun 25 16:05:43 question of the day: does anyone have an example of SearchManager usage ? Jun 25 16:05:47 bytecode, no, because that's not how it works :) Simple percentage. Jun 25 16:05:59 dang Jun 25 16:06:01 ok :) Jun 25 16:06:07 I've seen the one from ApiDemo, but can't manage to setup a mini-project which does that Jun 25 16:06:32 the search UI is never proposed, even though onSearchRequest gets called Jun 25 16:06:48 I feel like I'm missing the UI part ... but can't find where Jun 25 16:07:25 if you can't see any buttons or an input box then I'm fairly sure that the UI is missing Jun 25 16:07:47 martin___: any pointer on how do I add it ? Jun 25 16:08:07 I've changed the manifest file, created the res/xml/searchable.xml definitions, and so on Jun 25 16:08:17 I was being sarcastic Jun 25 16:08:25 sorry Jun 25 16:08:37 well... I'll keep quiet :) Jun 25 16:08:41 no flamming Jun 25 16:08:44 zen thing Jun 25 16:08:45 :) Jun 25 16:08:50 but... if the code example references some objects Jun 25 16:08:51 lol Jun 25 16:08:54 a button, a textview Jun 25 16:09:14 then just add them anywhere like normal and give them the right names? :p Jun 25 16:10:03 * didou is being a zen master today Jun 25 16:11:18 KNY - but if I want to sell through the Google marketplace, does anyone know if T-Mobile takes a cut on top of the 30% to Google? Jun 25 16:15:21 sammy123, you get 70%. Jun 25 16:16:08 THANKS Jun 25 16:24:28 question: I want the user to take a picture, input some text and then send that data to a webserver I control. Is FTP the right tool for this? Jun 25 16:25:11 easier to make validation as a web service Jun 25 16:25:34 so I'd just receive it through HTTP post, heh Jun 25 16:26:04 can you send that much data through an http post? Jun 25 16:26:34 sure, if the server is configuration properly Jun 25 16:26:44 *configured Jun 25 16:27:07 that's the thing, I'm not sure what assumptions to make about the hosting at this pont Jun 25 16:28:06 how would you configure the FTP so people couldnt just upload everything they wanted to though Jun 25 16:28:58 just seems easier (to me anyway) to create a PHP script to validate and receive the file, store it in the correct directory etc.. much more flexible Jun 25 16:29:20 I guess they could, but on the server end I would be expecting a zip file in a certain format Jun 25 16:29:49 so you'd have to create some sort of post-upload script that validated it, I guess Jun 25 16:30:15 well the data would have to be unpacked to be displayed Jun 25 16:31:14 right, well, the question was "is FTP the right tool", which I think is pretty hard to answer... in my opinion it just seems insecure *shrugs* Jun 25 16:32:08 well I think http would be just as insecure Jun 25 16:32:19 and by right tool I mean easiest ;) Jun 25 16:32:46 I was wondering if Android had something built in for this, really. Jun 25 16:33:04 magic transfer to server? :p Jun 25 16:33:34 A "do everything" button Jun 25 16:33:39 I'm a PHP developer, so I know the pitfalls of a HTTP upload, but PHP is fairly flexible, so you could create a pretty good validation script, hehe Jun 25 16:33:53 hence why I think it's "safer" Jun 25 16:34:18 I guess FTP would work aswell, you could run a post execution script in.. well, anything really.. PHP, Python.. heh Jun 25 16:34:26 someone else will be doing the web end, his experience is mostly in ASP so we'll probably be doning .NET Jun 25 16:34:33 You should in general not assume that anything except HTTP will work Jun 25 16:34:57 carrier policies on traffic vary a lot Jun 25 16:35:01 good point @morrildl Jun 25 16:35:14 some may shut off FTP, for instance, or give QoS priority to HTTP Jun 25 16:35:22 it's generally safest to just use HTTP Jun 25 16:39:37 Hey guys Jun 25 16:40:01 could anybody help me for a sec? Jun 25 16:40:24 like move a couch? Jun 25 16:40:31 almost:) Jun 25 16:41:09 i've problems with setting a onLongClickListener on a MapView Jun 25 16:42:10 have you tried yelling to it? Jun 25 16:42:16 and calling it names? Jun 25 16:42:26 that only works on wives Jun 25 16:42:46 i cried, but it didn't show sympathy;) Jun 25 16:43:07 mapView.setOnLongClickListener(new View.OnLongClickListener() { Jun 25 16:43:19 public boolean onLongClick(View v) { Jun 25 16:43:20 stop Jun 25 16:43:28 do you know how to pastebin? Jun 25 16:43:28 pastebin works better Jun 25 16:43:28 mapView.getController().zoomOut(); Jun 25 16:43:41 how does that work? Jun 25 16:44:22 anyone have a slight idea of how mytrack works? Jun 25 16:44:34 http://pastebin.com/ @ siwica Jun 25 16:44:57 ok, thanks! Jun 25 16:45:12 i postet it on anddev.org already Jun 25 16:45:13 http://www.anddev.org/longclicklistener-t6796.html Jun 25 16:45:33 that's for the code... Jun 25 16:46:09 firstly, are you 100% sure it doesn't get called Jun 25 16:46:33 or more specifically, anyone knows how to draw many points(and lines that follow ur location as you move) on the map overlay effienctly, something that you see in MyTrack by googole? Jun 25 16:46:34 have you tried throwing an error just to see Jun 25 16:48:02 i've inserted a Log.i("Test", "Test) in the Listener Jun 25 16:48:27 it never appeared in the LogCat though Jun 25 16:48:43 so i figure it never got called Jun 25 16:50:04 that's why I throw errors, I know if my code was called. Because it crashes horribly ;) Jun 25 16:50:55 So the next question, are you sure that .setOnLongClickListener is being called? Jun 25 16:51:18 I am actually Jun 25 16:51:39 I inserted a .isLongClickable before and after Jun 25 16:52:01 and it showed me false/ true respectively Jun 25 16:52:07 Third question, is that the right mapview? Jun 25 16:52:25 i'm just using one Jun 25 16:53:00 i figured it could be connected to the overlays maybe?! Jun 25 16:53:22 something else may be intercepting the long click Jun 25 16:53:25 so that the mapView is not receiving any touch events? Jun 25 16:53:29 yeah Jun 25 16:54:21 can you slap a dummy listener on them, to see if they are getting it? Jun 25 16:54:23 Probably my overlay class Jun 25 16:54:41 Ok, I'm gonna try Jun 25 16:54:44 just a sec Jun 25 16:57:25 Can anyone give me pointer to Android filesystem? Jun 25 16:57:26 As in the structure of storing. For ex. DBes are stored /data Jun 25 16:58:56 On my overlay class I can just overwrite onTouchEvent Jun 25 16:59:22 Do u know what MotionEvent is for LongClicks? Jun 25 16:59:53 no clue here Jun 25 17:06:46 why would adb not be able to find my running emulator? Jun 25 17:09:00 Is there a description how to implement new widgets (and how to make them usable via XML resources?, ...) Jun 25 17:13:48 @yacc_ : I'm not sure if I'm following you. You can inherit from any widget and then refer to the package in your XML. For example, if you created a special button in package com.yacc_.testing.widgets called AwesomeButton then you could refer to that in the XML with com.yacc_.testing.widgets.AwesomeButton Jun 25 17:14:06 whaledawg, yeah, I discovered it, ... Jun 25 17:14:17 Any google persons here? Jun 25 17:14:45 but it causes all sorts of visual building issues if you use com.yacc_.testing.widgets.AwesomeButton in a project like com.mikedg.something Jun 25 17:15:21 visual building issues? Jun 25 17:15:29 that visual gui builder in eclipse Jun 25 17:15:45 i cant get it to work if I refer to any widgets outside of my project Jun 25 17:15:47 Ah, well, I'm not exactly an eclipse user ;) Jun 25 17:15:53 oh Jun 25 17:16:12 blau-mikeDG, let me guess, no way to make the gui builder work without eclipse? Jun 25 17:16:14 it either displays a nullptr exception and a grey screen or somehting else and a grey screen Jun 25 17:16:24 nope, it's an eclipse plugin Jun 25 17:16:44 there is something else though floating around on the web Jun 25 17:16:52 there is an online one Jun 25 17:16:53 that you might find useful i forget what its called though Jun 25 17:16:55 Well, the question is, does it work better than the standalone java designer? Jun 25 17:17:00 ok, i dont know how to figure out if my overlay class is reveiving the longClickEvent Jun 25 17:17:17 blau-mikeDG, well, I never grasped the usage of that java applet thing. Jun 25 17:17:18 siwi: set a break point in the longclickevent Jun 25 17:17:23 and see if it pops out Jun 25 17:18:00 I can only override onTap and onToucghEvent Jun 25 17:18:14 ok, I#ll try this Jun 25 17:21:44 Ok it doesn't Jun 25 17:22:02 So obviously my MapView is not receiving the Events Jun 25 17:22:29 The question is how to change this Jun 25 17:24:30 maybe subclass the mapView Class and overriding of onInterceptTouchEvent(MotionEvent ec) would help?! Jun 25 17:24:50 anybody experiences with that? Jun 25 17:24:54 mapview doesnt have a setLongTouchListener? Jun 25 17:24:57 method Jun 25 17:26:13 it does Jun 25 17:26:28 but it never gets called in my case Jun 25 17:27:08 http://www.anddev.org/longclicklistener-t6796.html Jun 25 17:27:16 there is the code i used... Jun 25 17:29:19 any idea? Jun 25 17:31:17 <_annex_> hi all, having trouble scaling down an ImageView, when using "scaleType:fixStart", my 500x100 image is scaled down but the layout size is still the original height (of 100) Jun 25 17:31:23 <_annex_> am I using the wrong scaleType? Jun 25 17:31:32 <_annex_> i've tried all of them Jun 25 17:34:35 Anyone know the proper way to set the categories of a listview in xml? Jun 25 17:36:27 http://android-developers.blogspot.com/2009/06/introducing-android-15-ndk-release-1.html Jun 25 17:39:32 hugh! Jun 25 17:41:09 <_annex_> found it! android:adjustViewBounds="true" Jun 25 17:41:46 Can anyone help me with my listview problem? Jun 25 17:43:20 and my mapView one? Jun 25 17:44:01 lol Jun 25 17:45:11 ^^ Jun 25 17:47:14 nm, I figured my prob out Jun 25 17:48:20 I'm having an issue with simpleCursorAdapter. I have a relativeLayout that is ed in my main RelativeLayout. the layout is the one I am attatching the list-adapter to. for some reason, it is making a new list object out ofthe entire layout though, not just the included one. Jun 25 18:05:54 anybody who could help me with my onclicklistener Jun 25 18:08:03 yea Jun 25 18:08:08 I just looked at your code Jun 25 18:08:20 I think you might be declaring things wrong Jun 25 18:08:23 one sec Jun 25 18:10:46 anyone know how to prevent simpleCursorAdapter from making your entire layout a list item? Jun 25 18:12:57 ok, thx Jun 25 18:13:00 siwica: I just posted a response to your code Jun 25 18:13:00 I Jun 25 18:13:07 check it out Jun 25 18:13:13 ok, i will Jun 25 18:13:20 thanks for now!! Jun 25 18:13:26 np Jun 25 18:13:43 just make sure to declare those first 2 lines of code outside your onCreate method Jun 25 18:14:05 inside rather Jun 25 18:14:18 then the rest of the code goes outside onCreate Jun 25 18:15:06 Actually jpe, won't that have listener declared out of scope? Jun 25 18:15:24 or do you mean inside the activity class, outside of create? Jun 25 18:19:11 yea, inside activity but outside of onCreate Jun 25 18:19:16 :) Jun 25 18:34:56 does anyone know how to limit simpleCursorAdapter's layout that it will turn into a list? Jun 25 18:40:42 anyone here ever built an android browser plugin? Jun 25 18:48:10 can anyone tell me what is wrong with this code? Jun 25 18:48:12 cat.setAdapter(new ArrayAdapter(this, android.R.layout.simple_list_item_1, CATEGORIES1)); Jun 25 18:48:24 cat is the ListView I created Jun 25 18:49:37 LogCat tells me that I need an id attribute that matches android.R.id.list Jun 25 18:49:45 but I have one and cat is it Jun 25 18:54:47 sry if I spam but maybe there's someone online now who can comment on it Jun 25 18:54:58 I'm using showDialog() to show a managed dialog but it's not restored during orientation change. logcat yells "WARN/PhoneWindow(1922): Previously focused view reported id 2131427361 during save, but can't be found during restore." - I'm doing something wrong, right? (doing that from a activity inside a tab activity) Jun 25 18:55:45 I see that the Contacts app in 1.5 suffers from the same thing - dialogs created in tab activities are not restored on orientation change Jun 25 18:56:02 so maybe it's not something that I'm doing wrong - they beast is just broken? Jun 25 19:03:14 tauno, yeah, child activities are handled differently in rotations, as best I can figure Jun 25 19:03:39 tauno, you can create the dialog on the containing activity if you want (getParent()) but that's sloppy, IMO Jun 25 19:04:57 KNY, that's the onlyquick workaround that I could think of too.. but didn't want to do it before it's confirmed that it's not my fault that it's not working in childs Jun 25 19:05:27 and I totally agree that this is sloppy :/ Jun 25 19:06:15 KNY: my simpleCursorAdapter is making the enitre layout into a list item. How do i limit it to only the layout i give it? Jun 25 19:06:53 What i mean is, my relative layout I'm passing to the adapter is embedded in another layout Jun 25 19:07:07 but the adapter is also grabbing that other layout for each element of the list Jun 25 19:07:12 which is bad. Jun 25 19:08:29 can someone give me directions on how to parse OWL files on the android? I've written a simple XML Parser using SAX but I find it difficult to work with the namespaces introduced with the OWL file. Any suggestions? Jun 25 19:09:29 meanburrito920_, why did you ask me that? I've seen you ask it, you don't need to highlight me Jun 25 19:09:40 if someone knows the answer or has time to look at it, they will. Be patient Jun 25 19:12:09 android makes me feel like an idiot. I thought I knew stuff, but I dont :) Jun 25 19:13:25 meanburrito920_: something is fishy, that shouldn't happen Jun 25 19:13:57 show some code in pastebin and maybe we can help (layouts, adapter construction, etc) Jun 25 19:15:25 http://pastie.org/524578 Jun 25 19:16:00 zhobbs: inside the is a RelativeLayout with a two textViews and an ImageView. Jun 25 19:16:10 The entire thing is imbedded in a TabWidget Jun 25 19:16:26 The stuff works fine by itself Jun 25 19:16:34 but when I include it, it goes nuts Jun 25 19:16:40 ok, where's the java where you create the simple cursor adapter Jun 25 19:17:25 http://pastie.org/524581 Jun 25 19:17:58 zhobbs: the only thing i can think of is that the simple cursor adapter automatically sets the view to the view I pass it Jun 25 19:18:18 which means that the external view goes away Jun 25 19:18:20 what is layout? Jun 25 19:18:36 the layout is the file. here, lemme pastie that Jun 25 19:19:24 zhobbs: http://pastie.org/524586 Jun 25 19:20:38 so layout = R.layout.clip_relative_layout ? Jun 25 19:20:49 yes Jun 25 19:21:24 In retrospect, it would make sense that I would have to set my external layout somewhere, but I'm not sure how I would do that... Jun 25 19:22:34 and you're saying that each list row has this whole layout: http://pastie.org/524578 ? Jun 25 19:23:03 has anyone an idea what AbsListView.html#setScrollIndicators(View, View) is supposed to do? there's no javadoc and when I tried to set it on a listview, nothing changed as far as I can tell (there's still the standard scrollbar visible so it's not replacing that with something) Jun 25 19:23:47 zhobbs: yes. Jun 25 19:24:29 something isn't right then :) I'm pretty familiar with the source for SimpleCursorAdapter it inflates the layout that you pass in... Jun 25 19:24:49 and the inflater doesn't know where else the layout may have been included Jun 25 19:25:20 zhobbs: right, but nowhere do i set the external Layout that the internal layout is imbedded in. when I try it it gives me errors. Jun 25 19:25:30 through setCurrentView Jun 25 19:25:47 *setContentView Jun 25 19:26:23 zhobbs: how would set that? Jun 25 19:26:28 the scroll indicators are only used in AbsListView.updateScrollIndicators() but that's not used anywhere as far as I can tell from the source Jun 25 19:26:42 zhobbs: because I'm starting the Layout as a new activity Jun 25 19:26:53 under the TabWidget Jun 25 19:27:26 meanburrito920_: not sure what exactly you mean...here are a couple of tips: remove the external layout and see what happens; inspect the screens with heirchyviewer Jun 25 19:27:30 wierd... I just ran it again and now the external Layout isn't showing up at all Jun 25 19:28:04 :) Jun 25 19:28:31 zhobbs: I mean that the TabHost starts the activity with startActivity(Intent i) and then the activity just creates the simple cursor adapter and links it up Jun 25 19:29:40 I never anywhere say to set the layout to the search_layout Jun 25 19:30:37 aha, it's used in ListView, not abslistview itself.. ok.. but I still can't get the indicators to show up :/ Jun 25 19:31:47 the indicators are views you create yourself Jun 25 19:32:00 you are responsible for their layout, etc. Jun 25 19:32:57 just throwing an ImageView at them is not going to cut it then? :) Jun 25 19:33:53 aha, sry Jun 25 19:33:58 yeah, dumb me, got it now Jun 25 19:34:37 thought they are somehow appended to the right placesin the layout magically (: Jun 25 19:34:45 the scroll indicators are artifacts from pre-M3 releases Jun 25 19:35:00 I wish I had removed them Jun 25 19:35:19 can you use android sdk with eclipse galileo? Jun 25 19:35:24 yes Jun 25 19:35:29 I did yesterday Jun 25 19:38:42 romainguy_, any suggestions for workarounds for the kinky ListView scrollbar then? smoothScrollbar="false" is also looking ridiculous when you have really different sized list rows :( Jun 25 19:38:43 oh cool, i might go download it now then Jun 25 19:39:27 yeah, I might try that new eclipse out too...mine was crashing all night last night Jun 25 19:39:37 everytime it did code completion it would freeze Jun 25 19:40:06 ouch Jun 25 19:40:10 tauno: it's that or no scrollbars Jun 25 19:40:28 or don't use a listview Jun 25 19:41:39 romainguy_, that's why I was looking at scroll indicators - no scrollbar and just scroll indicators would work out I guess.. but then again no other app does that and there are no built in scroll indicators so no matter what I put there, it'll look out of place :/ Jun 25 19:43:51 any plans for implementing a kind-of-listview-thingie that precalculates all of its childrens heights so it can then show a "correct" scrollbar? :) Jun 25 19:44:01 it's called a ScrollView Jun 25 19:44:43 tauno: you could probably create an interface for your adapter to use, and then a custom listview that manages the scrollbar Jun 25 19:45:10 zhobbs: without knowing the heights of all the children there's not much you can do Jun 25 19:45:45 romainguy__: it's possible your adapter would know the heights of all the children for simple lists Jun 25 19:45:56 I guess Jun 25 19:46:01 kind of strange though Jun 25 19:46:07 to do that you need to measure the children Jun 25 19:46:13 and it's called a ScrollView :) Jun 25 19:46:38 romainguy_, yeah, right :) Jun 25 19:47:05 heh, a scrollview with 1000 views in it would be fun to use :) Jun 25 19:47:31 zhobbs, , been there, done that.. it's really fast once you measured everything.. Jun 25 19:48:12 the measuring itself (texts measured using staticlayouts for my case) takes ages and n+1 GC cycles Jun 25 19:48:13 lots of memory though right? Jun 25 19:48:42 but once it's measured, scrolling throught the list was lightning fast for me :) Jun 25 19:49:14 btw, romainguy_ , http://b.android.com/1076, why's that declined? Jun 25 19:49:16 the scroll bar in the app details screen of the market is funny Jun 25 19:49:16 tauno: I said it, but I'll say it again; you scare the shit out of me Jun 25 19:49:31 haha Jun 25 19:49:53 tauno: it's fixed, at least if you ellipsize Jun 25 19:53:22 romainguy_, well.. do you have any alternatives for the damn monster that I'm trying to build? :P I DO need to show a freaking list of 1-to-(n+1) lined texts pieces in one scrolling container of sorts that can hold up to n+1 of such text items.. I tried scrollviews - too damn slow to measure everything, I tried listviews with smooth scrollbars - not usable and totally broken in such cases. I also tried "not smooth" scrollbars - kind of be Jun 25 19:53:22 tter than smooth scrollbars but still feel really kinky once you have list rows that are way larger than the screen height Jun 25 19:53:58 don't show the scrollbars? Jun 25 19:54:04 so I'm stuck in a loop switching from scrollview to listview and from TextViews to custom text drawing Jun 25 19:54:18 romainguy_, allrighty then :) Jun 25 19:54:29 or come up with another UI design :p Jun 25 19:54:55 yeah, another UI approach might make sense... Jun 25 19:55:15 yeah.. I'm just a coding monkey.. UI design is not something I can influence that much, sadly Jun 25 19:56:22 but I might squeeze the "can we not show scrollbars at all.. pretty please?" request into the design :) Jun 25 19:57:28 UI designes also have to work with the technical constraints Jun 25 19:57:31 designers Jun 25 19:58:23 also true Jun 25 20:02:40 hmm... "device chooser" dialog from eclipse plugin keeps growing horizontaly with each iteration Jun 25 20:02:47 is there a fix for this? Jun 25 20:03:48 " tauno: it's fixed, at least if you ellipsize" <- editText.setHint("Lorem ipsum dolor sit amet, consectetur adipiscing elit."); editText.setEllipsize(TextUtils.TruncateAt.END); is not working (the hint is still more than one line) Jun 25 20:04:18 tauno: ... Jun 25 20:04:23 tauno: not in cupcake Jun 25 20:04:46 doh.. Jun 25 20:07:07 would be nice if the comment would say that in the issue tracker.. instead of declining it :) but who am I to judge :) Jun 25 20:07:29 romainguy_: how do i do something like mytrack where, it draws out your track. do i have to draw all the points over and over again during onDraw? Jun 25 20:09:05 you can draw them just once into a bitmap for example.. and then just redraw it in ondraw. but I'm sure that's just the stupidest solution :) Jun 25 20:09:31 but then wat happens when they user zoom in or out Jun 25 20:09:47 render all the points over then? Jun 25 20:09:52 then redraw them? Jun 25 20:10:01 anyway, I'm sure there are more elegant ways of doing it :) Jun 25 20:10:05 don't listen to me Jun 25 20:10:16 yea trying to find out how google MyTrack does it Jun 25 20:15:45 is their a specific Android NDK channel? Jun 25 20:24:21 my tolerance for 5 hour energy is growing....not sure where to go from there... Jun 25 20:24:55 6 hour energy? Jun 25 20:25:01 I wish Jun 25 20:25:19 Are you talking about the energy drinks? Jun 25 20:25:31 yeah Jun 25 20:25:38 energy shots really Jun 25 20:26:08 yea, I've onlt had Red Bull and Monster, never tried any of the * hour shots Jun 25 20:26:48 I like them...the sugar from the big drinks kills me Jun 25 20:27:15 All the shots have is vitamin B right? Jun 25 20:27:46 nah, they have caffiene too Jun 25 20:28:22 oh ok Jun 25 20:33:23 zhobbs: http://www.thinkgeek.com/caffeine/candy/287d/ Jun 25 20:34:42 maybe that's the ticket Jun 25 20:35:06 I can't believe this is legal: http://www.aonevitamins.com/caffeine.htm Jun 25 20:37:08 "Half the adults in the US have a consumption rate of over 300mg of pure caffeine" Jun 25 20:37:14 what the Jun 25 20:37:21 that's 10 cans of red bull a day Jun 25 20:37:27 hehe Jun 25 20:37:28 lol Jun 25 20:37:43 I love my pure caffiene Jun 25 20:38:04 none of that silly liquid to dilute your energy drinks eh? Jun 25 20:38:11 pure energy yes please Jun 25 20:38:53 imagine if we didn't have to sleep Jun 25 20:40:35 I'm thinking that if you used that 100% pure caffeine powder then the expression "i'll sleep when I'm dead" will be entirely possible, but the "when I'm dead" part will come much, much sooner Jun 25 20:40:36 :D Jun 25 20:40:51 haha Jun 25 20:41:17 I wonder what pure caffiene tastes like? Jun 25 20:41:44 $12.95 worth of "I wonder"? Jun 25 20:41:53 hahaha Jun 25 20:42:12 you can always give it to your goldfish to make sure it's good before trying it Jun 25 20:43:11 I would donate it to the elderly, they make good test subjects Jun 25 20:44:19 "A side effect of caffeine is that it causes more frequent urination." Jun 25 20:44:22 reconsider Jun 25 20:46:34 or buy a mop Jun 25 20:47:32 lol, they are wearing adult diapers anyways Jun 25 20:48:33 The screen on the g1 is 320x480, right? Jun 25 20:49:34 whaledawg: yes. Jun 25 20:49:45 nwo that we have native code are there any alternative super lean xml parsers? Jun 25 20:49:55 that I can expect someone to implement that is. Jun 25 20:50:14 <_Auron_> 'now that we have native code'? Jun 25 20:50:25 "expect someone to implement"? :D Jun 25 20:50:48 i suspect i'm not the only one who hates sax. Jun 25 20:52:15 I've only used jdom Jun 25 20:52:36 but that uses saxbuilder if you're making a new xml tree anyway Jun 25 20:54:55 I must be a n00b, I use Eclipse for everything Jun 25 20:58:21 unix_lappy, were you referring to the native development kit? Jun 25 20:58:38 I only just heard about it via ed burnette's twitter page... Jun 25 20:59:17 http://blogs.zdnet.com/Burnette/?p=1284 Jun 25 21:00:35 most interesting Jun 25 21:02:14 how would I find out what db a cursor is querying? Jun 25 21:02:39 damnit, too many Android tabs for Safari Jun 25 21:03:36 or how would i make a copy of a cursor> Jun 25 21:05:09 clone? Jun 25 21:09:28 srm, no such method Jun 25 21:13:29 Why aren't FPUs integrated into embedded systems? Too expensive? Too power consuming? Jun 25 21:14:12 Or do they require an expensive surrounding architecture? Jun 25 21:27:29 well, clone is a java method from class Object. for this your class must implement the Clonable interface. Though I wonder how this will help you. Jun 25 21:27:49 @ meanburrito920_ Jun 25 21:28:22 why don't you know what db your cursor is pointing at? Jun 25 21:29:34 srm, i do, thats what i used to get around the problem Jun 25 21:31:07 I thought that was the problem. So know you need a copy of the cursor as new task? Jun 25 21:32:57 then have a look if clone() is what you want. Jun 25 21:33:12 clone() makes a copy of the object you apply the method to Jun 25 21:59:59 nice Jun 25 22:00:09 a native C sdk Jun 25 22:00:42 question: Can an XML file include another XML file? Jun 25 22:01:48 whaledawg: that question made my brain crash Jun 25 22:02:00 whaledawg: yes, through Jun 25 22:03:29 Michael Jackson died today... Jun 25 22:05:39 what? Jun 25 22:06:15 ah Jun 25 22:06:34 he had a heart attack Jun 25 22:08:18 did anyone here get the unlocked g1 as an android dev? Jun 25 22:08:42 you mean the ADP1? Jun 25 22:08:47 i have one yes Jun 25 22:09:30 was it a pain? Jun 25 22:09:33 I have all three Jun 25 22:09:38 no, it's easy Jun 25 22:09:40 all 3? Jun 25 22:09:50 adp1 dev magic Jun 25 22:09:57 or rather g1, dev, and magic Jun 25 22:10:18 I can send you a set of files I used for it Jun 25 22:10:21 and point you to a link Jun 25 22:10:27 it's fairly straight forward Jun 25 22:10:54 wait, I mean the actual hardware Jun 25 22:11:36 whaledawg: the corners are rounded Jun 25 22:11:54 but if somebody hurled my adp1 at me i imagine it being quite painful Jun 25 22:12:00 lol Jun 25 22:12:16 whaledawg: what exactly are you asking? Jun 25 22:12:40 I was asking if anyone had gotten the dev version of the g1, which I think you can buy from google Jun 25 22:12:50 if you dont' want a Tmobile contract Jun 25 22:13:05 yes, I got one of those, it's called an adp or dev phone Jun 25 22:13:25 has anyone seen stats indicating how widely 1.5 is deployed vs. 1.1? Jun 25 22:13:35 i need to decide whether i set my minsdk version to 2 or 3 Jun 25 22:13:42 I think 1.1 is everywhere now Jun 25 22:13:50 1.5 you mean? Jun 25 22:13:55 1.5 is soo much better Jun 25 22:13:56 yes Jun 25 22:14:10 all new phones are updated in 48 hours Jun 25 22:14:13 blkhawkz: depends, it completely broke my application with a bug in it ;) Jun 25 22:14:22 so I have to wait for Donut Jun 25 22:14:24 and most of the old ones should be updated by now Jun 25 22:14:42 encountered a multicast bug? Jun 25 22:14:51 i am running some crazy frankenstein version atm Jun 25 22:14:53 me? no Jun 25 22:15:13 just wondering :) Jun 25 22:15:28 mine was a install/uninstall for applications with sharedUserId Jun 25 22:16:19 so don't use sharedUserIds until Donut ;) Jun 25 22:16:30 I'll remember that :) Jun 25 22:16:47 is there a place that describes the XML schema so I can look up that include? Jun 25 22:17:34 whaledawg: XML schema of what? Jun 25 22:18:03 well in this case include, but I thought they might have one web page that documents it all Jun 25 22:22:23 there's no schema Jun 25 22:22:29 because it depends on the Java code Jun 25 22:22:33 here are the tags you can use: Jun 25 22:22:50 (where class name is the name of a java class that extends view) Jun 25 22:22:55 I just want an explanation of include Jun 25 22:22:58 Jun 25 22:23:00 Jun 25 22:23:03 Jun 25 22:23:04 and that's it Jun 25 22:23:31 whaledawg: http://www.curious-creature.org/2009/02/25/android-layout-trick-2-include-to-reuse/ Jun 25 22:23:53 lol yes, that's the only reference to it I've found and it's not working Jun 25 22:23:56 but thanks Jun 25 22:24:04 I'm pretty sure it works :) Jun 25 22:24:18 I'm sure it works, for him Jun 25 22:24:23 him == me Jun 25 22:24:23 but it's not working for me yet Jun 25 22:24:42 sucker, now you have to answer questions Jun 25 22:24:49 zinx: damnit, that didn't work. Jun 25 22:24:55 E: Failure at line 4 Jun 25 22:24:55 what is the layout element? Jun 25 22:25:08 assert_getprop("ro.bootloader")== "1.33.2004" BLAH BLAH BLAH Jun 25 22:25:12 is that necessary? Jun 25 22:25:17 installation aborted ._. Jun 25 22:25:22 vol_: oh, damn, you need the new SPL Jun 25 22:25:26 ffs. Jun 25 22:25:34 whaledawg: yes, how else would you indicate what you want to include? Jun 25 22:25:40 thanks whaledawg, that's helpful Jun 25 22:25:42 zinx: this is a stock unrooted device. Jun 25 22:25:43 vol_: i dunno what the url to that is Jun 25 22:25:50 here's hoping this thing isn't boned ._. Jun 25 22:25:52 vol_: you may just have to attach it to wifi :/ Jun 25 22:25:58 vol_: no, it's fine Jun 25 22:25:59 rawrgh Jun 25 22:26:04 I can always toss my sim card in Jun 25 22:26:12 romainguy: so is that the name of the file? Jun 25 22:26:18 it needs the SPL, which was pushed before the 1.5 update Jun 25 22:27:42 whaledawg: "This attribute, without the android namespace prefix, is a reference to the layout file you wish to include." Jun 25 22:29:13 zinx: bleh Jun 25 22:30:06 romainguy_: So while I should have seen that, I'm gonna say it's your fault for not putting it in bullet points. Reading is so last century Jun 25 22:30:14 just kidding, thanks a lot :D Jun 25 22:34:30 whaledawg, what websites really needs is some IE5 marquee to make stuff stand out Jun 25 22:35:44 I think everything important should be wrapped in tags Jun 25 22:36:51 and it should use if it's longer than one line Jun 25 22:37:32 I remember making a caterpillar with embedded s Jun 25 22:37:35 and all buttons should be spinning gifs, so you know which ones are buttons Jun 25 22:37:39 it looked like it was creeping along Jun 25 22:38:06 ahh those weren't the days Jun 25 22:38:07 to cache something that is going into an ImageView is Bitmap or Drawable more efficient? Jun 25 22:38:30 public void setImageBitmap(Bitmap bm) { Jun 25 22:38:30 // if this is used frequently, may handle bitmaps explicitly Jun 25 22:38:30 // to reduce the intermediate drawable object Jun 25 22:38:30 setImageDrawable(new BitmapDrawable(bm)); Jun 25 22:38:30 } Jun 25 22:38:32 here's your answer Jun 25 22:38:58 thanks Jun 25 22:39:02 hehe Jun 25 22:47:00 Is it ok to keep a static Drawable around? Or will they leak your Context (don't see Context referenced in Drawable) Jun 25 22:48:28 romainguy_: So I know what confused me. I thought we were including by ID, but we were including the file with the layout attribute and the id was one we were creating inside the include statement. Jun 25 22:54:17 <_annex_> hi, when loading a local bitmap file to an ImageView, which is more efficient: Drawable.createFromPath() + ImageView.setImageDrawable() OR BitmapFactory.decodeFile() + ImageView.setImageBitmap() Jun 25 22:55:26 same thing Jun 25 22:55:38 <_annex_> got it, thank you! Jun 25 22:58:03 <_annex_> so you're saying if I averaged say 100 bitmap loads, the difference would be negligable? Jun 25 22:58:06 question: setting the fill_parent attribute will make an ImageButton grow to fill the available space, is there a way to force it to shrink the image to fit into a smaller area then the total pixels of the image? Jun 25 23:00:34 no way to do that? Jun 25 23:00:46 i think it's setscaletype or some such Jun 25 23:01:19 yeah, i think you set maxheight and maxwidth and scaletype in ImageView, IIRC Jun 25 23:01:36 emmby ty Jun 25 23:12:19 hrm, the MapsDemo in the sdk, I copied it to my workspace folder and cannot get it to compile Jun 25 23:12:32 what am I doing wrong? Jun 25 23:22:08 how do i do something like mytrack where, it draws out your track. do i have to draw all the points over and over again during onDraw? Jun 25 23:26:37 hrm, when I try to install the MapsDemo from google I get Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES] Jun 25 23:28:12 chouman82: draw them to an overlay bitmap Jun 25 23:28:17 draw bitmap on ondraw Jun 25 23:28:59 and when the user start to pan the map then i have to redraw all the points? Jun 25 23:31:03 good question Jun 25 23:32:21 cuz in MyTrack, when u start panning the map, the track stays and not move with the panning Jun 25 23:32:42 eh? Jun 25 23:33:28 i am trying to say is, in MyTrack it doesn't seeeeem like they are drawing on a bitmap but i may be wrong Jun 25 23:33:54 well, it makes sense - you have each active track as an overlay bitmap Jun 25 23:33:56 why don't you just code it? Jun 25 23:34:04 and paint it along with the background map bitmap Jun 25 23:34:15 code it? Jun 25 23:34:25 implement it Jun 25 23:34:26 write it, suck it and see, etc Jun 25 23:34:32 and see if it works Jun 25 23:35:05 but yeah, you could draw a track out to a bitmap, and associate it with a given map tile Jun 25 23:35:10 or something to that effect Jun 25 23:35:25 oh well ok so i tried drawing all points over and over again on every ondraw, and that gets slow as heck Jun 25 23:35:31 right Jun 25 23:35:32 so i guess i 'll try the bitmap way next Jun 25 23:35:37 also right Jun 26 00:28:52 so, for app widgets, if I remove one and add it again, it when my update runs, it runs for multiple widgets that I have, but the others were removed, what do I need to do to avoid this? Jun 26 00:31:21 so, when onUpdate gets called, it recognizes me as having multiple app widgets showing, but I only have one Jun 26 00:31:29 so I actually get a set of ids instead of just one Jun 26 00:52:33 hi, I have a question. I'm trying to display a dialog right after the activity comes back from a camera intent. The thing is the application runs everything before even showing the dialog. Jun 26 01:05:26 IvanSF: you have to throw the dialog after it comes back and do nothing else until you get a result back from the dialog Jun 26 01:05:46 starting a dialog doesn't do it synchronously Jun 26 01:06:00 how can I get something back from the dialog? Jun 26 01:06:11 it's just a please wait dialog Jun 26 01:14:17 IvanSF: what exactly are you trying to accomplish? Jun 26 01:14:56 mmm i have an acitivty that starts an intent for getting the picture and then it comes back. Jun 26 01:15:14 when it comes back it should show a dialog saying please wait while it uploads the picture Jun 26 01:15:26 and then what? Jun 26 01:15:43 you want it to close the dialog upon finishing? Jun 26 01:15:52 but it starts uploading the picture when it comes back. Jun 26 01:16:06 i mean, before it displays the 1st activity again Jun 26 01:16:29 so I get a black screen for a few seconds Jun 26 01:16:47 IvanSF: you're not uploading in the background are you? Jun 26 01:16:52 I am Jun 26 01:16:59 it shouldn't block the UI thread then Jun 26 01:17:09 but it sounds like you're blocking the UI thread Jun 26 01:17:12 this is my code Jun 26 01:17:12 sec Jun 26 01:18:22 jsharkey: help please :) Jun 26 01:18:31 jsharkey: with my app widget issue Jun 26 01:19:35 http://gist.github.com/136264 Jun 26 01:19:46 when I remove an app widget from the screen and then do menu->Widget->My Widget, and configure it, when I click on a button, my Pending Intents for the buttons aren't properly updated to throw the current appWidgetId, they're still throwing the old ones Jun 26 01:20:34 herriojr: the thread at the end runs before it displays the Dialog Jun 26 01:20:51 how did you declare resizePic? Jun 26 01:21:09 and it looks like you're just calling run on a Runnable, which isn't right Jun 26 01:21:40 why? what should I use? Jun 26 01:21:49 new Thread(Runnable).start() Jun 26 01:22:14 you shouldn't explicitly call the run method, that runs it in the same thread Jun 26 01:22:41 ohhh Jun 26 01:24:17 yeah.. I changed to start and it works fine Jun 26 01:24:26 thanks :) Jun 26 01:25:08 np ;) Jun 26 01:53:15 herriojr: using extras or setData? **** ENDING LOGGING AT Fri Jun 26 02:59:57 2009