create a desktop application passing code from my android application - kotlin

I have created an android application, but I wanted to know if it can be transformed to a desktop application and what should I do? a small example will suffice
I use koltin as background code any suggestions

Related

React Native: Bundle server build and client code build together to creare an IOS app

Context - I have the build folder of the server-side code as well in my react native frontend project. Due to the business side requirements, the server-side code should spin up locally as soon as the react-native ios app is launched.
Problem Statement - I have the builds of the client-side code as well as server-side code. I want to pack both the build together and deliver an ios app such that as soon as the ios app is launched it launches the server-side code as well locally. I was looking into metro but couldn't figure out how to exactly achieve this.

Testing UWP app using random events

For test Android application we can use the command line tool Monkey. A long time ago, we used Hopper to check the app stability on Windows Mobile.
And now for Universal Windows Platform (UWP) apps? Is there any tool to generate ramdom events to test application? I'm not talking about achieve that by using Coded UI Test Builder.

How to create webview in apache cordova for all platforms

I want to create an mobile webview application in Apache Cordova using Visual Studio 2013; also, I want to handle features of mobile like camera,back button.
I have gone through the following Apache Cordova documentation:
https://cordova.apache.org/docs/en/4.0.0/guide_hybrid_webviews_index.md.html
According to this link ,3 different webviews need to be created but I want to know whether it is possible to create just one webview which will support Windows phone, Android and iPhone?
The embedded webview you're referring to is really a special case where you want to have a Cordova-based webview inside of a native app. Is that what you really want to do? If you just want to build a normal Cordova app that will run on your three platforms it's easily doable, just follow the instructions here: https://cordova.apache.org/docs/en/4.0.0/guide_cli_index.md.html

Automated user interface testing in Titanium

How can I create automated user interface tests for a Titanium app? Does the framework include something for this? Are there any helpful third party tools?
Have you looked at titanium-jasmine?
I have never personally used it but ive heard its pretty useful for this type of thing. I'm not sure about its abilities to test actually visual elements.
EDIT:
For testing the user interface and simulating touch events on the simulator or device, just use UIAutomation with the native workflow! Since every Titanium project compiles to an XCode project (which can and should be at least profiled for memory leaks using the native workflow before release to the app store), you can just follow the steps here to write your own tests in Javascript.
As a first step, run your app in the simulator, then got to PROJECT_HOME/build/ and open up the xcodeproj file. Once inside XCode, hold down the "Run" button, click "Profile", which will open up "Instruments" and add the "Automation" widget like in the link I provided!
This is not titanium specific, it can be used for any iOS app and seems like a great tool for every iOS developer, along with Allocators and Memory Leak widgets inside of instruments.
Possibly a better alternative is using Gorilla Logic's free MonkeyTalk. It is a bit more straightforward if your not very experienced with XCode, and it has the benefit of (theoretically) being able to test iOS and Android.

Getting sproutcore application files to use them in a native app via Appcelerator Titanium

I would like build a app using sproucore framework, but i also want to integrate it with Titanium to have some desktop capability like file system, packaging, offline working etc...
I know that with sproutcore 2 this would be pretty easy since it allows to use the framework like a normal javascript library. But the project is still in beta and the docs are patchy at most (I consider patchy even the 1.x docs, actually).
So, I want to ask, which would be the best way to go to integrate sproutcore and Titanium API?
Titanium's main mission is to use JavaScript to build native apps, not to provide a OS-access layer for web apps. It would be hard to mix native and SproutCore UI elements.
That being said, here's some information that might help you:
Titanium has reversed it's application model starting with version 1.0:
http://developer.appcelerator.com/question/71/what-happened-to-html--css
The main app doesn't run in a web view anymore, instead it runs directly in JavaScriptCore and creates only native UI elements. One of the native UI elements is a web view
(http://developer.appcelerator.com/apidoc/mobile/latest/Titanium.UI.WebView-object)
and it's possible to make that full screen and run your SproutCore app inside of the web view. From there, you can call out to Titanium to call Titanium methods for file system access and the like.
Also, if you only target the desktop, you could even access the JavaScript context object of a webview and use it directly in JavaScriptCore.
Johannes