Posts

Showing posts from November, 2019

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