Android :: Clear Defaults Programmatically

Apr 16, 2010

Does anyone know how to clear defaults of my own app by code.I know that a user can always go to Manage Applications, find my app and click the button there to clear previously assigned default actions. But for most users this isn't intuitive at all. I would like to offer my customers a solution to clear defaults within my own app if they don't like to use my app as a replacement for a specific action anymore.

Android :: Clear defaults programmatically


Android :: Clear Defaults By Code - After Setting Use By Default For This Action

Mar 10, 2009

I'm playing with the alternative Home app that comes with the SDK.

I can set this as default for 'Home' action.

I can unset this by -->Setting->Manage Application->My Alternative Home-> "clear defaults"

Question:

How to do this "clear defaults" by code?

I've browsed the forums but cannot find an answer.

View 2 Replies View Related

Samsung Epic 4G :: TwLauncher Won't Let Clear Defaults

Sep 2, 2010

My "TwLauncher" will not let me clear the defaults so I can change it back to the samsung display, Is there anything I can do to restore this setting?

View 2 Replies View Related

Motorola Droid :: Clear Defaults For Messaging App?

Mar 23, 2010

I have a stumper, or not. Also, not really sure where to post this, so I'm throwing it in here. I recently started using google voice (today), and I want to use the app smspopup so I can view my sms messages without opening up the google voice app. Even though smspopup is supposed to work with google voice, it is not. I checked out the smspopup FAQ's, and it said to clear the defaults for the android messaging apps in the manage applications menu. I searched for it but it wasn't there, so I can't clear any defaults.

View 2 Replies View Related

Samsung Moment :: How To Clear Defaults For Apps

Jun 12, 2010

How i clear the defaults for apps that don't show up in settings>applications>manage applications? i have the regular and 3d galleries installled, and when i opened the stock gallery, it asked me to choose between gallery gallery and gallery camera when veiwing. i selected gallery gallery and set to default but now when i open a folder, it always opens the 3d gallery folder. i'd like to change this.

View 2 Replies View Related

General :: Samsung S4 Not Allow To Clear Defaults Under Application Manager

Sep 10, 2013

My Samsung S4 will not allow me to clear defaults (under application manager/ALL) on the phone dialer so i can choose between either the phone dialer or Skype or Viper etc..I have read and tried quite literally a dozen different answers all of which do NOT work... how to do this on a S4.... I was wondering if it will work if i Rooted my phone.

View 7 Replies View Related

Jelly Bean :: How To Clear Defaults On Resizing Image When Sending In Email

Jan 6, 2014

I have a samsung galaxy note 3 and im having a slight problem. I went to send some pictures, I chose to resize them to small before sending and I accidentally clicked on "always" complete this action, was curious on how I change it so it asks me every time what size I want to send my pictures,

View 10 Replies View Related

Android :: Clear Maps History Programmatically?

Nov 19, 2010

I want to programmatically clear the history of the android maps (and navigation) application.

I know there is a way to clear the browser history via Browser.clearSearches(getContentResolver());

And the corresponding permission: com.android.browser.permission.WRITE_HISTORY_BOOKMARKS
and this works fine (2.2.).

I couldn't find any way to clear the Maps-History though. Clearing the google/history online doesn't help either.

There are some apps in the market that promote to do that, so there must be an API for it, but i really couldn't find it yet.

I also messed around a bit with CLEAR_APP_CACHE and CLEAR_APP_USER_DATA but seems like they are signed/root-only permissions and delte too much anyways.

View 2 Replies View Related

Android :: Programmatically Clear Browser Cache - History

Sep 22, 2010

During my activity I'm sending an intent to the browser in order to display a webpage :

Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse("http://ww.mywebpage.com"); startActivity(i);

I need to make sure that before sending the intent the browser cache and history are cleared so that the page get loaded from server directly and not from phone.

So far I've found the 2 following but I'm not sure they are used correctly :

Browser.clearHistory(getContentResolver());
Browser.clearSearches(getContentResolver());

Also with that cache is not cleared.

View 2 Replies View Related

Android :: Clear Cache Memory When Application Exits Programmatically?

Aug 31, 2010

I have set of images fetched from internet and set it on gridview,here i have option to click here to view more,below the grid view and it fetches images and set it on grid with prevoius set of images,when i exit the application and run it again,the previous set of images remain in cache and grid shows images from cache,here i need to clear my application cache memory,when i exited my application.how can i get it.

View 1 Replies View Related

Android : Clear Contents Of A RelativeLayout Programmatically - Droid Java

Aug 19, 2010

I am dynamically adding ImageViews to a RelativeLayout depending on user input. I have also created a button that when pressed, should clear all of the content of that RelativeLayout (remove all children). I was hoping for a .clear() method, but no such luck.

can someone point me in the right direction here?

RelativeLayout rel = (RelativeLayout) findViewById(R.id.iv_section);
rel.SomethingToRemoveAllChildren();

