**** BEGIN LOGGING AT Sat Jul 11 02:59:57 2009 Jul 11 05:48:15 hey everyone Jul 11 06:01:47 is it possible to refresh a PreferenceActivity manually? It doesnt seem to update when the preference that an item inside it's value changes in code Jul 11 06:02:10 *of an item inside it Jul 11 06:02:52 though it has updated when I exit and re-open the app Jul 11 06:33:59 hi all, can anyone help me with line 15 and 17 with this: http://pastebin.com/d6095b88e - I guess its context, and am still trying to understand Jul 11 08:12:56 can anyone help with a context question ? Jul 11 11:07:04 could anyone help me with line 18 of http://pastebin.com/d237adbd0 - think I need to find the right context, but unsure how to do it ? Jul 11 11:07:58 getApplicationContext() ? Jul 11 11:10:11 hi Rexxars: thanks, tried that, but getting error due to the class being static. Jul 11 11:10:59 its saying cannot make static ref. to a non-static method Jul 11 11:12:34 that makes sense Jul 11 11:13:33 how would I get round it , any ideas ? Jul 11 11:15:10 set the context to a static variable? a little ugly, but.. should work.. :p Jul 11 11:16:47 Rexxars, sorry how would I do that ? Jul 11 11:17:32 public static Context whateverContext; then set that variable in your oncreate method and hope for the best ;) Jul 11 11:22:49 hmmm still having issues with static and non-static Jul 11 11:23:23 basically, I need to delete a row from the listview, as far as I know, I can only refresh the listview hence line 17 Jul 11 13:32:58 hey all Jul 11 13:34:43 hey Matt__ Jul 11 13:35:45 hows it goin the_alien?? Jul 11 13:36:52 hmmm ill... but still working on my sms widget ;) Jul 11 13:40:58 ooo that snds kool, will it let you send sms from the widget or is it for something else? Jul 11 14:29:48 could anyone help me with line 18 of http://pastebin.com/d237adbd0 - think I need to find the right context, but unsure how to do it ? Jul 11 14:38:47 johnnyzen, have you gone through examples? Start with ApiDemos and the NotePad tutorial Jul 11 14:40:41 KNY, yes, but information let finding the right context using methods like getContext are found in examples. Jul 11 14:40:44 KNY: yo Jul 11 14:40:52 sup, SanMehat ? long time no se Jul 11 14:40:53 *not found in example Jul 11 14:40:54 see, too Jul 11 14:42:39 KNY: just been working a lot Jul 11 14:43:39 SanMehat, same Jul 11 14:44:21 any cool shit coming down the pipeline that you can talk about? Jul 11 14:45:16 not really :) Jul 11 14:45:36 Hi all! Do you know where I can find source code or any reference on a project that uses Web requests and allows users to rate and comment retrieved content displayed on a list, such as the one that "Android Market" app or "Funny jokes" app use when you browse or search for specific content? Jul 11 14:46:05 jdavidandroid, sounds like if you found an example that thorough then you wouldn't have any work to do Jul 11 14:48:23 Certainly, I wouldn't want to reinvent the wheel, I just want to focus in the part that's new and has not been yet implemented. I just found an OS project Jeffrey Sharkey from Google created and it has helped me a lot Jul 11 14:49:49 KNY, It doesn't sound that complicated. Actually there are a lot of projects out there that use this same principle... Jul 11 14:51:32 hey, im looking for a method to get the event by using the AbsListview in the onScroll methode Jul 11 14:51:57 hiya yall Jul 11 14:54:33 hey guys Jul 11 14:54:46 does anybody know how to close the software keyboard programatically Jul 11 14:58:22 hi, yes... i was searching a few days too :) Jul 11 14:58:47 yeah Jul 11 14:58:52 im trying something atm actually Jul 11 14:58:56 will tel u if it works! Jul 11 14:59:35 yes mom Jul 11 14:59:39 one moment Jul 11 14:59:52 i have to read it again :) Jul 11 15:00:15 textSettingsPasswordEditText.setImeOptions(EditorInfo.IME_ACTION_DONE); Jul 11 15:00:30 ?? Jul 11 15:00:38 textSettingsPasswordEditText <- is an EditText Field Jul 11 15:01:05 does that work? Jul 11 15:01:06 / * Settings Password * Jul 11 15:01:06 Jul 11 15:01:07 textSettingsPassword = new TextView(appsDesktop); Jul 11 15:01:07 textSettingsPassword.setLayoutParams(new MyAbsoluteLayout.LayoutParams(280,30,20,securitySettingsY +10)); Jul 11 15:01:08 textSettingsPassword.setTextColor(Color.argb(255,255,255,255)); Jul 11 15:01:10 textSettingsPassword.setTextSize(20); Jul 11 15:01:12 textSettingsPassword.setGravity(Gravity.LEFT); Jul 11 15:01:14 textSettingsPassword.setText(appsDesktop.getResources().getString(R.string.settings_settings_password)); Jul 11 15:01:17 Jul 11 15:01:19 textSettingsPasswordEditText = new EditText(appsDesktop); Jul 11 15:01:36 pastebin.com Jul 11 15:01:50 pastebin.com next time Jul 11 15:02:00 wow lemme test that Jul 11 15:02:16 ups... to much lines :9 Jul 11 15:02:54 Inselbewohner, anything more than 1 is too many. Jul 11 15:03:10 :) yes, sorry Jul 11 15:03:24 Inselbewohner does that work??? Jul 11 15:03:30 yes, i use it Jul 11 15:03:30 i cannot get it to hide the keyboard Jul 11 15:03:34 so what line is it Jul 11 15:03:39 setImeOptions(EditorInfo.IME_ACTION_DONE)? Jul 11 15:03:53 I'm sure this has been asked a ton but have the official rules for ADC2 been released? Jul 11 15:03:53 yes ad the lIstener Jul 11 15:04:08 textSettingsPasswordEditText.setOnEditorActionListener(new OnEditorActionListener() { Jul 11 15:04:48 Inselbewohner yes.... Jul 11 15:05:04 how do i hide the software keyboard Inselbewohner plz be specific and stop pasting code all the time Jul 11 15:05:26 Its a combination of 2 Lines... Jul 11 15:05:31 ok Jul 11 15:05:34 setImeOptions(EditorInfo.IME_ACTION_DONE) and Jul 11 15:05:37 the Listener Jul 11 15:05:38 Hi guys. I have a ListView widget with some other widgets for each row. There seems to be a default margin or spacing between the rows (2px). how can i remove this? Jul 11 15:05:44 what does the listener do Jul 11 15:06:07 KNY, this is the OS I was talking about... http://code.google.com/p/googleio2009/ I was wondering if there is an OS that uses web requests and sallos rating and comments for retrieved contents,( i.e. Android Market app that uses this principle) Jul 11 15:06:08 the listener react and close the keyboard Jul 11 15:06:18 do i need to code the listener? Jul 11 15:06:22 yes Jul 11 15:06:27 well what do i need in it Jul 11 15:06:32 plz paste the listener Jul 11 15:06:44 what you want to do ... or let it empty Jul 11 15:07:01 textSettingsPasswordEditText.setOnEditorActionListener(new OnEditorActionListener() { Jul 11 15:07:08 public boolean onEditorAction(TextView arg0, int arg1, KeyEvent event) { Jul 11 15:07:15 if(arg1 == 6) { // * Wenn IME Editor geschlossen wird, dann URL laden * Jul 11 15:07:16 jdavidandroid, I don't know if you know what an OS is Jul 11 15:07:22 } Jul 11 15:07:27 return false; Jul 11 15:07:32 } Jul 11 15:07:37 }); Jul 11 15:07:38 i just want the keyboard to close... Jul 11 15:07:53 lol yes... do that and you got it :) Jul 11 15:08:00 KNY, what do you mean? Jul 11 15:08:10 jdavidandroid, that's an application. Jul 11 15:09:31 Inselbewohner but that listener does nothin Jul 11 15:09:34 if(arg1 == 6){ Jul 11 15:09:35 } Jul 11 15:09:38 return false Jul 11 15:09:52 KNY, I am using that source code to explore new possibilities in my application, and it has helped me a lot... Jul 11 15:10:01 yes... you can do what you want in the if {} Jul 11 15:10:14 the listener closes the keyboard Jul 11 15:10:14 wait, the market app is open source? Jul 11 15:10:47 ...... Jul 11 15:10:59 ok, so if i wanted to hide the keyboard Jul 11 15:11:01 what would i have Jul 11 15:12:17 ive searched many days to find a command to close the virtual keyboard... but i found only this solution with the listener Jul 11 15:12:31 Inselbewohne you are making no sense, my code is as follows Jul 11 15:12:36 why do you want to hide the keyboard? Jul 11 15:12:47 No? how can i remove the default space between rows in a ListView? Jul 11 15:13:20 tinx: after entering a password i want to close the keyboard... but if you press "done" nothing happends Jul 11 15:13:22 http://pastebin.com/m52453fc0 Jul 11 15:13:40 yeah Jul 11 15:13:44 i want the keyboard closed too Jul 11 15:13:47 so i havt to use a IME Listener to close the keyboard Jul 11 15:13:49 when i click a button Jul 11 15:13:57 insel, what am i doing wrong http://pastebin.com/m52453fc0 Jul 11 15:14:00 terros: I don't remember there being any default spacing, how are you creating the layout? XML or java? Jul 11 15:14:09 xml Jul 11 15:14:47 Andy: its looking fine i think Jul 11 15:14:59 it doesnt close the keyboard on press... Jul 11 15:15:20 hmmm... Jul 11 15:15:59 Do you pressed "Done" at the virtual Keyboard? Jul 11 15:17:17 torres: only thing I can suggest is to set the android:padding to 0 Jul 11 15:17:24 thats android : padding Jul 11 15:17:27 no Jul 11 15:17:31 i press the button done Jul 11 15:17:35 on your list items Jul 11 15:17:51 i want the keyboard to disappear when i click a normal button Jul 11 15:18:11 Andy: this is not possible... i think. Jul 11 15:18:35 god dammit Jul 11 15:18:57 yes, i searched many days to do that to... without a solution Jul 11 15:19:05 what a shame Jul 11 15:19:27 is there anyway to detect what phone the application is running on , i.e the magic or the previous phone - so i know whether to enable landscape orientation or not Jul 11 15:20:14 dont know Jul 11 15:22:08 no, that doesn't do it Jul 11 15:22:20 But, i found something that should heltp Jul 11 15:22:53 on the ListView class there is a footerDividerEnabled and headerDividerEneabled which is default true Jul 11 15:22:57 hey, can i read the events from the dpad Jul 11 15:23:09 also there are some other divider prefs. Jul 11 15:23:32 is there anyway to detect what phone the application is running on , i.e the magic or the previous phone - so i know whether to enable landscape orientation or not Jul 11 15:24:59 terros: huh interesting, I didn't know about those. I would guess the header/footer ones aren't what you are looking for but I really don't know. Good luck :) Jul 11 15:25:45 can anyone help me find the right context of a method ? Jul 11 15:26:16 i solved the problem by setting the android:dividerheight = -2px. Tried 0px, but that didn't have any effect. Anyway, -2px seemed to do the trick :) Jul 11 15:26:27 http://pastebin.com/m52453fc0 - line 18 Jul 11 15:27:46 Has anyone a solution for an invisible Widget when Orientation is changed? Jul 11 15:29:20 terros: nice! Jul 11 15:30:38 does anyone know if you can delete a row from the listview ? Jul 11 15:31:02 and have the view update ? Jul 11 15:34:51 yes Jul 11 15:34:55 johnnyzen_ u can Jul 11 15:35:24 Andy: is there a method for it ? Jul 11 15:35:30 u change the adapter Jul 11 15:35:35 and notifyupdatechange Jul 11 15:35:45 by using setAdapter ? Jul 11 15:35:52 u set adapter once Jul 11 15:35:56 then change the adapter Jul 11 15:35:59 if u change it Jul 11 15:36:06 get the listview to update Jul 11 15:36:14 using the .notify i think it is Jul 11 15:36:16 or something notify Jul 11 15:36:19 cnt quiet remember Jul 11 15:38:04 ah cool, will have a look for notify Jul 11 15:39:07 thanks Jul 11 15:58:25 Andy: think notifyDataSetChanged is the key, but notifyDataSetChanged() doesnt do anything. think I need the right context again :( Jul 11 16:22:44 hello Jul 11 16:26:25 ok found the right context, and is refreshing getView, but the row is not removed, nor is data updated, so would you call to update the data ? Jul 11 16:29:22 I was wondering how hard it would be to develop a new touch screen keyboard Jul 11 16:31:04 it's basically just a tiny bit harder than "hello world" Jul 11 16:31:28 lol Jul 11 16:31:40 I know how to program in C/C++ Jul 11 16:31:46 but I never developed an UI Jul 11 16:32:29 I have some ideas about a new touch screen keyboard design though Jul 11 16:33:03 I just wish I did computing studies Jul 11 16:36:35 ok, i am sorted :) Jul 11 16:38:14 can I link to a market app using a new intent ? Jul 11 16:56:09 no worries sorted Jul 11 17:05:39 Who is good with developing touch screen interfaces :p ? Jul 11 17:18:12 zelrikriando, just ask your question Jul 11 17:36:14 anyone know why when I pull recent kernel/common or kernel/msm there is no arch/arm/mach-goldfish? Jul 11 17:55:28 can you use java api s in andriod Jul 11 17:56:41 Radzell: some, yes Jul 11 17:57:43 anything that's not GUI-related, basically Jul 11 18:01:02 has anyone used REST api before Jul 11 18:01:34 i have a little idea of what it is i think but i'm not sure i'm a c/c++/c# dev Jul 11 18:02:28 when I git clone the kernel/common.git I get android-2.6.27 branch. It looks like goldfish stuff is in android-goldfish-2.6.29. How do I clone that branch instead? (I tried "git checkout android-goldfish-2.6.29" but that didnt work.. I'm somewhat green w/ git yet) Jul 11 18:51:26 KNY: what was my question :p Jul 11 19:53:13 can anyone help to transverse backwards ? Jul 11 19:56:40 sorry think I worded wrong. I need to get the root view for a findViewById which is 3 deep within a static class. can anyone help ? Jul 11 19:57:16 parent.findViewById is nearly there, just need one more something.parent.findViewById ? Jul 11 20:04:54 anyone able to help me ? Jul 11 20:08:05 parent.findViewById(parent.findViewById(..)) ? Jul 11 20:08:54 oh wait.. nvm Jul 11 20:15:18 hi k4r1m Jul 11 21:54:31 I am looking to make a list that has some dividers (headers) at certain points. Anyone have a suggestion on how to do this. Am not finding anything in the api examples. Jul 11 21:54:31 can anyone explain how onTap in itemized overlay receives the index of the item clicked? Jul 11 22:25:02 Is there any easier way than this in 1.5? http://whyandroid.com/android/180-separating-lists-with-headers-in-android-09.html Jul 11 23:33:55 does anyone know a successful way to remove items in an itemized overlay? Jul 12 02:14:03 guys, is there any updates on adc2 beside google I/O announcement ? Jul 12 02:24:45 no, to my endless frustration Jul 12 02:26:40 :/ Jul 12 02:26:44 :S **** ENDING LOGGING AT Sun Jul 12 02:59:57 2009