**** BEGIN LOGGING AT Fri Feb 20 02:59:58 2009 Feb 20 12:22:08 hey guys, is there already a release Date for cupcake? Feb 20 13:32:38 could any one take a look at my problem with sensors all i get from this code is x: 0.0 ,y: 0.0 ,z: 0.0 http://pastebin.com/m12d5b877 Feb 20 15:38:36 I have an TextView and I change the text of it. when changing the orientation, and doing textView = findViewById(R.id.textViewId), then textView.getText() == "" eg it's not saved automatically - am I doing something wrong or isn't the contents of TextViews supposed to be autosaved? Feb 20 15:40:44 I don't think they're autosaved. You'd have to stick the contents into the bundle that gets saved I would imagine. Feb 20 15:42:27 oh ok.. I don't know why I'd expect themto do :) Feb 20 15:45:03 ah, they have .setFreezesText(boolean) Feb 20 15:45:06 that works also Feb 20 15:45:12 dumb me Feb 20 15:45:27 after that it starts to autosave :) Feb 20 16:13:24 How many times does a comment have to be marked as spam before it is deleted? Feb 20 16:14:22 I would assume that it's a) not a fixed number and b) a secret Feb 20 16:14:44 yeah, me too, I'm just curious why all the positive comments on my app are disappearing Feb 20 16:14:48 they are not spam either Feb 20 16:15:24 I have no idea Feb 20 16:15:57 Can users delete their comments? Feb 20 16:16:01 how do I go about drawing vertical text? (like, normal text but rotated 90 degrees) Feb 20 16:16:02 marklar, yes Feb 20 16:16:26 KNY: thanks, guess that could be it Feb 20 17:01:01 can I add attributes when extending a view? The NotePad sample doesn't do this, is there a sample that does? Feb 20 17:02:01 Home Feb 20 17:02:21 ok, thanks Feb 20 17:06:13 hi Feb 20 17:06:22 hi Feb 20 17:06:25 how can I get a solid red rectangular drawable? Feb 20 17:07:15 do you need a drawable, or do you just want a view set to a certain color? Feb 20 17:07:56 you could create the drawable from a bitmap, or you can set the background color of the view Feb 20 17:23:11 is there a document for the tags of the attr.xml file? Feb 20 17:32:15 what does xmlns:pj stand for? Feb 20 17:32:30 xmlns\:pj Feb 20 17:32:37 crap, how do I escape emotes Feb 20 17:33:40 nevermind Feb 20 17:33:43 I figured it out Feb 20 17:34:17 namespaces Feb 20 17:45:42 herriojr, I want a drawble to dra on a canvas Feb 20 17:49:04 ok, you can either store it in a bitmap and pull it out via getResources() AFAIK Feb 20 17:49:16 or you could create it on the fly Feb 20 17:58:54 I can't get aapt to recognize my new attribute Feb 20 18:00:06 in attrs.xml: Feb 20 18:00:50 herriojr, yes i wanna create it on the fly Feb 20 18:00:53 how can i do it= Feb 20 18:00:54 = Feb 20 18:01:13 you're probably not using the correct namespace Feb 20 18:01:32 I added it Feb 20 18:01:55 juanjo: try using BitmapFactory.decodeInputStream() Feb 20 18:02:04 ok Feb 20 18:04:08 int layout.xml: ..... Feb 20 18:04:15 *in Feb 20 18:05:27 and I didn't mean to close the tag on the LinearLayout Feb 20 18:05:32 before the button Feb 20 18:05:55 I just mistyped Feb 20 18:07:28 oh, ok, the namespace needs to be the location of the R.java file Feb 20 18:26:00 I'm falling in love with Custom Views Feb 20 18:28:48 good, you should Feb 20 18:28:52 hmm Feb 20 18:29:00 PRODUCT_BRAND seems broken or something Feb 20 18:30:00 when i set it, " generic" is getting appended to it, breaking the build because the BUILD_FINGERPRINT then has spaces in it Feb 20 18:30:12 * jasta likes this mgrep command ;) Feb 20 18:30:29 can adrawable copy its pixels to another drawable in certain x,y? Feb 20 18:46:46 juanjo: use the bitmap backing it Feb 20 18:46:52 oh, sorry, you said drawable Feb 20 18:51:00 jasta: what's the difference between mgrep and grep/ Feb 20 18:51:01 ? Feb 20 18:52:37 look in build/envsetup.sh Feb 20 18:53:36 build in android source or mgrep source? Feb 20 18:53:49 android. Feb 20 18:54:29 herriojr: mgrep is a shell function defined in envsetup.sh -- it finds all makefiles at or below your current dir and greps through all of them Feb 20 18:54:50 yes, I was just looking at it :) Feb 20 18:55:32 I made a similar function for viewing .java files Feb 20 18:56:00 ctate: does inherit-product just append every PRODUCT_* variable's value from the inherited product? Feb 20 18:56:15 not a clue, jasta Feb 20 18:56:22 i try not to muck with the build. :) Feb 20 18:56:26 im pretty confused what prevents shit from overriding :) Feb 20 18:56:31 herriojr: jgrep is in there, too :) Feb 20 18:56:57 and sgrep looks at all kinds of source: cpp/h/java/xml etc Feb 20 18:57:12 * ctate uses sgrep a lot Feb 20 19:32:29 just curious, why can you get a resource movie, but not a resource sound? Feb 20 19:40:54 you can. Feb 20 19:41:02 (I thought) Feb 20 19:49:42 i'm having a debug problem. The debugger will attach to the emulator, but not the device Feb 20 19:49:56 on the device, development settings are correct Feb 20 19:50:04 in the manifest debuggable is set to true Feb 20 19:50:18 and it just started happening out of the blue, no code changes Feb 20 19:50:21 any ideas? Feb 20 19:51:47 close eclipse, adb kill-server; sleep 1; adb start-server. Disconnect the device first. Feb 20 19:52:04 The cake is a lie. Feb 20 19:53:42 k Feb 20 19:54:13 i restarted both the phone and the computer before... still isn't working... i'll give this a try though Feb 20 19:54:42 well, make another hello-world app and see if you can debug THAT. if you can, then your project is at fault. Feb 20 19:55:59 the weird thing is that it will debug in the emulator Feb 20 19:56:56 that did it Feb 20 19:56:59 weird Feb 20 19:57:32 the adb server gets into funny states sometimes Feb 20 19:57:44 (host-side server) Feb 20 19:57:49 right Feb 20 19:58:38 also, I'm extending BaseAdapter, how do i set the "id" property that is received onListItemClick Feb 20 19:58:57 is it just view.setId() ? it doesn't seem to work Feb 20 19:59:23 the id is the id of the item within the adapter Feb 20 19:59:29 nothing to do with View.getId() Feb 20 20:00:06 ok, so i'm binding a sqlite record to listview Feb 20 20:00:19 i've been able to grab the record id before by using simplelistadapter Feb 20 20:00:32 but i've got this custom adapter i'm making Feb 20 20:00:43 how do i achieve what i was previously? Feb 20 20:02:39 nvm i got it Feb 20 20:02:45 Override getItemId() Feb 20 20:19:45 (2.99D - 1.99F) / 1.0F = 0.999999990463257 Feb 20 20:19:49 hooray for floating-point math! Feb 20 20:20:54 http://citeseer.ist.psu.edu/goldberg91what.html Feb 20 20:24:13 KNY: you'd have the same problem in fixed point. Feb 20 20:24:27 why? Feb 20 20:24:38 KNY: neither 2.99 nor 1.99 are exactly representable as binary numbers, regardless of the precision. Feb 20 20:24:47 ah Feb 20 20:25:05 (because 1/5 is not representable in binary) Feb 20 20:25:29 you got your mantissa in my coffee! Feb 20 20:26:26 KNY: that's why financial programs are either written to work with decimal numbers (a.k.a. BCD), or with integral numbers of cents. Feb 20 20:27:17 (floating point is one of my favorite interview questions) Feb 20 20:27:17 hence java.math.BigDecimal Feb 20 20:28:20 * kRutOn scribbles some notes on a sheet of paper labelled "jbq's favorite interview questions." Feb 20 20:28:50 kRutOn: well, what you really need are my favorite interview answers, but I don't tell those. Feb 20 20:29:41 is there anything i need to call after imageView.setImageURI("http://foobar.jpg") in order for it to work? Feb 20 20:30:26 jbq: That'd be cheating, but at least you have them. Feb 20 20:30:46 i'm attempting to load an image from the web into an ImageView Feb 20 20:31:17 amusingly, I have some questions for which I don't care about the answer (and don't actually know the answer myself), I just care about the process to got to any answer. Feb 20 20:32:04 kRutOn: preying mantissa Feb 20 20:32:12 I used to work in a building where it was somewhat possible to see the steel structure, and I used to ask candidates how much the structure weighs. Feb 20 20:33:39 wonder which building that was Feb 20 20:33:40 I'd go find some blueprints Feb 20 20:34:27 kRutOn: you'd know it. 1400 seaport. Feb 20 20:34:49 That's what I figured :-) Feb 20 20:34:52 part of the enormous complex that Excite@Home built for some vast sum of money just before they went kerblooey bankrupt gone Feb 20 20:40:59 Good old Excite@Home Feb 20 20:42:10 ctate: Did you work there? Feb 20 20:42:30 nope; i worked at a company that used some of those buildings after they were dead Feb 20 20:42:32 Hi everybody. I'm new to Android development - so please be kind. Just a quick question: Is there an elegant/easy way to obtain the information of an incoming call on the device (phone number, etc.)? Feb 20 20:44:28 BenUC: I'm new myself, but I expect you want PhoneStateListener Feb 20 20:48:54 ok, thanks. looks like a good place to start Feb 20 20:52:43 BenUC: yes there is Feb 20 20:54:26 BenUC: look at android.telephony Feb 20 20:56:02 I can't remember exactly what you need to do, but there is no intent thrown for incoming calls like there is for outgoing calls Feb 20 20:57:17 but I could very well be wrong Feb 20 20:57:29 since i haven't messed with it since pre-release Feb 20 20:57:39 ok, great - I will digg into it a bit more Feb 20 20:57:46 thanks guys Feb 20 20:58:04 (I might be back with more questions ;) Feb 20 21:00:24 http://www.anddev.org/recognize_incoming_phonecalls-t133.html Feb 20 21:00:29 oops, he left Feb 20 21:00:51 actually, that's old Feb 20 21:01:20 that's when incoming calls were an intent Feb 20 21:24:32 does the android sdk have an md5 or hash type function? Feb 20 21:25:12 i want to turn a url into a hash Feb 20 21:25:53 ie: saveImage( hash("http://superlongassurl.jpg") + ".png"); Feb 20 21:26:05 I thought there was Feb 20 21:26:08 let me check Feb 20 21:26:34 thx Feb 20 21:27:01 guid would work too, but i'm sure there aren't guids in the sdk Feb 20 21:28:01 look under java.security, and for the uuid, you can also do that Feb 20 21:28:03 there should be a standard Java function for that that android supports Feb 20 21:28:25 makes sense Feb 20 21:30:55 anyone good at sqlite triggers? on my insert, if an entry in another table associated with this table row isn't there, I want to insert it, but I don't know the equivalent of an if statement in sql Feb 20 21:31:53 since it doesn't have an if Feb 20 21:33:36 nevermind, I think I got it Feb 20 21:33:58 and for anyone else that doesn't know SQLite syntax all that well: http://www.sqlite.org/lang.html Feb 20 22:02:57 is there a way to draw text on a Canvas, but have the text rotated? Feb 20 22:03:43 canvas.rotate() Feb 20 22:05:25 romainguy_, will that rotate the whole canvas? Feb 20 22:05:44 I think you don't understand how transformations work :) Feb 20 22:06:11 rotate(), like scale() and translate(), applies only to subsequent drawing commands Feb 20 22:06:11 not really, no Feb 20 22:06:43 so if I do rotate(); drawText("foo" [..]); drawText("bar" [..]);, would "bar" also be rotated? Feb 20 22:06:49 think of it as a command applied to the pen, not the canvas Feb 20 22:06:50 yes Feb 20 22:07:32 so I'd have to rotate() back before continuing, then? Feb 20 22:07:32 KNY: that's why you usually surround transformations with save()/restore() Feb 20 22:07:48 ahh Feb 20 22:07:55 interesting.. Feb 20 22:07:59 * KNY goes off to investigate Feb 20 22:08:01 thanks Feb 20 22:09:25 (gdb) print levels[position.level].monsters[point].visible Feb 20 22:09:25 $22 = false Feb 20 22:09:27 whoops Feb 20 22:09:35 haha Feb 20 22:14:04 gg Feb 20 22:28:15 Hi guys Feb 20 22:30:48 I create an alert and works fine... but if i create other alert (in parallel) the info showed by the secound alert is the same of the first.... Feb 20 22:31:06 any idea what is the problem Feb 20 22:31:45 hi all guys Feb 20 22:32:06 how are you today? Feb 20 22:32:12 here is 23.30 Feb 20 22:36:40 I'll take your $23.30 Feb 20 22:39:18 someone should sell a helloworld example app for $1 Feb 20 22:39:28 that would be aweeeeeeeeesome Feb 20 22:39:44 awesome all the way to the bank Feb 20 22:39:47 romainguy_, when I do save(); rotate(90); drawText("foo", 100, 100, myPaint); restore(); I don't see the text anywhere. Is there something I'm missing? Feb 20 22:39:49 ka-ching Feb 20 22:40:10 androoid, too bad about those pesky refunds, eh? Feb 20 22:40:51 do the translate, then the rotate Feb 20 22:41:21 * KNY reads up on translate() Feb 20 22:43:18 ah ha! I'll play with it some more until I get it figured out, but thanks again Feb 20 22:44:27 android I found a magazine with a two page article , maybe you can try to find the same in english :-) Feb 20 22:44:47 androoid, sorry :-) Feb 20 22:45:06 vol: 23.30pm Feb 20 22:45:12 23 o'clock Feb 20 22:45:27 I know. Feb 20 22:46:25 I know you know but the others know you know and if I don't know Feb 20 22:46:32 LOL Feb 20 22:48:00 ... ? Feb 20 22:49:48 welcome to #eschatology Feb 20 22:50:01 the channel where you don't necessarily know what you're asking Feb 20 22:50:13 imminatize the eschaton! Feb 20 22:50:43 #eschaton is the channel where joining it automatically quits your IRC client Feb 20 22:51:58 ctate, if i want to ceate an irc channel for my app, so i can talk with the users for bugs and new functions to add. which server is the best (dalnet, efnet,freenode etc...) for USA users? Feb 20 22:52:11 i have no clue Feb 20 22:52:17 the others? Feb 20 22:52:20 ctate: I think you might be thinking of #bantown Feb 20 22:52:25 since freenode is where the official channels are, that might be a good default choice Feb 20 22:52:29 does Android's SQLite not recognize triggers using "WHEN NOT IN"? Feb 20 22:53:38 freenode is supposed to be for open-source projects, methinks. Feb 20 22:54:57 i made me crazy trying skipping every page starting with the words open source, even the android samples Feb 20 22:55:19 :-) Feb 20 22:55:55 oftc > freenode. Feb 20 22:56:09 as you could understand from my few :-) questions during development Feb 20 22:56:13 open sores. Feb 20 22:58:00 but for an app of mine I think I 'll use some gpl source (i'm thinking bout a file manager) Feb 20 22:59:26 jbq: aha Feb 20 23:04:08 Hi guys.. I create an alarm and works fine... but if i create other alarm (in parallel) the info showed by the secound alert are the same of the first.... Feb 20 23:26:07 how expensive is it to open/close a database file? Feb 20 23:31:06 can I not create a trigger with "WHEN NOT EXISTS"? Or rather, if Android only implements a subset of SQLite, where can I find that documentation? Feb 20 23:40:27 KNI: in the sense how much memory? Feb 20 23:44:33 esses, CPU time Feb 21 00:14:27 what can cause an SQLiteConstraintException? Feb 21 00:15:21 herriojr, check `adb logcat` Feb 21 00:15:30 SQLite is usually good about putting the cause in the exception Feb 21 00:15:44 it says it is an insert, I just don't see what's wrong with it Feb 21 00:15:53 column/value mismatch? Feb 21 00:16:10 can you paste the error message? Feb 21 00:20:32 just a minute, I want to see if I figured it out Feb 21 00:21:06 no problem Feb 21 00:23:22 I'm thinking it's due to the trigger Feb 21 00:24:17 I'm removing it to see if it still causes the issue Feb 21 00:24:45 yup, the stupid trigger Feb 21 00:27:39 heh Feb 21 00:31:56 that's what I wish SQLite would do....tell you it's an issue with the trigger and not the actual query/insert/delete/update Feb 21 02:16:17 how do I restart the simulator? when i changedthe app and want to test it Feb 21 02:20:20 just re-run the app from Eclipse Feb 21 02:20:22 it'll reinstall Feb 21 02:20:38 you can also just use `adb install -r /path/to/apk/Foo.apk` Feb 21 02:22:42 anyone working on games for the android? im doign a shmup(2d sidescroller) Feb 21 02:36:44 my app doesnt show up Feb 21 02:37:23 doesn't show up where? Feb 21 02:40:47 int he mneu Feb 21 02:42:43 so make a launcher for it. Feb 21 02:42:44 in the manifest Feb 21 02:53:05 Feb 21 02:53:07 i have Feb 21 02:55:09 how do i remove hello android from applist Feb 21 02:55:27 [2009-02-21 03:51:14 - DeviceMonitor]Error reading jdwp list: EOF Feb 21 02:55:27 [2009-02-21 03:51:14 - DeviceMonitor]Connection Failure when starting to monitor device 'emulator-5554' : device (emulator-5554) request rejected: device offline Feb 21 02:57:57 how do I remove an app from the menu? I don't have it in Eclipse anymore but it still shows up on the screen. Feb 21 02:58:02 adb uninstall Feb 21 02:58:17 also, I set up some kind of errorlog before but I dont rember how to find it again(in eclipse) Feb 21 02:58:21 adb+ Feb 21 02:58:22 or remove the luancher entry Feb 21 02:59:10 and redeploy Feb 21 02:59:11 fixed it i think **** ENDING LOGGING AT Sat Feb 21 02:59:57 2009