View 1 Replies View Related

Android :: What Does HTC Sense Clear Data Actually Clear?

Jun 24, 2010

What exactly does HTC Sense Clear Data actually clear? That may be a solution to reverting back to 5 homescreen pages instead of 7 without having to do a factory reset. Just curious as to what I am going to mess up? Will i just have to personalize the homescreen again, put widgets up, reconnect to fb, twitter, myfaves, etc. It's not going remove any 3rd party apps, just make me create new widgets, etc..?

View 3 Replies View Related

Android :: Gmail Defaults Everything

Aug 17, 2010

I have the X (very nice BTW) and I have a few questions.

Everytime a save a new contact or add a phone number, or anything from the phone is defaults to add it to the Gmail profile. I like gmail, but I'm pretty sure I want my work mates to be on the work account. Is there a way to change that default or does Google really want that infomation?

Can I disconnect gmail? I know... ouch... but it keeps getting in my way. I use gmail, but I need the phone to be a work phone. I don't want Gmail stealing all my contacts. I mean seriously, it scanned my AD at work (awesome) and I saved the person... it went to gmail. When you pull someone off the AD, why does it dup them in Gmail, obviouslyt the phone was smart enough to look there, but not save there?

I need a nice line. My average conact now has 3 linked profiles. I want most in the "phone" and work people in the "work" and gmail...sorry. You don't need to know any of these people.

Any ideas or thoughts.... I hate Google bashing, but I need the phone to act like a smart phone and not a gPhone. (Yes I know who makes it, but even Apple doesn't steal your contacts...ouch)

View 1 Replies View Related

Android :: Using Custom Defaults For PreferenceScreen

Dec 8, 2009

I am currently trying to implement a PreferenceActivity for my application that uses custom default values for its preferences instead of the defaults declared in the corresponding preference XML as the defaults are supposed to change dynamically based on certain conditions.However, when I modify the defaults via the Android API after loading the preferences through addPreferencesFromResource(R.xml.preferences); it already seems to be too late and the individual defaults set via Preference.setDefaultValue do not seem to be taken into consideration when rendering the UI.As I would like to avoid re-inventing the wheel I hope there is some possibility to achieve this using the standard Android preference API. Is there any way to trigger a re-evaluation of the values (and default values) associated with a PreferenceScreen hierarchy? I did not yet try whether creating the PreferenceScreen via APIs instead of loading from XML would help, so that could be an option.

View 3 Replies View Related

Android :: SharedPreference - Defaults Not Set At Startup

May 1, 2010

I have Listpreferences in my app. They don't appear to be setting to their defaults right after installation - they appear to be null. I'm trying to figure out why my default preferences are not being set right after installation.

In my main code I have:

CODE:......

Right after the above code executes, each variable contains "defValue" instead of the actual values I have assigned in my ListPreference below.

My preference xml file is called, "settings.xml". Here's what one of the ListPreferences there looks like:

CODE:.............

Here's what some of my strings.xml file looks like:

CODE:.................

When I go to menu, and then settings, I can see my defaults checked (radiobuttoned). Then when I go back from the settings menu to my main screen - all is well - for life! ...then each var above is assigned the proper default value.

This only happens when I first install my app on the phone. After I go to the settings screen once and then right out of it, the app is fine and accepts any setting changes.

By the way, as you can see, "List1" is the android:key within a file called settings.xml in my res/xml folder.

View 1 Replies View Related

Android :: Locale - Not Switching Back To Defaults

Dec 1, 2008

new to Android, G1 and the forums Wondered if any of you can help?
I have 4 things set up in locale
1) turn on silent when at work
2) turn on Wi-fi when at home
3) turn on silent 6:30PM to 7:30PM (when getting my son to bed)
4) turn on silent 11PM to 8AM (so no emails are waking me!) number 2 works fine, the problem however is with the silent ones, ALL of them never go back to the default (ringer at full volume) when the time is up or when I'm away from the location. any ideas? I don't have GPS on, but the distance from home to work is large so it can't think I'm still anywhere near there plus that won't affect the time related ones.

View 2 Replies View Related

Android :: Locale Defaults - When Using Shortcut Plug In?

Dec 9, 2009

I have a simple "sleep" situation set up.

Conditions:
Time: 11:00 PM-6:30 AM

Settings:
Notification: Status Bar
Shortcut: Bedside (Alarm Clock/notification suppressant)

Configure Defaults:
Display: Level 2; 30 sec
Volume: Level 3; vibrate off

I had an issue with picking up GPS at home with using cell tower triangulation and leaving GPS off. So, I removed that portion.

I have no issues with Locale going into the situation, but it never comes out. I have to manually close Locale and sometimes forget when I first wake up, so I will miss text messages and emails.

View 2 Replies View Related

Android :: What App That Defaults Ended Calls Behavior

Jan 12, 2010

