How to change the default action for different file types. Android default apps Default mode action

On Android, as well as in most other operating systems, it is possible to set default applications - those applications that will automatically launch for certain actions or opening file types. However, customizing the default apps is not entirely obvious, especially for a novice user.

This tutorial details how to set default apps to Android phone or tablet, as well as how to reset and change the defaults already set for certain types of files.

The previous method in no way allows you to specify how certain types of files will be opened. However, there is also a way to set default applications for file types.

To do this, just open any file manager (see), including the built-in latest versions OS file manager, which can be found in "Settings" - "Storage and USB-drives" - "Open" (the item is at the bottom of the list).

After that - open desired file: if no default application is set for it, a list will be offered compatible applications to open it, and pressing the "Always" button (or similar in third-party file managers) will set it as the default for that file type.

If the application for this file type has already been set in the system, then you will first need to reset the default settings for it.

Reset and change default apps

To reset default apps on Android, go to Settings> Apps. After that, select the application that is already set and for which the reset will be performed.

Click on the "Open by default" item, and then - the "Delete defaults" button. Note: on non-stock Android phones (Samsung, LG, Sony, etc.), the menu items may be slightly different, but the essence and logic of operation remain the same.

After performing the reset, you can use the previously described methods in order to set the desired correspondence between actions, file types and applications.

PC users often come across the term "default", which is used when describing the settings software... It would seem that an understandable term that does not require "translation" into Russian, nevertheless, upon closer examination, turns out to be incomprehensible. Indeed, what does “default” mean? And is it possible to use the default operating mode of the software? Let's try to figure it out.

Many modern application programs applied on personal computers, are multifunctional, have many features, not all of which are used in practice by all PC users.

You can endlessly study MS Office applications, and each time new and new possibilities will open up for editing and processing words (Microsoft Word), spreadsheets ( Microsoft Excel), presentations (Microsoft Power Point), etc. The same can be said for any other software.

The above means that modern software is very redundant in its functions. This redundancy is needed in order to provide PC users with a variety of information processing capabilities. For programmers who create this redundant in their own functionality software, this means that it is necessary to provide for many options for data processing in advance at the stage of writing programs. And all these options need to be incorporated into application programs, as well as provide convenient features on their use.

The variability of the software is convenient because the user is presented with many options that are often not used by him. The downside of this coin is that a lot of settings must be made before using the software. Indeed, if the software allows a lot of things, and the user needs to use only part of the provided capabilities, then you need to somehow indicate to the program what, in fact, the user is interested in in this particular case.

In order to simplify software configuration, programmers use the default mode. Let's see the logic of programmers when they create (or, as they say, write) a program. Programmers proceed from the fact that in each specific case of the program operation, the following 2 options are possible:

  • the program in this particular case can perform only one action,
  • and the program can do more than one action.

As a rule, there are no other options. Where there is only one action, the programmer programs it. But where there are several actions, the programmer must write the program in such a way that it asks the user questions about what to do at a given moment, or automatically selects one of possible options.

In the second case, they say that the programmer set the program to work in the default mode, i.e. the programmer himself, without the participation of users, determined by which of the possible options the program should work in this particular case.

Determining when a program can do one single action and when there can be several such options is rather difficult. Let's consider this using the example of moving the mouse cursor using the mouse manipulator. If the user moves the mouse, then, it would seem, the only possible reaction to this the programmer should set the movement of the mouse cursor on the screen of the worker windows desktop... It seems to be the only action.

But you can move the cursor across the screen at different speeds. One user likes the speed at which the mouse cursor moves across the desktop in response to small movements of the mouse across the real table.

It is more convenient for another user if the cursor movement speed is slower, but someone likes to work completely "with a brake". Accordingly, this movement speed can be adjusted (regulated) in the mouse settings (for Windows XP it is regulated: "Start" - "Settings" - "Control Panel" - "Mouse" - "Pointer Options" - "Set the pointer movement speed").

But after the first Windows installations or after the first connection of a new mouse to the USB port of the PC, the cursor of the mesh pointer begins to move at some "average" speed, and the PC user did not specify anything in the settings. This is what is called the "default" settings. That is, programmers have already, as it were, already configured the software to perform certain functions, while there can be a great variety of possible options for performing these functions.

Defaults make things easier for PC users, especially novice users. The defaults allow you to create a friendly interface for the software, making the process of using the programs convenient and comfortable.

Imagine for a moment what would happen if in all cases of multiplicity of decision making the software would ask the user questions? “Do you want to move your mouse cursor to the right? Are you sure about that? With what speed should this move be done? " - this is from the area of ​​anti-friendly interface.

But defaults are fraught with problems for users. If the user works with the software solely on the basis of the defaults prepared by the programmer, then in this way the user deliberately limits himself in the use of many other possibilities inherent in the programs.

For example, when working with the "mouse" manipulator, the user can not only adjust the cursor movement speed, but also adjust the pointer accuracy, its appearance, the ability to apply special effects when moving the pointer, adjust the movement speed by rotating the mouse wheel, change the mouse button assignments, etc. .NS.

