lwc:programming:mobile:android

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
lwc:programming:mobile:android [2020/11/27 19:56] John Harrisonlwc:programming:mobile:android [2022/01/03 12:18] (current) – [Random] John Harrison
Line 2: Line 2:
  
   * https:%%//%%firebase.google.com/docs/cloud-messaging/android/client   * https:%%//%%firebase.google.com/docs/cloud-messaging/android/client
- 
  
 ===== Installing dev environment for Cordova ===== ===== Installing dev environment for Cordova =====
Line 8: Line 7:
   * sudo apt-get install ant   * sudo apt-get install ant
   * [[http://askubuntu.com/questions/56104/how-can-i-install-sun-oracles-proprietary-java-jdk-6-7-8-or-jre|install sun java 7]] (it appears OpenJDK doesn't work)   * [[http://askubuntu.com/questions/56104/how-can-i-install-sun-oracles-proprietary-java-jdk-6-7-8-or-jre|install sun java 7]] (it appears OpenJDK doesn't work)
- 
- 
-===== Extracting apk: ===== 
- 
-from [[http://stackoverflow.com/questions/4032960/how-do-i-get-an-apk-file-from-an-android-device|here]]: 
- 
-  * find out the package name: adb shell pm list packages 
-  * get the path of the package: adb shell pm path com.example.someapp 
-  * pull the apk from the device: adb pull /data/app/com.example.someapp-2.apk 
- 
- 
-\\ 
- 
  
 ===== Other ===== ===== Other =====
Line 72: Line 58:
   * iOS: splash screen work as-is without moving or renaming them and without any changes to the config.xml file.   * iOS: splash screen work as-is without moving or renaming them and without any changes to the config.xml file.
   * //This information was correct as of cordova 5.3.3//   * //This information was correct as of cordova 5.3.3//
 +==== Handy Dandy commands ====
 +  * aapt in ''build-tools'' is your friend:
 +    * get package name: ''./aapt dump badging /tmp/YOUR_APK_FILE|awk -F" " '/launchable-activity/ {print $2}'|awk -F"'" '/name=/ {print $2}''
 +    * get default activity run on launch: ''./aapt dump badging /tmp/YOUR_APK_FILE|awk -F" " '/launchable-activity/ {print $2}'|awk -F"'" '/name=/ {print $2}''
  
 +===== Random =====
 +  * OTA App updater: [[https://blog.vivekpanyam.com/evolve-seamlessly-deploy-android-apps-to-users/|Evolve]]
 +  * [[https://stackoverflow.com/questions/15813767/connect-to-wifi-programmatically-in-google-android/17643242|Connect to Wi-Fi programmatically]]
 +  * [[https://dev.to/larsonzhong/most-complete-adb-commands-4pcg|complete guide to adb]]
  • lwc/programming/mobile/android.1606528605.txt.gz
  • Last modified: 2020/11/27 19:56
  • by John Harrison