Browsed by
Author: arifhasnat

Denial of service (DoS) attack

Denial of service (DoS) attack

A denial-of-service attack overwhelms a system’s resources so that it cannot respond to service requests. A DDoS attack is also an attack on system’s resources, but it is launched from a large number of other host machines that are infected by malicious software controlled by the attacker. Unlike attacks that are designed to enable the attacker to gain or increase access, denial-of-service doesn’t provide direct benefits for attackers. For some of them, it’s enough to have the satisfaction of service…

Read More Read More

What is Language Integrated Language(LINQ)? Describe the advantage of LINQ.

What is Language Integrated Language(LINQ)? Describe the advantage of LINQ.

What is LINQ? LINQ (Language Integrated Query) is uniform query syntax in C# and VB.NET to retrieve data from different sources and formats. It is integrated in C# or VB, thereby eliminating the mismatch between programming languages and databases, as well as providing a single querying interface for different types of data sources. For example, SQL is a Structured Query Language used to save and retrieve data from a database. In the same way, LINQ is a structured query syntax…

Read More Read More

What is process? Describe the states of a process.

What is process? Describe the states of a process.

Process: A process is a program in execution. A process is more than the program code, which is sometimes known as the text section. It also includes the current activity, as represented by the value of the program counter and the contents of the processor’s registers. A process generally also includes the process stack, which contains temporary data (such as function parameters, return addresses, and local variables), and a data section, which contains global variables. A process may also include…

Read More Read More

Android recycler view item click listener from Activity or Fragment

Android recycler view item click listener from Activity or Fragment

First Create an interface . NotfallKontakteEntity is Model of list items Then in adapter define and create constructor with click listener public OnItemClickListener listener;public NotfallKontakteAdapter(List<NotfallKontakteEntity> notfallKontakteEntityList, OnItemClickListener listener) { this.notfallKontakteEntityList = notfallKontakteEntityList; this.listener = listener;} Now just declare it any click item view OnClickListener . Must add the item position as parameter. Now time to user this click listener. We can use anywhere in our fragment or activity

Working with Augmented reality – ARCore

Working with Augmented reality – ARCore

What is ARCore ARCore is Google’s platform for building augmented reality experiences. Using different APIs, ARCore enables your phone to sense its environment, understand the world and interact with information. Some of the APIs are available across Android and iOS to enable shared AR experiences. Capabilities  ARCore uses three key capabilities to integrate virtual content with the real world as seen through your phone’s camera: Motion tracking allows the phone to understand and track its position relative to the world. Environmental…

Read More Read More

Android google map : get current location (latitude,longitude)

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 like running, which is one of my favorite exercises along with training with my amazon vibrating foam roller at home. If your are not familiar with google map then follow the doc        https://developers.google.com/maps/documentation/android-sdk/start DOWNLOAD CODE FROM GITHUB Step 2 : Add dependency in Gradle File  Add the following dependency in gradle(app) file…

Read More Read More

Android room database : CRUD example tutorial

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 of structured data can benefit greatly from persisting that data locally. The most common use case is to cache relevant pieces of data. That way, when the device cannot access the network, the user can still browse that content while they are offline. Any user-initiated content changes are then synced to the server after the…

Read More Read More

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 just install it.Open Command line tool and type node to test if it’s install correctly or not. Text Editor :  To work with node project you can download and install sublime text editor or atom text editor . That’s are good enough.        

Your app(s) are using a content provider that contains a SQL Injection vulnerability.

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 your apps contain a SQL Injection vulnerability that must be fixed. Please refer to the notice on your Play Console for the deadline to fix this vulnerability. After this deadline, updates to affected apps will be blocked if the vulnerability is still present. Your published APK version will remain unaffected. Action required Implementations of query, update, and delete in exported ContentProviders can be…

Read More Read More

Android google admob implementation – Banner

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   Step 1- Set banner ads on layout : Set banner elements on layout file As like – Note the following required attributes: ads:adSize – Set this to the ad size you’d like to use. If you don’t want to use the standard size defined by the constant, you can set a custom size instead. See the banner…

Read More Read More

The ARCore dependency minimum version code com.google.ar.core.min_apk_version is missing from the AndroidManifest.xml file although the meta-data tag com.google.ar.core has been specified.

The ARCore dependency minimum version code com.google.ar.core.min_apk_version is missing from the AndroidManifest.xml file although the meta-data tag com.google.ar.core has been specified.

Problem : The ARCore dependency minimum version code com.google.ar.core.min_apk_version is missing from the AndroidManifest.xml file although the meta-data tag com.google.ar.core has been specified.   Solution : This is Unity ARCode dependency problem. just add this line in menifest   <meta-data android:name=”com.google.ar.core.min_apk_version” android:value=”24″ />

Android best libraries for android developers

Android best libraries for android developers

Fancy Toast: Coloring toast message. It’s looking good and user friendly. Fancy Toast is awesome library for developers. Speed Dial Fab :  Android library providing an implementation of the Material Design Floating Action Button Speed Dial. Features  MinSdk 14  Highly customizable for your customer portal software (label, icon, ripple, fab and label background colors, themes support)  Same animations as in Inbox by Gmail  Option to have different icons for open/close state  Optional overlay/touch guard layout  Support for bottom, left and right menu…

