**** BEGIN LOGGING AT Sat Mar 29 02:59:56 2008 Mar 29 05:41:35 Hi, I would appreciate if anyone can help me out of one issue in android app Mar 29 05:42:29 presently I am using track file in /misc/location/gps folder to enable mock gps to consider my current location based n track file Mar 29 05:42:52 does anyone know how to bundle that in apk file Mar 29 05:43:30 I have different track files based on different locations and want to run my app with different track file Mar 29 05:44:17 right now I manully upload track file in eclipse>DDMS>FileExplorere Mar 29 05:47:59 does anyone know w the solution Mar 29 05:52:06 hey, has anyone done much hacking on the datepicker dialog widget? Mar 29 05:52:44 I want some function for seeing what month is displayed as the user scrolls though, or what date is selected, but I don't see that, and I don't know how I can add that Mar 29 05:54:06 Hi, I would appreciate if anyone can help me out of one issue in android app. Presently I am using track file in /misc/location/gps folder to enable mock gps to consider my current location based n track file Mar 29 05:54:32 Mar 29 05:54:56 Does anyone know how to bundle that in apk file? I have different track files based on different locations and want to run my app with different track file. Right now I manully upload track file in eclipse>DDMS>FileExplorer. Does anyone know the solution? Mainly how to put track file at /misc/location/gps folder using apk or application without manually putting file in fileexplorer in eclipse Mar 29 06:41:06 I would appreciate if anyone can help me out of one issue in android app. Presently I am using track file in /misc/location/gps folder to enable mock gps to consider my current location as per track file. Does anyone know how to bundle that in apk file? or how to enable gps with my customized track files at runtime without manually uploading file using eclipse but want to handle different track files to add this folder so that mock gps w Mar 29 06:42:01 or is there any other way to get gps location....how to use class file for gps Mar 29 06:42:33 are the tutorials using the new m5 code? Mar 29 06:49:44 I would appreciate if anyone can help me out of one issue in android app. Presently I am using track file in /misc/location/gps folder to enable mock gps to consider my current location as per track file. Does anyone know how to bundle that in apk file? or how to enable gps with my customized track files at runtime without manually uploading file using eclipse but want to handle different track files to add this folder so that mock gps w Mar 29 06:51:23 has anyone here worked with BinderNative before? I used it before in m3, but its deprecated in m5 now, i dont know how to update my code Mar 29 07:01:10 can anyone point me to example code of a service? Mar 29 07:02:45 I think the API samples have that Mar 29 07:02:48 http://code.google.com/android/samples/ApiDemos/src/com/google/android/samples/app/ Mar 29 07:03:07 thx! Mar 29 07:03:14 np Mar 29 07:08:39 none of those examples seem to be actual services though, just code for calling services Mar 29 07:09:23 well, i don't know then. i'm just happened to be reading the docs when you asked and thought they might pertain. Mar 29 07:11:11 it looks like you should extend android.app.Service and then call Context.startService() from your Activity Mar 29 07:12:31 tauren: which example are you looking at? Mar 29 07:12:47 Just looking at the api http://code.google.com/android/reference/android/app/Service.html Mar 29 07:13:14 oh, yes, I have seen that also Mar 29 07:59:50 Google Android Sucks - http://www.jroller.com/complier/date/20080204 Mar 29 08:08:39 hmm, i like android Mar 29 08:11:46 seems like a blowhard Mar 29 08:12:15 "there are bogus implementations of Image, Graphics, and Font fron J2ME, they don't work, but they make it hard to adapt the code. " Mar 29 08:12:31 lol Mar 29 08:39:44 can anyone help me debug a simple problem, I have upgraded to m5, and ported my code, it compiles now, but when I run the application, I get an error saying that the main class couldn't be loaded Mar 29 08:39:52 I have no idea how to fix this Mar 29 08:41:54 Unable to instantiate activity ComponentInfo{com.test.myapp/com.test.myapp.Myapp}:java.lang.ClassNotFoundException Mar 29 08:42:47 sudoer, make sure your xml files are right Mar 29 08:43:05 the manifest? or ui files? Mar 29 08:43:57 yeah, the manifest and the layout Mar 29 08:44:21 as far as I can tell, they are fine, I changed a bunch of errors in them as I upgraded to m5, the compiler complained about them Mar 29 08:50:43 is there something in logcat that im not seeing that explains where the problem is? http://pastie.textmate.org/172394 Mar 29 08:54:24 sudoer: try manually deleting bin folder and rebuild Mar 29 08:55:03 ok Mar 29 08:56:13 muth1: that didn't work, I am currently building via command line with ant && adb install bin/mystats.apk Mar 29 08:56:26 hmm Mar 29 08:56:57 inside bin/classes/com/sanbit/android/mystats/ I do see the Mystats.class, not sure if that means anything Mar 29 08:57:31 check the file package names match Mar 29 08:57:47 I was previously using ecliplse, but my ecplise got totally screwed up after upgrading to m5, it wont let me compile as it says package "com.sanbit.android.mystats" doesn't exist Mar 29 08:58:29 muth1: check the headers in each of the source files ? Mar 29 08:58:40 yeah, look at the package names Mar 29 08:58:53 make sure they are right and tallies with the filename on disk Mar 29 09:00:55 everything matches fine for me Mar 29 09:01:24 no idea Mar 29 09:03:29 muth1: apperciate the hlep, thanks Mar 29 09:50:09 has anybody created a jar for Android? Mar 29 09:50:16 would you pack it as apk or jar Mar 29 09:50:27 I guess jar Mar 29 09:50:36 any ideas? Mar 29 10:35:41 i can't override onkeydown for a view for some reason Mar 29 10:35:43 hmm Mar 29 11:33:41 rhett: have you checked that you don t have setDefaultKeyMode(SHORTCUT_DEFAULT_KEYS); setsomewhere Mar 29 11:34:06 i think i want setonclicklistener anyway Mar 29 11:35:24 i mean setonkeylistener Mar 29 12:08:06 anyone know why this doesn't work? I'm trying to use setOnKeyListener Mar 29 12:08:07 http://pastebin.com/d5298f833 Mar 29 13:06:33 is it normal that the emulator takes almost one minute to display a "hello world" example? Mar 29 13:10:19 yes Mar 29 13:11:05 bigodines: did you manage with your flash fs? Mar 29 13:11:26 acsia, no Mar 29 13:11:50 what are you working on? Mar 29 13:12:25 i'm just testing.. downloaded the latest sdk, eclipse plugin and type the hello world example... Mar 29 13:12:32 a ok Mar 29 13:12:44 it works OK but takes a lot to run Mar 29 13:12:53 yes Mar 29 13:13:03 i wonder how much it will take to run a "complex" application in the emulator :) Mar 29 13:13:57 well the idea is to make small footprint activities and let the system manage which process is run or not Mar 29 13:14:10 with oncreate/freeze etc... Mar 29 13:14:38 you are not suppose to make distributed system on your mobile... Mar 29 13:14:47 real world located swarn network Mar 29 13:14:48 haha Mar 29 13:14:53 that could be nice Mar 29 13:15:09 hey, i'm having a lot of problems with setonkeylistener Mar 29 13:15:27 what exception? Mar 29 13:15:27 or anything like that, anyone have experience with that? Mar 29 13:15:37 it is as if setonkeylistener does nothing Mar 29 13:16:02 I had that with maps on m3 Mar 29 13:16:14 hmm Mar 29 13:16:34 what are you trying to do? Mar 29 13:16:45 i'm trying to know what date is selected in a date widget Mar 29 13:17:12 so, i want to extend it with a DayOfMonthCursor Mar 29 13:17:38 then, I have to listen for keys to update the cursor Mar 29 13:17:42 the thing is that the onkey might be overwritten by the date widget Mar 29 13:17:50 hmm Mar 29 13:17:53 when you try to add your own Mar 29 13:18:14 that was the problem with the map controller which took over the onmotionevent Mar 29 13:18:40 so, what should I do about that? Mar 29 13:18:54 are you extending the date widget? Mar 29 13:18:59 or using it within a view? Mar 29 13:19:00 yeah Mar 29 13:19:21 do you have some code? Mar 29 13:19:45 http://pastebin.com/d5298f833 Mar 29 13:20:58 i'm trying this now, this seems to get called twice Mar 29 13:20:59 http://pastebin.com/d24761097 Mar 29 13:25:27 ahh, two actions for action down and action up, cool Mar 29 13:28:03 I am not sure, It could be that the view is not in front Mar 29 13:28:15 you could try to debug the view and see which one is in front Mar 29 13:28:28 that could be. That matters, acsia ? Mar 29 13:28:47 yes Mar 29 13:29:22 ahh, i should just call bringToFront() Mar 29 13:29:33 I had some problem with relative layout where the button was covered by an input text.. on the ui it looked fine but the onClick did not work Mar 29 13:30:26 I need to go eat something good luck Mar 29 13:40:28 bringToFront didn't help Mar 29 16:27:12 hola androiders Mar 29 16:28:12 rhett, hi Mar 29 19:02:33 Hi, I am new to Android....can anyone help me? Mar 29 19:03:41 while running application, I initialised LocationManager in onCreate method....now I want to reinitialize locationManager again based on different scenario Mar 29 19:04:38 mainly I want LocationManager to show another mylocation area Mar 29 19:04:49 is anyone there to help me, pls? Mar 29 19:07:18 i'm attempting to use a 3rd party jar file. It references config/data files stored within the jar by using a URL relative to the classpath. This doesn't seem to work in Android. Any workarounds? Mar 29 19:08:23 For instance, even getting a URL to a class file within the jar returns null: Mar 29 19:08:23 URL url = this.getClass().getResource(name + ".class"); Mar 29 19:08:27 and that code works fine outside of android. Mar 29 19:16:07 tauren: this code doesn't work because Android compiles to .dex files, not .class files Mar 29 19:16:27 niket: the locationmanager is a system service. so theres only one at a time Mar 29 19:16:41 not sure what the solution to your problem is, but changing the code to use (name + ".dex") wouldn't work either, since .dex is different bytecode format. Mar 29 19:16:43 if you want a mock loation provider check out Mar 29 19:16:47 http://www.anddev.org/trackbuilder_for_mock_location_providers-t384.html Mar 29 19:17:06 ahh, so each class is a .dex? I thought the jar becomes a .dex Mar 29 19:17:39 it seems like any resources in a jar are either stripped out or just cannot be accessed any longer. Mar 29 19:19:58 it seems odd that the 3rd party jar would need to know the location of it's class files... Mar 29 19:20:12 just curious... why does it need to know that? is it editing it's own bytecode? Mar 29 19:20:43 no, its actually loading data files from resources relative to the class file. Mar 29 19:20:55 That code was in a function called getBaseDirectory() Mar 29 19:21:11 i think they are going about it in a round-about way, but heck, it isn't my code. Mar 29 19:23:09 you might need to change that code to make it work with android Mar 29 19:23:31 like i know in my code i get the directory of some stored files by calling this: Mar 29 19:23:31 getPackagePath()); Mar 29 19:23:31 dbDir = getDir("db4o", MODE_PRIVATE).getCanonicalPath(); Mar 29 19:23:57 that's what i'm afraid of. the problem is that we aren't talking about just one data file. this jar has many resources for many purposes. it would have to be totally rebuilt. Mar 29 19:25:36 cool, thx. i'll try that. i'm going to take this jar and totally remove all this excess code that relates to URLs, resources, etc. And access android resources instead... Mar 29 19:25:52 where would I put a binary data file? res/raw? Mar 29 19:26:31 mmm, not sure. The reason i'm using the code above is because i use Db4o, which is an object database. Mar 29 19:26:42 it creates it's own file, but i just needed to specify where to create it. Mar 29 19:26:59 ok, i see Mar 29 19:27:01 .. so i'm creating a file programatically, not already prepackaged in the jar itself Mar 29 19:27:51 these data files are large binary objects that define speech characteristics of voices. So they are prebuilt and need to be accessed somehow. Mar 29 19:28:16 ah ok. sorry i don't know anything more about this Mar 29 19:28:33 well, you've been helpful anyway! thx! Mar 29 19:28:49 np Mar 29 19:39:56 Does anyone know about the setOnKeyListener problems with widgets? Mar 29 19:40:01 http://groups.google.com/group/android-developers/browse_thread/thread/4d174139b4a77d5f/ddbb79a6fff897ac?lnk=gst&q=setOnKeyListener#ddbb79a6fff897ac Mar 29 21:58:59 in a list activity which is the best way of checking if an item is selected? Mar 29 21:59:34 getSelectedItemId() will return a negative value if none selected Mar 29 22:05:06 ayo to all Mar 29 22:05:13 anyone here/ Mar 29 22:05:23 i have a quick question Mar 29 22:05:42 anyone here? Mar 29 22:06:35 yes Mar 29 22:06:56 ok one sec Mar 29 22:07:01 just not very active, if you ask a question some one will probably reply, but not instantly Mar 29 22:07:07 let me set up a pastebin Mar 29 22:08:47 http://pastebin.com/m428e248d Mar 29 22:08:57 can someone tell me if i've set this up correctly? Mar 29 22:09:21 the dialog box does not show up even when the if test is passed Mar 29 22:10:00 Lede? Mar 29 22:12:39 heeeeeelooooooooo? Mar 29 22:12:52 jjt009: like i said, be patient Mar 29 22:13:01 Lede: sorry Mar 29 22:13:23 Lede: the deadline quickly approaches Mar 29 22:13:26 jjt009: when you say if test is passed you mean the Log.d(); method gets called? Mar 29 22:13:39 no, the if test Mar 29 22:13:46 ( locs.isEmpty() == true) Mar 29 22:14:21 yes, and you can see the output of Log.d() in logcat? Mar 29 22:14:33 yes Mar 29 22:18:01 i can't see it Mar 29 22:18:27 thanks anyway Mar 29 22:20:13 if you want to display a one button alert dialog use Mar 29 22:20:16 showAlert(CharSequence title, int iconId, CharSequence message, CharSequence buttonText, boolean cancelable) Mar 29 22:20:19 or Mar 29 22:20:23 showAlert(CharSequence title, int iconId, CharSequence message, CharSequence buttonText, OnClickListener buttonListener, boolean cancelable, OnCancelListener cancelListener) Mar 29 22:20:41 you use the two button method in your code Mar 29 22:20:56 and pass null for the second button Mar 29 22:21:04 that could be the problem Mar 30 02:20:16 wonder if Google is going to post the apk's with the winners... Mar 30 02:20:31 cause some commercial apps might not appreciate that... **** ENDING LOGGING AT Sun Mar 30 02:59:56 2008