您好,我们正在开发通过蓝牙进行的 Android 多人游戏。这是一款多人 LUDO 游戏,4 名玩家相互连接并玩游戏。
我们被困在第三个和第四个玩家的连接中。
private OnMaxConnectionsReachedListener maxConnectionsListener = new OnMaxConnectionsReachedListener() {
public void OnMaxConnectionsReached() {
}
};
private OnIncomingConnectionListener connectedListener = new OnIncomingConnectionListener() {
public void OnIncomingConnection(String device) {
//rivalDevice = device;
if(index < 1000)
{
clients[index] = device;
index++;
Log.d("Khawar", "Khawar"+device);
if(index == 1)
{
//blue.setText(clients[0]);
mConnection.sendMessage(clients[0], "ConnectionList--Ludofyp309509--"+server+"--Ludofyp309509--"+clients[0]);
}
else if(index == 2)
{
//blue.setText(clients[0]);
//red.setText(clients[1]);
mConnection.sendMessage(clients[0], "ConnectionList--Ludofyp309509--"+server+"--Ludofyp309509--"+clients[0]+"--Ludofyp309509--"+clients[1]);
mConnection.sendMessage(clients[1], "ConnectionList--Ludofyp309509--"+server+"--Ludofyp309509--"+clients[0]+"--Ludofyp309509--"+clients[1]);
}
else if(index==3)
{
//blue.setText(clients[0]);
//red.setText(clients[1]);
//yellow.setText(clients[2]);
mConnection.sendMessage(clients[0], "ConnectionList--Ludofyp309509--"+server+"--Ludofyp309509--"+clients[0]+"--Ludofyp309509--"+clients[1]+"--Ludofyp309509--"+clients[2]);
mConnection.sendMessage(clients[1], "ConnectionList--Ludofyp309509--"+server+"--Ludofyp309509--"+clients[0]+"--Ludofyp309509--"+clients[1]+"--Ludofyp309509--"+clients[2]);
mConnection.sendMessage(clients[2], "ConnectionList--Ludofyp309509--"+server+"--Ludofyp309509--"+clients[0]+"--Ludofyp309509--"+clients[1]+"--Ludofyp309509--"+clients[2]);
}
}
//Toast.makeText(getBaseContext(), …Run Code Online (Sandbox Code Playgroud) android bluetooth android-emulator android-contentresolver android-layout
我正在使用Titanium框架在 Mac OSX 中创建 Android 应用程序。我正在搜索使用 Titanium 创建的 Android 应用程序的位置。
我们可以看到我们的iPad或iPhone基于iOS version. 它的位置是其 iOS 版本文件夹。但我无法找到 Android 应用程序的位置。
我已经用谷歌搜索过但没有帮助。
谢谢。
sqlite基础文件存储在路径data/data/my-package-name/databases/mybase.db(Android模拟器存储SQLite数据库在哪里?)
有时,我在远程真实设备上获取此文件,我想将其复制到我的 Android Studio 上的 android 模拟器进行调试。换句话说,我希望我在 Android Studio 上的应用程序使用这个基础。我该怎么做?
另一种可能性:如何将这个基地复制到我通过 USB 电缆连接到 PC 的真实设备上
非常感谢,问候
sqlite android android-emulator android-sqlite android-studio
最近,我安装了Android Studio 3.6.1,我得到了更新 SDK 和其他工具的建议。
我正在尝试更新Intel x86 Emulator Accelerator(HAXM 安装程序)(修订版:7.5.6)但遇到如下问题:
Packages to install:
- Intel x86 Emulator Accelerator (HAXM installer) (extras;intel;Hardware_Accelerated_Execution_Manager)
Preparing "Install Intel x86 Emulator Accelerator (HAXM installer) (revision: 7.5.6)".
Downloading http://dl.google.com/android/repository/extras/intel/haxm-windows_v7_5_6.zip
"Install Intel x86 Emulator Accelerator (HAXM installer) (revision: 7.5.6)" ready.
Installing Intel x86 Emulator Accelerator (HAXM installer) in E:\Android\Android\sdk\extras\intel\Hardware_Accelerated_Execution_Manager
"Install Intel x86 Emulator Accelerator (HAXM installer) (revision: 7.5.6)" complete.
Failed to update status to COMPLETE
"Install Intel x86 Emulator Accelerator (HAXM installer) (revision: …Run Code Online (Sandbox Code Playgroud) android android-emulator android-studio haxm android-studio-3.6
我想知道 Android 应用程序如何发现它正在 Android 模拟器中运行。除此之外,如果设备是全新启动的,则不会安装用户文件和其他应用程序。有关于该主题的资源吗?
提前致谢
我正在 android studio 上对 flutter 进行编程,但是为了运行我的应用程序,我需要一个虚拟设备来连接。Android Studio 找不到我的虚拟设备(Memu play),任何人都可以帮助我解决这个问题。


我的avd 不起作用!第一次运行项目时添加文本“有 0 个错误”,但即使该文本 avd 仍然是黑色的。
我已经重新安装SDK,avd删除,擦除数据等
当我打开模拟器形式的设备选择下拉列表时,出现以下错误,如果我从 AVD 管理器运行它,则不会发生错误 如何解决此问题?
emulator: WARNING: FeatureControlImpl.cpp:198: Failed to load advanced feature default setting:C:\Users\PC\AppData\Local\Android\Sdk\emulator\lib\advancedFeaturesCanary.ini emulator: WARNING: encryption is off Failed to open /qemu.conf, err: 2 HAX is working and emulator runs in fast virt mode. qemu: could not load PC BIOS 'bios-256k.bin'
Run Code Online (Sandbox Code Playgroud)
我正在使用Retrofit2发出网络请求,但端点位于我的计算机本地。
所以我的基本 URL 是
private val BASE_URL = "http://localhost:8000/",但它给了我这个响应
Failed to connect to localhost/127.0.0.1:5000
所以我做了一些搜索,发现我需要使用我的本地 IP 地址,如下所示
private val BASE_URL = "http:192.168.1.15//:8000/",但后来我得到了这个响应
Response{protocol=http/1.1, code=404, message=Not Found, url=http://192.168.1.15//:8000/api/Home/RegisterShop}
知道如何解决这个问题吗?
我已经在 Windows 10 中安装了 android studio 和模拟器。创建了一个 flutter 应用程序并在模拟器上运行。然后关闭项目,关闭 android studio 并关闭我的电脑。一切都进行得很顺利,没有出现任何差错。但是当我两天后重新启动电脑时。我在Windows搜索中搜索了android studio,没有搜索结果。然后我看到了我所有的应用程序,android studio 不在那里。然后就看到了这个目录。
C:\Users\hayee\AppData\Local\Android\Sdk
没有 exe 或其他文件来启动 android studio。我还有我创建的项目文件。然后我在卸载程序中看到了在那里找到的。这是屏幕截图。 图像
网上也没有解决办法。
android-emulator ×10
android ×7
flutter ×2
apk ×1
bluetooth ×1
haxm ×1
ip ×1
localhost ×1
location ×1
networking ×1
sqlite ×1
windows-10 ×1