What's the app that changes the default end call behavior? I believe it gave multiple options beyond defaulting to the call log, as I frequently misdial after ending a call.

View 1 Replies View Related

Android :: No Visual Feedback For Preference Defaults - Bug Or Feature?

Feb 3, 2010

What are the display semantics for displaying preference defaults? I have been expecting that the first time the app is run, that when the preference activity and its screens appear that any default values say in a list preference are visually indicated as selected. This is not the case in my app, and I think I'm doing everything the same way as the DefaultValues.java example. Is the idea that only those preferences that have actually been set and persisted by the user display selected values?

View 2 Replies View Related

HTC Desire :: Loudspeaker Defaults To ON For Calls

Aug 23, 2010

I'm running a non branded desire at 2.2 but its developed an annoying problem.Whenever i make a call or answer a call it defaults to loud speaker ON and i have to press the button to disable it.I can't see any menu setting anywhere to cause or change this so any idea how i fix this?Also,maybe unrelated but whenever i first boot the phone it comes up with an icon saying "car mode on" which i have to disable by clicking on it (but this doesnt stop the speaker phone behaviour)Any idea how i can get speaker phone to default off?

View 9 Replies View Related

HTC EVO 4G :: Factory Defaults - No Privacy Option?

Aug 19, 2010

I need to reset an EVO to factory defaults. After updating to Fro Yo there is no privacy option under settings. Where did it go? How can I reset to defaults?

View 3 Replies View Related

HTC Droid Eris :: Message Defaults ?

Dec 21, 2009

I just switched over to handcent as my messaging app. I changed the defaults and switched off the notifications function on original app. Here's my question... just switching off the notifications from old app, messages still come thru to old app...does that take up some form of memory? If so, how do I turn off un-wanted app so messages do not go to it anymore? Any hints, info or thoughts on this matter is greatly appreciated.

View 3 Replies View Related

HTC Droid Eris :: How To Change Defaults

Jun 3, 2010

How can I change the default app for viewing pictures or videos from a MMS? I got the popup before and set the default. But now want to change it, and I cant figure out how.

View 1 Replies View Related

HTC Desire :: Setting Widget Defaults

Aug 29, 2010

How to set the default actions for the contacts widget, other than by calling each person. I am abit of a Rom hound so I am regularly wiping my phone. There was definitely a way of setting widget default action in 2.1 but i just cannot find it in 2.2.

View 1 Replies View Related

HTC EVO 4G :: Defaults To Speaker Mode - Defect Or Not?

Nov 3, 2010

Every time I make a call (and on most INcoming calls as well), my EVO automatically goes to speaker mode, forcing me to finagle with it just to turn off the speaker so I can use the handset. Is there a way to stop this--I've looked around but haven't found the answer yet--or is this a defect I will have to correct with a replacement phone? I've only had it 3 weeks, so I'm within the 30-day return window.

View 6 Replies View Related

HTC Droid Eris :: Favorite Defaults Not Working

Jan 12, 2010

For some reason my favorite defaults are not working. For instance I set up my friend's mobile as the favorite, yet it dials her home number.Does anyone know how to reset this? I have several contacts that are experiencing the same problem.

View 3 Replies View Related

Samsung Moment :: Resetting Factory Defaults

Jul 9, 2010

I had to do a complete reset of my phone to factory defaults as it turned out to be very sluggish latelly. Any recommendations as to what to do not to do, download not to download, or things to do first before reloading all my applications without getting back to a sluggish phone? Of course the best thing that could happen is to get 3.0 or whatever... Nah, that ain't gonna happen... The next best thing is to upgrade my phone...but... that aint gonna happen for me either for at least another 6 months...

View 15 Replies View Related

HTC Droid Eris :: Voice Search Defaults?

Aug 18, 2010

I'm not sure when this started happening, but it hasn't always been like this. when I press the search button and use the voice option, or if I use my voice search widget and say anything without specifying a location (e.g. "Pizza") , the results are displayed for New York City. I live in Pittsburgh, PA. If I click the "Enter Location" drop down in the google search results and force it to "Use Current Location", nothing happens. It used to know where I was and bring local results if I didn't say a location. Does anyone know what I'm doing wrong?

View 4 Replies View Related

Samsung Galaxy S :: Restoring Defaults - Launcher Etc

Jul 16, 2010

I've been running Launcher Pro on my SGS for a few days and want to revert back to Touchwiz for a comparison.

The problem is I can't find the menu where you can access the default selections. It's not in the same place it was on my N1.

View 3 Replies View Related

Samsung Captivate : Phone Not Remembering Defaults / Way To Fix?

Aug 3, 2010

So if I'm on m.pornhub.com and want to watch a vid, it asks me how I want to complete the action...android system or browser. I select android system. Then it asks complete action using :flikie movie player or video player. I check use by default for this action and select video player. Then the video will play. But everytime I go to a new video, it asks me all over again and doesn't remember my default preferences. wtf?

View 1 Replies View Related







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