I have download and install BlackBerry Simulator and run it in VMWare Machine. I have run its controller. Then, I have created a simple hello world project in android studio. Here is MainActivity.java:
public class MainActivity extends ActionBarActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
}
Here is XML:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context="com.vats.vatishs.helloworld.MainActivity">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Hello World!" />
</RelativeLayout>
Here is build.gradle of app:
apply plugin: 'com.android.application'
android {
compileSdkVersion 18
buildToolsVersion "23.0.2"
defaultConfig {
applicationId "com.vats.vatishs.helloworld"
minSdkVersion 11
targetSdkVersion 18
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:18.+'
}
Then I run BlackBerry ADB Proxy Manager, and then I click on play icon of running BlackBerry simulator. Now if i run my android project by clicking on green run arrow of android studio, The BlackBerry emulator is not shown in Android device list. What I should i do to run my android code on BlackBerry simulator???
I did the following to make it appear on Android studio:
Run the command
./adb connect IP of your running device
Then, the device should appear in your Android Studio Device list.
** Same as the one you given to the BlackBerry ADB Proxy Manager