Monday, September 10, 2018

Tutorial Membuat Info Ip Tools untuk aplikasi Auto Impression Dengan aplikasi Aide

Link Download Anda Sedang Disiapkan...



Diartikel ini saya akan membahas step atau cara trakhir Untuk membuat Aplikasi Auto Impression melalui aplikasi Aide dan artikel ini saya akan membahas tentang cara membuat Info Ip Tools untuk aplikasi Auto Impression.

Tutorial Membuat Info Ip Tools untuk aplikasi Auto Impression.

1. Buka Aplikasi Aide
2. Cari dan  buka folder App > Src > Java > Data  ( yang telah Anda Buat distep ke tiga)
3. Buatlah File java Seperti yang ada di gambar ini
4. Ganti Package name [ com.debt.advantor.bwr.data]  denban Package name anda.
5. Ganti semua code java yang ada di file java : FetchGeoIp. Java dengan code dibawah ini
package com.debt.advantor.bwr.data;


import android.annotation.SuppressLint;
import android.os.AsyncTask;
import android.util.Log;

import com.debt.advantor.bwr.Ban5int1Activity;

import org.json.JSONException;
import org.json.JSONObject;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Objects;

/**
 * Created by MBP on 12/29/17.
 */

public class FetchGeoIp extends AsyncTask<Void,Void,Void> {
    private String data="";
    private String dataAll="";
    private String lines = "";

    @Override
    protected Void doInBackground(Void... voids) {
        BufferedReader bufferedReader = null;
        try {
            URL url = new URL("http://freegeoip.net/json/");
            HttpURLConnection httpURLConnection = (HttpURLConnection) url.openConnection();
            InputStream inputStream = httpURLConnection.getInputStream();
            bufferedReader = new BufferedReader(new InputStreamReader(inputStream));
            String line = bufferedReader.readLine();

            while (!Objects.equals(line, lines)) {
                data = line + "\n";
                lines = line;
            }

            JSONObject JO = new JSONObject(data);
            dataAll = "IP : "+JO.getString("ip")+"\n"+

"Country Name : "+JO.getString("country_name")+"\n"+
"Region Name : "+JO.getString("region_name")+"\n"+
"City : "+JO.getString("city")+"\n"+
"Time Zone : "+JO.getString("time_zone")+"\n";


        } catch (JSONException | IOException e) {
            e.printStackTrace();
        }
        return null;
    }
    @SuppressLint("SetTextI18n")
    @Override
    protected void onPreExecute() {
        super.onPreExecute();
        Ban5int1Activity.data.setText("Loading...");
super.onPreExecute();
     
    }


    @Override
    protected void onPostExecute(Void aVoid) {
        super.onPostExecute(aVoid);
        Log.d("IP1", "onPostExecute: "+data);
        Log.d("IP2", "onPostExecute: "+dataAll);
        Ban5int1Activity.data.setText(this.dataAll);


    }
5. Ganti semua code java yang ada di file java : FetchGeoIp1. Java dengan code dibawah ini
package com.debt.advantor.bwr.data;


import android.annotation.SuppressLint;
import android.os.AsyncTask;
import android.util.Log;

import com.debt.advantor.bwr.Autoban10in1Activity;

import org.json.JSONException;
import org.json.JSONObject;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Objects;
import android.os.CountDownTimer;
import android.os.Handler;
/**
 * Created by MBP on 12/29/17.
 */

public class FetchGeoIp1 extends AsyncTask<Void,Void,Void> {
    private String data="";
    private String dataAll="";
    private String lines = "";
private Handler h;
private Runnable r;
    @Override
    protected Void doInBackground(Void... voids) {

        BufferedReader bufferedReader = null;
        try {
            URL url = new URL("http://freegeoip.net/json/");
            HttpURLConnection httpURLConnection = (HttpURLConnection) url.openConnection();
            InputStream inputStream = httpURLConnection.getInputStream();
            bufferedReader = new BufferedReader(new InputStreamReader(inputStream));
            String line = bufferedReader.readLine();

            while (!Objects.equals(line, lines)) {
                data = line + "\n";
                lines = line;
            }

            JSONObject JO = new JSONObject(data);
            dataAll = "IP : "+JO.getString("ip")+"\n"+

"Country Name : "+JO.getString("country_name")+"\n"+
"Region Name : "+JO.getString("region_name")+"\n"+
"City : "+JO.getString("city")+"\n"+
"Time Zone : "+JO.getString("time_zone")+"\n";



        } catch (JSONException | IOException e) {
            e.printStackTrace();
        }
        return null;

    }
    @SuppressLint("SetTextI18n")
    @Override
    protected void onPreExecute() {
        super.onPreExecute();
        Autoban10in1Activity.data.setText("Loading...");
super.onPreExecute();

    }


