app提供可被其它应用调用的activity
activity默认是不可以被其它应用调用的,可以在activity的配置中设置可以被访问,具体代码如下:
<activity
Android:exported="true"
android:name="BluetoothActivity"
android:label=""
android:screenOrientation="portrait" />
如果想调用该应用的这个页面,直接使用:
Intent intent = new Intent(); intent.setClassName("com.example.hcy","com.example.hcy.BluetoothActivity");
startActivity(intent);