Friday, 23 February 2018
Android MVP Tutorial From Beginer to Advance Part 3
Android MVP Part 3
Android MVP Part 3 |
In this Article we are going to make a project with functionality Login and HomePage via MVP Pattern.
DOWNLOAD CODE
If you are not clear with Basic of MVP Pattern, Please read first part of MVP and Second Part of MVP which shows the basic structure of MVP Pattern
DOWNLOAD CODE
If you are not clear with Basic of MVP Pattern, Please read first part of MVP and Second Part of MVP which shows the basic structure of MVP Pattern
Lets start . Continue with our project which have started in
Android MVP Tutorial From Beginer to Advance Part 1
Android MVP Tutorial |
Android MVP
Mvp is Model View Presenter . MVP is a pattern to make the Android code stay clean . In Android MVC Pattern , Code is very messy, but in MVP Pattern View is
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 number , and rest is the server code , that is
http.createServer(req, res)
server.listen(port, hostname) .
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 are going to Use Dexter library to simplify the process of adding the runtime permissions .
We are going to Use Dexter library to simplify the process of adding the runtime permissions .
With Dexter Library , we can have get "Single" runtime permission as well as "Multiple" runtime permission with just a
Wednesday, 21 February 2018
Tuesday, 20 February 2018
Monday, 19 February 2018
Saturday, 17 February 2018
Keeping the Device Awake Android ( Keep Screen On )
2 Ways , We can Keep the screen On .
1 . XML
2. 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 extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); }
Happy Coding . I appreciate your feedback .