标签: android-emulator

如何在Android Studio中调整AVD模拟器的大小?

我看过很多帖子询问如何重新调整AVD模拟器的大小,但是我没有发现任何有用的信息.我的模拟器不在计算机屏幕的顶部,我无法调整它的大小.

如何在Android Studio中调整AVD模拟器的大小?

android android-emulator android-studio

73
推荐指数
15
解决办法
7万
查看次数

Android模拟器的高CPU使用率(qemu-system-i386.exe)

模拟器qemu-system-i386.exe的cpu使用率几乎不断在7~9之间运行

Android studio 2.1 Android SDK工具:25.1.3主机操作系统:Windows 7 - i7 2630QM - 8GB Ram安装Intel x86 Atom系统映像

无论我在模拟器中改变什么样的设置如:模拟性能,多核CPU,x86-64图像,总是一样的东西

这总是令人讨厌的粉丝

有人解决了这个问题吗?

非常感谢

android-emulator

73
推荐指数
8
解决办法
3万
查看次数

如何在SQLite数据库中存储图像

在我的应用程序中,我从库中上传图像,我想将此图像存储在SQLite数据库中.如何在数据库中存储位图?我正在将位图转换为字符串并将其保存在数据库中.从数据库中检索它时,我无法将该字符串分配给ImageView,因为它是一个字符串.

Imageupload12 .java:

 public class Imageupload12 extends Activity {
  Button buttonLoadImage;
  ImageView targetImage;
  int i = 0;
  Database database = new Database(this);
  String i1;
  String img;
  @Override
  public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   setContentView(R.layout.main5);
   buttonLoadImage = (Button) findViewById(R.id.loadimage);
   targetImage = (ImageView) findViewById(R.id.targetimage);


   Bundle b = getIntent().getExtras();
   if (b != null) {
    img = b.getString("image");
    targetImage2.setImageURI("image");
    //i am getting error as i cant assign string to imageview.

   }

   buttonLoadImage.setOnClickListener(new Button.OnClickListener() {

    public void onClick(View arg0) {
     // TODO Auto-generated method stub …
Run Code Online (Sandbox Code Playgroud)

sqlite android android-emulator

71
推荐指数
4
解决办法
25万
查看次数

Android模拟器不在视野范围内,我该如何移动它?

我在笔记本电脑上使用了额外的显示器,并在那里移动了Android模拟器.即使显示器不再连接,它似乎记住了位置.

有没有办法重置窗口的位置,使其再次可见?

android android-emulator

71
推荐指数
5
解决办法
3万
查看次数

Android Emulator sdcard推送错误:只读文件系统

我正在Android 1.6(Android SDK 2.1)下开发.我在Eclipse中使用avd manager创建了一个avd.当我启动这个avd时,我发现/ sdcard目录的权限是"d ---------".所以我无法将文件推送到SD卡.

有谁知道如何解决这个问题?

android-emulator

69
推荐指数
6
解决办法
13万
查看次数

Android:UnknownHostException

我正在使用Android SDK 2.2,使用模拟器测试我的应用程序.我想发送HTTP帖子.当我这样做时,我得到一个UnknownHostException.我已经把所需的权限
<uses-permission android:name="android.permission.INTERNET" />
在manifest.xml.此外,我可以在模拟器上打开浏览器并导航到URL没有问题.

这是我的代码:

HttpClient httpclient = new DefaultHttpClient();
HttpPost httppost = new HttpPost( uri );
HttpResponse response = null;
try
{
// Add your data
List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>(
2 );
nameValuePairs.add( new BasicNameValuePair( "id", "edit-name" ) );
nameValuePairs
.add( new BasicNameValuePair( "stringdata", userName ) );
httppost.setEntity( new UrlEncodedFormEntity( nameValuePairs ) );

// Execute HTTP Post Request
response = httpclient.execute( httppost );
// Log.i( "HttpManager:", "======> response: "
// + response.getEntity().getContent() );

} …
Run Code Online (Sandbox Code Playgroud)

post android http android-emulator

68
推荐指数
6
解决办法
6万
查看次数

使用phonegap在android模拟器中调试javascript

我是phonegap和android开发的新手.我可以知道如何在模拟器上调试javascript错误?我听说亚行可能知道如何在Windows 7系统上使用和安装它?我有一个用jsonp调用的ajax但在模拟器上没有响应.但是,我可以在Windows上使用浏览器调用ajax.我可以知道出了什么问题吗?

javascript android android-emulator cordova

68
推荐指数
3
解决办法
5万
查看次数

Android模拟器快照错误

在eclipse 3.7.0中启动我的应用程序时收到错误...

模拟器:模拟器:错误:无法从快照加载Vm.已为其他硬件配置保存快照.

我已经运行了这个应用程序的数字时间没有错误,但现在显示此错误.我检查了我的AVD Manager,我的平台和API级别是正确的.

eclipse android android-emulator

68
推荐指数
6
解决办法
6万
查看次数

Android模拟器:qemu-system-i386.exe:goldfish_battery_read:错误的偏移量

因此,每当我尝试在Android模拟器上启动我的应用程序时,IDE都会受到此错误的轰炸:

Emulator: qemu-system-i386.exe: goldfish_battery_read: Bad offset.......
Run Code Online (Sandbox Code Playgroud)

每隔一分钟左右运行应用程序时,此错误也会显示.

我正在使用

  • Android Studio 3 Beta 6
  • API级别26
  • 仿真器26.1.4
  • Android SDK
  • 工具26.1.1
  • 图片x86 26(oreo)

...

我已经尝试重新安装所有SDK工具并将所有内容更新到最新但没有运气.我还重新安装了IDE并重新下载了所有内容,它仍然显示此错误.

我想知道是否还有人遇到这个错误?

android android-emulator android-studio

68
推荐指数
2
解决办法
2万
查看次数

如何在首次安装.apk时启动服务

在我的应用程序中,我没有任何UI部分,因此我需要在Device上安装Applicaton后立即启动服务.我看到很多链接,答案是不可能的,但我想这肯定是可能的.只需查看符合我要求的Android Market上的PlanB应用程序即可.下面是我的Manifest文件我是如何尝试的,但根本没有调用该服务.所以,让我知道在应用程序安装时启动服务的最佳方法是什么.

UPDATE

我也试过使用android.intent.action.PACKAGE_ADDED它可以很好地检测其他应用程序的包,但不适用于自己.

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.auto.start"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk android:minSdkVersion="8" />
    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>

    <application
        android:icon="@drawable/ic_launcher" >

        <service android:name=".MyService">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </service>

        <receiver android:name=".BootUpReceiver">
            <intent-filter>
                <action android:name="android.intent.action.BOOT_COMPLETED"/>
                <category android:name="android.intent.category.DEFAULT"/>
                <action android:name="android.intent.action.PACKAGE_INSTALL" />
                <action android:name="android.intent.action.PACKAGE_ADDED" />
                <data android:scheme="package"/>
            </intent-filter>
        </receiver>
    </application>
</manifest>
Run Code Online (Sandbox Code Playgroud)

android android-widget android-emulator android-layout

67
推荐指数
5
解决办法
6万
查看次数