[android-developers] Re: Changing Alert Dialog styles

2009-03-16 Thread dan raaka
try using setTheme for the context in the AlertDialog.Builder(Context context) -Dan On Mon, Mar 16, 2009 at 5:58 AM, Rafael Bocaletto Maiolla rafaelmaio...@gmail.com wrote: Hi, Is there a way to change the Alert Dialog style, like background and font color using something like ?xml

[android-developers] Re: Button with both Text and Image

2009-03-16 Thread dan raaka
Button inherits from Textview .. and Textview has the ability to set drawables/images on left or bottom or right or left .. Check this

[android-developers] Re: Paid applications and market feedback/rating

2009-03-16 Thread Keith Wiley
Thanks, I suspected as much. :( --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send

[android-developers] Re: Scheduling a repeating task and being notified

2009-03-16 Thread BoD
They are in the same application. The Service is started by the AlarmManager, so I'm not sure about what you mean by the same 'Dalvik process'. I'm also not sure of what you mean by sent(d?)Intent? Thanks a lot! BoD On Mar 16, 2:49 pm, Kenny yxw...@gmail.com wrote: Besides sendBroadcast( ),

[android-developers] Re: Paid applications and market feedback/rating

2009-03-16 Thread Sundog
Join the unhappy club. From what I can see, and my own experiences, there is NO reason at all to offer free ANYTHING on the market, as it all just swirls down the drain and is useless for driving future sales, no matter how many times it was downloaded. Live and learn... On Mar 16, 10:53 am,

[android-developers] ContentProvider not backed by SQLLite?

2009-03-16 Thread Ray Bellis
Has anyone got an example of how to write a ContentProvider that gets its data from somewhere other than a SQLLite database? Mine is half working, in so much as I can retrieve the requested data and apparently populate a MatrixCursor, but I can't figure out what I'm supposed to do with the

[android-developers] Re: class com.android.camera.UploadService does not exist?

2009-03-16 Thread Dave Sparks
We are planning to move to a model where most of the apps are built against the SDK. Unfortunately, we're not quite there yet. I expect to release a better camera sample application in the next SDK. This one will be buildable against the SDK. On Mar 16, 8:59 am, Hans hkess...@gmail.com wrote:

[android-developers] SimpleDateFormat PathClassLoader NullPointerException quandary

2009-03-16 Thread Torgny
In a couple of places in my application I format the date to send with a GET request to an external API. Most of the time this works excellently, but 1 out of a 1000 times this fails and crashes my application/service. Here is the output the debugger gives me: Uncaught handler: thread Thread-9

[android-developers] List View setTextFilterEnabled(true) and returned id

2009-03-16 Thread Ryan
Hi, Is there a way to use a List View with setTextFilterEnabled(true) and get the position into the unfiltered list returned to onItemClick? E.G. If I have a list:- - Zero - One - Two - Three And a user types T o filter the list to:- - Two - Three When a user clicks on Two in the

[android-developers] Re: How to implement android's Gallery fling action in my own widget

2009-03-16 Thread Meryl Silverburgh
Thank you. How does android determine how many items in the gallery should be moved (either left or right) in 1 fling? On Thu, Mar 12, 2009 at 8:17 PM, gymshoe gyms...@bresnan.net wrote: The fling animation is automatic with the Gallery class.  If you need your own (new) widget class, just

[android-developers] Re: Thumbnails

2009-03-16 Thread todd
Having the camera app create thumbs when a photo is taken is great, but another common scenario has been left unanswered. What happens when the user inserts (or copies) images to the SD card? I've found that unless the Pictures app is run, no thumbs have been generated for the images on the SD

[android-developers] Re: Is it normal to play an audio during phone call?

2009-03-16 Thread Jason Van Anden
MediaPlayer keeps playing after I answer a call using my app. I was assuming that I was responsible for pausing it and was planning to figure out how this might be done (like, which intent I am listening for). Is the MP supposed to just pause automatically? i++ On Mon, Mar 16, 2009 at 4:08 PM,

[android-developers] Re: Is it normal to play an audio during phone call?

2009-03-16 Thread Marco Nelissen
A MediaPlayer object will not pause when a call comes in. You'll have to do that yourself. The original poster was talking about switching the screen to MediaPlayer, so I assumed he was talking about the 'Music' application, which *does* pause. On Mon, Mar 16, 2009 at 1:35 PM, Jason Van Anden

[android-developers] Re: Is it normal to play an audio during phone call?

2009-03-16 Thread Jason Van Anden
Thanks for clearing that up. i++ On Mon, Mar 16, 2009 at 4:42 PM, Marco Nelissen marc...@android.com wrote: A MediaPlayer object will not pause when a call comes in. You'll have to do that yourself. The original poster was talking about switching the screen to MediaPlayer, so I assumed he

[android-developers] Re: Keystores

2009-03-16 Thread Ralf
On Mon, Mar 16, 2009 at 12:34 AM, Kenny yxw...@gmail.com wrote: Not helping you, but I wonder what keystore is for? where to get some docs? thank you very much, http://developer.android.com/guide/publishing/app-signing.html On Mar 14, 5:18 am, linkmaster_6 linkmast...@gmail.com wrote:

[android-developers] Re: update questions

2009-03-16 Thread Ivan Soto
No idea? I'm really lost in this. On Mon, Mar 16, 2009 at 8:58 AM, Ivan Soto ivanso...@gmail.com wrote: HI, I've been waiting patiently to get paid applications on my phone with I had no luck. The thing is I have a white G1 in Canada (Fido) and I did the update manually loading the

[android-developers] Re: Redistributing the eclipse plugins

2009-03-16 Thread Ralf
With the usual I'm not a lawyer disclaimer applied, I'd think yes as long as you comply with the EPL and thus redistribute that part using the EPL. However you'd have to carefully choose your wording to make it clear this is not the original plugin distributed by Google. There's a FAQ here that

[android-developers] Re: ContentProvider not backed by SQLLite?

2009-03-16 Thread Streets Of Boston
I wrote one that goes out to the internet and fetches data. In my code, I use the 'String[] projections' to create my own Cursor implementation. I make a subclass of 'Cursor', an instance of which will be returned by my ContentProvider's query method. The constructor of this Cursor-subclass

[android-developers] Re: Changing Alert Dialog styles

2009-03-16 Thread Gesh
In a theme of your own override the android:alertDialogStyle style to point to the style you want. http://developer.android.com/reference/android/R.styleable.html#AlertDialog The link above contains the attributes that are stylable about an Alert Dialog. To change the fonts you will have to

[android-developers] Re: Would you like to let me know how to get SDK version in my application code?

2009-03-16 Thread Ralf
On Sun, Mar 15, 2009 at 7:51 AM, Lucky-dog honglian...@gmail.com wrote: it failed that i try to get android.R.attr.minSdkVersion. Would you like to let me know how to get SDK version in my application code? PackageManager pm = getPackageManager(); PackageInfo pi =

[android-developers] Re: Sensing The Touch Event

2009-03-16 Thread Ralf
When your second activity is running, your first one is most likely stopped. What are you trying to achieve? There might be other ways to achieve it, e.g. using a service or collecting data and passing it back to the first activity. R/ On Sun, Mar 15, 2009 at 4:31 AM, mateen abmat...@gmail.com

[android-developers] Re: Is there a flag I can enable to permanently display the virtual keyboard in my app?

2009-03-16 Thread me tun
In the InputMethodManager class, there seems to be a method showSoftInput(view) @param view: The currently focused view, which would like to receive soft keyboard input. I have tried calling this as follows: InputMethodManager imm = (InputMethodManager)

[android-developers] Re: Button with both Text and Image

2009-03-16 Thread Ralf
On Mon, Mar 16, 2009 at 9:50 AM, dan raaka danra...@gmail.com wrote: Button inherits from Textview .. and Textview has the ability to set drawables/images on left or bottom or right or left .. Check this setCompoundDrawablesWithIntrinsicBounds(Drawable left, Drawable top, Drawable right,

[android-developers] Re: Paid applications and market feedback/rating

2009-03-16 Thread Inderjeet Singh
Somewhat surprisingly, I notice that users leave more vicious comments on free apps compared to the paid ones. Of course, there are a lot more ratings and comments on free apps to begin with. Inder On Mon, Mar 16, 2009 at 10:12 AM, Sundog sunns...@gmail.com wrote: Join the unhappy club. From

[android-developers] Any way to use getChildDrawingOrder? where do we set FLAG_USE_CHILD_DRAWING_ORDER?

2009-03-16 Thread drasticp
I'm writing a custom widget in which I need to control the child drawing order. My control extends AbsoluteLayout. I can see that getChildDrawingOrder is overrideable. The following note is in the javadocs for this method: NOTE: In order for this method to be called, the

[android-developers] Manifest android:label

2009-03-16 Thread Keith Wiley
I am splitting my app into a free lite version and a nonfree pro version. I am curious whether it is required that I use a different string for android:label in the manifest for the two apps. Does the Market take this into account or otherwise care at all about this? The reason it would be

[android-developers] Re: SimpleDateFormat PathClassLoader NullPointerException quandary

2009-03-16 Thread carl.whalley
Can you show the code? It sounds like the GET isn't relevant. Is your code in its own thread? If so is it synchronised? You should be able to write a test which iterates 1000 times just performing the format, and catch it. -- Android Academy http://www.androidacademy.com On Mar 16, 6:31 pm,

[android-developers] Re: Any way to use getChildDrawingOrder? where do we set FLAG_USE_CHILD_DRAWING_ORDER?

2009-03-16 Thread Romain Guy
This is unfortunately not a public API. On Mon, Mar 16, 2009 at 3:39 PM, drasticp drast...@gmail.com wrote: I'm writing a custom widget in which I need to control the child drawing order. My control extends AbsoluteLayout. I can see that getChildDrawingOrder is overrideable. The following

[android-developers] Re: SimpleDateFormat PathClassLoader NullPointerException quandary

2009-03-16 Thread Torgny
Yeah, the code is in its own thread. It's in a class that is instantiated in the thread. I tried added synchronized to the method that generates the date, and so far I haven't seen it crash at all. Will try with a loop as well. I am still a bit new to the whole Java thing. On Mar 16, 6:42 pm,

[android-developers] Re: Paid applications and market feedback/rating

2009-03-16 Thread Stoyan Damov
I think that's because most of the paying customers are grown ups (and hence the more reserved language) and the free users are kids. I've seen a few I wish I had a credit card to buy this comments from the latter. I don't think there are any grown ups who don't own one. Cheers On Tue, Mar 17,

[android-developers] Re: Paid applications and market feedback/rating

2009-03-16 Thread sm1
I'm not 100% sure but if my understanding of how Android Market works is correct, what you may want to do is keep the same package (aka. signature) for your paid app as the package that you had before, with the comments and ratings, and make a *new* package for the free app., and the new free app

[android-developers] Re: SimpleDateFormat PathClassLoader NullPointerException quandary

2009-03-16 Thread sm1
SimpleDateFormat is known to not be thread-safe, and it's instances must be either unique to each thread or otherwise be synchronized. happened to me a while back. serge On Mar 16, 7:15 pm, Torgny torgny.bj...@gmail.com wrote: Yeah, the code is in its own thread. It's in a class that is

[android-developers] Re: Paid applications and market feedback/rating

2009-03-16 Thread Keith Wiley
I don't *think* that's possible. Assuming the signature/package is tied to the market app, there is no way to convert a previously free app to a paid app. A brand new app must be installed instead, if I've understood thing so far. I think a new app must have a new package and an old app can't

[android-developers] Re: Thumbnails

2009-03-16 Thread Iliyan Malchev
On Mon, Mar 16, 2009 at 1:20 PM, todd tdonahue...@gmail.com wrote: Having the camera app create thumbs when a photo is taken is great, but another common scenario has been left unanswered. What happens when the user inserts (or copies) images to the SD card? I believe that the camera app or

[android-developers] Re: VerifyError attempting to use commons-digester

2009-03-16 Thread fadden
On Mar 15, 10:15 pm, micah craig mi...@micahcraig.net wrote: Here is my complete error output: 03-16 04:47:44.411: WARN/dalvikvm(628): VFY: unable to resolve virtual method 140: Lorg/apache/commons/digester/Digester;.setValidating (Z)V 03-16 04:47:44.421: WARN/dalvikvm(628): VFY:  rejecting

[android-developers] Re: Thumbnails

2009-03-16 Thread Dave Sparks
We have a number of issues with metadata that need to be sorted out. Unfortunately, it will have to wait until the next major release. Unless I'm mistaken, micro-thumbnails are generated by the music player for album art. This is just an optimization to improve list flinging operations in the

[android-developers] Trying to understanding Gallery fling source code

2009-03-16 Thread Meryl Silverburgh
I am trying to understand how Gallery implements it fling behaviour. I appreciate if someone can help me understand 1. why it needs special handing for ACTION_UP and ACTION_CANCEL? 2. why it does not check the retValue before calling UP/CANCEL's handling? 3. what does onUp() trying to do? Why it

[android-developers] Re: How to display local file in WebView

2009-03-16 Thread hongyang wang
Hey friend, How are you doing recently? I'd like to introduce you a very good foreign trading online company and the website is www.elecbtob.com/ It can offer you so many kinds of electronic products which you may be in need,such as laptops,,GPS, TV, Cell Phones, Xbox 360, Sony PSP,Sony

[android-developers] Re: hi

2009-03-16 Thread Nithin Varamballi
No...Sir... I have 8 Image button... The thumbnails are stored in Integer array... and hight and width of thumbnails are different... that is Each thumbnails have different size How can i resize like (80x60) of all thumbnails that are stored in array before displaying in Image Button...

[android-developers] Is it possible to set focus to a component programmatically?

2009-03-16 Thread Zia
Wondering if we have few buttons on a LinearLayout, is it possible to set focus to a button programmatically? Please advice. Thanks, --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To

[android-developers] Re: Is it possible to set focus to a component programmatically?

2009-03-16 Thread me tun
Yes, you should be able to use button.requestFocus(); On Mar 17, 1:19 pm, Zia zia.cha...@gmail.com wrote: Wondering if we have few buttons on a LinearLayout, is it possible to set focus to a button programmatically? Please advice. Thanks,

[android-developers] read cookie value which is set by website browsed in emulator browser

2009-03-16 Thread Komal
Hi, In my app i want to use the cookie value which is set when user open my website in android phone browser. Is it possible to read value of cookie which is set by browser of my android phone?? Thnx --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] Re: Manifest android:label

2009-03-16 Thread Dianne Hackborn
On Mon, Mar 16, 2009 at 3:42 PM, Keith Wiley kbwi...@gmail.com wrote: The reason it would be nice to leave it the same for both is that my understanding is, this is the string used for other apps to communicate to my app through intents. It's not; the label is just shown to the user. You

[android-developers] Re: Is there a flag I can enable to permanently display the virtual keyboard in my app?

2009-03-16 Thread Dianne Hackborn
If you are going to use new features before these is an SDK, you will want to read through the source code java docs and the code itself to figure out what you want to do. In this case WindowManager.LayoutParams has new options for controlling the input method, View has new methods, and the

[android-developers] Vibrator device simulation in the emulator

2009-03-16 Thread Prem Thilagar
Hi I am trying to actually simulate a vibrator device inside the emulator .A timed_output driver for the vibrator was created and i am able to access the node at /sys/class/timed_output/vibrator/enable that is specified as THE_DEVICE in the vibrator.c file at hardware/ libhardware/vibrator/.The

[android-developers] Re: Emulator doesn't link sometimes

2009-03-16 Thread Ivan Soto
Are you on a Mac? Just want to know if this is only a Mac issue. On Fri, Feb 20, 2009 at 11:49 AM, todd tdonahue...@gmail.com wrote: This happens to me occasionally and is a bit annoying. I too just close the emulator instance and start it again. That works most of the time, although I've

[android-developers] Re: Merging spannables?

2009-03-16 Thread Ivan Soto
Thanks On Thu, Feb 5, 2009 at 7:00 PM, Dianne Hackborn hack...@android.com wrote: TextUtils.concat(). On Thu, Feb 5, 2009 at 4:20 PM, Ivan Soto ivanso...@gmail.com wrote: Is it possible to merge spannables? like Spannable spa = null; spa = Html.fromHtml(text text b asds/b); spa = spa

[android-developers] Re: Is there a flag I can enable to permanently display the virtual keyboard in my app?

2009-03-16 Thread me tun
Thanks Dianne, I've had a quick look through the code and have seen how the onTouchEvent in the TextView Class has been modified to display the soft keyboard if it is both focused and touched (how profound). I've managed to get it to display by clicking a button, but really I'd like it called in

[android-developers] Obtaining IP address when on 3G (MOBILE) connection

2009-03-16 Thread Joseph Teo
Hi Folks, I have a small question. When i'm connected to WIFI, I could use the following code to obtain the IP address of the Android phone WifiManager wifiManager = (WifiManager) getSystemService(WIFI_SERVICE); WifiInfo wifiInfo = wifiManager.getConnectionInfo(); int ipAddress =

[android-developers] android.os.ServiceManager

2009-03-16 Thread Seer
Is there a way to access this class in the SDK or is there another class that does the same thing? I need to rename one of the services listed in the servicemanager so that it will call my service instead and then pass calls i don't handle onto the original service that i have renamed.

[android-developers] getting time, 5 minutes into future, past 55 minutes in the hour near midnight with TimePicker dialog

2009-03-16 Thread Rob Franz
Hi, Noticed some weird behavior here - if I have: final Calendar c = Calendar.getInstance(); int mHour = c.get(Calendar.HOUR_OF_DAY); int mMinute = c.get(Calendar.MINUTE) + 5; and I establish a timePickerDialog like: new TimePickerDialog(this, mTimeSetListener, mHour, mMinute,

[android-developers] Re: Manifest android:label

2009-03-16 Thread Keith Wiley
I appreciate the reply, but forgive the relentless imprecision in my understanding. Bottom line: can two different applications with two different package names have the same android:label in the manifest, say for a lite and a pro version of the same app? Where is android:label actually used?

[android-developers] hasMonetaryCost = true for network location provider

2009-03-16 Thread Keith Wiley
I'm just curious how to interpret the fact that hasMonetaryCost is true for a network location provider. I read about it a little but I'm not sure I entirely understand what's going on. Does that mean that every time I get my location using the cell network instead of the gps there is a charge

[android-developers] Re: Manifest android:label

2009-03-16 Thread Dianne Hackborn
I can't help you with Market. In the platform, android:label is only used as the text to show to the user for the representation of your .apk, and the system does not care at all about what it contains. Plus you would localize the label for different languages, so its actual value really can't

[android-developers] Re: android.os.ServiceManager

2009-03-16 Thread Dianne Hackborn
You can't do this. Especially from the SDK, on so many levels: 1. ServiceManager is not public. The features it contains are not available in the SDK. 2. None of the interfaces of the services published in the service manager are published in the SDK, so you wouldn't be able to redefine them

[android-developers] Re: android.os.ServiceManager

2009-03-16 Thread Seer
So if that is not the way you are meant to services such as alternate SMS gateways, what is? Using intents will not work as most of the sms apps have the reply for a thread built in. This is the only way i have been able to discover to capture all outgoing sms so i can either redirect them over

[android-developers] Mediastore get image from thumbnails

2009-03-16 Thread vir
Hello people, I am having a problem regarding mediastore.media.Images. I am trying to populate a gallery with thumbnails from y sdcard, this works fine, now i want to get the real image in an imageview onclick event. Here is my code , private View loadGallery() { // thumbnails

[android-developers] Is there a command to find out the pid of all process running on the emulator?

2009-03-16 Thread ying lcs
Hi, Is there a command to find out the pid of all process running on the emulator? If yes, can you please tell me how can I do that? Thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] Re: Is there a command to find out the pid of all process running on the emulator?

2009-03-16 Thread Dianne Hackborn
You mean something besides adb shell ps? On Mon, Mar 16, 2009 at 10:47 PM, ying lcs ying...@gmail.com wrote: Hi, Is there a command to find out the pid of all process running on the emulator? If yes, can you please tell me how can I do that? Thank you. -- Dianne Hackborn Android

<    1   2