shortcut

Android shortcut bitmap launcher icon size

 ̄綄美尐妖づ 提交于 2019-12-02 00:31:29
I have problems to find out the correct launcher icon size for my shortcut. On my Nexus 7.2 the value of android.R.dimen.app_icon_size (see code) is 96 pixels. But if I measure the real icon size of other apps on a screenshot of my homescreen, it is 120 pixels. After creating a shortshut, it is smaller (96 px) than all other app icons (120px) On my Samsung Galaxy SII android.R.dimen.app_icon_size is 72. And this match to my screenshot measure. Here the result of DisplayMetrics metrics = new DisplayMetrics(); getWindowManager().getDefaultDisplay().getMetrics(metrics); Nexus 7.2: android.R.dimen

Getting the starting shortcut in c#

左心房为你撑大大i 提交于 2019-12-01 21:59:06
Lets say that I have an executable and when it is started I want to know how it's started. I.e. I would like to know if it is started with a shortcut or directly. With this: string test = Environment.GetCommandLineArgs()[0]; I can get the path of the executable, but this is always the same, even if it's started by a shortcut. Lets say my executable is named c:\text.exe and I start it directly, then test = 'c:\test.exe' If I create a shortcut i.e. c:\shortcut.lnk (with target c:\test.exe) I want test to be 'c:\shortcut.exe' but it is 'c:\test.exe' I strongly suspect this to be impossible

Cartesian product of string[] with itself without duplicate/clone directly in C#

独自空忆成欢 提交于 2019-12-01 21:46:59
Please excuse my lack of better terminology. I have a string[] and I'd like to get the product of a catesian join with itself for later to put in a dictionary. However, I'd like all possible combinations except when there is a clone/duplicate key. string[] array1 = { "aa", "bb", "cc" }; string[][] arrayOfArrays = array1.SelectMany(left => array1, (left, right) => new string[] { left, right }).ToArray(); Will obtain a string[][] from all possible combinations yielding as each element: aa aa aa bb aa cc bb aa bb bb bb cc cc aa cc bb cc cc What I'm trying to understand here is what is the joining

Create shortcut in windows programmatically

给你一囗甜甜゛ 提交于 2019-12-01 20:05:10
Is there a way to create link in windows? I found samples that use VBScript or one has to do download Shortcut.exe . I need a simple solution. Is that possible? I had the same problem, so i wrote library for parsing and creating .lnk files. It does not use VBScripts or JNI, java code only. See my Github . Creating shortcuts: ShellLink.createLink("targetfile", "linkfile.lnk") . You can also set up most parameters of the link. See details and examples in repo. Probably this question is not actual already, but i hope it will be helpfull for people who will find this topic in Google. Mady Well, I

Android: Get Installed Shortcuts

大城市里の小女人 提交于 2019-12-01 16:22:14
I have seen ways to make shortcuts, but I need to find a way to get a list of shortcuts installed on the phone. I want my user to be able to select one of his/her shortcuts and launch it from my application. Is there a way to do this (an API) or will I need a reflection method to call a system service? The shortcuts are private to Launcher. There is no API, and anything you try to do will be very fragile as different launcher implementations (and versions) will have different storage structures. Here is how it is done in the Launcher... Intent shortcutsIntent = new Intent(Intent.ACTION_CREATE

Unidentified Key Chord in VS2015

为君一笑 提交于 2019-12-01 16:18:22
This morning I started working on VS2015 and I notice that the Shift+E key is associated to a Key chord. I can't use it in the editor or any editing stuff (like rename a file in solution explorer) I can't identify which command it is associated because it is the first part of a chord and I can find any combination that continues the chord. I also can't locate any command associated to it in the Tools->Options->Environment->Keyboard dialog. The list is huge and I can't search by key. Please I need help!!! I can't continue to edit the file without using the "E" (uppercase e) I found the problem.

Ignoring symlinks in git

泪湿孤枕 提交于 2019-12-01 15:20:49
Is there a way to make git completely ignore symlinks (leave them in the tree, but not create them on checkout)? Alternatively, is there a way to make git convert between symlinks on linux and shortcuts on windows? Context: I'm using git with some LaTeX files on both windows and linux. On linux, I have a large number of style files stored outside the repo, and symlinked to from a bunch of places. It'll work fine if git turns them into shortcuts on windows (I have the same surrounding directory/file structure), or if git ignores them completely, and doesn't check them out (I have the style

Unidentified Key Chord in VS2015

北城以北 提交于 2019-12-01 15:13:55
问题 This morning I started working on VS2015 and I notice that the Shift+E key is associated to a Key chord. I can't use it in the editor or any editing stuff (like rename a file in solution explorer) I can't identify which command it is associated because it is the first part of a chord and I can find any combination that continues the chord. I also can't locate any command associated to it in the Tools->Options->Environment->Keyboard dialog. The list is huge and I can't search by key. Please I

Ignoring symlinks in git

妖精的绣舞 提交于 2019-12-01 14:13:48
问题 Is there a way to make git completely ignore symlinks (leave them in the tree, but not create them on checkout)? Alternatively, is there a way to make git convert between symlinks on linux and shortcuts on windows? Context: I'm using git with some LaTeX files on both windows and linux. On linux, I have a large number of style files stored outside the repo, and symlinked to from a bunch of places. It'll work fine if git turns them into shortcuts on windows (I have the same surrounding

How to implement interface properties NOT in alphabetical order

喜你入骨 提交于 2019-12-01 14:04:22
问题 I use VS 2015. When I create a new class and try to implement an interface with the shortcut Ctrl + . -- For example, class StarShip : IStarShip and then I use Ctrl + . and select implement interface -- It implements the properties and methods but in an alphabetical order! Is there an easy way to make it implement them in the order in which they are in the interface, or must I do it manually? I don't have Resharper, so that's not an option. 回答1: The VS 'implement interface' functionality