I am automating my android app through Appium in Emulator. During the test case run, i want to capture all operations performed in the emulator into a video. How can i do this?
As i want to deal with programmatically, are there any APIs supported to do this?
Is there any methods to do this using Java?
I heard that we can record for Android real devices(adb shell screenrecorder), but not for Emulator.
Can someone please help me on this?
Thanks,
Uday
You can consider the emulator itself as a windows application and hence you could record it like any other windows app. For a more platform independent option, there are a few java libraries with api.
Related
In the context of an university project, we want to develop an Android app (Java) using the DJI Mobile SDK (4.11) to control a DJI Mavic 2.
Our created/ downloaded apps like the DJI SDK samples can be run on mobile phones after building them as APKs but we didn´t accomplish to emulate them in Android Studio (3.5.1). Already read that it wouldn´t be possible but developing an app without testing it in the IDE won´t be practicable for us...
Is there any option?
Thanks in advance.
The best option, and one I tend to leverage is use the simulator. I almost bench fly more than I fly outside.
I cannot think of another option of hand.
I am trying to develop a java app that will run on a Raspberry PI. Raspberry PI will be mounted on a vehicle and I will know my position through a gps device. To solve this, I’ve been thinking on a solution like this:
Use a Webview on my JavaFX app and use your javascript API to build a real-time turn by turn navigation app. However, I’ve seen that your web API is not as complet as mobile platforms APIs. My question is: Is what I am trying to do feasible using your APIs? If so, could you please give me a brief description how to do it?
Thanks!
The Javascript API is not a turn by turn API - that is currently something a bit too heavy for javascript to handle (it could be feasible but it's not commercially attractive right now).
In theory you could integrate directly with the C++ code of the SDK as that should be able to run on Linux (depends here on the gcc version used and the OpenGl support offered - send an email to dev#telenav.com with your scenario and they will advise you).
Or if you can run Android on the device then you can use directly the Android SDK.
I want to create an app that passes a string of a command from the Android app to the Java app. I do not know where to start. How could I make something like this where the Android app gives the Java app (running on a Mac or PC) a command and the desktop app does it? Thanks.
It was a long time ago, but I actually did something like that.
You can check the project at https://github.com/guillaumyle/BlueRemote/
I suggest you to ignore everything not "Bluetoooth Communication" related, as it is probably not well written.
Check the blueremote package for the Android part.
I recently installed the Bluestacks Android emulator. I happened to look at the process running under ProcessExplorer and was surprised to see that it is a .NET application.
The HD-Frontend.exe is the Bluestacks UI process and is highlighted yellow because it has loaded the .NET framework. There are a number of other processes associated with Bluestacks and most are also .NET.
Opening the EXE in Reflector.NET also shows that it is .NET.
I thought Android was Java-based. What's going on here?
Android is Java-based, but that does not mean an Android emulator has to be written in Java -- just functionally emulate Android devices.
While BlueStack's site does not list any system requirements for its emulator that I could find, at least a couple sites -- e.g. Bazooka Apps and Android Emulator for PC -- mention .NET as a requirement.
Ultimately the proof of what's going on is right in the process list and Reflector results you found.
its an emulation tool whose job is to read the dex code respond to that how the android phone should respond and not to compile and run that dex so it could be on python or ruby also there is no boundation at all that you have to make android emulator on java becuase android is built upon java.
My developed android application can run on emulator fine but when I export it to .apk and install to my galaxy S it very slow to show any content.
My application have to connect with web service and database that run on localhost. I try to move web service and database to another host that faster but it doesn't solve my problem. Any one can suggest me what should I do?
Thank you for any suggestion.
Ps. I develop my application by using Java with Eclipse and Tomcat
Use traceview to inspect which parts of your code are slow. Than optimize those parts.
If you use slow external services (network calls) you might want to use AsyncTask to run them in the background. Also, it's good practice to show some kind of progress notification to the user so that they know something is being worked on.
To find the bottleneck of the program, use Traceview on the device. It can be started very easily in the Eclipse IDE.
Most likely you are running the Emulator sharing the high-speed connection of your PC running the emulator. The device will have lower bandwith and also a large delay.
Most time is usally spent receiving data. Compressing transfers thus actually speeds up the app. Compressing the answer is straight-forward both on the server and the client, see for example this answer.
If this is not enough you need to look through what is sent from the server and see if some things can be pre-fetched or omitted.
Database operations in Samsung Galaxy S are terribly slow (especially after 2.2 update). If the app performance is fine on the emulator then it should work fine on other devices too
You will have to elaborate on this a lot! Sounds like you are using an outside DB. how are you interacting with it? Async? how is the data being passed around?
Need more info.