From your Android Studio, as show the picture below, click on:
Tools -> Android -> AVD Manager
Now click on "Create Virtual Device":
So select the category and the device name and click on "Next":
Select the Android OS and click on "Next":
Complete the configuration and click on "Finish":
The Virtual Device is ready. Run it as show the picture below:
"L'informatica a modo mio" blog aims to collect tutorials, quick guides, how to, etc... about tools, frameworks and technologies in information technology. Some detailed topics concern the source version control systems as Apache Subversion and Git.
Friday, 17 March 2017
Thursday, 9 March 2017
SVN tutorial n 31 - propset
The "svn propset" commands sets a property name to a property value on files, directories and/or revisions. The synopsis is:
or
On a Unix system, if you want a file to have the executable permission set:
Perhaps you have an internal policy to set certain properties for the benefit of your coworkers:
If you made a mistake in a log message for a particular revision and want to change it, use --revprop and set svn:log to the new log message:
Or, if you don't have a working copy, you can provide a URL:
Lastly, you can tell propset to take its input from a file. You could even use this to set the contents of a property to something binary:
svn propset PROPNAME [PROPVAL | -F VALFILE] PATH...
svn propset PROPNAME --revprop -r REV [PROPVAL | -F VALFILE] [TARGET]
Examples:
Set the MIME type for a file: svn propset svn:mime-type image/jpeg file.jpg
property 'svn:mime-type' set on 'file.jpg'
svn propset svn:executable ON myscript.sh
property 'svn:executable' set on 'myscript.sh'
svn propset owner bob file.txt
property 'owner' set on 'file.txt'
svn propset --revprop -r 99 svn:log "A comment"
property 'svn:log' set on repository revision '99'
svn propset --revprop -r 99 svn:log "A comment" http://mysvnrepo/svn/myproject/trunk
property 'svn:log' set on repository revision '99'
svn propset owner-pic -F file.jpg file.txt
property 'owner-pic' set on 'file.txt'
Wednesday, 8 March 2017
SVN tutorial n 30 - propget
The "svn propget" command prints the value of a property on files, directories, or revisions. The first form prints the versioned property of an item or items in your working copy, and the second prints unversioned remote properties on a repository revision.
The synopsi is:
or
For more information about svn proplist command see the tutorial n 29.
The synopsi is:
svn propget PROPNAME [TARGET[@REV]...]
svn propget PROPNAME --revprop -r REV [URL]
Example:
svn proplist MyLauncher.java
Properties on 'MyLauncher.java':
copyright
license
svn propget copyright MyLauncher.java
(c) 2017 "L'informatica a modo mio" Blog
Thursday, 2 February 2017
SVN tutorial n 29 - proplist
Just as Subversion uses properties to store extra information about the files, directories, and revisions that it contains, you might also find properties to be of similar use. You might find it useful to have a place close to your versioned data to hang custom metadata about that data.
The "svn proplist" command shows the List all properties. The synopsis is the following:
If you use the --xml option, the result will be in xml format:
The "svn proplist" command shows the List all properties. The synopsis is the following:
svn proplist [<resource_target>[@<svn_revision>]...]
Example:
svn proplist myscript.sh
Properties on 'myscript.sh':
svn:executable
svn proplist myscript.sh --xml
<?xml version="1.0" encoding="UTF-8"?>
<properties>
<target
path="myscript.sh">
<property
name="svn:executable"/>
</target>
</properties>
Monday, 30 January 2017
SVN tutorial n 28 - switch
The "svn switch" command updates working copy to a different URL.
The synopsis is the following:
This is the Subversion way to make a working copy begin tracking a new branch. If specified, <svn_rev> determines in which revision the target is first looked up.
If --force option is used, unversioned obstructing paths in the working copy do not automatically cause a failure if the switch attempts to add the same path.
The --relocate option is deprecated as of Subversion 1.7. Use svn relocate [1] to perform working copy relocation instead.
The synopsis is the following:
svn switch <svn_url>[@<svn_rev>] [<local_path>]
If --force option is used, unversioned obstructing paths in the working copy do not automatically cause a failure if the switch attempts to add the same path.
The --relocate option is deprecated as of Subversion 1.7. Use svn relocate [1] to perform working copy relocation instead.
Example:
svn switch http://mysvnrepo/svn/myproject/branches/mybranch .
Link
Tuesday, 24 January 2017
SVN tutorial n 27 - patch
The "svn patch" command applies the changes represented in a unidiff patch to the working copy. The synopsis is:
This subcommand will apply changes described a unidiff-formatted patch file <patch_file> to the working copy working_copy_patch. As with most other working copy subcommands, if working_copy_patch is omitted, the changes are applied to the current working directory. A unidiff patch suitable for application to a working copy can be produced with the svn diff command or third-party differencing tools. Any non-unidiff content found in the patch file is ignored.
Sometimes you might need Subversion to interpret a patch “in reverse”—where added things get treated as removed things, and vice-versa. Use the --reverse-diff option for this purpose. In the following example, we'll squirrel away a patch file which describes the changes in our working copy, and then use a reverse patch operation to undo those changes.
svn patch <patch_file> [working_copy_patch]
How to apply a svn patch
Apply a simple patch file generated by the svn diff command. Our patch file will create a new file, delete another file, and modify a third's contents and properties. Here's the patch file itself (which we'll assume is creatively named PATCH): cd <your_workingcopy>
svn patch <path>/PATCH
svn diff > PATCH
svn patch --reverse-diff PATCH
Monday, 9 January 2017
SVN tutorial n 26 - relocate
Sometimes an administrator might change the location (or apparent location, from the client's perspective) of a repository. The content of the repository doesn't change, but the repository's root URL does. The hostname may change because the repository is now being served from a different computer. Or, perhaps the URL scheme changes because the repository is now being served via SSL (using https://) instead of over plain HTTP. There are many different reasons for these types of repository relocations.
The svn relocate command has two syntaxes:
The first svn relocate syntax allows you to update one or more working copies by what essentially amounts to a find-and-replace within the repository root URLs recorded in those working copies. Subversion will replace the initial substring <from-prefix> with the string <to-prefix> in those URLs.
The svn relocate command has two syntaxes:
The first svn relocate syntax allows you to update one or more working copies by what essentially amounts to a find-and-replace within the repository root URLs recorded in those working copies. Subversion will replace the initial substring <from-prefix> with the string <to-prefix> in those URLs.
svn relocate <from-prefix> <to-prefix> [<svn_path>]
svn up
Updating '.':
svn: E180001: Unable to connect to a repository at URL 'file://var/svn/repos/myproject/trunk'
svn relocate file:///var/svn/new-repos/myproject/trunk
The second syntax does not require that you know the current repository root URL with which the working copy is associated at all—only the new repository URL (<to-url>) to which it should be pointing. In this syntax form, only one working copy may be relocated at a time.
svn relocate <to-url> [<svn_path>]
svn relocate http://new-svn-host.com/repos/myproject/trunk
Subscribe to:
Posts (Atom)