I'm trying to create a python program which emulates 2 differents android devices and goes to an application to log into 2 differents accounts.
I worked around android x86, appium, and adb but I can't seem to make any of it work so far after nearly 17 hours of work. I don't find accurate tutorials for my purpose and I know it's doable because a friend of mine did it but doesn't want to help me on achieving it.
If anyone can offer their help or give me some lines to follow
If you need some precisions don't hesitate
I tried creating my very own android x86 image with spoofed device (and succeeded), and I tried using virtualbox API to create the vm (working) and automate it through python but found out we couldn't automate it using vboxapi and needed appium or adb. I tried using appium and ran a server but it says I didn't connect my device even tho I opened the port and specified the host port.
Related
I'm a bit of a beginner when it comes to programming and I had a question about setting up a program that acts like a setup script for android tablets. What I would like to be able to do is connect a tablet via usb and run a program that can install some apks (from the pc) and change some system settings on the tablet.
The issue I'm facing is that I'm not sure where to start. Looking up this topic online has shown me snippets of what I need, but nothing puts it all together, and I don't have much of a clue on how to test this with an emulated device.
I did setup Android studio, I setup eclipse to run android projects and Xamarin in c#. If I could get any advice on where to start and where I can learn more I would greatly appreciate it.
Thanks
I Plan to use two computers both has low disk space and Not so great Processor & RAM for Android Development. So, I wonder if I could find a way to connect both of my PCs in the same WLAN N/W or by any means, One running Android Studio and the other with Android Emulator. If Possible multiple Emulators.
I am not quite sure on how you could have 2 pc's simultaneously working together here.
But you could look into version control such as Git and Bitbucket.
If you set something like git up on 2 different pc's you can have 2 different projects. The one you control the source code and the other one you just run from.
What this would mean is that you could code on the one pc, push (putting the code on an online repository) and then pull on the other pc (grabs this code from the respoistory) and run.
You may find this useful
I decided to try and create an Android app using Xamarin in Visual Studio 2015. However, when I click on Debug, the emulator opens and there is only a black screen. No Android logo or anything.
I already scavenged Stack Exchange among other sites for solutions, such as checking or unchecking Use Host GPU. But nothing seems to work.
Here is a screenshot of the configuration
What could be the problem?
Thanks
Have you consider trying Samsung Test Lab? every time i run an emulator it's a pain, and it's super slow, the best way i found that works for me was Samsung Lab you can test your app on a real device i think this is the best way to test apps
you can connect the device via adb using adb connect localhost:port or adb connect 127.0.0.1:port
I am aware of Genymotion openGL error stack overflow question.
I am attempting to run Genymotion on a Windows 10 system, but the graphics adapter is Intel G45/G43 Express Chipset WDDM1.1 and the driver supplied does not support OpenGL and Intel appear to have no interest in delivering a driver that does for Windows 10. I understand that officially this combination is not supported.
But here's the thing: I can start a Genymotion VM fine from Virtual Box, and it appears to work (almost) perfectly, as far as I can tell.
Certainly I don't see any problem with the graphics.
This must be using some (probably Virtual Box provided) software implementation of OpenGL.
However, when I try to start the same phone VM from the Genymotion console, or from the Genymotion button inside Android Studio, I get the error dialog-box in the linked question above.
My question is: Why is Genymotion insisting that there is OpenGL support from the real physical display driver? And of course, if its for a quality reason only (ie: sub-optimal user experience otherwise) is there any way to disable this check?
The reason this matters is that Android Studio does not list the Virtual Box started phone VM as somewhere an application can be run upon. I suspect that when Genymotion runs a phone VM, they set up something that the Android Studio integration needs, that simply running from Virtual Box doesn't provide.
In addition, I can't circumvent the Android Studio integration by deploying to a phone VM using the gmtool device install file.apk command bundled with Genymotion because this is a paid license feature. As you can imagine I am somewhat reluctant to purchase such a license when I know I am running in an unsupported configuration.
Purchasing new hardware also isn't an option for me in the short term.
EDIT: The justification for this question has since evaporated. Although I can't deploy using Android Studio or gmtool.exe, I have managed to deploy by using the phone web browser to fetch the .apk file. The gotcha here is that the web server must supply a Content-Length header or the download will fail. So I now have a workable solution.
{{{ Andy
I'm part of the Genymotion team. That's an interesting question. The answer is: yes, we ask for OpenGL drivers for performance reasons. Without this, the whole Android rendering would be handle by the CPU (as soft rendering) which is not fast enough to allow a real usage of the devices, with a seamless user experience, particularly since 4.3. If you run a 4.2.2 image from VirtualBox, you'll see the UI inside the window but the rendering will be very laggy.
As you maybe already noticed, running the Genymotion devices from VirtualBox works only for images up to 4.2.2 (released 3 years ago). The other image will show only a console window. And to be honest, you should more consider it as a side effect than a real feature. This behaviour could disappear on a future release for any reason. And there is no way to disable this check.
As you mentioned, this configuration is really weird and exceptional. As far as I know, we don't plan to support these kind of configuration and I don't see any real viable solution to make it work properly.
Also, to explain the problem you encountered with Android Studio. When a Genymotion device start, it gets a local IP. This IP can be used to connect it to adb. Then it is possible to interact with the device like with any other Android device. This is the tools used by your IDE (and (m)any other tools communicating with Android devices.
Usually, the Genymotion app does this for you, by connecting the newly started device to adb. But you can do it yourself by running adb connect <DEVICE_IP>:5555. Just be careful because this connection could not be permanent and you should have to run this command regularly in some situations.
I hope this answer will help.
Cheers.
I want to be able to develop and immediately run android apps on my device. I've played with sl4a and a bluetooth keyboard, but the app and ide weren't designed for what I want to do with them. what are my options?
clarification: I want a mobile dev env that doesn't involve any computer (other than my android device). I'd like a simple code editor, like emacs or scite ideally, and some kind of complete interpreter or compiler for the full android api that runs on the device. I'm dreaming, clearly, but how close can I get to that today?
I've gotten Vim working really well in ConnectBot on my Milestone. I needed root privileges because of where I put the files, but you might be able to find a work around without it.
See this link:
Native Vim for Android
See also my comment after the post. I've got $HOME setup on my sdcard, and a bunch of Python plugins and colorschemes in ~/.vim/ and everything just works.
Of course this requires you to be comfortable working in Vim... I've gone back and forth with it several times in the past. It is very strange, but once you pick up a few habits and figure out its odd vocabulary it is very nice to use!
I got a pure python version of Mercurial working on Android too. It was a pain, but now I can push and pull code from my repositories and keep my /sdcard/sl4a/scripts/ folders in sync with my latest changes. I documented some of what was necessary in a bug report to py4a.
Canonical just announced that they will be bringing Ubuntu to android devices. Hopefully this will help....
http://www.engadget.com/2012/02/21/ubuntus-full-desktop-os-coming-to-multi-core-android-devices/
Like FrinkTheBrave said, you can use an ide (Eclipse is perfect, because of the Android Development Tools, but you could use any other program.
If you work on Windows, and after installing the USB driver, you only need to plug your phone to the usb and hit Run (or debug), and Eclipse will copy the apk into your Android and start running. It takes less than 5 seconds.
If you work on a Mac, you don't need to install anything, just plug in the phone and it works =D.
Well, in Linux it is a bit more complicated (though not impossible, I actually work with Linux), but you can still develop there =).
Cheers
BIG BIG EDIT
I've seen today just what you asked few time ago. Here, take it: https://play.google.com/store/apps/details?id=com.aide.ui It's obviously hard to type on a smartphone, but it could do the trick on an EEEPad transformer. Have a good day
I'm not sure about developing on Android, but you can use one of the sdks available to write your code, then copy the apk onto the device via usb and install and run it.
It takes less than a minute from saving the source code to running on the target hardware.
I use the sdk at developer.android.com and eclipse on windows xp, and use AndroZip on my phone to install the sdk. simples ;-)
I've not looked into using usb debugging, but that could be even better.