ad728

Friday, March 31, 2017

Website to App

Activity_main.xml

<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:paddingBottom="5dp"
    android:paddingLeft="5dp"
    android:paddingRight="5dp"
    android:paddingTop="5dp"
    android:orientation="vertical"
    android:gravity="center_horizontal|center_vertical"
    tools:context="com.rahul.technoscripts.MainActivity">
    <WebView
        android:id="@+id/webView"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent" />
    <LinearLayout
        android:id="@+id/layoutProgress"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:orientation="vertical"
        android:gravity="center_horizontal|center_vertical" >
        <TextView
            android:id="@+id/textLoading"
            android:text="@string/label_loading"
            android:textSize="20sp"
            android:textStyle="bold"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content" />
        <View
            android:layout_width="fill_parent"
            android:layout_height="20dp" />
        <ProgressBar
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:id="@+id/progressBar"
            style="?android:attr/progressBarStyleLarge"
            android:layout_gravity="center_vertical" />
    </LinearLayout>
</FrameLayout>
Sttings.xml
<resources>
    <string name="app_name">Technoscripts</string>
    <string name="label_loading">Loading...</string>
</resources>
Java


package com.rahul.technoscripts;

import android.content.Context;
import android.graphics.Bitmap;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.widget.LinearLayout;
import android.widget.ProgressBar;
import android.widget.Toast;

public class MainActivity extends AppCompatActivity {
    private WebView webView;
    private ProgressBar progressBar;
    private LinearLayout layoutProgress;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        webView = (WebView) findViewById(R.id.webView);
        progressBar = (ProgressBar)findViewById(R.id.progressBar);
        layoutProgress = (LinearLayout)findViewById(R.id.layoutProgress);
        webView.setVisibility(View.GONE);
        WebSettings settings = webView.getSettings();
        settings.setJavaScriptEnabled(true);
        settings.setBuiltInZoomControls(true);
        settings.setSupportZoom(true);
        settings.setDisplayZoomControls(false);
        webView.setWebViewClient(new WebViewClient() {
            @Override
            public booleanshouldOverrideUrlLoading(WebView view, String url) {
                view.loadUrl(url);
                return true;
            }

            @Override
            public void onPageFinished(WebView view, Stringurl) {
                webView.setVisibility(View.VISIBLE);
                layoutProgress.setVisibility(View.GONE);
                progressBar.setIndeterminate(false);
                super.onPageFinished(view, url);

            }

            @Override
            public void onPageStarted(WebView view, Stringurl, Bitmap favicon) {
                layoutProgress.setVisibility(View.VISIBLE);
                progressBar.setIndeterminate(true);
                super.onPageStarted(view, url, favicon);
            }
        });
        if(isOnline()) {
            webView.loadUrl("http://www.technoscripts.com/");
        } else {
            String summary = "<html><body><font color='red'>No Internet Connection</font></body></html>";
            webView.loadData(summary, "text/html", null);
            toast("No Internet Connection.");
        }
    }
    private void toast(String message) {
        Toast.makeText(this, message,Toast.LENGTH_LONG).show();
    }

    private boolean isOnline() {
        ConnectivityManager cm = (ConnectivityManager)getSystemService(Context.CONNECTIVITY_SERVICE);
        NetworkInfo netInfo = cm.getActiveNetworkInfo();
        return (netInfo != null && netInfo.isConnected());
    }
}
Manifest
<?xml version="1.0" encoding="utf-8"?>
<manifestxmlns:android="http://schemas.android.com/apk/res/android"
    package="com.rahul.technoscripts">
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk
        android:minSdkVersion="8"
        android:targetSdkVersion="23" />

    <uses-permissionandroid:name="android.permission.INTERNET" />
    <uses-permissionandroid:name="android.permission.ACCESS_NETWORK_STATE"/>
    <application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:supportsRtl="true"
        android:theme="@style/AppTheme">
        <activity android:name=".MainActivity">
            <intent-filter>
                <actionandroid:name="android.intent.action.MAIN" />

                <categoryandroid:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>

