Hadoop Interview Questions-android app

Hadoop Interview Questions app provides you questions with answers asked in hadoop interviews. This app is intended to help Big Data career aspirants to prepare you for hadoop interview on Big Data related technologies. This app has collection of different Big Data sector questions. 

In this app we are providing the interview questions for following topics:
• Big Data
• HDFS
• MapReduce
• HBase
• Sqoop
• Flume
• Zookeeper
• Pig
• Hive
• YARN
• MongoDB
• Cassandra
• NoSQL



Android Splash screen


Splash Screen:

An Android app takes some time to to start up, especially when the app is first launched on a device. A splash screen may display start up progress to the user or to indicate branding.

But on google we can find other methods to create a splash screen but in this tutorial we will see how to create splash screen just like youtube app's splash screen.

Step 1:
Create an new project in android studio

Step 2:
add a image into drawable folder to be displayed on the splash screen
let say the name of that image is "img.png"

Step 3:
create a layout file under drawable directory.

"background_splash.xml"



            android:drawable="@color/white"/>
   
                    android:gravity="center"            android:src="@drawable/img"/>   




Step 4:
create a new style 




Step 5:
create a SplashActivity.java file

public class SplashActivity extends AppCompatActivity {
    @Override    protected void onCreate(Bundle savedInstanceState) {        super.onCreate(savedInstanceState);
        Intent intent = new Intent(this, MainActivity.class);        startActivity(intent);        finish();    }}

Step 6: 
make .splashActivity as a launcher activity in manifest file

    android:name=".SplashActivity"    android:theme="@style/SplashTheme">   
       
       
   


            android:name=".MainActivity"/>
Thats All!!
Now you can run your application.

You can watch video demo here:






Android Toast

Toast

  • Toast is a small popup that provides simple feedback about an operation.
  • It only occupies the space required to display a particular message. and also it will be shown above the current activity. i.e the current activity will remain as it is.

The basic method to display a toast is shown bellow:

String text="Hello";
Toast.makeText(getApplicationContext(), text, Toast.LENGTH_SHORT).show;

NOTE: There are two constants to set the duration of toast.
    1) LENGTH_SHORT: Show the view or text notification for a short period of time.
2)LENGTH_LONG: Show the view or text notification for a long period of time.


Also, we can set the position of toast on our current activity,
toast.setGravity(Gravity.TOP|Gravity.LEFT, 0, 0);

watch a video demo here:

Set SQL server password

if you are currently using "Windows authentication Mode" to login to the sql server...
and you dont know your sql server username and password...
then, follow this steps to set new "Sql server password"





other related videos:

export java project with database:
https://www.youtube.com/watch?v=xzPuaj61ai4

set sql server port to 1433: 
https://www.youtube.com/watch?v=BF0DKnhk4Ek

connect java code to sql server with derby connection:
https://www.youtube.com/watch?v=GTeKQ2zMJWY