I'm trying to get the Sample Media Player App working, and have run into a problem. I have whitelisted my two URLs, and have gotten the app to run on my Android device without any issues.
My problem starts when actually attempting to cast the sample media. My Chromecast correctly displays as an option, however choosing it from the list does not yield any results on the Chromecast, itself (although it appears that my Android device connects without any issues). Could this be caused by my whitelisted URL not ending in ".html"? Here (link removed) is my page, for what it's worth.
Any help would be greatly appreciated.
Please check if the answer in this question (Chrome-cast Sample App doesn't work) can solve your problem.
Basically you need to set AppID in your receiver.html as well.
I think the problem is in MediaRouteHelper.registerMinimalMediaRouteProvider(mCastContext, this);
try to cheak its value, wheter it is returning true or false
if its returning false then it will not run properly
Related
My ionic angularjs corodova app works great when receiving calls from the demo web page on chrome. When I try to initiate a call to the demo site or another device, whether using demo API key or real api key, i get
call_crossing_detected
What does this mean, and how do you fix it?
More details on symptoms. When this occurs, no video comes up and the initiating device shows the error and the call button remains. But the receiving device switches to the hangup button, which then works. And if you speak into either device the receiving device receives the audio, but nothing on the initiating device
"call_crossing_detected" reason appears on hangup event when a call is already established between the two users and you are trying to establish a new one.
So I think you may have an issue on the first call hangup.
I have resolved this issue. It was caused by apiRTC.init executing more than once.
Here is a big problem that i simply don't know whats going on...
I have an app that stores Data in data API. The mobile app is aroudn the play store for some time and I decided to make a app for wearable.
My problem is: when the user install the wearable app for the first time (via Google Play), it need to load the data from the DataApi. But it simple returns 0 itens!
DataItemBuffer dataItems = Wearable.DataApi.getDataItems(mGoogleApiClient).await();
Observations:
GoogleApiClient IS CONNECTED
The Wearable receives the onDataChanged from WearableListenerService and this part is working fine.
I've already tested with .setResultCallback but results still the same.
I have two copmuter for developments, one is one my work and another is on my home.
In my tests, I DELETE the emulator and create a new one, to simulate a "new device beeing connected for the first time".
DataAPI says that the data is synchronzed to all devices but is seems not be working like that. How to solves this? Any workaround? SOMEONE HELP =(
It seems i found the solution for this problem. As I mentioned i have two computers for development, so, 2 development keys.
My mobile app was installed using the "A" computer's key and the wearable was using the "B" one. So, to solve this problem, when start developing always remember to re-run the mobile and wearable app from the same computer to your devices.
I have an Android app, working with a custom receiver. It was working without problem, but with the release of the new cast companion library, I decided to upgrade it, as well as my Play services version.
Anyway, when I try to connect to Chromecast, my custom receiver HTML page is displayed. But then, I can't connect and send data to it. After a while (something like 15 seconds), the app exits on the Chromecast.
Then, I've tried to get the Cast Hello Text sample to work, using the same app id. Same problem here.
Here is the code I use to launch the Cast app:
Cast.CastApi.launchApplication(mApiClient, getString(R.string.app_id), true)
The result I receive in the ResultCallback, is a status with code 15, with isSuccess method returning false.
The problem doesn't seem to come from my Chromecast, since other users have the exact same issue.
Thanks for your help!
Can you help me understand how I should debug this errors? What information would you get from this stack trace that might help you understand what is wrong with this code?
I assume andy_lockscreen is not my concern as it doesn't have anything to do with my app.
However what is the meaning of the errors with tag TiApplication and TiHttpClient?
How can I filter to see only errors and traces regarding my app?
I am developing android application using titanium
Thank you,
Ryan
UnkonwnHost means whatever is trying to connect to something online is unable to connect. Either the online content is down (unlikely given that it is google maps) or the device doesn't have a suffecient internet connection, or something else is blocking the connection (iptables perhaps, DroidWall will cause this type of error if you havn't white listed the application attempting to connect)
You can make a filter by clicking the Green "+" that is in the pane just off to the left of the screenshot you provided. Type in the Tag that you are using when you make Log statements within your app. That will narrow down the list to only Logs coming from your application.
I have an application built using PhoneGap (Android) that is essentially a shell for a web app, that would (in the future) allow for push notifications and offline reading of downloaded pages from the web app.
My problem is this - if the connection to the network is lost or turned off in the middle of use, and a link is clicked on a page, there is an error: Application Error: Could not find url: '...', and the app closes. I want to be able to prevent the app from closing, and if possible, change this error message.
I know that the standard would be to use the PhoneGap API to check the network connection, then handle it myself, but because this is a shell for a web App, the only place I can do this is on app startup. What are my options?
I would start by checking out the source code for the childbrowserplugin.
The code there for onlocationchange is allowing for intercepting all webrequests in and out of a webview. It sounds like your app has needs similar to this.
For that you have to add the permissions for wifi,Gps,Internet into the Android Manifest file. While you have to add the code for checking the Internet Connection available condition into you code as well..
If both the connection doesnot fullfills then try to add the toast message that Internet connection is not available..
I think your problem will definitely be solved...