Posts

Showing posts with the label Android

Android Private DNS with Ad Guard

Android Private DNS with Ad Guard Recently, Google officially launched Android 9 Pie, which includes a slew of new features around digital well-being, security, and privacy. If you’ve poked around the network settings on your phone while on the beta or after updating, you may have noticed a new Private DNS Mode now supported by Android. This new feature simplifies the process of configuring a custom secure DNS resolver on Android, meaning parties between your device and the websites you visit won’t be able to snoop on your DNS queries because they’ll be encrypted. The protocol behind this, TLS, is also responsible for the green lock icon you see in your address bar when visiting websites over HTTPS. The same technology is useful for encrypting DNS queries, ensuring they cannot be tampered with and are unintelligible to ISPs, mobile carriers, and any others in the network path between you and your DNS resolver. These new security protocols are called DNS over HTTPS, and DNS over TLS. Co...

Android Studio App open PDF file with a built-in PDF viewer

Android Studio  Android App open PDF file with a built-in PDF viewer download here Create a new project "Empty Activity" Language "Java" Minimum API 25 1. Create an assets folder and copy the pdf file into it. Right on the app > New > Folder > Assets Folder 2. replace all codes in build.gradle (Module: app) ---------------------- apply plugin: 'com.android.application' android { compileSdkVersion 28 buildToolsVersion "29.0.2" defaultConfig { applicationId "com.xyz.xyzratebook" minSdkVersion 25 targetSdkVersion 28 versionCode 4 versionName '4.0' testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" packagingOptions { // exclude unused native so file, ARMEABI has been removed in NDK r17. exclude "lib/x86/**" exclude "lib/x86_64/**" exclude ...

Android App click button launcher navigation directly

Android App click button to launcher navigation directly How to create an Android with Android Studio click button to launcher navigation Download and install Android Studio. Start a new Android Studio project. Select Empty Activity, with Jave. The code below have three button for New York airports. activity_main.xml =============== <? xml version ="1.0" encoding ="utf-8" ?> <androidx.constraintlayout.widget.ConstraintLayout xmlns: android ="http://schemas.android.com/apk/res/android" xmlns: app ="http://schemas.android.com/apk/res-auto" xmlns: tools ="http://schemas.android.com/tools" android :id ="@+id/Backgroud" android :layout_width ="match_parent" android :layout_height ="match_parent" android :background ="#2A3675" tools :context =".MainActivity" > <Button android :id ="@+id/button_ewr" ...