**** BEGIN LOGGING AT Sun Jul 05 02:59:58 2009 Jul 05 03:46:25 Hi, all. I'm fairly inexperienced with Android and am trying to implement a service. However, I'm getting a Force Close notice as soon as I start my app in the emulator. I've put logging statements into all of my functions, and I'm not seeing anything come out in Eclipse's console. How can I figure out what's going wrong? Jul 05 03:48:02 drop to a shell and run adb logcat Jul 05 03:52:14 jasonlee: Thanks, that seems to point me in the right direction, at least. Jul 05 03:52:52 yep, it's the place you'll find all the exceptions that get thrown.. Jul 05 03:52:52 I'm getting a NullPointerException while trying to instantiate ComponentInfo, so off to Google for me. Jul 05 03:57:05 jasonlee: Thanks, that got me pointed in the right direction. I'm doing a massive refactoring at the moment, and I missed undoing one of my blind paths. Jul 05 04:42:10 could some explain how i could use the base that the "imageswitcher" example in the sample apis does. but i dont need the imageswitcher itself nor the gallery, i want to on "next" button load the next image id Jul 05 04:43:40 please Jul 05 04:51:47 i wish it didnt disconnect me -.- Jul 05 05:00:23 Any idea why in a class extending Service, in the Stub, I could have a "public Section[] GetSections() throws RemoteException" that gives a warning about not being called, and outside of that a function that calls that that says "The method GetSections() is undefined?" Jul 05 05:22:53 hey Jul 05 05:22:59 ive got a quick noob question Jul 05 05:23:07 in eclipse im trying to make an android porject Jul 05 05:23:10 project* Jul 05 05:23:37 but i can get passed naming it as i need a min sdk vesion....any ideas? Jul 05 08:00:36 Good Morning Jul 05 08:00:39 :) Jul 05 08:00:41 or Night Jul 05 08:00:47 depends on where you are ;) Jul 05 08:05:12 God_Like: you need to select a SDK version (android 1.1, 1.5 or google apis) Jul 05 08:05:22 if you don't need maps, just select 1.5 Jul 05 08:05:38 then it should auto set the SDK version (which is 3 btw) Jul 05 08:19:28 Is there someone who can maybe help me with my HTC Magic and WiFi Tether for Root Users? At first start I became a message that i would not have a rooted device - but i do, i checked it again by my Windows PC, command line and batch from this package (sorry i dont know the name at the moment) and it tells me uid=0 and guid=0. I restarted Android and didnt recieve the message anymore but everytime i click the tethering-Button I Jul 05 08:19:28 recieve the message "Unable to start tethering, please try again" Jul 05 08:22:43 WiFi and Bluetooth activated, i recieve the same message on both modes Jul 05 08:26:44 It seems WLAN is deactivating itself again and again, altough im working in bluetooth tether mode at the moment Jul 05 08:29:44 Morning Jul 05 08:38:27 Morning :) Jul 05 08:48:32 JohnScot: best asking in #android Jul 05 08:48:41 this is more for developing code Jul 05 08:49:15 ok ill do thanks, i just dont want to disturb the converstaion at the moment in android ill wait a bit :) Jul 05 11:08:37 how is the lookup of a phone number done correctly? Jul 05 12:59:49 hello, android developers ;) Jul 05 13:01:46 <_Auron_> moorning Jul 05 13:06:46 tell me your opinions... i'm not sure that android's openGL ES can compete with iphone 3gs graphics. i'm talking about games developing. what do you think? Jul 05 13:23:23 <_Auron_> daliz: android or a speciifc device? openGL is hardware-oriented Jul 05 13:24:13 _Auron_: well, then i'd like to talk about htc magic / hero. Jul 05 13:27:56 <_Auron_> I have absolutely no idea what the hardware is like in anything other than the G1 as I don't own any other device (and cannot afford to own another device) Jul 05 13:28:29 can someone tell me what is the best way to look up a contect for a phone number? Jul 05 13:29:08 the numbers could be in the format... +491234 or 1234 or 00491234 Jul 05 13:29:21 driving me nuts Jul 05 13:30:14 do i have to parse the incoming phone number and do a like search? Jul 05 13:30:32 after trimming away the country code or 0 at the beginning? Jul 05 14:04:02 Hi, I'm kinda new to developing for android Jul 05 14:04:22 and I just used the eclispe plugin to create a signed apk. file Jul 05 14:04:43 and I transfered it to my device and attempted to run it Jul 05 14:04:47 but I got an error Jul 05 14:04:58 there was an error parsing the package Jul 05 14:05:02 could anyone help me with this? Jul 05 14:09:05 Hej, can someone give me a hint on how to invoke the AIDL tool to generate java-interface-classes from an .aidl definition file? Jul 05 14:11:18 the dev-guide only says "If you are not using the plugin, you should run AIDL first" Jul 05 15:21:03 * FJ_Sanchez hello! Jul 05 15:21:21 One question, is there any way to use bluetooth in an app? Jul 05 15:24:56 HI all, I'm working on my first android app, and could use some direction. I've gone through the hello world, and notepad code, but am trying to do some touch based interfaces. Where should I start? Jul 05 15:27:59 hey brom i was there like 2 weeks ago Jul 05 15:28:10 what do you need help with for the touch based stuff? Jul 05 15:29:17 Well, I've got my UI setup (very simple), but I just don't know how to launch code logic, based on the "up swipe". Jul 05 15:29:31 I think I need a new Activity Jul 05 15:29:52 hm Jul 05 15:30:29 I'm coming from php and C# so the Java environment is a little "overhwleming" Jul 05 15:30:46 i used onTouchEvent ( MotionEvent event ) Jul 05 15:30:50 to mange touch stuff Jul 05 15:30:57 i came from C++ and C Jul 05 15:31:19 it confused me a bit too Jul 05 15:31:54 but to do stuff when a motion event happens Jul 05 15:31:58 im using Jul 05 15:32:27 if ( event.getAction() == MotionEvent.[insert event here Jul 05 15:32:28 ] Jul 05 15:32:33 ) { Jul 05 15:32:46 to get the finger location Jul 05 15:32:48 i used Jul 05 15:32:55 xm = event.getX() Jul 05 15:33:06 ym = event.getY() Jul 05 15:33:53 this could help Jul 05 15:33:54 http://developer.android.com/reference/android/view/package-summary.html Jul 05 15:34:12 any idea about bluetooth in Android? Jul 05 15:35:03 ryan: this might help, depending on what you are doing : http://developer.android.com/reference/android/view/GestureDetector.html Jul 05 15:35:03 And this if block just goes right in the "main" public class? Jul 05 15:35:38 ryan: sorry that link was for brombomb Jul 05 15:35:47 thanks jasonlee Jul 05 15:35:51 thanks Ryan_ Jul 05 15:36:12 hey jasonlee Jul 05 15:36:19 i actually have a problem too if you could help Jul 05 15:36:52 i may or may not be able to help, what's your problem? Jul 05 15:37:00 I have a program that takes the finger position using getX() and getY() Jul 05 15:37:09 and then outputs a point at that location Jul 05 15:37:16 this works fine in the emulator Jul 05 15:37:27 but when i transfer to the real device Jul 05 15:37:44 i get random points all over the place and other parts of my program stop working too Jul 05 15:38:41 ryan: that's weird, if it works on the emu it should work on the device.. are you using the same target platform? Jul 05 15:38:55 i believe so Jul 05 15:39:07 i followed the instructions on the website Jul 05 15:39:46 the strange thing is that it also affects my collision detection Jul 05 15:40:14 and it works fine if I don't use getX() Jul 05 15:40:18 and getY() Jul 05 15:40:35 ryan: yeah, i'm not sure what's going on there... Jul 05 15:41:30 public boolean onTouchEvent (MotionEvent event) Jul 05 15:41:32 { Jul 05 15:41:33 // Gets the mouse position Jul 05 15:41:35 if ( event.getAction() == MotionEvent.ACTION_DOWN ){ Jul 05 15:41:36 Jul 05 15:41:38 fd = true; Jul 05 15:41:39 Jul 05 15:41:41 } Jul 05 15:41:42 if ( event.getAction() == MotionEvent.ACTION_UP){ Jul 05 15:41:44 Jul 05 15:41:45 fd = false; Jul 05 15:41:47 } Jul 05 15:41:49 Jul 05 15:41:50 xm = event.getRawX(); Jul 05 15:41:52 ym = event.getRawY(); Jul 05 15:41:53 Jul 05 15:41:55 return true; Jul 05 15:41:56 } Jul 05 15:41:58 is my fucntion Jul 05 15:42:03 do you see anything wrong with it? Jul 05 15:42:05 i just changed it to put Raw in there btw Jul 05 15:44:40 hi all, does anyone know how to get the Contacts.People ID ? Jul 05 15:45:04 tried People._id - but always returns 0 Jul 05 15:51:17 sorry, sorted :) Jul 05 16:02:12 Ryan_ or jasonlee_ is there a code example of gesturedetector or motion events? Jul 05 16:02:48 idk Jul 05 16:03:41 it would prolly be in here if ther eis though Jul 05 16:03:42 http://developer.android.com/guide/samples/ApiDemos/src/com/example/android/apis/view/index.html Jul 05 16:04:32 oh Jul 05 16:04:34 http://developer.android.com/guide/samples/ApiDemos/src/com/example/android/apis/graphics/TouchPaint.html Jul 05 16:05:07 thanks Jul 05 16:05:35 np Jul 05 16:22:45 hiya folks Jul 05 16:23:03 when i try to retrive a gps position sometimes it takes SOO long , is there anyway to do a timeout? Jul 05 16:32:49 AndyArmstrong1: Could you run the "Get GPS Position" code in a thread? I think there's a way there to say "Okay, give up." Or perhaps your "Get GPS code" should be a service? Jul 05 16:44:32 am just gona do a quick remove thing Jul 05 16:45:12 what about disabling the way an app changes when u rotate the phone Jul 05 16:45:15 can u stop that from happening Jul 05 16:45:31 like disable the phone orienatation and try to change the display Jul 05 16:48:25 AndyArmstrong1: I remember running across something like that when I had a problem that would result from that, but I fixed that by changing to a service. Jul 05 16:48:31 And now my app is offically far enough along to be useful. Jul 05 16:58:25 hello Jul 05 16:58:59 hello Jul 05 16:59:15 I am Japanese Jul 05 16:59:47 I have complate my android application and entryed in Android market Jul 05 17:00:09 anybody tell me how to use drawable folder as a db, so i can call the images onnext button to move to next id Jul 05 17:01:11 but it can't hit in android market by serch Jul 05 17:04:31 ? Jul 05 17:04:54 does anybody know how to disable the phone orienatation that tries to change the screen orientation Jul 05 17:08:52 ... Jul 05 17:14:04 AndyArmstrong1, Have u entryed ur soft in adroid market? Jul 05 17:14:14 am releasing it tonight i think Jul 05 17:15:42 oic Jul 05 17:15:56 y Jul 05 17:15:58 AndyArmstrong1, where do u live? Jul 05 17:16:02 scotland Jul 05 17:16:03 why Jul 05 17:16:32 because I am interested about u Jul 05 17:16:38 ok! Jul 05 17:16:45 I live in Japanese Jul 05 17:16:50 Japan Jul 05 17:16:50 cool Jul 05 17:16:52 I live in japan Jul 05 17:16:54 sorry Jul 05 17:16:57 np Jul 05 17:18:45 I had entryed my soft in android market but it has not hit search Jul 05 17:18:52 when did u enter it? Jul 05 17:19:31 yesterday early morning in JST Jul 05 17:19:35 hmmm Jul 05 17:19:39 thts odd actually Jul 05 17:19:46 is it there when u navigate to it tho Jul 05 17:20:27 AndyArmstrong1: the phone orientation stuff is in the normal sound/display settings Jul 05 17:20:43 how do i access that programatically? Jul 05 17:21:53 no clue, sorry :) Jul 05 17:27:49 .. Jul 05 17:31:06 AndyArmstrong1, Does in Scotland be summer now? Jul 05 17:31:11 yeah it is Jul 05 17:31:12 very hot Jul 05 17:31:14 surprisingly Jul 05 17:33:27 hi all, does anyone know how to change a spannablestring to string ? Jul 05 17:33:40 johnnyzen, hello Jul 05 17:33:55 hi licksjp Jul 05 17:34:19 johnnyzen, I am Japanese Jul 05 17:34:31 I live in Japan Jul 05 17:34:38 ok Jul 05 17:35:06 I am interested in android application developing Jul 05 17:35:49 ok Jul 05 17:36:14 hi i am trying to make a facial recon app for android does android support like library being used in it Jul 05 17:36:45 cn i import tuff not in the sdk into it Jul 05 17:37:10 since android is compiled into that wierd apk format Jul 05 17:37:20 Radzell: what is tuff ? Jul 05 17:37:39 can i import stuff not in the sdk into it Jul 05 17:38:11 Radzell: how is your C programming Jul 05 17:38:13 ? Jul 05 17:38:35 good it was my first language Jul 05 17:39:27 I doing this in java though i have the library and stuff but i dont want to start coding and everythin goes flop Jul 05 17:39:57 Radzell: You may need to go hardcore. do you know about Android NDK ? Jul 05 17:40:18 no havent heard of it Jul 05 17:40:34 Radzell: cool, have a look at: http://developer.android.com/sdk/ndk/1.5_r1/index.html Jul 05 17:40:58 Radzell: maybe this will help ? otherwise, I havent got a clue. Jul 05 17:41:55 it may thanks Jul 05 17:42:18 Radzell: no probs. Jul 05 17:42:25 hi all, does anyone know how to change a spannablestring to string ? Jul 05 17:43:16 no worries, solved :) Jul 05 17:46:12 In android market has entryed the soft change the published?? Jul 05 17:47:08 wewt? Jul 05 17:48:33 it says i nthe docs that if I use a singleton, I should register the android.app.Application in the manifest.. sure.. but how? Jul 05 17:49:42 as a "uses-library" ? Jul 05 18:01:22 and why is it that every time I ask something (after looking for about 1 hour first), I almost imidiatly find it :) Jul 05 18:03:49 does anybody know how to disable the phone orienatation that tries to change the screen orientation Jul 05 18:06:21 AndyArmstrong1: In the manifest, I think Jul 05 18:06:23 Not sure though. Jul 05 18:09:03 hmm sounds right Jul 05 18:09:09 any idea of the specific entry needed Jul 05 18:12:41 AndyArmstrong1: No clue, but I think I saw a discussion of it either here or on the Android Google groups section. Jul 05 18:15:05 see you Jul 05 18:15:29 Anyone experienced with the NDK? Jul 05 18:15:34 anyone interested in joining a team for a developer competition Jul 05 18:15:47 Radzell, which competition? Jul 05 18:16:22 how do you send pivate pms Jul 05 18:18:13 on? Jul 05 18:19:47 i figred it out Jul 05 18:41:32 OK, this must have been asked over and over, but i how do i put a widget on the bottom of the screen? ...linearlayouts/tablelayout/tablerow and gravity does nothing... Jul 05 18:42:51 legalize weed, that will take income away from organized crime, tax businesses making legal weed and cut the income tax. police can focus on organized crime and less black people will go to jail because of ridiculous stuff like 3 strikes and youre out and get 20 years for smoking pot 3 times. Jul 05 18:46:03 or just dont do drugs Jul 05 18:48:07 including alcohol? Jul 05 18:49:14 alcohol is legal Jul 05 18:49:50 and therefore not a drug? Jul 05 18:49:57 no Jul 05 18:50:23 so if weed would have been legal, it would not be a drug? Jul 05 18:50:29 but if i smoke weed, i know i'll be fucked when they catch me. you know beforehand, if you do it, you'll be punished Jul 05 18:50:59 hence the suggestion of legalizing it? Jul 05 18:52:15 that'd be stupid. i've seen enough heavy smokers, that fucked up their live because they smoked weed, one of them my best friend from childhood Jul 05 18:52:29 now comes the "it's not addictives or harmful, OMGOMG!" Jul 05 18:52:38 but thats just stupid bullshit :) Jul 05 18:53:01 no no, of course it could be harmful, but so is alcohol Jul 05 18:53:14 yes it is Jul 05 18:53:38 so, why would you legalize it Jul 05 18:53:38 meaning it should be unlegalized Jul 05 18:53:44 you just admitted its harmful Jul 05 18:54:23 so don't got "legalize weed" but "forbid alcohol". that would be your own argument Jul 05 18:54:32 -t Jul 05 18:56:27 no, i was suggesting it as a logical step following your argument Jul 05 18:56:38 :) Jul 05 18:56:45 addictive=banned Jul 05 18:58:06 and i'm not necessarily saying either alcohol should be forbid or weed should be legalized Jul 05 18:58:48 i'm just tired of this alcohol=good/weed=bad, just because alcohol happens to be legal Jul 05 18:58:54 you made the impression, though :p Jul 05 18:58:57 and weed not Jul 05 18:59:28 ah ok, not my intention Jul 05 19:00:06 and i'm tired of people that want to legalize yet another drug because other drugs are legal Jul 05 19:00:22 :) Jul 05 19:01:45 well Jul 05 19:02:03 anyways, this might be not the right forum for this ;) Jul 05 19:02:14 i got a little ahead of myself Jul 05 19:07:05 anyone know hoe to set a margin with RelativeLayout.LayoutParams ? Jul 05 19:07:09 *how Jul 05 19:09:32 anyone know the java for android:layout_marginTop ? Jul 05 19:24:06 anyone know the java for android:layout_margins ?? Jul 05 19:28:52 anyone help with setMargins ? Jul 05 19:35:19 dang, i can't get this right, i want some widgets at the top, a listview, and a edittext at the bottom (under the listview), i just can't get it to the bottom...any pointers? Jul 05 19:42:22 is it (easily) possible to use the camera button from an app to launch the camera intent with certain parameters (e.g. specifying a target file name) Jul 05 20:03:57 jeddy3: i have that set up in my app, one sec while i look at how i did it Jul 05 20:06:32 Hi. I get an error when compiling an .aidl file which is using imports "couldn't find import for class android.remote.ObjectServerIdentity" Jul 05 20:06:43 anyone who can give me a little support? Jul 05 20:13:31 kenpark: android.remote doesn't exist in my copy of the API. where did you get this? Jul 05 20:13:47 it is just a package i added Jul 05 20:14:17 For one of my Android software projects using the native sdk, I need to be able to invalidate the icache, and execute the stack. Is this currently possible? Jul 05 20:14:40 kenpark: why are you adding packages under the android namespace? Jul 05 20:15:17 zodttd: with asm? maybe Jul 05 20:15:30 i could have named it "foo.remote" or somehow else ... it didn't matter that much to me Jul 05 20:16:22 I typically clear the icache with a syscall Jul 05 20:16:48 ok. can you paste your code somewhere? Jul 05 20:17:20 Im more concerned about the stack needing to be executable. Perhaps -fnested-functions or such could help with that. Jul 05 20:19:27 f^x, the thing is i want to run the aidl-tool from comandline and i think i don't know how to deal with imports Jul 05 20:19:52 oh. um, i don't know how to do that Jul 05 20:19:56 when i create an android-project in eclipse it generates the code to me automaticly. so i think my sources are correct Jul 05 20:20:05 ok, thank you anyhow Jul 05 20:35:47 KNY: here? Jul 05 20:35:56 yeah, what's up? Jul 05 20:36:01 may i PM? Jul 05 20:36:41 sure thing Jul 05 20:47:46 so Jul 05 20:47:48 hows it going Jul 05 20:50:15 anyone know how to invalidate just one row in a listview? I can invalidate the whole list with notifyDataSetChanged, but I just need to update one row? Jul 05 21:10:14 what the hell, R just disappeared from my project in Eclipse Jul 05 21:10:38 all references to things in R are givimg me "cannot be resolved" Jul 05 21:13:16 how do i get it back? Jul 05 21:13:32 if i run build again, it gives me the same error. it just won't auto-generate R Jul 05 21:15:42 wait, wtf, R.java is there, under gen, but for some reason, my mail java file can't see it Jul 05 21:15:45 wtf Jul 05 21:19:56 oh what the hell, it looks like I somehow am referencing the R. from another project. if I type R.id. and let it autocomplete, there are a bunch of ids there for things not in my project. how does that even happen? Jul 05 21:20:42 I'd make clean but the last time i did that, it deleted some other important auto-generated file and I had to recreate a new project and copy the code over for it to work again Jul 05 21:22:05 ok, no, wait, those things i am seeing are things that are normally in R. but none of the things form my xml are in R now Jul 05 21:26:02 oh. turns out i somehow added import android.R to the top of my source, which was importing the default R instead of my auto-generated one. No idea how that got there, I probably accidentally clicked on the wrong quick fix for something Jul 05 21:41:36 hi all, can anyone tell what the @222333 (any numbers) if I create a new private DurationPicker mDurationPicker; Jul 05 21:41:44 is it the instance number ? Jul 05 21:42:56 numbers where? Jul 05 21:44:22 for example if I create : private ClassName mName, then if I log mName it returns: ClassName@333333 - are these numbers the instance id ? Jul 05 21:47:00 any ideas ? Jul 05 21:49:30 the reason I ask, is that I have two instance of the same class, and this @number is the same on both. I wondered if they should be different. as I have a bug, and having trouble finding it Jul 05 21:50:25 how do i remove that padding around a button? Jul 05 21:51:21 what padding ? Jul 05 21:51:51 inside the button ? Jul 05 21:52:35 around a button Jul 05 21:52:45 im making a grid of buttons Jul 05 21:52:57 johnnyzen: and i wanna remove the space sround it Jul 05 21:53:00 it/them Jul 05 21:53:15 AakashPatel, set padding to 0 Jul 05 21:56:07 for example if I create : private ClassName mName, then if I log mName it returns: ClassName@333333 - are these numbers referring too ? Jul 05 21:56:24 *what are these numbers referrng to Jul 05 21:56:30 anyone ? Jul 05 21:57:04 num1: that makes my button disappear Jul 05 21:57:04 any help would be cool :) Jul 05 21:57:11 num1: that doesn't work for me, i still have a couple pixels of blank space to the left, right and bottom of the button Jul 05 21:57:31 in fact, it seems to remove the padding inside the button, so it shrinks Jul 05 21:57:59 uh it doesnt remove the passing Jul 05 21:58:01 padding* Jul 05 21:58:26 AakashPatel: yeah, i agree with you Jul 05 21:58:32 unfortunately i don;t know what the fix is Jul 05 21:58:41 f^x, AakashPatel, you're right, padding works for children, I think it'll work if you set padding to 0 on whatever layout you're putting the buttons in Jul 05 21:59:07 isnt it margins rather than padding ? Jul 05 21:59:19 if its outside the button Jul 05 21:59:20 num1: nope, that had no effect Jul 05 21:59:42 is there padding for the grids ? Jul 05 22:00:45 give me a second while I boot the emulator and droiddraw Jul 05 22:00:57 johnnyzen: setting layout margin to 0 on the button and its parent layout has no effect either Jul 05 22:01:35 droiddraw is so out of date. Jul 05 22:01:57 its almost unusable for me Jul 05 22:02:16 just gives wrong layouts half the time Jul 05 22:02:46 Aakash: what layout group is it ? Jul 05 22:02:51 GridView ? Jul 05 22:03:05 uh...it was a relativelayout Jul 05 22:03:16 * AakashPatel didnt know there was a gridview lol Jul 05 22:03:44 ah cool, i am good at relative layouts, can you paste the layout at pastebin and i'll have a look Jul 05 22:03:49 sure Jul 05 22:04:12 http://pastebin.com/m9ba0713 Jul 05 22:04:12 xml or coded layout ? Jul 05 22:04:15 xml Jul 05 22:05:45 johnnyzen: yeah, on that i wanna take out all the space between the buttons Jul 05 22:07:06 one sec, need to get my head round your style :) Jul 05 22:07:27 lol my "style" blows Jul 05 22:07:31 ..hard Jul 05 22:08:32 what sdk you using ? 1.5 ? Jul 05 22:08:59 Aakash: what sdk Jul 05 22:09:01 yea Jul 05 22:09:33 hmmm, when I render the layout, I can only see one button. Jul 05 22:09:44 uh... Jul 05 22:09:45 have you rendered the layout yourself ? Jul 05 22:09:48 yea Jul 05 22:09:53 i have it on my phone even Jul 05 22:09:59 not droiddraw i hope ? Jul 05 22:10:07 idk waht that even is lol Jul 05 22:11:34 can you send me a screenshot ? Jul 05 22:11:42 yea Jul 05 22:11:58 i dont understand how any buttons are showing at all. Jul 05 22:12:13 you have various alignment issues, as far as I can tell Jul 05 22:12:18 its a widget btw Jul 05 22:12:23 a ha Jul 05 22:12:25 sorry Jul 05 22:12:36 just noticed Jul 05 22:13:05 pm'ed you screnshot Jul 05 22:13:34 This is a harder problem than I thought, Android doesn't seem to like removing whitespace Jul 05 22:14:13 Hmmm looks like widgets handle layout diferently Jul 05 22:14:37 that xml wouldnt render in an activity Jul 05 22:15:12 yea probably wouldnt Jul 05 22:15:41 Aakash: have you tried specifing widths ? Jul 05 22:15:55 on each button ? to see what happens ? Jul 05 22:16:06 johnnyzen: uh but would that get rid of the space? Jul 05 22:16:43 sorry, what are you trying to do ? thought you wanted to get rid of the space ? Jul 05 22:17:03 yea Jul 05 22:17:11 between the bottons Jul 05 22:17:14 buttons* Jul 05 22:17:19 i want them to touch each other Jul 05 22:17:27 ok Jul 05 22:18:48 have you tried using android:horizontalSpacing and android:veticalSpacing with GridView? Jul 05 22:18:55 verticalSpacing* Jul 05 22:19:46 think buttons have spacing we cant change ? maybe for usability Jul 05 22:20:50 Aakash: spacing is needed I reckon for your app, as my fingers are big Jul 05 22:25:49 I guess if you were desperate you could use absolute layout Jul 05 22:26:22 but I suppose the transparent pixels around buttons are part of the button, specifically so there's a little spacing Jul 05 22:27:50 for example if I create : private ClassName mName, then if I log mName it returns: ClassName@333333 - what are these numbers referring too ? Jul 05 22:27:56 ANYONE: for example if I create : private ClassName mName, then if I log mName it returns: ClassName@333333 - what are these numbers referring too ? Jul 05 22:30:02 johnnyzen, I'm sorry noone knows, but asking over and over isn't going to help Jul 05 22:31:30 i am not asking over and over, i wait until I cant see my text on the screen, then I ask again. Jul 05 22:31:41 which I think is fair enough Jul 05 22:37:47 When I run make on the source, why would I not be getting a boot.img? Jul 05 22:39:26 johnnyzen: you might have better luck asking where your text will stay on the screen, like a forum Jul 05 22:40:23 I am here because its urgent. Jul 05 22:42:00 where are these numbers showing up? you said "if i log mName", what do you mean by that? Jul 05 22:44:42 it most likely is the PID of the process you're debugging, of the instance number of the class, of something similiar Jul 05 22:44:45 i am creating two instances of a class - private TestClass mTestclass1 and private TestClass mTestClass2 - If I do - > Log.w(TAG,mTestClass1); -> the logcat states - > com.example.AppOne.TestClass@44444 Jul 05 22:45:06 Just wondered what the @numbers meant Jul 05 22:45:10 num1: good call on the pids Jul 05 22:46:01 I cant understand why the numbers are the same on both mTestClass1 and mTestClass2 - thought they would be unique ? Jul 05 22:46:11 johnnyzen, is 44444 an actual number it returns? Jul 05 22:46:35 and everytime you run the program does a different number appear Jul 05 22:46:42 johnnyzen: connect to the shell of your emulator and run ps Jul 05 22:46:45 yes Jul 05 22:46:51 see if the pid of your program is the same as the number Jul 05 22:47:31 ok will do. if it is process ID - should they be unique is I am creating two instances of a class ? Jul 05 22:47:46 *if I am creating Jul 05 22:48:58 johnnyzen, as long as your classes are running in the same Dalvik VM instance, yes Jul 05 22:49:12 the actual value at the moment is @4319a3e0 - so sorry not just numbers Jul 05 22:49:23 erm, no they shouldn't be unique Jul 05 22:49:33 johnnyzen: that's a hex number Jul 05 22:49:49 specifically, a 32-bit number Jul 05 22:51:06 well the problem is , I have two buttons each relating to the two classes, but when I press the button, its picking up the values from the other class instance. i cant understand why it is doing this, if the class instance names are unique Jul 05 22:51:12 hi Jul 05 22:51:26 guys, anyone know if it's ok to submit more than one entry for adc 2 ? Jul 05 22:51:37 maennj, submit as many as you want Jul 05 22:51:43 johnnyzen: that's a problem that's more like something we can help you with, you should have asked about that first Jul 05 22:51:50 cool Jul 05 22:51:51 i doubt it's related to those numbers at all Jul 05 22:52:35 do you know if the timeline is final because in the site they said it's subject to change once rules are available but they didn't announce them although it's past june Jul 05 22:52:38 well, I always try to learn at the same time, so i have prob. been going down the wrong path. Jul 05 22:53:25 johnnyzen, what code are you using to initialize these two classes? Jul 05 22:54:29 num1: just "private TestClass mTest1;" and "private TestClass mTest2;" Jul 05 22:54:44 before oncreate Jul 05 22:54:49 johnnyzen, that's how you declare them, how are they initialized Jul 05 22:56:11 johnnyzen: i just checked and those numbers show up whenever you .toString() any object in Java (without an overridden .toString(), of course) Jul 05 22:56:28 memory address Jul 05 22:57:23 if that's the case, then yes, they should be unique per instance Jul 05 22:57:37 johnnyzen: post your full code somewhere so we can look it over Jul 05 22:58:04 ok, one sec Jul 05 22:59:18 num1: initalizd by importing the class Jul 05 23:00:08 johnnyzen, how much have you used java? Jul 05 23:00:09 johnnyzen: no, to initilize an object, you call its constructor Jul 05 23:00:23 that's what he's referring to, where do you call the constructor Jul 05 23:00:47 johnnyzen, do you use mClassTest1 = mClasstest2 Jul 05 23:01:22 when I click the button, I call mTest1.getInfo() Jul 05 23:03:15 http://pastebin.com/md551b5e Jul 05 23:04:41 so basically - on the addYouOweDebtBut, the getDuration is returning the getDuration for the other instance Jul 05 23:06:06 (line 124) Jul 05 23:06:54 johnnyzen: when you call findViewById for both mDurationPicker and mYouOweDurationPicker, you are finding the same durationpicker Jul 05 23:07:10 so mDurationPicker and mYouOweDurationPicker both point at the same object Jul 05 23:07:29 look at lines 160 and 168 Jul 05 23:08:21 you don't get nullPointer exceptions running it? Jul 05 23:08:49 f^x, +1 Jul 05 23:08:50 yes, thought of this. I thought could use the same layout - No null point exceptions Jul 05 23:09:22 johnnyzen, you realize that what this code does is make mDurationPicker and mYouOweDurationPicker point to the same object, right? Jul 05 23:09:59 yes i understand they point to the same object. Jul 05 23:10:00 so any call to getDuration or whatever will return the same number whether you are using mYouOweDurationPicker or mDurationPicker Jul 05 23:11:37 so uh... fix that? since i don't know what this app is supposed to do, i can't tell you how to fix it Jul 05 23:12:59 when I logged the values of the views within the DurationPicker class, it was giving me unique numbers for each instance. Jul 05 23:14:08 you're gonna have to be more specific here. i mean, your code is doing exactly what it should do under the circumstance Jul 05 23:14:11 s Jul 05 23:14:26 if I call getDuration from within the Pickerclass, it was returning unique values for both the instances - so it appears to be picking upi the unique numbers, just when I call the getDuration from the class I pastebinned Jul 05 23:15:28 how did oyu call it from within the picker class? i don't even see the picker class code here Jul 05 23:16:02 but i see you used to create two new pickers at the start of this class, but have since commented them out Jul 05 23:16:19 did those results perhaps happen before you commented out lines 47-48? Jul 05 23:17:08 just tried to see what would happen, nothing, so commented out Jul 05 23:17:27 http://pastebin.com/m23acda1b Jul 05 23:17:55 its the alarmclock picker, changed for my needs Jul 05 23:18:59 ok Jul 05 23:19:06 do you have two different pickers in your layout xml? Jul 05 23:19:17 weeee my app is on the market ;p Jul 05 23:19:54 because in your current code you are getting two references to the same picker and somehow execpting them to be dofferent Jul 05 23:20:39 well I thought by having two instances, they would be unique ? Jul 05 23:20:59 they are unique if you set them to point at unique objects Jul 05 23:21:10 but you have two references and you set them to point at the same object Jul 05 23:21:21 how many pickers are in your xml? Jul 05 23:21:26 just the one Jul 05 23:22:05 ok, what does the picker do? Jul 05 23:22:30 also do you understand the difference between references and atomic types Jul 05 23:22:40 its basically just a way to choose numbers. - like the alarm clock time picker. Jul 05 23:23:24 references ? maybe, atomic types, i dont know what you mesn Jul 05 23:23:26 mean Jul 05 23:23:52 hm, i might be getting off track here., Jul 05 23:24:18 you may or may not be doing the right thing in this code, i can't tell, because i don't know what you want this code to do. Jul 05 23:24:42 can you explain simply 1) what *should* happen when you press a button and 2) what *does* happen when you press a button Jul 05 23:25:36 references and atomic types? ...hehe, f^x: do _you_ understand the difference? :) Jul 05 23:26:39 when I press the button, I need to get the values from the 5 TextViews, which make up part of the durationpicker - The durationpicker class, just updates and stores the numbers when the user presses + or - buttons. Jul 05 23:27:09 jasta: yes Jul 05 23:27:18 f^x: are you sure you don't mean primitive types? :) Jul 05 23:27:58 what is happening: i have two tabs, each one has a durationpicker. when I choose numbers from the second tab and press the button, it is saying no numbers stored. Jul 05 23:28:33 jasta: all java's primitive types are atomic too ;) Jul 05 23:28:52 hehe, no. Jul 05 23:28:55 if I choose numbers from the first tab - but dont press the button in the tab, then goto the button in the second tab, it gets the values from the other picker Jul 05 23:29:00 Atomic* classes are atomic. Jul 05 23:29:08 not the primitives Jul 05 23:29:10 although "atomic" may have been a poor choice of words since there are also atomic operations, and not all operations on atomic types are atomic Jul 05 23:29:54 jasta: i meant atomic in this sense, which has *nothing* to do with atomic operations http://books.google.ca/books?id=qBKO1b8CsNUC&pg=PA454&lpg=PA454&dq=java+atomic+types&source=bl&ots=rP-hyizO2_&sig=FZtmaRbOoq-lH9v90cg7zGRTe-4&hl=en&ei=rzVRSqCgK8Oztgf814yrBA&sa=X&oi=book_result&ct=result&resnum=6 Jul 05 23:29:55 are you endeavoring to redefine atomic to mean primitive data types? Jul 05 23:30:15 because java contains no such definition for "atomic types" -- only primitives. Jul 05 23:30:23 argh read that link Jul 05 23:30:50 what makes this book authoritative? Jul 05 23:31:11 i reject the definition given here. Jul 05 23:31:45 jasta: put your foot down. Jul 05 23:31:53 ;) Jul 05 23:31:57 oh for fuck's sake. Jul 05 23:32:29 johnnyzen: well this guy is just redefining existing terms in the scope of the Java language and pretending that's authoritative. you can't do that. Jul 05 23:32:54 despite the java language defines a different term that would be much more appropriate if you were trying to be well understood by folks that actually understand the language Jul 05 23:32:57 that's all ;) Jul 05 23:33:15 rargh how dare i use a slightly outdated term that appears in textbooks! NERD RAGE Jul 05 23:33:48 this use is proof of the fact that i know nothing about java and am completely useless! Jul 05 23:34:04 jasta: why don;t you solve johnnyzen's problem then Jul 05 23:34:12 since you are the expert and i know nothing Jul 05 23:34:29 what are your qualifications, anyway? Jul 05 23:34:37 ahem.. nice weather we are having Jul 05 23:34:51 Dale and Weems have been cited in various papers, what have you published? Jul 05 23:35:20 or do you have anything useful to add beyond being an insufferable pedant? Jul 05 23:36:23 no point wasting energy on such matters. Jul 05 23:36:49 focus on positive actions that will bring good karma Jul 05 23:38:59 i am not sure if your looking at solving the problem, I have thought of a work around. Jul 05 23:39:05 :) Jul 05 23:39:29 f^x: thanks for your help anyways :) Jul 05 23:40:57 you're welcome Jul 05 23:41:05 i'm going outside. later Jul 06 01:18:09 Hi Everyone, quick question: Is there anyway to hide the notification bar inside an app? I understand that you can requestFeature to hide the Title bar, but is there a way to do the same for the notification bar? (The native camera application does it) Jul 06 01:40:30 Evenin' Jul 06 02:26:08 How do I update my strings in the strings.xml file? Jul 06 02:26:19 text editor? Jul 06 02:26:33 eclipse or a text editor Jul 06 02:26:50 eclipse Jul 06 02:27:03 sorry from a prgramitic stand point Jul 06 02:27:22 i don't think you can Jul 06 02:28:13 eclipse can Jul 06 02:28:20 I just did it 2 minutes ago Jul 06 02:29:42 he means manipulating the .xml dynamically, from within an activity Jul 06 02:29:43 I believe Jul 06 02:29:43 b0nn: he means after the program is running Jul 06 02:30:01 doubleminus yes Jul 06 02:30:10 ohhhhhhhhhhh Jul 06 02:30:12 the strings.xml is built into the app and i don't think that can be changed Jul 06 02:30:16 I am trying to change the text on screen Jul 06 02:31:19 you can change the text value of the textedit programmatically if thats what you are planning Jul 06 02:31:46 I think that sounds like what I want Jul 06 02:32:18 edittext.setText("string"); Jul 06 02:33:20 and what is edittext ? Jul 06 02:33:44 well - where are you using the string values from your xml? Jul 06 02:34:19 are they textviews, within edittexts, on buttons? Jul 06 02:34:55 they are textviews Jul 06 02:35:29 I don't think I've defined the layout yet Jul 06 02:36:06 brombomb: you might want to take a look at some of the examples in the API Demos. they have helped me greatly Jul 06 02:36:32 Ok I'll go back and look there Jul 06 02:36:45 I copied most of it from the hello world demo Jul 06 02:38:02 in that demo i believe there is a spot to show you how to set it dynamically Jul 06 02:47:31 <_oyo> in order to make android double buffer work well, the framebuffer must support xxfb_pan_display and dma? Jul 06 02:50:08 <_oyo> it often outputs "lock_layer timed out (is the CPU pegged?)", what does it mean? Jul 06 02:56:46 I believe I asked this before, but I'm sure it wouldn't hurt to ask again... Is it possible to hide the notifications bar inside my Activity (like hiding the Title)? (the native camera app does it) Jul 06 02:58:36 shin-kun: http://www.evan129.com/2008/03/08/howto-set-full-screen-on-android/ Jul 06 02:59:10 actually, don't do it that way Jul 06 02:59:32 in AndroidManifest.xml, declare your activity with