[android-developers] Re: Change Theme by preferences

2009-02-28 Thread android_soft
store the preference (theme is an int) and then when you start your activity, use "setTheme(int)". will this not work ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this grou

[android-developers] Re: Theme.Dialog for PreferenceScreen child does not work

2009-01-26 Thread android_soft
ead/thread/112189a9893a6462/f66bf1a5848c2c45?hl=en&lnk=gst&q=background+music#f66bf1a5848c2c45 Then again, I don't know all your requirements, so I will stop at that. Chander On Jan 26, 5:41 pm, Stoyan Damov wrote: > On Mon, Jan 26, 2009 at 11:39 AM, android_soft wrote: > &g

[android-developers] Re: Updated app not showing up in Market's "by date" sorting?

2009-01-26 Thread android_soft
may be you can post a small portion of your manifest where the version info goes, so others know what you got.(especially people who are not the market yet but who can help if they notice anything amiss) --~--~-~--~~~---~--~~ You received this message because you

[android-developers] Re: How to get Available Device RAM

2009-01-26 Thread android_soft
I found this, thought it might be useful to others: ActivityManager.MemoryInfo.availMem. Also, I see there is a threshold value. So I see a use case where one can use these values to clean up the garbage/cache/something else so as to accommodate other Apps instead of allowing the system to kick us

[android-developers] Re: Theme.Dialog for PreferenceScreen child does not work

2009-01-26 Thread android_soft
Hi Damov, Your activity will only be PAUSED if you use Dialog Theme for a PreferenceActivity. For other Themes, it is PAUSED and STOPPED, but not destroyed or killed. So if you want to restore the state you can do it in onResume... so no need to use Theme.Dialog in your case unless it looks good

[android-developers] Re: Theme.Dialog for PreferenceScreen child does not work

2009-01-25 Thread android_soft
Hi Dianne, Thanks for your response. I don't like Dialogs either. :) still a bug...:-) ; even if rendering is not proper, I expect at least the child PreferenceScreen to have the same Theme. Regards, Chander --~--~-~--~~~---~--~~ You received this message because

[android-developers] Re: License text to use for display in Android App under ASL 2.0

2009-01-25 Thread android_soft
Fred's idea looks good, though lot of code bytes to it. How many users read a license any way ? Each application adding license asset files can eat up space :-) On Jan 25, 6:10 pm, "Fred Grott(shareme)" wrote: > A better solution for the end user is to set up some display > indicating wher e

[android-developers] Re: Theme.Dialog for PreferenceScreen child does not work

2009-01-25 Thread android_soft
It gets even more weird if you have the landscape mode (i guess thats what you are talking above) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to andro

[android-developers] Re: Sporadic SharedPreferences reset

2009-01-25 Thread android_soft
I have noticed this behavior couple of times. But I have not been able to reproduce, also I do not have "<" or any other special character, except some Double values encoded as Strings. Chander On Jan 25, 12:39 am, Christoph Studer wrote: > Okay, so my current suspicion is that I got bitten >

[android-developers] Theme.Dialog for PreferenceScreen child does not work

2009-01-25 Thread android_soft
Hi All, I have a PreferenceActivity defined in the manifest with android:theme="@android:style/Theme.Dialog. The theme works well with the first settings screen, but not with the child PreferenceScreen elements (if I have several screens in my preferences). The child screens have the default Theme

[android-developers] Re: Screen Orientation change performance Question

2009-01-23 Thread android_soft
I add the following attribute to an activity tag in the manifest to handle orientation changes. You may want to check other events you want to handle. android:configChanges="orientation" --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[android-developers] Re: Preferences not saved *sometimes*

2009-01-23 Thread android_soft
Well ,not sure if this will help, since there's no code snippetbut here goes 1. You can hold on to the SharedPreferences.Editor object... 2. edit as much as you want 3. In OnPause(), go ahead and commit the editor ... Though I prefer saving the edits as they change... On Jan 23, 5:13 pm

[android-developers] Re: How to get Available Device RAM

