android-emulator

Trouble having when pushing files to DDMS?

限于喜欢 提交于 2019-12-06 08:47:08
I'm trying to push one mp3 file to (Emulator) the location /system/media/audio/ui using command adb push But, i'm having E:\Android\android-sdk\platform-tools>adb push song.mp3 /system/media/audio/ui failed to copy 'song.mp3' to '/system/media/audio/ui/song.mp3': Read-only file system this error. How can i change the Permission or how to push the files to this location. Any idea? Markus Jarderot Unless you have a really good reason not to, you should stay in the /sdcard/ folder. Except for /sdcard/ , most of the file system is read-only for a normal user. It is possible, but not recommended,

Android emulator doesn't work properly

只谈情不闲聊 提交于 2019-12-06 08:46:19
I have installed all the necessary files from android site, but when I run my emulator it just displays "ANDROID" and nothing else. I am using Intel Dual core (2.20GHz), ASUS motherboard and 3gb of RAM. Whats the prob I couldnt understand.. Even one of my friend using Intel Dual core(1.80GHz) with 1gb of RAM running smoothly then whats my problem. The emulator is slow becasue it is, of all things, emulating a completely different architecture (arm), and if it's the first time you've started it it has to create the memory file toi emulate the SD card you told it was there. My bet would be that

Adb Transfer Protocol Error. No such file or directory

点点圈 提交于 2019-12-06 08:41:23
问题 I tried to run my android app in a emulator using intelliJ 13 , and I configured the emulator to be a Nexus 4 running android 4.4.2 with ARM cpu, and I got the follow errors: Waiting for device. "C:\Program Files (x86)\Android\android-sdk\tools\emulator.exe" -avd MyAVD0 -netspeed full -netdelay none Device connected: emulator-5554 Device is online: emulator-5554 Target device: MyAVD0 [emulator-5554] Uploading file local path: C:\Users\daiyue\IdeaProjects\HelloDroid\out\production\HelloDroid

m3u8 file not playing in Android Emulator

这一生的挚爱 提交于 2019-12-06 08:36:48
I am trying to playback a m3u8 file in Android Emulator. http://devimages.apple.com/iphone/samples/bipbop/bipbopall.m3u8 It's not able to playback the video but audio is heard. I get the following error E/OMXNodeInstance( 39): OMX_GetExtensionIndex failed . I traced the calls and I see that the video decoder is not instantiated properly, I find that OMXNodeInstance::enableGraphicBuffers is getting called and that calls, OMX_ERRORTYPE err = OMX_GetExtensionIndex(...,const_cast<OMX_STRING>("OMX.google.android.index.enableAndroidNativeBuffers"),...); which is then calling OMX_ERRORTYPE

android : Unable to stop activity

梦想的初衷 提交于 2019-12-06 07:37:49
I am new to android. I have a loginActivity which validates a user number and then starts a "searchactivity". At runtime, I see the search activity coming up (after user is validated) but then android is having problems stopping the loginActivity. I am getting a "java.lang.runtimeexception: Unable to stop activity {com.insruance/com.insurance.LoginActivity}: android.app.SuperNotCalledException : Activity at android.app.ActivityThread.performStopActivityInner(ActivityThread.java:3413)" I would really appreciate if someone could point to what I am doing wrong. Code : public class LoginActivity

Failed to start monitoring and not run the program. Why?

百般思念 提交于 2019-12-06 07:34:10
I reinstalled Windows 7 last week and unzipped Eclipse and reinstalled the SDK again, but I didn't run the program in Eclipse. When I connect the Galaxy phone to my computer, Eclipse shows an error and frequently writes in the console tab Failed to start monitoring 0A3C202B1601A00A . After a while, Eclipse qill show an Android Device Chooser window. I can't select 0A3C202B1601A00A . I use ADB and i write adb address and adb devices in cmd, cmd writes deamon not running. When I disconnect the phone from my computer and I want to run the program with an emulator, the program won't run and when I

'sh: 1: file: not found' when creating a android emulator inside a docker container

限于喜欢 提交于 2019-12-06 06:54:36
问题 I'm trying to create a android emulator inside a docker container but got some problems. The SDK updates and AVD creation were successful and i try to create the emulator, the following error appears: ./emulator -avd test-22 -no-skin -no-audio -no-window sh: 1: file: not found sh: 1: file: not found WARNING: Cannot decide host bitness because $SHELL is not properly defined; 32 bits assumed. ERROR: 32-bit Linux Android emulator binaries are DEPRECATED, to use them Notes: Running last docker

Is there some sort of ASLR protection on Android?

折月煮酒 提交于 2019-12-06 06:53:39
问题 I want to know if someone could access libraries with function addresses that would be the same from one instance of the program to the other? 回答1: The address space layout will be pretty consistent from run to run on the same device. A lot of the major system libraries are preloaded by zygote, and so inherited as shared mappings by the children it forks off to differentiate into applications. I suppose remapping them at the virtual memory level would be possible, but would incur a sort of

Gradle JUnit Espresso on Emulator connectedAndroidTest java.lang.IncompatibleClassChangeError

两盒软妹~` 提交于 2019-12-06 06:43:53
问题 I have a simple unit test for a static method and running them on Emulator. (Goal is to run on cloud CI so I am testing on emulator.) Gradle 2.2.1 Emulator Android 5.0 I use these steps on console. android create avd --force -n test -t "android-21" emulator -avd test -no-skin -no-audio -no-window & adb wait-for-device adb shell input keyevent 82 & gradle clean installDebug gradle connectedAndroidTest build.gradle dependencies { ... androidTestCompile('com.jakewharton.espresso:espresso:1.1-r3'

Android API 8 , 10 ContactsContract.Data.HAS_PHONE_NUMBER no such column

久未见 提交于 2019-12-06 06:20:06
问题 The below query runs fine on my device (API 15). It does not work in my emulator running API 8 or API 10. Here is the query: Cursor contactsCur = getContentResolver().query( ContactsContract.Data.CONTENT_URI, new String[] { ContactsContract.Data._ID, ContactsContract.Data.CONTACT_ID, ContactsContract.Data.DISPLAY_NAME, ContactsContract.CommonDataKinds.Organization.COMPANY, ContactsContract.CommonDataKinds.Phone.TYPE, ContactsContract.Data.LOOKUP_KEY, ContactsContract.CommonDataKinds.Phone