Read More Read More

Google Admob implementation : Interstitial

Google Admob implementation : Interstitial

Before Follow this tutorial please first complete the project configuration about how to integrate admob in android .  GOOGLE ADMOB IMPLEMENTATION ON ANDROID PROJECT   Step 1 :Create an interstitial ad object Interstitial ads are requested and shown by InterstitialAd objects. The first step is instantiating InterstitialAd and setting its ad unit ID. This is done in the onCreate() method of an Activity: Step 2 : Always test with test ads When building and testing your apps, make sure you…

Read More Read More

Execution failed for task

Execution failed for task

‘:app:transformDexArchiveWithExternalLibsDexMergerForDebug’. > com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex Error:Execution failed for task Solution : Step 1 : Clean Step 2 : Rebuild if the you are facing the following problem update google service class path.

Error:Execution failed for task

Error:Execution failed for task

Error:Execution failed for task ‘:app:transformDexArchiveWithDexMergerForDebug’. > com.android.build.api.transform.TransformException: com.android.dex.DexException: Multiple dex files define Lcom/google/android/gms/internal/measurement/zzws;   update the google-service plugin to: classpath ‘com.google.gms:google-services:3.3.0’

Error:Execution failed for task ‘:app:processDebugGoogleServices’. > Please fix the version conflict either by updating the version of the google-services plugin (information about the latest version is available at https://bintray.com/android/android-tools/com.google.gms.google-services/) or updating the version of com.google.android.gms to 11.4.2.

Error:Execution failed for task ‘:app:processDebugGoogleServices’. > Please fix the version conflict either by updating the version of the google-services plugin (information about the latest version is available at https://bintray.com/android/android-tools/com.google.gms.google-services/) or updating the version of com.google.android.gms to 11.4.2.

Solution : Check all google version is same. If google play service is different then others then there may create conflict. Firebase and others google services should be in same version. Example :

Google Admob implementation on android project

Google Admob implementation on android project

All are described here here https://developers.google.com/admob/android/quick-start. I am only arrange step by step procedure- Step 1 : Example project-level build.gradle (excerpt) add this on build.gradle(global) in repositories brackets as like – Step 2 : Step 3 : Update your AndroidManifest.xml Add your AdMob App ID to your app’s AndroidManifest.xml file by adding the tag shown below. You can find your App ID in the AdMob UI. Step 4 : Before loading ads, have your app initialize the Mobile Ads SDK…

Read More Read More

Unity google admob implementation

Unity google admob implementation

Part 1 : Go to the git repository and download/clone it https://github.com/googleads/googleads-mobile-unity Part 2:  Download unity google admob latest plugin https://github.com/googleads/googleads-mobile-unity/releases Part 3 Create a Unity Project and import the plugin Part 4: Go to following directory of the repository you download of step 1 : google admob plugins\googleads-mobile-unity-master\googleads-mobile-unity-master\samples\HelloWorld\Assets\Scripts Part 5 : Copy the script to the assset folder Part 6 : Attach the script to MainCamera. Part 7: It should show default ads when you will build it for…

Read More Read More

Android app debug over wifi in real devices

Android app debug over wifi in real devices

Step 1 : Open android studio . Now go to File->Settings->Plugins->Browse Plugins->Android WiFi ADB . Step 2 : Install it and restart . Step 3 : Connect Android Phone/device with cable . Step 4 : Right side ADB Wifi ADB Will be visible . Connect device . Done Now disconnect cable and run project . It will work fine. N.B: It’s essential to connect with same network /WiFi both at PC and Android Phone.    

This Activity already has an action bar supplied by the window decor

This Activity already has an action bar supplied by the window decor

Add this two line in your style.xml file : <item name=”windowActionBar”>false</item> to your theme declaration inside of your app/src/main/res/values/styles.xml. Also, if you’re using AppCompatActivity support library of version 22.1 or greater, add this line: <item name=”windowNoTitle”>true</item> Your theme declaration may look like this after all these additions: <!– Base application theme. –> <style name=”AppTheme” parent=”Theme.AppCompat.Light.DarkActionBar”> <!– Customize your theme here. –> <item name=”colorPrimary”>@color/colorPrimary</item> <item name=”colorPrimaryDark”>@color/colorPrimaryDark</item> <item name=”colorAccent”>@color/colorAccent</item> <item name=”windowActionBar”>false</item> <item name=”windowNoTitle”>true</item> </style>

Java design pattern – Introduction

Java design pattern – Introduction

What is design pattern :  Java is a object oriented programming based language. Software developers are use OOP(Object oriented progamming) to maintain code and structure in well defined. Design patterns are best practices/ways of use of OOP that makes easy to software development task. visit https://www.salesforce.com/blog/2013/07/selling-service-not-sales.html for more information. Why we will design patterns ?:  Flexibility: Using design patterns your code becomes flexible. It helps to provide the correct level of abstraction due to which objects become loosely coupled to each other which makes…

Read More Read More