Programmers don't always include defaults in their programs. Sometimes they fail. For example, try in the program Microsoft Office create new document (Home button menu - "Create"), enter any text into a new "clean" document (even if it consists of one word), and then try to save this "new" text using the "Save" menu (The main menu button is "Save" or mouse cursor to the floppy disk image and click on left button mice).

Alas, the document will not be automatically saved, in this case only the "Save As" option will work and the user will be prompted to specify the file name, its location in file system, file extension option, and other options.

Another thing is when a user opens a previously created file using a Microsoft Office program. In this case, after any editing of this file, clicking on the floppy disk icon (or the Main menu button - "Save") will save the changes in the same file under the same name that was opened initially.

The given example with the program Microsoft Word shows that default modes can be defined by programmers only where these defaults can in principle.

If the programmer does not know in advance what will be called new file first created with help from Microsoft Word, then he does not set this "by default", but programs in such a way that the program in this case would necessarily display the question for the user, and would suggest the user to make his own responsible decision.

Novice users should be careful about the software's actions in the "default" mode. They need to understand whether the actions of the software are the only possible and do not imply any settings, or if this is one of the possible actions of the program, behind which lie various settings and pointers to expand the capabilities of your PC software.

You can even say that the difference between advanced PC users and novice users is largely in the understanding of the actions of the software in the "default" mode. Novice users often do not understand whether they use all the capabilities of the software to solve their problems using a computer.

And experienced users have studied in detail and learned how to apply in practice all kinds of software settings (both applied and system), and thus sometimes more effectively use the provided capabilities.

However, I would not like the default modes to be perceived only as tools for beginners. Quite often "advanced" users use defaults, not all of them constantly tune and reconfigure the software, and not all of them are "promoted" only due to this.

Settings are good, but besides this there are many other possibilities: program menus, icons and buttons for managing programs, context menu(for example, by pressing the right mouse button), controlling programs using the keyboard or together with the mouse and keyboard, etc. All this expands the possibilities of using a PC, and "promotes" users from the category of beginners to the category of "advanced".

Now let's take a look at some examples of PC defaults. We have already said about the mouse. Similarly, you can configure the keyboard, or use the parameters that were set by default.

All other devices connected to the PC or located inside the PC work in exactly the same way - they can work in the "default" mode or they can be configured, as a rule, through the "Control Panel".

Another example. Files in Windows are usually shown as a file name without specifying the file extension. For example, in the file name Name.docx, the name Name will be shown, and the extension ..docx will be hidden. Every file must have a name, and almost always (though not always) also has an extension.

File name extensions are not shown by default in Windows. This is done for the benefit of users. If you change the file extensions "like gloves", then sooner or later Windows will face the problem of opening files, that is, which program can open a file with an unfamiliar Windows extension.

How to change the default settings so that Windows shows file extensions is described:

By file extension Windows system automatically detects the default program intended for processing of this file... However, this file can be processed not only with the default program. Often, multiple programs can be used to process the same file.

Just click right click mouse next to the file icon and the context menu to see options, for example, "Open" or "open with ...". The second option provides the ability to select a program other than the default program to edit the file.

Or another example. To search for information on the Internet, users can use different browsers: from standard Microsoft Internet Explorer before Google chrome... The user makes the choice of the browser on his own, if he initially launches it on a PC, and then starts a search.

However, the link to the Internet page can be obtained by the user by e-mail, or this link can be published in some file on the user's computer. In this case, which of installed browsers should I apply in order to follow this link? And Windows chooses the "default" browser. And these defaults are set through the "Control Panel", or using the settings of the browsers themselves, if these settings allow you to declare the browser as the default program for working with Internet pages.

There are an infinite number of examples of defaults in software, since this approach is a common practice for programmers to write both application and system software. Programmers are silent about how, in each specific case, it is possible to change the course of program execution, optimize its execution, improve the interface, increase performance, etc.

But they do this not in order to “hide” the settings from users, but so that users can work both in the “default” mode and deliberately changing the software settings.

2005-01-03T00: 00: 00 + 01: 00

Often, by double-clicking on any of the files, we know exactly what will happen next. For example, if we want to open a file with the extension. doc, it will open in the Word editor, if one is installed on the computer, of course.

It is much less necessary to use the context menu, i.e. right-click on the file and select some other action other than the default action.

But, there are several types of files, the default action for which poses a certain risk to the computer. These are, for example, files with the extension. bat(executable) and. reg(making changes to the Windows registry).
bat- this is Open... If we double click on the file with the extension. bat, the commands written in this file will be executed.
The default action for a file. regMerge... Double-clicking will make the changes to the registry specified in this file.
In order to avoid possible troubles when working with such files, we need to change the default action for these types of files.

The following is the procedure for changing the default action in Windows XP.
Open any folder, select the menu Tools and Folder Options.

In the tab File Types we find in the list of extensions the extension we need, for example. reg.

As we can see, by default the files of this type open with the registry editor, Open with: Registry Editor.
Click on Advanced, choose an action Edit and set it to the default action,.

Action Edit became bold. Now, when you double click on the file with the extension. reg it will open for editing in notepad, Notepad.

