android-emulator

AudioRecorder in Android Error Invalid buffer size

随声附和 提交于 2019-12-04 13:16:26
问题 I need to record and play audio simultaneously and i use the help of 2 threads for it.here is the code recorder = new AudioRecord(AudioSource.MIC, 8000, AudioFormat.CHANNEL_CONFIGURATION_MONO, AudioFormat.ENCODING_PCM_16BIT, bufferSize); if (recorder.getState() == android.media.AudioRecord.STATE_INITIALIZED) recorder.startRecording(); isRecording = true; audioPlayer = new AudioTrack(AudioManager.STREAM_MUSIC, 8000, AudioFormat.CHANNEL_CONFIGURATION_MONO, AudioFormat.ENCODING_PCM_16BIT,

Is there some sort of ASLR protection on Android?

喜欢而已 提交于 2019-12-04 13:04:02
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? 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 dynamic-re-linking penalty and would be fairly tricky to implement. 来源: https://stackoverflow.com/questions

IOException everytime I try to upload anything to android emulator

六月ゝ 毕业季﹏ 提交于 2019-12-04 13:02:59
问题 I'm using Windows 7 Ultimate 64 bit edition and Eclipse 3.5 with the Android plugin. Every time I create a new project and try to publish it, I get an error like this: [2010-02-15 22:48:10 - EPG3]Uploading EPG3.apk onto device 'emulator-5554' [2010-02-15 22:48:15 - EPG3]Failed to upload EPG3.apk on device 'emulator-5554' [2010-02-15 22:48:15 - EPG3]java.io.IOException: Unable to upload file: timeout [2010-02-15 22:48:15 - EPG3]Launch canceled! The emulator is working perfectly, adb can see it

Android studio emulator white screen

核能气质少年 提交于 2019-12-04 12:33:34
问题 I've Installed the newest version of Android studio, including the newest version of HAXM, ndk, sdk and whatever other related dependencies it installs. Intel Virtualization bios setting thingy I can't remember the name of is enabled and I have no trouble in virtual box and such. I created an empty activity and tried testing it on the phone, works perfectly. Then I tried it on the emulator and there is a problem when it is hardware accelerated. It just opens a white window. The android studio

How to enable VPN support in Android Emulator

我们两清 提交于 2019-12-04 12:30:18
问题 I like to use a PPTP VPN in the Android emulator. My VPN provider is Witopia. The settings work on a real phone (HTC Desire). It does not work, the connection just times out after a while. adb logcat prints: D/VpnManager( 1527): succeeded to connect to VPN service D/com.android.settings.vpn.AuthenticationActor( 1527): ~~~~~~ connect() succeeded! I/SProxy_mtpd( 2211): Stop VPN daemon: mtpd D/VpnSettings( 1527): received connectivity: Witopia: connected? CONNECTING err=0 D/SProxy_mtpd( 2211):

Adb Transfer Protocol Error. No such file or directory

与世无争的帅哥 提交于 2019-12-04 12:14:41
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\HelloDroid.apk remote path: /data/local/tmp/com.example.HelloDroid Adb Transfer Protocol Error. No such

License error with android 4.4 emulator

天大地大妈咪最大 提交于 2019-12-04 11:48:38
I updated today the sdk to the new version and I've got a problem with the license. When my application starts with the new Google API lev. 19, I receive a "License has stopped" error. From logcat I can see this kind of error: 11-01 06:47:57.120: E/AndroidRuntime(991): FATAL EXCEPTION: main 11-01 06:47:57.120: E/AndroidRuntime(991): Process: com.android.vending, PID: 991 11-01 06:47:57.120: E/AndroidRuntime(991): java.lang.RuntimeException: Unable to instantiate application com.android.vending.VendingApplication: java.lang.ClassNotFoundException: Didn't find class "com.android.vending

Newbie: How to change tab font size?

限于喜欢 提交于 2019-12-04 11:14:44
I follow the android develops tutorial of tab layout to implement a simple tab layout. Based on that tutorial, I got an question in my mind, that's how to change the tab font size?? I tried to change the tab font size by adding the attribute android:textSize="8dip" in <TabWidget ...> of the layout xml file : <TabWidget android:id="@android:id/tabs" android:layout_width="fill_parent" android:layout_height="wrap_content" android:textSize="8dip" /> but it does not take any effect. Anyone can provide the right way to change the font size on the tab? Rahul Sharma Here you go in your tabactivity use

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

折月煮酒 提交于 2019-12-04 11:06:57
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.NUMBER, Contacts.Data.MIMETYPE, ContactsContract.CommonDataKinds.Phone.MIMETYPE, ContactsContract

android tablet emulator

时光怂恿深爱的人放手 提交于 2019-12-04 11:00:43
问题 I want to develop application for Android tablet . But I am unable to create a tablet size emulator . Emulator size should be 1024x600 (WSVGA) but there is no option to make tablet size emulator in default skin size in sdk2.2 as well as sdk 2.3. Then How to create tablet size emulator? However i have tried to make tablet size emulator manually putting the screen size 600x1024 in screen resolution. But this emulator is not working. Please help. 回答1: You can download the Galaxy Tab Emulator