Wednesday, 23 May 2018

Android Runtime Permission with MyPermission Library in Kotlin

Android run time permission with MyPermission Library in Kotlin . You can get Code from github DOWNLOAD I am writing below Main Activity Code to have Access Permisssion MainActivity.java import android.Manifest import android.os.Bundle import com.stacklearning.mypermissionlibrary.MyPermission import...

Wednesday, 7 March 2018

Android Scanner App Tutorial With Zxing Library

Android Scanner Tutorial with Zxing Library Today i am going to let you know how to make "Scanner App". I got lot of messages and comment to a make a tutorial on scanner .  I have used Zxing Library, there are other libraries also. But i am usi...

Tuesday, 6 March 2018

Custom ListView with Image and Text

Custom ListView with Android Custom Listview is diffrent from SImple Listview in terms of complexity. Like  simple Listview, custom ListView also uses Adapter to insert data from data source like as string array, array, database etc.    Now in this tutorail you will learn  about...

Monday, 5 March 2018

Constraint Layout Android

Constraint Layout in Andorid : Q: Why Constraint Layout in Android ? What is the need to use Constraint Layout? There are some Problems in Standard Layout in Android . Positioning Problems :Views are position using <Layout >elements like Relative layout, Linear layout or child elements itself . Lets take an example, if i need margin from...

Friday, 23 February 2018

Go to My App App Permission screen Setting

Navigate to App Setting in Android : Android App Setting Screen Below is the code to navigate App Setting in Android . Sometimes we need to send user to App Setting Screen . Lets take an example, in Android Mashmallow device , if user permanent denied the permission then user has to...

Android MVP Tutorial From Beginer to Advance Part 1

Android MVP Tutorial This Tutorial is based on Android Mvp, and we are going to teach you MVP part by part basis . This is the first part and you can go to second part here to learn more . Android MVP Mvp is Model View Presenter . MVP is a pattern to make the Android code stay clean ....

Thursday, 22 February 2018

How to Create Server in Node js

const http = require('http'); const hostname = '127.0.0.1'; const port = 3000; const server = http.createServer((req, res) => { res.statusCode = 200; res.setHeader('Content-Type', 'text/plain'); res.end('Hello World\n'); }); server.listen(port, hostname, () => { console.log(`Server running at http://${hostname}:${port}/`); }); Simple As it is . We have to give Host Name and port...

Android Runtime Permissions with Dexter Library (Simple Approach)

App Permission with Dexter Library Android Runtime Permission With Dexter Library Implementing Android runtime permissions intoduces in Mashmallow is a hard process and developer needs to write lot of code just to get a single permission. User has to allow or deny any permission at runtime.We...

Wednesday, 21 February 2018

Tuesday, 20 February 2018

Monday, 19 February 2018

Configure Build Variants in Android Gradle

 Want to make Multiple Flavour of an Andoid App ?        Yes the solution is configure your build variant with diffrent flavours . Build variant represents a different version of your app , Like one is debug app and one is release app Like you want to create...

Saturday, 17 February 2018

Keeping the Device Awake Android ( Keep Screen On )

2 Ways  , We can Keep the screen On . 1 . XML2. Coding Via Xml  : In the root of your layout xml <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"     android:layout_width="match_parent"     android:layout_height="match_parent"     android:keepScreenOn="true">     ...</LinearLayout> Coding : public class MyActivity...