</manifest>

Share:

Thursday, March 23, 2017

List of phobia

List of Phobia



  1. Acrophobia- Fear of heights
  2. Bibliophobia- Fear of books.
  3. Cacophobia- Fear of ugliness.
  4. Dystychiphobia- Fear of accidents.
  5. Electrophobia- Fear of electricity.
  6. Felinophobia- Fear of cats.
  7. Genophobia- Fear of sex.
  8. Harpaxophobia- Fear of being robbed.
  9. Insectophobia - Fear of insects.
  10. Japanophobia- Fear of Japanese.
  11. Kakorrhaphiophobia- Fear of failure or defeat.
  12. Logizomechanophobia- Fear of computers.
  13. Mastigophobia- Fear of punishment.
  14. Noctiphobia- Fear of the night.
  15. Ophidiophobia- Fear of snakes.
  16. Phasmophobia- Fear of ghosts.
  17. Quadrataphobia - Fear of quadratic equations
  18. Rhytiphobia- Fear of getting wrinkles.
  19. Sinophobia- Fear of Chinese, Chinese culture.
  20. Triskaidekaphobia- Fear of the number 13.
  21. Urophobia- Fear of urine or urinating.
  22. Venustraphobia- Fear of beautiful women.
  23. Wiccaphobia: Fear of witches and witchcraft.
  24. Xenoglossophobia- Fear of foreign languages.
  25. Ymophobia - Fear of contrariety
  26. Zoophobia- Fear of animals.
Share:

Sunday, March 19, 2017

Model Questions for Class Five English II

                                                      First Terminal Exam   

Sub:- English:-II                                                                                                             F:M:- 100
Class:- Five                                 Time:- 3 Hrs.                                                              P:-M:- 40


Q.1 Write the types of following sentences          10×1=10
a.        How far is it?
b.       Get me some water.
c.        How clever she is!
d.       Can he speak English?
e.       Don't make a noise.
f.         What a quite place it is!
g.        Where did they go?
h.       She is the good student of our class.
i.         May you live long.
j.         Let him sing a song.
Q.2 Make your own sentences 10×1=10
a.        kindness                b. fear                    c. intelligence                      d. beauty                               e. childhood  
f. failure                 g. hate                    h. peace                 i. trouble                                j. faith
Q.3 Fill in suitable unit nouns in the blanks 10×1=10
a.        A……………..of bread (loaf, bag)
b.       A……………..of grapes (piece, bunch)
c.        A……………..of onions (roll, bag)
d.       A……………..of oil (bottle, lump)
e.       A……………..of juice (quart, loaf)
f.         A……………..of toilet paper (roll, bag)
g.        A……………..of toast (slice, litre)
h.       A……………..of salt (pinch, speck)
i.         A……………..of watermelon (slice, litre)
j.         A……………..of water (glass, piece)
Q.4 Match the following 10×1=10
A
B
a.        Sentences
i.            Superlative degree
b.       Ability
ii.            Comparative form
c.        An
iii.            Wh word for question
d.       Angels
iv.            Exclamation
e.       Angry
v.            Possessive pronoun
f.         Mine
vi.            Adjective
g.        Alash!
vii.            plural forms
h.       How
viii.            article
i.         Taller
ix.            noun
j.         Most beautiful
x.            four types

