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
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
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
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
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
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
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
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
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
>
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
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
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
, 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
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_
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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;
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
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
--~--~-~--~~~---
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
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
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
50 matches
Mail list logo