2009-01-22 Thread android_soft
, etc... > and it's really a goal to keep RAM usage as high as reasonable all the > time. > > JBQ > > > > On Wed, Jan 21, 2009 at 11:39 PM, android_soft wrote: > > > Hi Diana, > > Couple of things: > > 1. Display available RAM - > > 2. Allocate

[android-developers] Re: How to get Available Device RAM

2009-01-21 Thread android_soft
RAM ..lets say... Thanks for your response, Chander On Jan 20, 10:53 pm, "Dianne Hackborn" wrote: > Between Linux and Dalkvik's VM "available device RAM" is pretty > meaningless.  What are you wanting to accomplish. > > On Tue, Jan 20, 2009 at 7:44 AM, android_

[android-developers] Re: Accessing preferences

2009-01-20 Thread android_soft
so if your package name is "com.mycompany.myapp" the file name is "com.mycompany.myapp_preferences" --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to andro

[android-developers] Re: Accessing preferences

2009-01-20 Thread android_soft
SharedPreferences preferences = this.getSharedPreferences (PREFERENCE_FILE_NAME, MODE_PRIVATE); where PREFERENCE_FILE_NAME = package_name_preferences without the xml extension.(default) You can find the file by running " adb shell" 1. cd /data/data/your_application_package/shared_prefs Hope t

[android-developers] Re: Beginner

2009-01-20 Thread android_soft
Download BuzzOff from marketplace: http://buzzoff.wikidot.com/ On Jan 20, 6:29 am, Sam Bender wrote: > Hi, this is my first post and I might as well let you know that I have > just a little bit of experience in java. Also I'm 15. I just got a G1 > and I want to create an application to turn of t

[android-developers] How to get Available Device RAM

2009-01-20 Thread android_soft
Hi All, Anyone knows how to get the available Device RAM through an API ? I am not looking for - Runtime.getInstance().freeMemory() Thanks in advance, Chander --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android D

[android-developers] Re: Internet connection

2009-01-19 Thread android_soft
and I hope you are doing the Download/Upload in a Service/Thread -Chander --~--~-~--~~~---~--~~ 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@googlegroup

[android-developers] Re: Internet connection

2009-01-19 Thread android_soft
Hi, Here's the code snippet to check if network is available: Check the javadoc for ConnectivityManagerClass that answers queries about the state of network connectivity ConnectivityManager mgr = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE); NetworkInfo netI

[android-developers] Re: orange in R.color ?

2009-01-17 Thread android_soft
getBaseContext().getResources().getDrawable (android.R.drawable.list_selector_background) On Jan 17, 2:49 am, gsmd wrote: > Thanks! Could you plz suggest how to dynamically set TextView > background to orange? Googling for setCompoundDrawables doesn't lead > to any solution. > TIA. > > On Jan 16

[android-developers] Re: ArrayAdapter / spinner help

