**** BEGIN LOGGING AT Sat Feb 28 02:59:58 2009 Feb 28 09:40:05 How do you run unit tests? Feb 28 11:25:55 Pupeno: it is not so easy imo. with ui code that is Feb 28 12:03:50 guys, how do i get the name of the phone owner from my app? Feb 28 12:05:39 real name o_O? Feb 28 12:06:16 real or any username which is fake.. Feb 28 12:06:50 but it must have been entered into the phone by the owner at some point of his usage of the phoe Feb 28 12:07:20 perhaps when he bought the phone Feb 28 12:07:33 i never entered my name in the phone Feb 28 12:07:45 unless you mean the gmail account Feb 28 12:08:30 hmm can i get the gmail account name? that will do too Feb 28 12:09:43 There is something called android.permission.READ_OWNER_DATA Feb 28 12:09:44 i get a bit scared of your app :P Feb 28 12:09:53 But I don't know what it is about Feb 28 12:09:58 my app is a solitare like game Feb 28 12:10:06 it needs to upload highscores Feb 28 12:10:17 and i dont want to ask the user to key in his name Feb 28 12:26:33 why not let the user enter a name Feb 28 13:10:53 Hi, so 14.09 here - about 6hours... about 8 o'clock for americans :-) (maybe earlier, maybe later) Feb 28 13:11:18 anyone that doesn't sleep? Feb 28 13:12:24 wake up guys! :-P Feb 28 13:12:44 i'm your human alarm Feb 28 13:12:46 I'm not sleeping ;) Feb 28 13:12:55 prove it Feb 28 13:12:56 it's 14:12 btw! Feb 28 13:13:02 * Joushou stabs Falcon4ever Feb 28 13:13:06 Enough proof? Feb 28 13:13:28 so other europeans... Feb 28 13:13:59 Denmarkian/Pastry-guy ;) Feb 28 13:15:58 and Falcon4ever? Feb 28 13:16:24 now 14.16 Feb 28 13:16:37 we habve to synchronize our thread? Feb 28 13:16:49 threads :-) Feb 28 13:19:11 What should I use to read text messages that already exist on a device? Feb 28 13:19:24 denmarkian women, maybe they are good I remeber ... :-) Feb 28 13:19:24 android.telephony.SmsManager lets me send messages, but what do I use to read them? Feb 28 13:19:39 I have atutorial about this...wait Feb 28 13:19:53 esses: Heh... Feb 28 13:20:56 however in Sicily too Feb 28 13:22:02 maybe telephony.sms.intents.getmessagegesfromintent(intent) Feb 28 13:22:33 return a SmdMessage[] array Feb 28 13:22:47 esses: Thanks. I'll look into that Feb 28 13:23:06 i hope it is the right way :-) Feb 28 13:27:32 * Joushou thought xkcd was so funny, that he just wrote a shell script that downloads all the pics on it... Feb 28 13:27:46 the custom,er says me that waits other 5 days my demo before to choose another developer... Feb 28 13:28:13 and I have to try to find a way to stop the incallscreen and outgoing call and rewrite the number :-) Feb 28 13:28:39 for now I intercepted it and got the phone number Feb 28 13:28:52 better than nothing :-) Feb 28 13:41:42 wow an infinite loop in outgoing call! :-P Feb 28 13:43:45 I can put it on the android market : "infinite outgoing call loop app" 100$ for download. A real killer app Feb 28 13:50:26 damn.. still no go on "make sdk" Feb 28 13:51:02 complaining about that "sun.util.resources.OpenListResourceBundle" Feb 28 13:54:53 hmmm.. I have a feeling that I have the wrong version of sun-java6-jdk installed Feb 28 13:55:18 ah.. it says 6-10 Feb 28 13:55:26 need update 12 Feb 28 14:04:07 hope I can install than on Ubuntu 8.04 Feb 28 14:25:02 updating to jdk 6.12 didn't seem to help :-( Feb 28 14:25:29 maybe need to rebuild all Feb 28 14:53:18 can someone help me with something please Feb 28 15:03:51 mib: maybe, depends on what the problem I suppose? Feb 28 16:01:23 Does anyone know how to stop a NEW:OUTGOING:CALL using a receiver? Feb 28 16:02:03 new_outgoing_call Feb 28 16:03:19 when i call a new intent with intent.action.call i got 2 call but i need the new call deletes the previous outgoing one Feb 28 16:08:58 has anyone used SoundPool? I keep getting a "sample 1 not READY" error and the only stuff I found online didn't help Feb 28 17:04:47 will new File("/sdcard/foo/bar") create the directories if they do not exist or do I need to manually create those directories? Feb 28 17:23:27 i believe you would have to make the dirs yourself Feb 28 17:23:58 perhaps the 'mkdir' method (or whatever) has an option for building the paths for you Feb 28 17:24:14 but its only /sdcard/foo so its cool Feb 28 17:28:03 there's a mkdirs() method IIRC Feb 28 17:28:07 very, very IIRC Feb 28 17:48:10 I have updated to jdk 6.12 and rebuilt everything but "make sdk" still fails... Feb 28 18:13:37 gosh: an email thread from feb 4 says need to use JDK 1.5 to build the SDK?!? Feb 28 18:26:02 seems to work better... someone should really update that web-page with the build instructions! Feb 28 18:30:14 can someone take a look at this http://pastebin.com/d59953b2a and tell my why the notification shows with ticker text, but there's not sound or vibration Feb 28 18:41:27 hi Feb 28 18:41:45 stopped outgoing call! :-) Feb 28 18:42:11 a little step for humanity a great step for esses Feb 28 18:42:24 now number rewriting... Feb 28 18:48:21 number rewriting done... Feb 28 18:48:28 demo almost finished Feb 28 18:53:29 finally built the SDK and got the emulator running .. puh! Feb 28 19:03:03 I'm trying to write tests for my view and I want to run onCreateOptionsMenu(). Do you know what menu class should I use to pass to it? or should I just create my own? Feb 28 19:30:57 Any mocking library recommended for functional tests in Android? Feb 28 19:53:21 does the emulator emulate touchscreen events? So if my touch detection stuff isn't working in the emu it woldn't work on the phone? Feb 28 19:58:48 pjz: the emulator detects mouse clicks as touches Feb 28 20:09:51 marklar: and held down buttons with the mouse as swipes? Feb 28 20:10:04 er, with movement Feb 28 20:12:42 and swipes should shouw up as ACTION_MOVE touch events, right? Feb 28 20:13:07 pjz: yup Feb 28 20:18:09 I noticed emu problem with flying event Feb 28 20:18:25 or better... Feb 28 20:18:42 flying event only if it is a quick movement Feb 28 21:47:51 Anyone using JMock in Android? Mar 01 00:31:17 DhcpInfo info = new DhcpInfo(); Mar 01 00:31:19 int gateway = info.gateway; Mar 01 00:31:20 Log.d(TAG, "Gateway: " + gateway); Mar 01 00:31:30 Is that the correct way to use DhcpInfo();? Mar 01 01:15:19 hi all Mar 01 01:15:55 pause symbol for g1 is "," , right? Mar 01 01:16:26 how much timefor each ","? 1/2 second? Mar 01 01:16:43 I can't test it I have only the emu Mar 01 01:20:05 pause symbol? Mar 01 01:20:34 yes Mar 01 01:20:54 for example i call an automatic service Mar 01 01:21:12 and I need one second pause Mar 01 01:21:23 before to send other tones Mar 01 01:22:33 mmmm long night for esses :-) Mar 01 01:26:52 for example Uri.fromParts("tel","1234,1234",null). I can't hear on the emu if after the first 4 tone of 1234 then there is a pause with the other 4 tones of the last 1234 . Mar 01 01:27:02 this is the problem :-( Mar 01 01:28:24 Why is the android.net.DhcpRequest return "0" for gateway? Mar 01 01:31:11 ANYONE? Mar 01 01:35:42 DhcpInfo info = new DhcpInfo(); Mar 01 01:35:43 Log.d(TAG, "Gateway: " + info.gateway); Mar 01 01:35:48 ^^i swear that's right Mar 01 01:58:22 You need to get a DhcpInfo object from a WifiManager object that you get from getSystemService(...WIFI_SERVICE). You aren't supposed to instantiate it directly. Mar 01 02:00:41 TiberiumX: oh... Mar 01 02:02:12 http://developer.android.com/reference/android/net/wifi/WifiManager.html#getDhcpInfo() Mar 01 02:02:16 that? Mar 01 02:03:26 WifiManager info = (WifiManager) getSystemService(Context.WIFI_SERVICE); Mar 01 02:03:28 Log.d(TAG, "Gateway: " + info.getDhcpInfo().gateway); Mar 01 02:03:31 TiberiumX: is that right? Mar 01 02:03:57 Looks like it. Does that work? Mar 01 02:04:02 lemme try Mar 01 02:04:58 TiberiumX: D/Cardroid( 7540): Gateway: 16777226 Mar 01 02:05:09 thats what i outputs Mar 01 02:05:56 Looks valid. Mar 01 02:06:21 What format is that in? Mar 01 02:07:11 To extract the bytes, you can do something like: o1 = gateway && 0xFF000000; o2 = gateway && 0x00FF0000; and so on. Mar 01 02:07:58 uh..ok? lol Mar 01 02:09:16 It's a 32-bit integer. Normally when you look at an IP address, you're viewing the four octets separately. If you want to print it out in the common format, you'll need to extract them from that integer. Mar 01 02:09:58 Oh, that should be one &, not two. Mar 01 02:11:13 ok Mar 01 02:15:47 TiberiumX: http://pastebin.com/m7d8f6ab3 Mar 01 02:16:12 would that make it WAIT until it has gotten the correct IP and THEN to the open(); function? Mar 01 02:17:52 And kill the processor going through that loop as fast as it can. Put a sleep in there. Mar 01 02:18:02 ok Mar 01 02:20:03 try { Thread.sleep(500); } catch (InterruptedException e) { // TODO Auto-generate catch block e.printStackTrace(); } Mar 01 02:21:05 TiberiumX: http://pastebin.com/md774a25 Mar 01 02:21:25 why does it ask me to Force Close/Wait? Mar 01 02:22:47 First of all, don't check for that single gateway -- that'll work only for your router, another might be configured completely differently. Mar 01 02:23:18 TiberiumX: i meant for it to check for a specific IP Mar 01 02:23:25 Check and see what it returns when it doesn't have a valid gateway, but you're probably okay if it's != 0. Mar 01 02:24:02 It'll throw up that dialog when your application is not responding. You need to do this sort of wait loop in a separate thread so you don't lock up the GUI thread. Mar 01 02:27:47 TiberiumX: it outputs 0 if there is no network Mar 01 02:30:59 TiberiumX: if i click "wait" and in a few seconds it connects successfully...is there anyway i can make it not give me the force close / wait diaglouge? Mar 01 02:31:30 Don't do it in the UI thread. Mar 01 02:31:37 Oh...how do i do that? Mar 01 02:32:08 Create another thread, and send a message to the message handler of the main thread when it's connected. Then you can call your open() method when you get that message. Mar 01 02:32:33 ...how do i create a new thread? Mar 01 02:36:50 class connectThread extends Thread { Mar 01 02:36:52 public void open() { Mar 01 02:36:53 // compute primes larger than minPrime Mar 01 02:36:55 Mar 01 02:36:56 } Mar 01 02:36:58 } Mar 01 02:37:07 Haha, that's not a simple set of things to explain and I won't do it in IRC. You should be able to find plenty of tutorials on Java threads and probably some geared towards addressing your Android background task needs. Mar 01 02:38:07 TiberiumX: is that stuff i just sent rigth? Mar 01 02:38:29 http://developerlife.com/tutorials/?p=290 Mar 01 02:38:35 Is that what im looking for? Mar 01 02:40:36 Looks like it Mar 01 02:40:51 cool Mar 01 02:48:02 TiberiumX: do i HAVE to put a sleep int here? Mar 01 02:48:05 int/in Mar 01 02:48:17 is it better if i do? **** ENDING LOGGING AT Sun Mar 01 02:59:57 2009