nexus-5

VP8 Encoding Nexus 5 returns empty/0-Frames

风格不统一 提交于 2019-12-18 07:18:02
问题 I'm trying to encode my camera feed to VP8. The problem is: when I get the frame from the output buffer, the byte array is always different size but all entries are 0. Here's the code where I grab the frame and print it: while (true) { try { encoderIndex = mEncoder.dequeueOutputBuffer(encoderOutputInfo, timeOut); } catch (Exception e) { e.printStackTrace(); } switch (encoderIndex) { case MediaCodec.INFO_OUTPUT_BUFFERS_CHANGED: // something break; case MediaCodec.INFO_OUTPUT_FORMAT_CHANGED: //

Nexus 5 will not show in Eclipse

十年热恋 提交于 2019-12-17 19:01:51
问题 My new Nexus 5 will not show in Eclipse. I have tried every single solution on the internet for the last 3 hours. I have windows 8, not 8.1. I have a new HP Envy laptop. I am under a tight time-frame and need to get developing with this phone. Allow usb debugging is checked. The drivers are up to date and downloaded from the Android developer site for Nexus 5. I have then gone into device manager and right-clicked -> update drivers -> browse -> gone to that usb-driver file in Android sdk,

Nexus 5 not showing on connected devices

一曲冷凌霜 提交于 2019-12-13 06:54:41
问题 Up until recently I had no problems debugging with my Nexus 5 connected via USB cable to my PC (Windows 10). Suddenly I cant see my device in the "Connected Devices" list. can anyone help? Can't see nexus 5 Driver is OK And I can edit my files through the explorer. Help? 回答1: try to use original nexus cable when connect from device to computer , i have this case and solve it when use this cable 回答2: Today I noticed the same behavior on my LG Nexus 5 with Android M. I also remember two icons

BackupManagerService restoration timeout leads to force stop

♀尐吖头ヾ 提交于 2019-12-12 07:58:44
问题 Since yesterday, my Nexus 5 is running Lollipop and the application I am working on is stopping without any crash. Each time it exits, the device logs the following: 11-20 00:23:32.679: I/ActivityManager(723): START u0 {flg=0x14008000 cmp=com.mycompany.android/.app.LoginActivity} from uid 10549 on display 0 11-20 00:23:32.713: W/ActivityManager(723): Duplicate finish request for ActivityRecord{2cd672e4 u0 com.mycompany.android/.app.StartupActivity t39 f} 11-20 00:23:32.926: I/ActivityManager

What's the real size of the launcher icon on nexus 5?

雨燕双飞 提交于 2019-12-07 08:17:12
问题 As the doc mentioned,the launcher icon is 48*48dp. So I think the launcher icon should be 144 * 144px on my nexus 5. But I research a screenshot of my nexus 5,I find it's almost 166* 163px. Why it's bigger than 144*144px? Is my method of calculating the size wrong? (p.s. an app with a 144*144px icon in the drawable-xxhdpi folder is also shows 166* 163px in the launcher.) This is my screenshot: 回答1: Per the info provided by someone working at Google, Nexus 5's launcher uses the launcher icon

Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE] followed by DELETE_FAILED_INTERNAL_ERROR

☆樱花仙子☆ 提交于 2019-12-07 06:11:58
问题 When im trying to run app on nexus5 device, android studio open error window that says " installation failed with message INSTALL_FAILED_CONFLICTING_PROVIDER " and than im asked if i want to uninstall existing application even if it doesnt exist on the device. also, the run window shows " Failure [INSTALL_FAILED_CONFLICTING_PROVIDER] " when click ok i get on the run window : "DEVICE SHELL COMMAND: pm uninstall com.app.app DELETE_FAILED_INTERNAL_ERROR" thank you for your help! 回答1: I noticed

Nexus 5 going to sleep mode makes activity life cycle buggy

半腔热情 提交于 2019-12-06 04:10:43
问题 I have a strange behavior on the Nexus 5 when going in and out to the sleep mode. It kills and relaunchs the app in a really strange way. I show you the log: Going into sleep mode (pressing the power button) 17.005: E/MotherActivity(28940): onPause called 17.025: E/MotherActivity(28940): onStop called 17.315: E/MotherActivity(28940): onDestroy called 17.365: E/GameTuto1Activity(28940): MainActivity Constructor called 17.365: E/MotherActivity(28940): onCreate called 17.695: E/MotherActivity

MediaPlayer.prepare() throws IllegalStateException on Android L

时光怂恿深爱的人放手 提交于 2019-12-05 12:53:57
I have code that plays mp3 file from assets directory: MediaPlayer mediaPlayer = new MediaPlayer(); descriptor = context.getAssets().openFd("beep.mp3"); mediaPlayer.setDataSource(descriptor.getFileDescriptor(), descriptor.getStartOffset(), descriptor.getLength()); mediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC); mediaPlayer.setVolume(soundLevel, soundLevel); descriptor.close(); mediaPlayer.setLooping(false); mediaPlayer.prepare(); mediaPlayer.start(); This code was working fine on every device and every Android version. Until after Android L preview came available. mediaPlayer

Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE] followed by DELETE_FAILED_INTERNAL_ERROR

佐手、 提交于 2019-12-05 09:50:24
When im trying to run app on nexus5 device, android studio open error window that says " installation failed with message INSTALL_FAILED_CONFLICTING_PROVIDER " and than im asked if i want to uninstall existing application even if it doesnt exist on the device. also, the run window shows " Failure [INSTALL_FAILED_CONFLICTING_PROVIDER] " when click ok i get on the run window : "DEVICE SHELL COMMAND: pm uninstall com.app.app DELETE_FAILED_INTERNAL_ERROR" thank you for your help! I noticed that when using Marshmallow (Android 6.0+) there is a problem with the new "com.google.android.gms" play

Flash Torch on Google Nexus 5

假装没事ソ 提交于 2019-12-04 11:09:05
after reading all the posts of the other users with the same problem I was able to create a simple working app for turning on flash light on my Nexus 5, this is the "OnCreate()" method: @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); Camera mCamera; SurfaceView preview; mCamera = Camera.open(); Parameters params = mCamera.getParameters(); params.setFlashMode(Parameters.FLASH_MODE_TORCH); mCamera.setParameters(params); mCamera.startPreview(); try { mCamera.setPreviewTexture(new SurfaceTexture(0)); } catch