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.support.v7.app.ActionBarActivity;
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) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        myWebView = (WebView) findViewById(R.id.webview);
        myWebView.setWebViewClient(new WebViewClient());
        myWebView.loadUrl("http://www.coin1service.com");


        this.myWebView.setWebViewClient(new WebViewClient(){

            @Override
            public boolean shouldOverrideUrlLoading(WebView view, String url){
                view.loadUrl(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 www.mywebsite.com. It’s comprised of a few parts:
  1. A Subdomain, Like “www” or “blog” in “blog.mysite.com”. 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 “mysite.brace.io”. Some websites don’t have a subdomain at all.
  2. A custom name, like “mysite” in “www.mysite.com”.
  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: “.co.uk”) In recent years, TLDs have been co-opted to provide alternative meanings. (ex: “del.icio.us” and “cloud.tv”)

Apex or Root Domain

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

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 284.215.12.49.

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, “http://www.mydomain.com/mypath”.

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 “mydomain.com” with 284.215.12.49.
  • CNAME Records: Used to point a Subdomain to a different Domain Name. For example, a CNAME Record could be used to point “forum.mydomain.com” to “http://mydomain.coolforums.com”. The URL doesn’t change in the process, so visitors will only see the original subdomain, like “forum.mydomain.com” 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 “mydomain.com” to “http://mydomain.coolforums.com”)

No comments:

Post a Comment