**** BEGIN LOGGING AT Thu Feb 26 02:59:57 2009 Feb 26 03:00:20 thank you very much. it works. Feb 26 03:03:53 when using managed dialogs, how do you get rid of one? Feb 26 03:04:24 oh wait, I think I see it. Nevermind.. Feb 26 03:06:33 hey, can the home button be overridden? Feb 26 03:06:46 i know back button can be Feb 26 03:07:35 muthu_, I don't see why not, but I think doing so would be very disconcerting to the users Feb 26 03:07:51 long phoneId = c.getLong(c.getColumnIndex(People.PREFERRED)); is throwing an error. Feb 26 03:07:52 ok, just wondered if possible Feb 26 03:08:02 Please tell me what is the new method. Feb 26 03:08:23 viju85, it would be helpful to know what error is being thrown Feb 26 03:08:36 and/or to see the relevant portion of your code (pastebin.ca) Feb 26 03:08:58 It says there is no method as People.PREFERRED. Feb 26 03:09:14 But how do i get the phone number of the person in the contacts list i clicked? Feb 26 03:11:14 can you paste your error message? Feb 26 03:11:55 People.PREFERRED cannot be resolved. Feb 26 03:14:07 viju85, use cursor to get the item position from the list adapter Feb 26 03:14:35 viju85, that's because People.PREFERRED isn't a field Feb 26 03:14:40 where did you find that? Feb 26 03:15:00 and you might want to try People.PRIMARY_PHONE_ID instead of People.PREFERRED Feb 26 03:24:23 oh thanks Feb 26 03:24:26 it worked. Feb 26 03:25:30 I'm pretty sure the home button is reserved Feb 26 03:25:37 oh he left Feb 26 03:41:13 can we put an arrayList into a cursor? Feb 26 03:47:51 eh? Feb 26 03:51:58 i dont think so Feb 26 03:54:25 you could serialize it into a blob field I suppose, but I'm not sure what you're even trying to accomplush Feb 26 03:54:27 accomplish* Feb 26 03:54:36 you can just create a custom Cursor Feb 26 03:54:44 unless what you want is put the content of the arraylist inside a db Feb 26 03:54:57 in which case, your question is weird :) Feb 26 03:55:03 haha yeah Feb 26 03:55:56 romainguy, is banding in gradient png normal ? Feb 26 03:56:15 if you don't pay attention to your gradient, yes Feb 26 03:56:24 ideally you should dither it Feb 26 03:58:07 so i suppose the tag has a dither attribute too ? Feb 26 03:58:50 paint has a dither attribute Feb 26 03:58:55 you can dither anything you draw Feb 26 03:59:07 but I was saying you should dither the asset before you compile it Feb 26 03:59:12 for instance, dither it in photoshop Feb 26 04:00:09 yeah, but i prefer doing it in xml :) Feb 26 04:00:16 it will be slower Feb 26 04:00:20 and the quality will be lower Feb 26 04:01:51 got it :) Feb 26 04:02:51 hey romainguy, I read through your blog post about onRetainNonConfigurationInstance() and have a question: does that get called if the Activity is in a FrameLayout? Feb 26 04:03:11 an activity cannot be inside a FrameLayout Feb 26 04:03:14 an Activity can contain one Feb 26 04:03:19 I've got it in an Activity that's wrapped in a TabHost and my breakpoint never gets fired Feb 26 04:03:20 and by default all activities have one Feb 26 04:03:22 so yeah, it works Feb 26 04:04:23 hmm\ Feb 26 04:05:40 romainguy, if i wanted to refresh a listview, would onStart() be the place to do it from? Feb 26 04:06:16 what do you mean refresh()? Feb 26 04:06:19 why onStart()? Feb 26 04:06:51 when some items are removed from the list, i need to reload it with remaining items. Feb 26 04:07:20 you don't need to reload the list view Feb 26 04:07:31 just notifyDatasetChange() it whenever you remove an item from the adapter Feb 26 04:09:27 ok, I thought i should stay away from that since it doesn't have a description in the docs. Feb 26 04:38:10 can we do this? Feb 26 04:38:12 String[] columns = new String[]{"My Bookshelf","On the Go","Options","Help",}; Feb 26 04:38:17 int[] names = new int[]{R.id.row_entry}; Feb 26 04:38:21 mAdapter = new SimpleCursorAdapter(this,R.layout.main,null,columns,names); Feb 26 04:38:25 setListAdapter(mAdapter); Feb 26 04:38:26 ??? Feb 26 04:38:28 please tell me Feb 26 04:38:39 yes Feb 26 04:38:45 but you don't even have enough id in your names array Feb 26 04:38:50 because i dont see the error, but at the same time i dont see a list of these string array items on the emulator Feb 26 04:39:06 what does that mean? Feb 26 04:39:08 oh wait Feb 26 04:39:10 no no Feb 26 04:39:11 ok Feb 26 04:39:13 you're doing it wrong Feb 26 04:39:21 could you please correct me? Feb 26 04:39:23 columns should contain the names of the columns from the database Feb 26 04:39:48 oh. but these string arrays are not from the database. they are my own. Feb 26 04:40:01 how do i list these strings in a ListView then? Feb 26 04:40:52 then you cannot use a SimpleCursorAdapter Feb 26 04:40:58 go read the examples in the ApiDemos sample from the SDK Feb 26 04:41:17 oh ok. Feb 26 04:41:25 let me see it and get back if i have any qs. Feb 26 04:45:02 hey thanks. i got it. it works. Feb 26 04:45:09 thanks romainguy. Feb 26 04:50:36 this is probably a stupid question, but do static references get torn down when the screen orientation changes? Feb 26 04:50:47 for example, if I have a class that's a singleton Feb 26 05:21:51 KNY: why would static references be torn down? Feb 26 05:22:01 the whole point of static references is to not be tied to isntances Feb 26 06:38:21 can I assume that the char type in java is an ASCII character? I'm assuming not, so is there a way to tell what type of encoding it is in or the system recognizes it as? Feb 26 06:38:48 I can't seem to find anything on it Feb 26 06:43:07 herriojr: Java uses UTF16 Feb 26 06:43:14 a char is 16 bits in Java Feb 26 06:43:39 sounds like windows, except a lot of windows is technically UCS-2 Feb 26 06:43:54 in Java everything is UTF-16 Feb 26 06:43:57 including the compiler Feb 26 06:43:59 and the language Feb 26 06:45:19 which means you can actually name your variables with your native alphabet ^^ Feb 26 06:53:14 no one native uses Unicode :D Feb 26 07:47:37 romainguy: ok, cool, thanks Feb 26 07:48:35 romainguy: man, and I thought I was the only one that didn't sleep around here ;) Feb 26 08:04:19 Can someone tell me when the Paid apps will be visible on dev phones again Feb 26 08:04:27 Hi all, I'm trying to put together a little stopwatch with visual effects, but the rendering (using a Thread driving a surface view) of some of the text is really slow. I'm trying to pre-render the text (numbers on the watch face) to bitmaps, but the anti-aliasing looks horrendous when they're rotated. Is there a faster way? Feb 26 08:52:21 jargonjustin: are you rendering the whole face every time? Feb 26 08:53:39 you might write the watch background as its own View and take advantage of buildDrawingCache() Feb 26 08:54:00 and then layer the changing parts as another View on top of it Feb 26 10:08:05 jsharkey: I'm not sure how much it would help. The entire screen is updated most every time. Feb 26 10:08:59 I'm trying to make a port of this view: http://objective-audio.jp/2009/02/14/bsw01.jpg Feb 26 10:10:04 The issue is creating a smooth rotation of the bottom watch face. I'm already playing some tricks of using a fixed arc and path effects instead of a full circle, but I can't seem to make it draw fast enough. Feb 26 10:10:25 Part of the problem is that the framerate needs to be pretty high for the number count to look believable, even if the rotation animation is smooth. Feb 26 10:25:29 hellooooo Feb 26 10:25:31 anyone up Feb 26 10:33:50 hi Feb 26 13:39:27 romainguy, that's what I thought (regarding static references), but I have a singleton wrapper around an httpclient that's giving me trouble Feb 26 13:39:32 I'll play around with it some more Feb 26 13:51:05 * DJTachyon needs to make an array of two-dimensional arrays Feb 26 16:50:28 Anybody knows how to get the email of the phone user? Feb 26 16:51:22 http://developer.android.com/reference/android/provider/Contacts.html Feb 26 16:51:38 http://developer.android.com/reference/android/provider/Contacts.ContactMethods.html#CONTENT_EMAIL_TYPE Feb 26 16:53:09 use Contacts.ContactMethods.CONTENT_URI as your ure Feb 26 16:53:17 uri Feb 26 16:53:22 do a managedQuery Feb 26 16:53:40 thanks :) Feb 26 17:26:24 um Feb 26 17:26:27 doubt! Feb 26 17:26:42 I was building a custom control for an app Feb 26 17:26:49 it's my first custom view subclass Feb 26 17:27:22 and I was thinking whether it is possible to emulate iPhone OS's behavior, where one touch event that starts on a view remains bound to that view even if it moves outside its bounds Feb 26 17:27:30 that'd be important because the control is draggable Feb 26 17:27:44 er Feb 26 17:27:47 not exactly draggable Feb 26 17:28:07 but it, in my intentions, interprets a dragging gesture proportionally to the distance dragged Feb 26 17:28:22 and it'd be useful for it to keep managing a drag that ends beyond its bounds. Feb 26 17:29:50 (from a cursory glance to the docs, it'd seem "no") Feb 26 17:33:20 millenomi: Hmmm Let me check on my ap. Feb 26 17:33:36 the component would end up in a dialog Feb 26 17:33:59 so I don't think it'd be possible to catch the drag gesture in the rest of the screen because, well, I don't cover the whole of the rest of the screen. Feb 26 17:34:10 (this can be changed, but I'd prefer not to.) Feb 26 17:34:19 millenomi: The motion event keep being sent even when you get outside. Feb 26 17:34:25 ah, cool. perfect. Feb 26 17:34:45 the only mention of this I could find in "Handling UI events" said "(within the bounds of the item)" Feb 26 17:34:48 so I was unsure. Feb 26 17:34:49 Yup. It must be what you want. Feb 26 17:35:04 I guess it is for the start of the event. Feb 26 17:35:14 does the packaging process modify files in the res/drawable/ directory? i'm seeing tight 100k pngs blowing up into huge 900k pngs in the resulting apk file. Feb 26 17:35:15 perfect. I'll try. Feb 26 17:38:42 yay Feb 26 17:38:44 another q! Feb 26 17:39:22 I have two main Activites in my source root atm -- the user-visible one and one that hooks up things so that OpenIntent's simulated accelerometer works. Feb 26 17:39:44 what's the best way to have both in the source root and work with both in eclipse BUT not package the debug code? Feb 26 17:40:07 atm, I'm using two git branches and merging back and forth but this is obviously suboptimal. Feb 26 17:42:08 millenomi: Sorry, can't help. Whenever I used accelerometer, I only tested on a real phone. Feb 26 17:42:35 so you didn't need to manage two codebases :) Feb 26 17:42:44 Nope :) Feb 26 17:42:55 yay being in a nation without Android handsets (and not having the munny to buy a ADP!) Feb 26 17:43:16 * MikHel 's first app has passed 40,000 downloads :D Feb 26 17:44:20 :D Feb 26 17:46:02 * MikHel 's app is the 11th most downloaded in the puzzle game category :) Feb 26 17:46:30 millenomi: Where in Italy are you located? Feb 26 17:46:36 Milano Feb 26 17:46:42 Cool. Feb 26 17:46:49 Not been there yet. Feb 26 17:47:00 it's a decent place to live. Feb 26 17:48:10 Any carrier bringing android phone to Italy soon? Feb 26 17:49:05 Vodafone Feb 26 17:49:10 announced it at MWC Feb 26 17:49:10 the Magic Feb 26 17:49:51 Magic? Feb 26 17:49:55 the G2 Feb 26 17:50:02 wasn't it named the HTC Magic? Feb 26 17:50:20 it won't be marketed with the T-Mobile designation, most likely Feb 26 17:50:34 ("G2") Feb 26 17:52:39 Ah. No keyboard. Feb 26 17:53:17 No idea what the codename was, but I've seen mentions of the G2. Feb 26 17:54:17 Magic Feb 26 17:54:31 http://www.htc.com/www/product/magic/overview.html Feb 26 17:54:35 the people calling it the "G2" are confused about the G* trademarks and what they're describing Feb 26 17:54:54 G1/G2/G3/etc = specific T-Mobile product line Feb 26 17:56:08 There's a G3 already? :) Feb 26 17:56:30 there isn't even a G2. Feb 26 17:56:54 Alright :) Feb 26 17:56:59 it's still *trademarked*, though :/ Feb 26 17:57:18 I hope they improve the GPS performance in the upcoming models. Feb 26 17:59:02 Is MIDI format supposed to be supported by all android phones? Feb 26 18:04:01 don't know, but it's definitely supported on the Dream, and I'd be very surprised if the Magic didn't support it Feb 26 18:06:28 Magic says it does. Feb 26 18:07:16 I have been creating music for my game and have saved the .wav file. Using .mid would save ton of space, but I' want to be sure that 1) all phones will support it 2) It creates the same music on all phones. Feb 26 18:22:39 mmmm Feb 26 18:22:41 q! Feb 26 18:22:46 q? Feb 26 18:22:53 question, for short. Feb 26 18:22:58 what's the right way to instantiate a custom view subclass in a layout xml? Feb 26 18:23:07 ? Feb 26 18:23:17 something like that. Feb 26 18:23:26 Hold on. lemme grab my code Feb 26 18:23:45 hello i search a sample code for use a share context with egl ? Feb 26 18:24:15 micke_suse: that's the way Feb 26 18:24:26 micke_suse: you can only have one GL context at a time on the G1 Feb 26 18:24:31 millenomi: That is correct. Feb 26 18:24:37 ok Feb 26 18:24:52 then follow-up q: is it normal that the layout editor freaks out on custom view subclasses? Feb 26 18:25:03 yes Feb 26 18:25:05 not the XML source editor -- it reports no problems. the visual one. Feb 26 18:25:05 ok Feb 26 18:25:10 ok i want use a mult -thread Feb 26 18:25:27 millenomi: Be aware that the constructor called will be DraggableWheel(Context context, AttributeSet attrs) Feb 26 18:25:29 thank you :) Feb 26 18:25:30 millenomi: yes Feb 26 18:25:31 depends on what you mean by freaking out of course :) Feb 26 18:25:43 the view appears completely black Feb 26 18:25:47 millenomi: Yes it freaks out until you run it once. Feb 26 18:25:47 ie empty. Feb 26 18:25:52 ah, okay. Feb 26 18:26:07 by the way: all I'm doing will end up on github Feb 26 18:26:11 millenomi: On my case, if I've run it once before, it will show something which looks "almost" like what it should be. Feb 26 18:26:13 github.com/millenomi/diceshaker Feb 26 18:26:34 MikHel: if it showed me an empty rectangle where the thing would be, I'd be happy :) Feb 26 18:27:22 Cupcake offers a cool new feature for custom views in the visual builder Feb 26 18:27:24 millenomi: It's not too advanced. It does not show mine anymore since I added a call to the Vibrator class. Feb 26 18:27:31 View now has a method called isInEditMode() Feb 26 18:27:39 when it returns true, it means you are in the visual editor Feb 26 18:27:45 otherwise, you are running on the emulator/device Feb 26 18:27:48 nice. à la MS. Feb 26 18:28:07 I wouldn't be surprised if they had something similar Feb 26 18:28:22 * millenomi remembers coding custom controls in VB5. Feb 26 18:28:31 * millenomi shudders. Feb 26 18:28:32 brr. Feb 26 18:28:41 anyway, sorry for the troubles with the visual editor Feb 26 18:28:44 np Feb 26 18:28:47 it's just difficult to make it work for everything Feb 26 18:28:51 it's nice :) Feb 26 18:28:51 since it actually runs the code Feb 26 18:29:01 I had guessed that Feb 26 18:29:26 and it's a bit of a pain for the SDK team when they have to deal with all the methods in the Android framework that call native code :)) Feb 26 18:29:40 romainguy, you have too much free time? or why did you implement that one? ;) Feb 26 18:29:47 I did not Feb 26 18:30:11 ok, good :P Feb 26 18:30:25 wait. PEBKAC. Feb 26 18:30:32 it was actually my fault. Feb 26 18:31:48 hi, i've a mapview with an overlay, i want to enable a user to click on certain areas on this overlay Feb 26 18:32:07 any suggestion how i can do this? Feb 26 18:34:30 romainguy, wait - you are saying that there are other people also working on everything-related-ui? (; Feb 26 18:34:55 I am not alone indeed :) Feb 26 18:39:30 romainguy: wait, the cupcake plugin for eclipse has a visual editor like flex? Feb 26 18:39:45 digitalspaghetti: it's already in 1.0 Feb 26 18:40:41 drag and drop view creation? really? Feb 26 18:41:01 it's not drag and drop yet, it's right click and click :) Feb 26 18:41:04 but yeah Feb 26 18:41:08 you can build your UI visually Feb 26 18:41:11 no need to write code Feb 26 18:41:19 yay getting drawing code right on the first try! Feb 26 18:41:26 Feb 26 18:42:19 speaking of layouts Feb 26 18:43:04 how do i access it then? is there an eclipse plugin update? Feb 26 18:43:25 digitalspaghetti: just double click an XML layout file Feb 26 18:43:50 anyway: http://infinite-labs.net/Extras/DraggableWheel/ is what I'm trying to achieve (try dragging it). Feb 26 18:44:14 as a replacement for "add one" and "remove one" buttons in a number picking dialog. Feb 26 18:45:25 romainguy__: yea, i have the visual view open, but i can only click on items and have a red box around them like in the hirerachy viewer Feb 26 18:45:33 clicking on things in the viewer does nothing Feb 26 18:45:45 there's a tree somewhere Feb 26 18:45:48 Outline Feb 26 18:45:50 you can add widgets in there Feb 26 18:45:52 the Outline tab. Feb 26 18:47:01 all I see is "Layout" and the name of the XML file to edit it Feb 26 18:48:08 digitalspaghetti: the Eclipse outline tab, in your left column. Feb 26 18:48:14 panel Feb 26 18:48:15 inspector Feb 26 18:48:20 whatryagonnacallit Feb 26 18:48:36 you can also use the Properties tab to edit all the properties of a given View Feb 26 18:49:26 ahh, it's a seperate panel! Feb 26 18:49:32 i was looking in the XML file panel Feb 26 19:12:20 * MikHel still cannot get access to the Phone owner's email. Feb 26 19:32:47 is there a default overlay for a zooming "panel" for map views or does everyone have i have to build my own? Feb 26 19:33:14 * -es everyone have :) Feb 26 19:33:28 <|Drizzt|> Hi Feb 26 19:34:01 <|Drizzt|> where can I get the khronos libraries to enable 3D for Eclipse ? I don't see to download in official page Feb 26 19:39:25 |Drizzt|: What do you mean? 3D works (though badly) on the emulator. Feb 26 19:39:36 <|Drizzt|> I mean OpenGL ES Feb 26 19:41:01 The android SDK has it bundled. Feb 26 19:41:19 <|Drizzt|> but I don't see javax.microedition.m3g.* in plugins folder on Eclipse Feb 26 19:41:24 <|Drizzt|> to test in local machine Feb 26 19:41:48 <|Drizzt|> then I can't compile nothing Feb 26 19:41:51 <|Drizzt|> with 3D Feb 26 19:44:17 <|Drizzt|> it's correct? Feb 26 19:47:17 Hmmmm not sure how it does it, but it sure is available. Feb 26 19:47:26 how do I get a user's gmail address that's registered for that phone? Feb 26 20:08:39 |Drizzt|: the 3D API is different on Android IIRC. Feb 26 20:52:18 why does the cursor class not have a getBoolean method? Feb 26 20:52:23 hey - have anyone worked with myMapView.displayZoomControls(true); before? Feb 26 20:52:42 is boolean not a supported type for sqlite on anrdoid? Feb 26 20:52:46 android* Feb 26 20:52:47 i don't get the ZoomView Feb 26 21:12:04 nvm... apparently you need to save booleans to text and then convert to boolean Feb 26 21:13:17 text? wouldn't it be faster to handle them as ints or something? Feb 26 21:13:41 i guess it depends on your semantics Feb 26 21:14:04 mpardo: I use 1 and 0 ints Feb 26 21:14:08 consider studying SQL Feb 26 21:14:17 tinyint(1) is a column synonym for boolean Feb 26 21:14:37 One must remember that SQL is very 70s/80s Feb 26 21:15:09 i work in t-sql all day, i didn't realize sqlite was so antiquated Feb 26 21:15:56 actually, I'm not an sqlite user, a quick glance at the docs reminds me that it is significantly simplified Feb 26 21:16:08 it is meant to be small and good enough, not terribly featureful Feb 26 21:16:12 not really "antiquated" as much as having been stripped down in certain ways to be suitable for very small installations Feb 26 21:16:18 right Feb 26 21:17:07 http://www.sqlite.org/datatype3.html Feb 26 21:17:07 integer skipped my mind, i was looking for a boolean type and some some random code converting text to bool Feb 26 21:20:42 ah i see why that code was converting a string. Boolean.valueOf, parse, etc only takes a string Feb 26 21:23:31 what he should have done is Boolean foo = cursor.getInt(x) == 1; Feb 26 21:36:01 hi Feb 26 21:36:10 this time a good question... Feb 26 21:37:17 if I catch with a receiver a Intent.ACTION_NEW_OUTGOING_CALL Feb 26 21:38:26 and want to stop the call, before to create a new intent with action = android.intent.action.CALL Feb 26 21:39:05 or I want to change the number of the android.intent.action.CALL akready in execution Feb 26 21:39:19 What have i to do? Feb 26 21:39:50 creating a new intent with action = android.intent.action.CALL simply is ignored Feb 26 21:39:55 you wanna hijack an outgoing phonecall? Feb 26 21:40:01 yes Feb 26 21:40:07 mafia purposes? Feb 26 21:40:09 no Feb 26 21:40:38 no virus only for add a code before Feb 26 21:40:43 the number Feb 26 21:40:58 esses: ... Feb 26 21:41:05 yes Feb 26 21:41:17 oh not for a virus Feb 26 21:41:18 :) Feb 26 21:41:38 no really...maybe it's better I explain the app Feb 26 21:41:55 I created a receiver for outgoing call that works Feb 26 21:42:10 that only provides a notification that the call is being placed Feb 26 21:42:16 it is not a filter mechanism on the call itself Feb 26 21:42:42 but It is called before the action.Call Feb 26 21:42:46 oh, i see what you mean Feb 26 21:42:50 did you read the documentation on this? Feb 26 21:42:57 it explains how to rewrite the number Feb 26 21:43:10 if you point me into something different of a list of methods Feb 26 21:43:12 ... Feb 26 21:43:33 http://developer.android.com/reference/android/content/Intent.html#ACTION_NEW_OUTGOING_CALL Feb 26 21:44:12 okay I probably read near it. I hope... :-) Feb 26 21:44:15 in particular, you need to set a priority > 0 to do it Feb 26 21:44:30 ctate too generous :-) Feb 26 21:44:56 esses: you should see him with hot sauce! Feb 26 21:45:02 setting priority >0 delete the previous orig CALL Feb 26 21:45:19 :-) Feb 26 21:45:24 right? Feb 26 21:45:48 quoting the documentation: "Any receiver whose purpose is to rewrite phone numbers to be called should have a positive priority." Feb 26 21:46:00 :-) Feb 26 21:46:03 :-P Feb 26 21:46:46 I read docs for some days and today I found all what I needed except for this... Feb 26 21:47:14 to rewrite the phone number, i believe you change the string extra stored in the broadcast intent Feb 26 21:47:24 maybe my sister says a right thing when she says "you can't find even your head" Feb 26 21:47:35 which is stored under the name Intent.EXTRA_PHONE_NUMBER Feb 26 21:47:57 yes I used already it to retrieve number but to set it? Feb 26 21:49:15 just use putExtra(Intent.EXTRA_PHONE_NUMBER, yourNewNumberString) Feb 26 21:49:30 i.e. the usual way of storing a string extra into an Intent Feb 26 21:49:36 I used it before I recieived a strange message from the IDE. However I try it Feb 26 21:52:42 oh wait, no, that's not how you do it Feb 26 21:52:57 the result of your onReceive() should be the new number Feb 26 21:53:15 so you call: setResultData(yourNewNumberString); Feb 26 21:54:02 yawn Feb 26 21:55:51 I try it now ... Feb 26 22:04:04 uhmmm more docs on it maybe was a good idea. For now nothing...It don't works... Feb 26 22:04:15 it doesn't works :-) Feb 26 22:09:32 hi Feb 26 22:09:51 R.drawable.ID <-- Feb 26 22:10:04 is there a way to ID took a dinamic form? Feb 26 22:10:17 I mean... I have 200 images, called image1, image2, image3 Feb 26 22:10:18 strange it works only one time Feb 26 22:10:37 I want to load them in a dynamic way, I dont wanna hardcode 200 lines Feb 26 22:10:40 then even if a reinstall on the emu it doesn't work Feb 26 22:11:30 good question...Juanjio I hope someone answer to you maybe I also need it Feb 26 22:11:35 in the future Feb 26 22:12:13 Juanjo-sfe: you can sort of do that Feb 26 22:12:50 Juanjo-sfe: there isn't anything built into the SDK tool suite for it, but you can build a source file that e.g. defines an array or other data structure with all the names in it Feb 26 22:12:53 ctate, maybe I've to rewrite the uri.parse tel:xxxxx Feb 26 22:13:27 Juanjo-sfe: so, for example, you'd create a source file in your application Feb 26 22:13:33 that had something like this: Feb 26 22:14:30 hm, i'm forgetting the compile-time syntax Feb 26 22:16:02 int[] myImages = new int[] { R.drawable.image0, R.drawable.image1, R.drawable.image2, R.drawable.image3 }; Feb 26 22:16:12 [or whatever] Feb 26 22:16:33 then myImages[N] == R.drawable.imageN Feb 26 22:17:46 ctate Feb 26 22:17:47 tes Feb 26 22:17:56 but I dont wanna to type all the names! Feb 26 22:18:16 write a script or something to generate the .java file Feb 26 22:18:26 what do you think of abortBroadcast to stop the ougoing call and then create a new intent with action.CALL Feb 26 22:18:27 ? Feb 26 22:19:05 esses: did you read the documentation on Intent.ACTION_NEW_OUTGOING_CALL? It says this: "Any BroadcastReceiver receiving this Intent must not abort the broadcast." Feb 26 22:19:17 must not or can not? Feb 26 22:19:31 i am quoting. Feb 26 22:19:36 why is it even ordered then? Feb 26 22:19:37 the documentation says "must not" Feb 26 22:19:39 yes I read it Feb 26 22:19:45 I like to read docs, Feb 26 22:19:49 it's ordered because the order of receipt is important Feb 26 22:20:12 and to guarantee that wakelocks are held across receipt, and to prevent receivers from timing out, etc. Feb 26 22:20:27 okay. I donì't use it Feb 26 22:20:49 it was calling me saying "esses, use me...essessss" Feb 26 22:20:54 hee hee Feb 26 22:20:56 but I don't use it Feb 26 22:21:06 to prevent the call entirely, setResultData(null) Feb 26 22:21:52 ctate, how do i write a script in Java? Feb 26 22:21:58 esses: http://android.git.kernel.org/?p=platform/packages/apps/Phone.git;a=blob;f=src/com/android/phone/ProcessOutgoingCallTest.java;h=199159ed2b819dcf476a831aa74b0639edc25963;hb=HEAD Feb 26 22:22:01 yes, the good thing is that I intercept new_outgoing_call, but I tried the setResultData and nothing... Feb 26 22:22:14 Juanjo-sfe: well, if it were me, i'd write it as a shell script or in perl or something Feb 26 22:22:27 ctate, yeah I was just kidding Feb 26 22:22:33 I don't want to see opensource code to avoid copyiing iit for a closes source app Feb 26 22:22:33 I use Python, btw Feb 26 22:22:42 any stupid way to print the list of 200 "R.drawable.imageN," strings, even one on a line Feb 26 22:22:44 it's not mine Feb 26 22:22:49 python is cool except for the whitespace thing :) Feb 26 22:23:11 ctate, what's the problem with them? Feb 26 22:23:27 you love them the second day of python coding Feb 26 22:23:37 but I don't understand what is python? Feb 26 22:23:57 esses, Python is a programming languaje Feb 26 22:23:59 Juanjo-sfe: it makes reformatters hard or impossible to do correctly, and it means that if you print out a piece of python you can't tell whether the original code was correct, because it might have whitespace bugs that look "right" when printed Feb 26 22:24:02 it is an interpreted language that uses other languages libs Feb 26 22:24:10 i know what is pythion Feb 26 22:24:14 python Feb 26 22:24:37 Juanjo-sfe: for some reason it just bothers me, that's all :) Feb 26 22:24:46 ok Feb 26 22:25:16 I have to study openc for symbian Feb 26 22:25:22 python for symbian Feb 26 22:25:32 can i use python for symbian? Feb 26 22:25:47 however off-topic Feb 26 22:27:48 so setResultData doesn't stop inCallScreen Feb 26 22:27:59 and the phone continue dialing... Feb 26 22:28:11 long night for esses, afternoon for many of you Feb 26 22:28:23 here 23.38 Feb 26 22:28:28 there? Feb 26 22:28:40 here 14:28 Feb 26 22:29:38 so you have already eat Feb 26 22:30:04 the past of eat...I forgot (ate?) Feb 26 22:33:25 maybe eaten Feb 26 22:35:46 uhmmm net troubles Feb 26 22:37:44 hallo Feb 26 22:38:18 anyone here? jemand da? Feb 26 22:38:40 hi Feb 26 22:41:03 was ist los, hangman ? Feb 26 22:41:30 wollt grad fragen, wie ich firc zum laufen krieg, weils heut mittag nicht geht, aber irgendiwe tuts jetzt auf einmal Feb 26 22:42:18 wow, i've forgotten most of my german. blah. Feb 26 22:42:43 xD Feb 26 22:42:52 Ich erinnere mich nich grad auf english Feb 26 22:43:21 this afternoon i tried to join irc with firc, but it didnt work. now i just tried agein and it works Feb 26 22:43:57 krieg=war Feb 26 22:43:57 okay, i got most of that but not quite enough to be helpful in response :) Feb 26 22:44:13 right? Feb 26 22:44:27 ja esses2-revenge^^ Feb 26 22:44:31 yeah, but iirc some places it's dialect for, um, "receive" or similar? Feb 26 22:44:45 so ::shrug:: Feb 26 22:45:02 sorry but my connection has trouble so my nick for now is that then I'll return to simple esses Feb 26 22:45:12 krieg -> kriegen = get Feb 26 22:45:20 it's dialect Feb 26 22:45:30 uhmm new things to learn Feb 26 22:45:58 sagen sie hallo to angela :-) Feb 26 22:46:04 xD Feb 26 22:46:17 iss dein schnitzel, sonst gibt es keinen nachtisch! Feb 26 22:46:33 scene from scrubs... Feb 26 22:46:56 heh Feb 26 22:47:18 one of the doctors says she can speak german, then she says this sentence Feb 26 22:47:27 i was thinking 'hast denn du mein brief net kriegt' :) Feb 26 22:47:50 hangman: ha ha Feb 26 22:47:53 omg bad german Feb 26 22:48:02 it must be gekriegt Feb 26 22:48:15 hangman: no, just as i wrote. it was a bizarrely popular song back in the 80s. Feb 26 22:48:23 stephan remmler Feb 26 22:48:45 perfekt Feb 26 22:48:48 :-) Feb 26 22:48:57 ah, as popular as heino, i think... Feb 26 22:49:04 Ich habe ein buch gelesen Feb 26 22:49:20 ahh old german lesson Feb 26 22:50:10 woher kommst du? Ich komme aus Sizilien Feb 26 22:50:19 stuttgart Feb 26 22:50:24 "Das ist Hans. Hans ist ein Junge." Feb 26 22:50:29 xD Feb 26 22:50:31 :-) Feb 26 22:50:32 * morrildl checks to see if he's on the right channel Feb 26 22:50:37 (first sentences from my first German textbook) Feb 26 22:50:46 peter paul and marry are sitting in the kitchen. Feb 26 22:51:00 the cat is on the table Feb 26 22:51:03 hangman: woher in stuttgart Feb 26 22:51:03 hm, do people use 'kommen' for that? i was taught to ask "woher stammen Sie?" or "woher stammst du?" Feb 26 22:51:05 I won! Feb 26 22:51:08 nicht das ich hier auch sitzen würde :) Feb 26 22:51:14 thanks all Feb 26 22:51:15 bye Feb 26 22:51:21 stammen is old, kommen is more modern Feb 26 22:51:30 hangman: aha, that figures. thanks. Feb 26 22:51:44 okay I can get again my nick with /n esses I don't remember Feb 26 22:51:44 * ctate first started learning German way too many years ago. Feb 26 22:52:12 i had 9 years of english in school... Feb 26 22:52:23 more than others stay in school at all Feb 26 22:52:28 eh eh Feb 26 22:52:50 hangman, which part in stuttgart r u from? Feb 26 22:53:07 I studied with a very beautiful german teacher :-) Feb 26 22:53:18 stuttgart is only the next larger city, i come from a little town near stuttgart Feb 26 22:53:26 which would be Feb 26 22:53:30 ostfildern Feb 26 22:53:34 ah haha Feb 26 22:53:36 kk Feb 26 22:53:44 I'm following the example for getting a WakeLock that's in the docs, but the screen (and CPU) still shuts off after the user's timeout preference. What am I missing? Feb 26 22:53:48 i'm in vaihingen, campus site Feb 26 22:54:06 I have android.permission.WAKE_LOCK in my AndroidManifest Feb 26 22:54:08 i have studied 2 years in vaihingen Feb 26 22:54:23 KNY: what kind of wakelock are you acquiring, and are you certain that you are not releasing it? Feb 26 22:54:52 KNY: and as a general question: what behavior are you trying to achieve? Feb 26 22:55:06 ctate, I've tried PARTIAL_WAKE_LOCK and SCREEN_DIM_WAKE_LOCK. I'm getting the wakelock in onResume() and releasing it in onPause() Feb 26 22:55:24 I remeber her name Feb 26 22:55:28 ahhhhhh Feb 26 22:55:30 ctate, I have an app using GPS that I'd like it to not lose connection for Feb 26 22:55:50 however I'm deebugging as usual Feb 26 22:55:55 hangman, so you know the wuba ? Feb 26 22:56:00 and nothing goes okay... Feb 26 22:56:13 wuba? Feb 26 22:56:18 wunderbar Feb 26 22:56:30 KNY: when the screen is being shut off, do you see your activity being paused? Feb 26 22:56:52 i'm guessing here, but what may be happening is that the idle timeout is firing, at which point your activity is paused Feb 26 22:56:55 ctate, yeah, it loses the GPS signal, I'm pretty sure Feb 26 22:56:58 then, since it's released the lock, everything goes down Feb 26 22:57:17 I thought that was the point of the wakelock Feb 26 22:57:29 (to override the idle timeout) Feb 26 22:58:25 and you're calling acquire() with no timeout? Feb 26 22:59:29 yes, I'm doing wl.acquire(); Feb 26 22:59:39 do you know what is CALLING_PRIVILEDGED Feb 26 22:59:40 ? Feb 26 23:00:21 when i connect my g1 to my w-lan at home, will i burn money for the internet, or will it use automatically the w-lan? Feb 26 23:02:18 if wifi is on and connected, the G1 will use the wifi for everything it can Feb 26 23:04:06 kk, cause i have only 200 mb for free Feb 26 23:04:18 dont want to spend money for the market Feb 26 23:04:51 away from keyboard Feb 26 23:05:35 KNY: hrm. offhand i can't think of other things to ask.... Feb 26 23:05:54 ctate, damn. Feb 26 23:08:39 hi guy Feb 26 23:09:12 I opend my email and I saw a "?" from a customer waiting for a vb.net software Feb 26 23:09:14 :-) Feb 26 23:09:31 KNY: you might need to tickle the power manager with userActivity(SystemClock.uptimeMillis(), true); occasionally Feb 26 23:09:44 maybe the android app took me too much time Feb 26 23:10:18 ctate, okay. I just put a breakpoint and onPause() is definitely getting triggered, so that's where it's getting released Feb 26 23:10:32 did powermanager change from 1.0 to 1.1? Feb 26 23:10:51 not a lot, iirc Feb 26 23:11:06 the system is more aggressive about powering down, though Feb 26 23:11:27 because aside from onCreate/onDestroy, this is almost exactly what I'm doing: http://www.anddev.org/screen_always_on_powermanager_wakelock_backlight-t3086.html Feb 26 23:11:34 mine are just in onResume/onPause Feb 26 23:12:27 right, his works because even when he gets paused, the activity holds the wake lock Feb 26 23:12:56 ah Feb 26 23:13:05 userActivity() will keep your activity from being paused and the keyguard brought forward, i believe Feb 26 23:13:10 that may not be what you want :) Feb 26 23:13:14 testing it now Feb 26 23:13:21 i would suggest moving the release to onStop() instead of onPause() Feb 26 23:13:36 yeah, it just got paused anyway Feb 26 23:13:44 aha Feb 26 23:15:17 wait, no, "tickling" the powermanager did the trick. But I like moving it to onStop() better Feb 26 23:15:25 yeah Feb 26 23:15:55 and the setup code should be in onStart(), right? Feb 26 23:16:17 well, no, nevermind, because the power setting is a preference, so it needs to kick in when it comes back from the settings page Feb 26 23:16:52 sounds like you can figure it out from here based on what you want to have happen Feb 26 23:17:06 yeah, thanks for the help Feb 26 23:17:29 it would have taken me a while to move it to onStop() on my own :) Feb 26 23:17:35 :) Feb 26 23:18:39 hey, anyone used MapViews and ZoomControls before? Feb 26 23:25:08 ctate, hmm, I hit the Home button to get out of my app and it doesn't seem to be releasing the lock Feb 26 23:29:59 nevermind; a reboot cleared that up. I think I killed the app once and it never cleaned up the wakelock Feb 26 23:53:44 KNY: aha, good Feb 27 01:36:26 good morning guys Feb 27 02:44:54 what's the simplest way to show a dialog with an EditText that you can capture? Feb 27 02:45:01 I don't think EditTextPreference is what I want Feb 27 02:47:56 Api demos has that. Feb 27 02:48:03 Under App/Dialog, I think Feb 27 02:48:50 is there a way to add a SeekBar to a view? Feb 27 02:49:45 does it make sense to even do that? Feb 27 02:50:23 i mean i'd like to specify the (x,y) coordinates of a SeekBar inside a custom view Feb 27 02:51:01 Have your view derive from a layout, and inflate the layout at runtime Feb 27 02:51:34 u mean implement a layout? Feb 27 02:52:31 derive from a layout, rather than a view, for your custom view. Feb 27 02:53:19 k, lemme read some more about layouts Feb 27 02:53:50 check out this: http://developer.android.com/guide/topics/ui/custom-components.html Feb 27 02:53:54 under compound layouts. Feb 27 02:54:06 it sounds like that's what you want - if not, let me know Feb 27 02:55:20 cool, thnx **** ENDING LOGGING AT Fri Feb 27 02:59:57 2009