    @Override
    protected void onPostExecute(Void aVoid) {
        super.onPostExecute(aVoid);
        Log.d("IP1", "onPostExecute: "+data);
        Log.d("IP2", "onPostExecute: "+dataAll);
        Autoban10in1Activity.data.setText(this.dataAll);

}
    }
6. Ganti semua code java yang ada di file java : FetchGeoIp2. Java dengan code dibawah ini
package com.debt.advantor.bwr.data;


import android.annotation.SuppressLint;
import android.os.AsyncTask;
import android.util.Log;

import com.debt.advantor.bwr.Autoban5int1Activity;

import org.json.JSONException;
import org.json.JSONObject;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Objects;

/**
 * Created by MBP on 12/29/17.
 */

public class FetchGeoIp2 extends AsyncTask<Void,Void,Void> {
    private String data="";
    private String dataAll="";
    private String lines = "";

    @Override
    protected Void doInBackground(Void... voids) {
        BufferedReader bufferedReader = null;
        try {
            URL url = new URL("http://freegeoip.net/json/");
            HttpURLConnection httpURLConnection = (HttpURLConnection) url.openConnection();
            InputStream inputStream = httpURLConnection.getInputStream();
            bufferedReader = new BufferedReader(new InputStreamReader(inputStream));
            String line = bufferedReader.readLine();

            while (!Objects.equals(line, lines)) {
                data = line + "\n";
                lines = line;
            }

            JSONObject JO = new JSONObject(data);
            dataAll = "IP : "+JO.getString("ip")+"\n"+

"Country Name : "+JO.getString("country_name")+"\n"+
"Region Name : "+JO.getString("region_name")+"\n"+
"City : "+JO.getString("city")+"\n"+
"Time Zone : "+JO.getString("time_zone")+"\n";


        } catch (JSONException | IOException e) {
            e.printStackTrace();
        }
        return null;
    }
    @SuppressLint("SetTextI18n")
    @Override
    protected void onPreExecute() {
        super.onPreExecute();
        Autoban5int1Activity.data.setText("Loading...");
super.onPreExecute();

    }


    @Override
    protected void onPostExecute(Void aVoid) {
        super.onPostExecute(aVoid);
        Log.d("IP1", "onPostExecute: "+data);
        Log.d("IP2", "onPostExecute: "+dataAll);
        Autoban5int1Activity.data.setText(this.dataAll);


    }
7. Ganti semua code java yang ada di file java : FetchGeoIp3. Java dengan code dibawah ini
package com.debt.advantor.bwr.data;


import android.annotation.SuppressLint;
import android.os.AsyncTask;
import android.util.Log;

import com.debt.advantor.bwr.Ban10int1Activity;

import org.json.JSONException;
import org.json.JSONObject;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Objects;

/**
 * Created by MBP on 12/29/17.
 */

public class FetchGeoIp3 extends AsyncTask<Void,Void,Void> {
    private String data="";
    private String dataAll="";
    private String lines = "";

    @Override
    protected Void doInBackground(Void... voids) {
        BufferedReader bufferedReader = null;
        try {
            URL url = new URL("http://freegeoip.net/json/");
            HttpURLConnection httpURLConnection = (HttpURLConnection) url.openConnection();
            InputStream inputStream = httpURLConnection.getInputStream();
            bufferedReader = new BufferedReader(new InputStreamReader(inputStream));
            String line = bufferedReader.readLine();

            while (!Objects.equals(line, lines)) {
                data = line + "\n";
                lines = line;
            }

            JSONObject JO = new JSONObject(data);
            dataAll = "IP : "+JO.getString("ip")+"\n"+

"Country Name : "+JO.getString("country_name")+"\n"+
"Region Name : "+JO.getString("region_name")+"\n"+
"City : "+JO.getString("city")+"\n"+
"Time Zone : "+JO.getString("time_zone")+"\n";


        } catch (JSONException | IOException e) {
            e.printStackTrace();
        }
        return null;
    }
    @SuppressLint("SetTextI18n")
    @Override
    protected void onPreExecute() {
        super.onPreExecute();
        Ban10int1Activity.data.setText("Loading...");
super.onPreExecute();

    }


