**** BEGIN LOGGING AT Mon Mar 31 03:00:02 2008 Mar 31 03:03:45 hi Mar 31 03:03:53 oh, some other jeff Mar 31 03:04:15 Kraln: yes, jham :) Mar 31 03:16:08 hmm.. is there any way to do a bunch of inserts in a batch? it appears SQLDatabase.execSQL() only accepts one statement at a time Mar 31 03:16:39 and perhaps does some extra stuff... inserting 1250 rows took 35 seconds Mar 31 03:20:20 guess there isn't one.. execSQL calls a native C function Mar 31 03:25:31 hi guys, can someone help with a really stupid problem, after upgrading to m5 and porting my code, it now compiles, but now when I run the program, it has an exception immediately saying the main class can't be loaded Mar 31 03:28:52 what's the actual error msg Mar 31 03:29:30 the actual error is: java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.sanbit.android.mystats/com.sanbit.android.mystats.Mystats}: java.lang.ClassNotFoundException: com.sanbit.android.mystats.Mystats in loader android.lang.PathClassLoader@40069930 Mar 31 03:29:38 Mystats is the main activity Mar 31 03:30:40 I have deleted my bin directory and recompiled, I am using ant to build, my eclipse install seems to be even more messed up after moving to m5 Mar 31 03:31:01 I've been trying to fix this for a couple of days, but have no idea what is wrong Mar 31 03:33:26 could it be something with your manifest? Mar 31 03:34:02 thats what I thought, I've totally rewritten several times and compared it with the online docs, so I am not sure what is wrong with it Mar 31 03:34:20 and the Mystats class does exist and is in the package com.sanbit.android.mystats? Mar 31 03:35:11 yes, it is a class that does exists and Its included in the package Mar 31 03:35:34 here is the manifest in case it helps: http://pastie.textmate.org/173022 Mar 31 03:35:48 and your project is using the latest android jar and not the old one by mistage? Mar 31 03:35:53 mistake* Mar 31 03:36:56 yes, I confirmed this by seeming all the compile errors when I upgraded to m5 Mar 31 03:37:22 the compiler woulnd't compile without changing the manifest and xml ui files to use the new format Mar 31 03:39:41 does your R.java show up in the com.sanbit.android.mystats package too? Mar 31 03:40:22 yes, in the src directory Mar 31 03:40:54 in src/com/sanbit/android/mystats ? Mar 31 03:41:08 yes, in that directory Mar 31 03:41:45 I haven't built any projects with ant, so unfortunately I'm probably not much help Mar 31 03:42:30 I was originally on eclipse, but when i upgraded to m5, I cant compile becuase it says the package com.sanbit.android.mystats doesn't exist Mar 31 03:42:48 seems like those problems could be related Mar 31 03:42:58 in eclipse did you try to "fix project properties"? Mar 31 03:43:10 and it displays that error 10x times, if i change a line in any code and try to compile, it just adds the same error, so the error list keeps growing Mar 31 03:43:16 yes, I fixed project properties Mar 31 03:44:43 well, maybe you should try to create a new project at a new location on your box and just copy the source files in? Mar 31 03:45:12 ok, that might work, I'll try that Mar 31 03:47:52 are there ecplise related files that I need to delete in my project? Mar 31 03:48:51 not sure Mar 31 03:50:36 ok, i'll check it out, thanks Mar 31 04:34:25 ok, well, ecplise compiles the code now Mar 31 04:34:48 but the same error occurs when launching the application Mar 31 04:47:34 any ideas? Mar 31 04:52:16 in ecliplse I am now getting "this launch configuration is setup to start activity com.sanbit.android.mystats.Mystats this activity is not defined by the manifest,launch aborted Mar 31 04:55:12 :( Mar 31 05:02:33 jtoy, you need to add the activity to androidmanifest.xml Mar 31 05:02:33 what doe that error even mean?!?! Mar 31 05:02:44 dueynz: its in there though :( Mar 31 05:02:51 maybe its named wrong? Mar 31 05:03:13 What's the best way to pass paremeters between Activities? I have an ArrayList of an object that I want to display in a seperate activity. How would I do this? Mar 31 05:03:16 i've rewritten it several times, and checked every line Mar 31 05:03:48 jtoy, there is a gui you know? Mar 31 05:03:58 it builds fine if i compile from the command line, but any time I launch the app, it immediately fails: java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.sanbit.android.mystats/com.sanbit.android.mystats.Mystats}: java.lang.ClassNotFoundException: com.sanbit.android.mystats.Mystats in loader android.lang.PathClassLoader@40069930 Mar 31 05:04:05 when you double click on androidmanifest.xml it should open a gui editor Mar 31 05:04:09 it does for me anyway Mar 31 05:04:23 maybe you need to update eclipse plugin? Mar 31 05:04:32 dueynz: yes, I am trying to get it work with both ecplise and the command line Mar 31 05:04:41 poffy__, using bundles?? Mar 31 05:04:49 I am using the latest versions for ecplipse Mar 31 05:06:08 dueynz, you wouldn't happen to have a bundle example link, would you? Mar 31 05:06:24 well you activity is given a bundle right? Mar 31 05:06:38 yes, I believe so Mar 31 05:07:11 sec Mar 31 05:08:01 Intent extras? Mar 31 05:08:31 yeah Mar 31 05:09:06 Intent i = new Intent(this, TranslationSelection.class); Mar 31 05:09:06 i.putExtra("imgfile", tv.getText()); Mar 31 05:09:50 I can replace tv.getText() with an array list? Mar 31 05:09:54 or something similar? Mar 31 05:10:55 http://code.google.com/android/reference/android/content/Intent.html Mar 31 05:11:26 should be able to Mar 31 05:11:31 as ArrayList implements serializeable Mar 31 05:11:46 ok Mar 31 05:11:56 Thanks for the help Mar 31 05:32:06 hi guys, im trying to fix my project, I've moved each file to a new project, I get this error now though: /Users/jtoy/projects/sanbit/stats/src/com/sanbit/android/stats/Mystats.java:24: class MyStats is public, should be declared in a file named MyStats.java Mar 31 05:32:10 Anyone submit their android challenge project yet? I'm planning to put mine in on Friday. Mar 31 05:32:18 It's not great, but it's a start. Mar 31 05:32:21 that doesnt seem to make any sense to me, does anyone know what that means? Mar 31 05:32:34 public class MyStats extends ListActivity { <--- 1 error Mar 31 05:33:22 jtoy: the filename should be MyStats.java Mar 31 05:33:36 ok, jsut saw the case issue Mar 31 05:34:16 ok, im installing the package now, lets see if the issue is fixed this time, if its fixed, im going to be really pissed :( Mar 31 05:34:35 you should be pissed if it's not fixed ;) Mar 31 05:35:16 ok, it works, I'm pissed Mar 31 05:35:21 i still dont know why it works Mar 31 05:35:36 all I did was change the package name and moved all the files to a new folder Mar 31 05:35:59 Mystats != MyStats ? Mar 31 05:36:15 not in linux Mar 31 05:36:26 not sure if java file names are case sensitive in windows Mar 31 05:36:30 but probably are Mar 31 05:36:30 No, I'm telling jtoy Mar 31 05:36:37 I'm not actually asking :) Mar 31 05:36:56 jerkface03: In my old project I had MyStats Mar 31 05:37:32 im at a complete loss, I would like to learn my lesson, btu I have no idea what happenned :( Mar 31 05:37:42 It's case sensitive Mar 31 05:37:57 jtoy: well at least you can keep going now Mar 31 05:39:12 jerkface03: the case issue just appeared now as I created a new commandline project with activityCreator.py com.sanbit.android.stats.Mystats and forget to uppercase it, then i just copied over the files to my new project Mar 31 05:40:57 Man, I've only gotten 3 hours of sleep in the past 35 or so hours Mar 31 05:41:15 jerkface03: working or can't sleep? Mar 31 05:41:32 Finals, and a lot of big assignments due Mar 31 05:41:32 that sucks Mar 31 05:41:40 I just have to make it till the end of tomorrow and I'm good Mar 31 05:41:43 hanging out in irc doesnt help Mar 31 05:41:50 but that means more energy drinks and no sleep again tonight Mar 31 05:43:04 jerkface03: just graduated in the fall so I know what you mean Mar 31 05:43:28 kk, back to work I go. Mar 31 05:44:42 this is craziness: http://web.cecs.pdx.edu/~harry/Relay/index.html Mar 31 05:45:01 using physical relays Mar 31 05:45:25 ok, its not working anymore :( Mar 31 05:45:43 heh Mar 31 06:02:06 can someone tell me why the eclipse console would give me this error: [2008-03-31 02:00:59 - Mystats] class name (com/sanbit/android/mystats/UserReport) does not match path (classes/com/sanbit/android/mystats/UserReport.class) Mar 31 06:02:07 ...while parsing classes/com/sanbit/android/mystats/UserReport.class Mar 31 07:29:47 back from Tahoe :) Mar 31 07:31:29 welcome back, how was the vacation? Mar 31 07:33:03 awesome :) Mar 31 07:33:16 i'll upload some pics tomorrow or whatever Mar 31 07:33:27 * zhobbs is jealous...didn't get any snowboarding in this year Mar 31 07:36:54 bed time :) Mar 31 07:41:06 anyone ever been skiing/boarding on Mt Hood? it has been awesome this year Mar 31 07:42:09 jasta, you should create a custom map of your vacation on a site I'm currently working on ... www.mapwith.us Mar 31 07:42:24 similar to the google mymaps but more feature rich Mar 31 07:54:04 does anyone have a script for entering test contact and call data into android? Mar 31 08:03:04 any one there Mar 31 08:03:40 anyone there can any one tell me how to overlay Mar 31 08:03:47 my code not getting overlay Mar 31 08:18:02 zhobbs are you there? Mar 31 08:46:33 muthu Mar 31 08:46:53 do u know how to overlay map Mar 31 08:50:21 sandesh: haven't done anything with overlay Mar 31 09:41:04 how does anyone insert test data into android for calls/sms/contacts etc? Mar 31 09:42:42 jtoy: manually i guess Mar 31 09:43:23 that really sucks Mar 31 09:43:30 im sure there will be methods for it later though Mar 31 09:43:46 the contentprovider is available Mar 31 09:48:44 jtoy Mar 31 09:48:49 ? Mar 31 09:48:52 have u done layering Mar 31 09:49:00 maps Mar 31 09:49:04 no, im sorry, I haven't Mar 31 12:34:39 hi all Mar 31 12:36:53 anyone managed to mount the system.img using yaffs2 on a desktop machine (linux) ? Mar 31 14:03:40 can't wait for the SDK release tomorrow.. i'm eager the see the NEW feature coming in Mar 31 14:22:16 is it a pony? Mar 31 14:22:50 OMG! PONIES! Mar 31 14:23:29 löl Mar 31 14:29:00 what kind of new features are coming in ? Mar 31 14:29:13 wheels Mar 31 14:29:22 ok back again Mar 31 14:29:31 onies on a boat Mar 31 14:29:47 we are hearing rumors..its going to be FLASH Mar 31 14:29:56 OH NO Mar 31 14:29:58 please Mar 31 14:30:15 its not going to happen so soon .. i know Mar 31 14:30:30 if some random company (adobe?) wants to port flash on it, fine Mar 31 14:30:42 but putting it as a default component... fsck me ! Mar 31 14:31:06 i don't believe the flash thing Mar 31 14:31:21 there's already a not-open not-framework not-known multimedia handling library Mar 31 14:31:24 that's enough Mar 31 14:31:38 lol Mar 31 14:31:39 I still don't understand why the iPhone doesn't have Flash Mar 31 14:31:52 How hard can it be to port a Safari plugin from OSX to OSX Mar 31 14:32:20 B0jangles, they might come up with the excuse that it's not the same cpu Mar 31 14:32:33 B0jangles, but then there are ARM11 flash plugins (see Nokia NXXX) Mar 31 14:33:51 its not a technical issue Mar 31 14:34:28 right, it's politics Mar 31 14:34:44 flash is coming soon on iphone Mar 31 14:35:24 might as well say that voip is coming soon on the iphone (p.s. not possible unless you flash the baseband rom) Mar 31 14:36:35 iphone can't turn everyone off.. java, flash etc., Mar 31 14:37:16 oh, don't get me wrong, it's a SLICK device Mar 31 14:37:23 it's just a shame that everything being sucks so much Mar 31 14:37:43 as opposed to the Nokia NXXX, which has awesome hardware/framework but shitty UI/apps Mar 31 14:38:27 the devices are going to be a level playing game Mar 31 14:38:57 well hopefully Android is going to level the UI-game Mar 31 14:39:06 yeah.. that's what counts Mar 31 14:39:16 for developers we care about writing apps that people can use Mar 31 14:39:29 in as much phones as possible Mar 31 14:39:30 and as a user you want usable apps :) Mar 31 14:39:39 true.. you have the choice Mar 31 14:39:50 so ... seriously, how does one mount the yaffs2 system.img on a linux desktop ? Mar 31 14:39:54 got yaffs2 module Mar 31 14:39:58 and it's just being stupid Mar 31 15:14:53 Another one due from google? http://happylaughing.blogspot.com/2007/03/how-google-is-going-fool-every-on-this.html Mar 31 15:18:18 we're going to rickroll everybody on earth. Mar 31 15:27:44 That would be a pretty amusing easter egg in the devices Mar 31 15:28:02 every 1,000th YouTube access automatically redirects to rickroll Mar 31 15:28:05 ;) Mar 31 15:31:22 there was a proposal to rickroll everyone who clicks the I'm Feeling Lucky button. Mar 31 15:54:18 hy there, i am stuck at the tutorial for android apps Mar 31 15:54:21 The method addId(long) is undefined for the type Uri Mar 31 19:10:33 any developer advocates around? Mar 31 19:15:58 Hi Mar 31 19:16:54 i´m writting a server-client activity to android, but i have some troubles with connect on web-ips Mar 31 19:17:38 for instance, i can connect in my server by his internal ip (192.168.0.1), but i can´t do this with his external ip, (200....) Mar 31 19:17:50 any1 here have some idea what is happen? Mar 31 19:19:01 well, i ll stay here, thx for your time, and sry my poor english :/ Mar 31 19:41:00 romainguy: how was your trip? dan said you took off out of country Mar 31 19:41:49 zhobbs: I had to go back home for the funerals of my little brother Mar 31 19:42:14 romainguy_: my condolences...very sorry Mar 31 19:42:21 sorry to hear that romainguy Mar 31 19:42:35 Thanks Mar 31 19:47:59 my deepest condolence romain Mar 31 19:48:47 good to see you back romainguy Mar 31 21:06:12 my condolences romain Mar 31 21:25:51 does anybody know if there's a way to use the Google Maps API to return the distance between two GPS points? Mar 31 21:26:11 I have a formula, but it it's always off by a fairly high number of miles... Mar 31 21:26:28 3963.0 * arccos[sin(lat1) * sin(lat2) + cos(lat1) * cos(lat2) * cos(lon2 - lon1)] Mar 31 21:27:09 it's close enough, I suppose, but it would be nice to just be able to query Google Mar 31 21:27:50 B0jangles: you want just raw distance or driving distance? Mar 31 21:28:03 preferably raw distance Mar 31 21:28:18 hmmm...maybe that's why my calculations look off Mar 31 21:28:26 Google Maps is giving driving distance, isn't it... Mar 31 21:28:55 maybe my formula is okay Mar 31 21:29:06 yeah, google maps is driving distance Mar 31 21:30:53 is there some way to confirm the raw distance between two points? Mar 31 21:31:00 just to check my data? Mar 31 21:31:15 not in android, necessarily, just a web page or something... Mar 31 21:31:31 google earth has a measuring tool Mar 31 21:31:44 ah! I have Google Earth Mar 31 21:31:50 I'll try that Mar 31 21:31:53 thanks Mar 31 21:36:12 hmm...nope, my calculations are still off. Off by a bit less, but still off. Mar 31 21:36:51 wonder if google eartch is accounting for curvature Mar 31 21:37:04 My formula is supposed to do that too Mar 31 21:37:05 I would think so Mar 31 21:37:14 hence all of the sin and cos Mar 31 21:38:05 B0jangles: are you doing this calculation a lot in your app? I think there are some warnings about float performance on mobiles Mar 31 21:38:21 nope, not at all. Doing it on the server side. Mar 31 21:38:29 ah Mar 31 21:38:40 but yeah, there's no floating point processor Mar 31 21:38:44 so floats are slow Mar 31 21:43:19 I'm sure writing a fixed-point cos() is a lot of fun :) Mar 31 21:43:40 Heh, I would imagine it wouldn't be ;-) Mar 31 21:46:40 B0jangles: That was ironic :) Mar 31 21:46:46 or sarcastic Mar 31 21:46:51 or whatever the right word is Mar 31 21:47:29 Er, sarcastic, I guess. ;-) Mar 31 21:47:43 unless there's some hidden irony there that I'm missing... Mar 31 21:50:36 hmm...I wonder if I'm just having rounding errors... Mar 31 22:03:26 yawn Mar 31 22:03:45 back from tahoe, ready to start hacking again :) Mar 31 22:35:56 well android has microdegrees Mar 31 22:36:21 it's pretty lame that Location's set methods for latitude and longitude don't support microdegree inputs as long's Mar 31 22:36:44 likewise for getLatitude() etc. Mar 31 23:16:03 yawn Apr 01 02:19:20 what's a good way to access a file by it's relative name. For example if I have the string "../../file.foo" and I know it's relative to file F how can I get a file object for file.foo? Apr 01 02:20:28 try with new File(parentDir, "../../file.foo") Apr 01 02:20:50 and to get parent dir you can do something like new File(myFileF).getParent() or something like this Apr 01 02:21:02 titleText = (EditText) findViewById(R.id.username); ... why is titleText null? this is in my onCreate() for my activity Apr 01 02:21:18 because it does not exist in your layout Apr 01 02:21:18 raidfive: is if after you setContentView()? Apr 01 02:21:24 is it* Apr 01 02:21:40 romainguy: thanks, lemme try that Apr 01 02:22:13 hi all! Apr 01 02:22:17 oh I figured it out ... stupid bug Apr 01 02:23:19 hi jtoy Apr 01 02:26:23 romainguy: target.getAbsolutePath() is returning "/path1/path2/../file.ext" : File target = new File(f.getParent(), path); Apr 01 02:31:43 hmm Apr 01 02:31:57 hasn't there been a rumor that there will be a release tomorrow with some HUGE feature? Apr 01 02:32:10 april fools joke Apr 01 02:32:12 :) Apr 01 02:32:12 yeah Apr 01 02:32:15 I was just thinking that Apr 01 02:33:03 I wonder what /. will do for the occasion this year Apr 01 02:35:18 zhobbs: that will work Apr 01 02:36:14 romainguy: ok, I need to find a way to normalize the path name because I have to compare it to a field in a database Apr 01 02:36:30 I wrote a piece of code to do this a long time ago Apr 01 02:36:32 it was annoying :) Apr 01 02:36:40 hehe Apr 01 02:37:50 has anyone used Geocoder.getFromLocationName() before? Apr 01 02:38:44 I think I've tried it Apr 01 02:38:56 that's the reverse geocoder thing right? Apr 01 02:39:02 it just throws an exception Apr 01 02:39:22 null pointer, if I remember correctly Apr 01 02:40:03 Oh, I'm thinking of getFromLocation Apr 01 02:40:07 I submitted a bug report: http://code.google.com/p/android/issues/detail?id=462&q=getfromlocation&colspec=ID%20Type%20Version%20Security%20Status%20Owner%20Summary Apr 01 02:41:10 the end Apr 01 02:41:45 yea I'm using the method where you actually plug in an address and it supposedly returns an array of addresses around this address Apr 01 02:42:07 okay Apr 01 02:42:07 but all I really want to do is get the lat/lon for a supplied address Apr 01 02:42:18 I think that's getFromLocation Apr 01 02:42:22 It doesn't work Apr 01 02:42:30 Most of the geocoder stuff doesn't work Apr 01 02:42:39 getFromLocation() takes two doubles as arguments ... so that isn't it Apr 01 02:42:51 oh yeah, you're right Apr 01 02:42:56 still doesn't work Apr 01 02:43:00 :) Apr 01 02:43:25 the arguments for getFromLocationName() don't really make sense for what I want Apr 01 02:43:33 etFromLocationName(String locationName, double centerLatitude, double centerLongitude, double latitudeSpan, double longitudeSpan) Apr 01 02:44:42 for those lat/lon values, I guess I could have it just span the entire globe and the first Address result in the array should be the most accurate Apr 01 02:44:49 getFromLocationName("Vancouver, WA", -90.0, -180.0, 180.0, 360.0); Apr 01 02:44:52 does that look reasonable? Apr 01 02:44:57 romainguy: ahh, found File.getCanonicalPath() ...it does it for you Apr 01 02:46:52 you just want lat/lon for an address? Apr 01 02:48:03 yea Apr 01 02:49:19 just came across an example: Apr 01 02:49:19 getFromBusinessName("Zachary's Chicago Pizza", Apr 01 02:49:19 0.0, 0.0, 180.0, 360.0); Apr 01 02:49:32 seems similar to what I was trying to do **** ENDING LOGGING AT Tue Apr 01 02:59:56 2008