Q.5  Read the passage carefully and do the activities.  20
Mr. Awale is our English teacher. He is tall and smart. He has got curly hair. In our class, there are thirty students. He knows all of us. He calls us by our names. Everybody likes him he is very good at telling story. One day  I was walking with my aunt in the park. She was reading my diary, I met Awale sir there. i greeted, "good afternoon sir!" "Good afternoon Deepa. How are you?" "I am fine sir, meet my aunt. Her name is Shibani. She is a nurse."Mr. Awali," hello! Nice to meet you. I'm Basant Awale.  I'm Deepa's English teacher."Deepa's aunt," nice to meet you."
A.      Answer the following questions 5×2=10
a.        Who is Mr. Awale?
b.       How many students are her in her class?
c.        What is Mr. Awale good at?
d.       Where were they walking?
e.       What was aunt doing while they were walking?
B.       Write true or false 5×1=5
a.        Mr. Awale teaches English subject.
b.       He is good at telling news.
c.        That day Deepa was walking with her uncle in the park.
d.       Deepa was reading her diary.
e.       The name of girl was Shibani.
C.       Find the words from the text as indicated 5×1=5
a.        Clever (similar)                     b. Straight (opposite)                                           c. Bad at (opposite)                        d. A daily writing notebook of day to day events (similar)          e. Saluted (similar)
Q.6 Make a family tree of your family and describe it in a paragraph.         10
Q.7 Write an essay on Education in about 100 words.    10
Q.8 Compare yourself with a classmate and make a short paragraph in 10 sentences. 10





Q.9 Replace the underlined parts with suitable pronouns 10×1=10
a.        Ali and Anu are my friends. Ali and Anu study in Grade V.
b.       Mina went to the park but the park was closed.
c.        Mohan bought a new cap last week. Mohan wore the cap yesterday.
d.       Bina has lost Bina's pen, Bina had kept Bina's pen on the table.
e.       The dogs were sleeping in the garden but I did not see the dogs.
f.         I looked for these books in the library. These books were not there.
g.        Suman sent his siter to the market. His sister bought a paper for Suman.
h.       The old man opened the box with a key. The box was empty.
i.         Sunny is a good girl. Sunny studies in Grade nursery.
j.         Pinky and Priyanka are best friends. Pinky and Priyanka go to beach to take some bath.



Share:

Friday, March 17, 2017

Model Questions for Class Six English II

First Terminal Exam
Sub:- English:-II                                                                                                                    F:M:- 50
Class:- Six                                             Time:- 1.30 Hrs.                                                      P:M:- 20



Q.1 Fill in the blanks choosing best alternatives 10×1=10
a.        Angela is visiting………….united States next month. (a, an, the)
b.       He is …………. MA student. (a, an, the)
c.        Preety is …………. sari today. (at, in, on)
d.       He is riding………….bike. (at, in, on)
e.       He gave me a …………. of paper. (seat, sheet, sit)
f.         The plural of fox is …………. (vixen, foxen, foxes)
g.        The feminine of fox is ………….(vixen, foxen, foxes)
h.       I am a student but ………….brother is a teacher. (she, her, he)
i.         The guitars …………. to me. (belong, belongs, belonging)
j.         The door opens …………. when someone comes near it. (itself, herself, myself)
Q.2 Match the following 10×1=10
A
B
a.        Cold
   i.            empty
b.       Honest
  ii.            hot
c.        Cheap
iii.            low
d.       Useful
iv.            dull
e.       High
  v.            dishonest
f.         Intelligent
vi.            expensive
g.        Full
vii.            ugly
h.       Long
viii.            careless
i.         Careful
ix.            short
j.         Beautiful
  x.            useless


Q.3 Read the following text Answer the questions 5×2=10
During the rainy season, we face a lot of problems. Paths become muddy and slippery. It is difficult for us to go to school. We cannot even play outside. It is difficult for others to go to works. Cattle do not go to graze. If the rain is heavy, it brings floods in rivers. Sometimes flood breaks the embankment and sweeps away villages. It also destroys crops. As we face these problems every rainy season, we have learnt to live with them.
a.        What is the text about?
b.       What are problems that are faced in the season?
c.        What happens in case of heavy rain?
d.       What are threats of flood?
e.       What have we learned from the season?
Q.4 Write a letter to your father who is living abroad asking for a gift for you. 10
Q.5  What is pronoun and explain thetypes of pronoun with examples. 5
Q.6 Write short note on Any one of them.
a. Personal appearance                                                                      b.  Your favorite celebrity