    @Override
    protected void onPostExecute(Void aVoid) {
        super.onPostExecute(aVoid);
        Log.d("IP1", "onPostExecute: "+data);
        Log.d("IP2", "onPostExecute: "+dataAll);
        Ban10int1Activity.data.setText(this.dataAll);


    }
8. Ganti semua code java yang ada di file java : FetchGeoIp4. Java dengan code dibawah ini
package com.debt.advantor.bwr.data;


import android.annotation.SuppressLint;
import android.os.AsyncTask;
import android.util.Log;

import com.debt.advantor.bwr.Ban1int1Activity;

import org.json.JSONException;
import org.json.JSONObject;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Objects;

/**
 * Created by MBP on 12/29/17.
 */

public class FetchGeoIp4 extends AsyncTask<Void,Void,Void> {
    private String data="";
    private String dataAll="";
    private String lines = "";

    @Override
    protected Void doInBackground(Void... voids) {
        BufferedReader bufferedReader = null;
        try {
            URL url = new URL("http://freegeoip.net/json/");
            HttpURLConnection httpURLConnection = (HttpURLConnection) url.openConnection();
            InputStream inputStream = httpURLConnection.getInputStream();
            bufferedReader = new BufferedReader(new InputStreamReader(inputStream));
            String line = bufferedReader.readLine();

            while (!Objects.equals(line, lines)) {
                data = line + "\n";
                lines = line;
            }

            JSONObject JO = new JSONObject(data);
            dataAll = "IP : "+JO.getString("ip")+"\n"+

"Country Name : "+JO.getString("country_name")+"\n"+
"Region Name : "+JO.getString("region_name")+"\n"+
"City : "+JO.getString("city")+"\n"+
"Time Zone : "+JO.getString("time_zone")+"\n";


        } catch (JSONException | IOException e) {
            e.printStackTrace();
        }
        return null;
    }
    @SuppressLint("SetTextI18n")
    @Override
    protected void onPreExecute() {
        super.onPreExecute();
        Ban1int1Activity.data.setText("Loading...");
super.onPreExecute();

    }


    @Override
    protected void onPostExecute(Void aVoid) {
        super.onPostExecute(aVoid);
        Log.d("IP1", "onPostExecute: "+data);
        Log.d("IP2", "onPostExecute: "+dataAll);
        Ban1int1Activity.data.setText(this.dataAll);


    }
9. Ganti semua code java yang ada di file java : FetchGeoIp5. Java dengan code dibawah ini
package com.debt.advantor.bwr.data;


import android.annotation.SuppressLint;
import android.os.AsyncTask;
import android.util.Log;

import com.debt.advantor.bwr.Autoban1int1Activity;

import org.json.JSONException;
import org.json.JSONObject;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Objects;

/**
 * Created by MBP on 12/29/17.
 */

public class FetchGeoIp5 extends AsyncTask<Void,Void,Void> {
    private String data="";
    private String dataAll="";
    private String lines = "";

    @Override
    protected Void doInBackground(Void... voids) {
        BufferedReader bufferedReader = null;
        try {
            URL url = new URL("http://freegeoip.net/json/");
            HttpURLConnection httpURLConnection = (HttpURLConnection) url.openConnection();
            InputStream inputStream = httpURLConnection.getInputStream();
            bufferedReader = new BufferedReader(new InputStreamReader(inputStream));
            String line = bufferedReader.readLine();

            while (!Objects.equals(line, lines)) {
                data = line + "\n";
                lines = line;
            }

            JSONObject JO = new JSONObject(data);
            dataAll = "IP : "+JO.getString("ip")+"\n"+

"Country Name : "+JO.getString("country_name")+"\n"+
"Region Name : "+JO.getString("region_name")+"\n"+
"City : "+JO.getString("city")+"\n"+
"Time Zone : "+JO.getString("time_zone")+"\n";


        } catch (JSONException | IOException e) {
            e.printStackTrace();
        }
        return null;
    }
    @SuppressLint("SetTextI18n")
    @Override
    protected void onPreExecute() {
        super.onPreExecute();
        Autoban1int1Activity.data.setText("Loading...");
super.onPreExecute();

    }


    @Override
    protected void onPostExecute(Void aVoid) {
        super.onPostExecute(aVoid);
        Log.d("IP1", "onPostExecute: "+data);
        Log.d("IP2", "onPostExecute: "+dataAll);
        Autoban1int1Activity.data.setText(this.dataAll);


    }
Step 1: Tutorial Membuat Aplikasi Auto Impression Melalui HP
Step 2: Tutorial Membuat String dan Memasang Activity di AndroidManifest
Step 3: Tutorial Membuat Activity Java Untuk Aplikasi Auto Impression Dengan aplikasi Aide

1 komentar

mungkin sekedar saran nih, coba klo untuk codingnya, di bikin dropdown atau bisa diclose.
biar bacanya gk terlalu panjang kebawah.


EmoticonEmoticon

security Safelink Converter
Amankan Link anda dari virus, malware, trojan, dll
link