Pages

Showing posts with label check. Show all posts
Showing posts with label check. Show all posts

Monday, June 19, 2017

Detect and check if your app run in multi window mode

Detect and check if your app run in multi window mode



This example show how to detect and check if your app run in multi window mode, target Android N with Multi-Window Support, by calling isInMultiWindowMode() and override onMultiWindowModeChanged() methods.


package com.blogspot.android_er.androidmultiwindow;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.TextView;

public class MainActivity extends AppCompatActivity {

TextView textPrompt;

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
textPrompt = (TextView)findViewById(R.id.prompt);

if(isInMultiWindowMode()){
textPrompt.setText("onCreate run In Multi Window Mode ");
}else{
textPrompt.setText("onCreate run NOT In Multi Window Mode ");
}
}

@Override
public void onMultiWindowModeChanged(boolean isInMultiWindowMode) {
super.onMultiWindowModeChanged(isInMultiWindowMode);

if(isInMultiWindowMode){
textPrompt.setText("It is In Multi Window Mode ");
}else{
textPrompt.setText("It is NOT In Multi Window Mode ");
}
}
}


<?xml version="1.0" encoding="utf-8"?>
<LinearLayout

android_layout_width="match_parent"
android_layout_height="match_parent"
android_padding="16dp"
android_orientation="vertical"
tools_context="com.blogspot.android_er.androidmultiwindow.MainActivity">

<TextView
android_layout_width="wrap_content"
android_layout_height="wrap_content"
android_layout_margin="20dp"
android_layout_gravity="center_horizontal"
android_autoLink="web"
android_text="http://android-er.blogspot.com/"
android_textStyle="bold"/>
<TextView
android_id="@+id/prompt"
android_layout_width="match_parent"
android_layout_height="wrap_content"
android_textSize="28dp"
android_textStyle="bold"/>
</LinearLayout>


Next:
- onConfigurationChanged() called when window size changed in Multi-Window Mode

Read more »

Sunday, May 14, 2017

Disable spell check in Chrome and Firefox

Disable spell check in Chrome and Firefox


Speel Check

When using any browser, you should notice that these check your spelling as you type, just as Word did at the beginning. To some people this is useful (me), to others it not. For those who don�t like this, here�s how to disable it on Firefox and Chrome.

Firefox

This is simple, go to Options > Advanced.

Firefox options

Now uncheck the �Check my spelling as I type� and you�re free to make mistakes again.

Firefox options.

Chrome

To deactivate the spell checker, go to a text field (a field where you type), right click > Spell-checker options > Check the spelling of text fields.

Chrome

This way, you can make as many mistakes as you want, no one will judge, except maybe the NSA, but they were judging you since that video you watch a while ago.

Read more »

Djchrest Ft Oba Check Rollup Prod By Gutta Beats

Djchrest Ft Oba Check Rollup Prod By Gutta Beats


C.E.O Chrest Entertainment Release The song "Rollup" which he featured Oba Check and the song was produced by Charlotte, New York City producer Gutta Beats" DOWNLOAD
Read more »