android-emulator

How to set this Layout that fit to Any Screen height?

假装没事ソ 提交于 2019-12-03 16:35:31
I have Some layout Problem regarding my Application. This is My Application Layout: <?xml version="1.0" encoding="utf-8"?> <ImageView android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/tax_calculator_logo"/> <LinearLayout android:layout_height="fill_parent" android:layout_width="fill_parent" android:orientation="vertical" android:layout_marginLeft="20dp" android:layout_marginRight="20dp" android:layout_gravity="center" android:layout_marginTop="10dp" android:layout_marginBottom="10dp"> <Button android:id="@+id/contactUs" android:layout_height="wrap

Android Emulator Skin Layouts - Are there tools and a specification?

ⅰ亾dé卋堺 提交于 2019-12-03 16:34:04
Skins for Android emulators are defined in a directory among /platforms/android-xxx/skins Additional vendor-specific skins also in the folder /add-ons). Here parts of the skin like images for backgournd and buttons are stored and a file that organizes these parts into the skin which is called layout. The layout file contains a herarchical list of key-value pairs, defining parts and layouts. Here is a fragment as illustration: display { width 480 height 800 x 32 y 106 } background { image htc-evo-4g.png x 0 y 0 } button { soft-left { image key.png x 191 y 921 } home { image key.png x 73 y 921 }

Android Emulator: How to Copy an Emulator / AVD?

好久不见. 提交于 2019-12-03 16:30:41
I am currently making an upgrade of an existing app that's already on the Google App store (aka Google Play). I want to test that the data conversions go smoothly when customers upgrade. I have an AVD with the old version of the app installed. The usual thing would be to run the new version on this app and see if it works. But the problem is that after doing this, that particular AVD is no longer mimicking that old state. I'd like to make copies of this AVD/Emulator (yeah, the whole thing!) so that I can make repeated tests. This seems like something that would happen often, but I can't find

Cannot set up guest memory 'android_arm': Invalid argument

情到浓时终转凉″ 提交于 2019-12-03 16:29:15
问题 I've spent days trying to launch any Android program. Even "Hello World" gives me the same error: [2014-10-28 18:07:14 - android19] Android Launch! [2014-10-28 18:07:14 - android19] adb is running normally. [2014-10-28 18:07:14 - android19] Performing com.example.android19.MainActivity activity launch [2014-10-28 18:07:14 - android19] Automatic Target Mode: launching new emulator with compatible AVD 'first' [2014-10-28 18:07:14 - android19] Launching a new emulator with Virtual Device 'first'

PackageInfo versionCode and versionName null on phone, but works on emulator

爷,独闯天下 提交于 2019-12-03 16:28:08
I am building a private app that will not go through the Marketplace. As a result, I need to pull the current version application (not platform) information and check with the server to see if there is an update. It works great on the emulator, but when I installed the signed APK on my Droid X, it returns null. Here is the code: PackageInfo pInfo = null; try { pInfo = getPackageManager().getPackageInfo("com.rubiconproject.expenses", PackageManager.GET_META_DATA); } catch (NameNotFoundException e) { return; } String postUrl = DbAdapter.REMOTE_DB + "/application/active-version/platform/android

Android browser plugin

核能气质少年 提交于 2019-12-03 16:06:43
i found sample plugin in android source code. let's say i can write a plugin using the sample, how would i get my emulator to run the plugin that i wrote? Do i need to recompile the source code? if yes, how is that possibly done? thanks:) The BrowserPlugin sample is an example of how to write an actual browser plugin. For example Flash player It is focused on the plugin being written in C/C++ native code and then invoked when the Android user navigates to a page with the matching tag. In my experience and observation of Android application development this is not a recommended way to develop a

(Vulkan 1.0 APIs missing from instance) when launching Android Emulator(Q API 29) via Android Studio 3.5 and 3.6 Canary 9

为君一笑 提交于 2019-12-03 16:02:10
I created three AVDs base on Android Q (API 29), using these system images: Android 10(Google Play), Android 10(Google APIs), Android 10. All of these emulators failed to launch. With the following error: 18:38 Emulator: VK_VERSION_1_0 check failed: vkCreateInstance not found 18:38 Emulator: VK_VERSION_1_0 check failed: vkEnumerateInstanceExtensionProperties not found 18:38 Emulator: VK_VERSION_1_0 check failed: vkEnumerateInstanceLayerProperties not found 18:38 Emulator: createOrGetGlobalVkEmulation: Warning: Vulkan 1.0 APIs missing from instance 18:38 Emulator: Process finished with exit

Warning: Activity not started, its current task has been brought to the front [duplicate]

南楼画角 提交于 2019-12-03 15:53:49
This question already has answers here : Closed 5 years ago . Activity not started, its current task has been brought to the front (8 answers) I think this question is very usual. Many results on Stackoverflow has said about this. The general answer is: because an old app is running, and I try to run a new one from Eclipse (but no change in compile), so Android will notice this. But, I have done many things as I could: change something for eclipse rebuild again. Restart Eclipse or Emulator But this warning still exists (and of course, my app still cannot run). Here is my manifest file. Please

Android - Set a border around an ImageView

醉酒当歌 提交于 2019-12-03 15:44:10
问题 I have a cell with a fixed width and height, let it be 100x100px. Inside that cell I want to display an ImageView with a border around. My first idea was to put a background resource to the ImageView , and add a padding of 1dp to create the border effect: <LinearLayout android:layout_width="100dp" android:layout_height="100dp" > <ImageView android:id="@+id/imageView" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="@drawable/image_border" android

android execution in emulator or device?

老子叫甜甜 提交于 2019-12-03 15:41:51
Is there any way to know if my application is running on the emulator or on the device ? I am using this code snippet which works on both Intel and ARM emulators: if (Build.MODEL.contains("google_sdk") || Build.MODEL.contains("Emulator") || Build.MODEL.contains("Android SDK")) { RunsInEmulator = true; } Secure.getString(getContentResolver(), Secure.ANDROID_ID); (where Secure is android.provider.Settings.Secure ) That value will be null on the emulator, non-null on devices. 来源: https://stackoverflow.com/questions/2245654/android-execution-in-emulator-or-device