Question: I'm trying to set up my first app in iTunes Connect so I can submit it... and I go through the whole set up process of entering metadata, and when I go to save on the last screen I get this error:

> 
> There was an error creating your Bundle ID.
> 
> 
> 

![enter image description here](https://i.stack.imgur.com/yMSSk.png)

And it won't let me save it. To clarify, I'm not even to the point that my app can be submitted, this is the app setup before you submit.

I'm not understanding what's going on here. I created the certificates, bundle IDs and provisioning profiles correctly, and the bundle ID I'm using shows in the bundle ID dropdown on the first page, etc etc. As far as I can see nothing is wrong, yet it won't let me create the app.

I already went through, deleted my previous bundle IDs and all that, recreated them, and still it gives me this error. I searched around and couldn't find any information on this. Anyone have an idea why this might occur?

Answer: 
It is possible to run UiAutomator from an application, you just need to have your Test jar on the device and give your application su permissions.

From your application you can then just call:

```
uiautomator runtest Test.jar -c com.package.name.ClassName -e key value

```

And your device will perform whatever your UiAutomatorTestCase would perform.

Quick example:

```
Process rt = Runtime.getRuntime().exec("su");
DataOutputStream os = new DataOutputStream(rt.getOutputStream());

os.writeBytes("uiautomator runtest Testing.jar -c com.hey.rich.CalculatorDemo" + "\n");
os.flush();
os.writeBytes("exit\n");

```
You need ADB connection (over WIFI or Cable) to run UiAutomator test cases unless you have su permissions. With su permission you can run uiautomator from the device itself. 

In UiAutomator test cases, you can implement socket, webSocket and some other communication protocols, so your test case will expose communication connection to the outside world and other devices can connect to it. In this case, you need ADB connection only once to run the test case, then you can disconnect it.