There are some simple steps to ask for permissions. we discuss them in this article we also use android best practices in the code. If you don’t know anything about android permissions checks the Things on Android Permissions Article.

So without any daily, We start the code.

here we create an app that needs Camera & Location Permission. If you want you can ask for any permission with some little changes.

Step 1: Add permission to the app manifest

<uses-permission> Tag is used to declare Different permissions.

Step 2: XML Design

I design it simple for an explanation if you want…


In Android apps, we have to ask you for permission to perform some restricted actions like taking photos, playing media, read-write in storage, etc.

If we decide to use those restricted actions in our app we have to declare appropriate permissions. So there are some Runtime permissions that users accept at runtime and there are some install time permissions that are automatically granted.

Types of Permissions

-Install-Time Permissions

Install-time permissions are those that minimally or not affect the system or other apps. When you declare install-time permissions in your app, the system automatically grants your app the permissions when the user installs your app.

An…


So there is 2 major things that you should understand as soon as possible.

  • Themes
  • Plugins & Editor

Themes

A WordPress theme is a tool to…


There are some important things about activities that we all should understand as a beginner. so let's start with the Activity life cycle.

The Activity class defines the following callbacks or events. You don’t need to implement all the callback methods. However, you must understand each one and implement those that ensure your app behaves the way users expect. below we show the Activity life cycle diagram:


Searching for a Perfect Domain name?
Searching for a Perfect Domain name?
So, you're looking for a Domain?

A domain name is your website’s equivalent of a physical address. In the same way that a GPS needs a street address or a zipcode to provide directions, a web browser needs a domain name to direct you to a website.

A domain name takes the form of two main elements. For example, the domain name Facebook.com consists of

the website’s name (Facebook) + the domain name extension (.com).

How Do Domains Work?

Domain names work by acting as a shortcut to the server that hosts your website.

Without a domain name, anyone who wanted to visit your website would have to enter the…


Kotlin is a modern but already mature programming language aimed to make developers happier. It’s concise, safe, interoperable with Java and other languages, and provides many ways to reuse code between multiple platforms for productive programming.

Package definition and imports

Program entry point

An entry point of a Kotlin application is the main function.

Another form of main accepts a variable number of String arguments.

Print to the standard output

print prints its argument to the standard output.

Functions

A function with two Int parameters and Int return type.

Code Shaan

I am a programmer and a constant learner. So I post things I'm learning and a lot I already know. Programming-based content continues as a priority.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store