android-emulator

How to install email client on emulator

别来无恙 提交于 2019-12-13 00:44:19
问题 I have to build an email sending sending program and now i want to test it. but emulator is saying that "Their is no app to perform this action". So how can i install gmail or some other email client on the emulator. Thanks in advance. 回答1: Open the Email app, and configure an account with it. Then you will be able to send email intents. 回答2: Configure your Emulator with "Google API" rather than just choose "Android" 回答3: You need to enable "Allow less secure apps: ON" in Sign-in & security

Would it be possible to speed up Android Emulator by removing unnecessary apps?

自作多情 提交于 2019-12-13 00:38:04
问题 I am using Android SDK 1.6 and developing some simple apps. It seems everytime Android Emulator loads every default apps, like message music browser etc... I guess this cause the booting process slow (takes 1 minute overhead for me to test the code every time). Would it be possible to take these apps out and just have my apps on the emulator? My purpose is to have a faster boot up time on emulator. 回答1: emulator -help there are a few things you can disable. Why you would want to disable stuff

Device press/touch with monkeyrunner on DroidBox don't work

我的未来我决定 提交于 2019-12-13 00:36:35
问题 I'm using a monkeyrunner script that works over DroidBox23, it is the script that cames by default in the DroidBox program, in the folder scripts/, but i modificated by this way: import re import sys import os import time from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice device = MonkeyRunner.waitForConnection() device.installPackage(sys.argv[1]) package = sys.argv[2] activity = sys.argv[3] # sets the name of the component to start runComponent = package + '/' + activity print

No Launcher Activity found with .Launcher in Manifest.xml already included?

拈花ヽ惹草 提交于 2019-12-13 00:04:24
问题 I am trying to run a source code I've found online for android. When I run it, it gives me: No Launcher activity found! The launch will only sync the application package on the device! Performing sync I already have in my Manifest.xml the following: action android:name="android.intent.action.MAIN" category android:name="android.intent.category.LAUNCHER" What could be wrong? The weird thing is that it worked once. And then when I ran it again it gave me needs to force the application. It is

Fonts in XML not working on emulator API 23

﹥>﹥吖頭↗ 提交于 2019-12-12 23:42:50
问题 I'm trying to use Fonts in XML, but have problems on Emulator. On the device with the Android 23 API works correctly, but on the emulator with the same version for some reason the fonts are not downloaded and are not applied. I used default Android Studio 3 Emulator (API 23, System image x86) . It's interesting that on the emulator with the API 27 everything works well and the fonts are applied. My app.gradle file: apply plugin: 'com.android.application' android { compileSdkVersion 27

Unfortunately, MyApp has Stopped In Emulator

て烟熏妆下的殇ゞ 提交于 2019-12-12 23:08:15
问题 I am very new to Android & now I am having weird problem in my Application. It doesn't give me any error in console. I am just trying to test different notification options of Android and for this reason here is my written code: class Home extends Activity { Button notification; Button progress; private int ID=1; ProgressDialog pd; ProgressTask pt = null; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_home);

Simulate cellular network's behaviour on Eclipse emulator

空扰寡人 提交于 2019-12-12 20:53:36
问题 Is there any way to simulate the behaviour of a cellular mobile network (GSM/UMTS) in the Eclipse Android emulator? More specifically: I want to develop an app to show information about the network, such as coverage level, parameters of neighbouring cells etc, as provided by the TelephonyManager and other related classes. I would like to do as much debugging as possible with the emulator, before testing in an actual phone. For that I would need the emulated phone to "see" a functioning

React Native's onScroll, onScrollEndDrag, onScrollBeginDrag supported on Android?

有些话、适合烂在心里 提交于 2019-12-12 20:15:11
问题 I have a few simple console.log statements in onScrollBeginDrag , onScroll , and onScrollEndDrag attached to a ScrollView . I can see that they work as expected on my iOS device, but they are not working on an Android emulator. This raises the question, are these props only supported on iOS or is there a problem with Android emulator? the code is as simple as: onScroll={() => console.log("scroll")} onScrollBeginDrag={() => console.log("begin")} onScrollEndDrag={() => console.log("end")} 回答1:

Black screen emulator Android Q Preview (Pixel 2)

拈花ヽ惹草 提交于 2019-12-12 20:07:43
问题 Strange issue here. I've just downloaded Android Q preview in my Android Studio to try it within an emulator. However, no matter what device type I select, when I start the emulator with the selected Q image I get black screen on the emulator without any kind of feedback. I've already tried to delete and recreate the emulator, as well as wiping its data. Below a picture of my emulator state at the moment. If I select another image of a different api version, everything works fine. Below the

date format change in datepicker and calendar

送分小仙女□ 提交于 2019-12-12 19:33:31
问题 How to change 2/3/2013 format to 02/03/2013 (dd/mm/yyyy) ? Calendar c1 = Calendar.getInstance(); year = c1.get(Calendar.YEAR); month = c1.get(Calendar.MONTH); day = c1.get(Calendar.DAY_OF_MONTH); // formatter = new SimpleDateFormat("dd/MM/yyyy"); public void onDateSet(DatePicker view, int selectedYear, int selectedMonth, int selectedDay) { year = selectedYear; month = selectedMonth; day = selectedDay; // set selected date into textview. searchText.setText(new StringBuilder().append(month + 1)