**** BEGIN LOGGING AT Sat Aug 15 02:59:59 2009 Aug 15 03:39:03 hi Aug 15 03:39:06 anyone here Aug 15 03:54:37 hi Aug 15 05:23:23 hello Aug 15 05:23:54 Can anyone explain a little about the Looper mechanism in Android, I have read the docs, but I need a little more clarifications Aug 15 05:26:10 I am passing a short[] array in the Msg.obj member. Is this the correct way to do it? Aug 15 05:37:28 do i stop a looper and hence the thread using Looper.myLooper().quit() ? Aug 15 05:54:45 why do you need a looper? Aug 15 05:59:47 actually I am recording Audio from AudioRecord... Aug 15 06:00:04 every 20ms, i send a message with the short array to the Looper. Aug 15 06:00:12 In the looper, i encode the packet Aug 15 06:01:23 i am doing this becuase the encoding operation takes time more than 20ms, and i cannot do that on the main recorder thread, otherwis packets will be lost Aug 15 06:01:37 ok Aug 15 06:01:42 anyway what you're doing sounds good Aug 15 06:02:52 so is that the correct way to terminate the loopers? Aug 15 06:05:06 to my knowledge, yes Aug 15 06:06:30 okay, Aug 15 06:06:31 thanks Aug 15 08:24:29 Hello Aug 15 08:25:26 hello Aug 15 08:25:57 does someone know what can be the reason of a generic failure in sending a sms Aug 15 08:26:24 it's done in a background, is there some restrictions in that ? Aug 15 08:27:44 have you added the permission? Aug 15 08:28:11 Aug 15 08:28:18 in your manifest file Aug 15 08:28:28 yes Aug 15 08:29:08 it works when i do it in onCreate method of my activity Aug 15 08:30:03 hmm, no idea Aug 15 08:30:06 are you using a thread? Aug 15 08:30:09 yes Aug 15 08:30:34 could i send only from the activity thread ? Aug 15 08:31:02 any idea what 08-15 11:30:34.372: DEBUG/dalvikvm(1047): threadid=19: bogus mon 1+0>0; adjusting could mean? Aug 15 08:31:17 i am not sure, Galize, but there are functions you can call to run it in the main activity thread Aug 15 08:31:46 ok, i would try Aug 15 08:31:53 and give you the results Aug 15 08:32:00 target StaticLib: libxml2 (out/target/product/generic/obj/STATIC_LIBRARIES/libxml2_intermediates/libxml2.a) Aug 15 08:32:00 target SharedLib: libwebcore (out/target/product/generic/obj/SHARED_LIBRARIES/libwebcore_intermediates/LINKED/libwebcore.so) Aug 15 08:32:00 out/target/product/generic/obj/lib/libsqlite.so: file not recognized: File format not recognized Aug 15 08:32:00 collect2: ld returned 1 exit status Aug 15 08:32:00 make: *** [out/target/product/generic/obj/SHARED_LIBRARIES/libwebcore_intermediates/LINKED/libwebcore.so] Error 1 Aug 15 08:32:19 Galize: runOnUIThraed Aug 15 08:32:24 runOnUIThread Aug 15 08:32:25 check that out Aug 15 08:32:29 that might help Aug 15 08:32:31 trying to run compile the source code and get that error Aug 15 08:33:25 ok thx Aug 15 08:37:10 http://androidcommunity.com/android-team-forced-to-pull-palm-pre-theme-20090814/ Aug 15 08:37:39 theres an iphone theme? Aug 15 08:38:05 http://android-france.fr/wp-content/uploads/2009/05/appsdesktop.png Aug 15 08:38:22 QRCode to AppsDesktop Aug 15 08:40:30 a synchronized method locks its object right? Aug 15 08:40:39 yes Aug 15 08:46:03 how do I determine if there are still messages pending in a MessageQueue object associated with a Looper? Aug 15 08:49:56 earlence: why do you need to? Aug 15 08:50:00 crap Aug 15 08:50:04 the moment I shut my phone down Aug 15 08:50:05 someone calls me Aug 15 08:50:31 so that I can wait till all messages are processed before calling quit() on the looper Aug 15 08:51:29 earlence: send a message to the handler that says "QUIT", and shutdown the message delivery part of your code so that no messages can be after it. Aug 15 08:51:33 when you receive it, shutdown Aug 15 08:52:36 i believe i have seen this pattern used by google even. i could be wrong though, so do your own research if you are so inclined. Aug 15 08:52:42 okay, thanks... Aug 15 08:56:34 and shutting down the looper cause the thread that hosts it to shut down as well, right? Aug 15 08:56:59 earlence: your code would control that -- Looper.loop() would finally break. Aug 15 08:57:07 whether you finish up in the thread after that is upt o you Aug 15 08:57:33 by the way, why do you need you rown looper thread? typically this is not necessary or useful Aug 15 08:57:53 your applications main thread has a looper you can use for message delivery Aug 15 08:58:10 I am trying to accurately control the processing of AudioRecorded PCM packets Aug 15 08:58:44 hmm, well so long as you have thought this through :) Aug 15 08:59:06 I cant do the encoding of the packets on the same thread that reads audio, thats why i'm using this mech Aug 15 08:59:46 did i make sense earlier at least? Aug 15 09:00:53 yes, if u can help me with understanding HandlerThread also? Aug 15 09:03:24 jasta: If i call looper.quit inside the Handler that Im using with Handler Thread, the associated Looper is terminated, right? Aug 15 09:08:23 earlence: the Handler is actually attached to the Looper thread and handling messages delivered by the Looper, do you understand that? Aug 15 09:08:41 yes Aug 15 09:08:51 so in handleMessage, you're ancestor in the call stack is actually Looper.loop(), the very method you're going to break out of by calling Looper.quit() Aug 15 09:09:03 it will shutdown the looper, and exit Looper.loop() when it's ready to Aug 15 09:09:06 ooh, okay... Aug 15 09:09:25 thanks for clearing that up Aug 15 09:09:45 Looper.quit() is really a signaling method. imagine the loop() method looks like: while (!done) { ... } Aug 15 09:09:50 Looper.quit() is done = true :) Aug 15 09:09:56 :) Aug 15 09:11:20 one more question.........after i have called quit() and there are still messages in the Q, they will be dropped, right? Aug 15 09:15:55 jasta: one more question.........after i have called quit() and there are still messages in the Q, they will be dropped, right? Aug 15 09:16:11 yes, but you can easily guarantee there will be no messages. Aug 15 09:16:28 how can that be done, Aug 15 09:16:30 as i said, send your own special quit message, and then make sure you do not send any more messages after. Aug 15 09:17:02 when quit is received, Looper.quit(). Aug 15 09:17:10 does this make sense to you? Aug 15 09:17:22 yes, but assume that the time taken to process messages is such that I send the quit() msg, and stop the message sending, but due to processing load, messages are outstanding Aug 15 09:17:50 earlence: i dont think you understnad what i mean by a quit message. Aug 15 09:18:00 i understand this Aug 15 09:18:14 are you sure, because your concern makes no sense. Aug 15 09:18:15 i am sending messages : normal scenario Aug 15 09:18:35 then i send quit() and stop sending messages Aug 15 09:18:59 messages are delivered in order, earlence. if the quit message is the last one you send to the target, that will be the last one handled. Aug 15 09:19:17 okay, got it finally Aug 15 09:19:48 if you are sending messages from multiple different threads and nee dto synchronize so that no one sends a message after the quit message has been scheduled, you can also do that easily with volatile and some sensible wrapping of message delivery Aug 15 09:20:07 okay, understood Aug 15 09:20:31 for instance volatile shuttingDown = false; void sendFooMessage() { if (!shuttingDown) obtainMessage(FOO_MSG).sendToTarget(); } Aug 15 09:20:32 thanks Aug 15 09:20:54 then sendQuitMessage() { ... shuttingDown = true; } Aug 15 09:21:23 i am doing it like this Aug 15 09:21:38 i am using the arg1 of Message. Aug 15 09:21:54 when I want to shut down, i set it to 1, In the handler, i obtain myLooper and call quit Aug 15 09:22:33 sure, but please employ sensible coding practices and don't hardcode the number. Aug 15 09:22:48 i generally recommend implementing a MyHandler type class which has a real API for message delivery. Aug 15 09:22:50 yes, this is just research I'm doing Aug 15 09:22:54 as in the example i just gave Aug 15 09:23:03 research doesnt mean you should code like a retarded monkey Aug 15 09:23:05 this is not the final system Aug 15 09:23:14 if you know how to do it right, do it right. Aug 15 09:23:35 but thats just a suggestion to you, of course you're free to do whatever stupid thing you want :) Aug 15 09:23:35 i appreciate ur help, but please dont say that. Aug 15 09:24:37 by ur earlier statement I hope u r not implying that I am coding like a retarded monkey or doing something stupid Aug 15 09:25:58 anything is possible ;) Aug 15 09:26:43 I appreciate the help, but I dont appreciate the fact that u r trying to insult me Aug 15 09:27:03 relax fella :) Aug 15 09:27:31 all i meant was that anyone's capable of being stupid, please try not to be if you know better. Aug 15 09:27:41 yes Aug 15 09:27:53 i cant stand to see programmers puke all over their source files and call it coding Aug 15 09:28:09 yes, i understand Aug 15 09:29:44 bbl, i may be resetting my irc connection here shorely Aug 15 09:29:46 shortly* Aug 15 09:30:06 yes, thanks for ur help Aug 15 10:14:00 working on a primitive class Aug 15 10:14:19 for a circle, should the 'position' var define upper-left corner OR the center of the circle? Aug 15 10:16:17 I'll let it be the center Aug 15 10:26:43 Has someone already transfer information from a broadcastReceiver to an existing activity ? Aug 15 11:01:58 Try my game: http://ludde.dyndns.org/pinball.apk Aug 15 11:16:55 Eligibility section for ADC2 says Android app must run on 1.5, but this technically means we have to set uses-sdk to 3 in the manifest file? My app doesn't require 1.5 so it runs on 1.1 and 1.5. Aug 15 11:59:56 salentinux: if it runs on 1.1 doesnt it run on 1.5 automaticly? or are there some compatibility issues? Aug 15 12:00:14 anyhow, as long as your app 'runs' on 1.5 it should be ok Aug 15 12:00:26 "Eligibility section for ADC2 says Android app must run on 1.5" doesnt state it must run 'only' on 1.5 Aug 15 12:26:55 Hey, hope someone can help me with this (http://pastebin.com/d6d23efbc) http request. I don't get any return or at least the return (result) is empty from which follows that the openTheme Dialog returns an error Aug 15 12:28:00 I also tried to do the http request in a normal java project and I just had to change public String sendHttpRequest to public static sendHttpRequest and it worked Aug 15 12:43:03 Okay, I need some help. Aug 15 12:43:34 anyone know why the textview has some some mandatory padding or line height? (with default gravity loads of free space below the text line) Aug 15 12:43:40 I want to see what is inside a particular hex memory address, is this possible? Aug 15 13:12:35 hello Aug 15 13:24:03 No one here? Aug 15 13:26:05 licksjp: there might be people around ... ask your question and see if anyone knows ... Aug 15 13:26:37 ppl never learn ;p Aug 15 13:26:53 SinnerG: :P Aug 15 13:27:01 hello Aug 15 13:27:13 reading the headline is to difficult Aug 15 13:27:13 I am Japanese Aug 15 13:27:31 1) learn english Aug 15 13:27:35 2) come back here Aug 15 13:27:38 or Aug 15 13:27:43 1) ask your Q in japanese Aug 15 13:27:57 be aware that method 2 will limit your chances to get an answer Aug 15 13:28:41 but plz if you do write in japanese use romaji ^^ Aug 15 13:29:05 shahon: your client doesnt like unicode? :P Aug 15 13:29:12 hi, does anyone have experience in using AudioRecord? Aug 15 13:29:18 Np,I can speak english a little Aug 15 13:29:25 not really Aug 15 13:30:02 earlence2: dont cross post ... Aug 15 13:30:11 and romaji is easier to read Aug 15 13:30:37 he didnt perfinion Aug 15 13:30:38 kon-nichiwa Aug 15 13:30:39 just looking for all the help i can get. my mistake Aug 15 13:30:42 well not copy/paste Aug 15 13:30:46 look @ his 'hi' :p Aug 15 13:30:58 lowercase here, uppercase @ #android Aug 15 13:30:59 SinnerG: :P Aug 15 13:31:09 earlence2: if you feel better, the answer from me is no Aug 15 13:31:16 okay Aug 15 13:31:22 earlence2: yeah, i have no idea either :( Aug 15 13:31:27 I fold Aug 15 13:31:29 ;p Aug 15 13:32:36 are there any other android IRC channels? Aug 15 13:32:43 Have you reased the android applications in android market??>all Aug 15 13:33:02 reased==>released Aug 15 13:33:09 sorry Aug 15 13:33:17 earlence2: there are some on other networks ... no know where tho Aug 15 13:33:44 in eclipse android emulator, anyone ever experienced that back button stopped working and had to reboot emulator to fix it? Aug 15 13:34:17 licksjp: i have one free application in market Aug 15 13:34:51 is there any IRC for Android NDK? Aug 15 13:35:54 SuD: what about a application? Aug 15 13:36:39 It is called "Slide Type Keyboard". This is a preview of it: http://www.latinsud.com/pub/slideType/ Aug 15 13:39:25 SuD :Is it only number or Alphabet? Aug 15 13:39:28 anyone tried debugging Services in eclipse? How can I? Log.e(...) does nothing ! Aug 15 13:39:30 both Aug 15 13:39:48 slide left to type A, etc Aug 15 13:39:53 My applicatin is BMI calclater Aug 15 13:41:16 body mass index ? Aug 15 13:41:38 Sud,Yes Aug 15 13:42:36 Now I am developping the next soft Aug 15 13:43:03 BMI is my practice application for me Aug 15 13:43:51 SuD do u have a deve phone? Aug 15 13:44:07 deve==>dev Aug 15 13:45:03 no, only emulator. But a friend has an HTC Magic Aug 15 13:47:49 oic Aug 15 13:48:47 Gigant,morning? Aug 15 13:49:53 4pm but jeah morning :P why ? :) Aug 15 13:50:48 because get out zZZ charachters Aug 15 13:51:02 :p Aug 15 13:51:59 but i think i should return to my bed, still tired Aug 15 13:53:31 grr... hot like hell outside and little brats are playing soccer... their parents should get them a pc Aug 15 13:57:02 if anybody has the time.. could you run the "lunar lander" example and see if logcat also gives you the periodic message "W/SurfaceFlinger( 568): executeScheduledBroadcasts() skipped, contention on the client. We'll try again later..." ? .. it seems strange to me, and i don't know what causes it. :) Aug 15 13:58:26 jp-ulm:r u Japanese? Aug 15 13:58:48 licksjp: nope Aug 15 13:59:07 jp-ulm:oh,sorry Aug 15 13:59:14 no problem :) Aug 15 14:12:50 see you Aug 15 15:24:46 hey guys - how can i force an activity to be landscape mode Aug 15 15:25:20 hi Aug 15 15:25:46 someone speak italian? Aug 15 15:25:51 italians Aug 15 15:25:51 or can help me? Aug 15 15:26:05 ramosa italiano? Aug 15 15:26:11 net Aug 15 15:26:43 i can try to write in english!... Aug 15 15:27:00 i start to make some apps for android Aug 15 15:27:20 and i would make the player for the italian web radio Aug 15 15:27:30 - how can i force an activity to be landscape mode Aug 15 15:28:06 i use an easy code but don't work! Aug 15 15:28:27 AndyArmstrong: Add this to android manifest for the activity tag android:screenOrientation="landscape" Aug 15 15:29:15 can help me someone? Aug 15 15:29:44 learn english, beg less, then you'd have a better chance :-p Aug 15 15:30:19 thanks.... Aug 15 15:36:54 cheers! Aug 15 15:37:49 how do i turn the emulator to landscape automatically when the screen orientation ahs changed Aug 15 15:38:20 Andy, in real world you have to turn it manually also Aug 15 15:50:00 lol Aug 15 15:50:01 right Aug 15 15:50:05 so am i gona turn my screen around? Aug 15 15:52:24 ctrl+f12 Aug 15 15:53:05 awesome - last thing - i need to make a view which allows a person to scroll around a large zoomed in bitmap Aug 15 15:53:08 how do i do that Aug 15 15:53:17 like i want it to look like the webbrowser Aug 15 15:53:24 so they can move around a bitmap at a zoomed in level Aug 15 15:54:32 ScrollingView ? Aug 15 15:54:40 can that handle images!!! Aug 15 15:55:00 check out the app demos Aug 15 16:04:44 i dont see one for scrolling view Aug 15 16:10:42 ... Aug 15 16:16:09 i have done a few search on google without luck, can anyone explain to me why (if androids fault), that my phone "keep" loosing the simcard. even restarting the phone dont help i have to do a phone reset. to get the simcard to work again. it happens once every 1-2 weeks Aug 15 16:16:28 i have a htc-magic if that makes a differance Aug 15 16:22:26 can somebody pelase help me with my scroll view Aug 15 16:24:06 could somebody please help me with my scroll view - http://pastebin.com/m1393bfae it just shows a blak screen whereas it should show me my bitmap and allow me to scroll around it Aug 15 16:35:19 Could somebody please tell me why my scroll view shows a black screenn instead of my bitmap and alow me to navigate around it plz : http://pastebin.com/m3a49fe37 and the xml file is : http://pastebin.com/mefb11bd Aug 15 16:58:42 heck, could someone point me to all dependencies of android eclipse plugin Aug 15 16:58:43 ? Aug 15 17:17:46 I get an illegalargumentexception @ synchronized(LOCK_STATES) Aug 15 17:17:56 where LOCK_STATES = new Object() Aug 15 17:30:40 Could somebody please tell me why my scroll view shows a black screenn instead of my bitmap and alow me to navigate around it plz : http://pastebin.com/m3a49fe37 and the xml file is : http://pastebin.com/mefb11bd Aug 15 17:33:21 err andy Aug 15 17:33:28 where does that bitmap come in play? Aug 15 17:33:45 boardview -- one sec ill paste that too Aug 15 17:34:04 http://pastebin.com/m139d232c Aug 15 17:34:14 well paste that for the rest - this is where I get off Aug 15 17:34:28 aka I'm no good with ui yet ;p Aug 15 17:43:56 http://img151.imageshack.us/i/kbd.jpg/ <-- anybody knows why default KeyboardView leaves that black band above each key? Aug 15 17:44:34 i'm letting KeyboardView draw the keyboard, and then i overlay my stuff over it, and i need to get it centered Aug 15 19:19:44 my 2d engine class => http://i32.tinypic.com/9rovb8.png :P Aug 15 19:19:46 'so far' Aug 15 19:20:57 *classes Aug 15 19:29:51 looks pretty cool Aug 15 19:30:04 btw Donut adds a few tweens/interpolators Aug 15 19:30:10 bounce, anticipate and overshoot Aug 15 19:30:36 well I'm tending to add all, those were as a test ^^ Aug 15 19:30:57 I'm gonna drop my old text support I think though Aug 15 19:31:06 very ineffecient, only good for constant text Aug 15 19:31:14 (it renders text to a bitmap, then to an opengl texture) Aug 15 19:31:20 as you'll know - thats heavy :p Aug 15 19:31:36 yep :) Aug 15 19:33:59 my engine IS mem hungry btw Aug 15 19:34:05 since it keeps alot of obj 'in mem' Aug 15 19:34:07 this to prevent gc Aug 15 19:34:10 I reuse them though Aug 15 19:34:21 Vector2d.get() will first try to recycle one, if that fails, make a new one Aug 15 19:34:33 I should make our pooling API public Aug 15 19:36:36 hey, I want to know which element in an alertdialog got selected... with getResources().getStringArray(R.array.items_indide_dialog); i can get the string but instead of a string I want to get the position of the element in the array Aug 15 19:37:34 so if I have an array of 5 elements and select the 3rd element i want to get 3 instead of the string name Aug 15 19:48:04 stupid question... onClick already provides me with everything Aug 15 19:50:25 what the range for a java int ? Aug 15 19:53:47 just wanted to know which element got selected Aug 15 19:54:47 nm Aug 15 19:54:53 public void onClick(DialogInterface dialoginterface, int i) -> i is the selected element... I'm just a bit tired Aug 15 19:57:47 I think I found a rather good 'sparseFIFO' method :p Aug 15 19:57:49 I'll post code soon Aug 15 20:01:55 SinnerG: Java ints are 32 bits signed Aug 15 20:02:11 see Integer.MIN_VALUE and Integer.MAX_VALUE Aug 15 20:02:31 yeah I found that :) Aug 15 20:02:48 thx anyhow :) Aug 15 20:03:44 romainguy: does this look 'valid' => http://nopaste.me/5148 ? Aug 15 20:04:17 it just keeps adding until the int is used up, and then it it reorders Aug 15 20:06:11 when testing an app that url = new URL(strURL); urlConn = url.openConnection();, it say's that the host was not resolved. i can find some info on how to set it for for emulator testing... but i am testing on a device.. should it not work there automatic ? Aug 15 20:10:43 does the browser work? Aug 15 20:11:04 SinnerG: if that was question for me then yes Aug 15 20:11:22 and you're sure the url is valid? Aug 15 20:11:23 ow wait Aug 15 20:11:25 did you err Aug 15 20:11:32 i assume its because i need to tell the application that it has ability to use internet ? Aug 15 20:11:38 to your manifest xml? Aug 15 20:11:42 yeah that :p Aug 15 20:11:42 but i can't find anything on that Aug 15 20:11:44 no Aug 15 20:11:50 yes i was looking for that one Aug 15 20:11:55 thx Aug 15 20:11:58 np :) Aug 15 20:12:07 put it right under your manifest tag Aug 15 20:12:33 dunno why I could not find it on google is there a good place to find list of all the premissions ? Aug 15 20:12:49 i tried the api also but i guess i missed it Aug 15 20:12:56 yeah Aug 15 20:12:57 somewhere lol Aug 15 20:13:04 google for android.permission.INTERNET I'd say Aug 15 20:13:16 http://developer.android.com/intl/zh-TW/reference/android/Manifest.permission.html Aug 15 20:13:17 there :) Aug 15 20:13:17 ya i will =) Aug 15 20:13:30 thx again =) i kind of know that was the problem but was not sure Aug 15 20:14:36 ok that worked =) Aug 15 20:14:41 =) Aug 15 20:16:38 what is best method to to get data from a server i was thinking to use URLConnection and then with DocumentBuilderFactory -> and output xml but unsure if there is a more direct way Aug 15 20:20:33 romainguy - does that look ok ? Aug 15 20:21:17 add Aug 15 20:21:18 if (m_ObjectsContained == 0) return null; underneath dequeue() Aug 15 20:30:52 itp: Are you going to up that stuff to Gerrit? Aug 15 20:42:29 itp: Oh, I guess it only applies to cupcake Aug 15 21:29:47 Could somebody please tell me why my scroll view shows a black screenn instead of my bitmap and alow me to navigate around it plz : http://pastebin.com/m3a49fe37 and the xml file is : http://pastebin.com/mefb11bd and boardview is : http://pastebin.com/m139d232c Aug 15 21:43:55 AndyArmstrong: huh? Aug 15 21:45:30 AndyArmstrong: your layout makes no sense to me Aug 15 21:45:50 why do you have your scrollview child using gravity=bottom? Aug 15 21:45:54 why does it even exist? Aug 15 21:46:05 furthermore, why is your outer linearlayout basically an empty container? Aug 15 21:46:39 your onDraw path for your BoardView is totally wrong btw Aug 15 21:47:00 onDraw should be heavily optimized -- decode bitmaps somewhere else. Aug 15 21:47:03 draw them in onDraw Aug 15 21:47:53 also, i dont think you understnad what the canvas' transformation matrix really is Aug 15 21:48:01 try attaching with a debugger and examining the value you get back :) Aug 15 21:48:54 AndyArmstrong: Is this for a school project? Aug 15 21:57:19 Hi. Dumb question here.. is there a way I can use C (or something c-derived) to create android applications, or at least compile a C library into my android application, or do I have to use all Google's version of java? Aug 15 21:58:26 check out the NDK Aug 15 21:59:11 noahdroid: sweet, thanks Aug 15 22:01:34 cmang: you still must interface with the android platform, however. Aug 15 22:01:47 don't treat it like you're suddenly writing a framebuffer console application for linux or anything like that Aug 15 22:02:14 right. You just want to use the C parts to do the computationally expensive stuff. the UI is still all java/dalvik Aug 15 22:02:59 well there is one guy who wrote a pinball game using NDK Aug 15 22:03:07 and his entire game is broken :) Aug 15 22:03:12 his 'java' was only 1 tiny file :p Aug 15 22:03:20 well it was rather ok Aug 15 22:03:20 he is trying to write directly to the framebuffer last i checked Aug 15 22:03:35 well all was ok but then 'bzzz' and hell breaks loos :p Aug 15 22:03:45 (evil drop in fps etc etc) Aug 15 22:03:52 his game is probably extremely fragile and easily broken by a variety of conditions Aug 15 22:04:10 not limited to a platform upgrade at some point Aug 15 22:05:03 yes Aug 15 22:05:13 but boi does it run goood (except when buzz goes off :p) Aug 15 22:06:37 you could have easily made it perform well using just java Aug 15 22:06:47 a pinball machine game includes only trivial animations Aug 15 22:24:11 i got the best idea of for an app Aug 15 22:24:21 anyone willing to give it a shot? Aug 15 22:24:24 lemme know Aug 15 22:24:47 it's more for utilities, not an actual "shock and awe" app. Aug 15 22:24:52 well do tell Aug 15 22:26:20 an app that disallows apps to access the internet. its like, you get a list, and u can check them on or off to allow internet access Aug 15 22:26:57 not sure if you can prevent that though Aug 15 22:27:23 * ante__ agrees Aug 15 22:27:39 well the adfree app can block access to ads Aug 15 22:27:51 but word Aug 15 22:27:53 prolly not. Aug 15 22:28:25 basically like a firewall app. Aug 15 22:28:32 I guess it just writes the hosts file Aug 15 22:29:02 how about porting dasher to android? Aug 15 22:29:03 meh having issues with my particles system ;p Aug 15 22:29:27 SinnerG, opengles stuff? :-D Aug 15 22:29:34 SinnerG, got any good resources for that? :) Aug 15 22:29:47 urls, or whatever... found a good pdf guide Aug 15 22:29:53 with examples Aug 15 22:30:05 well Aug 15 22:30:10 look for iphone opengl es tuts ;p Aug 15 22:30:24 there are some android ones too though Aug 15 22:30:34 but you need to OPTIMIZE OPTIMIZE OPTIMIZE :P Aug 15 22:30:36 doesnt iphone support a higher version of opengles? Aug 15 22:30:47 not in the examples I saw Aug 15 22:30:50 k k Aug 15 22:31:41 i found a site that plans on releasing android opengles tutorials Aug 15 22:31:47 but they never seem to get to it... Aug 15 22:33:24 you got an android phone? Aug 15 22:33:37 on the way, playing with the emulator atm Aug 15 22:33:42 from? :p Aug 15 22:33:57 HTC Hero Aug 15 22:34:04 no I mean where are you from :p Aug 15 22:34:12 Sweden Aug 15 22:34:58 ah k :P Aug 15 22:35:00 you? Aug 15 22:35:09 belgium Aug 15 22:35:12 kroot no Aug 15 22:35:22 jasta - this is how i believe you use scroll views Aug 15 22:35:25 Been to belgium once.. Aug 15 22:35:29 felt like travelling back in time ;) Aug 15 22:35:29 and? Aug 15 22:35:32 wat im tryna do is have a large bitmap Aug 15 22:35:36 and navigate around it Aug 15 22:35:38 using scroll bars Aug 15 22:35:39 heh, stone buildings Aug 15 22:35:39 :) Aug 15 22:35:43 can u help me achieve this Aug 15 22:35:44 lawl ;p Aug 15 22:35:53 no offence... Aug 15 22:35:54 we got guy issues Aug 15 22:35:59 we have 2 major monuments Aug 15 22:36:05 one is a peeing boy Aug 15 22:36:10 another is a set of big balls Aug 15 22:36:11 :p Aug 15 22:36:25 whats up with the android developer challenge? Aug 15 22:36:30 how do I submit? Aug 15 22:36:37 http://familiepeters.webxpress50plus.nl/upload/138/images/Manneke%20pis.jpg & http://herentals.cdenv.be/fileadmin/user_upload/senioren/Nieuwsbrief/NB_januari_2009/Atomium.jpg Aug 15 22:36:45 mbarkhau, follow the unstrctions on the site Aug 15 22:37:08 simmons, nice.... Aug 15 22:37:26 ante if you gimme a working particle system, I'll give you all the code I have atm - deal? ;p Aug 15 22:37:52 i can give you a working particle system, but its not for android/opengles ,) Aug 15 22:38:00 ;) Aug 15 22:38:28 jasta?? Aug 15 22:38:58 thats no help ;p Aug 15 22:39:05 ante_: all I see is legalese no place for submission Aug 15 22:39:07 we had a deal Aug 15 22:39:11 :-P Aug 15 22:39:15 I got it sort-a but not totally ;p Aug 15 22:39:18 AndyArmstrong: i gave you my suggestions already Aug 15 22:39:22 you said "working particle system" Aug 15 22:39:26 * ante_ nods sagely Aug 15 22:39:45 I didnt say what project I'd give all code for :p Aug 15 22:39:53 let me get my hello world thingy to you Aug 15 22:39:56 ;p Aug 15 22:39:57 hello Aug 15 22:40:01 hai Aug 15 22:40:03 cool Aug 15 22:40:04 :) Aug 15 22:40:04 I'm brüno Aug 15 22:40:07 ^^ Aug 15 22:40:24 I am Sven Aug 15 22:40:30 I thought I could ask here, is there a way to do a screencast of android Aug 15 22:40:37 just using the phone Aug 15 22:40:50 no(t without root hax) Aug 15 22:40:54 afaik Aug 15 22:41:12 jasta u told me to look at the debugger Aug 15 22:41:17 but what am i tryna find Aug 15 22:42:02 like i just want to be able to scroll around a large bitmap - as if it were like the web browser Aug 15 22:42:07 and seem to be struggeling Aug 15 22:42:21 guess I'll recode my particle system tomorrow from 0 Aug 15 22:42:23 :( Aug 15 22:42:38 good luck bruno Aug 15 22:42:38 good night Aug 15 22:42:42 I know it s easy on linux Aug 15 22:42:43 * ante_ is out Aug 15 22:42:44 lol not bruno ;p Aug 15 22:42:46 Tim :) Aug 15 22:42:49 so I thought it would be easy on android Aug 15 22:42:54 Timmey Aug 15 22:42:57 :p Aug 15 22:43:06 security reasons zel Aug 15 22:43:24 otherwise an app could take screens whole time and send to someone eeeevil Aug 15 22:43:41 android has this 'feature' where you can see last entered letter in a pw field for a shortwhile Aug 15 22:43:51 if you take screens quick enough.. get the idea? :p Aug 15 22:44:06 one exception to be added Aug 15 22:44:13 maybe its possible using the NDK Aug 15 22:44:13 ok - jasta has already offered some advice but i want some more specific help - Could somebody please tell me why my scroll view shows a black screenn instead of my bitmap and alow me to navigate around it plz : http://pastebin.com/m3a49fe37 and the xml file is : http://pastebin.com/mefb11bd and boardview is : http://pastebin.com/m139d232c Aug 15 22:44:18 _NOT_ sure about that Aug 15 22:44:37 god Aug 15 22:44:41 atleast rephrase it a bit Aug 15 22:44:52 hmm right Aug 15 22:44:53 damn Aug 15 22:45:06 if it aint so much yet Aug 15 22:45:10 why not put the src somewhere? Aug 15 22:45:20 its actually quite a lot Aug 15 22:45:23 this is just the problem snippet Aug 15 22:45:27 its not that much code tbh Aug 15 22:45:27 AndyArmstrong: in other words, you ignored me because you didnt understand my suggsetions? Aug 15 22:45:32 the first pastebin is tiny Aug 15 22:45:39 andy recreate an empty app Aug 15 22:45:44 that should do what you want Aug 15 22:45:47 i didnt ignore you, just needed more specific help Aug 15 22:45:49 if that fails, give us the src of that Aug 15 22:45:56 SinnerG: I dont buy the security reason argument Aug 15 22:46:00 ok SinnerG ill do it right now Aug 15 22:46:03 AndyArmstrong: for instance, when i told you to attach to a debugger and check out what cnavs.getMatrix gives you Aug 15 22:46:05 well suit it yourself :p Aug 15 22:46:06 and how its not what you think it is Aug 15 22:46:11 and to remove useless layouts in your xml files? Aug 15 22:46:12 SinnerG: the other apps are about as secureless Aug 15 22:46:14 more specific than that? Aug 15 22:46:34 zelrik: no reason to talk about it further, nothing I can help about it Aug 15 22:46:37 as I said, look into NDK Aug 15 22:46:41 maybe the solution lies there Aug 15 22:48:15 i actually added the layouts cos thats what an example i found had in them, and it worked... Aug 15 22:48:17 right Aug 15 22:48:22 i added into a fresh new prject Aug 15 22:48:30 problem still exists - so ill link to the src Aug 15 22:48:39 I'll look into it tomorrow - nn time Aug 15 22:48:53 I'm not a pro @ ui stuff, but I'll look and try to figure it out for you :p Aug 15 22:49:00 IF nobody is before me ofc Aug 15 22:49:08 nn ppl Aug 15 22:50:23 http://www.2shared.com/file/7202681/b2ddae05/TestCase.html Aug 15 22:50:28 jasta perhaps you can take a look? Aug 15 22:50:44 even if i did canvas.getMatrix Aug 15 22:50:52 i dont think it would clear anything up for me directly Aug 15 22:51:02 i did take a look, dumbass Aug 15 22:51:06 and i told you what i thought you should do Aug 15 22:51:23 but you irritated me by ignoring my suggestions, so now you can piss off Aug 15 22:52:20 mate please dont get angry I didnt ignore I just didnt understand how to deal with them. Ok, so I shall remove the linear layout inside the scroll view - and I shall do canvas.getMatrix - but i dont understand how to assess the matrix object i retrieve from that call Aug 15 22:56:55 right Aug 15 22:57:04 i did Log.e("debug",Mcanvas.getMatrix().toString()); Aug 15 22:57:08 in the constructor of BoardView Aug 15 22:57:28 and it reported 1.0,0.0,0.0 - 0.0,1.0,0.0 - 0.0,0.0,1.0 Aug 15 22:57:37 however onDraw doesnt seem to get called Aug 15 23:02:31 please? Aug 15 23:02:42 i apologise you are just at a more advanced level than me Aug 15 23:03:28 http://www.cyrket.com/package/com.curvefish.widgets.gpsonoff <- anyone know how he does that? Aug 15 23:05:15 jatsa putting debug statements in onDraw shows that onDraw is not being called - hence why i get a blank ascreen Aug 15 23:05:19 but whY!/ Aug 15 23:06:31 what type of view is not drawing? Aug 15 23:06:36 emm Aug 15 23:06:38 one sec Aug 15 23:06:43 ill get u the source Aug 15 23:07:07 AndyArmstrong: oh, well that makes sense because youve not laid it out at all Aug 15 23:07:27 oh... Aug 15 23:07:42 can you explain a little further Aug 15 23:07:42 let me check some stuff in the View class, one sec Aug 15 23:07:47 cheers Aug 15 23:08:13 no measurement should be working fine -- use hierarchyviewer to scope out the dimensions of the view Aug 15 23:08:26 http://www.2shared.com/file/7202934/2a1fc47c/TestCase.html Aug 15 23:08:30 thats the latest code of the testcase Aug 15 23:08:39 ok hierarchy viewer - lemme seeee Aug 15 23:10:32 ok Aug 15 23:10:37 dimensions of BoardView are... Aug 15 23:10:48 0,320 Aug 15 23:10:49 "The project was not built due to "A [in Main.java [in [in dalvik/tests/002-sleep/src [in mydroid]]]] does not exist". Fix the problem, then try refreshing this project and building it since it may be inconsistent" Aug 15 23:10:55 height = 0 Aug 15 23:10:58 width = 320 Aug 15 23:11:17 get that when i am trying to build the android source Aug 15 23:12:30 AndyArmstrong: try double clicking on the boardview Aug 15 23:12:36 should open a window which tries to draw it Aug 15 23:13:07 and that file is there Aug 15 23:14:13 jasta its opened up my screen with the bitmap in it Aug 15 23:14:31 is it something to do with the fact that the fill_parent for the boardview layout isnt getting set anywhere Aug 15 23:14:45 like the AttributeSet passed into boardview constructor is not being used anywhere Aug 15 23:14:51 do i need to do something with that? Aug 15 23:17:53 ok jasta by adding this.setMiniumumHeight(430) i got it drawing on the screen Aug 15 23:17:59 however the scrolling view doesnt seem to work Aug 15 23:18:08 i,e i cannot scroll around my bitmap Aug 15 23:29:17 ... Aug 15 23:35:52 AndyArmstrong: lol Aug 15 23:35:59 you actually used setMinimumHeight(430)? Aug 15 23:36:25 AndyArmstrong: yes, the attributeset needs to call up to the super. Aug 15 23:36:29 thats how layout parameters get defined Aug 15 23:36:35 AttributeSet represents everything you specified in XML Aug 15 23:36:47 the constructor that gets called when inflating from xml is View(Context, AttributeSet) Aug 15 23:36:54 so you damn well better call super(Context, set) Aug 15 23:37:18 yeah ok i am doing that now Aug 15 23:37:23 however i still cannot route around my bitmpa Aug 15 23:37:25 **bitmap Aug 15 23:38:05 weird thing is Aug 15 23:38:19 if i do pass the attrivute set up doing super(context,set) Aug 15 23:38:26 screen stays blank Aug 15 23:38:30 for whatever reason Aug 15 23:38:36 my xml layout is now as follows Aug 15 23:38:51 http://pastebin.com/m7a1439b8 Aug 15 23:39:57 btw, scrollview is vertical only Aug 15 23:40:02 not horizontal, you know that right? Aug 15 23:40:27 hmm bollocks - i need a scroll view to allow me to pan left / right and up / down Aug 15 23:41:07 then you need to build it, or extend scrollview to do it Aug 15 23:41:21 ok...that may be why i cannot scroll then Aug 15 23:41:30 cos the height is not larger than the height of the window Aug 15 23:41:32 but the width is Aug 15 23:41:36 oh wait, google introduced one: HorizontalScrollView Aug 15 23:41:42 :O Aug 15 23:41:48 you can probably look at the code for them both and figure out a way to make one that does both Aug 15 23:41:57 i wonder if i could use that out the box Aug 15 23:42:06 ill try just adding horizontal before it Aug 15 23:42:08 see wot happens Aug 15 23:42:13 but you will need to do work examining the design of both widgets before you can successfully accomplish this Aug 15 23:42:27 meh, wahtever Aug 15 23:45:13 hmm i cannot get HorizontalScrollView to show me my image at all Aug 15 23:45:24 if i do super(context,set) it doesnt show anything - black screen Aug 15 23:45:32 if i do setMinimumHeight still shows nothing Aug 15 23:47:19 you dont really think, do you? Aug 15 23:47:32 you just hack around with shit you dont understand until it seems to work? Aug 15 23:48:09 i suppose you are right yeah Aug 15 23:48:25 but it kinda works now Aug 15 23:48:26 actually Aug 15 23:48:39 i need to sort out this bloody attribute stuff Aug 15 23:48:47 i got it working using this.setminheight and width Aug 15 23:48:52 and it scrolls horizontally Aug 15 23:49:05 perhaps you can help me sort out this xml attribute expansion Aug 15 23:49:16 perhaps the actual xml attributes r wrong? Aug 15 23:49:21 im so done helping you :) Aug 15 23:49:40 believe it or not you have helped a lot Aug 15 23:49:50 can u cast ur eye over my layout xml file Aug 15 23:49:58 no, im done helping you Aug 15 23:50:01 ok Aug 15 23:50:02 youre frustrating to deal with Aug 15 23:50:11 *sighs* Aug 15 23:50:15 im trying Aug 16 00:02:19 Hi, I am trying to register my receiver for SMS_RECEIVED Aug 16 00:02:23 registerReceiver(mSMSReceiver, new IntentFilter(Intents.SMS_RECEIVED_ACTION)); Aug 16 00:02:40 but the onReceive() never get called. Aug 16 00:03:17 when I try to emulate sending SMS on emulator Aug 16 00:03:20 any idea? Aug 16 00:06:09 is it a standard activity or a service ? Aug 16 00:07:45 I have a problem with an sql adapter.. Aug 16 00:08:06 if the db exists and the needed table is not there, the api crashes... Aug 16 00:08:13 apli Aug 16 00:10:00 do you have to use a try-catch ? Aug 16 00:15:05 could somebody plese tell me why when my BoardView constructor is called - and i do super(context,attrivuteset) it claims my view width = 0 every time? http://pastebin.com/m2c1a7681 Aug 16 00:19:17 AndyArmstrong: because layout has not happened yet Aug 16 00:25:52 could you explain? Aug 16 00:33:10 romainguy? Aug 16 00:33:52 when the view is constructed it has not been measured nor laid out Aug 16 00:33:55 therefore its size is 0 Aug 16 00:36:21 no but this is at runtime Aug 16 00:36:22 .. Aug 16 00:37:59 AndyArmstrong: when the view instance is constrcuted (== in the constructor), the view has not been measured nor laid out yet Aug 16 00:38:02 therefore its size is 0 Aug 16 00:38:08 I cannot be clearer than that Aug 16 00:45:20 yes Aug 16 00:45:22 but u see Aug 16 00:45:25 when i make my program Aug 16 00:45:28 i dont see anything Aug 16 00:45:30 its all black Aug 16 00:45:34 however if i manually add Aug 16 00:45:43 this.setminimumwidth = 430 or summit - it works Aug 16 01:13:03 romainguy: maybe put it in neon lights Aug 16 01:15:20 Oh, should I add someone specific to review this change: https://review.source.android.com/10727 Aug 16 01:22:44 kroot: enf probably Aug 16 01:23:14 I'm not sure why it doesn't cause a SEGV the way it is now. Aug 16 01:25:44 maybe dalvik saves it Aug 16 01:28:17 can somebody help me find the source code for the horizontalscrollview please Aug 16 01:29:03 AndyArmstrong: http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/java/android/widget/HorizontalScrollView.java;hb=cupcake Aug 16 01:29:16 man Aug 16 01:29:26 AndyArmstrong: you need to hire an Igor Aug 16 01:29:45 LMAO Aug 16 01:29:47 haha Aug 16 01:29:58 jsharkey: You could call Time.parse3339("") and the native code will try to check characters 0-3 before it checks for an exception (which only happens if the characters in the heap are the wrong kind of garbage) Aug 16 01:31:29 ty jsharkey Aug 16 01:31:31 hmm Aug 16 01:36:44 jsharkey: Also I have no idea who enf is Aug 16 01:37:03 Oh, it does cause a SEGV Aug 16 01:37:20 I/DEBUG ( 539): signal 11 (SIGSEGV), fault addr deadd00d Aug 16 01:37:33 doh Aug 16 01:37:40 is he in the add-to-reviewers box? Aug 16 01:37:43 no Aug 16 01:39:35 I added joeo Aug 16 01:39:45 I seem to remember he worked on the Time class Aug 16 01:43:57 cool. thanks **** ENDING LOGGING AT Sun Aug 16 02:59:57 2009