**** BEGIN LOGGING AT Fri Nov 27 02:59:58 2009 Nov 27 03:23:42 hey ppl....is "absolute layout" recommended? Nov 27 03:24:38 don't think so Nov 27 03:25:18 Yeah, avoid Nov 27 03:26:08 If you use another layout, you increase the odds that your apps will look decent on screens with a different dpi and resolution Nov 27 03:26:15 if for no other reason than I think it's likely to break on different sized screens - and there are three different screen sizes out there in *mainstream* Android devices, never mind random Chinese things Nov 27 03:27:25 anyone have any suggestions? about the getting the coordinates of the first touch in a MotionEvent? Nov 27 03:27:57 eut: pre-2.0 there *is* no 'first touch' - there's only 'touch Nov 27 03:28:18 so then what is getHistoricalN()? Nov 27 03:31:05 Leeds, you may not have been around earlier when i asked my question so i'll restate: i'm trying to implement a 'long press' event using a MotionEvent when e.getAction() == e.ACTION_UP Nov 27 03:32:43 is there a way to get an attribute set from a view? Nov 27 03:33:03 with getDownTime() and getEventTime() i can make sure that its a 'long' press. i also want to make sure that the press stayed around one same location (you arent tryign to drag the map for example) Nov 27 03:33:19 around the* Nov 27 03:34:27 eut: if you're doing pre-2.0 development, remember to filter the SDK docs Nov 27 03:35:56 and a linearlayout be reveresed so it goies from the bottum up? Nov 27 03:37:27 Leeds:so relative is the way to go? Nov 27 03:38:39 jerjunkel: relative, nested linear for simple things... Nov 27 03:38:49 I think a *lot* of apps just implement their UI as a custom view Nov 27 03:39:04 Leeds, then what do the historical functions do? the values they return dont make much sense Nov 27 03:40:44 eut: it's for dragging events... I suspect what's going on is that there is some way to limit the number of move events you get - because otherwise you app can easily be flooded and performance falls through the floor - so a move event isn't necessarily a 1-pixel move Nov 27 03:40:59 so the historical stuff is a way of getting the movements since the last event was posted to you Nov 27 03:41:05 someone else probably knows better than I do Nov 27 03:41:15 ahh i see Nov 27 03:41:22 Yaaaay! :) Nov 27 03:41:28 I got my settings menu working properly! :D Nov 27 03:41:31 so it has nothing to do with the size of the movement list Nov 27 03:41:37 This is where someone tlels me there's a built-in settings widget. :p Nov 27 03:41:39 that functionality is added in 2.0 Nov 27 03:41:40 gotcha Nov 27 03:41:40 yes, it does Nov 27 03:41:47 Syniq: there's a built-in settings widget Nov 27 03:41:54 I hate you. Nov 27 03:41:59 I'm 100% not joking :) Nov 27 03:42:05 Leeds, wait huh? me or Syniq ? Nov 27 03:42:07 it's very very easy to do settings panels Nov 27 03:42:23 eut: not joking for either of you, but I was talking to Syniq Nov 27 03:42:26 Well, I s'pose building one by hand isn't a completely wasted endeavour. :p Nov 27 03:42:53 That said, I need this to work within a TabWidget, so the default one may not work. Nov 27 03:43:02 Syniq: if it's what I think you mean, check out PreferencesPanel Nov 27 03:43:12 Leeds, heh, does Historical size have anything to do with the size of the movement list? i thought i had just realized that in pre 2.0 there was no movement list (list of previous touch events) Nov 27 03:43:16 Leeds: Can you embed that in a TabHost? Nov 27 03:43:22 er, one mo Nov 27 03:43:31 Leeds: I need the tabs to persist above the pages, so I'm using ViewFlipper at the moment. Nov 27 03:43:46 sorry, PreferenceScreen, not PreferencesPanel Nov 27 03:43:51 either way, you could try embedding it Nov 27 03:43:53 Each tab is a separate activity, but the view in those activities aren't. Nov 27 03:44:03 * Syniq looks up PreferenceScreen. Nov 27 03:44:14 eut: the point is that there could be a number of movement events which are delivered in a batch Nov 27 03:45:12 if you just want the final location, you read the event - if you want to know what path the user dragged, you read the historical stuff Nov 27 03:45:17 I think that's what it is Nov 27 03:45:33 Leeds, if i filter only ACTION_UP events, is that batch guaranteed to include the initial ACTION_DOWN? Nov 27 03:46:10 no, the batching only applies to ACTION_MOVE Nov 27 03:46:16 *I think* - I'm largely guessing here Nov 27 03:46:26 you want to talk to someone like romainguy to get the exact/correct answer Nov 27 03:46:45 ok i see Nov 27 03:46:57 then i think i will have to implement an ACTION_DOWN and ACTION_UP listener and just try to associate the two events myself Nov 27 03:51:45 well, do you care about the path, or just the source and destination of a drag? Nov 27 03:52:19 ideally i'd like to make sure that between DOWN and UP events the location of the press did not move much Nov 27 03:52:43 since handling all of the movements is probably too much i was just going to approximate it by looking at the source and destination Nov 27 03:58:22 anyone get this error when trying to inflate a view? android.content.res.Resources$NotFoundException: Resource ID #0x7f05001e type #0x12 is not valid Nov 27 03:58:31 ok.. think i got it working well with just the down and up events Nov 27 03:58:51 freedomcaller: show us your code Nov 27 03:59:07 shure ill dump it in a paste bin Nov 27 04:01:04 Leeds, http://codepad.org/saQtmrOm if you are interested, seems to work Nov 27 04:02:49 not to trigger vibrate and i'll be in business Nov 27 04:02:53 now* Nov 27 04:10:28 Leeds: Thanks for the PreferenceScreen pointer. Nov 27 04:11:58 pleasure Nov 27 04:12:02 it really does make settings screens very easy :) Nov 27 04:14:09 Indeed it does. Nov 27 04:15:38 also pretty easy to do custom behaviour Nov 27 04:17:26 Also, it embeds in tab views. :) Nov 27 04:17:39 cool Nov 27 04:18:08 Can't work out how to get it to do the automatic view flipping, though. :/ Nov 27 04:23:36 ok leeds here is my code http://pastebin.com/m509a5448 Nov 27 04:24:02 it has the xml the atemted inflation and the error Nov 27 04:25:03 Heyz Nov 27 04:25:14 for eclipse how do i made a new android project Nov 27 04:25:43 file Nov 27 04:25:44 new Nov 27 04:25:46 other Nov 27 04:26:03 ant type: android Nov 27 04:26:22 http://developer.android.com/guide/tutorials/hello-world.html Nov 27 04:26:29 freedomcaller: I could be wrong, but I'm pretty sure you can only inflate layout views, not TextViews Nov 27 04:26:30 then choose Android Project Nov 27 04:26:47 oh shit, lemme try Nov 27 04:26:56 i did new android project... and then i type in name like new Nov 27 04:27:06 and then it says An SDK Target must be specified Nov 27 04:27:23 i was inflating my own class.which was extending surfaceView Nov 27 04:27:33 Zargle did you follow the installation instructions Nov 27 04:27:45 did you read the hello world tutorial Nov 27 04:27:49 its all in there Nov 27 04:28:01 yah... Nov 27 04:28:33 got the same error on the layout, does it have to be a blank layout? Nov 27 04:28:51 thats how i got the New Android Project Nov 27 04:29:12 I'd be interested to know what you think you're doing - but I'm more interested in hunting down the Subway store which is apparently across the road - it's lunchtime Nov 27 04:31:22 Mmm subway ^_^ Nov 27 04:31:50 haven't had one of their sandwiches since I was in Singapore a year ago Nov 27 04:33:27 damn i wanna be in singapore there is a cool fire spinning festival coming up there :/ Nov 27 04:34:30 current plan is to head to very very cold northern china for an ice/snow festival in feb Nov 27 04:34:48 http://rtoddking.com/chinawin2009_hb_if.htm Nov 27 04:36:22 coooool Nov 27 04:36:30 Rah. I now have a satnav that does everything except the navving by sats bit. :D Nov 27 04:37:13 Which, I spose, is pretty useless, but neh! :p Nov 27 04:38:54 for the project name Nov 27 04:39:07 do i just put like helloworld.java? Nov 27 04:39:13 or just halloworld Nov 27 04:39:36 Zargle: You might benefit by having a look at Sun's Java Tutorials before trying to write for Android... Nov 27 04:39:38 what should the Context parameter to Toast.makeText() be if i want to execute it from within a thread that was started in my activity? Nov 27 04:39:53 i just want to create a project Nov 27 04:39:54 Plz Nov 27 04:40:07 Zargle, read the getting started page Nov 27 04:40:12 i did Nov 27 04:40:15 i installed it and everyhting Nov 27 04:40:38 http://developer.android.com/guide/tutorials/hello-world.html Nov 27 04:40:47 "File > New > Project" Nov 27 04:40:58 yes and it says "new android project Nov 27 04:41:12 then whats the problem? Nov 27 04:41:57 i cant click next Nov 27 04:42:05 it says "An SDK target must be specified Nov 27 04:42:10 did you fill out all of the options? Nov 27 04:42:24 com.example.helloandroid what do i do instead of that Nov 27 04:43:01 there are several options in that page... project name, contents, build target, and properties Nov 27 04:43:22 which of yours is empty? Nov 27 04:43:54 Zargle: Try picking an SDK from the list. Nov 27 04:43:57 Project name: Hello Android app name: Hello, Android. Packagename com.example.halloandroid (dont knwo what to set it up. Create Activity: HelloAndroid. Min SDK Verision 2 Nov 27 04:44:10 from what list Nov 27 04:44:21 the build target section Nov 27 04:44:32 as shown in the picture in the article i linked you to Nov 27 04:44:39 i cant select anything Nov 27 04:44:57 there is no build target selection Nov 27 04:45:00 its gray over it Nov 27 04:45:29 http://developer.android.com/sdk/adding-components.html#installingComponents Nov 27 04:45:41 http://img262.imageshack.us/img262/839/screenshot20091126at845.png Nov 27 04:45:52 how do i create a viewgroup? Nov 27 04:46:06 or is there a way to inflate without one? Nov 27 04:46:29 run the command "android" and install the targets Nov 27 04:47:13 in terminal Nov 27 04:47:20 yeah Nov 27 04:47:39 there are instructions here: http://developer.android.com/sdk/adding-components.html#installingComponents Nov 27 04:48:22 yah Nov 27 04:49:32 ooh i think i got it working with null Nov 27 04:50:04 how can i make a Toast display to the current view from within a thread? Nov 27 04:51:30 are toats view specific? Nov 27 04:51:51 i thought they just popup on top of whatever is happeneing Nov 27 04:51:55 ah figured it out Nov 27 04:52:09 you have to do Looper.prepare() at the start of the threads run() method Nov 27 04:52:18 and Looper.loop(); before you exit the thread Nov 27 04:53:10 WOOT! my inflation worked! Nov 27 04:53:11 i guess threads by default dont handle messages? but this associates a 'message loop' with it Nov 27 04:53:28 dunno, ive never used threads in android :'( Nov 27 04:53:46 lol, i'm using one to fake a long press :P Nov 27 04:53:48 does rooting the andoid void the warrenty Nov 27 04:53:53 or anything Nov 27 04:53:53 gona have to write my first service soon tho O_o Nov 27 04:55:47 this AC~DC is making my app work better i know it! Nov 27 04:57:15 now to convert ms to hours minuets and seconds... Nov 27 05:11:09 Sounds like a tough problem Nov 27 05:18:22 does anyone know why a buddy of mine can't see logs in DDMS on a mac? Nov 27 05:25:59 I'm apparently blind... where is the linux adb driver instructions? Nov 27 05:27:19 hello Nov 27 05:27:28 how can i get a content view from a layout? Nov 27 05:28:01 i want to use one of my xml layouts for the content view of a popup windodw Nov 27 05:31:30 or maybe in better words: how can i create a View object from a layout? Nov 27 05:39:14 Anyone know how to create a header on a ListView? Nov 27 05:39:34 The attributes on the XML element seem to imply some kind of automated way, but I can't find info on it on-line. Nov 27 05:49:30 ugh, it looks like it's not possible to do my in-case-of-emergency/emergency-dialer replacement app Nov 27 05:49:39 it's too insecure without access to the StatusBarManager :( Nov 27 05:50:07 hmm... maybe: how can i get the current Resource object of the activity/application? Nov 27 05:51:51 even if I specify that my window be fullscreen, there's still a short quarter-second period where the user can drag down the notification tray Nov 27 05:52:37 eut: Context.getResources? Nov 27 05:53:19 (where an Activity is a Context) Nov 27 05:54:10 hmm lets give it a shot Nov 27 06:00:16 anyone know, off the top of their head, if ACTION_TIME_TICK is sent on the minute? i.e. at 12:23:00, 12:24:00, 12:25:00 etc Nov 27 06:02:28 Leeds, heh, probably would be faster to look--apidocs say on the minute Nov 27 06:02:58 where does it say on the minute? Nov 27 06:03:19 "The current time has changed. Sent every minute." does not necessarily guarantee that it's on the minute Nov 27 06:07:24 Leeds, ok, that appears to be working, but my popup window just looks like an ordinary view, not like a popup Nov 27 06:07:41 eut: different question :P Nov 27 06:07:46 heh yeah Nov 27 06:07:51 you probably want to set the theme to dialog Nov 27 06:08:06 ugh, how can i do that? Nov 27 06:08:10 RTFM Nov 27 06:08:25 I gave you the two important words :) Nov 27 06:08:50 any idea how to pack an object reference into an intent? can't find a putExtra that can handle that Nov 27 06:08:56 Leeds or if you are trying to schedule a task use the schedule api stuff Nov 27 06:09:09 michaelnovakjr: I'm not, and I know how to - but thanks :) Nov 27 06:09:28 Leeds, http://stackoverflow.com/questions/18285/is-rtfm-counter-productive Nov 27 06:11:13 vladikoff_: no idea what relevance that has to anything Nov 27 06:11:24 Leeds, ok ok sorry for not checking docs first. after looking at them and some posts it seems you can only set the theme of an activity. in my case the popup window is not itself an activity (i'm trying to make it go on top of a map activity). Nov 27 06:12:01 Knightingale: since it looks like you can't pass an actual object, as such, I think it needs to be parcelable or serializable Nov 27 06:12:10 Leeds, damn Nov 27 06:12:28 eut: then make it an activity Nov 27 06:13:33 arg, ok. thanks Nov 27 06:15:34 Leeds, ah. i'll look into that. i've started a static member with static setter function i might just use that Nov 27 06:17:43 are there popular devices that do not have accelerometers? Nov 27 06:17:51 Knightingale: the other way, of course, is if you're referring to something external (a resource, a database entry, etc.) you can just pass a reference and have the destination look it up again Nov 27 07:05:56 Leeds, got it working nicely with another activity Nov 27 07:05:57 perfect! Nov 27 07:06:08 cool Nov 27 07:07:16 annoying how all the "free" benchmark apps are only available on the market. they arent very large, would it really be murder to put them on their corresponding websites? :P Nov 27 07:07:33 makes it hard to compare phone vs android-x86 xD Nov 27 07:08:16 maybe they have good reason Nov 27 07:08:31 most things are only on the market Nov 27 07:08:36 * davep cries Nov 27 07:09:16 as soon as i discover this good reason, i will stop complaining :P Nov 27 07:10:20 it's the easiest way to publish stuff - no need to worry about the bandwidth, uptime, etc. of your own server Nov 27 07:10:26 it handles updates for you Nov 27 07:11:13 eh, but does it prevent them using a website as a secondary distribution method? Nov 27 07:11:27 i mean, for large apps that could consume a lot of bandwidth, certainly it makes sense to be market only. Nov 27 07:11:58 but a 30kb benchmark. meh Nov 27 07:12:00 it doesn't prevent them, but most don't see the need Nov 27 07:12:47 because nobody would ever want to benchmark an experimental platform :P Nov 27 07:13:15 you've got bogomips, what else do you need??? Nov 27 07:13:31 if they're free, and you ask nicely, someone might slip you an apk Nov 27 07:19:18 the website conveniently has no contact details Nov 27 07:19:26 anyone here know about Android and bluetooth? how do i figure out the UUID for createRfcommSocketToServiceRecord(UUID) ? Nov 27 07:20:31 davep: I meant ask someone with Market access ;) Nov 27 07:21:45 o/ Nov 27 07:21:55 hi there Leeds, how are you doing today? Nov 27 07:26:16 yay android-x86 building Nov 27 07:26:44 Ohan: better than yesterday, thanks Nov 27 07:26:47 why on earth does the new google maps not work on adp1 builds? Nov 27 07:26:57 cool ;) Nov 27 07:27:43 are you working on an app lately Leeds ? Nov 27 07:28:15 only my circlograph toy Nov 27 07:28:28 isn't that already published? Nov 27 07:28:31 this has been more of a web week than an android week Nov 27 07:28:38 i installed it and played with it, quite some time ago i believe Nov 27 07:28:55 sure, but I pushed a new version at the weekend, and I want to get a 'donate' - i.e. paid - version out Nov 27 07:32:14 heh Nov 27 07:32:20 don't we all Nov 27 07:34:02 oh nice ok ;) Nov 27 07:37:08 what comes after Eclair? Nov 27 07:37:12 Fruitcake? Nov 27 07:37:47 flapjack Nov 27 07:38:11 is that official or a guess? Nov 27 07:38:40 neither Nov 27 07:38:48 flapjack would look cool on their lawn atleast Nov 27 07:40:18 how about funnelcake? Nov 27 07:40:25 i think it'd look cooler Nov 27 07:43:55 re Nov 27 07:53:07 flan is after eclair Nov 27 07:53:20 possibly followed by gingerbread, but I haven't heard that confirmed Nov 27 07:53:50 Ohan: I tried your app in mcdonalds this morning... at least, the version I've got on my phone Nov 27 07:53:55 oh? Nov 27 07:53:58 it wouldn't login :( Nov 27 07:54:02 is that an old version? :/ Nov 27 07:54:04 oh man Nov 27 07:54:22 i corrected a small bug in the WISPr automata yesterday, but i doubt that would have screwed your login Nov 27 07:54:26 do you have some logs for me? Nov 27 07:54:34 and it was quite confusing between showing the AP, showing online/offline, and the wifi icon Nov 27 07:54:44 I *might* have some logs... it also crashed Nov 27 07:55:01 if I turned on the log-saving, where would it be? Nov 27 07:55:42 on the sd card Nov 27 07:55:49 myhotspotter_.txt Nov 27 07:55:53 ooh, it's tempting to skip up to a 1.5TB drive this weekend Nov 27 07:56:01 online/offline and which wifi icon? Nov 27 07:56:36 there's a wifi icon in the status bar which shows me 'online' Nov 27 07:56:56 no sign of any logs, sorry :( Nov 27 07:57:46 yeah, if the app crashes, you need "log collector" or "sendlog" (free apps on the market) Nov 27 07:57:55 as the app only saves logs when exiting (so not when crashing) Nov 27 07:57:59 if I'd remembered, I would have collected the crash log, but I was in the middle of other things Nov 27 07:58:08 the wifi icon in the status bar is out of my reach Nov 27 07:58:38 so actually, you could be connected (IP) to a hotspot, which i believe was the case for you (it should say "connected to..." just below the online/offline) Nov 27 07:58:51 and not online (if you are in a walled garden) Nov 27 07:58:59 online means you have access to the internet Nov 27 07:59:05 right... so I was connected to an AP, my wifi was live, but I was 'offline' - it's not immediately obvious what that means Nov 27 07:59:35 maybe something like "(not) logged-in" instead of online/offline? Nov 27 07:59:37 oh :/ Nov 27 07:59:48 i tried to explain that in the help, but not sure it's very clear indeed ... Nov 27 08:00:04 I didn't look at the help... and frankly, most users won't, unless it's front and center Nov 27 08:00:11 well, you could be "not logged" and still be online (if you are on an open or configured wifi) Nov 27 08:00:20 that's for sure, i know users never read ;) Nov 27 08:00:24 in which case I'm online Nov 27 08:00:42 but if I'm connected to a closed network, but not logged into it, I'm neither online nor offline, but somewhere in the middle Nov 27 08:01:01 a situation known as Schrödinger's WiFI Nov 27 08:01:11 well, you are offline Nov 27 08:01:19 coz you can't connect to the web Nov 27 08:01:25 you can't contact google.com for example Nov 27 08:01:44 but I'm online because my wifi is live, I have an IP address, I can get to at least one page on 'the internet' Nov 27 08:01:56 I won't get a connection error if I load my browser, I'll get a login prompt Nov 27 08:02:06 you're not online, you're connected :D Nov 27 08:02:19 you have an ip Nov 27 08:02:30 my point is, particularly if the login has failed, it's not clear what state I'm in Nov 27 08:02:41 im trying toupload to youtube via gdata. but im getting this error, and yet I have all of the correct libraries included: http://pastebin.com/m11f80dc2 Nov 27 08:02:56 the cat may be either alive or dead, you can't tell until you open your browser Nov 27 08:03:26 and, er, collapse the 2.4GHz waveform Nov 27 08:03:29 Leeds, actually, i do a request to www.google.com, to check wether you are online or offline Nov 27 08:03:40 now, that was something I was going to ask you about Nov 27 08:03:43 so it's really "the state" you are in Nov 27 08:04:00 something which would make your tool really useful Nov 27 08:04:04 to me, at least :) Nov 27 08:04:07 and it's not "completely" coupled with the login or logout Nov 27 08:04:40 yes? Nov 27 08:04:45 my wifi at home has a problem, and it's quite common for me to end up in a situation where the wifi is connected, but no traffic flows... if your tool could cycle the wifi (or even just disable it) if the connection is dead... Nov 27 08:04:58 oh Nov 27 08:05:13 the thing is, this app is a "one shot" kind of app Nov 27 08:05:18 when you close it, it's finished Nov 27 08:05:26 it's not a service Nov 27 08:05:31 some nasty interaction between my router and the wifi hardware/software in the phones - my netbook stays connected, my phone doesn't Nov 27 08:05:35 ah, that's true Nov 27 08:05:40 so if your phone goes to sleep, that's the end of it Nov 27 08:05:56 it's in the plans (but might never happen) to have a service though Nov 27 08:06:00 hunterp: er... I don't think the gdata stuff is a public API, is it? Nov 27 08:06:15 something that would be a receiver for wifi status changes Nov 27 08:06:23 right, useful :) Nov 27 08:06:32 and react to them (eg, detect a trustive network and notify if there's any) Nov 27 08:06:47 boingo does that... Nov 27 08:06:50 yes Nov 27 08:06:52 i know ;) Nov 27 08:07:04 Leeds: of course it si Nov 27 08:07:06 boingo is more of a service app, mine is more of a "wifi connection manager" app Nov 27 08:08:09 one more :P Nov 27 08:08:18 eut, there's others? Nov 27 08:08:27 i haven't even checked Nov 27 08:08:31 uhh i dunno Nov 27 08:08:35 one more question* Nov 27 08:08:37 hunterp: where's it documented? Nov 27 08:08:38 oh sorry ;) Nov 27 08:09:42 Leeds: im installing mail.jar fyi Nov 27 08:09:51 i have some jpeg data in a string. how can i decode it and display it in an imageview? i've tried the following: Bitmap b = BItmapFactory.decodeByteArray(photo.getBytes(), 0, photo.getBytes().length); but b is always null Nov 27 08:10:22 bitmap != jpeg Nov 27 08:10:40 yeah, thats why i'm doing the .decodeByteArray Nov 27 08:10:51 I know Bitmap has a compress function Nov 27 08:10:59 does it have a decompress function? Nov 27 08:11:30 if the jpeg data is written out to a file i can do .decodeFile("path name here") and it works just fine Nov 27 08:11:57 BitmapFactory can decode jpegs Nov 27 08:12:13 however, I would check the content of your photo.getBytes() Nov 27 08:12:17 also, don't call it twice Nov 27 08:12:19 very expensive Nov 27 08:12:35 oh yes of course (just for irc) Nov 27 08:13:16 I was wondering if I set my wallpaper with a peace of code contain in my app, where is store the new wallpaper? Nov 27 08:13:34 somewhere :) Nov 27 08:13:42 it's handled by the framework Nov 27 08:13:48 and apps don't have access to that storage Nov 27 08:13:54 (not directly) Nov 27 08:14:22 romainguy: im trying to use the java gdata-wrappers to upload to youtube cause i want to enforce "mytext" in the desc. annoying :| Nov 27 08:14:46 hunterp: I have no clue what you're talking about Nov 27 08:15:31 How do you read in a webpage for android? Nov 27 08:15:45 The way I do it in java causes a socket exception: http://pastebin.ca/1689237 Nov 27 08:16:11 you probably forgot to request the internet permission in your app Nov 27 08:16:54 hunterp: you're not using public Android APIs Nov 27 08:17:08 imusing public gdata apis Nov 27 08:17:18 but it looks like its hanging Nov 27 08:17:35 so unelegant Nov 27 08:17:40 where did this mail.jar come from? Nov 27 08:17:48 the bowels of the internet Nov 27 08:17:58 good answer, good luck Nov 27 08:17:59 to solve my 10th dependency issue ;-) Nov 27 08:18:24 romainguy: that was it, thanks! Nov 27 08:19:27 its so simple sometimes :D Nov 27 08:19:44 adb logcat helps too Nov 27 08:19:47 romainguy: any idea how, after using the INTENT.ACTION_SEND to return the uploaded youtube id to the app? onActionResult gets a null Intent in return Nov 27 08:26:08 romainguy, yeah i think there is something wrong with the byte array... when i write it out to a file the image is all black Nov 27 08:32:02 is there a way to reset the adb logcat buffer? Nov 27 08:32:13 i dumped some image data to it and it locked up Nov 27 08:32:26 INSTALL_FAILED_MISSING_SHARED_LIBRARY Nov 27 08:32:31 hmm. very helpful. Nov 27 08:33:11 eut: don't do that then :) Nov 27 08:36:44 ok... Nov 27 08:36:48 hmm Nov 27 08:37:01 maybe the json stuff is screwing with the jpeg data somehow Nov 27 08:38:14 on the server i wrap up the image data in some json object, like {"photo": "the binary data"} Nov 27 08:38:55 then i decode it on the phone with String photo = JSONObject.get("photo") Nov 27 08:39:16 ew, really don't do that! Nov 27 08:39:52 maybe i can send a link to the image.. and then display it with a webview? Nov 27 08:42:59 is it possible to tell an edittext to use the phonepad keyboard? Nov 27 08:43:23 which just has the 0-9 and a *#? Nov 27 08:52:07 woho it worked Nov 27 08:52:20 but it didnt automatically resize the image :/ Nov 27 08:54:13 morning all, I need to call finish() from within a custom dialog, but unsure how to ref. the activity, can anyone help me ? Nov 27 09:01:49 good morning Nov 27 09:28:45 Hi, I've got a thread running and sending messages to a handler, I want the handler to receive a certain message and kill the tread, then do some stuff. I've called thread.destroy(); but it force closes with nothing in logcat. Can anyone help please? Nov 27 09:29:08 you're not supposed to do thread.destroy, i believe it's deprecated Nov 27 09:29:19 not sure that's your issue though Nov 27 09:29:46 Ohan: oh didn't know that, whats the preferred way now? Nov 27 09:31:23 Thread.interrupt Nov 27 09:31:40 and then manage the "InterruptException" in your "run" loop Nov 27 09:31:48 (if there is a loop) Nov 27 09:32:25 never do thread.destroy Nov 27 09:32:32 interrupt, or set a flag Nov 27 09:32:41 you don't get an InterruptedException if you thread.interrupt Nov 27 09:32:48 only during wait() and sleep() and other thread blocking methods Nov 27 09:32:48 oh? Nov 27 09:32:52 oh ok Nov 27 09:32:56 can I ask why? Just for my learning! Nov 27 09:33:02 if you want to check interrupt state, you need Thread.interrupted() Nov 27 09:33:07 or thread.isInterrupted() Nov 27 09:33:47 because destroying threads haphazardly leads to poorly defined behavior Nov 27 09:33:50 good to know, thanks pfn Nov 27 09:34:15 the best procedure is to define a boolean "isStopped" (or shutdown, whatever you like to call it) Nov 27 09:34:18 so if I've interrupted a thread, and want to start it again? Nov 27 09:34:23 check the flag on every iteration Nov 27 09:34:44 but then the treads still running? Just not doing much Nov 27 09:34:44 calling interrupt on a thread doesn't do anything, except in some thread blocking operations (e.g. wait and sleep as mentioned) Nov 27 09:36:13 Ok, bit confused but never mind, I'll put a flag in. Another thing, if I start a service from an activity, then the service wants to restart the activity what is the best way? startActivity()? Nov 27 09:42:26 is it possible to specify what keyboard a user is presented without also specifying the inputType? ie i want the phone keypad but only allow numbers 0-9, if i set inputtype to phone, the user is given permission to non number input, while if i set the inputtype to number the input it filtered correctly, but the user gets keyboard with small buttons Nov 27 09:43:02 tomfreay, if you want to keep a thread around for later use you usually have it set to wait() on a notification Nov 27 09:43:13 tomfreay, or use something that will pool threads for you Nov 27 09:43:55 e.g. the executor services in java.util.concurrent Nov 27 09:44:46 pfn: thanks, I will have a look at those too Nov 27 09:44:50 *two Nov 27 09:47:03 anyway, you should probably read java concurrency in practice Nov 27 09:47:19 if you don't know threads (or threads in java) well Nov 27 09:49:21 android offers thread wrappers anyhow, dont use plain threads if you dont really need to Nov 27 09:49:59 yep just doing that, I had only used them once before! Nov 27 09:56:44 deebo, thread wrappers? how are they called? Nov 27 09:57:08 well ASyncTask for example Nov 27 09:57:37 oh, i'll look that up Nov 27 10:01:23 thanks deebo Nov 27 10:04:08 hmm Nov 27 10:04:13 annoying when ls Nov 27 10:04:14 is missing Nov 27 10:04:19 echo * seems to work well. Nov 27 10:05:39 deebo, ASyncTask looks awesome, man, all this code i've written for nothing... Nov 27 10:08:01 code is never for nothing! Nov 27 10:08:10 yeah well, i disagree ;) Nov 27 10:11:07 Ohan, you shoulda read the dev guide first Nov 27 10:11:12 asynctask is covered in there Nov 27 10:11:55 at least I think it was... Nov 27 10:12:01 pfn, i didn't read the guide word for word i must admit Nov 27 10:12:16 i didn't remember reading anything about that Nov 27 10:12:28 yeah, I thought I saw it in there, I must have been confused Nov 27 10:12:47 that's a bit of awesome i shoulda (coulda) used Nov 27 10:13:00 wonder if it's worth refactoring it all now... Nov 27 10:13:19 * pfn rarely uses asynctask type facilities Nov 27 10:13:34 at least not in java/swing (swingworker) Nov 27 10:14:48 ok now Nov 27 10:14:56 last step before actually publishing the app on the market... Nov 27 10:15:08 install latest sdk and make sure everything goes smoothly ;) Nov 27 10:15:22 what'd you write? Nov 27 10:16:26 how about loading it on a real phone and seeing if it actually works. Nov 27 10:17:04 I'm not the only one who thinks the emulator is slow and lame compared to a real phone, right? Nov 27 10:17:09 nope Nov 27 10:17:17 * pfn shrugs Nov 27 10:17:19 i test almost everything on my Droid Nov 27 10:17:21 * pfn doesn't test on the emulator Nov 27 10:17:36 since stuff I want to write is a pita to test on the emulator Nov 27 10:18:35 mytharak, the other problem of that argument is that you need to have hardware to test every version you want to support Nov 27 10:18:46 the emulator, somewhat, saves you from that requirement Nov 27 10:18:59 yeah, but I hate the emulator Nov 27 10:19:36 if you have friends with android devices who are willing to run it... Nov 27 10:19:39 my first app I wrote needed to be tested on 1.5 to make sure that it worked ok, since the eris behaves differently from my droid Nov 27 10:19:49 it all depends on what your priorities are Nov 27 10:20:23 true. each device may be different Nov 27 10:20:45 morning all, I need to call finish() from within a custom dialog, but unsure how to ref. the activity, can anyone help me ? Nov 27 10:20:50 the emulator emulates the full phone hardware on softare, of course its "slow" Nov 27 10:21:04 oh, and it doesn't really feel slow on my box... heh Nov 27 10:21:07 the emulator Nov 27 10:21:12 * pfn played with it briefly Nov 27 10:21:14 tho i dont understand "slow", its not slow Nov 27 10:21:19 the emulator fails to replicate the actual end user experience Nov 27 10:21:33 except it cant do some of the extremely cpu intensive stuff, like video Nov 27 10:21:40 pfn: what did i write? quite a bit of code for a UtilityThreads class, that takes various "actions" and act on them to create (and run) a specific thread Nov 27 10:22:00 Ohan, I mean the app you're about to publish Nov 27 10:22:07 I don't care about your concurrency utilities :p Nov 27 10:22:23 oh ok ;) Nov 27 10:22:29 a wifi connection manager Nov 27 10:22:52 that allows a Trustive (http://www.trustive.com) user to automatically log in to Trustive hotspots Nov 27 10:23:06 if you're willing to test it, there's a beta i could give you ;) Nov 27 10:23:12 (and a test account with some wifi) Nov 27 10:23:36 btw, if you have a Trustive hotspots around your place, that would be awesome if you could test (http://www.trustive.com/search) Nov 27 10:23:41 and you, what did you write? Nov 27 10:24:03 bluetooth a2dp volume manager Nov 27 10:24:16 http://www.hanhuy.com/android/a2dp_volume_manager Nov 27 10:24:45 thanks for the link Nov 27 10:25:41 there aren't really any local hotspots to me Nov 27 10:25:42 for trustive Nov 27 10:25:52 sad :/ Nov 27 10:26:00 you still want to beta test the wifi connection manager part? Nov 27 10:27:09 are there a lot of devices that still run on 1.1 ? Nov 27 10:40:21 what do i need to do, when i upgrade from 1.6 to 2.0, to have the path initialized? Nov 27 10:40:35 it tells me /home/rustre/dev/android/android-sdk/platforms/android-2.0/templates/android_rules.xml:299: The following error occurred while executing this line: Nov 27 10:40:36 /home/rustre/dev/android/android-sdk/platforms/android-2.0/templates/android_rules.xml:169: Execute failed: java.io.IOException: Cannot run program "/home/rustre/dev/android/myhotspotter_android/${sdk.dir}/tools/zipalign": java.io.IOException: error=2, No such file or directory Nov 27 10:40:50 but i have no clue what sdk.dir is refering too Nov 27 10:41:20 for 1.6 and 1.5 i have the "tools" folder added to the $PATH Nov 27 10:41:33 doesn't seem to be enough for 2.0, any clues? Nov 27 10:43:18 if you cd to / and run "android" command does it work or fail? Nov 27 10:43:33 I had an issue where I thought my path was set up correctly, but it wasn't Nov 27 10:43:48 yes, wherever i am it works Nov 27 10:43:55 rustre@mat-laptop:~$ which android Nov 27 10:43:55 /home/rustre/dev/android/android-sdk/tools/android Nov 27 10:44:10 and that's exactly the place i've configured in my $PATH Nov 27 10:44:41 I've always preferred the ./whatever method, and I still have a separate SDK folder for my 1.6 and 2.0 Nov 27 10:44:49 pointless, I know, but it works Nov 27 10:45:08 maybe i should just add the sdk.dir environment variable Nov 27 10:45:43 I completely reset my PATH and deleted everything from the 1.6 SDK before updating to 2.0 Nov 27 10:45:58 what does echo $PATH say? Nov 27 10:46:39 rustre@mat-laptop:~$ echo $PATH Nov 27 10:46:39 /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/rustre/dev/android/android-sdk/tools Nov 27 10:50:12 How can i filter out the special characters beeing inserted into a edittext form the phone keyboard, a keylistener doesn't work as they do now fire an event to it Nov 27 10:52:41 export sdk.dir=/home/rustre/dev/android/android-sdk/ <======== how should i do that? this doesn't work as "sdk.dir" isn't correct Nov 27 10:56:31 Ohan, android update project -t 3 -p yourprojectdir Nov 27 10:57:22 thanks a lot pfn, i'll try that (didn't see any mention of that anywhere) Nov 27 11:01:23 * _kai_ is away now (autoaway after 30 minutes of expectation) Nov 27 11:03:18 that did the trick pfn , thanks a ton ;) Nov 27 11:32:03 do you guys remove all the calls to Log.d before publishing your apps? Nov 27 11:32:26 no Nov 27 11:42:21 Ohan: Make your own static method that does Log.d, and call that. Then you can just have a boolean toggle whether it outputs or not Nov 27 11:42:41 But, depending on how much you use it, I guess you dont really need to disable them anyway Nov 27 11:42:51 hi there Frinkz, how are you doing? Nov 27 11:43:05 I'm good Nov 27 11:43:22 Doing a little coding... :O Nov 27 11:43:41 good good ;) Nov 27 11:43:44 cactus fiesta? :D Nov 27 11:44:10 Nope, idk what the graphics guy is doing these days, isn't responding to me, so I've moved on for now Nov 27 11:44:20 - I didn't get chance to test out your app with the Trustive sites btw, but so far works fine for managing other WiFi stuff Nov 27 11:44:45 nice :) Nov 27 11:44:52 good point already, and good to know :) Nov 27 11:45:05 i've updated the debug version on the website with mostly small invisible stuff Nov 27 11:45:17 The same URL? Nov 27 11:45:17 but if you're going to test on a trustive hotspot one day, please upgrade before ;) Nov 27 11:45:18 yup Nov 27 11:45:22 kk, I will do Nov 27 11:45:25 perfect ;) Nov 27 11:45:34 when you say "the graphics guy", you talk about inept? Nov 27 11:45:39 I do Nov 27 11:45:43 ok Nov 27 11:45:51 haven't seen him around either lately Nov 27 11:45:57 Well, he's in here Nov 27 11:46:05 But hasn't said anything Nov 27 11:46:08 i meant, "seen him talk" ;) Nov 27 11:46:17 :P Nov 27 11:46:32 I'm seeing if I can make a game in 1 day Nov 27 11:46:38 Frinkz, so you do the Log.d "cleanup" when you publish? Nov 27 11:46:53 i thought the "debuggable" property in the androidmanifest was exactly for that :( Nov 27 11:47:01 that would be awesome Nov 27 11:47:05 I don't really know Nov 27 11:47:05 a game in one day ;) Nov 27 11:47:15 I just set 'DEBUG_MODE = false', it disables the logging and a few other things Nov 27 11:47:29 i'll give it a try, as i have a _lot_ of calls to Log.d at the moment Nov 27 11:47:31 Hah, yes, just a crappy puzzle game. And not counting pretty grapics Nov 27 11:47:38 and don't want to refactor/rewrite all those, for now Nov 27 11:47:46 And I have to go to university for 2 hours... so its gonna be a challenge :P Nov 27 11:47:47 i'll see, maybe in a future version Nov 27 11:48:04 I wouldnt be surprised if turning off debuggable disables it Nov 27 11:48:04 i'm now ready for publishing, i believe i'll publish on monday, to let the beta testers give me a few more feedback, if any Nov 27 11:48:25 well, in the guide they say explicitely that all calls to Log should be removed Nov 27 11:48:39 Fair enough Nov 27 11:49:36 man, i'm really looking forward to publish this app Nov 27 11:49:44 after the hours and hours i spent on it... Nov 27 11:49:50 It is a nice feeling :P Nov 27 11:49:51 Free app? Nov 27 11:50:06 part of it to "re" learn java, part of it to learn the android platform, part of it to refactor it (4 times!!) Nov 27 11:50:09 yes Nov 27 11:50:17 free app, but needs a Trustive account (not free) Nov 27 11:50:21 kk Nov 27 11:50:22 so it's not really a free app Nov 27 11:50:38 i find this very sad, i wanted (and argued A LOT with the boss) to have it completely free Nov 27 11:50:53 main point was: if it's free, it'll be easier for people to just download and use it Nov 27 11:51:08 and when they see a Trustive hotspot, it'll tell them, and in a few clicks they'll be able to buy Nov 27 11:51:12 so it's all the better for us Nov 27 11:51:25 Yeh Nov 27 11:51:30 but the boss was like "no, it costs us money, so i don't want non-paying people to use it" Nov 27 11:51:32 _stupid_ Nov 27 11:51:40 To be honest, buying public WiFi time is something I would never even consider Nov 27 11:51:49 i won't ever :p Nov 27 11:51:51 unles.... Nov 27 11:51:54 i'm abroad Nov 27 11:52:00 Yeah Nov 27 11:52:03 coz 3G roaming fees are horrible Nov 27 11:52:05 That makes sense Nov 27 11:52:10 and that's exactly our business model ;) Nov 27 11:52:12 wifi roaming Nov 27 12:23:52 Frinkz, i'd love to port "boulder dash" to android, just afraid it'll be difficult to make it usable Nov 27 12:24:09 screens too small, difficult to navigate with the touch screen... dunno Nov 27 12:24:25 maybe i'll try, one day, when the current app is finally released ;) Nov 27 12:24:31 might give a shot at Rokon, see how easy it is ;) Nov 27 12:27:18 I've thought about exactly that in th past too :p Nov 27 12:27:29 I used to love that game Nov 27 12:27:43 Don't think itd be too hard to control, its only up/down/left/right Nov 27 12:27:55 boulder dash requires four directions Nov 27 12:28:01 last i checked the screen has 4 edges :P Nov 27 12:29:16 1d screens only have 2 edges Nov 27 12:29:24 it's not that Nov 27 12:29:36 it's just a pain to "click" in all 4 edges of the screen Nov 27 12:29:44 lots of movements for the hand and fingers Nov 27 12:29:49 a "swipe" could make it Nov 27 12:29:54 Nah, itd be easy Nov 27 12:30:04 Just register a touch in that quarter of the screen Nov 27 12:30:08 but then, i tried a few of the games where you have to take a ball from one place to another Nov 27 12:30:17 and pass on tiles a given number of times Nov 27 12:30:28 and they use either the scroll ball, either a swipe, Nov 27 12:30:32 and they SUCK Nov 27 12:30:59 i'd love to have something as smooth and easy and intuitive and ergonomic as the "block jam" game Nov 27 12:31:19 it's just very reactive, and very intuitive Nov 27 12:31:41 i didn't say it would be "hard" technically to have the 4 edges, i said it would be a pain to use Nov 27 12:31:49 another example: the frozen bubble port Nov 27 12:32:07 you have to swipe the finger in the lower part to adjust Nov 27 12:32:11 and then "click" in the upper part Nov 27 12:32:12 it's a pain Nov 27 12:32:18 * _kai_|away has gone to work Nov 27 12:38:35 o/ mikedg-blau Nov 27 12:38:38 how are you today? Nov 27 12:38:45 is your stomach ake gone? Nov 27 12:40:20 yeah! Nov 27 12:40:25 doing good thanks for asking Nov 27 12:40:37 back to eating junk food, chocolate covered pretzels Nov 27 12:41:03 ;) Nov 27 13:06:13 Hmm Nov 27 13:06:36 Anyone know anything about generating random game levels? (Anything on dungeons, mazes?) Nov 27 13:11:57 Frinkz, hope you'll finish your game in one day, looking forward to play it!! Nov 27 13:14:09 Its already playable, but isn't exciting :P Nov 27 13:14:15 The joy would be in the infite number of puzzles Nov 27 13:14:21 Which is the hard bit ;) Nov 27 13:15:05 And its ugly as hell... Will have to find a new (significantly cheaper) artist Nov 27 13:35:19 Hi, All! Nov 27 13:35:38 I have one question Nov 27 13:43:29 hi Nov 27 13:44:37 i try to start a alert dialog from a service, i didn't find any example for this situation :( Nov 27 13:46:21 did someone know what i hav to do around the allert dialog so that funktion ? Nov 27 13:51:32 Hi everyone... quick question if anyone is present and willing to help out: Nov 27 13:51:35 Trying to embed a webview in a sublayout within a tab. whenever the webview tries to become visible, it goes full screen. clicking back shows the empty sublayout. wondered if anyone had any ideas what I can do to make it work properly. Nov 27 13:54:03 anyone? bueller? :-) Nov 27 13:54:50 what is the width and height of the webview Nov 27 13:54:55 how are you making it invisble? Nov 27 13:55:48 In my tab layout I have 3 separate views that I'm cycling through... when one is visible the other two are invisible Nov 27 13:56:02 via setVisibility(View.INVISIBLE|View.VISIBLE) Nov 27 13:56:19 There is a search view, a detail view, and the webview Nov 27 13:56:47 I've tried nesting the webview inside a scrollview, linearlayout, and relativeLayout Nov 27 13:57:03 webview length/width are fill_parent Nov 27 13:57:25 as are the parent views length and width Nov 27 13:58:04 I'm thinking it goes all the way up to the tab - that somehow tabs don't happily hold embedded weblayouts, but I haven't proven that hypothesis. Nov 27 13:59:55 I did try to put the webview in directly... no wrapping layout... that had the same result. Nov 27 14:01:32 is alle the same acivity O.o Nov 27 14:01:55 Yes.. I am not starting a separate activity. Nov 27 14:03:36 Frinkz, is there a beta version i could try out? :D Nov 27 14:03:55 maybe u need to use onSaveInstanceState Nov 27 14:04:06 i not realy shure Nov 27 14:05:42 don't think so, 'cuz it isn't a matter of the instance going away and not coming back properly... it's just weird behavior from the start. Nov 27 14:05:54 Thank you for the suggestion though Nov 27 14:12:13 ah damit i cant start a alert dialog from my service >_< Nov 27 14:15:17 morning all, I need to call finish() from within a custom dialog, but unsure how to ref. the activity, can anyone help me ? Nov 27 14:16:04 johnnyzen, MyActivity.this.finish() Nov 27 14:16:17 johnnyzen, replace "MyActivity" by the name of your Activity/clas Nov 27 14:16:27 Ohan: yes, tried that. hmm let me check again :) Nov 27 14:17:01 Wheever i draw a TableLayout it wont display anything on emulator? Nov 27 14:17:15 Ohan: getting : No enclosing instance of the type MainMenu is accessible in scope Nov 27 14:17:23 Is it emulator problem or am I doing something wrong? Nov 27 14:17:51 johnnyzen, what's this "MainMenu", is that something you know? Nov 27 14:18:03 oh wait Nov 27 14:18:09 custom dialog? Nov 27 14:18:20 thats the activity that i created a instance of the custom dialog Nov 27 14:18:25 i guess you should "finish" in the "return" Nov 27 14:18:27 customdialog class Nov 27 14:18:30 how can i explain that Nov 27 14:18:49 you start the dialog Nov 27 14:18:59 and you should, somehow, get back the "result" of the dialog Nov 27 14:19:09 * mikedg-blau is updating dgMoney to work with contentprovider Nov 27 14:19:10 ugh Nov 27 14:19:11 and you should then finish there Nov 27 14:19:20 ? Nov 27 14:19:29 anyone wanna donate some money so i can buy soda :) Nov 27 14:19:50 i want to call finish from the back button within the custom dialog, to quit app, rather than just remove the dialog Nov 27 14:20:39 (onKeyDown) Nov 27 14:20:50 johnny: doesnt back cancel the dialog? Nov 27 14:21:03 you should either provide ok/cancel buttons Nov 27 14:21:11 if thats the case Nov 27 14:21:13 too Nov 27 14:21:15 imo Nov 27 14:21:47 ?? Nov 27 14:22:10 no, want to force dialog until input recd. if no input, want to quit app Nov 27 14:22:40 dont want them escaping dialog Nov 27 14:22:40 johnnyzen, here's how i would do it: Nov 27 14:23:08 if you cancel the dialog, or click "back", then in the calling app (in the calling activity), get the result, which will not be RESULT_OK Nov 27 14:23:14 and act upon that (finish) Nov 27 14:23:31 does that make sense? Nov 27 14:23:57 that's what i'd do too, but id also have buttons on the dialog too Nov 27 14:24:09 Ohan: yes, no problem with doing this Ohan :) thanks :) Nov 27 14:24:30 ohan: you are really catching on with Android :) Nov 27 14:24:43 just thought might be quick easy way to ref. the activity from within dialog and call finish on keydown Nov 27 14:25:33 like: Context context = getRootView().getContext(); ((Activity) context).finish(); Nov 27 14:25:34 you could have the dialog or listener as an inner class and do that Nov 27 14:25:37 but its sloppy Nov 27 14:25:58 (but getRootView) not available :( Nov 27 14:26:50 johnnyzen, great ;) Nov 27 14:26:51 Is there a way to get View.onDraw() to be passed a Canvas that has not been cleared? Nov 27 14:27:17 mikedg-blau, well, if i wasn't catching on android, after spending that much time lately on it... man, that would be poor Nov 27 14:27:27 but i do really have a LOT to learn on it still Nov 27 14:30:02 mikedg-blau, i believe i'll publish the app monday Nov 27 14:30:22 everything's ready on my side, just waiting for a few more feedback from testers, just in case ;) Nov 27 14:30:52 how can we change the background of the linear view layout??? Nov 27 14:30:53 cool Nov 27 14:31:10 at design time, theres an android:background property Nov 27 14:31:43 Ohan: yes, but getRootView, not available within customdialog Nov 27 14:31:48 Planet_EN: or incode by LinearLayout.setBackground Nov 27 14:31:51 so cant use than Nov 27 14:32:01 I meant where in XML I can fix that? Nov 27 14:32:37 johnnyzen, i don't understand Nov 27 14:32:39 Planet_EN: As mikedg-blau says: just set the background property Nov 27 14:32:42 why would you use getRootView? Nov 27 14:33:11 to ref. the activity, to finish it Nov 27 14:33:20 Planet_EN, add an attribute to the LinearLayout tag, named android:background="@drawable/mybackground" Nov 27 14:33:29 johnnyzen, nah, you didn't get what i meant Nov 27 14:33:41 when you click on "ok", what happens? Nov 27 14:34:08 Please check it out: http://pastebin.com/m185ab1a5 Nov 27 14:34:20 Ohan, yes, I understood your method, i was just saying that it would be nice and easy to do something similar to what I just pasted Nov 27 14:34:27 :) Nov 27 14:34:29 Emulator wont run it.. would always show Force Exit Alert and terminate Nov 27 14:34:49 oh ok Nov 27 14:35:00 I have added the RGB value for my color in strings and added it to the XML Nov 27 14:35:03 Planet_EN, why do you set a _string_ to your background? Nov 27 14:35:08 that's not the way you do it Nov 27 14:35:18 create a colors.xml file in the res/value folder Nov 27 14:35:36 Nov 27 14:35:36 Nov 27 14:35:36 #FFFF6600 Nov 27 14:35:36 #00000000 Nov 27 14:35:37 Nov 27 14:35:42 that's the content of my "colors.xml" file Nov 27 14:36:07 then just reference it in your layout file (eg: android:background="@color/trustive") Nov 27 14:36:25 you can use drawables too with gradients Nov 27 14:37:04 oh and i'm not sure you're supposed to enable scrollbars on a LinearLayout Nov 27 14:37:36 i guess the preferred way to do it is enclose the LinearLayout in a ScrollView, and have the LinearLayout's layout_height be "wrap_content" Nov 27 14:37:49 it's just a guess though, to be validate Nov 27 14:37:51 d Nov 27 14:39:16 how else should I set the color? Nov 27 14:39:34 i just explained Planet_EN Nov 27 14:39:38 oops ok Nov 27 14:39:40 just read Nov 27 14:39:41 sorry Nov 27 14:45:21 but it still has problem Nov 27 14:45:35 even if i enclose it into ScrollView Nov 27 14:45:54 http://pastebin.com/m1fc54974 Nov 27 14:48:03 you still have what problem? Nov 27 14:48:50 man, please read what i told you about the creation of a colors.xml file, and the use of @color/backgroundColor Nov 27 14:48:54 [2009-11-27 19:48:33 - NewsDsp] ActivityManager: Warning: Activity not started, its current task has been brought to the front Nov 27 14:51:42 Ok I added the colors.xml file onw Nov 27 14:51:46 now* Nov 27 14:53:25 Can I have a table layout inside a linear layout? Nov 27 14:53:52 I want to have a heading then some breifing and then new heading with breifing, so I guess table view is the best option? Nov 27 14:54:05 What do you suggest? Nov 27 14:57:29 How can I change the font color? Nov 27 15:00:18 Planet_EN, i'm ok to help for a question or two Nov 27 15:00:27 but i do believe you'll still need to read some docs Nov 27 15:00:30 and try stuff Nov 27 15:01:14 I'm done with color thing.. that was just to stir out some activity here :P Nov 27 15:01:26 but What about table layout question.. Nov 27 15:03:26 i'm not sure you need a table layout for what you need Nov 27 15:03:30 but it's up to you Nov 27 15:04:03 Somewhat like an RSS reader application Nov 27 15:04:18 and you'd want to display headlines with some snippets.. Nov 27 15:04:32 what layout could prefferably adopted for such a scenario? Nov 27 15:08:08 i just throw that stuff in a webview for my app Nov 27 15:08:09 lol Nov 27 15:08:28 Phandroid News Nov 27 15:12:31 Hello again Nov 27 15:14:33 wb Nov 27 15:17:11 There's no webview?? Nov 27 15:27:24 I wonder why there's no global calibration program, the Right/Left Accelerometer is off by 15° (as indicated by "GPS Status" and "Accelerometer Log") - is something like that planned? Or is every single application supposed to implement it by itself? Nov 27 15:28:20 Is it possible to execute ruby code inside java application in android?(is there any library for it)?