[android-developers] Android Wear CapabilityApi problems
I've written a simple Wearable app which uses the CapabilityApi to discover a paired handheld with a named capability. This all works great on an LG G Watch and it's paired LG phone: *LG G Watch:* - Android Wear 1.1.1.1929530 - Google Play Services 7.5.71 *LG G3 Phone:* - Android 4.4.2 - Android Wear 1.1.1.1929530 - Google Play Services 7.5.71 However, we also have a Moto 360 wearable and a paired Moto where this isn't working (i.e. we get 0 nodes) *Moto 360* - Android Wear 1.0.5.1734235 - Google Play Services 7.5.71 *Moto G* - Android 5.0.2 - Android Wear 1.1.1.1929530 - Google Play Services 7.5.71 The capability code is pretty basic: Wearable.CapabilityApi.getCapability(mGoogleApiClient, "capability-name", Capability.FILTER_REACHABLE).setResultCallback(new ResultCallback(){ @Override public void onResult(CapabilityApi.GetCapabilityResult result) { if (result.getStatus().isSuccess()) { Set connectedNodes = result.getCapability().getNodes(); // connectedNodes.size() == 0 on the Moto 360!!! } }} this returns the correct node on the LG, not the Motorola. We have other testers who are reporting success on LG Urbane and Samsung Gear Live ... Even on the Motorola, this worked prior to an Android Wear software update that was done on the phone. *There is no software update available on the wearable, so we have a mismatch of Android Wear versions* ... this must be the root of the problem (?). I'm looking for suggestions or workaround, or at least to know if anyone else has seen this issue? Thanks in advance -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] RenderScript and Eclipse, gen classes import android.support.v8.renderscript
Hello, I'm trying to learn RenderScript, have downloaded the LivePreview sample code from h ttps://android.googlesource.com/platform/frameworks/rs/+/master/java/tests/. I use Eclipse still for IDE. This sample is a fairly simple app, has a single .rs file (yuv.rs). This code does not use the support library. Eclipse is creating gen/ScriptC_yuv.java which shows an import for the support library: import android.support.v8.renderscript.*; even though I'm not using the support library...the two main java classes in the app import android.renderscript.*; *I'd like to understand how this "gen" class is created and if I can force the import to* : import android.renderscript.*; While I could try to use the support library, I've found that it doesn't support the RenderScript Allocation.setSurface() method, which this sample app uses, so this has led to a different dead-end. Any guidance would be appreciated! Chris -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] Re: ERR_UNKNOWN_URL_SCHEME in Chromium browser on Android Lollipop
Resolved, this only occurred on a web page that was opened via , once removed the target="_blank", Chromium on Lollipop began behaving. On Wednesday, October 29, 2014 9:58:34 AM UTC-4, Vertifi Software wrote: > > We recently flashed the Lollipop Preview System Image onto our Nexus 5. > > Some of our apps can be launched from the built-in browser via custom URL > scheme > > > > . > . > . > > > > > > This feature is not working with the new browser in Lollipop, we get a > > > *Webpage not available. * > > The webpage at myscheme://com.myhost.com could not be loaded because: > > net: ERR_UNKNOWN_URL_SCHEME > > > > We installed the Firefox browser on this Nexus 5 and tried the same thing > and it all worked fine. And this same technique has worked for us since > Android 2.1 thru KitKat. > > I think I'm seeing a bug that is concerning as browser launch is a > critical capability for us. Wondering if anyone else has seen this and > perhaps suggest a workaround? Alternatively, I hope to get some attention > at Google, and am unsure if this forum is a good way to do so. > > Thanks in advance for any advice! > > > > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] ERR_UNKNOWN_URL_SCHEME in Chromium browser on Android Lollipop
We recently flashed the Lollipop Preview System Image onto our Nexus 5. Some of our apps can be launched from the built-in browser via custom URL scheme . . . This feature is not working with the new browser in Lollipop, we get a *Webpage not available. * The webpage at myscheme://com.myhost.com could not be loaded because: net: ERR_UNKNOWN_URL_SCHEME We installed the Firefox browser on this Nexus 5 and tried the same thing and it all worked fine. And this same technique has worked for us since Android 2.1 thru KitKat. I think I'm seeing a bug that is concerning as browser launch is a critical capability for us. Wondering if anyone else has seen this and perhaps suggest a workaround? Alternatively, I hope to get some attention at Google, and am unsure if this forum is a good way to do so. Thanks in advance for any advice! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] QCameraHWI crash in JPG encoder (/system/lib/libmmjpeg_interface.so)
entry+72) 07-29 09:01:41.002 I/DEBUG ( 7560): #09 pc d410 /system/lib/libc.so (pthread_create+240) Our app/process is PID 6826, so not even shown here. This problem is reproducible, though failure doesn't occur every time a photo is taken. This all appears to be doing something related to EXIF encoding in the JPG. I'm just not sure how to get help ... if anyone can point me in the right direction I'd be very grateful. Kind regards, Chris @ Vertifi -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. 07-29 09:01:40.521 I/VIPLibrary( 6826): getCornersYUV finish 1406649700 07-29 09:01:40.521 I/VIPLibrary( 6826): getCornersYUV start 1406649700 diff span 17 diff gap 4 cpus 4 07-29 09:01:40.521 I/VIPLibrary( 6826): VIPMeasureLumaDiffs TL: vertical 10 horizontal 10 07-29 09:01:40.521 I/VIPLibrary( 6826): VIPMeasureLumaDiffs TR: vertical 10 horizontal 16 07-29 09:01:40.521 I/VIPLibrary( 6826): VIPMeasureLumaDiffs BL: vertical 10 horizontal 10 07-29 09:01:40.521 I/VIPLibrary( 6826): VIPMeasureLumaDiffs BR: vertical 10 horizontal 10 07-29 09:01:40.541 E/ShotSingle( 7563): <=== Exception : metadata is NULL ===> 07-29 09:01:40.541 E/QualcommCamera( 7563): Qvoid android::disable_msg_type(camera_device*, int32_t): E 07-29 09:01:40.561 I/VIPLibrary( 6826): VIPGetCornerBR2 BR 1705,865 07-29 09:01:40.571 I/VIPLibrary( 6826): VIPGetCornerTL2 TL 229,154 07-29 09:01:40.581 I/VIPLibrary( 6826): VIPGetCornerTR2 TR 1705,178 07-29 09:01:40.581 I/VIPLibrary( 6826): VIPGetCornerBL2 BL 197,841 07-29 09:01:40.581 I/VIPLibrary( 6826): getCornersYUV finish 1406649700 07-29 09:01:40.591 E/QualcommCamera( 7563): Qvoid android::disable_msg_type(camera_device*, int32_t): E 07-29 09:01:40.591 E/QualcommCamera( 7563): Qchar* android::get_parameters(camera_device*): E 07-29 09:01:40.591 E/QualcommCamera( 7563): Qvoid android::put_parameters(camera_device*, char*): E 07-29 09:01:40.661 E/QualcommCamera( 7563): Qint android::send_command(camera_device*, int32_t, int32_t, int32_t): E 07-29 09:01:40.661 I/QCameraHWI( 7563): sendCommand: E, command = 1509 07-29 09:01:40.661 I/QCameraHWI( 7563): sendCommand: X 07-29 09:01:40.661 I/ShotSingle( 7563): ShotSingle::takePicture start 07-29 09:01:40.661 E/QualcommCamera( 7563): Qint android::take_picture(camera_device*): E 07-29 09:01:40.661 E/QCameraHWI( 7563): takePicture: mPrepareSnapshot = 1 07-29 09:01:40.661 I/ShotSingle( 7563): ShotSingle::takePicture end 07-29 09:01:40.661 E/QualcommCamera( 7563): Qvoid android::disable_msg_type(camera_device*, int32_t): E 07-29 09:01:40.661 E/QualcommCamera( 7563): Qchar* android::get_parameters(camera_device*): E 07-29 09:01:40.661 E/QualcommCamera( 7563): Qvoid android::put_parameters(camera_device*, char*): E 07-29 09:01:40.661 E/mm-camera-DENOISE( 294): GPU disable 07-29 09:01:40.661 E/QualcommCamera( 7563): Qint android::send_command(camera_device*, int32_t, int32_t, int32_t): E 07-29 09:01:40.661 I/QCameraHWI( 7563): sendCommand: E, command = 1509 07-29 09:01:40.661 I/QCameraHWI( 7563): sendCommand: X 07-29 09:01:40.661 I/ShotSingle( 7563): ShotSingle::takePicture start 07-29 09:01:40.661 E/QualcommCamera( 7563): Qint android::take_picture(camera_device*): E 07-29 09:01:40.661 E/QCameraHWI( 7563): takePicture: mPrepareSnapshot = 1 07-29 09:01:40.661 I/ShotSingle( 7563): ShotSingle::takePicture end 07-29 09:01:40.691 E/mm-camera-DENOISE( 294): 07-29 09:01:40.691 E/mm-camera-DENOISE( 294): ARM Proc:20263, Seg W:960, Seg H:540 07-29 09:01:40.691 E/mm-camera-DENOISE( 294): 07-29 09:01:40.691 E/mm-camera-DENOISE( 294): ARM Proc:19562, Seg W:960, Seg H:540 07-29 09:01:40.691 E/mm-camera( 294): All segments received 07-29 09:01:40.691 E/mm-camera( 294): Segment recd count i 0 count 1 07-29 09:01:40.691 E/mm-camera( 294): Segment recd count i 1 count 1 07-29 09:01:40.691 E/mm-camera( 294): Wavelet main image time Complexity : 1 0 0 Resolution: 1920 x 1080, Time 29694 07-29 09:01:40.691 E/mm-camera-intf( 7563): wnr sync processing 07-29 09:01:40.691 E/mm-camera-intf( 7563): mm_channel_process_stream_buf: no superbuf avail, break the loop 07-29 09:01:40.691 E/mm-camera-intf( 7563): mm_channel_process_stream_buf: no superbuf avail, break the loop 07-29 09:01:40.691 E/QCameraHWI( 7563): superbuf_cb_routine: E 07-29 09:01:40.
[android-developers] ActionBar tabs - dynamic setIcon()
I'd like to use an ActionBar tab that has a text title of "Messages", and use setIcon() with a custom drawable to show an "unread messages count" ... a little red bubble with a number inside. This will attact a users attention to the tab, letting them know there are messages to be read. No problem creating the custom drawable and setting it as the tab bar icon, have that working fine. However, when the # of unread messages is zero, I want this icon to disappear. I found that simply getting the tab from actionBar() and calling setIcon(null) doesn't actually do anything on the tab. I can fiddle with visibility, but the icon appears to still occupy space in the view, i.e. the text isn't centered. Is going down the path of setCustomView() on the tab the only option? Thanks in advance! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] disabled EditText display glitch (Android 2.2)?
Hello, Disabled EditText fields (android:enabled="false") have a horizontal line being drawn through them. Created simple test app using standard Eclipse wizard, added EditText for main.xml layout as follows: http://schemas.android.com/apk/res/ android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"> The field is grayed out, as expected, but also a horizontal line through the middle, on Nexus One (2.2.2), Motorola Droid (2.2.1), but NOT on Samsung Galaxy (2.1). Help in understand where this is coming from would be much appreciated. Chris @ Vertifi -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: rotate progress bar
Build a custom widget by modifying the android AbsSeekBar class code, not by extending ProgressBar. The rotate/translate technique in your onDraw is valid. On Feb 15, 4:24 pm, Jonathan wrote: > HI, I am extending the normal android.widget.ProgressBar. I want to > make it vertical. This is my current onDraw Method > > @Override > protected synchronized void onDraw(Canvas canvas) { > > canvas.save(); > canvas.rotate(90); > canvas.translate(0,-50); > super.onDraw(canvas); > canvas.restore(); > } > > This rotates it fine, however I am having alot of sizing issues. It > seems as though I have to set the width and the height of the control > to be the same thing or else I run into alot of clipping issues. > Basically, I want to have a progress bar that, once rotated, is 50dip > wide and fills the screen vertically. Can anyone think of a way to do > this? > > Also, it doesn't seem to be actually drawing the progress properly, > but I will revisit that once I get the clipping sorted out. > > Thanks > > Jon -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Help with Camera.Parameters.getFlashMode()
Use Reflection to allow for conditional compile. This code snippet might help, although it shows calling setFlashMode, the concept is the same: Method methodSetFlashMode = null; Class[] methodSetFlashModeSignature = new Class[] { String.class }; List lSize = null; try { methodSetFlashMode = params.getClass().getMethod("setFlashMode", methodSetFlashModeSignature); } catch (NoSuchMethodException nsme) { } if (methodSetFlashMode != null) { Object[] oArgs = new Object[1]; oArgs[0] = "off"; methodSetFlashMode.invoke(params, oArgs); } On Jan 19, 3:21 pm, tikky wrote: > All, > I am developing an app that uses the phonecamera, and I want to set > the Flash Mode, if flash exists. > From documentation, it looks like I need to > callCamera.Parameters.getFlashMode() and check if it returns null to > determine if flash exists. > Note: getFlashMode() is supported from API level 5 > > However, when I try to run this app on a phone with cupcake, I get an > error: > 01-19 14:02:43.404: ERROR/dalvikvm(18891): Could not find method > android.hardware.Camera$Parameters.getFlashMode, referenced from > method ... > > I tried to call this code based on SDK version as follows, but that > does not work either. Looks like there is a class verification thats > fails at init: > > import android.os.Build.VERSION; > > int mSdkVersion = VERSION.SDK_INT; > Camera.Parameters params = mCamera.getParameters(); > if (mSdkVersion >=5 && params.getFlashMode()!=null){ > > params.setFlashMode(Camera.Parameters.FLASH_MODE_AUTO);//set auto > flash > } > > So now I am wondering if there is any other way to check if flash > exists? or is there a way to conditionally compile code based on > mSdkVersion? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: sticky client IP address?
Mike, Yes thank you! I've seen different behavior on iPhone. I've taken the iPhone SIM and put it in a Nexus One where I see this behavior. This is why I was surprised. The real underlying issue I have is that our server farm load balances by client IP (class C) address range, and the address changes are at class B scope. I can resolve, but was just surprised to see this... Chris On Feb 3, 10:38 am, Mike wrote: > The simple answer is that cell networks don't use TCP/IP. What you > see is the IP address of the gateway server that happens to have > generated the request. This could change on every request and is not > time based. > > Hope it helps. > > - Mike > NAVTEQ Network for Developershttp://NN4D.com > > On 3 Feb, 15:35, Vertifi wrote: > > > > > Hello, > > > I have an app which performs some online functions to a web server > > farm we operate using URLConnection. I'm finding that the client IP > > address of the phone seems to change after a fairly brief period of > > inactivity. > > > For example, please see these timestamps and the corresponding client > > IP addresses: > > > 2010-02-03 09:46:47 / 32.152.30.98 > > 2010-02-03 09:47:05 / 32.152.30.98 > > 2010-02-03 09:57:21 / 32.152.218.197 > > 2010-02-03 09:59:53 / 32.152.23.19 > > > This is sitting in a stationary location (on an AT&T EDGE network) in > > my office. Is there some reason for this behavior? > > > Any advice would be greatly appreciated > > > Regards, > > Chris @ Vertifi- Hide quoted text - > > - Show quoted text - -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: sticky client IP address?
Additional information: I've tried a PhoneStateListener with onDataConnectionStateChanged (and onCellLocationChanged) to see if I can be notified of these changes, but I'm not receiving such notifications On Feb 3, 10:35 am, Vertifi wrote: > Hello, > > I have an app which performs some online functions to a web server > farm we operate using URLConnection. I'm finding that the client IP > address of the phone seems to change after a fairly brief period of > inactivity. > > For example, please see these timestamps and the corresponding client > IP addresses: > > 2010-02-03 09:46:47 / 32.152.30.98 > 2010-02-03 09:47:05 / 32.152.30.98 > 2010-02-03 09:57:21 / 32.152.218.197 > 2010-02-03 09:59:53 / 32.152.23.19 > > This is sitting in a stationary location (on an AT&T EDGE network) in > my office. Is there some reason for this behavior? > > Any advice would be greatly appreciated > > Regards, > Chris @ Vertifi -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] sticky client IP address?
Hello, I have an app which performs some online functions to a web server farm we operate using URLConnection. I'm finding that the client IP address of the phone seems to change after a fairly brief period of inactivity. For example, please see these timestamps and the corresponding client IP addresses: 2010-02-03 09:46:47 / 32.152.30.98 2010-02-03 09:47:05 / 32.152.30.98 2010-02-03 09:57:21 / 32.152.218.197 2010-02-03 09:59:53 / 32.152.23.19 This is sitting in a stationary location (on an AT&T EDGE network) in my office. Is there some reason for this behavior? Any advice would be greatly appreciated Regards, Chris @ Vertifi -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Bitmap performance
Hello, We're developing an app that will use the camera to acquire an image of a document. I then need to perform pixel level manipulation on the image, including cropping and B&W conversion. These operations require heavy use of Bitmap.getPixel. While we've already built this app for iPhone with great success (takes about 3.5 seconds), we're running into serious performance issues on Android that make this approach unusable. I've read many posts on this...is my only option to ship the image off to a server to perform all this processing? Even this might be inferior due to network latency, I was hoping to do this similar to iPhone...i.e. on- device. I've looked at NDK but this doesn't seem to be helpful. Any guidance would be greatly appreciated. Kind regards, Chris @ Vertifi -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en