I need to start an exe on Windows from a flutter app build for Windows.
In the app, when "Avvia SedisRemoteController" is pressed, an exe installed on Windows should run.
Anyone knows how to do it with the code? The command for windows cmd is simply
"C:\Program Files (x86)\Sedis Remote Controller\SedisRemoteController.exe"
I founded a workaround: using
https://pub.dev/packages/open_file/example
Adding this
OpenFile.open("C:/Program Files (x86)/Sedis Remote Controller/SedisRemoteController.exe");
Related
I develop and app with Android Auto capabilities. I have two computer, one under Windows with no problems and my other under Ubuntu 16.04 (where DHU won't start).
When I start the DHU, I got this message:
./desktop-head-unit: error while loading shared libraries: libSDL2_ttf-2.0.so.0: cannot open shared object file: No such file or directory
I don't know which package should I install to solve this problem...
Tkanks in advance!
You need to install libraries, open terminal, type in the command,
sudo apt-get install libsdl2-2.0-0 libsdl2-ttf-2.0-0 libportaudio2 libpng12-0
see details at https://developer.android.com/training/auto/testing/index.html
This problem arises since i have downloaded genymotionn my mac, everytime i try to run my application it says the adb not responding, kill adb and restart manually
I have tried all the possible solutions out there in web but it's not working for me can anyone please help me out with this
SOLVED THE FOLLOWING BY RE-DOWNLOADING THE SDK AND REDEFINING THE SDK PATH
Hi Virus..
Android Studio does not contain ADB, you need Android SDK for it (it is installed on first run of Android Studio 0.9.x and newer). ADB is located in sdk\platform-tools.
It's possible to add to PATH in Windows and use Terminal inside Android Studio only by command: "adb shell" and after use "su" get root shell.
locate SDK platform tools folder (eg: C:\android\sdk\platform-tools)
open Enviroment Variables in Windows (http://www.computerhope.com/issues/ch000549.htm)
add Platform tools to end of PATH (eg: ;C:\android\sdk\platform-tools)
reopen Android Studio
use Terminal with command: "adb shell"
Older Windows will maybe need reboot after change PATH variables.
EDIT: From new Android Studio is Android SDK separate outside Android Studio folder and is downloaded after first run of Android Studio. For more info: tools.android.com/recent/androidstudio0814inbetachanne
When I try to run the emulator on Android studio it prints: "PANIC: Could not find Nexus_5_API_21.ini file in $ANDROID_AVD_HOME nor in $HOME/.android/avd" and nothing happens.
I have tried setting the ANDROID_AVD_HOME variable with no luck. Where should I set the environment variables? I have tried to set ANDROID_SDK_HOME too, but I dont know where to set it.
I am using Ubuntu Gnome 14.04 and Android Studio 1.0.1
Thanks
This is just a workaround.
It's possible that the files aren't present in the $HOME/.android at all in Linux. The files should be present in /root/.android/. So copy everything from /root/.android/ to ~/.android/ (or /home/username/.android/) and it should work!
It is not necessary that you move your files to that direction. If you are in Linux, you just need to run the android studio with super user permission.
Run it in the terminal after you put
sudo su <PASSWORD>
And then run your android studio.
One solution for this problem is to copy the file's emulator which exited and rename it to the name of the new emulator; that is, the name of the emulator Android Studio is trying to run.
I assume you've installed the Eclipse ADT which contains an emulator.
Example:
cd .android/avd/
ls -al
cp <old emulator name>.ini <new emulator>.ini
Run the emulator in Android Studio by the AVD
I tried following these steps(from here):
go to sdk folder, then go to tools.
copy your apk file inside the tool directory
./emulator -avd myEmulator
to run the emulator on mac
./adb install myApp.apk
to install app on the emulator
But when I run "./emulator -avd phoneEmulator" (phoneEmulator is the name of my emulator)
it just displays:
My-MacBook-Pro:tools myName$ ./emulator -avd phoneEmulator
2012-07-30 22:44:33.377 emulator-arm[2859:80b] Warning once: This application, or a
library it uses, is using NSQuickDrawView, which has been deprecated.
Apps should cease use of QuickDraw and move to Quartz.
It's as if that command is never returning.
If I can't input the 2nd command ./adb install myApp.apk in that window, where do I call it?
Open Terminal
go to android-sdk-mac\platform-tools
type ./adb install myApp.apk
You can work around by:
You have a *.apk file with you if you don't have, download it.
Open Android Studio and Run the emulator.
Open the finder and go to the location which contains your *.apk file.
Drag that *.apk and drop into the emulator and it will ask for confirmation after your confirmation it will install the *.apk in the emulator.
You can find it in application menu once installation succeeds.
First of all, you SHOULD NOT copy APKs to the tools or any other SDK directory.
Do not cd to the SDK directories, just add them to the PATH environment var or use their absolute path in command lines.
Then, if you want to run the emulator and then execute command from the same terminal, send the process to background (&):
$ export PATH=$PATH:/path/to/sdk/tools:path/to/sdk/platform-tools
$ emulator -avd myEmulator &
$ adb install /path/to/my.apk
You can work around by:
Upload yourapp.apk to internet. I.e: yourhost.com/yourapp.apk
Run emulator
Open internet browser on your emulator, visit link yourhost.com/yourapp.apk
Download and install
adb can be run from a seperate terminal once this emulator boots up.
May Be, Useful to all the command in MAC OS Terminal
Am I the only one whose apps install in the emulator when I run them as Android Application from eclipse?
I mean - why go though the trouble of adb when you could just use eclipse? (unless you have something against eclipse!)
Try this app. It will install the apk by just double clicking on it after you create an association to .apk files. It's all explained in the github source.
Alternatively You can use 'adb install' command as follows. "adbinstall/filename.apk"
ex. adb install /Users/manojclinberg/Downloads/ad3e0e46-d716-4fa9-b603-b8db3accf260.apk
To make use of ASL library for my screen shot app on android,i need to install a script file (run.ps1) and run it on emulator ... So can any one tell me how can i do it...should i do it using ADB or using Eclipse...?
A .ps1 file appears to be a PowerShell script. PowerShell is a Windows application. Android is not Windows. Hence, if it is indeed a PowerShell script, you cannot run that script on Android.