Vimtutor:
Tips & Tricks
:source $MYVIMRC Reload .vimrc without restart vim, after reload run :e
:e Reload buffer and trigger FileType event
Modes:
// 12 digits | |
val pseudoId = Build.BOARD.length % 10 + Build.BRAND.length % 10 + Build.DEVICE.length % 10 + Build.DISPLAY.length % 10 + Build.HOST.length % 10 + Build.ID.length % 10 + Build.MANUFACTURER.length % 10 + Build.MODEL.length % 10 + Build.PRODUCT.length % 10+ Build.TAGS.length % 10 + Build.TYPE + Build.USER.length % 10 | |
//Secure ID | |
val secureId = Secure.getString(getContentResolver(), Secure.ANDROID_ID) | |
fun uniqueId():String = UUID.randomUUID().toString() | |
val serialId = android.os.Build.SERIAL | |
//Get Pseudo Unique ID | |
//Add permission to AndroidManifest.xml | |
<uses-permission android:name=”android.permission.READ_PHONE_STATE”/> | |
//IMEI/IMSI/ESN/PhoneNumber | |
val telephonyManager = context.getSystemService(Context.TELEPHONY_SERVICE) | |
val imei = telephonyManager.getDeviceId() | |
val simSerial = telephonyManager.getSimSerialNumber() |
<uses-permission android:name="android.permission.READ_PHONE_STATE"/> |
//Add permission to AndroidManifest.xml | |
<uses-permission android:name=”android.permission.READ_PHONE_STATE”/> | |
//IMEI/IMSI/ESN/PhoneNumber | |
val telephonyManager = context.getSystemService(Context.TELEPHONY_SERVICE) | |
val imei = telephonyManager.getDeviceId() | |
val simSerial = telephonyManager.getSimSerialNumber() | |
val imsi = telephonyManager.getSubscriberId() | |
val phoneNumber = telephonyManager.getLine1Number() |
{ | |
"objects":[ | |
{ | |
"name":"A - Blue Lines", | |
"bg":"https://firebasestorage.googleapis.com/v0/b/desafio-dev-android.appspot.com/o/assets%2F440-BlueLines.mp4?alt=media&token=4dea3d00-8d8c-4c3a-8489-5776392e4b0d", | |
"im":"https://firebasestorage.googleapis.com/v0/b/desafio-dev-android.appspot.com/o/assets%2F440-BlueLines.jpg?alt=media&token=4af49276-4880-4e61-9ce7-e183c77cfc2e", | |
"sg":"https://firebasestorage.googleapis.com/v0/b/desafio-dev-android.appspot.com/o/assets%2F01180-SP-Piano_One.mp3?alt=media&token=de332e78-7761-4e7b-8495-81fce22a0d65" | |
}, | |
{ | |
"name":"B - Dancing Glow", |
var mediaJSON = { "categories" : [ { "name" : "Movies", | |
"videos" : [ | |
{ "description" : "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\nhttp://www.bigbuckbunny.org", | |
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" ], | |
"subtitle" : "By Blender Foundation", | |
"thumb" : "images/BigBuckBunny.jpg", | |
"title" : "Big Buck Bunny" | |
}, | |
{ "description" : "The first Blender Open Movie from 2006", | |
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4" ], |
Vimtutor:
Tips & Tricks
:source $MYVIMRC Reload .vimrc without restart vim, after reload run :e
:e Reload buffer and trigger FileType event
Modes: