**** BEGIN LOGGING AT Fri Jul 03 02:59:57 2009 Jul 03 03:05:32 need some help here Jul 03 03:05:32 I'm working on porting Android to the htc herald, and I can't figure out how to make the keyboard slide rotate the screen in android. Anyone have any ideas? Jul 03 03:05:43 i have been trying to get the code for the media player Jul 03 03:06:03 however when i get the code and create an eclipse project there are errors Jul 03 03:06:11 is there something else i need to do Jul 03 03:06:40 y Jul 03 03:07:42 darkstar62: do you know what kind of signal the keyboard slide generates? Jul 03 03:07:55 (presumably there's some kind of sensor that needs kernel support) Jul 03 03:19:54 it's whatever I need it to be. Presently it's a switch event Jul 03 03:20:31 yulebern: you cant import just the music project on its own. Jul 03 03:20:41 it probably depends on internal apis not in the SDK Jul 03 03:20:46 thats my guess anyway Jul 03 03:21:16 darkstar62: so, you could look at what the dream kernel does to report that event up to userspace (perhaps an input device, or a uevent?), and do the same thing, and the android userspace code should take over and deal with it Jul 03 03:21:18 the recommended way to open it in eclipse would be to download the entire source tree and import per the instructions at [google for eclipse android source] Jul 03 03:28:30 jasta: so does that mean i cant get it outside of the whole tree or just that i would have to also get the other apis it uses and then use it as a standalone Jul 03 03:28:59 i dont know for sure either way, im merely speculating based on my experience with other apps Jul 03 03:29:12 if you are finding it doesnt build, you would know better than i why that is and whether it depend son extra apis Jul 03 03:29:25 maybe you could try looking at the errors :) Jul 03 03:29:58 cool, ill give that a try and see what happens, thanks Jul 03 03:30:13 im curious, why wasn't that your first choice? :) Jul 03 03:30:59 because i didnt want the whole thing just that app so i went after that first Jul 03 03:54:31 got a question regarding PendingIntents Jul 03 04:45:27 anyone know how to do proximityalert? Jul 03 05:15:29 hrm, I get Caused by: android.database.sqlite.SQLiteException: no such column: SMS: , while compiling: SELECT latitude, longitude, datetime FROM Events WHERE event = SMS Jul 03 05:15:36 is there something wrong with my query? Jul 03 05:15:38 which is Jul 03 05:15:41 Cursor mCursor = mDb.query("Events", new String[]{KEY_LOCATION_LAT, KEY_LOCATION_LONG, KEY_DATETIME}, "event = "+eventtype, null, null, null, null); Jul 03 06:12:34 Can someone tell me how to set the selected item in an AlertDialog with single choice items (source is an ArrayAdapter). I know that I can set a checked item when it gets created the first time. But how do I set if afterwards? Everytime is gets reused it ignores all the settings I make on the checked item. Jul 03 06:37:38 hey guys, the download page of the android SDK mentions that Eclispe can be used to look at the local documentation files, someone wanna point me in the directio nof that feature? Jul 03 07:02:32 Someone must know how to be able to influence the checkedItem in an AlertDialog when it gets reused by the system. Please. :D Jul 03 07:17:41 Hi, is it possible to suppress the "Back-Button" functionallity and asign a own logic? Jul 03 07:18:57 maybe on a lower level Jul 03 07:18:59 i dont know Jul 03 07:55:11 morning Jul 03 07:55:22 morning Jul 03 09:47:14 hi all, cant seem to find out how to convert long to integer ? can anyone help ? Jul 03 09:58:49 johnnyzen: uh, cast it Jul 03 09:59:10 johnnyzen: You'll lose precision, though Jul 03 09:59:46 kRutOn : thanks :) Jul 03 10:00:06 kRutOn: hows it going today ? Jul 03 10:01:54 just organizing some things Jul 03 10:03:33 cool Jul 03 10:14:03 sorry for all the questions, I hope they dont sound too dumb. I am learning, so thanks. Jul 03 10:17:36 are there any example widgets? Jul 03 10:20:38 the_alien: http://jsharkey.org/blog/2009/04/24/forecast-widget-for-android-15-with-source/ Jul 03 10:33:19 thx kRutOn Jul 03 11:26:01 is the gui editor so buggy or is it my installation? i drop anything and i get NPEs Jul 03 11:28:00 oh no, it only happens with the TabWidget Jul 03 12:49:27 hey, is there a possibility to restart a canceld timer ? Jul 03 15:26:01 is there a reason android doesnt use a tickless kernel? Jul 03 15:27:15 bmk789: is the tickless ARM port done now? Jul 03 15:27:20 you'd have to ask SanMehat but the answer is probably "yes, there is a reason" Jul 03 15:28:29 bmk789: it looks like it does, actually? Jul 03 15:28:35 http://android.git.kernel.org/?p=kernel/msm.git;a=blob;f=arch/arm/configs/msm_defconfig;h=885550552bf87f4e884616ec25bd1c8dc79401b8;hb=HEAD Jul 03 15:28:38 CONFIG_NO_HZ=y Jul 03 15:29:38 hm, i guess its just my build then Jul 03 15:31:19 when roaming, does your phone find a new APN or does it use your existing APN and simply register on the foreign network? Jul 03 15:40:16 BlindOracle, i believe it just uses the same apn, i only have one apn on my g1 and it roams fine Jul 03 15:40:50 bmk789, does that mean you have exactly one APN in your database or that you can see one APN in the GUI? Jul 03 15:41:08 I have 23 APNs but can only see one on my phone. Jul 03 15:41:26 but when roaming...you still only see the same old APN? Jul 03 15:41:40 hm, i can only see one Jul 03 15:41:48 havent checked it when roaming Jul 03 15:43:23 bmk789, what you describe is how I expect things work - but looking for a factual confirmation. I believe it uses the same APN and simply registers on the network. After all, if a MMS is sent and it started using a different APN, how would it know how to get the MMS data - unless it used the original APN Jul 03 15:43:52 err - sent = sent/received Jul 03 15:44:14 right Jul 03 15:45:03 and the roaming carrier would need to know which carrier to charge for your data, so if its going through your carriers apn... Jul 03 15:45:52 right...so it would use your apn's numeric with the foriegn carrier...seems to make sense to make... hope we're right ;) Jul 03 16:04:06 need some help with a widget. i have my AppWidgetProvider registered to receive intents. i would like to update the widgets when i receive the intent. but do i need to call AppWidgetManager#updateAppWidget() to update them or can i do it from the onReceive method? Jul 03 16:26:50 hey, is it possible to restart a canceled timer ? Jul 03 17:12:49 Hi everybody Jul 03 17:13:57 question 1: I exported an unsigned apk with eclipse, posted it to a web page and downloaded it to my phone but it says that it can't install. What should I be doing to make an apk? Jul 03 17:14:35 question 2: Can anyone point me to where I can find out how to access the gmail contacts list? Jul 03 17:16:38 whaledawg: you should sign it :D Jul 03 17:16:50 see the sdk instructions on signing your apks Jul 03 17:24:43 sammyF_: Hey Jul 03 17:25:15 svm_invictvshoyhoy Jul 03 17:25:22 svm_invictvs: hoyhoy even ;) Jul 03 17:45:24 Does anyone know if the msn app included in some of the custom roms for G1's use sms instead of wifi/3g? Jul 03 17:48:15 hi Jul 03 17:50:14 i can't remember how i called my avd, how can i check what avds i have? Jul 03 17:52:32 hi ;) Jul 03 17:52:42 hi Jul 03 17:52:46 i have a simple question... Jul 03 17:53:43 the_alien: http://d.android.com/guide/developing/tools/avd.html Jul 03 17:53:46 look for list avd Jul 03 17:53:58 everyone: is there a way to get the resource id of a View object? Jul 03 17:54:59 in the docs, the only method i found is getId() but it returns an useless int. Jul 03 18:02:31 the only thing i have to do, to send sms between two emulators is to use the port as the phone number, correct? Jul 03 18:08:28 sammyF_: Hey. Jul 03 18:09:16 svm_invictvshoyhoy Jul 03 18:09:23 svm_invictvs: hoyhoy even ;) Jul 03 18:09:53 just trying to mess with people's mind and give some a deja vue :P Jul 03 18:11:27 lol Jul 03 18:12:06 sammyF_: That build you sent me throws an exception :( Jul 03 18:12:13 which one? Jul 03 18:13:05 Circuits or the new one? Jul 03 18:13:36 The new one Jul 03 18:13:46 I wann have a look at both. Jul 03 18:16:55 svm_invictvs: the new one is still very very early Jul 03 18:17:00 I'll send you the last build Jul 03 18:17:06 ok Jul 03 18:18:48 namazu, right? Jul 03 18:19:08 * sammyF_ really needs to add "svm_invicts" as tag in his contacts Jul 03 18:19:09 yeah Jul 03 18:22:05 svm_invictvs: still ... an exception sounds weird Jul 03 18:22:14 were you trying to run it on the emulator? Jul 03 18:25:49 just tried it and it crashes on the emulator oO Jul 03 18:25:56 runs fine on the phone somehow Jul 03 18:34:06 anybody around Jul 03 18:40:03 yes Jul 03 19:15:17 is there an example of adding multitouch to your custom view? I have a image scrolling view and the client wants zooming. I'd like to try multitouch if possible Jul 03 19:17:57 sammyF_: Emulator, yeah Jul 03 19:24:50 "invalid enum" Exception Jul 03 19:25:01 weird Jul 03 19:25:09 as I said, it runs fine on the phone Jul 03 19:25:44 anybody familiar with dialogs? Jul 03 19:25:59 AH! Jul 03 19:26:03 "E/GLLogger( 720): couldn't load library (Cannot find library)" Jul 03 19:26:11 that might be the problem Jul 03 19:32:43 anybody ever had this exception while using openGL on the emulator? Jul 03 19:35:26 @ sammyF_ re-start your emulator with the the command: emulator -wipe-data Jul 03 19:45:42 grr ...gonna kill my ISP Jul 03 19:47:14 anybody got the error "E/GLLogger( 720): couldn't load library (Cannot find library)" while trying an application using openGL on an avd? Jul 03 19:48:16 anyone knows how to copy a table from one database to another? Jul 03 20:09:06 the only thing i have to do, to send sms between two emulators is to use the port as the phone number, correct? Jul 03 20:55:02 svm_invictvs: you got the thing with the opengl lib missing? Jul 03 20:58:44 I'm trying to develop a long press within a submenu and having trouble. Googling brings me this as the main result: http://groups.google.com/group/android-developers/browse_thread/thread/acdd8777763b6028. But it seems to refer to being called within an active activity rather than within an invoked DialogInterface. Jul 03 20:59:13 This result also shows me how to do a long press by implementing an interface within an activity: http://www.androidsnippets.org/snippets/19/ Jul 03 21:00:03 I am still unclear as to where/what to call to get the long press functionality in my dialog menu with a list of single choice items. Jul 03 21:00:18 sammyF: I dunno. Jul 03 21:00:23 Could someone point me in the right direction please? Jul 03 21:00:35 sammyF: ONce my G1' battery charges up. Jul 03 21:03:08 svm_invictvs: I only get it on the avd btw. Jul 03 21:03:28 Ah, I see where I was confused Jul 03 21:03:42 You only register the context menu upon creating the dialog Jul 03 21:03:55 and then deregister it when you leave the menu Jul 03 21:09:08 how can you catch when a dialog has been dismissed? Jul 03 21:13:10 Implement the DialogInterface.OnCancelListener() Jul 03 21:13:35 Or on DismissListener() even Jul 03 21:13:45 http://developer.android.com/reference/android/content/DialogInterface.html Jul 03 21:17:38 Anyone here use a Canvas in their app with scaling? Jul 03 21:18:15 http://paste.ifies.org/526 is my view i am writing, and i'm adding zooming Jul 03 21:18:38 it works great, except that it zooms into 0,0 so while you zoom in, it cuts off the right of the image Jul 03 21:18:47 zoom out again, it starts to work fine Jul 03 21:20:18 any ideas how i can fix that, so it zooms in exactly to the center of the image (or a suggestion to get rid of my custom view and be able to do zooming/scrolling on resource images?_ Jul 03 21:25:38 Not quite sure what you are asking Jul 03 21:25:47 are you trying to find the center of the image Jul 03 21:26:14 and then from that, zoom to the center of the map point at that central location? Jul 03 21:27:22 @digitalspaghetti because I can give you round abouts code for that Jul 03 21:28:28 yes Jul 03 21:28:41 well not the centre of the image, but the center of the image in the view Jul 03 21:28:52 for example, and image might be 640x1000 for example Jul 03 21:29:13 so i have created the view to be able to scroll around the image itself Jul 03 21:29:55 but i'd like to be able to zoom in to the image, but whats happening is each time i zoom in, you can't go over to the right or bottom edges of the image Jul 03 21:30:18 it stars clipping the image, until you zoom out to the furthest level again Jul 03 21:30:35 hi im trying to isntall the NDK on a 64-bt ubuntu 9.04 system. when i run host-setup.sh, i get the following errors: http://pastebin.com/m3d84abdd has anyone else encountered this and know how i can solve the problem? Jul 03 21:33:59 @digitalspaghetti I'm not sure actually after having just quickly looked at it Jul 03 21:34:18 I put what I looked at on paste bin: http://pastebin.com/m65239d1d is this your problem? Jul 03 21:35:48 hm Jul 03 21:36:17 chomchom: thats a map view though, this isn't a map Jul 03 21:36:46 Ah right, when you say zoom, you mean like enhance the size Jul 03 21:36:53 sorry I missunderstood Jul 03 21:37:06 yea Jul 03 21:40:33 You could Canvas canvas = new Canvas; canvas.setBitmap(bitmap); and then calculate the width/height and center? Jul 03 21:41:26 like this guy: http://www.mail-archive.com/android-beginners@googlegroups.com/msg03172.html Jul 03 21:41:39 ahh, no i think i possibly see what it is. In the handleScroll i'm only ever +/- 50 Jul 03 21:41:49 but as I scroll in, I think I need to increase that number Jul 03 21:41:52 when i do cursor.getInt(columnIndex) and it turns out that coulmn is empty, does it throw an exception? Jul 03 21:41:54 forgot Jul 03 21:42:25 Okay gotta run, good luck Jul 03 21:42:26 because as i zoom in/out, the screen width/height and image width/height doesn't change Jul 03 21:42:31 that's the only fixed value Jul 03 21:42:46 @digitalspaghetti we have to speak about those android meetups sometime soon Jul 03 21:43:05 I'm Kevin from Novoda by the way. Jul 03 21:43:26 oh, hey! Jul 03 21:43:50 That guy that did a talk on Android in Glasgow is up for it Jul 03 21:43:58 will you be through to any of the edinburgh meetups soon? I need to try get through to the glasgow ones Jul 03 21:44:00 Andre? Jul 03 21:44:07 Yeah Andre Jul 03 21:44:25 I'm only in Glasgow at odd times, I keep missing them Jul 03 21:44:37 Going to the London ones though Jul 03 21:44:49 There are lots of people at those ones like 40-60! Jul 03 21:45:05 oh, cool! a good turnout Jul 03 21:45:21 Had Jon Hall from the Linux foundation and openmoko giving us a talk the other week that was cool. Jul 03 21:46:38 I've got to do a talk for the up and coming meeting in London so I could do that talk on orientation and then you could do one on something just to get us started off. Jul 03 21:46:58 Or even we just meet at the pub, but I find you get a lot more "pros" if you give talks Jul 03 21:47:27 yea Jul 03 21:49:12 There is a techmeetup in Edinburgh next week? Jul 03 21:49:36 I'll come through for that because I'll be in Glasgow, we can chat about it then if you are around Jul 03 21:50:15 I gotta run, hopefully see you at the techmeetup Jul 03 21:51:05 yea, wednesday Jul 03 22:18:42 dang, romainguy ain't here :( Jul 03 22:20:30 How do I make those linky things? Jul 03 22:23:04 linky things? Jul 03 22:27:18 whats the most popular layout ? Jul 03 22:56:19 sssssssssssssssssssssssssssssssssszqazqQQQQQQQQQQQQQ Jul 03 22:56:29 sorry Jul 03 23:00:29 so noone can point me to where I can find out how to access the gmail contacts list? Jul 03 23:11:26 anyone know much about unit testing using AndroidTestCase? Jul 03 23:12:05 Specifically, I want to load a file from my *test* assets/ directory, not from the main assets/ directory. Any way to do that? Jul 03 23:13:33 Loading an asset file would normally be getContext().getAssets().open("foo.txt") , but that only loads from the main app assets dir Jul 03 23:14:09 is it under the assets directory? Jul 03 23:14:42 like /assets/folder Jul 03 23:16:42 yes, it's under assets folder, but in my unit testing project (which references the main app via in the AndroidManifest.xml). The test framework sets it up to only access the main app assets folder, not my test project assets Jul 03 23:17:16 just add the structure into it Jul 03 23:17:18 like Jul 03 23:17:24 "folder/foo.txt" Jul 03 23:17:49 you are missing the point -- it will only load from the main app assets/ folder, not my test project assets Jul 03 23:18:03 oh Jul 03 23:26:31 how do I find out if an activity is open or not? Jul 03 23:50:56 evening gents Jul 03 23:50:57 and ladies Jul 03 23:53:42 who wants to beta test my near final app Jul 03 23:53:52 its a 3 in one conveniance app news, weather, sport Jul 04 00:04:56 hrm, that reminds me Jul 04 00:05:06 are there any junit extensions for android? Jul 04 00:06:33 AndyArmstrong: could it be that you used another name 2 days or so ago? Jul 04 00:39:52 AndyArmstrong, I want to test it! Jul 04 00:47:08 i'm having trouble loading a lot of javascript into webkit. works on the emulator not on the g1 Jul 04 00:47:16 crashes: http://pastebin.com/m1c0195f3 Jul 04 00:49:13 i'm getting a few weird errors in fastboot, trying to restore a nandroid backup and either get "FAILED (data transfer failure (Unknown error))" or "FAILED(data transfer failure(Too many links))" Jul 04 00:49:21 anyone have an idea of what that means? :( Jul 04 00:50:27 err i lied, first one says "command write failure" instead of "data transfer failure" Jul 04 00:50:49 hi tommy, just saw you in the other chat.. naw, i don't what that means Jul 04 00:53:29 argh Jul 04 00:53:34 i gotta get going... i'll be back later Jul 04 01:21:54 If I want to access a method in an activity, from within the same package, where do I start? Jul 04 01:29:20 does DatabaseOpenHelper's onCreate method gets called when i initialize the database or when i actually try to insert? **** ENDING LOGGING AT Sat Jul 04 02:59:57 2009