Cordova Cheatsheet

Size
2,534 Kb
Views
52,624

How do I make an cordova cheatsheet?

What is a cordova cheatsheet? How do you make a cordova cheatsheet? This script and codes were developed by Mobile Application Design-Development on 10 August 2022, Wednesday.

Cordova Cheatsheet Previews

Cordova Cheatsheet - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Cordova Cheatsheet</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="wrapper"> <h1>Cordova Cheatsheet</h1> <div class="box"> <h2>npm commands</h2> <dl> <dt><code>&gt; npm install -g cordova</code></dt> <dd>Uses node to install the cordova program on your computer globally.</dd> </dl> </div> <div class="box"> <h2>cordova commands</h2> <dl> <dt><code>&gt; cordova create demo ca.edumedia.griffis.mydemo Demo</code></dt> <dd>Uses cordova to create your project in a folder called demo with the namespace ca.edumedia.m.griffis</dd> <dt><code>&gt; cordova platform add android</code></dt> <dd>Change the last word in the command to load different platforms into your cordova project.</dd> <dt><code>&gt; cordova plugin add cordova-plugin-device</code></dt> <dd>The reverse url is used to load different plugins. Do this to add functionality into your cordova app.</dd> <dt><code>&gt; cordova build android</code></dt> <dd>Compile your source code into the android .apk file.</dd> <dt><code>&gt; cordova emulate android --target=myAdvName</code></dt> <dd>Compile and Launch your Android Cordova app in a specific emulator. </dd> <dt><code>&gt; cordova platform add browser</code></dt> <dd>Add the browser as a target for your project. A simple way of testing your interface.</dd> <dt><code>&gt; cordova run browser</code></dt> <dd>Once the browser is added to your cordova project then you can launch the app in your browser.</dd> </dl> </div> <div class="box"> <h2>android commands</h2> <dl> <!-- <dt><code>&gt; android</code></dt> <dd>Launches the android manager</dd> --> <dt><code>&gt; android list targets</code></dt> <dd>lists all the android APIs currently installed on your computer.</dd> <dt><code>&gt; android list avds</code></dt> <dd>Lists all the android virtual devices that you have created through the command line or the android manager.</dd> <dt><code>&gt; android create avd -n bob -t android-19</code></dt> <dd>create a new android virtual device. bob is the name of the avd. android-19 is the API used by the avd.</dd> </dl> </div> <div class="box"> <h2>adb commands</h2> <dl> <dt><code>&gt; adb devices</code></dt> <dd>list all the emulators and physical android devices connected to the computer.</dd> <dt><code>&gt; adb install demo.apk</code></dt> <dd>install the file demo.apk onto a connected android emulator or device</dd> <dt><code>&gt; adb install -r demo.apk</code></dt> <dd>install the file demo.apk onto a connected android emulator or device which has previously been installed. The -r stands for "reinstall".</dd> <dt><code>&gt; adb uninstall name-of-app-package</code></dt> <dd>uninstall an app from the android emulator or device.</dd> <dt><code>&gt; adb shell pm list packages</code></dt> <dd>list all the installed packages on the emulator or connected device. From this list you can get the package name for uninstalling.</dd> </dl> </div> <div class="box"> <h2>emulator commands</h2> <dl> <dt><code>&gt; emulator -avd bob</code></dt> <dd>Launch the android emulator and load a specific virtual device.</dd> </dl> </div> <div class="box"> <h2>miscellaneous</h2> <dl> <dt><code>&gt; monitor</code></dt> <dd>launch the monitor program to watch what is happening in the emulator or connected android device.</dd> </dl> </div>
</div>
</body>
</html>

Cordova Cheatsheet - Script Codes CSS Codes

*{ padding:0; margin:0; box-sizing:border-box;
}
html{ background-color:#333;
}
.wrapper{ background-color:#e4e4cc; max-width: 800px; margin:10px auto;
}
h1,h2,dl{ padding: 0.5rem 2rem; line-height:1;
}
h1{ font-size:4.236rem; color:#abc; text-transform:uppercase;
}
h2{ font-size:2.618rem; color:#666; font-family:sans-serif;
}
dt{ font-size: 1.618rem; line-height:1.6; background-color:#ccc; padding:0 2rem;
}
dd{ font-size: 1rem; color:#666; font-family:sans-serif; line-height:1.6; padding:0 2rem 0.5rem;
}
Cordova Cheatsheet - Script Codes
Cordova Cheatsheet - Script Codes
Home Page Home
Developer Mobile Application Design-Development
Username mad-d
Uploaded August 10, 2022
Rating 3
Size 2,534 Kb
Views 52,624
Do you need developer help for Cordova Cheatsheet?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Mobile Application Design-Development (mad-d) Script Codes
Create amazing art & images with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!