Android :: Notify When Settings.System.SCREEN_OFF_TIMEOUT Has Been Changed?

Jan 13, 2010

I'm trying to make my first widget that toggles the screen time out settings. Is there a way for the widget to be notified when Settings.System.SCREEN_OFF_TIMEOUT has been changed? I would like to know this so I can update the widget graphic accordingly.

Android :: Notify when Settings.System.SCREEN_OFF_TIMEOUT has been changed?


Android :: Notify Data Set Changed?

Feb 27, 2010

I have a list which is filled with a custom Array Adapter. I want to upload a progress bar every second, so i try to use notifyDataSetChanged in order to repaint the list but it doesn't seem to work.

View 1 Replies View Related

Android : Using A ListView - An Adapter - How To Use Notify Data Set Changed()

Jun 3, 2010

Just watched Google IO's "World Of ListView" presentation [1]. Awesome stuff. I think every Android dev should watch it.

One gotcha for me was to use BaseAdapter.notifyDataSetChanged[2]. I checked code that I have written more than a year ago and found that I did try to use that, but commented it out with '// doesn't work' and I use requery() instead. That is of course much slower.

I now tried to find out why I wrote that it didn't work and hoped that I am meanwhile so much wiser that it would be easier to understand the proper use of the API. So much for ambition: The effect I see is that the list is not updated after I call notifyDataSetChanged(), but works with requery() and I am not so much wiser.

What could be the issue here? I use a ResourceCursorAdapter and only implemented the bindView() Method. This method is called when I call notifyDataSetChanged() on the RCAdapter. However the method is called with a cursor that contains the stale data.

Now there was a second gotcha from the presentation that I couldn't really place. It was said that the data should be committed on the GUI thread too (before calling notifyDataSetChanged()). I couldn't place it then, but I now suspect that this may be the issue here. So the rule would be to do the commit() on the Cursor on the UI thread? I do the updates to the database using a Service. This Service runs in the background, sometimes the app is in the foreground at the same time, but most often not. So I don't see how I should commit something in a UI thread? Is this the issue here? There are two different Cursors and I could only use notifyDataSetChanged when it would be the same cursor, otherwise requery() is correct?

Is that it? Any ideas? Is somebody going to write a book "The Android SDK - The missing manual"?

View 4 Replies View Related

Android :: CursorAdapter Notify Data Set Changed Doesn't Work?

Jul 1, 2010

I'm trying to clean up some code and now I'm determined to get this seemless ListView updating working...

I want my ListView to be updated when I call notifyDataSetChanged() but nothing happens... I'm also passing the autoRequery flag to true when creating my CursorAdapter.

Cursor c = FavoritesHandler.getCategoryFavorites(getSQLiteInstance(), category); m_favoriteAdapter.changeCursor(c); startManagingCursor(c);

View 6 Replies View Related

Android :: How To Know If Somebody Has Changed Locale In Settings

Oct 27, 2010

I am writing a service in which I want to have an observer kind of thing for the phone Locale, which lets me know if any one has changed the Locale through Settings->Language & keyboard. Is there a way to do this?

View 2 Replies View Related

Android :: WifiManager.getScanResults() Reports Out-fo-date Values After AP Settings Changed

Dec 3, 2009

After changing the settings of the wireless router(SSID, frequency, securities) Android won't report the correct values until you reboot your android device!

http://code.google.com/p/android/issues/detail?id=5178&can=4&colspec=...

Does anyone know any workarounds of this?

View 5 Replies View Related

Android :: Why Is Accessibility Settings Empty / Somethings To Be Changed Alike Text Size?

Jul 11, 2010

Why is the accessibility menu in settings on my phone empty and disabled
shouldn't there be somethings to be changed alike text size or something?

Samsung Galaxy Spica i5700
Android 2.1

View 1 Replies View Related

Motorola Droid X :: New System Update Changed Lock Screen

Oct 11, 2010

I don't know much more then that my friend has a stock x and he just pulled. He check the rest of his phone know.

View 7 Replies View Related

HTC Eris :: Vanilla Dialer - Menu Settings Has Been Changed?

Aug 15, 2010

I've been playing around with a few different ROMs to find the one that's the most stable for me, but something weird has happened. Most of the ROMs I like the best have the vanilla dialer which I love but the look of the dialer has changed and I'm not sure why.

