bpeng / tickets

0 stars 0 forks source link

Android #7

Open bpeng opened 8 years ago

bpeng commented 8 years ago
android upgrade

https://stackoverflow.com/questions/51342200/cannot-resolve-method-setshiftingmodeboolean-in-bottomnavigationview https://developers.google.com/maps/documentation/android-sdk/config#specify_requirement_for_apache_http_legacy_library https://developer.android.com/jetpack/androidx/migrate https://developer.android.com/topic/libraries/support-library/packages https://github.com/google/volley/issues/235

dependency check https://stackoverflow.com/questions/42374151/all-com-android-support-libraries-must-use-the-exact-same-version-specification ./gradlew -q dependencies app:dependencies

UI Test

https://github.com/googlesamples/android-testing/tree/master/ui/espresso/BasicSample

https://saucelabs.com/blog/the-top-5-android-ui-frameworks-for-automated-testing https://developer.android.com/training/testing/

https://developer.android.com/training/testing/ui-testing/espresso-testing#java

https://github.com/taehwandev/Android-BlogExample/tree/master/2016-08-11-WebViewJavascriptInterafce

custom popup

https://github.com/owncloud/android/tree/4dc81e516829cdde06e1bdc966b9f55758e915a5/src/com/owncloud/android/ui

bpeng commented 8 years ago

Android imageview http://stackoverflow.com/questions/4181774/show-image-view-from-file-path

bpeng commented 8 years ago

CALABASH

commands: calabash-android console app/build/outputs/apk/app-debug.apk calabash-android run app/build/outputs/apk/app-debug.apk calabash-android run app/build/outputs/apk/app-debug.apk --tag @QuakeList

irb(main):061:0* reinstall_apps irb(main):065:0* start_test_server_in_background irb(main):071:0* touch(query("button text:'Strong+'"))

touch(query("TextView text:'Tue, Jan 6 2015, 06:48:41 am'"))

bpeng commented 7 years ago

Urban airship Urban airship api https://docs.urbanairship.com/api/ua.html#apid-listing Notes : dev/android/doc/

UA report http://docs.urbanairship.com/user-guide/reports.html#push-response-report

bpeng commented 7 years ago

android O migrating:

upgrade gradle-3.0.0 issue

A problem occurred configuring project ':app'.
> No such property: zipAlignEnabled for class: com.android.build.gradle.internal.variant.ApplicationVariantData

upgrade gradle-play-publisher to 1.2.0 solves the problem: https://github.com/Triple-T/gradle-play-publisher

bpeng commented 7 years ago

Firebase test lab: https://firebase.google.com/docs/test-lab/overview

bpeng commented 7 years ago

MacOs hiseria issue

https://stackoverflow.com/questions/44814815/cant-launch-avd-on-macos-10-13 https://blog.celogeek.com/201708/672/android-studio-emulator-haxm-on-mac-os-high-serria-10-13/

bpeng commented 6 years ago

Android gradle plugin build issue

https://issuetracker.google.com/issues/69380617

https://github.com/JakeWharton/timber/blob/master/build.gradle
bpeng commented 6 years ago

Android O Notifications:

https://github.com/GeoNet/AndroidQuakeNG/issues/460
bpeng commented 6 years ago

Bottom navigationbar:

https://stackoverflow.com/questions/36032177/android-new-bottom-navigation-bar-or-bottomnavigationview/36033640#36033640

protobuf

https://github.com/elye/demo_android_protobuf_simple

https://stackoverflow.com/questions/17057649/how-to-request-protobuf-using-volley
bpeng commented 6 years ago

custom font: http://stacktips.com/tutorials/android/using-external-fonts-in-android-view

bpeng commented 6 years ago

Fragment mix up:

https://stackoverflow.com/questions/28163631/android-using-both-getfragmentmanager-and-getsupportfragmentmanager-causes-overl/28164583#28164583

bpeng commented 6 years ago

UA config: https://stackoverflow.com/questions/22302696/where-is-the-airshipconfig-properties

https://github.com/jondistad/vimclojure/blob/master/build.gradle

https://docs.urbanairship.com/platform/android/

bpeng commented 6 years ago

Action bar title https://stackoverflow.com/questions/38582331/toolbar-title-doesnt-center-when-back-button-is-enable

bpeng commented 6 years ago

Split view:

https://developer.android.com/training/multiscreen/screensizes#alternative-layouts

bpeng commented 6 years ago

PMD

https://github.com/pmd/pmd/issues/805

https://github.com/pmd/pmd/tree/master/pmd-java/src/main/resources/rulesets/java
bpeng commented 6 years ago

Actionbar shadow

https://stackoverflow.com/questions/26721683/android-appcompat-21-how-to-add-shadow-on-actionbar/26759202

bpeng commented 6 years ago

Bottom navigation badge https://stackoverflow.com/questions/42682855/display-badge-on-top-of-bottom-navigation-bars-icon

bpeng commented 6 years ago

File system

adb shell
adb pull /mnt/sdcard/DCIM ./
bpeng commented 6 years ago

Dependency check

./gradlew -q :app:dependencyInsight --dependency support-media-compat --configuration debugAndroidTestCompileClasspath

./gradlew -q :app:dependencyInsight --dependency support-v4 --configuration debugAndroidTestCompileClasspath

./gradlew -q :app:dependencyInsight --dependency android.arch.lifecycle --configuration debugAndroidTestCompileClasspath

build error

FAILURE: Build failed with an exception.

* What went wrong:
Could not resolve all files for configuration ':app:_internal_aapt2_binary'.
> Could not find aapt2-osx.jar (com.android.tools.build:aapt2:3.2.0-4818971).
  Searched in the following locations:
      s3://maven.geonet.org.nz/com/android/tools/build/aapt2/3.2.0-4818971/aapt2-3.2.0-4818971-osx.jar

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

fixed after change the gradle version:

build.gradle:
classpath 'com.android.tools.build:gradle:3.1.2'
gradle/wrapper/gradle-wrapper.properties
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip
bpeng commented 6 years ago

missed notifications

https://github.com/GeoNet/AndroidQuake/issues/179
https://stackoverflow.com/questions/5290141/android-broadcastreceiver-on-startup-keep-running-when-activity-is-in-backgrou
https://developer.android.com/training/notify-user/build-notification#java

Version check and notification

https://stackoverflow.com/questions/43648520/how-do-you-prompt-the-user-to-update-google-play-services
bpeng commented 6 years ago

dialog style

https://stackoverflow.com/questions/38549329/setting-message-text-appearance-in-alert-dialog-using-xml-android-api-level-23