NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

package com.example.appname.activities;

import android.app.Activity;
import android.app.AlertDialog;
import android.content.ActivityNotFoundException;
import android.content.DialogInterface;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.os.CountDownTimer;
import android.support.v7.app.AppCompatActivity;
import android.text.Html;
import android.view.View;

import com.example.appname.R;

public class ActivitySplash extends AppCompatActivity {


@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_splash);


findViewById(R.id.btn_gallery).setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {

openPrivacyDialog();

}
});

findViewById(R.id.btn_rateus).setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {

Uri uri = Uri.parse("market://details?id=" + getPackageName());
Intent goToMarket = new Intent(Intent.ACTION_VIEW, uri);
// To count with Play market backstack, After pressing back button,
// to taken back to our application, we need to add following flags to intent.
goToMarket.addFlags(Intent.FLAG_ACTIVITY_NO_HISTORY |
Intent.FLAG_ACTIVITY_NEW_DOCUMENT |
Intent.FLAG_ACTIVITY_MULTIPLE_TASK);
try {
startActivity(goToMarket);
} catch (ActivityNotFoundException e) {
startActivity(new Intent(Intent.ACTION_VIEW,
Uri.parse("http://play.google.com/store/apps/details?id=" + getPackageName())));
}
}
});

findViewById(R.id.btn_moreapps).setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {

Uri mUri = Uri.parse("https://play.google.com/store/apps/developer?id=Free+Apps+House");
Intent mIntent = new Intent(Intent.ACTION_VIEW, mUri);
startActivity(mIntent);
}
});


// Creates a count down timer, which will be expired after 5000 milliseconds


// new CountDownTimer(5000,1000) {
//
// // This method will be invoked on finishing or expiring the timer
// @Override
// public void onFinish() {
// // Creates an intent to start new activity
// Intent intent = new Intent(getBaseContext(), MainActivity.class);
// startActivity(intent);
//
// finish();
// }
//
// @Override
// public void onTick(long millisUntilFinished) {
//
// }
// }.start();

}

private void openPrivacyDialog() {

//Set Message and Title
AlertDialog.Builder builder = new AlertDialog.Builder(ActivitySplash.this);
builder.setMessage(Html.fromHtml(policyText()));
// .setTitle("Information");

//Set When SEND Button Click
builder.setPositiveButton("Accept", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialogInterface, int i) {
dialogInterface.dismiss();
Intent intent = new Intent(getBaseContext(), MainActivity.class);
startActivity(intent);
finish();

}
}).setNegativeButton("I do not accept", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
dialog.dismiss();
finish();
}
});

// //Set When Cancel Button Click
// builder.setNegativeButton("CANCEL", new DialogInterface.OnClickListener() {
// @Override
// public void onClick(DialogInterface dialogInterface, int i) {
//
// //Dismissing the alertDialog
// dialogInterface.dismiss();
// }
// });

AlertDialog dialog = builder.create();
dialog.show();
}


private String policyText() {


return "<h1><strong>PRIVACY POLICY:</strong></h1>n" +
"<p><strong><u>Personal and Sensitive Information: </u></strong></p>n" +
"<p>This App is for entertainment. You change/edit your photo using this app. You draw a photo from your mobile phone camera or select a photo from your gallery.</p>n" +
"<p>This App does not allow or give access to anyone to use your personal and sensitive data saved in your mobile phone. This app is secure.</p>n" +
"<p><strong><br />n" +
"<u>Prominent Disclosure Requirement:</u></strong></p>n" +
"<p>The Apps’ functionality does not require collecting any data. A user only uses his/her data from mobile phone, saves in his/her own phone’s memory and shares with his/her contacts.</p>n" +
"<p>The App treats a user’s phone or contact book data as personal or sensitive user data and complies with the Privacy Policy, Secure Transmission, and Prominent Disclosure requirements.</p>n" +
"<p>The app does not handle non-public phone book or contact information.</p>n" +
"<p>The app does not contain anti-virus or security functionality.</p>n" +
"<p><strong><br />n" +
"<u>Device and Network Abuse:</u></strong></p>n" +
"<p>This Apps does not interfere with, disrupt, damage, or access in an unauthorized manner the user’s device, other devices or computers, servers, networks, application programming interfaces (APIs), or services, including but not limited to other apps on the device, any Google service, or an authorized carrier’s network.</p>n" +
"<p>This App complies with the default Android system optimization requirements on Google Play.</p>n" +
"<p>This App does not block or interfere with another app displaying ads.</p>n" +
"<p>This is not a game cheating app that affects the game play of other apps.</p>n" +
"<p>This App does not facilitate or provide instructions on how to hack services, software or hardware, or circumvent security protections.</p>n" +
"<p>This App does not access or use a service or API in a manner that violates its terms of service.</p>n" +
"<p><strong><u>Malicious Behavior:</u></strong></p>n" +
"<p>This App does not steal data, secretly monitor or harm users, or are otherwise malicious.</p>n" +
"<p>This App complies with the User Data policy and fully discloses its functions.</p>";
}


}
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.