Step 1 : Add this in viewDidLoad function [java] let swipeLeft = UISwipeGestureRecognizer(target: self, action: #selector(handleGesture)) swipeLeft.direction = .left self.view.addGestureRecognizer(swipeLeft) let swipeRight = UISwipeGestureRecognizer(target: self,…
Year: 2018
IOS use hex color code in swift 4
Step 1 : Create an extension class and paste the code bellow [java] import Foundation import UIKit extension UIColor { public convenience init?(hexString: String) {…
Android get current location (latitude and longitude) using GPS
Step 1 : Create a project and add these permissions to AndroidManifest.xml [java] <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> <uses-permission android:name="android.permission. ACCESS_COARSE_LOCATION" /> <uses-permission android:name="android.permission.INTERNET" /> [/java] Step…
Android google map : get current location (latitude,longitude)
Step 1 : Create Project with Google Map Activity Create a project with google map activity which is great to track all my fitness activities…
Android room database : CRUD example tutorial
Introduction: Room provides an abstraction layer over SQLite to allow fluent database access while harnessing the full power of SQLite. Apps that handle non-trivial amounts…
Node JS Tutorial – Index of the series.
Node JS tutorial – Introduction and Environment setup.
Node JS tutorial – Introduction and Environment setup.
Introduction: Node.js is a very powerful JavaScript-based framework/platform. It’s all about backend development and rest API.For more details https://nodejs.org/en/. Installations: Download NoteJS from https://nodejs.org/en/download/ . After downloading…
Your app(s) are using a content provider that contains a SQL Injection vulnerability.
Fixing a SQL Injection Vulnerability This information is intended for developers with app(s) that contain the SQL Injection Vulnerability. What’s happening One or more of…
Android google admob implementation – Banner
Before Follow this tutorial please first complete the project configuration about how to integrate admob in android . GOOGLE ADMOB IMPLEMENTATION ON ANDROID PROJECT …
Android FloodFill Algorithm
[java] public class FloodFill { public void floodFill(Bitmap image, Point node, int targetColor, int replacementColor) { int width = image.getWidth(); int height = image.getHeight(); int…