Search Google

Friday 6 February 2015

how to add sub domain and android webview

Android WebView click open within WebView not a default browser

 package com.example.shree.coin1service;

import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.webkit.WebView;
import android.webkit.WebViewClient;

public class MainActivity extends ActionBarActivity {
    WebView myWebView;
    public void onCreate(Bundle savedInstanceState) {
        myWebView = (WebView) findViewById(;
        myWebView.setWebViewClient(new WebViewClient());

        this.myWebView.setWebViewClient(new WebViewClient(){

            public boolean shouldOverrideUrlLoading(WebView view, String url){
                return true;


Sign into your cPanel and follow these steps:<br />

1) Go to Domains and click Subdomains

2) Enter the desired name of your subdomain<br />

3) Click Create<br />

4) You will then get a confirmation page letting you know that your subdomain has been created<br />

Basic DNS Concepts

Domain Name

This is your website’s custom name or online address. Something like It’s comprised of a few parts:
  1. A Subdomain, Like “www” or “blog” in “”. Sometimes subdomains are used to differentiate the parts of a website, like the blog and the main “www” site. Other times, a web hosting service (like Brace or Github Pages) will let users claim subdomains of their main domain, like “”. Some websites don’t have a subdomain at all.
  2. A custom name, like “mysite” in “”.
  3. A Top Level Domain or TLD. This domain suffix used to identify the kind of website. For example, “.com” for commercial sites, “.org” for non-profit organizations, and several country-specific TLDs. (ex: “”) In recent years, TLDs have been co-opted to provide alternative meanings. (ex: “” and “”)

Apex or Root Domain

A Domain Name without a subdomain. For example “”.

IP Address

A numeric address for a particular server on the internet. For two computers to communicate over the internet, they first need to know eachothers’ IP addresses. For example

Uniform Resource Locator (URL)

The full address of a web page or other resource online. It includes a protocol, a domain name and a path. For example, “”.

Domain Registrar

This is a company that sells Domain Names. (They don’t typically own the domains, but instead sell the service of registering available domains on your behalf.) Often Registrars also provide Domain Name System (DNS) Hosting. Some companies offer an all-in-one service that includes domain registration, DNS hosting and web hosting.

Domain Name System (DNS)

A system of web servers that translates Domain Names into IP Addresses. Before sending a request over the internet, a computer must first query a DNS server to determine the IP Address of the destination computer. A company that operates DNS servers is a DNS Host (which is different from web hosting).

DNS Records

DNS servers use DNS records to associate domains with IP addresses. DNS records come in a few different flavors:
  • A Records: Used to associate an Apex Domain with an IP Address. For example an A Record could be used to associate “” with
  • CNAME Records: Used to point a Subdomain to a different Domain Name. For example, a CNAME Record could be used to point “” to “”. The URL doesn’t change in the process, so visitors will only see the original subdomain, like “” not the destination domain. You cannot use a CNAME Record on an Apex Domain.
  • Alias Records: Some DNS providers support Alias Records, a non-standard record that can be used to point an Apex Domain to a different Domain Name. (ex: pointing “” to “”)

No comments:

Post a Comment