android-emulator

Android - VideoView requires to press BACK twice, in order to exit

◇◆丶佛笑我妖孽 提交于 2019-12-11 03:38:53
问题 I have an activity with different video files displayed. When I click a video file, I'm taken to another activity, where a VideoView plays the video. My issue is that when I want to exit this activity and return back to previous, I should click twice the back button, in order to return back. If I click only once, the video starts playing once again, and only at the second attempt I'm allowed to exit the screen. Then I tried this: @Override public boolean onKeyDown(int keyCode, KeyEvent event)

Android Wear Emulator show Error SERVICE_VERSION_UPDATE_REQUIRED for Google Play services

北慕城南 提交于 2019-12-11 03:23:41
问题 I am testing android wear app on Wear Emulator and using eclipse to develop. In wear app there are code as below in onCreate: mGoogleApiClient = new GoogleApiClient.Builder(this).addConnectionCallbacks(this).addOnConnectionFailedListener(new GoogleApiClient.OnConnectionFailedListener() { @Override public void onConnectionFailed(ConnectionResult result) { Log.d(TAG, "onConnectionFailed: " + result); } }).addApi(Wearable.API).build(); mGoogleApiClient.connect(); When I run this on Wear emulator

connect error of socket programming via ndk

亡梦爱人 提交于 2019-12-11 03:19:56
问题 Actually,i have do a test with the server.c and client.c in the android emulator(ps:they both runs sucesssfully and are compiled with the android genric cross-compiler).And,then i go further,i rewrite the client-side via the jni.But,in this case,the client fail to connect to the server-side,though new client is very similar to the client.c. After searching,someone mentions that the permission matters.But,when i add the <uses-permission android:name="android.permission.INTERNET" /> (ps:this

Getting android_key_not_configured facebook error

醉酒当歌 提交于 2019-12-11 03:12:47
问题 I am trying to enable facebook login in my android app. I have linked the the facebook app in my application. But once i press login, then I get the facebook error android_key_not_configured Has any body seen this before? 回答1: I saw this message too. I hadn't added a key in the "Key Hashes" field on the Facebook Native Android App menu . I went ahead and added a dummy key "foo". After adding this dummy key, the next time I ran the app, after waiting about 5 minutes, I got "Login failed"

Android error: Application is not installed on your phone?

假装没事ソ 提交于 2019-12-11 03:08:16
问题 I am learning this via Sams Teach Yourself Android in 24 hours. This is really strange, I run the app in the emulator and I get my splash screen (just some crappy text really) then I press the home button, and click on my app's icon and it gives me "Application is not installed on your phone" I went into the emulators settings->applications and it's there! I cleaned the project, uninstalled it from the emulator and re-ran it. Same damn problem. (project is simple: 6activities, each has a

Emulator showing black screen on android studio

谁说胖子不能爱 提交于 2019-12-11 03:04:47
问题 I am trying to run emulator on android studio. The ide shows the message -netdelay none -netspeed full -avd Nexus_5_API_22 creating filesystem with parameters: Size: 69206016 Block size: 4096 Blocks per group: 32768 Inodes per group: 4224 Inode size: 256 Journal blocks: 1024 Label: Blocks: 16896 Block groups: 1 Reserved block group size: 7 Created filesystem with 11/4224 inodes and 1302/16896 blocks emulator: device fd:792 HAX is working and emulator runs in fast virt mode emulator: emulator

Unable to deploy basic android app

痴心易碎 提交于 2019-12-11 02:53:58
问题 I just started trying to develop a simple hello world android app. Since I am using an AMD processor the default emulator that comes with Android Studio isn't working so I have setup genymotion emulator. I did a new project with just hello world written in it. But when I try to deploy it in the emulator I am getting the following error Unexpected error: package manager reports that package in.techbreeze.android.hello has not been installed: Expected string 'Package [in.techbreeze.android

How I can emulate screen rotation with monkeyrunner with Android emulator?

本小妞迷上赌 提交于 2019-12-11 02:52:13
问题 I use monkeyrunner script for testing APK with GenyMotion emulator at Windows. Is it possible that script rotate emulated device? 回答1: Thanks Nir H. I have created in the same folder with script - rotate.bat with this code: "c:\Program Files\Genymobile\Genymotion\genyshell.exe" -c "rotation setangle %1" and call it from monkeyrunner as (example of rotate 90 degree and rotate it back): ... print "rotation 90" res = os.popen('rotate 90').read() print res MonkeyRunner.sleep(1) print "rotation 0"

Where are files stored on an Android emulator?

大憨熊 提交于 2019-12-11 02:44:12
问题 I am working on a small program on Android to write some hard-coded text to a file with a hard-coded name. While the operation is successful (there are no errors), I am not able to find the file on the emulator. My questions: Where are the files written? What is the file path I need for files to be stored on the home screen or the applications page (in general, a place where the UI can get to)? The code: public class MainActivity extends Activity { Button writeFile; @Override public void

How to allow the emulator to access internet in android?

怎甘沉沦 提交于 2019-12-11 02:38:52
问题 How to allow the android emulator to access internet ? 回答1: You don't need to set any setting to access internet on emulator unless you are behind a proxy, in case you are behind a proxy start your emulator from command prompt with following command: C:/emulator -avd avdname -http-proxy http://your.proxy.ip:8080 来源: https://stackoverflow.com/questions/8818856/how-to-allow-the-emulator-to-access-internet-in-android