Share:

Wednesday, March 15, 2017

Model Questions for Class Four English II

First Terminal Exam
Sub:- English:-II                                                                                                                    F:M:- 100
Class:- Four                                                           Time:- 3 Hrs.                                                                         P:-M:- 40


Q.1 Do these words refer to person, a thing or both 10×1=10
actor, speaker, conductor, dinner, computer, waiter, hanger, grocer, passenger, shower
Q.2 Choose the correct words 10×1=10
a.        Would you like a ………of coffee? (bar, cup, plate)
b.       Have you got long ………? (hair, hairs)
c.        I haven't got ……… money/ (much, many)
d.       ……… water is in the glass. (A few, A little)
e.       There are not ………books on the table. (much, many)
f.         A lot of ……… are going on excursion (student, students)
g.        His tea hasn't got ……… sugar in it. (much, many)
h.       Her tea has ……… in it. (milk, a milk)
i.         They haven't got much ……… (moneys, money)
j.         We need ……… to survive. (an oxygen, oxygen)
Q.3 Complete the genders 10×1=10
Masculine
Feminine
Husband
………………
………………
Daughter
Nephew
………………
………………
Aunt
King
………………
………………
Hen
Drake
………………
………………
Bee
Wizard
………………
………………
Nun
Q.4 Match the following 10×1=10


A
B
a.        Beautiful
      i.            Ball
b.       Old
     ii.            Dress
c.        Blue
   iii.            Milk
d.       Cold
   iv.            Ice cream
e.       Brave
     v.            Grandfather
f.         Pure
   vi.            Fairy
g.        Cheap
  vii.            Sky
h.       Red
viii.            Soldier
i.         Dirty
   ix.            Bag
j.         Round
     x.            Water

Q.5 Write the opposite of underline adjectives. 10×1=10
E.g. She is a pretty girl.       =         She is an ugly girl
a.        She is very tall.
b.       She is a healthy girl.
c.        These are my old shoes.
d.       She is very helpful girl.
e.       He is a small boy.
f.         This is a big animal.
g.        Subir is a rich man.
h.       He is a strong man.
i.         They are honest workers.
j.         He is a silly boy.
Q.6  Read the following passage and do the activities 20
The old man lived in a small hurt. He had many dresses but all his dresses were dirty and old. He never washed his clothes. One day he saw a tall man in a nice suit. He asked how his suit was so clean and beautiful. The man said, "Take this small piece of soap and wash your dirty clothes with It." the old man washed his all clothes. They looked beautiful and tidy. He was very happy. Next day, he found a beautiful hat lying in the street. It was wet and dirty he became sad to look at it. He brought it home and washed it well. The hat looked new and pretty.     
A.      Answer the following questions 5×2=10
a.        Where the old man lived?
b.       What was the problem with his dress?
c.        What did the tall man give him?
d.       Why did the old man become happy?
e.       What did the old man find in the street?
B.       Write true or false 5×1=5
a.        The old man lived in a villa.
b.       He had all his dresses cleaned.
c.        The old man was in nice suit when he saw the tall man.
d.       The old man gave soap to the tall man.
e.       The tall man washed all his dirty clothes.
C.       Fill in the blanks  5
The old man used to live in ………. He had many dirty and old dresses which he didn't wash for long. One day a tall man in ………. gave him ………. to wash his clothes. Then after washed clothes looked ………. and ………. The old man became happy.
Q.7 Write a couple of paragraphs about your schools. 10
Q.8 Write a leave letter to your principal asking for two days leave for your sickness. 10
Q.9 Describe the following picture. 10
                                                                     



Share:

Total Pageviews

Sponsor

Sponsor

ad300

Blog Archive