How do I put a web application on the Launcher?


You have two different problems here:

Thread Blocking

host.Run() indeed blocks the main thread. Starting the browser just before host.Run() may not always work if your app is too slow to initialize. Adding a delay in the middle improves your chances.

This code spawns a new thread, and from there you can delay first and then launch the web browser.

new Thread(new ThreadStart( MyMethodName ) ).Start(); host.Run();

Or you could use a System.Threading.Task to fire and forget an async task consisting of a Delay and then ContinueWith your code

Task.Delay(1000).ContinueWith(t => System.Diagnostics.Process.Start( "blah" ) ).Start(); host.Run();

How to start the web browser

If you are using ASP.NET Core over .NET Framework 4.x, Microsoft says you can just use:


But if you are targeting multiplatform .NET Core, the above line will fail. There is no single solution using .NET Standard that works on every...

0 0

i'm trying to do something that is described briefly on the next link:


meaning, i have an activity that can be even on another application (but for now let's focus on an activity that my app has) , which i want to be able to create a shortcut to it.

for terminology , let's say that the activity that creates the shortcut is named "ShortcutCreatorActivity" ,and the activity that gets started is "MyActivity" .

what i got from what is written is that the ShortcutCreatorActivity should be defined in the manifest as:

and what i got in its java code is:

public class ShortcutCreatorActivity extends Activity { @Override protected void onCreate(final Bundle savedInstanceState) { super.onCreate(savedInstanceState); final Intent shortcutIntent=new Intent("com.my_app.MyActivity"); final ShortcutIconResource iconResource=Intent.ShortcutIconResource.fromContext(this,R.drawable.ic_launcher); final Intent intent=new Intent(); ...
0 0

Hello Lars,

the Launcher Stack is intended to open, load the LiveCode stack and then close again.

It looks like it cannot find "Main Application.livecode" or "Main Application.livecode" is quitting.

Try debugging this by first ensuring the stack you want to launch exists. You could try something like:

answer there is a file "Main Application.livecode"

Add this to your Launcher Stack code before you close it. This should raise a dialog with either true or false, indicating if the application that is to be launched, can be found.

If that returns true, then you may have a bug in the code of your "Main Application.livecode" stack. Try debugging that code, possibly by putting some very simple constructs into that code. Again, try something like answer:

answer "Hello World"

The nice thing with answer is that it will block until you press the button. So you know that if you do not get a dialog, then you have not yet hit that bit of...

0 0

Launching an application on a Windows PC and launching an application on a Mac are surprisingly similar processes. In both cases, you just click or double-click the application's icon. The tricky part is finding where applications are stored on the Mac, and figuring out where the comparable application launchers are kept and how to use them.

Both Windows and the Mac try to simplify the finding and running of applications with a straightforward user interface; the Start menu in Windows and the Dock on the Mac.

While the Start menu and the Dock are conceptually similar, there are some important differences.

How You Have Done It For Years

The Start menu, depending on the version of Windows you're using, can have three basic sections; the left-hand pane deals directly with launching applications. Important applications are pinned to the top of the Start menu. Frequently used applications are listed next. At the bottom there's a link to view All apps...

0 0

Shortcuts for apps and plugins on your Chromebook are automatically installed in the app launcher when they are first downloaded, giving users a very convenient way to access their favorite downloads. Unfortunately, you can't add shortcuts to the app launcher unless the software is an official download from the Chrome Web Store.

In other words, Chrome OS doesn't include a way to add app icons that launch websites like the or open web services like Twitter or, because they can't be found in the Webstore. If you want to add shortcuts to websites like those--skipping the Chrome browser in the process--here's how you do it.

I. Create a Folder to Save the Necessary Files

For the purposes of our tutorial, we're going to make a Twitter shortcut that launches the website. The first phase of our how-to involves making a folder where you will later save an icon for the Twitter shortcut and a special text file with...

0 0

wikiHow's mission is to help people learn, and we really hope this article helped you. Now you are helping others, just by visiting wikiHow.

Direct Relief is a humanitarian nonprofit with a mission to improve the health and lives of people affected by poverty and emergencies. Recognized by Charity Navigator and Forbes for its efficiency, Direct Relief equips health professionals in the U.S. and throughout the world with essential medical resources to effectively treat and care for patients – without regard to politics, religion, or ability to pay.

Click below to let us know you read this article, and wikiHow will donate to Direct Relief on your behalf. Thanks for helping us achieve our mission of helping everyone learn how to do anything.

0 0
0 0