-
Notifications
You must be signed in to change notification settings - Fork 275
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'beta' of github.com:amahi/android into beta
- Loading branch information
Showing
72 changed files
with
4,082 additions
and
326 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Debugging | ||
|
||
Sometimes you may need to debug with some special purpose server. To do that, add a file like this | ||
|
||
src/main/assets/customServers.json | ||
|
||
with details of the custom server(s) you need, like this: | ||
|
||
``` | ||
[ | ||
{ | ||
"name": "Test Server 1", | ||
"session_token": "12345678901234567", | ||
"local_address": "http://192.168.0.11:4563", | ||
"remote_address": "http://192.168.12.22:4563" | ||
}, | ||
{ | ||
"name": "Test Server 2", | ||
"session_token": "12345678901234567", | ||
"local_address": "http://192.168.0.11:4563", | ||
"remote_address": "http://192.168.12.22:4563" | ||
} | ||
] | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
customServers.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
src/main/java/org/amahi/anywhere/activity/ExpandedControlsActivity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/* | ||
* Copyright (C) 2016 Google Inc. All Rights Reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package org.amahi.anywhere.activity; | ||
|
||
import android.view.Menu; | ||
|
||
import com.google.android.gms.cast.framework.CastButtonFactory; | ||
import com.google.android.gms.cast.framework.media.widget.ExpandedControllerActivity; | ||
|
||
import org.amahi.anywhere.R; | ||
|
||
public class ExpandedControlsActivity extends ExpandedControllerActivity { | ||
|
||
@Override | ||
public boolean onCreateOptionsMenu(Menu menu) { | ||
super.onCreateOptionsMenu(menu); | ||
getMenuInflater().inflate(R.menu.action_bar_expanded_controller, menu); | ||
CastButtonFactory.setUpMediaRouteButton(this, menu, R.id.media_route_menu_item); | ||
return true; | ||
} | ||
} |
Oops, something went wrong.