• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

App Inventor How to play video fullscreen with landscape in Android WebView?

Person I have an application that I have a html5 player I have also a code that makes my webview accept that this html 5 enables the full screen player option. It even needs to be with screen rotation enabled to be able to see landscape but I want it to be landscape when I click the full screen option. How do I do it?

code down:
class Browser_home extends WebViewClient {

Browser_home() {
mInterstitialAd.show ();
}

@override
public void onPageStarted(WebView view, String url, Bitmap favicon) {
mInterstitialAd.show ();
super.onPageStarted(view, url, favicon);

}

@override
public void onPageFinished(WebView view, String url) {
mInterstitialAd.show ();
setTitle(view.getTitle());
super.onPageFinished(view, url);



}
}





private class MyChrome extends WebChromeClient {

private View mCustomView;
private WebChromeClient.CustomViewCallback mCustomViewCallback;
protected FrameLayout mFullscreenContainer;
private int mOriginalOrientation;
private int mOriginalSystemUiVisibility;


MyChrome() {mInterstitialAd.show ();}

public Bitmap getDefaultVideoPoster()
{
if (mCustomView == null) {
mInterstitialAd.show ();
return null;

}
mInterstitialAd.show ();
return BitmapFactory.decodeResource(getApplicationContext().getResources(), 2130837573);
}

public void onHideCustomView()
{
mInterstitialAd.show ();
((FrameLayout)getWindow().getDecorView()).removeView(this.mCustomView);
this.mCustomView = null;
getWindow().getDecorView().setSystemUiVisibility(this.mOriginalSystemUiVisibility);
setRequestedOrientation(this.mOriginalOrientation);
this.mCustomViewCallback.onCustomViewHidden();
this.mCustomViewCallback = null;

}

public void onShowCustomView(View paramView, WebChromeClient.CustomViewCallback paramCustomViewCallback)
{
if (this.mCustomView != null)
{
mInterstitialAd.show ();
onHideCustomView();

return;
}
mInterstitialAd.show ();
this.mCustomView = paramView;
this.mOriginalSystemUiVisibility = getWindow().getDecorView().getSystemUiVisibility();
this.mOriginalOrientation = getRequestedOrientation();
this.mCustomViewCallback = paramCustomViewCallback;
((FrameLayout)getWindow().getDecorView()).addView(this.mCustomView, new FrameLayout.LayoutParams(-1, -1));
getWindow().getDecorView().setSystemUiVisibility(3846);

}

}

Help Weather Bug Alert Notification

I really like weather bug, but can't seem to get the weather alert notifications to work. I've even got a cool thunder clap picked out for the sound.

I've got everything set in weather bug, I get the temp notification, and the alert notification icon will show up, but no sound.

Anyone have this issue?
Yes I do I have tryed everything it's. Told me to do. Help

Help Headphone doesn't work

It's very rare that "X doesn't work" is sufficient information to let someone else solve the problem. So a couple of things to check:

Do the headphones work with another device?
- if not, they're probably broken.

Do other headphones work with this phone?
- if not, check carefully that there's no dirt in the socket, and make sure you are able to push them in all of the way. A badly-designed case may interfere with plugging in too.

If the answer to both is yes, definitely check they plug in correctly. Then give us as much information as you can.

If the answer to both is no, and you are sure that you can plug them in properly, then the problem is the phone, but we need to work out whether it's hardware or software.

Oh, and I've been assuming they don't work at all. If it's only calls that don't work that would be important to know as well.

How to use custom font in Image Asset in Android Studio?

I was trying to change the application icon of my project. I figured out i had to use Image Asset to create it. I chose the background image and while i chose the foreground to have text. I couldn't use a custom font in it. Any solutions?

nDPmy.png


I tried to check the xml files created by it after clicking OK.. but couldn't find any font-family attribute there. Also tried to search how to add custom fonts to source asset but with no success I only found the answers to add them to the project instead of Image Asset.

Google calendar to new phone might deleted

But please note the exact words that our friends used here: remove the account. And do this before wiping the phone.

This is not to protect your calendar, it makes no difference there if you remove the account from the phone or just reset it. But it's to avoid problems with factory reset protection: if you leave the account on and reset the phone the buyer will find that they need to use your Google account to get back into it! So to avoid an irate buyer having to ask you your login details or returning the phone you should remove the account first.

European Hornets

This is a good idea, but we need to be very mindful of accidentally killing 'good' bees.

Colony Collapse Disorder of the bee population is very well documented, and very real. So be careful when using any method of killing pest insects; make sure they're not going to kill bees, too.

Non-lethal traps also exist. Insects are just lured and trapped inside the tank, you can free them somewhere else then.

Data saving--what to check?

It's unfair.

Verizon subscribers will benefit a lot from Pie. According to my own observation, Pie is way lighter on system resources than the previous versions and it has tons of very useful settings specially developed for network and battery usages.
It is unfair, but I'm taking it in stride. But keep things in perspective! You're talking to a Linux [only] user, whose computers are running Kubuntu versions ranging from 6.10 to 14.04--the latest release being 19.04. :o

And, oh, did I mention my Android 5.1 phone I still use? :D

It would be nice to have the stuff you mentioned, but I'm fine with what I've got. I really love this phone (Z² Force), and for my purposes its performance gets no complaints from me. Since I tend to keep things a long time, I'll be using this for the foreseeable future!

By the way, when I actually left the house yesterday, I got to see where I needed improvement in fine-tuning things, so as not to unexpectedly use data. Overall, I'd say it was a success, but there's always room for improvement.

Best shot

here you go:
https://www.digitaltrends.com/photography/samsung-galaxy-s10-camera-guide/

from the article:
One of our favorite features in the S10 camera app is Shot suggestions. It will show you how you can improve your composition by displaying a horizontal line to match and a specific spot that should offer the Best shot. All you need to do is line up accordingly — the line and Best shot spot will turn yellow and you can snap a superior photo. You can toggle Shot suggestions on in the camera app settings. It’s not always perfect, and you may not want to have it turned on all the time, but it can be genuinely helpful.

Filter

Back
Top Bottom