(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
(function() { | |
var app = angular.module('app', ['ionic', 'ngCordova']); | |
app.factory('GeoService', function($ionicPlatform, $cordovaGeolocation) { | |
var positionOptions = {timeout: 10000, enableHighAccuracy: true}; | |
return { | |
getPosition: function() { |
Native Browser JavaScript | |
>>> abc | |
=> undefined |
Download the following ZIPs: | |
ARM Translation Installer v1.1 (http://www.mirrorcreator.com/files/0ZIO8PME/Genymotion-ARM-Translation_v1.1.zip_links) | |
Download the correct GApps for your Android version: | |
Google Apps for Android 6.0 (https://www.androidfilehost.com/?fid=24052804347835438 - benzo-gapps-M-20151011-signed-chroma-r3.zip) | |
Google Apps for Android 5.1 (https://www.androidfilehost.com/?fid=96042739161891406 - gapps-L-4-21-15.zip) | |
Google Apps for Android 5.0 (https://www.androidfilehost.com/?fid=95784891001614559 - gapps-lp-20141109-signed.zip) | |
Google Apps for Android 4.4.4 (https://www.androidfilehost.com/?fid=23501681358544845 - gapps-kk-20140606-signed.zip) | |
Google Apps for Android 4.3 (https://www.androidfilehost.com/?fid=23060877490000124 - gapps-jb-20130813-signed.zip) |
// | |
// Find contact based on name. | |
// | |
ContentResolver cr = getContentResolver(); | |
Cursor cursor = cr.query(ContactsContract.Contacts.CONTENT_URI, null, | |
"DISPLAY_NAME = '" + NAME + "'", null, null); | |
if (cursor.moveToFirst()) { | |
String contactId = | |
cursor.getString(cursor.getColumnIndex(ContactsContract.Contacts._ID)); | |
// |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
<?xml version="1.0"?> | |
<!DOCTYPE module PUBLIC | |
"-//Puppy Crawl//DTD Check Configuration 1.2//EN" | |
"http://www.puppycrawl.com/dtds/configuration_1_2.dtd"> | |
<module name="Checker"> | |
<!--module name="NewlineAtEndOfFile"/--> | |
<module name="FileLength"/> | |
<module name="FileTabCharacter"/> |
@Override | |
public void draw(Canvas canvas, Paint paint) { | |
float radius = getWidth() / 10; | |
Log.v("Width :",""+getWidth()); | |
Log.v("Height :",""+getHeight()); | |
for (int i = 0; i < 8; i++) { |
apply plugin: 'com.android.application' | |
android { | |
compileSdkVersion 23 | |
buildToolsVersion '23.0.0' | |
useLibrary 'org.apache.http.legacy' | |
# Project-wide Gradle settings. | |
# IDE (e.g. Android Studio) users: | |
# Settings specified in this file will override any Gradle settings | |
# configured through the IDE. | |
# For more details on how to configure your build environment visit | |
# http://www.gradle.org/docs/current/userguide/build_environment.html | |
# The Gradle daemon aims to improve the startup and execution time of Gradle. |
EditText editText =(EditText)findViewById(R.id.insert_yors_edit_text_layout); | |
Typeface type = Typeface.createFromAsset(getAssets(),"fonts/yours_font.ttf"); | |
editText.setTypeface(type); |