**** BEGIN LOGGING AT Tue Apr 07 02:59:58 2009 Apr 07 03:03:52 hi i tried reading the docs but i cant figure out why my bitmap has a height/width of -1 Apr 07 03:03:58 i'm using BitmapFactory.decodeResource() to load it Apr 07 03:36:17 what's the opengles version supported in cupcake? Apr 07 03:36:30 is it opengles 2.0? Apr 07 03:42:06 1.0 Apr 07 03:42:08 and bits of 1.1 Apr 07 03:42:32 thx Apr 07 04:03:18 * warewolf hopes this is where all the cool kids hang out Apr 07 04:06:45 * warewolf waits for his repo sync to finish pulling down Apr 07 04:08:43 depends on how you define cool Apr 07 04:12:42 mmm.. Apr 07 04:13:29 lets see, where the s/n ratio is actually decent, people know what "root" is, etc. Apr 07 04:19:31 yeah, I think this is the cool place then, not much traffic though Apr 07 04:19:58 and that Apr 07 04:20:01 'd be one of the cool kids Apr 07 04:20:39 I'm making an effort to figure out the bootanim{0,1}.raw files, and how to make 'em play on the phone Apr 07 04:21:57 cool, that would be nice Apr 07 04:22:18 which reminds me, I should check and see how many hits of the mp3 versions on my website there were Apr 07 04:22:22 DING repo sync is done Apr 07 04:22:53 61 hits on the mp3s so far, heh. Apr 07 04:24:31 oooh Apr 07 04:24:35 frameworks/base/libs/surfaceflinger/SurfaceFlinger.cpp: property_get("debug.sf.nobootanimation", value, "0"); Apr 07 04:26:07 yeah, you can disabe to boot animation, nice if you want custom splash screens Apr 07 04:26:15 grep ftw Apr 07 04:26:19 # echo 1 > debug.sf.nobootanimation Apr 07 04:26:45 you can also put those in system.prop Apr 07 04:26:55 so your images build with them out of the box Apr 07 04:27:01 yup Apr 07 04:27:11 * warewolf squees with joy Apr 07 04:27:34 there's something that's just ... right about Portal - Still Alive.mp3 as boot.mp3 *grin* Apr 07 04:27:48 there is a boot.mp3? Apr 07 04:27:56 on the dream, apparently. Apr 07 04:28:00 O.o Apr 07 04:28:01 morrildl mentioned it yesterday Apr 07 04:28:10 stick it in / of the sdcard Apr 07 04:28:17 jsharkey: oh yeah you were not around Apr 07 04:28:21 it's an "easter egg" Apr 07 04:28:28 oh goodness :/ Apr 07 04:28:44 if i hear /anyone/ use the mac startup flourish i will smash your phone Apr 07 04:28:48 hi there, i'm using BitmapFactory.decodeResource() to load an image but Bitmap.getHeight() and Bitmap.getWidth() return -1. any idea why? Apr 07 04:28:48 when that thing was added to the build you could hear some weird loud noises coming out of every office in b44 :)) Apr 07 04:28:55 jsharkey: bwahahaha Apr 07 04:29:03 romainguy: you mean "Never gonna Give You Up"? Apr 07 04:29:09 jsharkey: dude, you really have issues :) Apr 07 04:29:14 oh boot.mp3 was an easter egg? I thought they just forgot to put the boot.mp3 file on the filesystem :) Apr 07 04:29:21 nope Apr 07 04:29:22 If it's good enough for WALL-E, it's good enough for Dream. Apr 07 04:29:33 //shudder// Apr 07 04:29:34 wait, I never saw the movie Apr 07 04:29:41 OH NOES SPOILER Apr 07 04:29:42 astley was in wall-e? Apr 07 04:29:58 warewolf: yes, he was WALL-E's father Apr 07 04:30:09 spolier schmoiler, if rick astley is in wall-e I will go see the movie just for that. Apr 07 04:30:24 also like Weezer's Pork and Beans video. Apr 07 04:30:24 heh i just realized you could write a "virus" app that would put a boot.mp3 on the sdcard Apr 07 04:30:31 I have to buy the album because of the video. Apr 07 04:30:37 it is made of so much pure win. Apr 07 04:30:38 but wait, its android, where users reboot only monthly Apr 07 04:31:06 would it be too much to ask for vim on the dream? ... or am I dreaming? Apr 07 04:31:19 well I'll be damned. Apr 07 04:31:25 busybox rules. Apr 07 04:31:43 it does Apr 07 04:32:36 oh, and shell history (up arrow) works in adb shell when it doesn't via the terminal emulator. I bet the escape sequences are wrong, or a TERM isn't set right Apr 07 04:33:59 warewolf: the adb shell history is faked ;) Apr 07 04:34:24 aww, that's cheating Apr 07 04:35:08 oh ow, yes it is faked. And it totally just screwed up my vi session. Apr 07 04:35:21 * warewolf switches to hjkl Apr 07 04:36:51 can anyone point to any android opengl es tutorials on web? Apr 07 04:37:10 almost everything is opengl 2.0 Apr 07 04:37:50 OpenGL ES 1.0/1.1 is basically OpenGL 1.x Apr 07 04:38:57 romainguy: any links to docs? Apr 07 04:39:06 look at the kronos web site Apr 07 04:39:45 they have a bunch of specs.. nothing useful Apr 07 04:40:07 buy the OpenGL Red Book Apr 07 04:40:13 that's what I used to do OpenGL on Android Apr 07 04:41:02 ok, i think i might have that.. :) Apr 07 05:05:17 Hey all Apr 07 05:06:37 anyone here? Apr 07 05:07:35 I have a question about exiting an application, is there a way to completely reset an app when the user hits the back or home buttons? Apr 07 05:08:56 I ask because I have a splash screen I want reloaded every time the users launch the application. Apr 07 05:12:56 Kevin_Droidicka: why? Apr 07 05:13:04 what could the user benefits from having to reload your app? Apr 07 05:33:00 why have the splash screen relaunch? Apr 07 05:34:48 It's for a client related app and it's been specifically requested, sometimes clients (people paying to have the application built) have their own set of requirements. Apr 07 05:47:31 Kevin_Droidicka: what's stopping you from showing the splash now? Apr 07 05:48:15 when the home or back screen is pressed the app simply retains it's state and when relaunched it is back to where the user left it Apr 07 05:49:45 Kevin_Droidicka: you can finish an activity Apr 07 05:50:10 and also check the activity launch flags.. may be you can tweak those flags to the desired behavior Apr 07 05:50:45 well the app cycles through a series of OnTouch events, so there really isn't an activity to finish per say. This is where I am stuck Apr 07 05:53:37 override the back button.. and finish the activity Apr 07 05:55:16 muthu I'll give that a try, thanks Apr 07 06:34:46 Kevin_Droidicka: It's for a client related app and it's been specifically requested, sometimes clients (people paying to have the application built) have their own set of requirements. << I understand, but you can also try to explain that's not how Android apps should behave Apr 07 06:34:47 Apr 07 11:26:59 hi Apr 07 11:43:50 i wonder whats google vision on Android is it limited to smart phones or includes mids and netbooks too Apr 07 11:44:21 i am making low cost kiosk / mid device on micro atx form factor probabbly atom cpu Apr 07 11:52:23 gopogo: well it works on x86 now I believe Apr 07 11:54:25 is it possible to acess standard linux apps or those in deb repo in anariod ? Apr 07 11:55:59 I dont know exactly how the internals work, but not "in android" really no, android has it's own toolkit on top of the kernel Apr 07 11:56:39 http://developer.android.com/guide/basics/what-is-android.html picture of it there. Apr 07 11:58:34 can I port Android runtime to standard linux kernel Apr 07 11:59:51 think the kernel is fairly standard Apr 07 12:00:05 you can get the entire thing and see what patches they are running though Apr 07 12:12:06 Hi G1 guru guys, I would like to know if one of you knows where to find the radio update for an RC9 version Apr 07 14:49:30 how much ram is available for applications on the G1? Apr 07 15:30:38 hey there. I might be daft, but does the theme.xml code snippet at http://android-developers.blogspot.com/2009/03/window-backgrounds-ui-speed.html work in Eclipse for anyone? Apr 07 15:31:17 Eclipse keeps on telling me "no element found" on the first line ( ) Apr 07 15:33:38 works for me :( Apr 07 15:35:37 hmm ... somehow I keep having weird issues with the API Apr 07 15:36:30 the theme.xml file should really be only those 5 lines, right? Apr 07 15:36:38 no schema or anything needed? Apr 07 15:37:19 ahh Apr 07 15:37:23 was missing Apr 07 15:38:16 the Ressource editor opened when I tried editing it, but it didn't add the thanks Tauno :) Apr 07 15:39:31 vol, you around? Apr 07 15:40:21 sammyF, it was working for me also without the (with just he 5 lines) :) Apr 07 15:40:58 i'm PMing you, please don't /kill me Apr 07 15:41:47 yeah, /ban should be enough Apr 07 15:41:58 lol Apr 07 15:55:01 tbr: I am now, replied to your msg Apr 07 15:57:42 sammyF: sorry I usually omit the part in blog posts because it's implied and because it doesn't add anything of value to the blog post Apr 07 16:00:59 romainguy: no problem. I just assumed the ressource editor would actually set it up, so I didn't really notice it was missing Apr 07 16:35:10 I'm planning on releasing the first update for my app, and want to test it on my G1 before I push it to the market. When I run adb install -r though I get a INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES error. The only thing I've found googling it is someone who signed their app with two different keys. I signed it with the same key though. Has anyone seen this before/have any ideas? Apr 07 16:37:00 marklar, as the error says, you signed it with two different keys :( Apr 07 16:37:25 something tells me you are using 2 different certs... Apr 07 16:38:03 ^^ Apr 07 16:38:03 if I understand right, SAXParser has to specify the tags before runtime, is there another XML parser do more things? Apr 07 16:38:16 I thought so too, I only have one keystore with one key in it though :( Apr 07 16:38:34 I'm probably doing something wrong, thanks Apr 07 16:39:49 are you using the debug key accidently? Apr 07 16:40:17 I don't think so, I right click on the project and export the unsigned jar, then sign it using my keystore Apr 07 16:44:25 d'oh just me being stupid, forgot the version on my phone wasn't the one from market Apr 07 16:44:31 thanks Apr 07 16:45:05 would be neat to be able to save a Bundle/Parcelable to disk via SharedPrefs Apr 07 17:46:39 hey guys! is the ADT update site down or has changed url? ( http://dl-ssl.google.com/android/eclipse/ ) Apr 07 17:48:24 try https Apr 07 17:48:28 cedricv: it's not down, directory listing is not enabled. http://dl-ssl.google.com/android/eclipse/site.xml works fine so it should be OK from within eclipse Apr 07 17:50:30 hmm well first time did not work thus why i tried in a browser, but yeah seems to work now :) thanks Apr 07 19:10:21 anyone play with the calendar provider at all? Apr 07 19:27:59 oh very strange Apr 07 19:28:05 it says i've joined #android as well, but is not showing me the window for it Apr 07 19:28:08 oh dear. Apr 07 19:41:20 fixed after reboot. sigh. Apr 07 20:54:06 I have a question about org.xml.sax.helpers.DefaultHandler.class, could anyone help? Apr 07 20:55:25 no : ( Apr 07 20:55:30 this channel is for silence Apr 07 20:55:32 not help Apr 07 20:55:34 what's the question Apr 07 20:56:28 how can I get my apps version code? I tried getResources().getInteger(android.R.attr.versionCode); but it just throws a Resources$NotFoundException Apr 07 20:57:39 getPackageManager().getPackageInfo(getPackageName(), 0).versionName Apr 07 20:57:42 or versionCode or whatever Apr 07 20:58:23 huh Apr 07 20:58:31 so how do you use the attributes in android.R.attr then ? Apr 07 20:58:51 I dunno Apr 07 20:58:54 look at the docs Apr 07 20:59:14 TD: you generally don't access android.R.attr directly Apr 07 20:59:32 yeah i did. they weren't helpful, hence the question .... Apr 07 20:59:58 zhobbs: so what's it for? Apr 07 21:00:29 TD: it defines what xml attributes you can use Apr 07 21:00:37 for example android:id, android:background, etc Apr 07 21:00:37 ah Apr 07 21:00:41 so it's semi-internal Apr 07 21:01:12 well, I guess I do use it Apr 07 21:01:28 for styles Apr 07 21:01:39 for View constructors Apr 07 21:02:19 public MyButton(Context context, AttributeSet attrs) { Apr 07 21:02:19 this(context, attrs, android.R.attr.buttonStyle); Apr 07 21:02:19 } Apr 07 21:12:00 android.R.* are for system resources Apr 07 21:12:09 R.* are for your own Apr 07 21:13:13 i think i just wasn't using the right method to read it, or something like that Apr 07 21:14:36 i keep forgetting how to read your own apk's version Apr 07 21:14:41 it's something fairly concise Apr 07 21:15:36 17:05 <@vol> getPackageManager().getPackageInfo(getPackageName(), 0).versionName Apr 07 21:15:42 that? Apr 07 21:16:41 if I wanted to allow people to create apps that would expose various content to me via ContentProviders, what would be a good way for me to find all the installed apps and their content uri's? Apr 07 21:17:31 vol beat me to it, yeah Apr 07 21:17:50 getPackageName() retrieves the canonical package name of your app Apr 07 21:18:18 and the Package Manager's getPackageInfo() method tells you all about the given package, including the version info from its AndroidManifest.xml Apr 07 21:48:02 the activity and provider arrays are null when I do getPackageInfo() for packages that aren't me Apr 07 21:49:28 it's actually null for my package too Apr 07 21:52:34 ahh...gotta pass in flags to get that... Apr 07 21:52:36 cool Apr 07 22:17:58 wow, I never knew that all the resources for every app are accessible via PackageManager without any extra permissions.... Apr 07 22:19:32 screw content providers Apr 07 22:22:55 zhobbs: the .apk files are world readablre Apr 07 22:23:03 note that this is also the case in, say, Windows Apr 07 22:23:21 [practical matters: the Launcher needs to be able to show the icons for all apps, for example] Apr 07 22:23:41 ctate: .apk's in /data/app-private aren't world readable are they? Apr 07 22:23:51 well...they must be to get the launcher icons Apr 07 22:23:55 the code is not readable, but the resources are Apr 07 22:24:05 [they're stored in different places] Apr 07 22:24:10 for forward-locked apps Apr 07 22:24:12 ahh Apr 07 23:02:20 Howdy all Apr 07 23:03:15 Quick question, what are the dimensions for the screen in portrait mode? Im working with an in app background image and need to find the correct width and height. Apr 07 23:04:39 you should work in dips rather than pixels, Kevin_Droidicka, because future devices may have different physical dimensions Apr 08 01:15:03 Night everyone... I need some help with network rules for the emulator... anyone? Apr 08 01:17:14 I'm trying to do some multicast app to run on emulator, but can't get anything on sniffer Apr 08 01:18:35 Im fairly new to java programming. I'm working on an android app that has several hundred text based questions and answers. What is the best way to store these? I'd rather not have to parse a text file each time my app loads so I'm thinking they should be stored in a sqlite database but how do i create the database when the app is first installed.. not really looking for a detailed answer, just a nudge in the right direction.. thanks Apr 08 01:20:27 try the notepad tutorial on developer.android.com Apr 08 01:24:38 Er, how is the Notepad tutorial going to help phishinphree know how to populate the database on install? Apr 08 01:24:47 thiago: I think the thing i'm stuck on is constructing the database. does the database have to be created on the device? Apr 08 01:25:15 yes... it creates on the first time the app runs... Apr 08 01:25:25 only the first one Apr 08 01:25:42 ok, so there's no getting away from parsing a text file and stuffing a database on run. Apr 08 01:25:48 phishinphree, you might detect an empty/out-of-date database, and download the content from the web in chunks. Apr 08 01:26:07 this is a good idea... you could parse the info by steps... Apr 08 01:26:11 If it's study lessons, you could download it in smaller chunks. Apr 08 01:26:18 the guy need all the info on the first screen? Apr 08 01:26:49 nope, its just pretty much static data. wont change at all Apr 08 01:27:20 But you need it all at once to construct your first activity? Apr 08 01:27:22 phishinphree, you might also just keep the dynamic data for all the questions (their answers, scores, etc.) and fetch questions from the 'net at runtime. Apr 08 01:28:09 yeah, i need to select random questions from the set at runtime. Apr 08 01:28:54 ok.... it is randon.. so make it by parts... get for example 20 of the questions.. and start a background process to get the rest Apr 08 01:29:17 right on. Apr 08 01:29:59 thats how i plan for it to work when its ready for prime time. right now, im more of using it as a stepwise project to learn with. Apr 08 01:30:59 like i said, i'm not very well versed in java right now :-) Apr 08 01:31:13 more of a c/c++ guy **** ENDING LOGGING AT Wed Apr 08 02:59:57 2009