2009-01-13 Thread android_soft
int MyNameColumn = c.getColumnIndexOrThrow("drawingName"); c.moveToFirst(); if (c != null) { .} 1. You are checking for null after using it above twice which is redundant.. 2. Catch the exception 3. If catching and you are getting a NullPointer then use Lod.e(TAG, exception.getMes

[android-developers] Re: Binding with service lost after calling unbindService()

2009-01-13 Thread android_soft
No problem connecting with the local service using unbindService and bindService. I have several Activities using this model without an issue. Are you testing on the emulator or the device ? If you are trying it on emulator, and the boot event happens before uninstall of the package(your app) occu

[android-developers] Re: fitness or workout program

2008-12-20 Thread android_soft
Nike mp3 Run and there is an ipod version as well which connect to a sensor on your shoe via bluetooth and measure the distance of your workout. Bluetooth API is still in works I thinkanyone ? --~--~-~--~~~---~--~~ You received this message because you are subsc

[android-developers] Proximity Alerts keeps the GPS always on

2008-12-18 Thread android_soft
Hi All, Let me rephrase my question. Whats the best way to save on battery life when using proximity alerts API through the LocationManager. I am resetting the alerts again on booting of the device through a combination of broadcast receiver (listens for the boot event) and a Service (sets the pr

[android-developers] Proximity Alerts keeps the GPS always on

2008-12-18 Thread android_soft
Hi All, Let me rephrase my question. Whats the best way to save on battery life when using proximity alerts API through the LocationManager. I am resetting the alerts again on booting of the device through a combination of broadcast receiver (listens for the boot event) and a Service (sets the pr

[android-developers] Proximity Alerts keeps the GPS always on

2008-12-18 Thread android_soft
Hi All, Let me rephrase my question. Whats the best way to save on battery life when using proximity alerts API through the LocationManager. I am resetting the alerts again on booting of the device through a combination of broadcast receiver (listens for the boot event) and a Service (sets the pr

[android-developers] Proximity Alerts keeps the GPS always on

2008-12-18 Thread android_soft
Hi All, Let me rephrase my question. Whats the best way to save on battery life when using proximity alerts API through the LocationManager. I am resetting the alerts again on booting of the device through a combination of broadcast receiver (listens for the boot event) and a Service (sets the pr

[android-developers] Proximity Alerts keeps the GPS always on

2008-12-18 Thread android_soft
Hi All, Let me rephrase my question. Whats the best way to save on battery life when using proximity alerts API through the LocationManager. I am resetting the alerts again on booting of the device through a combination of broadcast receiver (listens for the boot event) and a Service (sets the pr

[android-developers] Proximity Alerts keeps the GPS always on

2008-12-18 Thread android_soft
Hi All, Let me rephrase my question. Whats the best way to save on battery life when using proximity alerts API through the LocationManager. I am resetting the alerts again on booting of the device through a combination of broadcast receiver (listens for the boot event) and a Service (sets the pr

[android-developers] Proximity Alerts keeps the GPS always on

2008-12-18 Thread android_soft
Hi All, Let me rephrase my question. Whats the best way to save on battery life when using proximity alerts API through the LocationManager. I am resetting the alerts again on booting of the device through a combination of broadcast receiver (listens for the boot event) and a Service (sets the pr

[android-developers] Proximity Alerts keeps the GPS always on

2008-12-18 Thread android_soft
Hi All, Let me rephrase my question. Whats the best way to save on battery life when using proximity alerts API through the LocationManager. I am resetting the alerts again on booting of the device through a combination of broadcast receiver (listens for the boot event) and a Service (sets the pr

[android-developers] Proximity Alerts keeps the GPS always on

2008-12-18 Thread android_soft
Hi All, Let me rephrase my question. Whats the best way to save on battery life when using proximity alerts API through the LocationManager. I am resetting the alerts again on booting of the device through a combination of broadcast receiver (listens for the boot event) and a Service (sets the pr

[android-developers] Proximity Alerts keeps the GPS always on

2008-12-18 Thread android_soft
Hi All, Let me rephrase my question. Whats the best way to save on battery life when using proximity alerts API through the LocationManager. I am resetting the alerts again on booting of the device through a combination of broadcast receiver (listens for the boot event) and a Service (sets the pr

[android-developers] Proximity Alerts keeps the GPS always on

2008-12-18 Thread android_soft
Hi All, Let me rephrase my question. Whats the best way to save on battery life when using proximity alerts API through the LocationManager. I am resetting the alerts again on booting of the device through a combination of broadcast receiver (listens for the boot event) and a Service (sets the pr

[android-developers] Proximity Alerts keeps the GPS always on

2008-12-18 Thread android_soft
Hi All, Let me rephrase my question. Whats the best way to save on battery life when using proximity alerts API through the LocationManager. I am resetting the alerts again on booting of the device through a combination of broadcast receiver (listens for the boot event) and a Service (sets the pr

[android-developers] Proximity Alerts keeps the GPS always on

2008-12-18 Thread android_soft
Hi All, Let me rephrase my question. Whats the best way to save on battery life when using proximity alerts API through the LocationManager. I am resetting the alerts again on booting of the device through a combination of broadcast receiver (listens for the boot event) and a Service (sets the pr

[android-developers] Proximity Alerts keeps the GPS always on

2008-12-18 Thread android_soft
Hi All, Let me rephrase my question. Whats the best way to save on battery life when using proximity alerts API through the LocationManager. I am resetting the alerts again on booting of the device through a combination of broadcast receiver (listens for the boot event) and a Service (sets the pr

[android-developers] Proximity Alerts keeps the GPS always on

2008-12-18 Thread android_soft
Hi All, Let me rephrase my question. Whats the best way to save on battery life when using proximity alerts API through the LocationManager. I am resetting the alerts again on booting of the device through a combination of broadcast receiver (listens for the boot event) and a Service (sets the pr

[android-developers] Proximity Alerts keeps the GPS always on

2008-12-18 Thread android_soft
Hi All, Let me rephrase my question. Whats the best way to save on battery life when using proximity alerts API through the LocationManager. I am resetting the alerts again on booting of the device through a combination of broadcast receiver (listens for the boot event) and a Service (sets the pr

[android-developers] Re: Proximity Alerts keeps the GPS always on

2008-12-18 Thread android_soft
Hi All, Let me rephrase my question. Whats the best way to save on battery life when using proximity alerts API through the LocationManager. I am resetting the alerts again on booting of the device through a combination of broadcast receiver (listens for the boot event) and a Service (sets the pro

[android-developers] Re: Is there a way to tell the emulator to kill an activity?

2008-12-15 Thread android_soft
Hi Cheryl, You can select the Android/"Devices" view in Eclipse and select your process for debugging. You can select terminate the debug in the Debug View and it will kill only the activity you are currently viewing. There may be a better of doing this though On Dec 10, 11:35 pm, Cheryl Sed

[android-developers] Re: AndroidManifest.xml file missing!

2008-12-15 Thread android_soft
Hi Bill, I think you are trying to work on the actual Android source code. Then using the standard java wizard is the way to go as per the instructions on the site. I didn't have any problem following the instructions and setting up the Android source on ubuntu 8/intel. If your goal is to play wi

[android-developers] Re: Debugging an app

2008-12-14 Thread android_soft
Hi, Install the eclipse plugin for android - http://code.google.com/android/intro/installing.html Go to Eclipse/Window/Show Views/Other/Android and play with the various views there. You can do everything that you can do with a normal java app, attach the debugger etc. Go to Android/Device view

[android-developers] Re: how to get menu handler/instance

2008-12-14 Thread android_soft
You create your menu items inside the following method... onCreateOptionsMenu(Menu menu) you have to get a handle on Menu , by declaring a class variable and assigning menu to that variable. .Activity{ private Menu myMenuHandle; onCreateOptionsMenu(Menu menu) { myMenuHandle = menu;

[android-developers] Proximity Alerts keeps the GPS always on

2008-12-11 Thread android_soft
Hi, I noticed in the android source code there is a setMinTime() to be implemented by LocationProviderImpl's(GPS etc). Currently the default is zero(or 1000L) which means it will check for location updates frequently, except when the screen is off. Why is this interface not opened up so that appl

[android-developers] Re: Exception is raised when remove the last item in ExpandedListView

2008-12-10 Thread android_soft
You didn't paste all of your code. But looking at the exception, it means that you are accessing a list item(at index 0, which means its of size 1) when infact the list is empty(size 0) . Its probably a bug in your code in the way you are removing the items --~--~-~--~~~---

[android-developers] Re: searchs in Android

2008-12-02 Thread android_soft
You can use the article at this link to understand GeoCode class: http://www.anddev.org/simple_googlemaps_with_threads-t2943.html As for search, the above article has its own search mechanism implemented, but you can look up the API of SearchManager to understand how to directly use the SearchUI a

[android-developers] Re: How to Keep Expandable List View be expanded by default?

2008-12-01 Thread android_soft
There is no widget currently available to do more than 2 level of nesting. You have to write a custom widgest for that. Not sure why anyone would want more than 2 levels on a small device. you can use getExpandableListAdapter().getGroupCount() to get the group count and then loop through them to

[android-developers] Re: map view problem

2008-11-22 Thread android_soft
under the manifest tag --~--~-~--~~~---~--~~ 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 email