Existing procedure to install iOS:-
Download binary from Dropbox
Open the application with iTunes
Click Install
Existing procedure to install Android:-
Download binary from Dropbox
Copy apk into device via USB.
Go to My Files and a appropriate folder.
Click on the apk and install it.
I want to transfer .apk (android app) or .ipa (iOS app) file to multiple devices and install it simultaneously. How would I do that?
For Android - Assuming you sync the APKs folder to your PC/Laptop this should be easy.
You can use ADB install -r apk-file-path command to push and install the APK from the dropbox folder to your device(s).
If you have multiple devices connected, you need to add a -s paramter to the command and specify the device serial id.
To list all the connected devices, use ADB devices command.
Muzikant's answer looks like it would work for Android. For iOS you should check out the Configurator. If that's too bulky for you, PhoneGap is pretty useful as well.
This would change your current iOS procedure to be:
Ensure that Dropbox is synced to a folder on your PC
You could add a daemon to watch for changes to the folder which would then launch a script that calls
$ ios-deploy -r -b your.app
You can find all iOS devices on your system by following the steps found here
Related
I am developing an Android Wear application. As per my understanding I must use Android Wear (mobile app) and install through it to watch. For this we need to build the apk each time and save it in mobile, and install it through the mobile app, so is there a better way to install the apk in the watch or is it the standard process?
You can install Wear apk in the exact same way as normal Android application.
First, attach Wear device to your computer and allow USB debugging. Alternatively, download and start Wear emulator through Android Studio.
Next, run your app through Android Studio - you can use run or debug modes.
That's it! :)
For distribution, the process is slightly different, depending on whether you want to support Wear 1.0 or only Wear 2.0, and whether companion app is needed on the phone. For Wear 2.0, you don't need mobile app anymore, it can be distributed directly, but of course depending on functionality you might want mobile app as well.
Provided you have root privilege on your Android watch:
1.Use adb shell to connect the watch and switch to su
2.Assume your watch app is called watchapp with com.watchapp so file
chmod +777 /data
chmod 777 /data/data
chmod 777 -R /data/data/com.watchapp
#There might also be other files with suffix
chmod 777 -R /data/app-lib/com.watchapp-1
3.
#adb push your new compiled so file to overwrite that file in your watch
adb push YOURNEWSOFILEPATHONEDISK /data/app-lib/com.test-1
I am developing an app for a wear device and I wanted to include the possibility to update the app by pressing a button.
This action will download an updated version of the app from a private server and run the .apk file to install, for that I have been following the code on this answer.
Everything works as expected on a real android phone but when I try to run the app in a wear device, it works to the point of downloading the updated .apk file, but the installation fails with the following message:
I was wondering if anybody could provide a better way to add update feature to an Android Wear app.
It looks like PackageInstaller is denying installation of arbitrary APKs (see code here), so you're probably out of luck. Installing arbitrary APKs is not usually an action which is possible as it requires being a system/privileged app (it should require android.permission.INSTALL_PACKAGES, and the only other app on the device which supports installing packages is most likely Play Store.
If you want a way to update things automatically you're stuck w/ putting it on Google Play.
So this answer isn't the best way of getting around something. But, if you want to download and install an APK File that is not in the Android Wear Google Play Store. You can use ADB and sideload the APK From your computer.
Here is how to set it up
Have you're built APK File
Depending on your System, install ADB
2a.Windows - Go to here https://forum.xda-developers.com/t/official-tool-windows-adb-fastboot-and-drivers-15-seconds-adb-installer-v1-4-3.2588979/ and install the latest patch
2b. MacOs - brew install adb
2c. Linux - sudo apt-get install adb fastboot -y
On your Android Wear Device, enable ADB Debugging
Connect device to computer (can be usb connection) or via Bluetooth (very slow, but not all Android Wear Devices have a USB Connection to them)
Now type adb devices to start the adb server and click allow on your android device
Time to install apk file - type: adb install path/to/file
Does anyone know the way or the trick to make signed APK and install it on device from inside the IDE? Just like when we sign the app via debug key and then automatically install it on the device from the IDE.
When I test in-app and have to make multiple changes, it's slowing me down the fact that each time I have to install the APK by coping it onto the device or via console.
You can have an artifact that will build a signed APK.
Then create an External Tool (batch file) that will upload the artifact to the device using adb install command. Optionally add the code to start the main activity. My install.bat looks like this:
adb install -r bin\ClockSync.apk
adb shell am start -n "ru.org.amip.ClockSync/ru.org.amip.ClockSync.view.Main"
Modify the commands if you want to deploy to the specific emulator/device.
External tool configuration is pretty straightforward, just run the bat file.
Now you can create a Run configuration with Before Launch section set to build the signed APK artifact and start the external tool to deploy and run it.
EDITED by sandalone
This approach is for IntelliJ IDEA users. After you set it all up, just launch the app as usual Shift + F10 and the app will be built as signed APK, installed on the device and started.
Since I am on Linux, I made the script install.sh with the following content
adb -s DEVICE_ID install -r ./com.package.name.apk
adb shell am start -n "com.package.name/com.package.name.MainActivity"
made it executable and this was it. Of course, the script should be located in the same place as APK - otherwise fix the path accordingly.
How do I download zipped files containing python source code into the android SL4A ? I've tried going to the website and downloading it but the download always fails. Also can I install python-urwid in android?
Go to here throuh your Android device browser:
http://code.google.com/p/android-scripting
after you download the python*.apk file you click on it, then Open --> Install and it should be installed.
in case you have a problem to download it you can download it to your desktop machine then copy it to your computer.
as far as i know about urwid, you can't install.it on the SL4A.
you can unzip file and send script files using the below command on command prompt.
adb push yourlocalfile.py /sdcar/sl4a/scripts/filenamepy
make sure you run this command
adb devices it will display the list of devices connected to the computer. If you see your device then you can run the above push command.
Let me know if this doesn't work.
You need a file explorer (I used andexplorer) to transfer the files to sl4a's install dir (ideally in a subdirectory), and unzip them there.
I have written a simple android app and it runs in the emulator.
Now how do I actually copy it to my phone? I have HTC's Eris. When I attach it with USB it asks me If I want to mount it as a USB mass storage device. I then see it in my drive list.
the directories on the device are:
albumthumbs
amazonmp3
com.google.android.apps.listen
ComicReader
data
DCIM
download
media
music
rosie_scroll
Now what should I copy from my Project directory and where should I put it?
And is there any other process I need to run to "install" my app?
The adb tool provides a command for installing an application onto the phone, adb install .... It takes the .apk file as an arguement. adb --help has a bit more info.
If you are running Eclipse, you can setup Eclipse to publish the application to a connected device.
http://developer.android.com/guide/developing/device.html
You can also simply copy the .apk file to the sdcard and navigate to it using a file manager such as Astro. Long press on it, and Astro will install it for you.
You should be able to use HTC Sync, if you are on Windows..
At least for Hero, it will automatically install APK files on my phone, when I double click them
Download: http://www.htc.com/us/support/droid-eris-verizon/downloads/
Install ADB driver. Have your phone in USB debugging mode. In an opened eclipse code press ctrl+F11. it will show your device. Run through it