**** BEGIN LOGGING AT Fri Feb 27 02:59:57 2009 Feb 27 03:37:51 hi guys, I wrote a useful little tool. Feb 27 03:37:55 This is what it does: Feb 27 03:38:56 It checks all resource-folders for resources that exist in alternative-resource folders (like: "res/values-de") but not in the default folder ("res/values"). Feb 27 03:39:55 the problem is that you can reference such resource but will get an error during runtime on other non-localized systems Feb 27 03:40:04 This is the output: Feb 27 03:40:13 Parsing: D:\Workspace\Java\AndNav2\res Feb 27 03:40:19 Waiting for all Threads to terminate. Feb 27 03:40:26 StringResources found: 897 Feb 27 03:40:31 Total number of divergences: 2 Feb 27 03:40:36 [ E ] > 'tv_settings_unitsystem_us_details' just in [values-port] Feb 27 03:40:41 [ E ] > 'tv_settings_keylayout_quickinfo_caption' just in [values-de] Feb 27 03:40:53 Anyone thinks this is valuable for others, let me know :) Feb 27 03:56:33 ok no one .... Feb 27 03:58:47 how to retreive string values from an array list? Feb 27 03:58:53 please help. Feb 27 03:59:43 .get(i); // o_O Feb 27 03:59:52 but that returns an object Feb 27 03:59:59 use generics Feb 27 04:00:03 like? Feb 27 04:00:12 ArrayList Feb 27 04:00:12 viju85: For stuff like that, you're better off asking in #java Feb 27 04:02:44 i am passing this arrayvalue from one activity to another. Feb 27 04:02:57 this arrayList works in the first activity. Feb 27 04:03:06 but after i pass it to the second activity. Feb 27 04:03:19 i get an error and exception for that arrayList. Feb 27 04:03:28 any help greatly appreciated. Feb 27 04:07:26 romainguy: The new dev site is fantastic. If you see those guys, give them kudos from the field. Feb 27 05:21:28 is it possible to hide the system status bar? Feb 27 05:25:27 yea. this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); Feb 27 05:28:31 fyi: http://code.google.com/p/androidresourceconsistencychecker/ Feb 27 05:30:58 hey plus Feb 27 05:31:05 hi Feb 27 05:31:10 plusminus_: is it possible to hide the status bar? Feb 27 05:31:36 doesn't the code above work? Feb 27 05:32:08 also do: this.requestWindowFeature(Window.FEATURE_NO_TITLE); Feb 27 05:32:14 yeah, that's the title Feb 27 05:32:15 if thats what you need Feb 27 05:32:18 not for status bar Feb 27 05:32:26 this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); ? Feb 27 05:32:26 rsteckler: yea. this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); Feb 27 05:32:35 I think he DCd for a moment when I posted that Feb 27 05:32:40 ha, thx Feb 27 05:32:46 to both of you ;) Feb 27 05:32:49 oh muthu_ had the split, didn't see that :) Feb 27 05:33:23 plusminus_: arcc looks cool Feb 27 05:33:44 does it check only resources? Feb 27 05:36:04 yes for now only string-resoruces and drawables Feb 27 05:36:27 when you have issues with i18n its really useful :) Feb 27 05:37:08 had some problems with crashes due to i18n and it was not nice to find where it happened with the customer :) Feb 27 05:37:43 it is easily extendible for arrays, etc.. Feb 27 05:37:59 enough code for today := Feb 27 05:38:01 :) Feb 27 05:40:02 its a good tool, yes Feb 27 08:52:04 what's the preferred way of getting access to SharedPreferences in a BroadcastReceiver? Feb 27 09:21:38 Hi all. Is there a way to view all branches using repo ? I'm trying to checkout the revision/branch/tag of the android stack which is shipped with the dev G1 Feb 27 13:52:47 Is there a way to view all branches using repo ? I'm trying to checkout the revision/branch/tag of the android stack which is shipped with the dev G1 Feb 27 14:22:16 Hi all Feb 27 14:22:31 Does anyone know how to compute a "real world" normal for the camera? Feb 27 14:22:50 Like, if you look through the camera at the sky, the normal is [0, 1, 0] Feb 27 14:33:26 noone? Feb 27 15:07:16 :( Feb 27 15:09:04 how do i make a ProgressBar horizontal? it will only show up as a spinner Feb 27 15:10:59 hi, i've a MapView with certain objects on the mapoverlay i want the user to click on such an object. is there a more convenient way than storing the dimensions of the objeckts and use the onTap method ? Feb 27 16:51:44 Has anyone tried Google Notepad tutorial? I found some errors Feb 27 17:39:37 i need to schedule a task to run. Both the alarm manager and runnable task live in the same class. How do i set the pending intent to the task? Feb 27 17:43:22 what is the new dev site? Feb 27 17:44:03 viju85: developer.android.com Feb 27 17:44:22 oh i knew that. thanks anyways. Feb 27 17:44:31 np Feb 27 17:59:28 when i pass the arraylist from one activity to another, i am not able to get the values of the arraylist in the 2nd activity. Feb 27 17:59:38 what am i doing wrong? Feb 27 18:05:12 question: I wrote a Service which has a Runnable task inside of it. I want the task to be run periodically at variable times. How can this be done? Feb 27 18:06:13 I'm sure an Alarm Manager won't work Feb 27 18:09:23 viju85: how are you passing the array list? Feb 27 18:09:32 are you putting it inside of a bundle? Feb 27 18:10:15 will a ScheduledExecutorService work? Feb 27 18:14:18 i am putting into a bundle Feb 27 18:14:39 like this i.putStringArrayListExtra("bookLink",parseBookShelf.linksArray); where linksArray is an arrayList Feb 27 18:18:10 how do i solve this issue? Feb 27 18:26:49 http://developer.android.com/reference/android/content/Intent.html#putStringArrayListExtra(java.lang.String, java.util.ArrayList) Feb 27 18:26:56 Add extended data to the intent. The name must include a package prefix, for example the app com.android.contacts would use names like "com.android.contacts.ShowAll". Feb 27 18:27:03 nameThe name of the extra data, with package prefix. Feb 27 18:27:09 ^ You're doing it wrong. Feb 27 18:42:35 i tried putting the package prefix: i.putStringArrayListExtra(com.vijay.splash.bookLink,parseBookShelf.linksArray). it still does not work. it gives me an error Feb 27 18:44:23 try using quotes? Feb 27 18:44:55 it does not show a comipation error Feb 27 18:44:58 i am running it Feb 27 18:45:03 i ll let you know in a few seconds Feb 27 18:46:57 hey it works Feb 27 18:47:01 thanks a lot man! Feb 27 18:47:02 kudos Feb 27 18:48:37 yw Feb 27 19:45:30 Nnnng, I'm having some trouble with activitycreator when I don't own the sdk Feb 27 20:44:35 Hi Feb 27 20:45:03 How can I download OpenGL ES libraries to programming in 3D ? Feb 27 20:47:03 the opengl es stuff should be included with the android sdk Feb 27 20:47:11 see the api demo project for examples Feb 27 20:47:27 oh, but what about the javax.microedition.khronos.egl ? Feb 27 20:48:51 ... what about it? Feb 27 20:49:24 how can I get khronos libraries? Feb 27 20:49:41 I don't see to download in official site Feb 27 20:52:31 bt0: as he said, ApiDemos. Some parts of that app use the javax.microedition.khronos.egl package. Feb 27 20:52:52 (the package itself is included with the Android OS; why do you think you need to download it?) Feb 27 20:52:52 but I don't have these libraries in plugin's folder on Eclipse Feb 27 20:53:03 then I can't compile Feb 27 20:53:14 if I use these libraries Feb 27 20:53:43 oh hm, i don't know anything about the Eclipsed-based SDK development environment. Feb 27 20:54:00 then what should I use? Feb 27 20:54:30 (i'm an internal Android developer; of course we don't use just the SDK environment) Feb 27 20:54:40 i'd have to ask one of our SDK people Feb 27 20:56:55 hi all, i had a quick question. ill ask here Feb 27 20:57:06 boo Feb 27 20:57:47 is it possible to write an app that transfers files from phone to phone, using bluetooth? more specifically, audio files Feb 27 20:57:56 bluetooth api isn't there yet. Feb 27 20:57:57 sorry Feb 27 20:58:02 come back one month Feb 27 20:58:05 NEXT! Feb 27 20:58:08 :) Feb 27 21:00:08 * Joushou checks his number Feb 27 21:00:19 That would be me: Can i haz widgets? ;) Feb 27 21:00:29 lol Feb 27 21:00:47 ha this server is great, i find a chatroom for everything i need lol Feb 27 21:03:42 do Binder calls to remote services block? Feb 27 21:05:11 probably Feb 27 21:05:17 in fact, I'm pretty sure they do Feb 27 21:05:26 unless you're calling something that's going to end up being done asynchronously Feb 27 21:05:31 (see: mediaplayer) Feb 27 21:05:38 vol: I thought so too...actually they must have to because they can return vals... Feb 27 21:21:37 Can we have an image at the top of the listView? Feb 27 21:21:49 sure Feb 27 21:22:03 and how is that possible? i have tried various ways Feb 27 21:22:43 do you want it to stay at the top of the list, or do you want it to scroll with the list? Feb 27 21:23:14 stay at the top Feb 27 21:23:39 just put an ImageView above the ListView Feb 27 21:23:55 and if i want it to scroll with the list? Feb 27 21:24:13 then you have to create a custom adapter Feb 27 21:24:18 oh ok. Feb 27 21:24:19 thanks Feb 27 21:24:24 kudos Feb 27 21:43:34 zhobbs: not necessarily Feb 27 21:43:41 it can just be added as a header Feb 27 21:43:55 ahh Feb 27 21:48:29 romainguy: wait, the header will scroll or be stationary? Feb 27 21:48:53 it will scroll Feb 27 21:49:06 ahh Feb 27 21:49:23 neat...all this time I've been creating specialty adapters Feb 27 21:50:19 could have just been using cursor adapter with header... Feb 27 21:57:09 romainguy: Is there anything new about widgets on the home screen ? Feb 27 21:57:22 seriously I will stop answering that question Feb 27 21:57:51 It's ok. Feb 27 22:00:06 And seriously I havent heard sth from you regarding that topic. (or read something in the groups or in the blog or at the developers site) So well I asked :). But it seems that you have answered that question a lot of times. :) Feb 27 22:00:32 I answered that question a dozen times on the groups Feb 27 22:01:46 didn't we use to have a faq type bot in here... Feb 27 22:01:51 if not we need one Feb 27 22:02:28 Well ok I'm sorry for asking. Feb 27 22:05:26 And even if some others have repeated that request a lot of times some wiki would be nice where we (not only the Google developers) could collect information like that at one point. The groups are nice for discussions but for collecting things and collecting ideas they dont work that well. Feb 27 22:07:06 you're welcome to start a wiki :) Feb 27 22:08:31 Well we have wikis but the most developers look at developers.android.com and dont find anything like that Feb 27 22:17:57 aaaargh Feb 27 22:17:59 that's a doc bug if there ever was any :) Feb 27 22:18:10 how do I force an exact spelling search on google search? quotes isn't cutting it Feb 27 22:18:19 Here we have a thread about it: http://groups.google.com/group/android-discuss/browse_thread/thread/2d5b347c33c7f0f6/57443aa487f7a391?lnk=gst&q=wiki#57443aa487f7a391 - Why are there no clear statements about this topic? Really I don't get that. :) It is no problem to start a wiki but a wiki on the main android developer site (developers.android.com) would help not spreading the ideas all over a bunch of wikis. Feb 27 22:18:23 "Hey we found a bunch of stuff with your search term but with a space between two parts of it, lets return that instead" Feb 27 22:30:58 ok radio silence about that topic I haven't expected anthing else. :) Feb 27 22:32:56 Wikipedia wasn't built in a day. Feb 27 22:32:57 :) Feb 27 22:33:10 Feb 27 22:33:53 ;) Feb 27 22:34:02 So I'm out now have a nice day guys. Feb 27 22:50:30 can we have a togglebutton and a textview adjacent to each other Feb 27 22:50:31 ? Feb 27 23:11:37 viju85: sure, you might peek at CheckedTextView though Feb 27 23:27:30 hi i'm trying android on a kaiser. But i cant log in to my google accoont, i get time out Feb 27 23:43:06 how to center align an image? Feb 27 23:43:14 i tried various ways of doing it. none worked Feb 27 23:48:26 give it android:gravity="center_horizontal" in the layout? Feb 27 23:49:56 you can also use e.g. "center_horizontal|center_vertical" Feb 27 23:50:17 kaiser? Feb 27 23:51:28 heh, i was wondering that too. einand? what's a kaiser? Feb 27 23:51:56 ah, HTC Kaiser Feb 27 23:51:59 probably Feb 27 23:52:18 http://en.wikipedia.org/wiki/HTC_TyTN_II ? Feb 27 23:52:40 ctate: HTC Tytn II Feb 27 23:52:46 et voila Feb 28 00:05:12 i tried gravity still did not work. Any other suggestions? Feb 28 00:06:41 viju85: tried gravity on what? the ImageView or it's container? Feb 28 00:07:11 gravity on the ImageView doesn't do much if it's just wrapping_content Feb 28 00:07:39 i have ImageView on fill_parent Feb 28 00:07:44 still does not work Feb 28 00:08:04 then you should be able to set android:gravity and android:scaleType on the ImageView Feb 28 00:08:41 and make sure that your ImageView is actually as large as you think it should be (see hierarchyviewer) Feb 28 00:08:52 i tried setting the scale type but there is no option for top center. Feb 28 00:09:02 i want the image to be in the top of the screen and also center alignbed Feb 28 00:09:06 *aligned Feb 28 00:09:13 what is it's parent? Feb 28 00:10:07 parent is Linear Layout with wrap_content Feb 28 00:10:27 if you post the layout I'll take a look Feb 28 00:10:37 (pastebin, etc) Feb 28 00:10:44 hold on Feb 28 00:10:49 pastebin? how do i dot hat? Feb 28 00:10:50 *that Feb 28 00:10:59 pastebin.com Feb 28 00:11:11 hold on Feb 28 00:11:35 huh, do you really want fill_parent? Feb 28 00:12:23 ctate: probably not...probably easier to stick the wrap_content imageview where it should be instead Feb 28 00:12:29 http://pastebin.com/pastebin.php?dl=m5f1c645c Feb 28 00:12:35 thats where my layout code is. Feb 28 00:12:41 you cant ake a look at it Feb 28 00:12:45 *can take Feb 28 00:13:36 change your ImageView to wrap_content on height/width and set android:layout_gravity="center_horizontal" Feb 28 00:13:49 all on the ImageView Feb 28 00:14:06 and kill the scaleType Feb 28 00:15:15 great. is it possible for me to strtch this image to the entire screen at the top of the screen? Feb 28 00:15:22 *stretch Feb 28 00:15:48 yeah, wrap_content on the height, fill_parent on the width and select the correct scaleType Feb 28 00:16:43 what should the scaleType be? Feb 28 00:17:12 don't know, center_inside maybe Feb 28 00:17:16 let me try Feb 28 00:17:28 nope that didnt work Feb 28 00:17:46 hmm, yeah, don't know Feb 28 00:17:56 fit_center? Feb 28 00:18:20 i want this image to be scaled to the entire width of the screen but only on the top of the screen. ? Feb 28 00:19:11 oh, i thought you wanted it centered Feb 28 00:19:16 not workign Feb 28 00:19:28 i want it to be stretched. i am very sorry for my mistake. Feb 28 00:19:52 the hierarchy viewer may be helpful to you, btw Feb 28 00:20:02 ( http://developer.android.com/guide/developing/tools/hierarchy-viewer.html ) Feb 28 00:21:09 ideally you would create the images to be the correct size to fit different screens Feb 28 00:21:22 and use different res/drawable-* Feb 28 00:21:42 well, maybe it'd be ok to scale down Feb 28 00:22:03 it's "fitCenter" not fit_center, right? Feb 28 00:22:23 yes it does not fit_center. Feb 28 00:22:24 yep Feb 28 00:22:37 it's FIT_CENTER in code... Feb 28 00:23:32 "fitCenter" scales but preserves aspect ratio Feb 28 00:23:37 "center" centers but does not scale Feb 28 00:24:44 yeah Feb 28 00:24:45 "centerInside" scales down to fit entirely within the bounds, and preserves aspect ratio Feb 28 00:25:03 various ApiDemos examples use some of these Feb 28 00:25:07 centerInside would be my best guess Feb 28 00:25:50 ImageView1 in particular within ApiDemos Feb 28 00:31:21 how to use the back button the android device to function as the back button within different screens of the application? Feb 28 00:32:32 it already does unless you've overridden it Feb 28 00:32:58 specifically, if your activity does not override it, the OS interprets it as finishing the current activity and going back to the one before it in the history stack Feb 28 00:35:52 Over ride what? Feb 28 00:36:12 i haven't overwritten the back button. but still it behaves like that. it takes me to the home screen Feb 28 00:36:54 viju85: that is the default behavior when you are on the first screen of your app Feb 28 00:37:42 yeah but it also happens when i am in my 2mnd or 3rd screen of my app Feb 28 00:37:58 are you calling finish() on your activities as you open the later ones? Feb 28 00:38:25 oh yeah.... i guess that's the reason. Feb 28 00:38:32 you are awesome my friend. Feb 28 00:38:34 kudos Feb 28 00:38:44 :) Feb 28 00:47:10 is there a way to have an image at the top of the list View without inserting an ImageView in the XML Feb 28 00:47:11 ? Feb 28 00:50:58 no Feb 28 00:53:45 because i am not using XML for my ListView. I am directly using Listadapter to move form one screent o another using Intents Feb 28 00:54:01 then add the imageview from your code Feb 28 00:54:09 like I said, you can just add it as a list header Feb 28 01:28:14 how do i add the image as a list header from my code? Feb 28 01:34:01 i developed an app for a client and handed over the source. they did some updates and apparently lost the original keystore or something. Are they fukked? Feb 28 01:35:30 mpardo: essentially, yeah. Feb 28 01:35:41 ok how about this Feb 28 01:35:59 i have the original keystore... can they sign it on their machine? Feb 28 01:36:59 I'm not super-familiar with the way those work, but I assume that it should be possible to extract the relevant keys and put them in a shape that's good for them. I have no idea how, though. Keep your keystore preciously. Feb 28 01:37:20 (and I guess you need to head over to android-developers if you don't get help here) **** ENDING LOGGING AT Sat Feb 28 02:59:58 2009