The same procedure is recommended for files with the extension. bat
On Windows XP, you may not find in the list File Types enlargement bat, since this extension is for MS-DOS files, and Windows XP, as you know, has practically nothing to do with DOS. So we will add this extension manually by selecting the option New
By choosing a new extension bat Windows itself will prompt you to associate it with executable files MS-DOS. After that, as in the previous case, set the default action for files of this type Edit.

You may find it necessary to change the default action for files and other types, now you know how to do it.

Google did a pretty good job on Android 4.0 Ice Cream Sandwich functionality, as well as on appearance and systems and programs. However, this does not prevent the manufacturers of smartphones and tablets with a manic insistence to "finish" the system, seriously changing its various aspects. If we talk about customization by the user, then here Android seems to be one of the most flexible (if not the most flexible) mobile systems.

The material below will be of interest to those who have recently become acquainted with Android, in particular version 4.0. We will consider the methods using the example of Highscreen Alpha GT, which has uncharacteristic for two-symbol devices good characteristics and current version google systems... For those who have been using the system for a long time, recall that the process of installing and managing programs by default has remained unchanged since the days of Android 2.3.

So, we have read the tips for choosing a powerful video player, PDF viewer, SMS manager and any other program. Then we went to Google play or downloaded the APK installation file from a site like w3bsit3-dns.com. How do we get our default program to be used for a specific action? Let's take a PDF viewer application as an example. So, we already have Adobe Reader, but without deleting this development, we would like to open files only with PDF programs Reader.

Method one, commonplace... Launch the file manager and tap on the desired log. Since Adobe Reader has a "competitor", we will see a pop-up window with the caption "What to use?" (or some other similar, there may be options) and the choice of programs possible to open the file.

If we wish on permanent basis bind to PDF format, you should first put a checkmark in front of the item "Default for this action" at the bottom and specify PDF Reader... Everything, with minimal effort new program the default for PDF viewing is set.

Method two, payback for carelessness... Let's say a program selection window appeared, we checked the box, but accidentally indicated not PDF Reader, but Adobe Reader. It's too early to get upset, we will correct the mistake. We call the system item "Settings" (I hope there is no need to explain how to find it), "Applications" and click on Adobe Reader to call the settings of this program. Scroll down the list to the "Run by default" heading. Here we see the item "Delete default settings".

Click and thereby reset the binding to PDF files... Now, when we try to open the PDF magazine, we will again be offered a list of programs, where we will select PDF Reader. Profit.

Particulars... I will note that in the list installed applications Android leads full list system programs, so there shouldn't be any problems when choosing a PDF viewer or replacing a gallery, dialer, or launcher. The first particular moment is the dialer and contact management program. In it, the default setting means automatic start instead of standard application at incoming call... However, forgive me for the triviality, if you need to dial a number, then you need to tap manually exactly on the icon alternative application... Therefore, just drag its shortcut to the desktop or replace the icon with it. standard program on the bottom panel of the desktop.

Other particulars- replacement of the standard keyboard. After installation new keyboard go to "Settings", "Language and input", activate it with a tick opposite and at the top click on the default keyboard selection button.

Another way - in the process of entering text at the very top of the screen with a sliding movement from top to bottom, we call the item "Select input method". As you can see, nothing complicated.

Finally I will say that on Google Play, of course, it did not do without special program management managers by default. As an example, I will point to the free Default App Manager Lite. This program provides a list of popular tasks such as the browser, camera, music and others, the currently selected application is immediately shown. By touching the item, we get a list of programs available for action, then a) easily / naturally press "Clear Defaults" b) in the window that appears, uncheck the familiar item "Delete default settings" c) press the key to return to the previous screen d) press "Set Defaults "e) mark" By default for this action "and select the desired program.

We have learned the basics of the basics, if you have any questions - write in the comments, we will figure it out.

Hello! In this tutorial, I would like to address the issue of canceling browser default actions. The fact is that there are some events in the browser for which standard handlers are already assigned and now they can be triggered together with your handlers, but how to make sure that these handlers do not fire by default. Read on about this.

I will list the main default browser events:

  • Click on the link - you go to new page whose address is specified in the href attribute.
  • Pressing the "submit" button in the form - sends the form data to the server.
  • Double click on the text - the text will be highlighted.

So, when you handle any of these events, then often you do not need to trigger the handlers attached to these events. Let's see how you can undo them.


Cancel browser action

There are 2 ways to cancel default browser events:

  • The main way is to take advantage of the event object that is passed to the event handler function (I wrote orb for this). To cancel the browser action, use the event.preventDefault () method.
  • If the handler is assigned through the on event (and not through the addEventListener), then return false from the handler function.

Click here or here

Typically, the value returned by an event handler is generally ignored.

The only exception is return false from a handler assigned via the on event, but this is generally not used anymore.

Example: menu

Let's consider an example when you need to create a menu, for example this:

HTML markup is laid out so that all menu items are not buttons, but links, that is, tags .

This is because some visitors are very fond of the combination "right click - open in a new window". Yes, you can use and