https://www.androidauthority.com/building-multiple-flavors-android-app-706436/
This Blog is first of all memos for me!! From time to time I get exposed to new and cool stuff for developers and architects ,most of the time its a solution for a problem or tips or tricks, so, I would like to track my memos and share it with you, it can save your time and nervous, I hope you will enjoy it - by Yaniv Tzanany.
Search This Blog
Thursday, October 28, 2021
Sunday, March 7, 2021
Tuesday, October 27, 2020
Connect head unit DHU - android google auto - info and links
find your google auto app.
i used search in the app to get access to my app.
download latest head unit
https://developer.android.com/training/cars/testing
in my phone - i get into the app
i click on the "version" 10 times and get into developer mode.
i run on the computer - command line
adb forward tcp:5277 tcp:5277
on the app menu (right left corner) i "start the head unit server"
on my computer i lunch the app desktop-head-unit.exe
and in the app i click " connect to car"
and this is it
good luck
Yaniv Tzanany
Universal Android Music Player Sample
Friday, July 31, 2020
Wednesday, April 15, 2020
Friday, January 10, 2020
Android notification - information
Tuesday, December 10, 2019
Android webview sample with permission and upload / download files
https://www.gauntface.com/blog/2014/10/17/what-you-need-to-know-about-the-webview-in-l
good sample for uploading file from devicehttps://github.com/googlearchive/chromium-webview-samples/tree/master/input-file-example
sample with download file from webview
https://androidride.com/android-webview-example-tutorial-kotlin-java-download-source-code/#android%20webview%20download%20file%20example
sample app for PermissionRequest
from here https://stackoverflow.com/questions/40236925/allowing-microphone-accesspermission-in-webview-android-studio-java
https://github.com/googlesamples/android-PermissionRequest
Monday, September 16, 2019
Android Emulator: Process finished with exit code -1073741819
- find your avd folder.(If your using Windows OS, the default path is
C:\Users\USER_NAME\ .android\avd\YOUR_VIRTUAL_DEVICE_NAME.avd) - open the file
config.ini - find
hw.gpu.modeand set it tooff(hw.gpu.mode=off) - launch the AVD manager
- launch your virtual device.
Monday, September 9, 2019
Android Build Types and Product Flavors
Very good tutorial to generate few build type
https://www.journaldev.com/21533/android-build-types-product-flavors#targetText=Android%20Build%20Types,you%20to%20sign%20the%20APK.
Thursday, April 18, 2019
Saturday, March 30, 2019
Thursday, February 21, 2019
FCM push via ARC chrome extension
you can do it via postman as well (https://medium.com/android-school/test-fcm-notification-with-postman-f91ba08aacc3)
Saturday, February 2, 2019
android sources + test - real code
https://android.googlesource.com/platform/frameworks/base
test for example need to drill down
https://android.googlesource.com/platform/frameworks/base/+/marshmallow-release/tests/
Friday, January 18, 2019
Friday, June 22, 2018
Tuesday, February 13, 2018
Pushy - Lightning-Fast & Highly-Reliable Push Notifications
e.g for china user no GCM , or when you cant have Google play store - e.g. in the car .
so the alternative is jPush or Pushy - maybe there are more...
pushy looks easy and well documented
Pushy - Lightning-Fast & Highly-Reliable Push Notifications:
nice article about non GCM could be found here
https://mobikul.com/android-push-notification-in-china/
enjoy
Yaniv Tzanany
Sunday, February 11, 2018
Wednesday, February 7, 2018
Monday, January 22, 2018
Android studio Failed to load class dynamically
via such code below:
ClassLoader cl = getClassLoader(); Class classToInvestigate = df.loadClass(className, cl);
in out case we needed to remove (disbaled) the instant run , and in the class name
we needed to change from string ("com.xx.yy.teston") to getCanonicalName()
e.g. com.xx.yy.teston.class.getCanonicalName()
here how i disabled the instant run
i hope you will find it useful.
Saturday, November 25, 2017
View Settings/secure/global data from Android
i find out this command to View the data :
adb shell content
e.g. - to see all global settingsadb shell content query --uri content://settings/global
adb shell content query --uri content://settings/system
adb shell content query --uri content://settings/secure
there is also a tool - have a look at adb-export
enjoy
Yaniv Tzanany
