**** BEGIN LOGGING AT Sun Dec 21 02:59:57 2008 Dec 21 03:05:46 Howdy. Has anyone played around with camerapreview? Dec 21 03:06:26 I am having an issue of my preview being rotated 90degrees Dec 21 03:08:09 chrispix: camera preview only works on the G1 if your activity is oriented as landscape. Dec 21 03:10:20 How then does barcodescanner appear to have the image rotated correctlY? Dec 21 03:11:34 jpq: I guess my issue is it appears it auto rotates the surface so it is always @ 90 degrees no matter how I rotate the phone. It only works correctly if I slide keyboard out. Dec 21 03:15:41 I have tried. Dec 21 03:15:42 Dec 21 03:15:47 surfaceHolder.getSurface(); Dec 21 03:15:52 Surface.setOrientation(Display.DEFAULT_DISPLAY, Surface.ROTATION_180); Dec 21 03:16:09 Camera.Parameters p = camera.getParameters(); Dec 21 03:16:17 p.set("rotation", 0); Dec 21 03:16:25 both those.. no dice.. :/ Dec 21 05:23:52 This place is quiet. Dec 21 05:26:30 just a little Dec 21 05:27:12 can an app write to the app dir so i can fake apps? Dec 21 08:22:10 Anyone alive in here? Dec 21 08:22:43 nope Dec 21 08:24:09 any experience w/ camerapreview? It appears there is a bug in it, but the way to get around it is to set the manifest to landscape for the activity. Since my camera preview is contained inside a tab. I have re-created my camera preview as an activity. If I set the whole tab activity as a landscap, my tabs go landscape, but camera preview is fixed. If i do it to my camera preview activity, the tabs are right, but the previ Dec 21 08:29:19 i'm still trying to get my ahead around the api too. just doing simple stuff at the moment. Dec 21 08:29:42 I have been at it for about 2-3 weeks, I am trying to get an application out the door by 1/1/09 Dec 21 08:30:02 My issue is trying to do a mapview, and camera view inside a tablayout. Dec 21 08:30:22 I have it working except my damn camera activity is still off by 90degrees no matter how you turn the camera! Dec 21 08:30:43 even if you open the keyboard? Dec 21 08:30:44 I don't know if I can be any help cereal_eater, but if you have any Qs? ask away Dec 21 08:39:09 no. if I open the keyboard it gets resolved. Dec 21 08:39:17 but I don't want someone to open the keyboard if they dont' have too. Dec 21 08:39:21 umm to.l Dec 21 08:40:29 Maybe google w/ patch the dang issue. Then all my headaches will go away. Dec 21 08:40:52 I have tried messing w/ surface, with camera, and layout and manifest. no go. Dec 21 08:41:26 Although there was a silver lining that I was able to move code from my main activity to another class/activity :) Dec 21 09:12:07 how can i get the process's Application object from a Context? Dec 21 09:12:24 getApplicationContext() Dec 21 09:12:28 you can cast it to Application Dec 21 09:12:59 i was thinking that but why didn't they provide a getApplication() like they do in the Activity then? Dec 21 09:13:40 or why add getApplication() if getApplicationContext() already exists Dec 21 09:17:28 just some questions that arise when considering the properness of casting Dec 21 09:36:45 because the Context works only at the Context level Dec 21 09:36:52 Application and Activity are built on top of Context Dec 21 09:37:12 there is no guarantee that getApplicationContext() will return an Application instance Dec 21 09:37:28 it just happens that Application is also a Context Dec 21 10:20:33 so I managed to import Calendar in Eclipse Dec 21 10:20:41 but now it's complaining about all sorts of missing stuff Dec 21 10:20:51 where do I get android.providers.Calendar, for example? Dec 21 10:21:37 some of the stock apps cannot be compiled against the SDK Dec 21 10:22:24 is that intended to be fixed? Dec 21 10:22:31 or is it somehow not possible? Dec 21 10:22:54 ultimately we'd like all apps to compile against the SDK yes Dec 21 10:23:01 but it's not a priority at the moment Dec 21 10:23:18 can I help on that, or do I have to wait for Google to fix stuff? Dec 21 10:23:28 you can help if you want to Dec 21 10:23:35 we accept patches at source.android.com/review.android.com Dec 21 10:24:04 okay, but for example to fix this, would I need to write a new android.providers.Calendar? Dec 21 10:24:32 or is it just sitting somewhere else? Dec 21 10:24:51 also, is there already a status board of l10n completion? Dec 21 10:24:57 or would it help if I wrote such a thing? Dec 21 10:25:11 it's in the source tree at source.android.com Dec 21 10:25:15 it's just not part of the SDK Dec 21 10:25:19 so you would have to make it public Dec 21 10:25:31 but it's not public because the current API is not deemed to be ready for public use Dec 21 10:25:36 right Dec 21 10:25:38 so it's not just a matter of making the class public Dec 21 10:25:58 as for l10n, everything we need is pretty much already in 1.0 and cupcake Dec 21 10:26:04 I can't think of anything missing actually Dec 21 10:26:13 romainguy: I mean the strings Dec 21 10:26:21 e.g. if I want to help on nl-NL Dec 21 10:26:37 I'd need to go through all the apps and find the files and compare to the English versions Dec 21 10:26:53 it would be helpful if there were some webpage where I could grab an overview of what needs doing Dec 21 10:27:05 I know we have tools and stuff for that but I don't know what is the status Dec 21 10:27:27 is that something for which asking on a-p will help? Dec 21 10:27:30 while we'd be glad to get contributions, we are currently working with specialized writers/translators Dec 21 10:27:34 to ensure the quality of the translation Dec 21 10:27:45 oh, oka Dec 21 10:27:46 y Dec 21 10:27:58 but again, contributions are welcome Dec 21 10:28:11 I just don't know how we will review translations Dec 21 10:28:45 so, if I want to hack on Calendar, I need to do the repo dance and get the whole platform? Dec 21 10:28:53 yep Dec 21 10:29:01 and if I do that, can I still use Eclipse? Dec 21 10:29:15 sure, why couldn't you? Dec 21 10:29:20 oh, not sure Dec 21 10:29:24 * djc is not a Java developer Dec 21 10:29:41 though Java is a pretty easy language, and I had Java courses in uni Dec 21 10:29:51 Java has its subtleties :) Dec 21 10:29:58 before you submit a patch, make sure you are following the coding style Dec 21 10:30:11 most of the patches I've reviewed so far had tons of style issues Dec 21 10:30:16 is there a doc on style? Dec 21 10:30:19 so if you want to save time... :)) Dec 21 10:30:20 source.android.com Dec 21 10:30:29 I noticed it seems to be 4-space indents :| Dec 21 10:30:37 and just look at how the files you modify are written Dec 21 10:30:42 yes, 4 spaces indents Dec 21 10:30:45 and 8 spaces continuation indent Dec 21 10:31:44 seems to be no mention of coding style in the Contribute page Dec 21 10:31:50 maybe you should fix that ;) Dec 21 10:32:07 keep looking... Dec 21 10:32:07 http://source.android.com/submit-patches/code-style-guide Dec 21 10:33:36 in the submit-patches doc, there is no mention of 'style', nor 'guide' Dec 21 10:33:56 source.android.com is not one single page :p Dec 21 10:36:17 sure, but that's the page where I'm most likely to look for such things Dec 21 10:50:59 ever thought of putting the translations on launchpad? Dec 21 10:51:22 launchpad has an effective system of doing translations via a community Dec 21 10:51:48 it would require a custom xml2po converter though Dec 21 19:10:12 anyone know why adb says device not found? Dec 21 19:43:37 how do i make eclipse attach as a debugger? Dec 21 20:12:12 anyone around? Dec 21 20:14:10 FFForever, Run->debug Dec 21 20:14:33 eldenz, i did on my g1 it says waiting for debugger =( Dec 21 20:15:38 finally i got it XD, i needed to add android:debuggable="true" XD Dec 21 20:36:59 how do i make my screen a scroll able area?, i am using set text but i am adding 2 much text and some reason i cant scroll =( Dec 21 20:37:18 FFForever, put a ScrollView around Dec 21 20:38:52 is there an api doc with code examples for each part? Dec 21 20:39:06 http://code.google.com/android/reference/android/widget/ScrollView.html Dec 21 20:39:47 hm, there are snippets all over the place :) Dec 21 20:39:50 you just have to find them^^ Dec 21 20:40:15 and the ApiDemos is a good resource as well Dec 21 20:40:20 would be nice if there was a newb friendly api doc lol Dec 21 20:41:34 so i just add this to the end with a string full of my text ScrollView(string)? Dec 21 20:42:04 no Dec 21 20:42:13 in your xml layout Dec 21 20:42:20 wrap your current layout in a ScrollView Dec 21 20:42:42 where is my xml layout lol bah sorry but i am uber newb here =( Dec 21 20:42:47 reading the articles linked in the left hand side navigation is a good start, too :) Dec 21 20:43:00 res/layout/main.xml? Dec 21 20:43:07 especially Getting Started -> Notepad Tutorial Dec 21 20:44:10 thx eldenz =) Dec 21 20:44:23 yw Dec 21 20:44:27 eldenz, is there anyway besides adb to pull files from the usb? Dec 21 20:44:49 (maybe a way without enabling usb debugging), i am hoping to write a pocket quicken for the g1 =) Dec 21 20:45:20 hm, you can mount the sdcard... otherwise i don't know. what's a pocket quicken? Dec 21 20:45:56 pocken quicken is a windows mobile/pda version of the desktop version of quicken witch is a finance manager Dec 21 20:47:36 like gMoney? Dec 21 20:47:39 dgMoney Dec 21 20:48:10 more advanced it seems Dec 21 20:48:50 but maybe you should start with something smaller as your first app :p Dec 21 20:49:14 eldenz, where would the fun in that be? Dec 21 20:49:36 ^^ Dec 21 20:49:41 true Dec 21 22:22:17 What's the best way to store user settings in an android app? Is there a type of "registry" in android, or do most apps use text-base config files? Dec 21 22:30:20 use SharedPreferences Dec 21 22:31:05 romainguy, thanks Dec 21 22:33:26 (or sqlite databases) Dec 21 23:10:36 I'm using eclipse, and when I run my app it says it has "stopped unexpectedly", though I do not see any error or exception messages in the IDE. any ideas? Dec 21 23:11:06 are you running in debug mode? Dec 21 23:11:24 savid: check out the logcat window Dec 21 23:15:02 how do i set the menu to landscape mode even w/ the keyboard closed? Dec 21 23:15:23 you don't Dec 21 23:15:42 at least not without writing code :) Dec 21 23:15:54 that's what i mean, it's not in the Menu class api Dec 21 23:18:24 why would it be in the menu API? Dec 21 23:18:34 look for orientation Dec 21 23:18:37 you can declare it in the manifest Dec 21 23:21:04 does that set it permanently? for the life of the app? Dec 21 23:21:32 cuz i was thinking it would change based on how the user was holding the phone Dec 21 23:21:39 romainguy_, the logcat window doesn't seem to tell me much. I can tell it was an uncaught exception, I just can't tell where to view the details of the exception (ie, message / trace) Dec 21 23:21:56 cereal_eater: you can also use the manifest to declare that you want the orientation to change based on the sensors Dec 21 23:22:10 savid: that's what the logcat window is for Dec 21 23:22:13 it shows the logs from the device Dec 21 23:22:23 and notably the exception stack trace with all the info you need Dec 21 23:22:29 ooh, cool Dec 21 23:22:40 but Dec 21 23:22:44 it does use more battery Dec 21 23:23:00 and it's not necessarily good user experience (at least in my experience) Dec 21 23:23:18 for instance using the device on a table makes auto-rotating apps a pain Dec 21 23:23:26 you can also change the rotation form your code Dec 21 23:23:43 if you look at the source code of the Camera app (source.android.com), you can find out how Dec 21 23:24:26 ah, ok. I see it now. Dec 21 23:24:27 ok, i'll check it out Dec 21 23:27:12 hmm, ok I'm getting : UnsupportedOperationException: addView(View, LayoutParams) is not supported in AdapterView. This happens when I do setContentView(R.layout.main) Dec 21 23:28:49 here you go Dec 21 23:29:11 you're using a GridView or Spinner? Dec 21 23:30:31 make: *** [out/target/product/dream/obj/SHARED_LIBRARIES/libaudio_intermediates/AudioHardware.o] Error 1 Dec 21 23:30:51 is that the error expected right now when building android? Dec 21 23:31:01 or have i set something up wrong? Dec 21 23:31:34 no errors are expected when building Android :) Dec 21 23:31:42 heh Dec 21 23:31:50 oh.. thought there were problems when the cupcake stuff was rolled in Dec 21 23:31:59 there could be Dec 21 23:32:07 I haven't tried to compile the public cupcake yet Dec 21 23:32:23 i'm on amd64 too, which may not help Dec 21 23:46:16 Is there a resource somewhere that shows the gotchas of the type of Java code that dalvik won't handle? Dec 21 23:52:00 dalvik handles everything :) Dec 21 23:52:11 the only thing you cannot do at the moment is generate bytecode at runtime Dec 21 23:53:05 is it possible to get the source for exactly what was delivered with the phone instead of getting the current stuff? Dec 21 23:54:27 source.android.com Dec 21 23:54:35 get the release-1.0 branch Dec 21 23:55:43 so pass "-b release-1.0" on the repo line when doing the init? Dec 21 23:56:02 romainguy_: I'm getting errors when trying to compile a 3rd party library jar with dalvik Dec 21 23:56:19 i'm not sure how to see what the different branches are that are available Dec 21 23:57:06 romainguy_: http://paste.lisp.org/display/72433 Dec 21 23:59:44 Nafai: looks like the jar went through a tool like ProGuard which doesn't alway produce Java byte code that complies exactly with the specs Dec 22 00:00:38 I don't think so... Dec 22 00:00:42 * Nafai looks at the build.xml Dec 22 00:00:47 I built that jar locally Dec 22 00:01:20 * Nafai tries again Dec 22 00:03:52 Weird. Dec 22 00:03:59 This is the build file I'm using: http://code.google.com/p/clojure/source/browse/trunk/build.xml Dec 22 00:04:28 Does it matter which version of Java the .class files are compiled with? Dec 22 00:04:47 I'm using a 64-bit 1.6 JDK Dec 22 00:04:51 like I said Dec 22 00:04:55 you cannot do bytecode generation Dec 22 00:05:03 given what Clojure is... :) Dec 22 00:05:47 romainguy_: There is an AOT compiler now :) Dec 22 00:06:02 then why do you need the jar? Dec 22 00:06:08 runtime support Dec 22 00:06:19 utility classes Dec 22 01:03:29 looks like release-1.0 won't sync properly when the local manifest is added for the dream arch Dec 22 01:58:31 hi. I'm trying to get the emulator to see a fake sdcard for testing. Dec 22 01:59:01 I tweaked tha Android eclipse emulator setting like so, -sdcard /opt/android-sdk/sdcard Dec 22 01:59:15 and i used the mksdcard utility to make that file (with 100m) Dec 22 01:59:31 but the programs running in the emulator don't see the file. Dec 22 01:59:39 I wish we had a file browser Dec 22 02:00:46 (or I wish I knew my way around better.) **** ENDING LOGGING AT Mon Dec 22 02:59:56 2008