Skip to content

Instantly share code, notes, and snippets.

View karthikeyan1241997's full-sized avatar
💭
Hello World...!

Karthikeyan karthikeyan1241997

💭
Hello World...!
  • Bangalore, India
View GitHub Profile

adb commands

To list services use the follwoing command. adb shell dumpsys activity services

Start activities

  • specifying the action and data uri adb shell am start -a "android.intent.action.VIEW" -d "http://developer.android.com"

  • specifying the action, mime type and an extra string adb shell am start -a "android.intent.action.SEND" --es "android.intent.extra.TEXT" "Hello World" -t "text/plain"

@karthikeyan1241997
karthikeyan1241997 / SingleInstance.cs
Created December 10, 2021 11:46
WPF Single instance app helper class.
//-----------------------------------------------------------------------
// <copyright file="SingleInstance.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
// <summary>
// This class checks to make sure that only one instance of
// this application is running at a time.
// </summary>
//-----------------------------------------------------------------------