nexus-5

Working Directory : null environment when running Process.Builder on android

痴心易碎 提交于 2019-12-02 04:51:48
I am using two phones, Galaxy Nexus(JellyBean) and Nexus 5(KitKat). I am trying to execute a script which exists in /data/folder/scripts/run.sh I use Process.Builder to build the command. This command is built by getting Environment.getDataDirectory().toString() + "/folder/scripts/run.sh" There are no issues running this on the Galaxy Nexus but when I run it on the Nexus 5, I catch an exception when I run the process.start(). The output which I get contains: Error running exec(). Command: [/data/folder/scripts/run.sh, "param"]. Working directory: null Environment: [ADNROID_ROOT=/system ... ]

AOSP 6.0 Build for hammerhead - proprietary binaries

﹥>﹥吖頭↗ 提交于 2019-12-01 08:55:18
I just built AOSP 6.0 for hammerhead and attempted to flash it. My phone froze at the Google logo and refused to boot. I'm assuming I need to use the proprietary binaries found here https://developers.google.com/android/nexus/drivers How would I extract these and put them in to my build? Thanks. Be certain to download the Nexus 5 binaries that match the version of AOSP that you're building. For example, if you're building the most recent version of AOSP, when you initialized your repo you entered this command: $ repo init -u https://android.googlesource.com/platform/manifest -b android-6.0.1

VP8 Encoding Nexus 5 returns empty/0-Frames

社会主义新天地 提交于 2019-11-29 12:49:46
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: // something else break; case MediaCodec.INFO_TRY_AGAIN_LATER: // something completely different break;

Nexus 5 will not show in Eclipse

二次信任 提交于 2019-11-28 09:17:59
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, made sure include sub-directories is checked, then click finish. It installs. They are already up to date.

Android ResideMenu library, bottom of Fragment has Cropping issue

好久不见. 提交于 2019-11-28 08:17:42
问题 https://www.dropbox.com/s/lykyutdlo6386il/nexus%205%202.png?dl=0 This picture is captured by nexus 5. As you can see the gap between top and bottom of screen is different. Android Logo is cropped when the side menu is closed. Part of the bottom screen is hidden under native navigation bar. https://www.dropbox.com/s/wcwuat1bwoqa26v/correct1.png?dl=0 On the other hand, this picture is captured by galaxy s5 mini. You may notice the gap between top and below of the screen is the same amount.