[android-developers] Re: ResourceBundle and *.properties files in classes.dex

2008-09-16 Thread CAT
2 interesting questions for that 1. Should ResourceBundles even be used when Android seems to provide an alternative approach? (strings.xml) 2. Does this work for another locale than en_US? (as the mechanism from 1. doesn't yet) Cheers, Werner On Sep 15, 7:35 pm, Megha Joshi [EMAIL PROTECTED]

[android-developers] ActivityGroup unable to restart Activity

2008-09-16 Thread Zach Hobbs
I'm using an ActivityGroup to display different Activities in a FrameLayout. I want to be able to destroy activities that currently aren't being shown, but I cannot restart those Activities for some reason. Using the LocalActivityManager I start an activity using startActivity(...) and then

[android-developers] eclipse project opening problem

2008-09-16 Thread Jeff
Sorry for the question but I still don't get it and no one replied on the beginners site. I can create a project, build all, run the project, but I can not open a project. Most of the time both the open/close project menu are disabled. Sometimes I can close the project, but not always. I don't

[android-developers] Xmpp demo!

2008-09-16 Thread android_mng
Can someone put the demo XMPPSender or GtalkXMPP on the web, or send me, because i can't download from nowhere.. Thanks a lot --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] check the manifest for intent-filters

2008-09-16 Thread Janosch
i just had to deal with the same problem, my code was pretty close to the sample code google provided. one thing was missing though, the hind to declare intent-filters for the Interfaces inside the service tag in the AndroidManifest.xml. once i added service android:name=MyService

[android-developers] Re: Is it possible to tell OS that Activity behind a translucent activity no longer needs to be drawn?

2008-09-16 Thread Megha Joshi
2008/9/15 Gary [EMAIL PROTECTED] I am using translucent activities in my app (windowIsTranslucent=true). However, the android OS always assumes that every activity behind the translucent activity is visible. As the programmer, I know that some activities are not actually visible and can

[android-developers] Re: ResourceBundle and *.properties files in classes.dex

2008-09-16 Thread Xavier Ducrohet
The ResourceBundle support is merely there so that 3rd party libraries relying on it aren't broken. For Android applications, you should be using the res and assets folders with the android APIs. Xav On Tue, Sep 16, 2008 at 8:38 AM, CAT [EMAIL PROTECTED] wrote: 2 interesting questions for

[android-developers] Re: Preloading map in MapView

2008-09-16 Thread Megha Joshi
2008/9/16 [EMAIL PROTECTED] Hi, I want to preload a part of a map in MapView so that I can do e.g. routing in an area without data connection. The preloaded area should have the size of an average downtown area... I know that there's the preload() function, which preloads the map at the

[android-developers] Re: how to learn content type of a media content uri at run time?

2008-09-16 Thread Nickname
What i meant is how to know if content type of a picked photo uri returned by android photo picker activity is image/jpeg, image/png, or image/gif?? Thanks for any pointer. On Sep 15, 11:35 am, Nickname [EMAIL PROTECTED] wrote: Previously, from filename of a media file we can learn what

[android-developers] *** TCP connect() time out ***

2008-09-16 Thread Nickname
How to control the length of time to time out a TCP connect() attempt? Socket.setSoTimeout() seems not working on connect(). In my test, it takes 3 minutes for connect() to time out. That is not acceptable to system redundancy!!! --~--~-~--~~~---~--~~ You

[android-developers] Re: Xmpp demo!

2008-09-16 Thread mickrobk
Gtalk and XMPP were removed from Android, but here's a link to davanum's blog showing how to use the smack library to add xmpp to your app http://davanum.wordpress.com/2007/12/31/android-just-use-smack-api-for-xmpp/ Here's the except from the releasenotes (

[android-developers] Re: eclipse project opening problem

2008-09-16 Thread Megha Joshi
2008/9/16 Jeff [EMAIL PROTECTED] Sorry for the question but I still don't get it and no one replied on the beginners site. I can create a project, build all, run the project, but I can not open a project. Most of the time both the open/close project menu are disabled. Sometimes I can

[android-developers] Re: How to set Gallery align property?

2008-09-16 Thread Megha Joshi
Are you setting android:layout_gravity = center_horizontal for your Gallery view? 2008/9/16 dailyLife [EMAIL PROTECTED] Hi,All. When l set the Gallery align left,But Result is also in center.please look at the E-mail attachments. I will be obliged by your help. Thanks. Goto

[android-developers] List background style

2008-09-16 Thread David Given
I'm drawing a ListView. My graphic designer has specified a texture for the selected item; that's fine, I just put it in a drawable and set the ListView's listSelector attribute. However, he's *also* specified a texture for unselected items. I can't figure out how to do this. What I've tried: -

[android-developers] Re: List background style

2008-09-16 Thread Romain Guy
There's a way to do this. Simply set your background texture on the list items, but use a selector for the background. For the state android:state_selected=true, simply use @android:color/transparent as the background. This way, when an item is selected, its texture won't be shown, and you will

[android-developers] Re: Separating ListView into Sections using Headers

2008-09-16 Thread Francisco
I have been playing with the example and it seems a little confusing to me, im new to android and im not that good at java, i understand certain parts of the code but not all. I wanted to ask if you know, how to change and image, for example, instead of having only to TextViews to change as in

[android-developers] Re: List background style

2008-09-16 Thread David Given
Romain Guy wrote: There's a way to do this. Simply set your background texture on the list items, but use a selector for the background. For the state android:state_selected=true, simply use @android:color/transparent as the background. This way, when an item is selected, its texture won't be

[android-developers] Re: How to get focus in list footer via key pad?

2008-09-16 Thread friedger
Use mListView.setItemsCanFocus(true); // - true here mListView.addFooterView(footer, null, true); // - true here Friedger On 19 Aug., 09:49, Peli [EMAIL PROTECTED] wrote: I add a fooer to a list using the code below. It contains a button. I can press the button using touch (i.e. mouse

[android-developers] Re: Incoming Call Event

2008-09-16 Thread Megha Joshi
Unfortunately, these features are not supported in the sdk. Though you will be able to intercept outgoing calls in sdk 1.0 using ACTION_NEW_OUTGOING_CALL. 2008/9/16 Pulkit Arora [EMAIL PROTECTED] I am searching of, How to inject an audio file's (which is stored in the SD Card) content into an

[android-developers] Re: List background style

2008-09-16 Thread Andrew Stadler
On Tue, Sep 16, 2008 at 3:52 PM, David Given [EMAIL PROTECTED] wrote: Ah, I didn't know about state_selected (would you like a bug report on documentation for this?). Yes, that works fine. Documentation bugs are *always* helpful. You don't have to ask.

[android-developers] Re: how to learn content type of a media content uri at run time?

2008-09-16 Thread hackbod
Intent.resolveType() should do it for you. Or if you have a raw Uri, you can use ContentResolver.getType(). On Sep 16, 11:49 am, Nickname [EMAIL PROTECTED] wrote: What i meant is how to know if content type of a picked photo uri returned by android photo picker activity is image/jpeg,

[android-developers] Re: How to set Gallery align property?

2008-09-16 Thread dailyLife
My Style is below. Is right? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent ListView android:id=@+id/hall_weatherListView android:layout_width=fill_parent

[android-developers] Intercept incoming call

2008-09-16 Thread sectrean
Hi, I'm trying to figure out how to intercept an incoming call, but I'm not able to find much documentation on how I would do this. I would like to be able to display a custom dialog to accept or reject the call. --~--~-~--~~~---~--~~ You received this message

[android-developers] Re: How to set Gallery align property?

2008-09-16 Thread Megha Joshi
Sorry I read center instead of left earlier...its seems android:gravity and android:layout_gravity don't have much effect to get the effect you are trying to get. However setting android:scrollX = 100dp, achieves the desired effect, ie. moves the first gallery item towards the left end. 2008/9/16

[android-developers] Re: Intercept incoming call

2008-09-16 Thread Megha Joshi
Unfortunately, you cannot intercept incoming calls in the sdk. 2008/9/16 sectrean [EMAIL PROTECTED] Hi, I'm trying to figure out how to intercept an incoming call, but I'm not able to find much documentation on how I would do this. I would like to be able to display a custom dialog to

[android-developers] Video playback in Android emulator

2008-09-16 Thread Anil
Hi, Can someone briefly explain the method to playback a 3GP video in the Android emulator. Where should I push this file using adb? What should be the path given in the VideoViewDemo.java file? Warm Regards, Anil --~--~-~--~~~---~--~~ You received this

[android-developers] Re: Video playback in Android emulator

2008-09-16 Thread Megha Joshi
You should install a sdcard on the emulator and then push the file to /sdcard dir. 2008/9/16 Anil [EMAIL PROTECTED] Hi, Can someone briefly explain the method to playback a 3GP video in the Android emulator. Where should I push this file using adb? What should be the path given in