At one point the dialer had the END, SPKR, MUTE etc., on the call screen so if you pulled the phone away from your ear you could see those buttons. Now when I'm on a call I have a little tab that I have to pull up to access the number pad and I have to hit MENU to bring up the END, SPKR and MUTE settings. I really want to go back to the way it was before. This has happened on several ROMs.

View 3 Replies View Related

Samsung Captivate : Settings And Changed My Smsc Number - Can't Send SMS

Jul 31, 2010

I was playing around with my settings and changed my smsc number. Now I cant send texts! Is there a way to find out what my original number was, a way to reset it, or a way for me to send text again?

View 1 Replies View Related

Sony Ericsson Xperia X10 :: Randomly The Language Settings Seem To Have Changed To Korean

Oct 10, 2010

I've just got myself and X10. Which is great. But, randomly the language settings seem to have changed to Korean! I've checked under the settings and they are still set as locale UK and language English but the keyboard is Korean.

View 2 Replies View Related

Android :: Random Numbers Changed / When Orientaion Changed

Aug 14, 2010

I am generating the random numbers and do some functionality with that .but when i change the orientation new random numbers are coming.But I want portrait random numbers.For this give me some suggestions.

View 1 Replies View Related

Android :: Where System Settings Are Stored?

Feb 2, 2010

How System Settings (eg, volume, brightness) stored in Android and where?

View 3 Replies View Related

Android : Can I Update Provider / Settings.System Value?

Mar 28, 2010

I can read settings like this, for example: final String mytest = System.getString(this.getContentResolver(), System.AIRPLANE_MODE_ON); but can't seem to write to settings using putString, no matter what I've tried. Maybe it is the scope of this.getContentResolver()??? I'm a newbie, so who knows, maybe it can't be done, or it's just syntax? Currently the code is in the onCreate of an Activity class.

View 1 Replies View Related

Android : Edit Settings.apk - System Apps?

Nov 16, 2010

More specifically I want to edit the Settings.apk and add more options. I'm unsure what the best approach to this is. I know how to convert the classes.dex to a .jar, but this doesn't seem like the way to go about accomplishing anything. At any rate, I'm really looking for some insight into this and advanced editing such as this. Someone knows how to, care to share?

View 1 Replies View Related

Change Android System Settings By Code?

Jun 7, 2012

changing android system settings by code. System Settings like:

Ringtones
Vibration
Volume
Brightness
etc

View 6 Replies View Related

Android :: Selecting Language From Within App Rather Than By Locale Of System Settings

Feb 13, 2010

I would like to give the users of my app the possibility of selecting a language from within the application. All languages are supplied the standard way via the values resource directory. However, I don't want Android to select which resource directory to use but let the user decide instead. Any ideas how to accomplish that? The rationale for this: - some languages are not supported by the Android framework and can not be selected as a locale via the system settings - if you buy a phone in Spain, it will typically not have a system setting for Russian language, if you purchase in Russia, you will have that setting. So a Russian person in Spain would prefer using the Russian language included with the app, but can't access it

View 10 Replies View Related

Android :: Change System Settings From Droid Widget?

Apr 12, 2010

I have a widget that changes some system settings, but it will not take right away. It seems like I need to refresh the system settings for it to take. How do you change some system settings from a widget that take instantly?

when my widget is pressed it goes to an activity with a blank background to change the system settings. one of the settings that are changed is the display brightness. this is the code i use to change the display brightness. once i change the settings i call the finish function to exit the activity so i am not stuck there after the settings are changed. One thing i did notice is that if i didnt exit the activity the settings did change, but i was stuck in the activity. its when i added the class.this.finish(); to exit the activity that the settings don't change. code...

View 2 Replies View Related

Android : Change Device Specific System Settings?

Dec 5, 2009

I'm stuck on trying to change system settings that are not standard android ones, specifically trying to enable/disable the auto backlight setting on the HTC Hero in code,

I can't see anyway to find out the string I need to use when doing Settings.System.get.

View 3 Replies View Related

General :: Change Android System Settings By Code

Jun 8, 2012

some tutorial for changing android system settings by code.System Settings like:

-Ringtones
-Vibration
-Volume
-Brightness

names of the classes in which I have to look into, it will also be useful.

View 2 Replies View Related

General :: What App Backs Up System Settings

Apr 30, 2013

I need an app that backs up my personal system settings.

