**** BEGIN LOGGING AT Thu Jul 16 02:59:57 2009 Jul 16 03:07:24 hello Jul 16 03:07:57 hi Jul 16 03:08:17 The-Compiler, hello Jul 16 03:08:26 I am Japanese Jul 16 03:08:34 I live in Japan Jul 16 03:17:49 i live in kabuchiko Jul 16 03:20:06 neonfreon, Is it a kabukicho??? Jul 16 03:20:35 yes Jul 16 03:20:37 oops Jul 16 03:20:49 well, i used to live right near there at least heheh Jul 16 03:21:13 nishi-shinjuku Jul 16 03:21:41 oic Jul 16 03:21:49 I live in Nara city Jul 16 03:22:08 too far Jul 16 03:22:12 osaka-ban Jul 16 03:22:28 Near Osaka Jul 16 03:22:37 Next Osaka Jul 16 03:22:53 what android phone did you folks get in .jp? Jul 16 03:23:24 I have a dev phone Jul 16 03:23:29 adp1? Jul 16 03:24:00 KNY, what is adpl? Jul 16 03:24:07 android developer phone 1 Jul 16 03:24:15 basically, a pre-rooted G1 Jul 16 03:24:34 android developer phone 1 Jul 16 03:25:10 I have entryed the soft in android market Jul 16 03:30:09 KNY, where do u live? Jul 16 03:30:14 US Jul 16 03:30:30 KNY, r u developer? Jul 16 03:30:38 yes Jul 16 03:31:38 have u entryed ur soft inandroidmarket yet? Jul 16 03:31:54 yes Jul 16 03:32:11 http://www.cyrket.com/search?q=pub%3A%22Evan+Charlton%22 Jul 16 03:38:20 advance has disturbed Jul 16 03:38:58 KNY, u have entryed many softs Jul 16 03:39:12 licksjp, I just linked you. Jul 16 03:39:57 I can't see ur soft all title Jul 16 03:40:16 http://www.cyrket.com/search?q=pub%3A%22Evan+Charlton%22 Jul 16 03:42:10 KNY, many comments Jul 16 03:42:55 advance has obstacled Jul 16 03:43:26 KNY my soft has no comments yet Jul 16 03:44:01 that's unfortunate Jul 16 03:49:25 KNY, when did u entryed the soft,did u get the comment right now? Jul 16 03:49:41 yes Jul 16 03:50:04 hey all Jul 16 03:50:16 AakashPatel, hello Jul 16 03:50:20 hai Jul 16 03:50:28 haz you made apps yet? Jul 16 03:50:33 i learning am Jul 16 03:50:44 AakashPatel, I am Japanese and i live in Japan Jul 16 03:51:21 AakashPatel, I have entryed the soft in Android market yet Jul 16 03:51:24 konichiwa Jul 16 03:52:14 AakashPatel, where do u live? Jul 16 03:52:23 america Jul 16 03:52:34 oic Jul 16 03:53:17 oh yes Jul 16 03:54:12 But my soft is no comment Jul 16 03:54:23 maybe it sucks? Jul 16 03:54:24 is it gewd? Jul 16 03:55:21 brb Jul 16 03:56:06 brb, what this does mean? Jul 16 04:02:02 re Jul 16 04:02:14 brb is be right back Jul 16 04:06:06 hello Jul 16 04:07:41 KNY what is SUCKS? Jul 16 04:08:16 oh see i undurstund Jul 16 04:09:39 AakashPatel, what time in ur country? Jul 16 04:09:47 23:09 Jul 16 04:10:20 mid night Jul 16 04:10:31 ehh Jul 16 04:10:31 U have to go tobed soon Jul 16 04:10:33 1 hour Jul 16 04:10:37 nahh Jul 16 04:10:43 the night is young Jul 16 04:10:48 oh yes Jul 16 04:10:50 time to party Jul 16 04:10:59 KNY: pizza and beer! Jul 16 04:11:08 * KNY high-fives AakashPatel Jul 16 04:12:02 beh Jul 16 04:12:04 im out Jul 16 04:12:07 peace doobies Jul 16 04:12:16 and btw, licksjp, i was fuckin with you haha Jul 16 04:16:42 lol Jul 16 04:16:46 okay a few more mins Jul 16 04:17:05 btw,Have u entryed ur soft in Androidmarket yet? Jul 16 04:18:51 my software is obsolete Jul 16 04:18:53 wifi lock Jul 16 04:19:06 only useful in 1.0 and 1.1 really Jul 16 04:20:35 AakashPatel, my soft is BMI calc Jul 16 04:20:42 oh Jul 16 04:21:07 aren't there already like 348967 BMI calculators? Jul 16 04:21:27 last i counted 348968 Jul 16 04:21:35 KNY: only 1 off ;) Jul 16 04:21:46 can somebody help me convert my listview into something usable inside of a scrollview? Jul 16 04:21:51 AakashPatel, well, his made is 348968 Jul 16 04:21:58 s/ is/ it/ Jul 16 04:22:00 hah Jul 16 04:22:04 im out for real this time Jul 16 04:22:06 peace Jul 16 04:22:06 KNY, my BMI soft is no comment yet Jul 16 04:22:07 peace, AakashPatel Jul 16 04:22:57 licksjp, that's probably because there are already tons of BMI calculators and no one needs another one, especially not one with an ugly icon Jul 16 05:03:46 how do I get the "layout" view of the android layout xml editor to work again? It's currently giving me a "NullPointerException: null" where it draws the views normally Jul 16 05:05:07 KNY are you still there ? Jul 16 05:05:19 yeah, what's up? Jul 16 05:08:14 Ok. I crafted a subclass of AsyncTask inside my activity. i.e. private static class MyTask extends ... I simulate the long running task by a sleep. Are you saying I should assign an instance of MyTask to a static member during my button OnClickListener & return that instance during onRetainConfigurationChanged() ? Jul 16 05:13:10 it doesn't need to be a static member Jul 16 05:13:48 just do private MyTask mTask; and then in onCreate() do mTask = (MyTask) getLastNonConfig...(); Jul 16 05:14:00 and onRetainNon...() { return mTask; } Jul 16 05:17:28 In the AsyncTask#onPostExecute(..), I am referencing a local variable EditText _resultWidget. If I understand the orientation change system, it recreates the EditText when it calls my onCreate() again. Right ? Jul 16 05:19:27 well, it should be a static class, so you'll have to pass in the new activity instance Jul 16 05:19:34 let me make a quick pastebin for you Jul 16 05:22:31 chihiro, something like this: http://paste2.org/p/328159 Jul 16 05:26:18 Thanks for that pastebin. But is there a guarantee that when you're assigning the mTask#activity field, the task will not complete its background job & tries to call its activity member. That would throw NPE, no ? Jul 16 05:26:48 chihiro, remember that onPostExecute runs on the same thread on onCreate Jul 16 05:27:00 so yes, it's guaranteed to not have a race condition Jul 16 05:28:24 Ok. I better go read the javadoc once again & understand this fully. You've been a great help. Jul 16 05:29:01 no problem Jul 16 05:29:15 I asked that exact same question when I was first using asynctasks Jul 16 05:29:15 heh Jul 16 05:29:24 just in time, romainguy :) Jul 16 05:30:24 I'll probably have to read the code for Shelves with a magnifying glass & understand everything. Most of the android books don't cover AsyncTasks yet! Jul 16 05:30:50 chihiro, I'm not even sure shelves uses AsyncTask (though it uses UserTask which is identical) Jul 16 05:31:19 <]WM[KnaveWave> Hello All, could someone help explain why my service is not getting an onBind() for each bindService() call? Jul 16 05:31:22 Sorry. Yes, it is using UserTask. Jul 16 05:31:27 but it's the same thing Jul 16 05:38:11 ]WM[KnaveWave: I think it only calls that once and the onRebind subsequently Jul 16 05:39:45 ]WM[KnaveWave: Are you returning true in onUnbind? Jul 16 05:40:12 <]WM[KnaveWave> thanks for the response KRutOn, do you know if there are any tricks to change this behavior? Jul 16 05:40:24 <]WM[KnaveWave> I tried both Jul 16 05:41:14 <]WM[KnaveWave> w/ true I do get onRebind(), but the main thing I am shooting for is to get a new IBinder from onBind Jul 16 08:14:01 I'm trying to use sqlite but SQLiteDatabase.openOrCreateDatabase fails :/ Jul 16 08:15:12 I get the error: sqlite3_open_v2("path", &handle, 6, NULL) failed (where path is the database path) Jul 16 08:15:32 anyone knows how to fix this? Jul 16 09:56:37 I've got a question. Jul 16 09:59:15 How would you normally hook up changes in the state of a Widget with another ? This is a Publish-Subscribe pattern. Does one use the java.util.Observable/Observer method or is there a more native (android) method ? Jul 16 12:13:51 has anyone got experience of using ANDROID_ID? Jul 16 13:14:06 is there any sort of onEvent to handle orientation changes? I have an ImageView that loads an image dynamically from a byte[], when I change orientation, it reverts back to the placeholder image. If theres an onEvent, I can set it again and all is well Jul 16 13:29:20 rlundy82-: onSaveInstanceState(), and onPause(), onStop(), onDestroy(), etc Jul 16 13:29:39 could also override the ImageView's onSaveInstanceState Jul 16 13:38:03 rlundy82: when the orientation is changed the activity is destroyed and recreated(with the horizontal layout if you specified that) so the regular lifecycle methods are your callbacks Jul 16 13:54:27 whaledawg, ic Jul 16 13:54:38 whaledawg, zhobbs_ thanks Jul 16 14:09:48 can yo make up your own permission class in the manifest? Jul 16 14:09:55 yo=you Jul 16 14:10:31 Like permission to contact the user with special offers Jul 16 14:55:15 guys, I just finished my app, it's running fine on the emulator Jul 16 14:55:28 on a G1 device, whenever I click one of my Tabs, the app crashes Jul 16 14:55:36 I cannot reproduce the problem on the emulator Jul 16 14:56:01 and I can't get eclipse to reconize my G1 (Ubuntu 9.04, Eclipse Ganymede) Jul 16 14:57:47 any clue on how I can find the bug ? Jul 16 14:59:13 when you connect your g1, are you connecting it to a USB hub or directly the a USB on the computer? Jul 16 15:04:32 has anyone had trouble porting a android project from svn Jul 16 15:05:12 when i do it says i am missing .class file Jul 16 15:06:41 Radzell I never successfully got SVN to work between 2 computers, but that was a good 6 months ago when I tried Jul 16 15:07:02 didou have you also set your G1 to debugging mode? Jul 16 15:07:29 Does anyone have much experience about putting there apps on the market? and if so could I chat to you for a cpl of mins? Jul 16 15:09:19 somthing is wrong with android when you do that Jul 16 15:09:33 has anyone used oauth with android Jul 16 15:09:41 for like a twitter app Jul 16 15:15:19 Hi, I've a problem with eclipse when I try to install the ADT plugin: http://nopaste.com/p/alBplLJME Jul 16 15:17:25 the adt should have specified dependancies that it requires and attempted to get them too, or whine at you about it. Jul 16 15:17:34 what version of eclipse did you install? Jul 16 15:17:46 also, are you installing for the first time, or upgrading? Jul 16 15:22:43 Thats a good point, I ended up installing ganymede instead of the latest version of eclipse because the plugin seemed a bit buggy/not as integrated on the latest one Jul 16 15:25:19 vol_, This is the first time I installed it, and stupidly, I installed eclipse-classic ... sorry for disturbing Jul 16 15:27:32 eclipse classic is fine. Jul 16 15:27:58 but that's a good point. the newest plugin needs eclipse 3.4 or newer. Jul 16 15:28:32 actually, I don't recall. Jul 16 15:29:05 vol_, I just read that I need to install eclipse-jee °.° Jul 16 15:29:41 oh no! Jul 16 15:29:45 don't get j5ee Jul 16 15:29:47 you want j5se Jul 16 15:30:05 actually, I don't know if j5ee allows j5se development, but you definately want se not ee Jul 16 15:31:06 °_° Jul 16 15:32:38 so I need to install classic? Jul 16 15:37:21 the plugin is built for 3.3 or 3.4 I believe when i last checked Jul 16 15:37:27 the latest is 3.5 Jul 16 15:38:00 I always installed Eclipse IDE for Java EE, but the version can be added to to get the functionality of the other versions Jul 16 15:41:20 use classic, or java. Jul 16 15:41:31 but yeah, what matt said Jul 16 15:41:38 you should be able to download the functionality as an addon Jul 16 15:42:10 odite i installed this one (not sure if it has extra stuff not needed for android dev but its never let me down http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/ganymede/SR2/eclipse-jee-ganymede-SR2-macosx-carbon.tar.gz Jul 16 15:42:51 jee Jul 16 15:43:04 yeah, that's the java ee one Jul 16 15:43:13 mmm Jul 16 15:43:44 frankly I'd just suggest getting "Eclipse IDE for Java Developers" and trying again. Jul 16 15:44:00 It might be a little more time but I don't think it's unreasonable at this point to suggest starting clean. Jul 16 15:44:28 Should I try 3.4 jee ? Jul 16 15:44:48 http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/galileo/R/eclipse-java-galileo-win32.zip Jul 16 15:44:51 this guy Jul 16 15:45:03 give it a shot Jul 16 15:45:50 if that doesn't work (that's 3.5) try this http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/ganymede/SR2/eclipse-java-ganymede-SR2-win32.zip Jul 16 15:45:57 this one is 3.4 Jul 16 15:47:26 vol_, your first link is the classic edition, isn't? Jul 16 15:47:55 I have a headache!! Jul 16 15:48:01 I don't believe it is Jul 16 15:48:12 it should be "Eclipse IDE for Java Developers, and 92 MB Jul 16 15:48:30 its not odites Jul 16 15:48:51 that one will work, it just didnt work because of using classic is all Jul 16 15:48:56 where could I get the source code android.content.res.Resources? Jul 16 15:52:19 kenpl: frameworks/base/core/java/android/content/res/Resources.java Jul 16 15:54:53 droid001: got it, thanks Jul 16 15:58:01 vol_, can I develop with openjdk or not? Jul 16 16:06:40 I have a button and I used a .9.png for the background which works greats, I was wondering if anyone knows if I can set it to change background or color when it is clicked? Jul 16 16:09:57 Matt___: state drawable Jul 16 16:10:05 Matt___: you can do this in xml in res/drawable Jul 16 16:10:55 so in the xml I can define a button and then just have to define a state? Jul 16 16:13:06 Matt___: see the xml files in: http://android.git.kernel.org/?p=platform/frameworks/base.git;a=tree;f=core/res/res/drawable;h=82c3b3607743f0c62b173a213c5c8f5fb3d285ca;hb=HEAD Jul 16 16:15:17 zhobbs: ooo i see, so for the background variable of my button would I just create my own version of say the btn_default.xml? Jul 16 16:15:54 Matt___: yea Jul 16 16:16:05 yawn Jul 16 16:16:15 where ya from Matt? Jul 16 16:16:20 ooo that is very clever, cheers zhobbs Jul 16 16:16:34 jasta: Im from UK, you? Jul 16 16:16:43 Seattle, was just curious. Jul 16 16:17:05 i keep expecting to run into coworkers on this channel now :) Jul 16 16:17:16 but i wouldnt be able to identify them any other way than by the questions theyre asking :) Jul 16 16:18:01 lol fair enough, where do you work? (If you dont mind me asking) Jul 16 16:18:32 T-Mobile USA Jul 16 16:19:34 cool, lucky you getting to play with the g1's nice and early Jul 16 16:19:51 jasta: get me a job? ;p Jul 16 16:20:48 man I love Google... jasta: nice title. Jul 16 16:22:14 gotta run, later Jul 16 16:22:48 byee Jul 16 16:25:27 right im off, cheers again zhobbs for that bit of help Jul 16 16:30:44 Anyone here work on multiple computers? Jul 16 16:31:09 I'm trying to bring my workspaces from a linux computer to a windows one and it doesn't like it. Jul 16 16:39:06 To develop on Android, I have to use OpenJDK or Sun-jdk? Jul 16 16:39:41 I don't think either Jul 16 16:39:50 it's the Dalvik JVM Jul 16 16:40:18 mmm Jul 16 16:40:55 http://developer.android.com/sdk/1.5_r2/installing.html Jul 16 16:41:04 That tells you how to get your system up and running Jul 16 16:41:38 anyone know why eclipse cannot resolve java.awt ? Jul 16 16:41:57 because awt isn't part of android Jul 16 16:42:09 but it's part of java Jul 16 16:42:12 ?? Jul 16 16:42:15 but if I install eclipse I need OpenJDK or sun-jdk Jul 16 16:42:24 odites: sun.java.com Jul 16 16:42:29 err Jul 16 16:42:32 java.sun.com Jul 16 16:42:51 odites: you are correct Jul 16 16:42:56 I forgot about that Jul 16 16:43:08 BeBoo_, so... sun-jdk? Jul 16 16:43:15 yes Jul 16 16:43:19 damn! Jul 16 16:43:20 XD Jul 16 16:43:29 BeBoo: Android is not full Java Jul 16 16:43:36 It's the java language Jul 16 16:43:49 but many of the libraries aren't included Jul 16 16:43:57 because it uses the Dalvik JVM Jul 16 16:44:03 then how do I use Color() ? Jul 16 16:44:34 http://developer.android.com/reference/android/graphics/Color.html Jul 16 16:44:45 is that what you want? Jul 16 16:45:27 i see they have their own Jul 16 16:45:30 hmm ok Jul 16 16:45:41 lulz: http://www.google.com/search?hl=en&safe=off&q=inurl:SELECT+inurl:FROM+inurl:WHERE+intitle:phpmyadmin&aq=f&oq=&aqi= Jul 16 16:46:38 ewon: naughty Jul 16 16:55:54 Hey Jul 16 16:55:56 I'm currently using an ArrayList of strings which are displayed in a ListView. Can I assign an ID for each row? Jul 16 16:56:36 Or do I have to create a custom adapter? Jul 16 17:08:48 delx, just use SimpleAdapter Jul 16 17:16:02 KNY, thanks for your reply! :) Jul 16 17:16:55 KNY, another short question: Have you ever used java objects for the data rows? Could you recommend a ORM system? Jul 16 17:19:06 hibernate? Jul 16 17:20:11 odites: strongly recommend that you use eclipse, but you can use any build system as long as you're using sun java Jul 16 17:27:07 * ewon doesn't use Eclipse, as it doesn't work too well on a Dell Mini 9 Jul 16 17:30:10 :P Jul 16 17:34:59 :P back at ya vol Jul 16 17:40:16 vol_, with eclipse-jee 3.5 it work :D Jul 16 17:40:24 excellent Jul 16 17:40:48 thank you very much! Jul 16 17:40:49 :D Jul 16 17:41:42 I can die happy now Jul 16 17:41:44 xD Jul 16 17:47:30 lol Jul 16 17:53:05 <_annex_> hi all, I'm using a ListView with ArrayAdapter and I'm noticing the "hit box" where the user can select a list item is only the text of the item not the entire cell Jul 16 17:53:31 <_annex_> and when they do select an item, only the text gets the orange highlight background, not the entire cell Jul 16 17:53:32 <_annex_> any ideas? Jul 16 18:14:10 _annex_: yes, your list item layouts are using the wrong diemnsions. Jul 16 18:14:34 the simplest solution is to use a pre-baked layout like android.R.layout.simple_list_item_1 (or the other simple_list_item_* layouts) Jul 16 18:15:03 otherwise, make sure that your list item root view is set width=fill_parent, minHeight=?android:attr/listPreferredItemHeight, height=wrap_content. Jul 16 18:15:37 for a reference, look at android.git.kernel.org (under frameworks/base.git, core/res/res/layout/) and look at some of the list item layouts there. Jul 16 18:19:41 <_annex_> jasta: thank you! i was being stupid, you are right, I forgot the width=fill_parent instead of wrap_content Jul 16 18:23:16 _annex_: you probably also forgot minHeight too, didn't you? Jul 16 18:23:28 i'm sick of seeing apps with much-too-small list items. Jul 16 18:24:06 <_annex_> i'm not using minHeight, I just set the text size to 24 Jul 16 18:25:00 _annex_: don't. Jul 16 18:25:11 use minheight, and use android:textAppearance="?android:attr/textAppearanceLarge" Jul 16 18:25:51 as i said -- look at frameworks/base.git, core/res/res/layout for further study. i assure you, there's plenty you've been doing wrong :) Jul 16 18:26:08 <_annex_> oh interesting Jul 16 18:27:35 it is very unwise to ever hardcode font sizes, text colors, etc. android provides you themeable alternatives. Jul 16 18:27:52 anything expressed with ?android:attr/foo basically means look up "foo" in the current theme, and use that. Jul 16 18:28:13 doing it this way means google can influence the overall look of the phone through version updates, and your app will follow suit without any changes. Jul 16 18:28:29 likewise, it means you can infleunce the look of your app globally by chanigng your own theme Jul 16 18:29:57 jasta: i'm sick of seeing apps with much-too-small list items. << me too Jul 16 18:30:17 romainguy__: i've actually started e-mailing app developers and explaining how ot fix their apps Jul 16 18:30:30 so far, nobody has taken my advice :\ Jul 16 18:30:59 jasta: i'll take your advice Jul 16 18:31:43 i have much to learn and i am always open for ideas Jul 16 18:43:07 jasta: like csszengarden.com, in concept :) Jul 16 18:54:29 so, ive created a button in my main layout with id @id+/button_greenplate... how do i now in code, reference that button? Jul 16 18:54:44 R.id.button_greenplate Jul 16 18:55:05 thx vol_ Jul 16 18:55:44 you'll do something like (TextView)findViewById(R.id.textfield); Jul 16 18:56:46 final Button button = (Button) findViewById(R.id.button_greenplate); Jul 16 18:57:04 but it says R.id.button_greenplate cannot be resolved Jul 16 19:00:39 refresh your project, look in your R.java file and make sure it's actually there. Jul 16 19:00:52 press ctrl-space after R to help it look for R Jul 16 19:01:05 it should live in your.package.name.R Jul 16 19:02:02 its inside a sub layoutm does tha tmatter? Jul 16 19:03:21 hmm, it doesnt apear in R.java Jul 16 19:03:28 strange. is there a solution for that? Jul 16 19:07:08 is there an error in your xml file? Jul 16 19:07:23 if you pastebin the xml file I can take a look Jul 16 19:07:37 double check that you saved the xml file, then press F5 on your project to refresh it Jul 16 19:07:43 that should force the R file to be regenerated Jul 16 19:08:38 lemme check Jul 16 19:09:17 Does anyone here have T-Mobile? Jul 16 19:09:25 i do Jul 16 19:09:26 eeeep! didnt spot xml error: ERROR Error: No resource found that matches the given name (at 'id' with value '@id+/button_greenplate'). Jul 16 19:09:28 i do Jul 16 19:09:42