**** BEGIN LOGGING AT Wed Nov 25 03:35:39 2009 Nov 25 03:37:29 Hm... Nov 25 03:38:59 Having issues with Preferences. I have them all configured, but it seems to continue using the 'default value' I set for the string instead of the newest value. Nov 25 03:41:12 Strange. Nov 25 03:49:31 I'm using Checkbox, but it's too big. Is there any way I can reduce the size of it (proportionally?), to maybe 50% of it's size? Nov 25 03:52:38 I think you can set tht in layout. Nov 25 03:53:00 android:layout_width="64dip" Nov 25 03:53:01 android:layout_height="64dip" /> Nov 25 03:53:21 Something that try, but with checkbox. Nov 25 03:54:37 that just Crops of the edges Nov 25 03:54:45 doesn't actually resize the star... Nov 25 03:54:50 or checkbox Nov 25 03:55:00 Worked for images. =/ Nov 25 03:58:09 I really need to stop programming with a lack of sleep. Making stupid mistakes. Nov 25 03:59:57 Holy fucking shit was that a god damn stupid mistakes. Nov 25 04:43:09 Does Android use any caching that persists across the install/uninstall of an app? I'm experiencing some very strange behaviour. Nov 25 04:44:21 Here's the scenario, compile code, manually test and notice a runtime error, comment out offending code run ant reinstall, runtime error is still there. Nov 25 04:45:43 khmer42: I had to do a full uninstall to get rid of a problem once Nov 25 04:46:03 khmer42: it was a runtime error also, but this was probably multiple versions ago Nov 25 04:46:33 If I then comment out the startActivity line that calls the offending activity I can then launch the app I can't get to the part that has the problem. But more interestingly, if I now go back and uncomment the startActivity and compile the runtime error is gone Nov 25 04:47:18 JoeBrain: How to you do a full uninstall? Nov 25 04:48:21 adb uninstall com.yourcompany.whatever Nov 25 04:48:24 iirc Nov 25 04:49:17 So this is a more complete uninstall than the one provided by ant uninstall? Nov 25 04:49:45 ermmm can't help you there, but it was different from adb install -r (reinstall) Nov 25 05:58:37 drunk Nov 25 06:05:06 hello Nov 25 06:06:30 i've been following the mapview tutorial: http://developer.android.com/guide/tutorials/views/hello-mapview.html, but would like to know how to add a some info to each point. like a popup tied to each point like google maps Nov 25 06:06:49 is there a way to convert a RadioGroup button's index to its ID or vice versa? Nov 25 06:06:56 if i create a file using openFileInput was is the life cycle of that file? does it stay until i specifically say delete or does it get removed by the system if space is needed? does it get erased if my program is removed? does it stay when the program is upgraded? whats the deal with those files? Nov 25 06:09:23 radiogroup seems really crippled? Nov 25 06:10:34 can i even get a list of all the ID's? Nov 25 06:12:53 hey Nov 25 06:12:54 anyone here? Nov 25 06:17:54 anyone know how to compile the stock apps from the github without compiling the whole platform? Nov 25 06:18:06 as in, with just using the standard android SDK Nov 25 06:59:31 no one here? Nov 25 07:01:15 people are here Nov 25 07:01:24 just not necessarily watching Nov 25 07:07:41 ahh Nov 25 07:07:46 hmm Nov 25 07:08:00 well, i asked a question Nov 25 07:14:33 is the droid rooted yet ? Nov 25 07:20:55 Murdock: as per #android-root - the right place to ask that question - not yet Nov 25 07:22:06 oh ok thx Nov 25 07:22:50 how hard would it be for someone with very limited coding knowledge to make a home screen widget thats nothing but a web shortcut? Nov 25 07:24:15 you don't need to make a widget for that - you can just make a shortcut to a URL Nov 25 07:24:30 or do you want one to distribute? Nov 25 07:24:42 one to distribut that isnt small and ugly :) Nov 25 07:25:06 though that reminds me, what sort of favicon does andoird require for home screen icons? Nov 25 07:25:16 when you say very limited coding knowledge... do you mean you looked at some BASIC 10 years ago? Nov 25 07:25:20 like the iphones apple-touch-icon Nov 25 07:25:35 more limited than that. i only kno wweb languages Nov 25 07:25:36 no idea on that Nov 25 07:25:49 okay... web languages like php, or web languages like HTML? Nov 25 07:26:02 html, some php Nov 25 07:26:14 I'd say medium-hard then :) Nov 25 07:26:37 webOS is based around weblanguaes, i know android isnt, just wondering how different Nov 25 07:28:05 would be easier to just look into favicon Nov 25 07:30:09 <_kai_> how to run android market on a emulator? Nov 25 07:31:05 _kai_: Market is not available for the emulator Nov 25 07:31:24 <_kai_> oh...not nice Nov 25 07:31:28 <_kai_> =) Nov 25 07:33:07 people have hacked around that limitation, but it's not a common thing Nov 25 07:33:18 also Nov 25 07:33:22 probably against the license :p Nov 25 07:35:00 well yes, obviously Nov 25 07:37:17 romainguy: please don't C&D me :P Nov 25 07:37:26 <_kai_> ehh, you happy=) but as i understan, tha 20-25 apps what on a site of android is a some top of 10k apps? Nov 25 07:37:35 I personally certainly won't :) Nov 25 07:38:28 _kai_: your English is hard to understand... but the website at market.android.com just shows a few 'featured' apps, yes - and there are over 10k in the market Nov 25 07:38:33 romainguy: I may hold you to that Nov 25 07:39:21 <_kai_> Leeds, sorry, english is my thecond language;) Nov 25 07:39:51 German is your first? Nov 25 07:40:01 <_kai_> no Nov 25 07:40:28 <_kai_> russian) but i'm from belarus Nov 25 07:40:35 oops, sorry Nov 25 07:40:55 my traceroute was being slow - it got to Germany by the time I typed :) Nov 25 07:43:02 <_kai_> my problem is in what i think on russian - i'm wrote on english, and some times it hard to understand;) (but some times i'm do some errors at the text while typing) ;) Nov 25 07:45:31 it's okay, I can understand you, but sometimes it's difficult Nov 25 07:45:49 your English is much better than my Russian (which I studied for 3 months in school) Nov 25 07:47:46 <_kai_> Leeds, you know russian, i'ts good))) why you didn't say it before?)) Nov 25 07:48:11 I don't know - I can't even remember the alphabet! Nov 25 07:48:42 <_kai_> :D Nov 25 07:49:38 <_kai_> yes, our alphabet is hard to understand)) Nov 25 07:55:23 hey, I'm having a bit of a problem here - on line 71 my application stops running: http://github.com/Hainish/Swinedroid/blob/master/src/com/legind/web/WebTransport/WebTransportConnection.java#L71 Nov 25 07:56:20 is there any reason just adding a String to an ArrayList of Strings would cause the application to crash? Nov 25 07:56:39 paste the log of the crash Nov 25 07:56:43 pastebin, I mean Nov 25 07:57:16 ok Nov 25 07:57:54 which method of ItemizedOverlay handles the "long tap" event? Nov 25 07:58:06 i see an onTap() and an onTouchEvent() Nov 25 07:59:02 but neither description seems to be the long tap: http://code.google.com/android/add-ons/google-apis/reference/com/google/android/maps/ItemizedOverlay.html Nov 25 07:59:05 any ideas? Nov 25 08:00:16 Leeds, http://www.pastebin.ca/1686558 Nov 25 08:02:40 most of the posts i see online are not answered Nov 25 08:03:58 legind: this may be a really silly question... but do you ever initialise lastHeaders? Nov 25 08:04:26 eut: or maybe what you're asking is slightly obscure and there's nobody around at the moment who can help Nov 25 08:04:32 how can i make my content provider give back images for a image view? Nov 25 08:04:43 well thats probably it! sorry I'm a java noob Nov 25 08:04:55 Leeds, :/ Nov 25 08:05:16 Leeds, do you know what the difference between the events that trigger onTap and onTouch are? Nov 25 08:05:28 err, onTap and onTouchEvent Nov 25 08:05:52 I think onTouch is mainly for motion? Nov 25 08:06:52 so tap is "hit and release" and touch is "hit-drag-release"? Nov 25 08:06:58 Leeds, do I simply add a " = null" in the constructor? Nov 25 08:07:06 er, no Nov 25 08:07:15 eut: I dunno, RTFM :) Nov 25 08:07:26 Leeds, link? :P Nov 25 08:07:38 legind: you... initialise it? create a new object and assign it to the variable? Nov 25 08:07:42 eut: d.android.com :P Nov 25 08:07:47 ... Nov 25 08:08:18 onTouchEvent is a standard Android thing - onTap isn't Nov 25 08:08:37 ah Nov 25 08:10:13 hmm ok Nov 25 08:10:30 i think i can hack up onTouchEvent to be used as a long press-ish thing Nov 25 08:10:35 thanks for the help Nov 25 08:10:58 pleasure Nov 25 08:11:12 however, if anyone know of a proper long-press event handler for ItemizedOverlay then please let me know :] Nov 25 08:11:28 Leeds, that solved that problem Nov 25 08:11:29 thanks Nov 25 08:11:40 FYI, it'd be better if you make it clear that it's a MapView question - ItemizedOverlay isn't a core Android thing either Nov 25 08:11:44 legind: glad to help Nov 25 08:11:57 if I had $1 for everyone whose simple problem I've solved... Nov 25 08:12:07 isnt MapView not even a core thing yet either? Nov 25 08:12:09 that reminds me - legind, eut, I'll be needing $1 from you ;) Nov 25 08:12:28 * eut leaves #android-dev Nov 25 08:12:55 really must get back to the IRC tipjar website I was working on a year or two back Nov 25 08:13:27 brilliant idea Nov 25 08:14:38 japp, would be great Nov 25 08:15:00 especially in times of paypal where micropayments are easy to perform Nov 25 08:15:54 yeah Nov 25 08:15:59 Leeds, if you really want I'll totally give you a dollar over paypal Nov 25 08:16:21 legind: I wasn't serious... if you really wanted, you could buy my game ;) Nov 25 08:16:44 but frankly, it's pretty crap, so don't Nov 25 08:17:03 whats the name? Nov 25 08:17:05 Leeds, cool, whats it called? I'm working on a local fork of the rokon framework Nov 25 08:17:14 Annoyed Nov 25 08:17:36 legind: rokon is by the guy who did flying aces, right? Nov 25 08:17:42 Leeds, yes Nov 25 08:17:52 who is pretty active around here Nov 25 08:18:30 oo, in uk to beat the us inflation. very nice touch Nov 25 08:18:31 Leeds, myself and a friend are building upon it, hopefully our modifications will get merged into the official release Nov 25 08:18:50 eut: no, in UK because I'm a British expat Nov 25 08:24:31 :] Nov 25 08:24:55 <_kai_> oO Nov 25 08:25:18 <_kai_> expat? Nov 25 08:27:20 from the UK, resident in Hong Kong Nov 25 08:27:27 _kai_: expatriate Nov 25 08:28:47 <_kai_> and how Hing Kong? much better? =) Nov 25 08:28:53 <_kai_> *hong Nov 25 08:30:09 better than the UK, yes Nov 25 08:31:42 <_kai_> I always dreamed of ... but the trip there for me is not possible = ( Nov 25 08:32:26 I was lucky to have the chance to live here Nov 25 08:32:42 <_kai_> =) Nov 25 08:33:54 <_kai_> i don't know how to get a chance to live Belarus...because live here is awful Nov 25 08:34:06 <_kai_> *leave Nov 25 08:34:57 having family abroad who can give you a job is a very good way to start :D Nov 25 08:34:58 _kai_ join the eu =) Nov 25 08:35:37 <_kai_> Leeds, cool) Nov 25 08:35:45 <_kai_> titan_, and where are you from?=) Nov 25 08:35:57 norway Nov 25 08:36:14 <_kai_> =) Nov 25 08:38:55 <_kai_> Leeds, did you can find me a job? pleeeese))) Nov 25 08:42:47 <_kai_> Leeds, did i'm must know Chinese lang. ?)) Nov 25 08:56:36 _kai_: I don't know Chinese language Nov 25 09:06:24 Leeds: wimp Nov 25 09:18:56 Brend: I'm not going to get you a job in Hong Kong either :P Nov 25 09:19:03 :(( Nov 25 09:19:20 But wait! My company *is* a HK company Nov 25 09:19:23 We're just not, like, in HK Nov 25 09:19:33 Best of both worlds! Nov 25 09:22:38 <_kai_> Brend, did your compane can get some java/android developer? =) Nov 25 09:22:44 <_kai_> *company Nov 25 09:23:28 We're looking for a lot of things, but not really Java or Android at the moment Nov 25 09:30:44 I'd like to have a list of items and a text-field on the screen and when i start to type in text, i'd like to use that text as a search pattern for the list items. Anyone a hint how to do this or even better some example code somewhere? Nov 25 09:34:45 <_kai_> amm Nov 25 09:34:52 <_kai_> at one tutorial Nov 25 09:34:57 <_kai_> it was Nov 25 09:35:01 <_kai_> one sec plz Nov 25 09:35:41 <_kai_> http://developer.android.com/guide/tutorials/views/hello-listview.html Nov 25 09:35:50 <_kai_> getListView().setTextFilterEnabled(true); Nov 25 09:36:14 o/ Nov 25 09:36:44 _kai_: ah great, thank you alot! Nov 25 09:36:56 <_kai_> DonLemmi, np=) Nov 25 09:40:08 scav, sorry for yesterday evening :/ Nov 25 09:40:18 Leeds, how are you today? Nov 25 09:40:33 not too bad Nov 25 09:41:07 ;) Nov 25 09:44:34 hi all, out of interest, what buffer sizes are people setting for httpconnections ? Nov 25 09:45:06 just getting this message: Default buffer size used in BufferedInputStream constructor. It would be better to be explicit if an 8k buffer is required. Nov 25 09:45:11 Anyone knows where I can find a menu icon for "Satellite View", which is free to use? Preferably an icon which has the grey menu style Nov 25 09:45:40 johnnyzen, i have the same message, and i don't really bother (for now ;) Nov 25 09:47:45 Ohan: ah ok, just having a few problems with connections, getting a blank response from remote server in about 1 in 4 connections Nov 25 09:48:02 oh Nov 25 09:48:11 cant figure it out Nov 25 09:48:14 i believe i had this issue too, as i was reusing the same httpClient Nov 25 09:48:36 and didn't investigate more on the issue, i believe i fixed it by creating a new httpClient each time Nov 25 09:48:50 maybe check that you're consuming the response completely each time? Nov 25 09:49:28 the same HttpURLConnection ? Nov 25 09:50:35 err, no, i was using the same httpclient Nov 25 09:51:07 and that caused me problems, again, iirc Nov 25 09:52:33 Ohan, sorry what do you mean by using the same httpclient, i thought you meant instance Nov 25 09:52:46 exactly Nov 25 09:53:05 i was using the same http client instance over and over, for requests coming from different parts of my code Nov 25 09:53:11 and that, for some reason, didn't work very well Nov 25 09:53:26 so i just "quick fixed it" by creating a new instance for each request Nov 25 09:54:56 well the instance is being used over and over, so I just changed to create new instance each time, but same result. I am getting -1 for contentlength, so connection to remote server ok, but just not getting data back ?? strange Nov 25 09:55:08 in about 1 in 4 connections Nov 25 09:55:37 oh Nov 25 09:55:46 might not be the same issue i had then :: Nov 25 09:55:46 :/ Nov 25 09:56:05 hmm maybe getting -1 for content length, does not mean successfull connection ? or does it ? Nov 25 09:56:30 i guess you have an IOException if something goes wrong? Nov 25 09:56:36 or maybe your connection times out? Nov 25 09:56:44 yes exactly, no io Nov 25 10:01:19 hmmm having looked a bit more, its failing on exactly the 3rd cycle, so must be a code issue :) thats good news, now I know its my fault :) Nov 25 10:01:59 haha :D Nov 25 10:02:11 that's always a good news ;) at least you can fix it! Nov 25 10:02:24 Ohan: yes :) thanks for your help :) Nov 25 10:03:14 well, didn't help much :p Nov 25 10:08:54 sometimes just with talking with someone gives you ideas , thats what I found :) Nov 25 10:10:09 that's called rubber ducking ;) Nov 25 10:10:15 look it up in wikipedia ;) Nov 25 10:32:32 hi Nov 25 10:34:22 hi Nov 25 10:34:27 hi Nov 25 10:34:33 have you ever heard about OMA ? Nov 25 10:34:49 no, sorry Nov 25 10:37:15 if I run the android virtual machine on my computer, then I should be able to connect to it with telnet on localhost:5554, right ? Nov 25 10:38:17 <_kai_> enola, what is OMA? Nov 25 10:38:58 Ohan: haha! gonna get myself one duck Nov 25 10:39:27 johnnyzen, ;) Nov 25 10:39:47 <_kai_> Ohan, funny duck)) Nov 25 10:40:26 because when I try to connect, it says I cannot (I switched off my firewall to try it...) Nov 25 10:43:25 anyone know why a connection doesnt give an IO exception, but at the same time doesnt get any data, (contentlength = -1) Nov 25 10:44:25 *httpconnection Nov 25 10:45:29 httpurlconnection? Nov 25 10:45:31 use httpclient Nov 25 10:46:26 deebo: why, is it better ? Nov 25 10:46:42 it actually works, and supports http properly Nov 25 10:46:56 :) ok Nov 25 10:47:22 is httpurlconnection a bit ropey to use then ? Nov 25 10:47:27 out of interest Nov 25 10:49:51 telnet localhost:5037 :) Nov 25 10:50:20 Jarod_: try telnet localhost:5037 Nov 25 10:51:22 enola : it doesn't work... and I try to launch with -port 5554 with verbose mode, and everything seems ok except that I cannot telnet localhost 5554 :( Nov 25 10:53:26 and I try -shell option as well, which gives me the # but I cannot enter anything there Nov 25 10:55:06 heyy guys Nov 25 10:55:20 anyone have experience compiling the stock messaging app? Nov 25 10:56:55 Jarod_: what do you mean when you say "cannot enter everything"? Nov 25 10:56:59 anything* Nov 25 10:57:34 when I try to enter any key, then nothing happen :) But I tried to connect to the emulator in launching a new adb.exe shell Nov 25 10:57:44 and this time it works :) Nov 25 10:58:06 Jarod_: ;) Nov 25 10:58:39 enola: if I understand correctly, my emulator is not able to reach something inside my local network ? Nov 25 10:58:46 I mean I want to reach 192.168.0.10.... Nov 25 10:58:50 The only weird thing I have with adb is on my computer it doesn't recognize my hero but on my workmate computer it is recognize.... Nov 25 10:59:23 Jarod_: you have the adb forward tcp:localport tcp:remoteport Nov 25 10:59:43 mmhhh Nov 25 11:00:24 I cannot imagine a way to say to the emulator to go to 192.168.0.10:80... Nov 25 11:02:04 your computer is 192.168.0.n and you want to connect on it with your emulator is that it? Nov 25 11:02:36 my computer is 192.168.0.1, and I run on my computer a virtual machine on 192.168.0.10, and I run on my computer the android emulator Nov 25 11:02:52 I'd like from the emulator to connect to the webserver on 192.168.0.10 Nov 25 11:02:53 ^^ Nov 25 11:04:52 * _kai_ is away now (autoaway - screensaver) Nov 25 11:05:11 Jarod_: I am pretty sure it is possible, but I wonder how :/ Nov 25 11:06:35 same here =) Nov 25 11:08:53 the network commands are really limited Nov 25 11:10:40 can I somehow include a drawable-hdpi resource folder with my app when I target 1.5 devices? Eclipse plugins shows "invalid resource directory name drawable-hdpi" - "Unknown Android AAPT Problem" Nov 25 11:10:42 oh Nov 25 11:10:46 it works... Nov 25 11:11:07 yuh never got this one dudde Nov 25 11:11:26 enola : I put my hostname website in the /etc/hosts with the local address (192.168.0.10) Nov 25 11:11:33 and when I try to access to the website, it works ^^ Nov 25 11:11:41 no idea why but that's cool :-D Nov 25 11:12:30 I'm building an alertDialog, but the dialog doesn't display the button I put in the xml.. anyone know the reason for this, and if I can have buttons for alert dialogs Nov 25 11:13:00 ^^ not bad Nov 25 11:15:52 legind: programmaticaly you sure can :http://developer.android.com/guide/appendix/faq/commontasks.html#alerts Nov 25 11:16:51 thanks enola Nov 25 11:17:02 legind: what you are looking for here is this : Builder::setPositiveButton... Nov 25 11:17:48 aha, I thought that wouldn't work since I'm building the dialog with an xml view Nov 25 11:32:38 Not a terminology buff, so bear with me here. I've got a TabActivity that has several buttons on one panel. When one of those buttons is pressed, I want the tab's content to change to another page, but the tabs themself to remain persistent. How on Earth do I do this? :/ I can't find a tutorial with information on it. :( Nov 25 11:43:57 Syniq:Have your consider making a Factory which never crushed your `Panel Content` Nov 25 11:54:24 enola: Aha. Just found ViewFlipper. Nov 25 11:56:04 i want something like JTable, where I can scroll down the rows, but the top row of column headers remains static. whats an easy way to do that? Nov 25 11:56:32 Hello Nov 25 11:56:56 hi Nov 25 11:57:30 i am getting an error trying to boot android at my HTC diamond ( DIAM100 ) iam using images from http://www.androidonhtc.com/diamond/latest_builds. Can anyone help me? Nov 25 11:58:10 #android-root will know more Nov 25 11:58:20 ty Nov 25 12:08:42 * buk chuckles. Nov 25 12:08:48 My Droid just arrived. :> Nov 25 12:12:25 hurray Nov 25 12:16:13 buk: grats Nov 25 12:17:15 buk: try Melon, its the best notepad app for the droid imho Nov 25 12:17:33 i feel so crappy Nov 25 12:21:27 buk: How's the physical keyboard? It looks a bit clunkier than the one on the HTC phones. Nov 25 12:22:00 it looks worse than it is Nov 25 12:22:04 Syniq: the phone is at home, I'm at work ;) Nov 25 12:22:20 after using it for a while and going back to my g1, i eventually wound up liking the droid keybaord better Nov 25 12:22:38 mikedg-blau: any URL for Melon? Nov 25 12:22:45 androlib.com seems down Nov 25 12:24:09 ive been handing out androlib url lately :/ Nov 25 12:24:28 no website yet though im transitioning from my old website to a blog Nov 25 12:27:22 mikedg-blau: is it the best because its your app? :> Nov 25 12:28:28 25% of the reason Nov 25 12:28:30 lol Nov 25 12:29:03 im working on widgets and a feature so groundbreaking it's made people crap their pants Nov 25 12:29:25 i was hoping to release the new version today, but im feeling under the weather Nov 25 12:33:07 So what is this groundbreaking new feature for a notepad that will revolutionize the world? Nov 25 12:33:31 better reminders! Nov 25 12:34:05 Isn't that what your calendar is for? Nov 25 12:34:50 these are better Nov 25 12:35:04 Oh. Nov 25 12:36:03 i swear Nov 25 12:36:09 can anyone confirm that glRotatex doesnt do anything in the emulator? Nov 25 12:37:19 I've not yet done OpenGL for Android. Nov 25 12:37:20 buk: Ah, psychological torture technique. :p Nov 25 12:37:51 Syniq: hell yeah and i have to work for 4 more hours :o\ Nov 25 12:37:58 then my son is waiting ... *G* Nov 25 12:38:11 so it'll take me at least another 6 hours to get my hands on it ;) Nov 25 12:38:29 though I didnt expect it to arrive that fast, I'm in .de Nov 25 12:39:49 oo Nov 25 12:39:54 just got it for development? Nov 25 12:40:09 nope, bought it from O2 Nov 25 12:40:15 they sell it since 16th Nov 25 12:40:22 ah Nov 25 12:42:27 Is it called the Droid, or the Milestone there? Nov 25 12:42:35 Milestone Nov 25 12:42:42 I got android booted on my HTC diamond( diam 100 ) but after boot it is trying to: Power off Shutdown progress. any idea? Nov 25 12:42:49 Same thing, just GSM radios? Nov 25 12:43:28 buk how long did you wait for it? Nov 25 12:44:22 fengor: since monday afternoon *G* Nov 25 12:44:31 o2 telling me its sold out atm :/ Nov 25 12:44:50 * buk nods Nov 25 12:44:50 seems they sold them all again Nov 25 12:45:04 im pondering purchasing a samsung moment Nov 25 12:45:08 buk got the last one. Nov 25 12:45:29 I'd like to see the Xperia X10 UI. Nov 25 12:45:57 A colleague might buy that since he's on AT&T, and has no intention of switching to Verizon. Nov 25 12:46:24 sigh, hopefully thei get them soon again Nov 25 12:47:32 I wonder how much market share Android is taking from iPhone. Nov 25 12:47:57 fengor: on monday the website said "Vormerken" but I clicked to buy one and it worke Nov 25 12:47:57 worked Nov 25 12:47:58 i wish i could boot mine Nov 25 12:47:59 well if they are sold out that quick i believe it will pe a few percent Nov 25 12:48:08 seems to me the site is a bit buggy Nov 25 12:49:07 yeah Nov 25 12:49:28 gonna check the o2 stores in the area if i manage to get off from work while they are sitll open Nov 25 12:49:39 heh, i called two monday morning Nov 25 12:49:50 and they didnt know what fon I'm taling about ;) Nov 25 12:50:40 yeah most of the shops are useless *sigh* still one might have one lying around gathering dust Nov 25 12:50:51 cant have that. besdes i want a shiny new gadget Nov 25 12:51:02 *G* Nov 25 12:51:32 so yours is still cell wrapped? or did you pack it out already? Nov 25 12:52:44 fengor: i'm 30km away from it ;) Nov 25 12:52:48 is it possible to use flat files to store a content provider's data? Nov 25 12:53:05 sure Nov 25 12:53:11 why though? Nov 25 12:53:18 openFileInput(String) and openFileOutput(String, int) require a context Nov 25 12:53:56 provide them with one :x Nov 25 12:53:58 why? because i dont need insert/delete they are more or less static and rarely change in value....when they do change i can just rewrite the file, plus every access is going to be sequential and use the whole file Nov 25 12:54:14 if you put your files outside the apk they're either going to be duplicated or need downloaded Nov 25 12:54:30 oh, erh, not apk then Nov 25 12:54:36 ....inside a contentprovider i dont have access to a context and files are created for me somewhere i dont control where Nov 25 12:56:19 anyway i can use openFileOutput(String, int) inside a content provider? Nov 25 12:56:39 without bad magic Nov 25 13:06:32 how do I add an authorization key to an URLConnection/https connection programmatically? Nov 25 13:06:39 everywhere i look online it says that i can make a content provider backed by flat files but no where does it show an example of how to do that.....anyone know? Nov 25 13:07:33 hey guys Nov 25 13:07:40 anyone compiled stock android apps before? Nov 25 13:07:48 without rebuilding the whole android build i mean Nov 25 13:07:53 thinking of forking an app Nov 25 13:08:07 but missing libraries from SDK Nov 25 13:30:08 a lot of the built-in apps don't build against the public SDK Nov 25 13:31:50 hello ive installed the latest sdk and added it to my path, when i 'android list avds' it doesn't list any Nov 25 13:33:47 hullo: and? Nov 25 13:34:07 oops i actually meant 'android list targets' Nov 25 13:35:59 did you install any targets? Nov 25 13:36:17 no Nov 25 13:36:23 how do i do that Nov 25 13:36:26 the newest SDK doesn't include any targets - it can download them, so you only need to install the ones you want Nov 25 13:36:33 run the android command by itself Nov 25 13:36:53 ok im in the gui Nov 25 13:38:07 should it be trying to grab from: https://dl-ssl.google.com/android Nov 25 13:38:32 you might need to disable the https - a lot of people find the plain http repo works better Nov 25 13:40:11 What's an easy way to get the source from the sdk viewable in eclipse? i' ve already added it to the build but it still won't show up Nov 25 13:43:44 the repos are down or changed i cant find a link for them Nov 25 13:45:39 Leeds: then how do u build the apps? Nov 25 13:46:00 ruqqq: personally - I don't Nov 25 13:46:07 ohh Nov 25 13:46:07 hmm Nov 25 13:46:10 sheesh Nov 25 13:46:22 i wanted to modify the messaging app Nov 25 13:46:41 hullo: seems to be working for me Nov 25 13:46:49 some of the apps are not under a free license Nov 25 13:46:56 particularly the google ones Nov 25 13:47:03 er... all the 'core' apps are Nov 25 13:47:41 the SMS?MMS app certainly is Nov 25 13:50:40 haha ok got it now which apo is the best to download? API 3 rev 3, API 4 rev 1 or API 5 rev 1? Nov 25 13:51:32 you need to download the releases you intend to build and test apps against... Nov 25 13:52:02 ill just grab them all you might have guessed im new to this Nov 25 13:52:44 I noticed, yes Nov 25 13:53:06 the documentation is a bit fragmented Nov 25 13:53:11 ruqqq: there are a few third-party messaging apps out there - but AFAIK they're all using unofficial APIs Nov 25 13:53:15 hullo: how so? Nov 25 13:53:58 Leeds: hmm, i see. open source ones? Nov 25 13:54:04 seems like the information is spread over the different releases its hard to find what the best current way to get started is Nov 25 13:54:41 ruqqq: none that I'm aware of Nov 25 13:55:01 hmm. i wonder how the XDA ppl compile their mms.apk Nov 25 13:55:44 Error: Ignoring add-on 'google_apis-3-r03': Unable to find base platform with API level '3' thoughts??? Nov 25 13:56:53 hello Nov 25 13:56:57 im trying to update a dev phone Nov 25 13:57:05 but i dont know how to get to the recovery console Nov 25 13:57:22 i tried booting with HOME key down but I only get "safe mode" text Nov 25 14:00:48 what model phone? Nov 25 14:01:54 http://developer.htc.com/adp.html Nov 25 14:03:33 Cannot run program "/home/john/Downloads/android-sdk-linux/tools/adb": java.io.IOException: error=2, No such file or directory. it exists, its there Nov 25 14:08:50 that's weird Nov 25 14:09:56 did you extract the tarball as root? Nov 25 14:09:56 hi guys, i have an calender icon (png) that i want to draw the current month/day on, how would i do that? I am looking at the drawable section of the dev guide, but i cant seem to find any write text functions or anything like that? Nov 25 14:10:56 oh, there we go - anyone need a wave invite? Nov 25 14:11:46 darryl: no, i was missing ia32-libs Nov 25 14:11:57 aspWork: if you want to draw text on an image, I think you need to load it as a Bitmap, create a Canvas on top of the Bitmap, then draw text with the Canvas Nov 25 14:12:16 Leeds: ok, ill have a look at that Nov 25 14:12:17 thanks Nov 25 14:12:27 sure Nov 25 14:19:37 hi all, is it possible to have comments inside of the xml files such as android_manifest.xml ? Nov 25 14:22:23 now my HTC diamond is asking a unlock code. weird Nov 25 14:36:54 is there a command to get the canvas of an imageview? Nov 25 14:39:22 aspWork: I think you need to turn it into a mutable Bitmap Nov 25 14:39:44 ok, i cant just overload the onDraw somehow? Nov 25 14:40:01 Is there any way to give an app permission to open sockets to the kernel? i'm getting "Could not open socket to kernel: Permission denied" when trying to runtime.exec("iptables -L") Nov 25 14:40:01 i just got android running at HTC diam100 Nov 25 14:40:51 socket to kernel??? Nov 25 14:41:41 i'm as confused as you are :P but that' s what i' m getting, it seems as if the java prog doesn' t have the same 'power' as the root user has or something of the sorts Nov 25 14:46:07 blip-: Yes, you can have comments with Nov 25 14:47:24 hmm I tried that a while back... I think the IDE didn't change highlighting so I thought it doesn't work Nov 25 14:48:14 eclipse changes the highlighting correctly Nov 25 14:49:20 thanks RobinB Nov 25 14:58:22 What would I use to open an https:// in android and be able to include an authentication field? Nov 25 14:59:25 i think i found a bug in the hero Nov 25 14:59:28 i just called 911 Nov 25 14:59:33 and the gps came on Nov 25 14:59:36 and the call ended Nov 25 14:59:41 but the gps is still on Nov 25 14:59:59 oh it just turned off Nov 25 15:00:24 why di dyou call 911 Nov 25 15:00:41 to test this Nov 25 15:00:50 it crashes my magic altogether Nov 25 15:01:08 that's E911, isn't it? Nov 25 15:01:12 also, quite possibly a crim Nov 25 15:01:13 e Nov 25 15:12:09 anybody know of any examples on how to add text to a ImageView? I currently have one with a icon (png) in it, but my atempts to add text to it (via a canvas) just crashes my app Nov 25 15:12:53 asp: you can just layer a textview on top of the imageview Nov 25 15:13:47 mikedg-blau: yes i know, but i want to do some fancy things with the text, so i would prefer to draw it with a canvas Nov 25 15:14:21 aspWork: and what does LogCat say about the crash ? Nov 25 15:15:12 aspWork: I used canvas.drawText() Nov 25 15:16:03 didou: thats what i am trying to do aswell Nov 25 15:16:46 aspWork: paste your code, tell us more about the crash, etc Nov 25 15:16:46 it looks like this: http://paste2.org/p/531819 Nov 25 15:17:49 and the crash log? Nov 25 15:18:46 how do i retrive that? i am a bit new to android dev to say the least Nov 25 15:18:55 aspWork: using eclipse ? Nov 25 15:19:06 that's the first thing you need to learn :) Nov 25 15:19:34 didou: yes Nov 25 15:19:55 aspWork: display the DDMS perspective Nov 25 15:19:59 click on your device, or emulator Nov 25 15:20:16 and then click on the logcat icon (the a in a yellow round) Nov 25 15:21:18 ok, found it, let me run it again Nov 25 15:22:49 http://paste2.org/p/531821 Nov 25 15:22:56 looks like it doesn't like the bitmap Nov 25 15:23:29 create a new bitmap for your canvas Nov 25 15:24:05 RobinB: ok, and the load the old one in the canvas? Nov 25 15:24:28 something like this should work: Nov 25 15:24:30 screen = Bitmap.createBitmap(x, y, Config.RGB_565); Nov 25 15:24:30 myCanvas = new Canvas(screen); Nov 25 15:24:45 and then if you want to draw the bitmap, just do myCanvas.drawBitmap(...) Nov 25 15:24:51 pretty sure I said "mutable Bitmap" :) Nov 25 15:25:00 Leeds: you did Nov 25 15:25:09 RobinB: thanks, ill give that a try Nov 25 15:29:16 anyone from the uk here selling apps? Nov 25 15:30:00 yup, sort of :) Nov 25 15:30:17 I'm from the UK, but not in the UK - but Google don't really know that - and I'm not selling *many* apps Nov 25 15:30:27 i was wondering about VAT Nov 25 15:30:37 ah... I don't wonder Nov 25 15:30:42 hehe, ok. Nov 25 15:31:34 realistically, I've sold about a tenner's-worth of app... so it's not like they're going to care Nov 25 15:32:13 yeah. i was just reading up on it, and it seems as long as your income is less than £67k/year, you dont need to Nov 25 15:33:42 for any Americans listening, that's around US$100k per year... Nov 25 15:33:55 I don't think anyone has ever made that much from Android sales :) Nov 25 15:34:19 I sold 30000 apps Nov 25 15:34:24 i wonder if there are 67,000 android users who would pay one pound for an app Nov 25 15:34:30 and then woke up and discovered I was late for work Nov 25 15:34:46 didou: hehe Nov 25 15:36:19 i'm currently selling around 5 apps per day, now i'm experimenting with the prices, doubling, halving and see what happens Nov 25 15:36:46 what kind of app ? Nov 25 15:37:03 or to put it differently... what app? :) Nov 25 15:37:09 hehe Nov 25 15:37:11 4 player reactor Nov 25 15:37:14 I'm planning to have a new version of BonjourMadame Nov 25 15:37:53 what is a common price for an app? Nov 25 15:38:17 i guess $1 - $3 for a small app Nov 25 15:38:42 is there an app that lets you listen to over-the-air am radio broadcasts in the us? (for new Droid) Nov 25 15:39:29 is it possible to include compiled programs( and start them up) to an .apk? Nov 25 15:40:31 Xeli: Compiled as in .apk compiled? Nov 25 15:41:12 you can definitely add .jar'ed classes to your project Nov 25 15:41:14 i think the market is seriously flawed Nov 25 15:41:19 you cant buy apps in most countries Nov 25 15:41:23 RobinB: Well i want to start another dhcp server, but i' d like to include it into the .apk Nov 25 15:41:24 you cant sell apps from most countries Nov 25 15:41:31 and most of all Nov 25 15:41:36 you can buy apps Nov 25 15:41:39 play for a whole day Nov 25 15:41:45 hmm i don' t think it'll go into a .jar Nov 25 15:41:45 the market is pretty fucked, yes Nov 25 15:41:46 and then simply refound it Nov 25 15:42:07 the refund is considered extremely consumer-friendly, and a way to build market use in the longer-term Nov 25 15:42:20 I think that's gameloft main problem with android Nov 25 15:42:36 i don't get that many refunds Nov 25 15:42:50 gameloft's main problem is that they shoved a few extremely shit j2me ports onto the market, and of course they sold badly Nov 25 15:43:04 Leeds: yes, as a user, I agree, as a seller, I hate to know that anybody could install my app, use it for 24h, and then simply get his money back Nov 25 15:43:17 Leeds: ok, didn't have that feedback Nov 25 15:43:29 didou: what kind of app is it that you would wnat to use just for 24h? Nov 25 15:43:34 if they'd tried to sell the same apps on the iPhone, they'd have had shit sales too - except they develop new apps for iphone Nov 25 15:43:34 fengor: games Nov 25 15:43:53 fengor: I could play a game per day Nov 25 15:44:10 but can you finish a game per day too? Nov 25 15:44:10 a lot of games are one day things Nov 25 15:44:15 feng: you get bored Nov 25 15:44:18 or just dont like th egame Nov 25 15:44:21 fengor: takes the right amount of steroids ... that's not the point Nov 25 15:44:28 yeah. until you forget and buy the game again, then you can't refund again ;) Nov 25 15:44:30 dont like the game is a valid reason for a refund isnt it? Nov 25 15:44:40 yep Nov 25 15:44:40 yes Nov 25 15:44:45 you don't need any reason for a refund Nov 25 15:44:56 there is an argument that a game which lasts less than a day isn't worth buying Nov 25 15:44:58 yeah i dont think refund is that much of an issue Nov 25 15:45:02 does apple store offer refund too? Nov 25 15:45:09 didou: no. Nov 25 15:45:12 didou: none at all, in normal procedure Nov 25 15:45:20 do we have to do as apple does? Nov 25 15:45:26 the refund encourages people to buy shit Nov 25 15:45:28 and try it Nov 25 15:45:54 it's possible to get refunds - and if an app is refunded, the developer has to refund 100% of the price, even though Apple has taken a 30% cut, at least in some cases Nov 25 15:46:11 i thought you could only get refunds if there was some serious defect Nov 25 15:46:42 anyone have stats about the number of apps uploaded to android market every day ? Nov 25 15:46:50 could someone explain what setTextSkewX does, ie, what is skew? i am looking for a function to make the text look a bit 3d, think star wars scroller, ie as if it was coming from inside the device going out Nov 25 15:46:55 didou: yes, on sec Nov 25 15:47:27 http://www.androlib.com/appstats.aspx Nov 25 15:47:48 around 100 new apps per day. Nov 25 15:48:04 "apps" Nov 25 15:48:11 i bet half of those are ebooks or ahome themes Nov 25 15:48:23 or plain crap Nov 25 15:48:38 Well, more than half. Nov 25 15:48:46 sigh i wish that browsergame guy who was itnerested in an android client to his game would mail back :/ Nov 25 15:51:08 themes yes, but I don't think there are that many pure spam apps nowadays Nov 25 15:52:01 do you think i could successfully charge money for a port of a GPL'd app? or would people immediately recompile and upload it for free? hmm Nov 25 15:52:17 no you can charge money Nov 25 15:52:23 the nes, snes, and genesis emu's ars GPL Nov 25 15:52:36 I suspected as much. Nov 25 15:52:54 And I see that no one has uploaded a free version. Nov 25 15:53:05 ah, that's good to hear. Nov 25 15:53:31 he doesnt exactly promote the gpl'ness of it Nov 25 15:53:46 but he did respond to requests for the source quickly Nov 25 15:53:50 Heh. Nov 25 15:54:02 Well then if I want some emulators for my phone I know where to go. Nov 25 15:54:10 :] Nov 25 15:54:35 hi, I have issues installing the SDK on archlinux Nov 25 15:54:44 I’m completely new to any of this, and I don’t know how to get org.eclipse.swt.xml.ui in eclipse Nov 25 15:55:05 (that prevents me from installing the android plugin) Nov 25 15:55:39 [10:44:46] there is an argument that a game which lasts less than a day isn't worth buying Nov 25 15:55:46 id pay $5 for 16 hours of entertainment Nov 25 15:56:01 if it was like a real movie yeah Nov 25 15:56:13 not a 2d puzzle game Nov 25 15:56:13 Why pay? Just hang out in here. It's free. Nov 25 15:56:28 you know what im saying Nov 25 15:56:32 i can get all that stuff on flash Nov 25 15:56:49 where are the emergency numbers stored? Nov 25 15:56:53 the sim card? or the phone? Nov 25 15:57:49 actually even many of the 2d flash games you just keep on playing. Like the biggest brain game on facebook Nov 25 15:57:55 000, 112, 911, 999 are all triggering emergency dialing Nov 25 15:58:24 they're probably inside android Nov 25 15:59:12 only guessing though. Nov 25 16:00:34 isEmergencyNumber: checks a given number against the list of Nov 25 16:00:34 * emergency numbers provided by the RIL and SIM card. Nov 25 16:00:55 String numbers = SystemProperties.get("ro.ril.ecclist"); Nov 25 16:01:20 112,911,000,08,110,999,118,119 Nov 25 16:02:15 you could really screw someone over... "HEY DIAL 118...ITS A COOL FEATURE" Nov 25 16:03:19 118 isnt emergency in all countries isnt it? Nov 25 16:03:34 no Nov 25 16:04:11 112 here Nov 25 16:05:47 I have a strange behavior of a textView inside a scrollview. Whenever i append text to the textView, i afterwards use "scrollView.scrollTo(0, textView.getBottom())" to scroll to the added line. Nov 25 16:05:59 This works quite well for single lines added once in a while Nov 25 16:06:25 but if more lines are added in a short amount of time, it only scrolls to the first one of the new lines Nov 25 16:06:31 mikedg-blau: thats not how emergency numbers work in cell networks Nov 25 16:06:37 Anyone an idea why? Nov 25 16:06:50 the phone doesnt dial "911" or "999"...it sends an "SOS" to the base station Nov 25 16:06:55 and it forwards it to the correct place Nov 25 16:07:06 oo Nov 25 16:07:09 the "emergency numbers" are just shortcuts put in place to be consistent with landlines Nov 25 16:07:27 i gota get going thats interesting tho Nov 25 16:09:01 app icon (correct dimensions) on Eclair emulator looks cloudy, why? Nov 25 16:09:31 what res? Nov 25 16:09:32 Could be scaling it. Nov 25 16:10:06 Skin WVGA800 Nov 25 16:10:33 the icon is 48x48x32 BPP Nov 25 16:10:36 scaling probably Nov 25 16:10:37 did any of you manage to install the android plugin in eclipse ? Nov 25 16:10:46 i think they are changing the reommended size to 72x72 Nov 25 16:11:26 mikedg-blau, why there is no scaling problem with the default icons? is this something I can fix? Nov 25 16:13:17 Anges: yes? Nov 25 16:14:11 s2s, I try to follow the tuto, but get the following message: Missing requirement: Android Development Tools 0.9.4.v200910220141-17704 (com.android.ide.eclipse.adt.feature.group 0.9.4.v200910220141-17704) requires 'org.eclipse.wst.xml.ui 0.0.0' but it could not be found Nov 25 16:14:21 I have no idea how I’m supposed to get it Nov 25 16:15:24 ive never seen that before Nov 25 16:15:34 what version of eclipse do you have Nov 25 16:15:36 galileo Nov 25 16:17:39 what os? Nov 25 16:22:18 112 is a global GSM standard emergency number - it should get translated by the network to whatever the local emergency number is Nov 25 16:23:28 why is this coming up? Error: Ignoring add-on 'google_apis-3-r03': Unable to find base platform with API level '3' Nov 25 16:24:10 Anyone know how I lock a slidingDrawer to be in the horizontal position? Nov 25 16:25:10 For those familiar with the G1, I want it to be pulled either straight up, or out from the left side. So the handle is always near the "menu" hardware button. Nov 25 16:29:01 Leeds: all emergency numbers do that Nov 25 16:29:15 s2s: really? everywhere in the world? Nov 25 16:29:32 the phone can do the translation Nov 25 16:29:38 if you dial 112, 08, 911, 999, etc Nov 25 16:29:47 the phone doesnt dial a "number" Nov 25 16:29:51 it sends an SOS Nov 25 16:30:09 and the MSC (i believe) routes this appropriately Nov 25 16:30:33 some devices may only have 911 listed as an emergency number, but android seems to have many Nov 25 16:30:38 112,911,000,08,110,999,118,119 Nov 25 16:30:48 any of those will work on my hero anywhere in the world Nov 25 16:31:02 I don't think it's the phone that translates that Nov 25 16:31:19 The phone knows emergency numbers and puts it in emergency mode. Nov 25 16:31:22 then how does the phone know to turn on gps? Nov 25 16:31:32 ive watched the log entries on an MSC Nov 25 16:31:38 If you look at the configs, there's a comma delimited list of emergency numbers. Nov 25 16:32:00 if i dial 1-800-goog-411, the MSC receives "18004664411" Nov 25 16:32:05 if i dial "911", the MSC receives "SOS" Nov 25 16:32:57 yes kroot, and the phone will treat those all as emergency numbers, and rather than passing that number directly to the base station, it just says "im dialing an emergency number" Nov 25 16:33:33 I've only messed around with the MPS and connections to the PSAP, but only on CDMA Nov 25 16:35:06 i know nothing about CDMA :P Nov 25 16:35:12 but yea i just confirmed Nov 25 16:35:21 the "dest" entry for each call is usally the number dialed Nov 25 16:35:39 but with an emergency number, the log shows: dest: SOS Nov 25 16:38:03 I guess that would make sense. I don't go around dialing emergency numbers that often :-) Nov 25 16:38:12 s2s, I’m on archlinux (sorry I was away) Nov 25 16:39:43 ive had no issues on windows xp, windows 7, ubuntu 9.04, ubuntu 9.10, or mac os x 10.5 Nov 25 16:39:50 so im not really sure Nov 25 16:40:00 i would have thought eclipse would resolve dependency issues Nov 25 16:41:41 I’m beginning to think it’s maybe too much trouble just to have a French Dvorak keyboard! Nov 25 16:42:25 or maybe I’ll try with ubuntu Nov 25 16:48:57 What's the best way for a background service to push information to a foreground activity? Nov 25 16:52:06 aidl if possible Nov 25 16:52:10 otherwise, you could always use a broadcast intent Nov 25 16:52:26 isn't aidl synchronous only? Nov 25 16:52:41 yes, your call will be synchronous Nov 25 16:52:51 you won't necessarily block the activity however Nov 25 16:53:22 It depends on what you're doing I guess Nov 25 16:53:24 what I want is a background service that waits for internet results, and then notifies the foreground process Nov 25 16:55:16 I'd just go with aidl. It sounds like you want the activity hooked up to the service anyway. Nov 25 16:55:25 use a broadcast intent if you want it decoupled Nov 25 16:55:26 and then poll it? Nov 25 16:55:52 you don't need to poll Nov 25 16:55:52 well Nov 25 16:55:52 I guess you would Nov 25 16:56:02 you could always have the broadcast receiver do something, kick off an interrupt method, whatever Nov 25 16:56:39 I'm not so sharp with those yet.. but that would spawn a new Activity right? Nov 25 16:56:55 is there a way to get the text (in a canvas) to be rendered i bit less wide at the top and a bit more wide at the bottom to give a fake 3d effect? i found Skew, but it doesn't really do what i want Nov 25 16:56:59 not necessarily Nov 25 16:57:04 broadcast receivers aren't activities Nov 25 16:57:15 you can have a broadcast receiver start an activity however Nov 25 16:57:15 I see Nov 25 16:57:23 I will look into them more then... thanks :) Nov 25 16:58:30 Yep, this is the right interface for me.. I didn't realize a receiver didn't have to be an activity Nov 25 16:58:31 thank you Nov 25 16:59:15 totally unrelated question :) Can we control the flash on the droid? That thing would make a damn good flashlight. Nov 25 17:00:34 bdodson: no Nov 25 17:00:35 http://androidforums.com/motorola-droid/20679-mototorch-led-2-0-released-free-3-days.html Nov 25 17:00:35 sorry Nov 25 17:00:47 you're not the first person w/ that idea Nov 25 17:01:01 dont want to be :) just want to use my flash Nov 25 17:01:01 kroot: you're fucking kidding me Nov 25 17:01:12 glory to the first man to dexdump! Nov 25 17:01:38 lov: I haven't tried it, but I happened to see it on a forum earlier Nov 25 17:02:57 I guess in the worst case you can probably create a camera interface and just turn on the flash Nov 25 17:03:00 wonder if thats what they do Nov 25 17:03:09 yeah, I'm kind of curious Nov 25 17:03:23 lov: Also in that thread, the guy says he had a change of heart and it will be free forever Nov 25 17:03:47 would it be possible to have a dynamic icon for ones app? Nov 25 17:05:01 asperon: doubt it - the icon is a resource, and they tend to be read-only Nov 25 17:05:43 how can i give an app root permission? Nov 25 17:06:08 Xeli: have it run something under su? Nov 25 17:06:15 Leeds: thats what i figured Nov 25 17:06:30 that gives me Permission denied aswell Nov 25 17:06:43 it'll only work on a rooted phone, of course Nov 25 17:06:47 im trying to use runtime.exec("su && blabla") for example Nov 25 17:06:53 anybody have any ideas of the fake text writing? i felt that Skew would be the way, but it seems its not, or i am missing something Nov 25 17:06:57 su &&? Nov 25 17:07:02 the phone is rooted ;) Nov 25 17:07:30 asperon: you probably have to write it onto a canvas with a transformation matrix Nov 25 17:07:35 well su is to 'switch' to superuser right? or should i leave the && out? Nov 25 17:07:43 Xeli: rtfm :P Nov 25 17:07:43 asperon: the mototorch app they just linked to does that via a widget, sort of Nov 25 17:08:00 so its not a regular icon, but the widget is the size of an icon and can change Nov 25 17:08:13 * Leeds is not a graphics expert, but has spent a lot of time trying to grok the canvas/bitmap concept Nov 25 17:08:17 haha Nov 25 17:08:22 Xeli: su starts a subshell. normally you'd do su -c "my command here" but I'm not sure how the android su interprets that Nov 25 17:09:35 bdodson: i am aware of the concept, i was more thinking in the lines of the add widget dialog etc Nov 25 17:09:55 both su or su -c give the same permission error Nov 25 17:10:03 Leeds: ill read up on the matrix then, thnx Nov 25 17:10:21 don't know anything about that. animated gif would be the obvious thing to try but I doubt it works. Nov 25 17:10:21 Xeli: Then you have a broken su program or it's been disabled permanently via superuser.apk Nov 25 17:11:04 from a terminal su still works though, but just not from runtime.exec Nov 25 17:11:04 are the git repos full repos or do they only contain 1 branch? Nov 25 17:11:20 how do I view a branch other than 'master' (eclair)? Nov 25 17:12:24 pfn: You'd clone a repo and specify that branch name instead of 'master'. Nov 25 17:12:46 hmm, so the .git that gets cloned only contains one branch Nov 25 17:13:11 aha, "As of 1.5 applications can no longer use su." Nov 25 17:13:48 pfn: If you clone a repository, you have everything. I think you can then use checkout to switch branches. Nov 25 17:14:03 jeremyw, I don't see any branch other than master when I do 'git branch' Nov 25 17:21:48 ah, git branch -r Nov 25 17:28:26 Is there a reference implementation for Adapter or ListAdapter? For example, registering/unregistering data observers Nov 25 17:29:47 hmm, there might be some examples in the sdk. I've seen a couple of list implementations there, but don't remember details Nov 25 17:30:02 pfn: git branch -a Nov 25 17:30:11 pfn: That should show you the branches. Nov 25 17:31:10 yeah, I have no git-fu Nov 25 17:31:13 heh Nov 25 17:33:35 And how do cursor-based adapters implement Adapter's getItem()? Is it fine to go through, say, my Collection every time just to see what's Nth? Nov 25 17:34:07 anyone know if android/android phones could handle GSM 03.40's compression? thanks in advance Nov 25 17:35:08 What happened to the samples in android-sdk_r3? Nov 25 17:35:15 the platforms directory is empty. Nov 25 17:35:35 mikejet, you have to download platform separately from SDK, read README Nov 25 17:36:33 Koterpillar, this this change in the past couple days? i'm just trying to retreive a dir i thought was there. LunarLander, etc. Nov 25 17:36:45 Koterpillar, Did this change in the past couple days? i'm just trying to retreive a dir i thought was there. LunarLander, etc. Nov 25 17:37:13 No idea, my Android experience is a couple of days :) Although it was said as being new in SDK R3 Nov 25 17:39:53 can you wrap the lines in LogCat? Nov 25 17:40:12 mikejet: I think it changed with 2.0? Nov 25 17:40:36 that was the first time I saw the change at least Nov 25 17:42:40 ah, detached it. that will work Nov 25 17:44:41 so how do you learn this stuff? I went through the tutorials and I'm lost. I do a lot of perl in vi on unix but no gui or event driven programming in an ide Nov 25 17:44:51 What is the best practise for getting a service running in a new thread, making the thread in the activity and starting the service, or calling the service normally and making a new thread from within the service? Or.. any other way? Nov 25 17:45:19 DukeGriffin: you looking for a long-running background thread? Nov 25 17:45:27 or just a background task to load some data for your activity Nov 25 17:46:02 edenman: It will be long running, start's with the activity and finishes with it. Nov 25 17:46:38 look at AsyncTask Nov 25 17:46:49 okay, thank you. Nov 25 17:47:03 pfn: Did you get your git stuff worked out? Nov 25 17:47:41 honestly, isn't there any way to get a java application to take advantage of the rooted phone....? Nov 25 17:47:56 jeremyw, yes, thanks Nov 25 17:48:09 you can kick off the AsyncTask when you start the activity and keep a reference to it so you can kill it onDestroy Nov 25 17:48:10 Xeli: how is it that you want to 'take advantage' of it? Nov 25 17:48:29 what is up with the latest SDK download. the "./tools/android update sdk" call complains about there being "No command line parameters provided", then the UI complains about https: not working. its crazy. Nov 25 17:48:36 Xeli: for iptables? Nov 25 17:48:45 at the moment anything you be nice.. iptable for example yes Nov 25 17:48:49 you could insecurely hack it up by changing permissions on the device Nov 25 17:48:53 Xeli: use 'su' Nov 25 17:48:55 Xeli, ssh inside Nov 25 17:49:10 if you mean from a java application (why?) Nov 25 17:49:46 i'm talking about an app written in java (or c for that matter) use root, su won' t work when using exec Nov 25 17:49:58 why won't it? Nov 25 17:50:16 it just gives me a permission denied when i use runtime.exec("su"); Nov 25 17:50:35 what firmware are you using? Nov 25 17:51:06 1.6, from a terminal su does work Nov 25 17:51:40 stock 1.6's su only works from adb Nov 25 17:51:54 there are relacements, though they are hard to find (probably my fault, tbqh) Nov 25 17:52:48 but there are app' s out there that can use root? connectbot for example or the tether app? Nov 25 17:52:49 or make iptables suid root Nov 25 17:53:22 Xeli: they use the 'su' that allows stuff other than adb :/ Nov 25 17:54:44 zinx: What do you mean? use something other than su? to execute commands? Nov 25 17:55:37 Xeli: no, they use 'su', but it's a different one Nov 25 17:55:50 Xeli: it's the one that comes with custom firmwares like cyanogenmod, rather than the stock ADP1 one Nov 25 17:57:02 zinx: I see, so how would app's gain access that already come when you buy a phone? i'm guessing some of the app on the phone must have root access? Nov 25 17:57:52 system apps have elevated permissions out of the box Nov 25 17:58:49 any clue' s as how that could be done? suid an app or something? Nov 25 17:59:08 have it installed on the system partition when the device ships Nov 25 17:59:23 step 1: get employed by Google or another OHA company Nov 25 17:59:27 step 2: integrate app Nov 25 17:59:34 step 3: profit! Nov 25 17:59:52 lol Nov 25 18:00:08 don't laugh, it might happen for my app Nov 25 18:00:08 when you have an rooted app, you could simulate that your self right? not talking practical here just interested Nov 25 18:00:12 it _might_ ;) Nov 25 18:00:35 i personnally don't believe in it, but my boss does :p (the ceo has connections with the samsung's bosses) Nov 25 18:00:58 so he believes he can convince them to ship my app with their phones... Nov 25 18:01:03 future will tell us ;) Nov 25 18:01:24 so how do you test your apps, Ohan? Nov 25 18:01:53 Xeli, painfully, and with a lot of pain :p Nov 25 18:02:05 i asked a few guys here to play a bit with it Nov 25 18:02:16 er, yeah, sorry about that... Nov 25 18:02:18 and i played (and will play some more) with AVDs Nov 25 18:02:24 Leeds, sorry about what? Nov 25 18:02:25 took it somewhere I expected to see your network - but didn't Nov 25 18:02:33 oh, no problem at all ;) Nov 25 18:02:41 all the help i have is a bit less pain ;) Nov 25 18:02:52 Leeds, what was the network's name? Nov 25 18:03:04 if it's "the cloud" it should see it Nov 25 18:03:12 no, the cloud is in the UK, isn't it? Nov 25 18:03:18 if it's bt openzone too (just citing the two biggest partners we have in the uk) Nov 25 18:03:23 yup Nov 25 18:03:26 I'm in Hong Kong Nov 25 18:03:29 oh Nov 25 18:03:29 man Nov 25 18:03:31 sorry :p Nov 25 18:03:40 i just got confused Nov 25 18:03:40 you forgot, or I never mentioned? Nov 25 18:03:46 i thought i was talking to frinkz ;) Nov 25 18:04:00 I think I'm flattered by that :) Nov 25 18:04:07 nah, no problem, you told me a few times already, and we were talking about y5zone hotspots and locations a bit earlier ;) Nov 25 18:04:16 just got confused Nov 25 18:04:17 anyway, I went to somewhere where I thought there was a y5zone hotspot, but I couldn't see it Nov 25 18:04:26 coz of you nickname, and the fact that frinkz is in the uk ;) Nov 25 18:04:31 ok Nov 25 18:04:51 there's actually two parts i try to test in the app: Nov 25 18:04:56 will try to force myself to go to mcdonalds tomorrow for lunch, just so I can test it :) Nov 25 18:05:03 the app itself (gui, usability, ergonomy and so on) Nov 25 18:05:12 and the WISPr protocol (connecting to one of our partner's hotspot) Nov 25 18:05:17 haha :D Nov 25 18:05:39 frinkz told me he was going to force himself to cross the street to the pub, to test it there:D (on a "the cloud" hotspot) Nov 25 18:05:43 only comment so far would be that it seems to take a long time to do a scan - I don't know if the underlying wifi stuff takes that long anyway, but having the spinner up on screen that long is a bit disturbing Nov 25 18:06:34 mmm Nov 25 18:06:36 how long? Nov 25 18:06:43 just a rough idea? Nov 25 18:06:45 2 seconds? 5? 10 ? Nov 25 18:07:22 it's usually taking less than 2 seconds on mine Nov 25 18:07:23 Hello, is it possible to change the locale for just one app that gets started via startActivity? Nov 25 18:07:29 so maybe we're not talking about the same thing ;) Nov 25 18:07:31 heading towards a minute? Nov 25 18:07:55 that was standing in the doorway of a shop which should have had a y5zone AP in it Nov 25 18:09:02 2am... must sleep Nov 25 18:09:43 wow... 1 minute to do a wifi scan? Nov 25 18:09:47 that is strange.... Nov 25 18:10:11 Leeds, when you have the time, could you download the latest version from the url i gave you, and try that again? it shouldn't take that long Nov 25 18:10:18 if it does, please send me the logs ;) Nov 25 18:11:00 willdo, tomorrow Nov 25 18:11:09 thanks a lot, once again ;) Nov 25 18:11:13 have a good sleep :! Nov 25 18:11:22 g'night Nov 25 18:18:30 Hello, I will be out of internet access for a few days, is there any way, barring setting up wget, that I can download the dev guide and/or other documentation? Nov 25 18:18:32 Thank you Nov 25 18:18:48 Leif: the dev guide is all in the SDK you downloaded Nov 25 18:19:06 jasta: Thanks Nov 25 18:22:46 Um...dumb question, I can't find it anywhere in the sdk package. Nov 25 18:22:57 I downloaded the linux build from her: Nov 25 18:22:58 here: Nov 25 18:23:05 http://developer.android.com/sdk/index.html Nov 25 18:25:38 Leif: its there, look harder. Nov 25 18:29:24 What is causing the "obtainBuffer timed out (is the CPU pegged?) 0x37dad8" that shows up in my logcat all day, every few seconds. On the new Droid 2.0. Nov 25 18:46:38 Question: Does anyone know if Vint Cerf's group is planning to opensource the DTN stack for Android? I can find tons of news articles, but no code. :( Nov 25 18:52:12 anyone know of a tether app that supports either port forwarding or DMZ so ports can be opened for games on the tethered pc? Nov 25 18:58:02 connectbot+pdanet? Nov 25 18:58:57 thanks Ill check it out Nov 25 18:59:26 Why would Android throw VerifyError? Is it a way of saying "insufficient permissions"? Nov 25 19:01:46 ronghail_: are you sure either one support port forwarding? Nov 25 19:01:57 Aha, found out: it won't load my library JAR. Recompiling, I guess Nov 25 19:04:02 dotnetted: I have forwarded ports with connectbot, yes Nov 25 19:04:48 not over pdanet but I don't see why it would work any differently Nov 25 19:06:14 thanks Nov 25 19:06:28 you'd need an sshd somewhere though. maybe you wanted some reverse nat thing instead Nov 25 19:06:48 I am no expert, just trying to help Nov 25 19:09:32 gotcha - just need something simple to get data sent to the G1s port 9000 to make its way to the tethered laptops port 9000 Nov 25 19:10:29 On these same lines, is there a tethering application that works with Linux? Nov 25 19:11:03 Renfield: not with non-rooted phones, currently (no reason there couldn't be, though) Nov 25 19:11:06 well, i take that back Nov 25 19:11:09 http://code.google.com/p/android-wifi-tether/ Nov 25 19:11:10 i think there was a SOCKS proxy at one point Nov 25 19:11:27 wont the wifi tether work with linux? Nov 25 19:11:27 Oh, I'll look that up. Nov 25 19:11:29 Thanks. Nov 25 19:12:30 I'm not sure about the WiFi tether. First think that I think might be a problem is that you'd need an access point between your laptop and your phone. Nov 25 19:12:42 dotnetted: android-wifi-tether requires root Nov 25 19:13:01 android-wired-tether requires root /and/ a custom kernel (though some custom firmwares like cyanogen already include it) Nov 25 19:13:06 oops misread qu Nov 25 19:13:23 well, he didn't specify not having root, but he didn't specify that he has root either Nov 25 19:13:42 and you guys were talking about pdanet / other proxy methods that there's no reason to use on rooted phones :/ Nov 25 19:13:45 so he specified a lack of specification? :) Nov 25 19:13:48 Oh, and it supports ad-hoc. Nov 25 19:14:07 But yes I meant non-rooted. Nov 25 19:14:45 I generally use bluetooth tethering, with "wireless tether for root users" Nov 25 19:14:52 Clearly it should be possible, if PdaNet works with non-rooted phones. Nov 25 19:15:04 I've got the Droid, so no root for me. Nov 25 19:15:09 ah, gotcha Nov 25 19:15:22 JesusFreke: update your kernel dude :) Nov 25 19:15:50 though bluetooth is a great way to rate-limit it Nov 25 19:16:38 zinx: huh? This is the 1.5 kernel (.29 I think? don't recall). It has the good bluetooth stuff Nov 25 19:17:11 not the crappiness from 1.0/1.1 Nov 25 19:17:25 Ah, looks like Tetherbot works with Linux. Nov 25 19:17:35 there should be an entry in the about screen for the IMSI Nov 25 19:32:49 Does the Android room ban webchat people? Nov 25 19:37:29 Does the oncreate method have a limited amount of time before it needs to be done? Nov 25 19:40:02 Xeli: yes Nov 25 19:40:06 just like anything on the UI thread Nov 25 19:40:14 it has to last < 5 seconds Nov 25 19:40:55 why would your oncreate take more than a few milliseconds... Nov 25 19:41:56 ahh oke thanks Nov 25 19:42:19 well i'm just testing stuff, so i put everything in there, but that explains it :P Nov 25 19:42:34 ah i see it now in logcat aswell ;o Nov 25 19:53:57 LordRawK: there are no bans set to indicate that Nov 25 19:55:04 alright just checking. because the only times i have been in to the room are when i've been testing a decent app when im on a mac...and said "testing" and left. Nov 25 19:55:16 now it says i am banned. Nov 25 19:55:33 just curious is all Nov 25 19:55:47 well theres your clue Nov 25 19:55:59 its kind of a no-no on IRC to "test" in live channels Nov 25 19:56:18 no i said "testing" meaning like testing the irc client. Nov 25 19:56:27 its kind of a no-no on IRC to "test" in live channels Nov 25 19:56:50 Druid ? Nov 25 19:56:54 :D Nov 25 19:56:56 i wasn't testing programs, i was testing the app.. the client. xirc, and ircle. Nov 25 19:57:16 use some test channel Nov 25 19:57:19 like #testing Nov 25 19:57:24 or #opers :D Nov 25 19:57:37 my chat wasn't appearing. i could really care-less. i mean if i get banned for saying the word testing then so be it. Nov 25 19:58:01 nothing compares to mirc heh Nov 25 19:58:09 a bunch of junk on the mac. Nov 25 20:00:09 Hi, anyone know a way of creating a progress dialog from a service? Nov 25 20:06:46 LordRawK: the point is not the client you were using, but that you joined, said meaningless text, and left. that probably resulted in a ban. You can type /bans to see a list and look if your hsotname is there Nov 25 20:12:19 granted it was meaningless it was also harmless. yes i probably should have entered another room but i was motivated with my android device by my side and was caught off guard by the way the client was responding. Nov 25 20:13:01 Can anyone help please? Nov 25 20:13:16 it is what it is. i'll check later when i am on an actual client. i am on some bullshit webchat right now lol. Nov 25 20:14:41 at least you gave me some insight on to maybe why it happened. Nov 25 20:15:18 tomfreay: I've never tried to do so, but what is blocking you? Nov 25 20:15:19 tomfreay: use a notification Nov 25 20:16:32 The documentation says that dialogs can only be created from activies, I would use a notification but I want to stop the user pressing things on screen, its a dialer app that locks the screen when the light sensor reads 0 Nov 25 20:16:58 the progressdialog is how I was going to "lock" the screen Nov 25 20:20:49 ugh, it realy bothers me that InetAddress name resolution requests are not cancelable Nov 25 20:21:01 really* Nov 25 20:21:36 jasta: you have to wait for the server to respond or time out? That sucks. Nov 25 20:22:14 AbortRetryFail: yup. Nov 25 20:22:39 i'm building my own work-around to this by basically just taking a slight performance hit and spawning a second thread to do dns lookups Nov 25 20:22:43 wrap it in a background thread and kill the thread? Nov 25 20:22:47 heh, yep Nov 25 20:22:52 edenman: you can't kill threads, btw. Nov 25 20:22:55 there's no such concept Nov 25 20:23:02 (not in java, that is) Nov 25 20:23:08 pretty much every OS has blocking dns lookups Nov 25 20:23:10 didnt think you could in linux. Nov 25 20:23:17 and relies on putting it in a thread ot remain interactive Nov 25 20:23:23 *to Nov 25 20:23:38 ewon: they are running in a thread, of course. you're missing the point. Nov 25 20:23:57 if i want to cancel the thread that it is in, i cannot. for all other socket operations i'm performing i cna, just not that specific one. Nov 25 20:24:00 he's saying you can't tell it to give up. Nov 25 20:24:21 on linux normally i could just signal the tid and then deal with it and everything would be fine. but on java, of course you cannot do that. Nov 25 20:24:38 so i have to create a _second_ thread, so that the first one can be canceled and the second dns one cannot. Nov 25 20:25:05 Thread.interrupt() Nov 25 20:25:09 this is because i need semantics where i can cancel all of my threads doing socket I/O and wait for them to complete without blocking the main thread Nov 25 20:25:12 guycole: try again. read the documentation. Nov 25 20:25:15 hi Nov 25 20:25:39 "Creating external source for type=com.facebook.auth.login, packageName=com.facebook.katana" What does that all mean? Nov 25 20:25:48 guycole: this is a common misconception held by java programmers, and the problem goes all the way up to the top -- even Apache Harmony has stupid bugs which misunderstand how interrupt works. Nov 25 20:25:51 *snicker* Nov 25 20:26:37 anyway, it bothers me that with this design i have to accept that i can leave orphaned threads that are only doing DNS lookup. Nov 25 20:26:55 If I'm building an app with multiple screens to flip through, should I make each screen an Activity or am I supposed to use setContentView on 1 activity instead? Nov 25 20:26:55 worse still is that DNS lookup is cached, so i might end up creating threads to run code that returns immediately. Nov 25 20:27:21 the only way around that is to create my own cache becausee the jre doesn't let me access the one it maintains. Nov 25 20:27:27 nterrupts this thread. Unless the current thread is interrupting itself, which is always permitted, the checkAccess method of this thread is invoked, which may cause a SecurityException to be thrown. Nov 25 20:27:36 student_modnar: each screen is an activity, ideally Nov 25 20:27:55 guycole: keep reading. Nov 25 20:28:06 jasta: thanks, I was wondering if activities equated to programs, so I guess not :) Nov 25 20:28:13 student_modnar: no, they do not. Nov 25 20:28:22 they equate to windows Nov 25 20:28:26 sort of Nov 25 20:28:44 Is there a way to create a dialog from a service using whichever activity is currently on top? Nov 25 20:28:46 not really actually, that wasnt a great analogy :) Nov 25 20:28:49 *snicker* I know what it says. Nov 25 20:28:53 tomfreay: no Nov 25 20:28:59 tomfreay: services should use notifications Nov 25 20:29:09 jasta: well thanks for the answer anyways, I'm really new to mobile development Nov 25 20:29:11 guycole: then why did you suggest this? Nov 25 20:29:20 I know they should, but is it possible? Nov 25 20:29:24 Because it works. But you don't have to use it. Nov 25 20:29:45 guycole: you believe that interrupt breaks out of blocking socket I/O on non-interruptible channels? Nov 25 20:30:01 tomfreay, it should, you can create a dialog and use the show() method ? Nov 25 20:30:06 because not only are you wrong according to the documentation, you're also wrong in practice. Nov 25 20:30:08 I didn't say anything about freeing you from a blocked I/O Nov 25 20:30:34 then what does "it works" mean to you? because apparently you are having your own conversation. Nov 25 20:30:58 Galize: calling show() from a service throws errors, thought maybe I could use the context of whatever activity currently has focus? Sorry Im new to android! Nov 25 20:31:21 *shrug* - I'm busy. Good luck. Nov 25 20:31:31 tomfreay: look up NotificationManager. thats what you want. Nov 25 20:32:19 guycole: good luck with what? i understand this problem and you do not. i'm not hoping to "fix" my issue because it's inherent to java's specification and i know that. Nov 25 20:32:35 i'm just frustrated that java is so broken in this area. on many levels. Nov 25 20:32:44 jasta: I know thats the best practise, but I am trying to lock the screen when the light meter reading=0, progress dialog does this well, is there a better way? Nov 25 20:32:55 Android, give me access to signal() please :) Nov 25 20:33:28 tomfreay: to lock the screen? i dont know, have you checked for some API for this? Nov 25 20:33:46 obviously there is _some_ way, but it might be private to the PhoneWindowManager or that general area. Nov 25 20:34:29 you should be investigating android source code because im betting you wont find a public API for what you want :) Nov 25 20:34:36 yeah I've looked, can't find anything, I tried startActivity and calling show() from there, but it never shows the dialog! Nov 25 20:34:55 im telling you that you CANNOT start a dialog from a service. that's not what we're discussing here. Nov 25 20:35:14 you want to perform some action in a service, such as locking the screen -- that may be possible, but likely via private APIs and has nothing to do with dialogs. Nov 25 20:35:20 Jasta, you could quit whining and start a supervisory thread w/a timer. You could retain the TID and generate a interrupt. Or you can sulk. Not my project. But don't assume you are the only person who knows a solution. Nov 25 20:35:30 i assuming you mean "locking the screen" as performing a similar operation to pressing the end call button? Nov 25 20:35:56 guycole: i already worked around it by creating a second thread and refusing to clean it up Nov 25 20:36:06 guycole: as i said earlier. and a timer? wtf? are you insane? Nov 25 20:36:31 yeah that kind of idea. I don't really need it locked, my apps basically a proximity sensor for when your in a phone call, so I want to stop the user pressing odd things with there cheak Nov 25 20:36:42 i genuinely don't know if you have no clue what youre talking about at all, or you do and you're just really confused what i'm talking about. Nov 25 20:37:16 Congratulations and good luck. I'm busy. Nov 25 20:37:17 tomfreay: do some phones not already have that? Nov 25 20:37:22 tomfreay: i figured, and you need to investigate how that behaviour is implemented inside the phone policy. I bet you will find that it is private. Nov 25 20:37:57 guycole: again, what is this "good luck" bit? i have already created a suboptimal solution which i am certain is the best you can get. Nov 25 20:38:24 Good luck w/your interpersonal skills and your professional development. They both need help. Nov 25 20:38:51 lol, wow. Nov 25 20:38:56 ok, thanks for your patience with me! The alternative for me is starting an activity from the service, which will setContentView with a view that just says screen locked, but if I do this it just draws a blank window with a title, but no textviews etc Nov 25 20:39:16 tomfreay: but that won't lock the screen, of course. Nov 25 20:39:31 No, but it will stop the user pressing end call with their cheak Nov 25 20:39:44 that will just start an activity, the user could still press home or back or whatever. Nov 25 20:39:44 which is what I want to do Nov 25 20:39:49 and if you disable all that, then you've basically just broken their phone Nov 25 20:39:52 thats fine Nov 25 20:40:01 I don't mind them pressing back or home Nov 25 20:40:12 so how is this locked then? Nov 25 20:41:02 the screen is "locked" but the buttons are not, the phone its for is the hero, pressing physical buttons will in a call is difficult, but accidently pressing stuff on the screen with your cheak is easy Nov 25 20:41:09 the only situation i can imagine a proximity sensor being useful is if it turned off the screen and therefore disabled all input except the unlock sequence (menu twice, power+menu, etc) Nov 25 20:41:30 tomfreay: uhm, you know the call screen is already locked right? Nov 25 20:41:44 the call screen disables all touch events -- including dragging down the status bar Nov 25 20:41:57 not on the hero Nov 25 20:42:11 did they implement their own in call screen or something? Nov 25 20:42:19 because in the open source tree it locks the screen. Nov 25 20:42:21 yep, with a nice big red end call button Nov 25 20:42:30 wow and they dont lock that? Nov 25 20:42:34 nope Nov 25 20:42:39 congratulations HTC Nov 25 20:42:48 Hey all does someone mind helping me? Nov 25 20:42:50 indeed, Nov 25 20:42:56 Its with basic java stuff Nov 25 20:43:03 hence me trying to create the prox sensor Nov 25 20:43:19 I'm just having trouble getting something to work Nov 25 20:43:32 tomfreay: i see, well in that case an activity which disables all touch events like the original phone app does could work, though i would still recommend just turning off the screen if you can Nov 25 20:43:51 Hopefully before standup. Just finishing up lunch. Nov 25 20:43:55 anyone here pretty good with java? Nov 25 20:44:04 kukag: don't ask to ask, just ask. Nov 25 20:44:07 how would I do this? Nov 25 20:44:12 jasta: sorry Nov 25 20:44:16 alrihgt heres the problem Nov 25 20:44:28 I'm following video tutorials and were creating a basic java app Nov 25 20:44:36 tomfreay: well you'd look at the phone policy source code and figure out what the "end call" button does. then try to determine if there is some public way to do the same or similar Nov 25 20:44:43 it keeps track of our books, people we lent our books to and how many books thye can check out Nov 25 20:44:54 so we have our Persons.java setup and were right now using scrapbook Nov 25 20:44:55 tomfreay: that is in frameworks/policies/base fyi Nov 25 20:45:13 will doing that also turn off the screen? Nov 25 20:45:20 so we added the package so it knows person is actually org.totalbeginner.tutorial.Persons Nov 25 20:45:26 so in scrapbook he types Nov 25 20:45:37 Person p = new Person(); Nov 25 20:45:38 tomfreay: i'm telling you to learn something, not how to turn the screen off :) Nov 25 20:45:40 then under it Nov 25 20:45:41 P Nov 25 20:45:59 which means it should show what the class Persons.java set Persons as Nov 25 20:46:00 kukag: let me stop you there... Nov 25 20:46:05 but it doesnt Nov 25 20:46:05 do you have a book on Java? Nov 25 20:46:06 ok whats up Nov 25 20:46:19 umm ya but im not sure if i should read it or not Nov 25 20:46:25 ill link you to the book on amazon Nov 25 20:46:32 you tell me if its worthy a beginner read Nov 25 20:46:42 it sounds to me like maybe you just simply need to learn Java. Nov 25 20:46:53 lol thats what im trying to do Nov 25 20:46:57 here lemme tell you Nov 25 20:47:02 This is my first programming language Nov 25 20:47:05 try #java? Nov 25 20:47:08 and i just began yesterday Nov 25 20:47:11 last thing jasta, sorry for being a pain, is there a method for disabling touch input in an activity? Nov 25 20:47:12 and if you consider the size of the book, and the average speed at which we type, you'd be here for a very long time to learn the contents of a book from us :) Nov 25 20:47:17 this is the book i have Nov 25 20:47:24 http://www.amazon.com/Java-Object-Oriented-Problem-Solving/dp/0130113328 Nov 25 20:47:41 in WebViews, how to map the Tab key to nextfocus? Nov 25 20:47:44 well I was just asking you why my scrapbook was giving me na error Nov 25 20:47:54 kukag: id probably recommend the head first java book. Nov 25 20:48:03 beginners seem to like it a lot, though i have not personally read it. Nov 25 20:48:19 hmm what about the book in that link i gave you Nov 25 20:48:26 tomfreay: im sure there is -- you'll need to consult the phone app to see how it does it. the source code for android is available, please use it. Nov 25 20:48:28 you think as a beginner i would be comfortable reading that Nov 25 20:48:38 kukag: sure, read it. Nov 25 20:48:41 read everything you can. Nov 25 20:48:42 hmm alright Nov 25 20:48:48 kukag, try a more fundamental book. that one presumes you already know a programming language or have access to a live instructor. Nov 25 20:48:52 jasta: its weird in the video i do what he does but then it tells me Nov 25 20:48:53 darryl_sockwell: P cannot be resolved Nov 25 20:49:06 kukag: i do thing you should pick up head first java as well. Nov 25 20:49:11 hmm Nov 25 20:49:17 think* Nov 25 20:49:17 do you know about how much it cost? Nov 25 20:49:26 thanks jasta, off to do more reading! you have been very helpful! Nov 25 20:49:26 and i do also think that you are a long ways away from being productive on android :) Nov 25 20:49:34 i pay about $60 ea. for technical books Nov 25 20:49:37 i know that =P Nov 25 20:49:44 but you can probably find an outdated edition for less Nov 25 20:49:50 check amazon, etc Nov 25 20:49:51 hmm well i have a pdf Nov 25 20:49:57 for complete beginners but its java 5.0 Nov 25 20:50:11 that should be OK for a while Nov 25 20:50:17 Your Brain on Java, A Beginners Guide to Java Nov 25 20:50:27 you're making me crave caffeine Nov 25 20:50:34 lol Nov 25 20:50:36 its actually Nov 25 20:50:43 "Your Brain on Java - A Learners Guide" Nov 25 20:50:55 kukag: honestly, read everything you can get your hands on. including the java tutorials that sun puts out there. Nov 25 20:51:03 read until you feel like you understand something significant :) Nov 25 20:51:13 alright =P Nov 25 20:51:15 if after you read a book you dont feel like you understand something significant, find another and read it. Nov 25 20:51:16 1 last thing Nov 25 20:51:30 it is without a doubt the most effective way to learn programming languages. Nov 25 20:51:30 i know this is an android dev chat lol but do you know any good pdf readers for iphone? Nov 25 20:51:33 cnsider taking a programming class at a community college, they aren't all that expensive Nov 25 20:51:36 that way I can read off my iphone Nov 25 20:51:41 the pdf is too big to email to myself Nov 25 20:51:44 darryl_sockwell: ugh, no :) Nov 25 20:51:47 i do not recommend that Nov 25 20:52:01 why not jasta? Nov 25 20:52:05 programming courses at any university level are probably one of the worst ways to learn to program. Nov 25 20:52:14 really? Nov 25 20:52:28 this is my opinion obviously, but yes i feel that way very strongly. Nov 25 20:52:46 hmm whys that? is it to much for a beginner to grasp at the beginner? Nov 25 20:52:54 at the beginning* Nov 25 20:52:54 no, it never becomes advanced. Nov 25 20:53:00 it is _always_ at a beginners level. Nov 25 20:53:05 ooh Nov 25 20:53:05 got ya Nov 25 20:53:05 hmm Nov 25 20:53:09 even at the post-graduate level it is that way. Nov 25 20:53:22 well ill go read that java 5.0 beginners guide thing Nov 25 20:53:25 its 690 pages Nov 25 20:53:26 yikes! Nov 25 20:53:31 haha Nov 25 20:54:10 the advantage to a university is access to resources, which is certainly nice, but you won't even get that at a community college as darryl_sockwell suggested :) Nov 25 20:54:37 color me stupid then ;P Nov 25 20:54:38 well I appreciate all the input Nov 25 20:54:49 darryl_sockwell: no, i did not mean to imply that. Nov 25 20:54:51 for now its time to get reading =D Nov 25 20:55:07 im playing, dont worry Nov 25 20:55:27 access to resources? Nov 25 20:56:07 its just that i do not feel most universities (especially here in the US) appropriately measure the level of complexity involved in correct software engineering. Nov 25 20:57:19 the marriage of university and business is probably responsible for this "code until it works" attitude that's so common in this field :) Nov 25 20:59:39 I load a Webview of form page, how can I map the Tab key or enable the "Next" to change the focus?. please point me to the right direction Nov 25 21:04:47 can you have a TextView rotated by 90 degrees? Nov 25 21:05:05 The Droid is niiiiice :> Nov 25 21:05:15 sure is Nov 25 21:05:50 buk Are you seeing "obtainBuffer timed out (is the CPU pegged?)" in the adb logcat? Nov 25 21:06:23 whats pegged? Nov 25 21:06:36 and i dont have connected any debugger (yet) ;) Nov 25 21:06:40 i don't know. how can i see if the cpu is pegged? Nov 25 21:07:39 okay, so I rewrote my application to use Activities for windows, but I can't seem to get the first window to switch to the second window, it just switches screens and goes black with only a titlebar, I'm launching the second Activity by creating an intent and then calling startActivityForResult Nov 25 21:08:29 mikejet, there's a cpu breakdown in ddms Nov 25 21:09:39 mikejet: you mean if its running with 100% cpu all the time? Nov 25 21:10:03 mikejet, ddms -> sysinfo Nov 25 21:10:47 btw. any recommondation for an IM-Client support: IRC and Jabber? Nov 25 21:10:55 supporting, even Nov 25 21:11:23 I'm trying to use jdb on Checkin.java and it can't seem to find it...Source file not found: Checkin.java ... I did jdb from frameworks/base and tried from frameworks/base/core/java/android/provider... anyone seen this behavior? Nov 25 21:12:33 well, this is pretty 100% idle. The logcat msg that comes up every 3 secs has the AudioTrack tag. Nov 25 21:14:52 Anyone know if there are any methods for retrieving the currently running instance of an application, such as the PhoneApp? Nov 25 21:21:20 <_tux> hi guys i have the following code that gives me trouble Nov 25 21:21:20 <_tux> http://pastebin.com/d60fe8753 Nov 25 21:21:35 <_tux> at line 6 Nov 25 21:22:12 <_tux> the error says: cannot instatiate the type inputstream Nov 25 21:34:41 Simple Question: How do I use view from one class in activity in another class? Nov 25 21:35:44 ido_: You can use findViewById() to find the view. Nov 25 21:36:15 So you mean that every view must have an XML? Nov 25 21:36:55 Oh, no it doesn't. Nov 25 21:37:09 I'm not sure in that case. Maybe where you instantiate it you can give it an Id. Nov 25 21:38:07 the view can do .setId(int), but how to I pull it inside another activity? Nov 25 21:38:34 <_tux> hi guys i have the following code that gives me trouble Nov 25 21:38:34 <_tux> http://pastebin.com/d60fe8753 Nov 25 21:38:34 <_tux> at line 6 Nov 25 21:38:34 <_tux> the error says: cannot instatiate the type inputstream Nov 25 21:39:31 I'm not sure what you mean. If you know the id, you can use findViewById(). So View v=(View)findViewById(my_view_id); Nov 25 21:40:45 but the setId() is Int, and the findBy.. is String Nov 25 21:41:48 No it isn't. It is an int. Nov 25 21:41:58 At least that is what the documentation is telling me. Nov 25 21:42:21 I'll try to see...thanks Nov 25 21:50:52 are there any tether apps around that allow port forwarding for incoming internet traffic? Nov 25 21:53:50 gtri: you mean for traffic coming from the cell radio? Nov 25 21:54:55 Does anyone have an idea what the user Radio stands for? Nov 25 21:55:34 well - if you have a wifi-tether app and you want to be able to forward any traffic returning from the internet to the g1 (via 3g) through port X to port X on the tethered computer Nov 25 21:55:39 In a TextView, can you have some text bold and other text not, or a different color? Nov 25 21:56:02 mikejet: I believe so. Nov 25 21:57:31 for instance - If I run an ftp server on a computer tethered to a HTC Dream and then access the G1s IP on another computer on port 21 I should get access to the ftp server Nov 25 21:57:47 jasta: clearly Nov 25 21:58:14 is there an sshd on the tethered computer? Nov 25 21:58:24 Is there a way to force make the emulator think a call is incoming? Nov 25 21:58:36 not right now but there can be Nov 25 21:59:44 well connectbot does tcp port forwards Nov 25 22:00:12 so you could do the equivalent of ssh -L1234:localhost:5678 tetheredcomp Nov 25 22:00:30 gotcha Nov 25 22:01:06 well in theory I guess. not sure how you connect to the tethered comp, not sure what is going on there in the tether Nov 25 22:01:56 well right now it's using android-wifi-tether - Im sure I could simplify things by using straight usb Nov 25 22:04:25 other than connectbot - know of any way to accomplish this without ssh? Nov 25 22:05:14 If you could set a DMZ with android-wifi-tether it would be badass Nov 25 22:06:29 well you probably know more about it than I do, can you run iptables on it? Nov 25 22:06:43 if so then I suppose you could do a reverse nat port forward thing Nov 25 22:07:09 I have no idea, I'm new to android and there is no root for the droid afaik Nov 25 22:07:41 http://code.google.com/p/android-wifi-tether/issues/detail?id=98 -- same problemo -- ill look into iptables access now Nov 25 22:09:57 yeah comment 4 there is what I was saying Nov 25 22:10:27 How do I set Id for a programmatic view (not XML). When I call setId in the view's file it doesn't generates ID to the R.id file. Nov 25 22:11:03 Why would it? R is generated at build time right? Nov 25 22:11:13 ido_: I believe it is just an integer. You need to store that integer somewhere in your code. Nov 25 22:11:19 I am probably wrong but I figured that question would get people talking about it. Nov 25 22:11:48 R is generated at build time. Nov 25 22:11:58 WOOHOO!!! I'm not an idiot. Nov 25 22:13:44 Yes but what should I do to generate an Id for a programmatic View?? Nov 25 22:14:07 I would say come up with some numbering scheme. Nov 25 22:14:50 I'm not sure what numbers are used by R, so you should make sure that your numbers do not conflict with those. Nov 25 22:15:07 Well, actually I think they can conflict, but I wouldn't do that. Nov 25 22:16:49 Why does android:id="... get's the job smoothly, unlike the setId(....?? Nov 25 22:17:13 Because the XML is used to generate code during build time. Nov 25 22:17:21 because setId would requiring interpreting code while xml is easily parsed Nov 25 22:17:54 stupid question - what's the G1 3G interface show up as? Nov 25 22:18:15 anyway, a quick google reveals: if you don't create your view with xml, you can't interact on it with IDs Nov 25 22:18:35 Now that's informative...so how can I use that Programmatic View if I don't no how to generate Id for it?? Nov 25 22:18:47 rmnet0, rmnet1, rmnet2, usb0, tiwlan0 Nov 25 22:18:47 you have it in code already Nov 25 22:18:57 so you retrieve it using your object reference Nov 25 22:19:01 pfn: Really? You can't use setId() and then findViewById()? That's odd, I wonder why you can set the id then. Nov 25 22:19:13 * pfn shrugs Nov 25 22:19:28 Renfield, likely called by the xml stuff Nov 25 22:19:43 pfn: How do I reference? Nov 25 22:19:55 I want to draw text at 45 degrees in a Canvas, but i also want to use the TextView style of word-wrap. Any suggestions for that? Nov 25 22:20:00 myViewThatISetIdOn.dowhatever Nov 25 22:23:05 CAn I create a TextView which is backed by a BufferedImage/bitmap type thing, then call Canvas.drawBitmap() with that? Nov 25 22:23:54 ido__, anyway, findViewById should still work Nov 25 22:25:46 pfn: but setId() won't generate the id for R.id, but I will try to see how anyway. Thanks :-) Nov 25 22:26:16 nevermind. i have a better way. Nov 25 22:26:50 ido_: You need to come up with a number, set the number as the id for your view with setId(), then either save that number or hard-code it where you want to access your view in the other class. Nov 25 22:27:08 And by hard-code I mean use a constant. Nov 25 22:27:26 Which is all that R.id.foo is. Nov 25 22:28:16 ido__, you have to manage the id *yourself* Nov 25 22:28:26 ido__, programmatic views will *not* generate R.id Nov 25 22:28:57 if you're hellbent on having R.id fields, then create a stub.xml file where you can @+id/your_id to your heart's content Nov 25 22:29:06 and don't use that xml anywhere Nov 25 22:30:09 I'll try...thanks Nov 25 22:35:41 why does 'ifconfig rmnet0' show a different IP than shown on whatismyip.com? Nov 25 22:43:24 How do I need to format my html text if I want to enter it as a string resource? I keep getting the error: "Element type "html" must be followed by either attribute specifications, ">" or "/>" " Nov 25 22:44:03 romainguy: you there? Nov 25 22:44:33 So I have these layout directories (among others) layout-normal-mdpi and layout-normal-hdpi. Why is my Droid choosing mdpi? Nov 25 22:44:58 because you didnt read the documentation :) Nov 25 22:45:03 The others are layout, layout-normal-land-mdpi and layout-normal-land-hdpi. Nov 25 22:45:08 jasta: You often say that. Nov 25 22:45:13 I did read the documentation. Nov 25 22:45:19 I read the five rules. Nov 25 22:45:31 Clearly I am not understanding the documentation. Nov 25 22:45:32 http://d.android.com/guide/topics/resources/resources-i18n.html#AlternateResources Nov 25 22:45:47 ahh, ok Nov 25 22:46:37 why do you use -normal-hdpi? Nov 25 22:46:40 * anno^and testing andchat - great new free irc client Nov 25 22:47:18 jasta: Actually, that was due to a suggestion here. Nov 25 22:47:28 Let me think. I had something else originally. Nov 25 22:47:38 not sure why you'd need to distinguish them Nov 25 22:49:40 Oh, I had layout-large originally. Nov 25 22:49:49 I will try it without the -normal part. Nov 25 22:50:04 Turns out that the Droid isn't considered a large screen. Nov 25 22:50:16 of course Nov 25 22:50:24 no, its not. Nov 25 22:50:26 it's still a 3-4" screen Nov 25 22:50:27 its hdpi, but not large. Nov 25 22:50:32 large screen = 5+" Nov 25 22:50:39 normal is 3-4" Nov 25 22:50:45 small is like <3" Nov 25 22:50:56 how do u uninstall a app with eclipse? Nov 25 22:51:02 you dont. Nov 25 22:51:04 jerjunkel, you don't, you do it from the commandline Nov 25 22:51:07 adb uninstall package Nov 25 22:51:09 or from manage applications Nov 25 22:51:14 (on the phone) Nov 25 22:51:23 ditto the latter Nov 25 22:51:31 but when ever i do it on the phone i get an error Nov 25 22:51:49 an error uninstalling? that would be very unusual Nov 25 22:51:49 always explain what the error is Nov 25 22:53:51 no...umm.. when i uninstall via "manage application" and run again in eclipse i get an d error saying the app was not registered or something similar Nov 25 22:54:45 you can't run again unless you change the app Nov 25 22:54:57 eclipse only reinstalls the app if it gets changed Nov 25 22:55:16 otherwise it just tries to run what's already there Nov 25 22:55:18 and you get an error Nov 25 22:56:32 any ideas on putting html data in as a string resource? Nov 25 22:56:32 pfn..thanks Nov 25 22:57:23 Oh, maybe what is happening has something to do with support for Android 1.5, which didn't have screen sizes? So the phone lies and pretends that it is an mdpi and so that is picked instead of hdpi? Nov 25 22:57:44 Renfield, the sdk builds -normal-mdpi into the default Nov 25 22:57:49 another question....how would you check a database to see if it has content that is inserted from strings Nov 25 22:58:00 or something like that Nov 25 22:58:06 i use c.getCount(); Nov 25 22:58:10 huh Nov 25 22:58:39 then count the string array and compare it to c.count Nov 25 22:59:20 Should it be possible to segfault dalvik? Nov 25 22:59:57 how do default actions get reset? e.g. if more than one app handles an intent? Nov 25 23:02:15 pfn: it works :) Nov 25 23:02:26 mal|lappy, as I imagine it should! :) Nov 25 23:02:49 I am able to make a phone call directly using ITelephony. Havent tried disconnecting or receiving... but it works!! I'm SO happy! Nov 25 23:02:49 I'm just shocked that I managed to get it, considering my lack of java skills heh Nov 25 23:03:03 This means I can make a full bluetooth remote control app for my phone :) Nov 25 23:03:12 mal|lappy, very cool Nov 25 23:03:22 mal|lappy, disconnecting = endCall() Nov 25 23:03:23 Thanks for your help Nov 25 23:03:28 mal|lappy, answering = answerRingingCall Nov 25 23:03:30 or something like that Nov 25 23:03:40 no special permissions necessary? Nov 25 23:03:41 That looks right, I have the ITelephony.java file open here somewhere Nov 25 23:03:49 It dosent seem so, atl east not for the call function Nov 25 23:03:52 I'll try endcall next Nov 25 23:03:56 wow, really? Nov 25 23:04:04 there should be at least some permissions... Nov 25 23:04:09 Yeah... I'm a bit shocked. I'm getting it through the service manager Nov 25 23:04:30 using the service manager to get the binder for the "phone" service, then asInstance'ing it to an ITelephony, and invoking call Nov 25 23:04:39 In theory, this should let me access ANY service Nov 25 23:04:42 it should at least require CALL_PHONE permission Nov 25 23:04:48 Ah, I do have that Nov 25 23:04:50 from my previous attempts Nov 25 23:05:00 Hopefully some permission doesnt bite me in the butt for endcall, I'll find out in about 30 seconds Nov 25 23:05:01 how are you able to use ITelephony? it isn't exposed anywhere, or are you actually doing this all through reflection? Nov 25 23:05:07 pfn: reflection :/ Nov 25 23:05:07 in which case, I'm very impressed if you're completely clueless Nov 25 23:05:14 I am, this is my second java app ever Nov 25 23:05:26 well, good job for you Nov 25 23:05:27 however, I use a form of reflection in c++ using Qt... so I'm familiar with the concept Nov 25 23:05:41 mal|lappy, anyway, I think you should go and post a bug that ITelephony service is unprotected ;-) Nov 25 23:05:55 Damnit shh Nov 25 23:05:59 :P Nov 25 23:06:01 well, seriously Nov 25 23:06:11 I don't want arbitrary apps I download to pwn me by calling 900 numbers Nov 25 23:06:26 The phone call isnt in the background Nov 25 23:06:28 it uses the PhoneApp Nov 25 23:06:35 so it acts like you're making a normal call Nov 25 23:06:40 itelephony brings up the phoneapp? Nov 25 23:06:45 apparently. Nov 25 23:06:52 that kind of makes life easier Nov 25 23:06:53 but still Nov 25 23:06:55 lemme try endcall, see if there isnt some voodoo going on here. Nov 25 23:07:01 what if it's an app that runs in the background? Nov 25 23:07:07 Can I put sections in my main.xml ? I'm getting an InflationException on that. Nov 25 23:07:29 pfn: my app does run in the background Nov 25 23:07:31 it still brings it up Nov 25 23:07:34 mikejet, fully qualified app name Nov 25 23:07:44 trying and endcall Nov 25 23:07:45 an* Nov 25 23:07:45 mal|lappy, I mean imagine if it does this while you *aren't* looking at the phone Nov 25 23:08:03 any idea why im getting this message after pulling down the SDKs: Error: Ignoring add-on 'google_apis-3-r03': Unable to find base platform with API level '3' Nov 25 23:08:03 Quite true. Nov 25 23:08:04 e.g. say you install some malicious program that calls a 1-900 number every 5 minutes Nov 25 23:08:06 pfn: But I love this :( Nov 25 23:08:07 and it hides from you Nov 25 23:08:20 endcall works too Nov 25 23:08:24 as if you hit the end button. Nov 25 23:08:24 so whenever it gets an event that the screen has powered off it makes the call or something Nov 25 23:08:44 mal|lappy, cool that it works, but it's something of a security risk Nov 25 23:08:48 I understand the security risk, and imagine that was the point of hiding the interface in the first place. Nov 25 23:09:03 mal|lappy, the calls should be protected behind permissions and not just be hidden Nov 25 23:09:17 mikejet: you need to use the fully qualitified name, including the package namge Nov 25 23:09:17 obscurity != security Nov 25 23:09:25 Well, I have to enable the app being able to make phone calls for it to do this Nov 25 23:09:33 eg: it requires the "phone access" permission Nov 25 23:09:41 mal|lappy, phone access? or PHONE_CALL Nov 25 23:09:45 pfn: wait one Nov 25 23:09:48 er, CALL_PHONE Nov 25 23:09:52 if it's CALL_PHONE then no big deal Nov 25 23:09:56 since that's announced to the user Nov 25 23:10:00 Nov 25 23:10:05 well, there you go Nov 25 23:10:06 it's safe Nov 25 23:10:11 Safe AND awesomely useful. Nov 25 23:10:13 * mal|lappy is happy Nov 25 23:10:27 now to get SMS working. *shudder* Nov 25 23:10:27 see, now quit whining that you need root access :) Nov 25 23:10:34 Haha I don't need root access.... for now Nov 25 23:10:34 sms should be easy Nov 25 23:10:39 since the sdk gives you sms access Nov 25 23:10:46 oh it does? well cake then. Nov 25 23:11:03 (I still want root access.... it's the linux dev in me I swear!) Nov 25 23:11:18 * pfn has no desire to get root access on android in general Nov 25 23:11:18 But this means I can distribute this app, and other people will be able to use it since it doesnt require root. Nov 25 23:11:25 mal|lappy, yep Nov 25 23:11:44 mal|lappy whats your app do? Nov 25 23:12:06 hullo: it's a bluetooth remote control app, so I can control the phone from a PC Nov 25 23:12:12 mal|lappy, so how's it work? your phone peers to your desktop (bluetooth) and you open up your own bluetooth socket to do "IPC"? Nov 25 23:12:12 eg: dial a number, hit "call" and it'll use the phone to call Nov 25 23:12:16 ooh nice Nov 25 23:12:24 pfn: yep, there's an app on the desktop. Nov 25 23:12:25 good idea Nov 25 23:12:26 this is actually for in-car use Nov 25 23:12:28 via carpc Nov 25 23:12:33 mal|lappy, your own app? oh, something pre-existing Nov 25 23:12:39 pfn: no my own app Nov 25 23:12:40 what bluetooth profile does it use? Nov 25 23:12:52 however, I'm hoping to make it compatable with some of the apps already out there Nov 25 23:13:01 if they use RFCOMM its easy, I already got two way rfcomm working Nov 25 23:13:32 neat Nov 25 23:13:45 java = win, no matter what anyone has to say about it Nov 25 23:13:46 :) Nov 25 23:13:53 * mal|lappy is beyond happy now Nov 25 23:14:01 I was so frustrated, thinking this wouldn't be possible Nov 25 23:14:10 I was almost ready to take the android back, and keep my upgrade for when the pre came out :P Nov 25 23:14:10 mal|lappy, see, I make things work ;-) Nov 25 23:14:15 Indeed Nov 25 23:14:59 Has anybody here successfully used MediaRecorder to record video? I keep getting segfaults and IOErrors. Nov 25 23:15:49 ok, Im pretty excited I can do an emergency contacts app from the lock screen without requiring anything special Nov 25 23:16:10 So you can call certain numbers without unlocking? Nov 25 23:16:11 how do u "wrap_content" within a textview without using xml layout? Nov 25 23:17:07 mal|lappy, yeah Nov 25 23:17:07 view.setLayoutParams( new ViewGroup.LayoutParams( ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT ) ); Nov 25 23:17:14 mal|lappy, not just that but a general in-case-of-emergency app Nov 25 23:17:56 http://www.androlib.com/android.application.com-appventive-ice-jqpz.aspx Nov 25 23:18:05 like that, but better looking and better integrated into the lock screen Nov 25 23:18:20 seriously, wtf is up with the "Slide to unlock crap" Nov 25 23:18:33 thanks edenman Nov 25 23:18:49 pfn: that's a pretty cool idea. Nov 25 23:18:56 lol pfn: iphone Nov 25 23:18:59 slide to unlock... their idea. Nov 25 23:19:13 mal|lappy, I mean in the app I just pasted a link to Nov 25 23:19:32 Ah heh Nov 25 23:19:55 but yeah, that app looks pretty bad Nov 25 23:20:10 Your app gonna be free or paid? Nov 25 23:20:15 paid Nov 25 23:20:19 I'm too greedy, sorry Nov 25 23:20:28 hehe Nov 25 23:20:41 Nothing wrong with that, it takes a different kind of person to write FOSS phone apps Nov 25 23:20:46 or just free in general Nov 25 23:20:57 romainguy, okay, using fully qualified class worked in mail.xml. thanks. Nov 25 23:21:04 I can still make it foss, and keep it paid in the market Nov 25 23:21:23 I for one, would appriciate that. Might even buy a copy to support ya if I like it a lot and the price is reasonable heh Nov 25 23:21:30 That's definently an app I'd be interested in though Nov 25 23:21:42 most stuff I'll write will be about $1.99 since I plan on doing simple stuff only Nov 25 23:21:52 heh Nov 25 23:22:10 That's actually a good idea. Release it FOSS, AND put it up on the market Nov 25 23:22:23 release it GPL and put it up on the market Nov 25 23:22:30 GPL = save your butt Nov 25 23:22:32 Didn't even occur to me heh Nov 25 23:22:33 indeed Nov 25 23:22:40 I'm a big fan of GPL, everything I release is. Nov 25 23:23:06 GPL/dual-license is the way to go if you ever want to monetize your code Nov 25 23:23:24 Yesh Nov 25 23:23:31 people can't legally take your code and fork it without also releasing your code (unless they negotiate a paid license) Nov 25 23:23:41 which works out rather well Nov 25 23:23:57 Yeah Nov 25 23:24:00 but yeah, I want the in case of emergency app, but that integrates nicely into the lock screen Nov 25 23:24:18 That's a good idea for an app Nov 25 23:24:23 and that ICE app isn't very nice, heh Nov 25 23:24:27 heh Nov 25 23:25:08 I worry about this thing because I like to ride my bike a lot Nov 25 23:25:12 and a locked phone is very useless Nov 25 23:25:16 Ah yes. Nov 25 23:29:41 the built-in emergency dialer is also pretty damn useless Nov 25 23:29:51 haven't tried it Nov 25 23:29:52 tbh Nov 25 23:29:57 it can only call 911 Nov 25 23:30:04 but it lets you punch in any number you want Nov 25 23:30:55 huh. Nov 25 23:31:39 i think it accepts a couple more numbers as well, but yeah. Nov 25 23:32:09 //no ecclist system property, so use our own list. Nov 25 23:32:09 return (number.equals("112") || number.equals("911")); Nov 25 23:32:09 } Nov 25 23:32:19 it checks something called ro.il.ecclist Nov 25 23:32:24 ro.ril.ecclist Nov 25 23:32:29 but I have no idea how that is controlled Nov 25 23:33:31 but yeah, it only supports calling 112 and 911 by default Nov 25 23:33:33 which is worthless Nov 25 23:34:00 http://pdk.android.com/online-pdk/guide/telephony.html Nov 25 23:34:18 ro.ril.ecclist: list of valid Emergency Call Codes, for example, 911. Values are read from EF_ECC on the SIM and possibly supplmented by tables based on operator, network, or manufacturing code. Nov 25 23:34:40 Something is definitely not right here. Nov 25 23:34:51 with SQLiteDatabase.update and ContentValues how can i update a timestamp to CURRENT_TIMESPAMP? Nov 25 23:35:09 So far the only way to get the hdpi version to work on my Droid is if I have just layout, and layout-normal-hdpi. Nov 25 23:35:25 If I have just layout-normal-mdpi and layout-normal-hdpi then it uses the mdpi version. Nov 25 23:37:10 oh yeah, so back to my Q from earlier, how are default intent activities reset? Nov 25 23:37:32 e.g. I have multiple activities that handle a particular intent, there's a prompt to automatically select my choice, right? how does that get reset or where is it stored? Nov 25 23:37:54 pfn: depends... Nov 25 23:38:11 you can ask for the question to be presented to the user every time, in which case there is no preference and therefore nothing stored Nov 25 23:38:14 Oh, I believe that can be changed in the application management setting. Nov 25 23:38:19 that is accomplished by making a chooser (Intent.createChooser i believe) Nov 25 23:38:24 pfn, i saw that in settings->applications->nav to app useing the intent and there is a default thing in there. that might be it Nov 25 23:38:48 otherwise, what Renfield and dazoe just said. Nov 25 23:38:56 I need to look that up, because it does affect how I'll create my emergency contacts app Nov 25 23:39:07 pfn: for instance, when you say "share" from the camera app, it makes a chooser so there isn't a preference. Nov 25 23:39:22 getContext().startActivity(intent); Nov 25 23:39:26 the calling code only does that Nov 25 23:39:35 thats not a chooser ;) Nov 25 23:39:43 but what im saying is you could make it a chooser, if that's what you'd prefer. Nov 25 23:39:46 right, so what happens in the event of multiple matches Nov 25 23:39:52 I have no control over what I just pasted Nov 25 23:39:58 you get a dialog box with the choices and a "save this choice" check box Nov 25 23:40:05 thanks Nov 25 23:40:09 works for me Nov 25 23:41:02 with SQLiteDatabase.update and ContentValues how can i update a timestamp to CURRENT_TIMESPAMP? Nov 25 23:41:21 I see some code that extends View, but does not have a public MyPublicView(Context context, AttributeSet attrs) constructor with 2 and 3 args. Is that new? Nov 25 23:41:54 mikejet: no, the 2 arg version is the most common -- it's what gets executed when inflated from XML Nov 25 23:42:04 the 1 arg version is only used when manually instantiated, very rarely happening. Nov 25 23:42:21 the 3 arg version is a specialization which allows the widget to define a default themable attribute (which resolves to a style) Nov 25 23:42:39 jasta, awesome thanks. Nov 25 23:42:42 the 3 arg version is a critical part of the overall composition of all of the default widgets. Nov 25 23:42:47 but all 3 forms have existed since 1.0 Nov 25 23:42:59 mikejet: for instance, look at Button.java. Nov 25 23:43:05 it might surprise you :) Nov 25 23:44:36 In my View constructor, how do I assign the Paint to my android:textColor (defined in main.xml), that I want to pass to a canvas.drawText() ? Nov 25 23:45:01 can you explain that another way? i didn't quite grok what you want. Nov 25 23:46:27 I define android:textColor="#ffffff" in my main.xml. How do I access that value from my View constructor; I'll use it to create a Paint. Nov 25 23:46:30 Ok, it looks like I can't support Android 1.5 and have multiple screen resolutions. Nov 25 23:46:37 mikejet: well... Nov 25 23:47:03 As soon as I set minSdkVersion to 5 in the manifest and recompile, the application correctly uses the hdpi layout on my Droid. Nov 25 23:47:06 i don't advocate that you do it this way, but if you insist: Nov 25 23:47:32 jasta what do you recommend? I don't want to hardcode "white" in the .java. Nov 25 23:47:49 TypedArray a = context.obtainStyledAttributes(set, R.styleable.TextView, 0, 0); Nov 25 23:47:52 ... Nov 25 23:47:58 a.recycle(); Nov 25 23:48:10 somewhere in '...' yo uwould call a.getColorStateList(R.styleable.TextView_textColor) Nov 25 23:48:20 of course, R.styleable.TextView is PROBABLY private, which means you can't do it this way anyway :) Nov 25 23:48:40 mikejet: normally you'd define your own attributes, not piggy-backing on someone elses. Nov 25 23:48:56 there are examples in ApiDemos which show you how to define and read your own attributes. Nov 25 23:49:02 they look similar to the code i just showed you thought :) Nov 25 23:49:03 though* Nov 25 23:49:35 jasta : thanks. i got enough to run now. Nov 25 23:52:05 hm Nov 25 23:54:49 Aha! I needed to add an android:targetSdkVersion="5" to my manifest file. Now it selects the correct dpi. Nov 25 23:55:16 ah, that does make sense. Nov 25 23:55:26 that's definitely a new feature of eclair Nov 25 23:55:52 well, maybe not Nov 25 23:56:38 seems weird now that i think about it, because it means in order to incrementally support that new feature you need to jetison support for older versions Nov 25 23:57:12 I kept minSdkVersion at 3. Nov 25 23:57:39 oh, sorry i misread Nov 26 00:07:06 <\monster\> hmm are gradients supposed to look like crap in the emulator? or am i doing something wrong :) Nov 26 00:07:23 <\monster\> i took a screen shot and zoomed in, it looks like the gradient is repeated a number of times Nov 26 00:07:35 is there any way to make the emergency call button appear on the normal lock screen? Nov 26 00:07:45 \monster\: is it a widget or are you using a ImageView? Nov 26 00:08:01 <\monster\> i have the background of a LinearLayout set to a drawable resource Nov 26 00:08:11 what kind of format? Nov 26 00:08:14 <\monster\> which is a shape with grandient Nov 26 00:08:15 <\monster\> xml Nov 26 00:08:22 oh you're using draw Nov 26 00:08:26 <\monster\> ya Nov 26 00:08:27 thought you were using a image Nov 26 00:08:29 nm :) Nov 26 00:08:47 Anybody else got this error b4? "[2009-11-25 19:06:44 - AppName]ActivityManager: Starting: Intent { cmp=com.AppName.space/.Start } [2009-11-25 19:06:44 - AppName]ActivityManager: Error type 3 [2009-11-25 19:06:44 - AppNAme]ActivityManager: Error: Activity class {com.appname.space/com.appname.space.Start} does not exist." Nov 26 00:08:55 \monster\: have you tried on your hand held to see if it looks the same? Nov 26 00:09:07 I would imagine the drawing would be the same on the emu as the device itself... Nov 26 00:09:18 <\monster\> i haven't gotten to the point of testing stuff on my phone Nov 26 00:10:30 <\monster\> let me show a screen shot, sec Nov 26 00:10:37 Still having a bit of trouble getting a block of html text in as a string resource, any thoughts? Nov 26 00:11:05 jerjunkel: is the class you're starting from the manifest implement the Activity ? Nov 26 00:11:15 Flashpass: don't do that. Nov 26 00:11:18 Flashpass: put it somewhere else. Nov 26 00:11:26 it should automatically do that in Eclipse if you're creating a new project... Nov 26 00:11:31 res/raw/ is one thought. Nov 26 00:11:54 jasta: okay, i'll take a look at that Nov 26 00:13:40 tortib: i don't understand u Nov 26 00:14:07 jerjunkel: the Activity class needs to extend whatever the main class in your program is... Nov 26 00:14:21 the AndroidManifest.xml will state which class to run upon launching the application Nov 26 00:14:34 uhh, will it? Nov 26 00:14:37 from the error you described it sounds like your class "Start" isn't exending the Activity class Nov 26 00:14:40 i had just uninstalled the app from the emulator via "manage application" and tried to install it again and got that error Nov 26 00:14:52 I see Nov 26 00:15:00 well from reading the error you posted, that's what I got D: Nov 26 00:15:18 you have the main class "Start" right? Nov 26 00:15:27 public class Start extends Activity { ] Nov 26 00:15:30 tortib:yup Nov 26 00:15:31 { } Nov 26 00:15:47 <\monster\> http://mynetimages.com/4e1e9e3df2.gif <- is that how a gradient is supposed to look? Nov 26 00:15:50 it looks something like that correct? It extends the Activity class? Nov 26 00:15:55 <\monster\> thats enlarged to show the weird pattern Nov 26 00:16:08 \monster\: weird Nov 26 00:16:13 \monster\: that's called ditehring, and yes. Nov 26 00:16:18 tortib:it only happens when i uninstill the app then try to reinstall it Nov 26 00:16:25 \monster\: look at it on a device before you judge the look. Nov 26 00:16:27 jerjunkel: dunno mate Nov 26 00:16:32 dithering* Nov 26 00:16:37 thought it was something simple :) Nov 26 00:16:40 <\monster\> so it will look smooth on device? Nov 26 00:16:47 \monster\: yes -- try it. Nov 26 00:16:54 \monster\: time to setup ADB :) Nov 26 00:17:02 <\monster\> my app will most likely blow up my phone Nov 26 00:17:03 tortib:it's aight.....jus get's annoying having to relaunch the emulator each time...sigh.. Nov 26 00:17:15 jerjunkel: yeah that's odd may want to maybe ask google about it, may be a bug Nov 26 00:17:25 \monster\: go read about dithering :) Nov 26 00:17:28 <\monster\> actually, how quick can i send this to y phone? Nov 26 00:17:40 you don't have to uninstall it (unless you're doing something program wise for that) you can simply run your program and it will start it automatically on the emu Nov 26 00:18:25 \monster\: uhh, what? Nov 26 00:18:32 \monster\: you can install an app on your phoen in just a second or so Nov 26 00:18:36 \monster\: pretty quick it uses USB2.0 :) Nov 26 00:18:50 <\monster\> ok let me look it up Nov 26 00:19:00 \monster\: you using linux, windows or OS X? Nov 26 00:19:00 <\monster\> thought there might be a bunch of steps you have to do Nov 26 00:19:04 tortib:i kno but i'm working with a database and i keep adding an taking stuff out...so to stop the app from adding more stuff to the database i uninstall it Nov 26 00:19:04 <\monster\> windows Nov 26 00:19:16 \monster\: on windows you have to install a driver Nov 26 00:19:22 <\monster\> i already have adb running Nov 26 00:19:22 jerjunkel: understandable, like I suggested before maybe someone from google could help :) Nov 26 00:19:28 \monster\: ah k Nov 26 00:19:31 \monster\: if adb works, then there is no additioanl set up necessary Nov 26 00:19:34 I had a fun time with x64 Windows 7 :( Nov 26 00:19:40 \monster\: please just read the documentation. Nov 26 00:19:51 <\monster\> no issues with my 64bit win7 Nov 26 00:19:54 what docs? There was no docs for x64 setup :) Nov 26 00:20:08 \monster\: did you use the amd64 drivers? Nov 26 00:20:11 win7 x64 needs no special setup Nov 26 00:20:13 to run adb Nov 26 00:20:15 <\monster\> intel platform Nov 26 00:20:27 pfn: so what drivers did you use from the sdk? Nov 26 00:20:29 dito Nov 26 00:20:34 because i'm using unsigned drivers atm Nov 26 00:20:44 tortib, usb_drivers from the sdk Nov 26 00:20:51 tortib, I don't recall them being unsigned Nov 26 00:20:54 tortib, update your sdk Nov 26 00:20:57 quick question...has anyone got eclipse to run on ubuntu 9.10? Nov 26 00:21:00 tortib, and update the driver from usb_driver Nov 26 00:21:12 the drivers didn't work for me :\ Nov 26 00:21:25 they work fine for me Nov 26 00:21:33 I'm able to connect adb to my droid and droid eris without a problem Nov 26 00:21:55 I thought the ones in the usb_driver dir were for 32bit only? Nov 26 00:22:18 tortib, they are for 32 and 64bit (notice drivers aren't actually in usb_driver but in usb_driver/x86 and usb_driver/amd64) Nov 26 00:22:28 because someone else had the same problem and took the time to actually create a 64bit driver, even posted the code for it so we can build it ourselves. Nov 26 00:22:41 tortib, the sdk usb drivers were updated on 11/6 Nov 26 00:22:50 I don't know about before then Nov 26 00:22:52 ahhh Nov 26 00:22:56 that's why :) Nov 26 00:23:13 well shoot i'm going to update and try those drivers then Nov 26 00:23:23 because i'm in 'test mode' right now and that's no fun :\ Nov 26 00:24:00 they were updated coinciding with the release of the droid, I think Nov 26 00:24:20 mRotary.setVisibility(View.VISIBLE); Nov 26 00:24:20 mEmergencyCallButton.setVisibility(View.GONE); Nov 26 00:24:21 boo! Nov 26 00:25:15 well look at that androidwinusba64 now exists lol Nov 26 00:25:23 indeed Nov 26 00:25:55 is there any way to retrieve an arbitrary Context object from another app? Nov 26 00:27:21 pfn: yes, but what do you mean by arbitrary? Nov 26 00:27:29 you can use Context.createPackageContext Nov 26 00:27:39 itll give you an app context for some other package Nov 26 00:27:39 jasta, e.g. say I wanted to get the lockscreen's Context object Nov 26 00:27:43 hmm Nov 26 00:27:45 * pfn ponders Nov 26 00:27:56 getting the activity context is impossible, of course. Nov 26 00:28:09 if you think about why it makes obvious sense :) Nov 26 00:28:36 jasta, that doesn't matter since the Context enables me to findViewById of any view object in that context? Nov 26 00:28:50 of course not. you clearly dont understand what a context is ;) Nov 26 00:29:02 findViewById is only available on Activity, Context is _much_ more broad than that. Nov 26 00:29:05 well, what's the point of the context object otherwise Nov 26 00:29:11 oh, I didn't realize it was an activity method Nov 26 00:29:24 anyway, you can't get an activity reference because the thing is running in another process, obviously,a nd you don't have any of the code from that app in your classloader. Nov 26 00:29:27 in that case I should have worded my question as finding an arbitrary Activity Nov 26 00:29:39 yeah, that's not going to work Nov 26 00:29:49 if you are thinking you can directly manipulate the UI of another process you are thinking crazy. Nov 26 00:29:50 * pfn ponders Nov 26 00:30:09 there are a laundry list of reasons why this isn't supported, not the least of which being a gross security violation Nov 26 00:30:43 of course, just exploring what's possible Nov 26 00:30:51 I'd like to add the 'emergency call' button back to the normal lock screen Nov 26 00:31:14 that would need to be a feature of the normal lock screen Nov 26 00:31:22 you could hack the source, and deploy your own version of course Nov 26 00:31:27 but that is a _________BAD_________ idea. Nov 26 00:31:30 yeah, that's not going to happen Nov 26 00:35:05 how bad of an idea is it? Nov 26 00:35:58 i dunno, that's like 9 underscores bad right? Nov 26 00:36:51 jasta, yeah, I was just hoping it'd be hackable by some means or other, since lockscreen has an emergencyCallButton, it just needs to be made visible Nov 26 00:37:15 if you want system level changes, honestly your best bet is to start a dialog with google and/or submit a patch Nov 26 00:37:27 best place to start would be to post to the google groups, then maybe file a bug Nov 26 00:37:57 if you can convince them that what you want is a good idea, im sure they'll do it. Nov 26 00:38:06 if you can't, then well, you might be wrong that it's a good idea :) Nov 26 00:43:23 I wouldn't hold my breath either way Nov 26 00:45:39 hmm, is there no way for an activity to know which intent started it? Nov 26 00:45:47 getIntent()? Nov 26 00:46:02 oh, I keep forgetting that activity objects are stateful Nov 26 00:53:59 I wonder how different the htc sense lock screen is from the android lock screen Nov 26 00:54:04 need to play with that on the eris tonight Nov 26 01:06:58 I SUCK AT WRITING LAYOUTS! sorry had to get that off my cheast Nov 26 01:09:25 heh Nov 26 01:18:17 What is "sp" in the entry: android:layout_height="60sp" Nov 26 01:18:41 hey that's neat, i think i found another socket bug in harmony Nov 26 01:19:57 mikejet: scaled pixel Nov 26 01:20:12 Scale-independent Pixels Nov 26 01:20:12 mikejet: ^^^ Nov 26 01:20:32 mikejet: http://developer.android.com/guide/topics/resources/available-resources.html Nov 26 01:20:41 yikes. im doing no magification, so I don't think I want that right now. Nov 26 01:21:38 not much to do with magnification, but with user preferences Nov 26 01:21:47 Well, it has more to do with varying densities of pixels on the screen. Nov 26 01:21:57 I mean, some devices have different dpi than others. Nov 26 01:22:04 It's a way to have a uniform interface regardless. Nov 26 01:24:41 What does getHeight() return? I'm setting the height in the main.xml with 60sp, but still using getHeight() to determine where to draw the lines. Nov 26 01:25:04 what does the api say? Nov 26 01:25:56 "getHeight() returns the height" Nov 26 01:26:35 anyway, i'll just use px for now and come back to this. Nov 26 01:36:15 nice, i increased the cost of my app by 70% yesterday and have a new download record today. Nov 26 01:36:42 which is not that high though. Nov 26 01:36:43 I'll bet it returns the height in pixels. There might be an interface for converting to sp or dp. Nov 26 01:37:10 People are buying apps? Nov 26 01:37:21 Americans, mostly. Nov 26 01:37:31 what's the app? Nov 26 01:37:40 a small reaction game i made. Nov 26 01:38:19 Us crazy people with our expendable incomes. Nov 26 01:38:56 RobinB, try 700% Nov 26 01:39:07 jasta, what's the bug? Nov 26 01:39:11 hehe Nov 26 01:47:20 mikey|g1: well... Nov 26 01:47:24 look at java.net.Socket Nov 26 01:47:34 How do I get TextView.setHorizontallyScrolling(true) to actually show the horizontal scrollbar. All it appears to do is disable line-wrap. Nov 26 01:47:47 they maintain a non-volatile boolean isClosed, which they set to true in the synchronized method close() Nov 26 01:47:55 but the method isClosed is not synchronized. Nov 26 01:48:13 so another thread calling isClosed after one thread called close might see the wrong value. Nov 26 01:48:36 it seems like an elementary sort of mistake. wonder what they were thinking Nov 26 01:49:02 is socket meant to be thread safe? Nov 26 01:49:05 according to this: http://book.javanb.com/java-concurrency-in-Practice/ch03lev1sec1.html -- the visibility of data is only guaranteed if both threads synchronize on the same lock Nov 26 01:49:06 <_Auron_> this is why I don't deal with threads Nov 26 01:49:14 mikey|g1: yes, it is guaranteed to be so. Nov 26 01:49:51 sounds quite serious then Nov 26 01:50:13 yeah, this is only a month after i found another serious socket-related issue Nov 26 01:50:27 romain tells me that I shouldn't be so surprised by the lack of quality in Harmony hehe Nov 26 01:50:40 what was the other bug? Nov 26 01:50:58 well, it is expressly necessary that calling close() on a socket will unblock any other threads waiting on the socket's I/O Nov 26 01:51:20 for instance, if you had one thread blocked in a socket read call, or socket connect, and another thread calls socket.close, the blocking calls must return immediately Nov 26 01:51:39 under Sun's VM, this is true because they deliver a signal to unblock the system call on linux Nov 26 01:52:01 under Harmony, on Linux, this isn't true. they assume that all you have to do is call the close() libc call and everything works Nov 26 01:52:09 but it doesnt, you have to aslo shutdown() the socket. Nov 26 01:52:20 wow Nov 26 01:52:29 so like HttpClient's HttpRequestBase#abort() method doesn't work at all Nov 26 01:52:31 have these been fixed for 2.0? Nov 26 01:52:36 on Harmony, on Linux. ergo, on Android. Nov 26 01:52:37 <_Auron_> sucks Nov 26 01:53:06 mikey|g1: i don't know, i reported it to the harmony guys and got some out-of-band comment from a google engineer on android saying he was following the issue closely Nov 26 01:53:09 but i never heard back Nov 26 01:53:17 <_Auron_> heh Nov 26 01:53:22 i am going to file this new bug and contact him again to follow-up :) Nov 26 01:54:09 all this socket talk reminds me of an issue im having, what is the best way to detect network changes that mean my socket connection will no longer send/recieve data? Nov 26 01:54:30 like i turn wifi off while my app is open and active Nov 26 01:54:32 mikey|g1: android has a connectivitymanager which you can listen in on . Nov 26 01:54:43 mikey|g1: but, the socket operations will throw exceptions anyway Nov 26 01:54:55 it doesnt always Nov 26 01:55:39 yes, on android it will. when the connectivitymanager finally notices the interface is dead is the same time when the underlying sockets will be be interrupted. Nov 26 01:55:47 but this can take some time. Nov 26 01:55:51 up to the read timeout in some cases Nov 26 01:55:56 sometimes readline happily stays blocked Nov 26 01:56:00 i've noticed it happens mostly when turning wifi off Nov 26 01:56:19 hmm, why isn't my app starting when this intent is getting fired "com.android.phone.EmergencyDialer.DIAL" Nov 26 01:56:40 protected broadcast maybe? Nov 26 01:56:43 mikey|g1: i have explored this behaviour in great detail and did not arrive at the same conclusion. perhaps your test code was flawed in some other way you didnt understand? Nov 26 01:57:41 i've tested it quite a bit, it will eventually throw an exception ,but it sometimes it takes ages Nov 26 01:57:48 oh, that's what i just said. Nov 26 01:57:55 of course it can sometimes take up to the read timeout Nov 26 01:58:18 but the connectivitymanager won't have fired in that instance. Nov 26 01:58:23 it seems to happen immedietly when changing from 3g-> wifi connection Nov 26 01:58:32 if the connectivitymanager says an interface just disappeared, any sockets on that interface are implicitly closed. Nov 26 01:59:00 this is going to be guaranteed by Linux itself, because the interface just went down. Nov 26 01:59:29 bbl, i'm going to go harrass the apache harmony developers again Nov 26 02:00:19 i think i'll post on the group about this, conn manager gives a lot of broadcasts and it's difficult to filter out what i want Nov 26 02:01:58 <\monster\> yay looks like theres quite a bit of code that needs to be written to grab a remote image and display it in ImageView Nov 26 02:02:58 yep Nov 26 02:08:20 <\monster\> I expected something as trivial as grabbing a remote image to be much simpler/cleaner to work with ..guess I was wrong :( Nov 26 02:09:43 <_Auron_> how does one check for device screen size in pixels with 1.6? Nov 26 02:23:28 whats the simplest way to have a TextView, EditText, and Button in a layout, in that order, such that the TextView and Button have their heights wrap their content, but the EditText takes up the rest of the space? Nov 26 02:23:32 hmm, if I add then my activity should launch when that activity intent is requested, right? Nov 26 02:24:13 canadiancow, look at layout_weight Nov 26 02:24:37 thanks Nov 26 02:24:50 pfn: any clue what permissions are required to answer a phone call? Nov 26 02:25:24 mal|lappy, I don't know offhand, you'd have to look at the service implementation for ITelephony Nov 26 02:27:20 Ah, got it heh Nov 26 02:27:33 what's necessary? Nov 26 02:27:42 "MODIFY_PHONE_STATE " oddly enough Nov 26 02:27:48 funky Nov 26 02:27:51 yeah Nov 26 02:28:02 but it works, I now have an app on my desktop with three buttons, call answer and hangup Nov 26 02:28:03 they work :P) Nov 26 02:28:05 :) Nov 26 02:28:56 <\monster\> can't say I'm enjoying setting up the layouts :) http://pastebin.ca/1687600 why is the inner LinearLayout not visible Nov 26 02:29:49 <\monster\> i want to have a TextView on the left ..and more content inside the LinearLayout to the right of it Nov 26 02:34:20 pfn: Alright, so I need a bit more java help. I'm seeing that java doesnt have the concept of a destructor due to its managed nature, but is there any way to have a function be called before a class is GC'ed? Some sort of cleanup? I'm having to restart bluetooth each time I restart my program :/ Nov 26 02:36:13 mal|lappy, you can finalize, but it's poor form Nov 26 02:36:39 mal|lappy, you should make sure your object is properly closed by whatever lifecycle methods you have available Nov 26 02:36:43 onCreate, onDestroy, etc. Nov 26 02:36:55 ah ok. Nov 26 02:39:27 \monster\: probably because of the height of the textview Nov 26 02:40:05 \monster\: shouldn't your outter linearlayout be horiztonal instead of vertical? Nov 26 02:40:21 * bnovc is no layout expert but that seems intuitive Nov 26 02:41:12 What would be the correct way to get a layout that is a listview with a button below it? Nov 26 02:41:27 <\monster\> hmm maybe I was reading the docs wrong Nov 26 02:42:07 dazoe: iirc ListActivity already supports buttons at the bottom Nov 26 02:42:35 at the footer. i want the button outside of the list. Nov 26 02:42:39 holy netsplit Nov 26 02:44:04 bnovc: would i use a relitave layout? Nov 26 02:45:24 I'm not sure. I've seen several people at work do that, and I thought it was just a ListActivity with a button, but I could be mistaken because I know we made our own list page (i think extending ListActivity) Nov 26 02:45:31 can't just do a linearlayout with a list and a button? Nov 26 02:46:07 button gets pushed off. listview is a space hog Nov 26 02:46:30 oh? you can't specify the list to have a smaller height? Nov 26 02:46:38 after this tv show is over ill whip out my laptop and look how we do it Nov 26 02:46:44 static height is BAD! Nov 26 02:47:24 * bnovc didn't really mean a static height Nov 26 02:50:23 you could put it to totalHeight - buttonHeight Nov 26 02:50:39 probably not possible in xml tho **** ENDING LOGGING AT Thu Nov 26 02:59:56 2009