View 7 Replies View Related

General :: Changing System Settings In ROM

Sep 11, 2012

I'm modifying a stock ROM for work to have everything setup and ready to go after flashing the tablets (currently we flash and run a setup app) and have run into an issue I can't seem to find an answer to.

I need to be able to set certain system settings, such as "USB Debugging", "Unknown Sources", "Display Timeout", and a few other things.

I presume its one of the files inside the system.img.ext4 but can't find one that has anything like this.

View 2 Replies View Related

General :: How Does System Generate Settings For Governors

Jul 31, 2013

When I change between governors, I noticed that a governor folder will be created under sys/device/cpu/cpufreq. Within this folder, it contains all the settings and values for this governor. how these settings and values are generated?

I want to modify some settings of the smartassv2. However, if I tried to modify it during the normal, mksh will eat my CPU. I really can't figure out why and this only happens to smartassv2. So I'm looking for an alternative way to modify these settings.

View 2 Replies View Related

General :: Read Default System Settings

May 3, 2012

Context: Today im investigating how works android classes:

android.provider.Settings.Secure and android.provider.Settings.System

both works over settings.db into

data/data/com.google.android.providers.settings/databases/settings.db.

There is something that surprised me:

When I had never changed one of settings, for example LOCK_PATTERN_ENABLED, the method:

getString(ContentResolver resolver, String name) returned null.

By default lock pattern is disabled when i activated it, method returned 1 and then when disabled returned 0.

My question: is true that when you havent changed the value of a setting, the system goes to look for its default value out of settings.db? and is true that this value at settings.db until you change it is null?

I've read some post about it, but no one working against api. For who may be interested: [URL] .......

I decompiled Settings.apk, SettingsProvider.apk and Phone.apk. There you can find some bools.xml where are stablished default values for some settings I've not found yet every setting I need.

View 2 Replies View Related

General :: How To Transfer System Settings And Apps

Feb 9, 2014

Me and a friend are trying to port a system app from the same phone but two different roms. Here's the situation. The phone is zopo zp998 and it comes with regular Android 4.2.2. Zopo is making the exact same phone for the Chinese market with on OS based on Android 4.2.2 that's called YunOS and it doesn't have Google account support so it's not usable outside China.

The YunOS has a black screen gesture feature that you can activate in the settings under display and then while the screen is Black you can make symbols on it with your finger and open specific apps. For instance if you draw the letter C the dialer will open.

My friend was able to find the system app for the gestures in YunOS and all its library files and put it in his rom. When the phone boots we can see that the gestures service is running fine but we don't have the option in the settings to activate the app. we can use on how to transfer a system setting and app like this? Is there another app we can use to trigger the on and off of the app?

View 8 Replies View Related

General :: How To Change Phone Info In System Settings

May 4, 2012

I want to know how can i change the phone info, in the system settings.

I want to change them for my own rom, so i want to include, for example, a different build date, build number, kernel version, etc..

View 1 Replies View Related

General :: How To Control Intensity Of Whole System Vibration Settings

Jan 15, 2012

i'm searching an app where i can control the intensity of the whole system vibration settings. keyboard, alarm, calls...anything

i'm running cm7 with the siyah 2.6.7 if it's of interest...

View 2 Replies View Related

General :: Backup Apps And System Settings Directly To PC With TB?

Feb 1, 2013

I was looking for a way to backup apps and system settings directly to my PC, instead of the phone's memory. Is it possible with TB? I have the paid TB version if it matters.

View 4 Replies View Related

General :: Lenovo P780 - USB Debugging Missing In System Settings

Jan 22, 2014

I have installed the [ROM] Lenovo P780 Pre-rooted Official ROMs for Flash Tool with TWRP and now I do not find the "USB Debugging" option in the App option of System Settings. Instead appear a list of the applications installed where I can select any app change options.

This ROM comes configured to Root as default.

View 6 Replies View Related

Motorola Droid :: Installing Settings As System Application Enable GPS Toggle?

Mar 5, 2010

I'm a big fan of Toggle Settings but my one wish would be that it could toggle GPS. From what I understand, the security of Android doesn't allow any app to turn GPS on/off. My question is, since installing Mobile Defense as a system application allows it to turn my GPS on, would installing Toggle Settings as a system app enable the same feature? Does anybody know of a way around this or another app that is similar and can toggle GPS settings?

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved