Chuyển đến nội dung chính

Bài đăng

Sữa lỗi khi debug thành file apk sau đó cài lên máy thì Activity không hiển thị được Google Map

1/ Thêm biến môi trường Environment Variables: Tab System variables biến Path thêm đường dẫn tới thư mục bin của Java - Ví dụ: C:\Program Files\Java\jdk-11.0.1\bin 2/ Mở PowerShell gõ lệnh: keytool -list -v -keystore "URL ĐẾN FILE KEY STORE" -alias androiddebugkey -storepass android -keypass android Enter nó sẽ sinh ra 1 chuỗi SHA1 2/ Truy cập trang web console.developers.google.com click vào tên API Key Nó sẽ hiện ra trang: Kéo xuống đưới sẽ có chỗ nhập packe name của ứng dụng và SHA1 Nhập 2 thông tin trên rồi nhấn SAVE 3/ Debug lại file apk là được Video tham khảo:

Tạo Spinner lọc theo từ khoá nhập vào

https://www.androidtutorialpoint.com/material-design/android-spinner-search-implementation/ The UI Will appear like this:   Creating Project – SearchableSpinner Open your Android Studio & create a new Project CustomSearch, we are using androidtutorial.com as our domain name but you may leave it as default and also we have taken Blank Activity for this project, you may go according to your requirements. The name for activity is by default MainActivity, and we have kept all the things by default and then clicked finish. After the project is created and Gradle dependencies are resolved, you may start. Add Gradle Dependencies Build.gradle(Module: app ) 1 2 3 4 5 6 dependencies {     compile fileTree(dir: 'libs', include: ['*.jar'])   testCompile 'junit:junit:4.12'     compile 'com.android.support:appcompat-v7:25.1.1'     compile 'com.toptoche.searchablespinner:searchable...