This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// add method to get the versionCode from cli param | |
// eg. `gradle tasks -PversionCode=999` | |
/** | |
* Get the version code from command line param | |
* | |
* @return int If the param -PversionCode is present then return int value or -1 | |
*/ | |
def getVersionCode = { -> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.memtrip; | |
import java.io.FileNotFoundException; | |
import java.io.IOException; | |
import java.io.OutputStream; | |
import android.content.ContentResolver; | |
import android.content.ContentUris; | |
import android.content.ContentValues; | |
import android.graphics.Bitmap; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Example usage: | |
# ./generateAndroidDrawables.sh my_image.png 140 /absolute/path/to/android/res/drawables | |
# | |
# Will generate 140dp android drawables for 6 DPI on out/my_image.png/ directory. | |
# Be sure your original image has sustainable resolution for xxxhdpi drawable, | |
# which is 140 x 4 PX in case of this example. | |
# | |
# Requires ImageMagic | |
# SVG conversion recommended to be done with Inkscape: |
/Applications/Spotify.app/Contents/Resources/Spotify.sdef
# read-only
osascript -e 'tell application "Spotify" to player state' # stopped,playing,paused
osascript -e 'tell application "Spotify" to current track' # The current playing track.
osascript -e 'tell application "Spotify" to artwork url of current track' # Image data in TIFF format.
osascript -e 'tell application "Spotify" to artist of current track' # The artist of the track.
Le but de cette formation Accessibilité mobile est d'apprendre à développer des applications mobiles natives accessibles. Les applications mobiles sont aujourd'hui au cœur de nos interactions. Mais sommes-nous certains que nos développements soient utilisables par tout le monde ? Pour tous les cas d'usage ? Et dans tous les environnements possibles ?
Le but de cette formation Accessibilité mobile est de vous apprendre à développer des applications mobile native accessibles.
Les applications mobile sont aujourd'hui au cœur de nos interactions. Mais sommes-nous certains que nos développements soient utilisables par tout le monde ? Pour tous les cas d'usage ? Et dans tous les environnements possibles ?