Saturday, August 22, 2015

Daily Wishes OP

$*#@%$ com.useful.iptracker*IP*Address*Tracker*Download*App*And*Track*Any*IP*Address*in*World*By*IP*Tracker*App*YES*




Good Morning Wishes Quotes

You may not be able to control every situation and it's outcome, but you can control your attitude and how you deal with it. Good morning

Everyone is not fair, everyone can't be fair all the time, be forgiving, enjoy New Morning! Good Morning!
Every morning is special and you will not get them again. Good morning my dear friend!
Smile & be happy and let that happiness spread everywhere you go. Life is beautiful. Good Morning

Today is a new day. Don't let your history interfere with your destiny! Let today be the day you stop being a victim of your circumstances and start taking actions towards the life you want. You have the power and the time to shape your life. Break free from the poisonous victim mentality and embrace the truth of your greatness. You were not meant for a mundane or mediocre life!” 

True success in lifeis not measured by how much you make,but by how of a difference you make.Good Morning


Dear friend, new opportunities are going away and you will be too late to catch them. So, forget the bed and gear up to run. Good morning to you from a friend and well wisher. 

Juicing is the best way to start your day, take a deep breath and make yourself a tall glass of juice, Good Morning!

Subah ka har pal zindagi de aapko,Din ka har lamha khushi de aapko,Jahan gham ki hawa chhu ke bhi na guzre,Khuda woh jannat si zameen de aapko.Good Morning

Respect is the most important element of our personality. It like an investment,whatever we give to others,it will return to us with profit ....Good morning

A simple formula for happy life.Never try to defeat anyone,Just try to win everyone,Don't laugh at anyonebut laugh with everyone.Good Morning




Good Night Wishes





May you dream of lovely things and to find them real.



3. Each day I wish that my dreams will come true. Then I remember that I am now with you.



4. Each night you sleep is a signal that a new beginning awaits you.



5. One day, we will never have to say goodbye, only goodnight.


6. Wake up with determination. Go to bed with satisfaction.

7. Touch your heart and shut your eyes, dream sweet dreams and sleep tight.
"Instead of holding my pillow tight, I wish I could meet you in person and kiss you good night".

"Just for you, I have a sweet good night kiss. Just to you, I wish a morning full of bliss. Good night handsome".

“Fear can keep us all night long, but FAITH makes one beautiful Pillow.” Have A Peaceful Good night!".

“I like the night. Without the dark, we’d never see the stars.” Good Night!

"May the blanket of night wrap you in a hundred sweet dreams, a thousand hugs and a million kisses". Good night darling.

You look so beautiful when you are in bed that sleep gets naturally attracted to you. Good night sweetie.

8. I wish I was there to hold you tight, instead of just sending you this loving “Good Night”.

9. It was the possibility of darkness that made the day seem so bright. – Stephen King

10. Good night, and good luck. – Edward R. Murrow

11. Here is to hoping that angels will guard you while you dream and the gentle breezes of the night will keep you cool.  $*#@%$## ca-app-pub-4111
12. Day is over, night has come. Today is gone, what’s done is done. Embrace your dreams, through the night. Tomorrow comes with a whole new light.

cute inspirational good night quote


Do not go gentle into that good night. Rage, rage against the dying of the light.” Good Night

“Early sleep and early wake up gives health and makes you grow.” Good Night!

"The stars and moon arrive just to wish you a good night. Let the light of the moon guide your dreams as you pass the night away."

"As the moonlight dims and the world goes quite, give yourself some rest. Here’s to hoping that your sleep is as sweet as you are."

Friday, July 3, 2015

Smileys Package

$*#@%$ com.droidz.thoughts*Thoughts*For*Success*Motivational*Thoughts*for*Success*App**On*Playstore*NO*

Friday, November 14, 2014

Privacy Policy


  1. The app tries its best to show the accurate information as much as possible.
  2.  Generally we not collect any sensitive data, but if we collect we use it within the app
  3. User data is not posted, saved or shared anywhere.
  4. The app is for daily and normal use by individuals, any commercial use of the app is strictly prohibited.
  5. Developer is not responsible for any kind of problems/loss faced to user.
  6. No any code or script has been written that can harm your phone,
  7. The app does not make any call.
  8. The app does not contain any viruses script.
  9. Developer is not responsible for any kind of loss, damage or anything.
  10. The app is for fun only, there is no intention to harm anyone physically, mentally or any kind.

Wednesday, September 25, 2013

Android Custom GridView Example

Creating a custom  GridView with Text and Image is as easy as Using a Simple GridView.
We need to just have a custom adapter and populate the GridView elements with custom adapter. It is similar to populating a ListView with Custom Adapter.

If you are not familiar with these two concepts follow my blog

Using Android GridView
ListView with  Custom Adapter

In this example I have explained how to  how to make a custom grid with Text and Image and poipulate it's content through Custom Adapter.

Steps:
  • Create Layout
  • Create Cutom Adapter and override it's getView() method.
  • Set the adapter to GridView


Custom GridView

main.xml


<RelativeLayout 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"
    tools:context=".MainActivity" >

   <GridView
        android:id="@+id/gridViewCustom"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_margin="4dp"
        android:columnWidth="80dp"
        android:gravity="center"
        android:numColumns="auto_fit"
        android:stretchMode="columnWidth" />


</RelativeLayout>

grid_row.xml


<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:orientation="vertical"
    android:padding="5dp" >

    <ImageView
        android:id="@+id/imageView"
        android:layout_width="50dp"
        android:layout_height="50dp"
        android:layout_marginRight="10dp"
        android:src="@drawable/ic_launcher" >
    </ImageView>

    <TextView
        android:id="@+id/textView"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginTop="5dp"
        android:textSize="15sp" >
    </TextView>

</LinearLayout>

CustomGridViewMainActivity.java

public class CustomGridViewMainActivity extends Activity
{

   
            GridView gridView;
            GridViewCustomAdapter grisViewCustomeAdapter;
           
          
            @Override
            protected void onCreate(Bundle savedInstanceState)
            {
                    super.onCreate(savedInstanceState);
                    setContentView(R.layout.main);
                   
                   
                    gridView=(GridView)findViewById(R.id.gridViewCustom);
                    // Create the Custom Adapter Object
                    grisViewCustomeAdapter = new GridViewCustomAdapter(this);
                    // Set the Adapter to GridView
                    gridView.setAdapter(grisViewCustomeAdapter);
                     
                    // Handling touch/click Event on GridView Item

                      gridView.setOnItemClickListener(new OnItemClickListener() {

                       @Override
                       public void onItemClick(AdapterView<?> arg0, View v, int position, long arg3) {
                           String selectedItem;
                           if(position%2==0)
                               selectedItem="Facebook";
                           else
                               selectedItem="Twitter";
                        Toast.makeText(getApplicationContext(),"Selected Item: "+selectedItem, Toast.LENGTH_SHORT).show();
                       
                       }
                      });


               }

}


 GridViewCustomAdapter.java


public class GridViewCustomAdapter extends ArrayAdapter
{
         Context context;
      
   

     public GridViewCustomAdapter(Context context)
     {
             super(context, 0);
             this.context=context;
            
     }
   
     public int getCount()
        {
                     return 24;
        }

     @Override
     public View getView(int position, View convertView, ViewGroup parent)
     {
             View row = convertView;
            
             if (row == null)
             {
                     LayoutInflater inflater = ((Activity) context).getLayoutInflater();
                     row = inflater.inflate(R.layout.grid_row, parent, false);


                     TextView textViewTitle = (TextView) row.findViewById(R.id.textView);
                     ImageView imageViewIte = (ImageView) row.findViewById(R.id.imageView);
                    
                     if(position%2==0)
                     {
                             textViewTitle.setText("Facebook");
                             imageViewIte.setImageResource(R.drawable.facebook);
                     }
                     else
                     {
                             textViewTitle.setText("Twitter");
                             imageViewIte.setImageResource(R.drawable.twitter);
                     }
             }

   
     
      return row;

     }

}
    



 

New Advance Topics:                   Android LiveWallpaer Tutorial
Android ImageSwitcher                    Android TextSwitcher                                Android ViewFlipper
Android Gesture Detector               Handling/Detecting Swipe Events                Gradient Drawable
Detecting Missed Calls                    Hide Title Bar                                           GridView Animation
Android AlarmManager                 Android BootReceiver                       Vibrate Phone In a Desirable Pattern    
Developing for Different Screen Sizes           Showing Toast for Longer Time       Publishing your App
How to publish Android App on Google Play
Android TextWatcher                               Android ExpandableListView

 Beginning With Android
      Android : Introduction(What is Android)                                                              Configuring Eclipse for Android Development
     Creating Your First Android Project                                           Understanding Android Manifest File of your android app

 Advance Android Topics                                                              Customizing Android Views


Working With Layouts                                                                Working With Views

Understanding Layouts in Android                                                   Using Buttons and EditText in Android
Working with Linear Layout (With Example)                                     Using CheckBoxes in Android
Nested Linear Layout (With Example)                                              Using AutoCompleteTextView in Android                                                                                          Grid View
Relative Layout In Android                                                               ListView
Table Layout                                                                                   Android ProgressBar
Frame Layout(With Example)                                                          Customizing ProgressBar
Absolute Layout                                                                             Customizing Radio Buttons
Grid Layout                                                                                    Customizing Checkboxes In Android

Android Advance Views
Android Spinner                                                                           Android GalleryView
Android TabWidget                                                                      Android ExpandableListView

Android Components                                                                 Dialogs In Android

Activity In Android                                                                    Working With Alert Dialog
Activity Life Cycle                                                                    Adding Radio Buttons In Dialog
Starting Activity For Result                                                       Adding Check Boxes In Dialog
Sending Data from One Activity to Other in Android                    Creating Customized Dialogs in Android
Returning Result from Activity                                                   Creating Dialog To Collect User Input
Android : Service                                                                     DatePicker and TimePickerDialog
BroadcastReceiver                                                                   Using TimePickerDialog and DatePickerDialog In android

Menus In Android                                                                ListView:
Creating Option Menu                                                               Populating ListView With DataBase
Creating Context Menu In Android                                              Populating ListView with ArrayList
                                                                                               ListView with Custom Adapter

Toast                                                                                      Working With SMS
Customizing Toast In Android                                                       How to Send SMS in Android
Customizing the Display Time of Toast                                        How To Receive SMS
Customizing Toast At Runtime                                                  Accessing Inbox In Android
Adding Image in Toast
Showing Toast for Longer Time


TelephonyManager                                                            Storage: Storing Data In Android
Using Telephony Manager In Android                                          SharedPreferences In Android
                                                                                              Reading and Writing files to Internal Stoarage

Working With Incoming Calls                                       DataBase :  Introduction of SQLiteDataBase
How To Handle Incoming Calls in Android                                Working With Database in Android
How to Forward an Incoming Call In Android                            Creating Table In Android
CALL States In Android                                                          Inserting, Deleting and Updating Records In Table in Android


Miscellaneous
Notifications In Android
How To Vibrate The Android Phone
Sending Email In Android
Opening a webpage In Browser
How to Access PhoneBook In Android
Prompt User Input with an AlertDialog
How to Hide Title Bar In Android
How to show an Activity in Landscape or Portrait Mode only.
How to Set an Image as Wallpaper.






Friday, September 20, 2013

Android WebView Example

WebView is a View that displays web pages. Using his class we can display some online content within our Activity.

If you want to deliver a web application (or just a web page) as a part of a client application, you can do it using WebView. The WebView class is an extension of Android's View class that allows you to display web pages as a part of your activity layout.

In this Example you will see how to use WebView in your activity.

Do not forget to add the Internet permission in your manifest file.
 <uses-permission android:name="android.permission.INTERNET" />

main.xml 


<RelativeLayout 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"
    tools:context=".MainActivity" >

    <WebView  xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/webView1"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"/>
   
</RelativeLayout>

WebViewActivity

public class MainActivity extends Activity
{
   
    @Override
    protected void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
       
        WebView  webView = (WebView) findViewById(R.id.webView1);
        webView.loadUrl("http://www.google.com");

           
    }
}

Wednesday, September 11, 2013

Android MediaPlayer Example

MediaPlayer class is  used to control playback of audio/video files and streams.
Using MediaPlayer class we can control the behavioyr of player like volume control, whether to repeat the current tarck or not, stop or pause the playback etc.

Steps:

  1. Initialize the Media Player with media to play.
  2. Prepare the Media Player for playback.
  3. Start the playback. 
  4. Pause or stop the playback prior to its completing.
  5. Playback complete.
To play a media resource you need to create a new MediaPlayer object, initialize it with a media
source, and prepare it for playback.

When you have finished playing , call the release method on your Media Player object to free the resources associated with the MediaPlayer

mediaPlayer.release();

Preparing Audio for Playback


To play back audio content using the Media Player, we need to create a new Media Player object and
set the data source of the audio (pass as paarmeter).

  • A resource identifier
  • A URI to a local file using the file
  • A URI to an online audio resource as a URL 
  • A URI to a local Content Provider row
MediaPlayer filePlayer = MediaPlayer.create(appContext,
Uri.parse("file:///sdcard/localfile.mp3"));


MediaPlayer urlPlayer = MediaPlayer.create(appContext,
Uri.parse("http://site.com/audio/audio.mp3"));


MediaPlayer contentPlayer = MediaPlayer.create(appContext,
Settings.System.DEFAULT_RINGTONE_URI)



we can also use setDataSource method to specify the resource
like

myMediaPlayerObject.setDataSource("/sdcard/music/tarck1.mp3");


Controlling The PlayBack

Skip for a particular time

mediaPlayerObject.start();
int pos = mediaPlayerObject.getCurrentPosition();
int duration = mediaPlayerObject.getDuration();
mediaPlayerObject.seekTo(pos + (duration-pos)/10);

Repeating the Audio Playback track

We can use the isLooping and setLooping methods to specify if the media being played should repeat or loop when it completes.

if (!mediaPlayer.isLooping())
mediaPlayer.setLooping(true);

Controlling the Volume of Media Player


We acn also  control the volume for each channel during playback using the setVolume method. It takes
a scalar float value between 0 and 1 for both the left and right channels (where 0 is silent and 1 is
maximum volume).

mediaPlayer.setVolume(1f, 0.5f);


MediaPlayer Example:


public class MediaPalyerActivity  extends Activity
{
        @Override
        protected void onCreate(Bundle savedInstanceState)
        {
                super.onCreate(savedInstanceState);
               
                MediaPlayer  myMediaPlayer=new MediaPlayer();
               
                try
                {
                    myMediaPlayer.setDataSource("/sdcard/music/tarck1.mp3");
                    myMediaPlayer.prepare();
                    myMediaPlayer.start();
                }
                catch(Exception e)
                {
                    e.printStackTrace();
                }
        }
}

 

New Advance Topics:                   Android LiveWallpaer Tutorial
Android ImageSwitcher                    Android TextSwitcher                                Android ViewFlipper
Android Gesture Detector               Handling/Detecting Swipe Events                Gradient Drawable
Detecting Missed Calls                    Hide Title Bar                                           GridView Animation
Android AlarmManager                 Android BootReceiver                       Vibrate Phone In a Desirable Pattern    
Developing for Different Screen Sizes           Showing Toast for Longer Time       Publishing your App
How to publish Android App on Google Play
Android TextWatcher                               Android ExpandableListView

 Beginning With Android
      Android : Introduction(What is Android)                                                              Configuring Eclipse for Android Development
     Creating Your First Android Project                                           Understanding Android Manifest File of your android app

 Advance Android Topics                                                              Customizing Android Views


Working With Layouts                                                                Working With Views

Understanding Layouts in Android                                                   Using Buttons and EditText in Android
Working with Linear Layout (With Example)                                     Using CheckBoxes in Android
Nested Linear Layout (With Example)                                              Using AutoCompleteTextView in Android                                                                                          Grid View
Relative Layout In Android                                                               ListView
Table Layout                                                                                   Android ProgressBar
Frame Layout(With Example)                                                          Customizing ProgressBar
Absolute Layout                                                                             Customizing Radio Buttons
Grid Layout                                                                                    Customizing Checkboxes In Android

Android Advance Views
Android Spinner                                                                           Android GalleryView
Android TabWidget                                                                      Android ExpandableListView

Android Components                                                                 Dialogs In Android

Activity In Android                                                                    Working With Alert Dialog
Activity Life Cycle                                                                    Adding Radio Buttons In Dialog
Starting Activity For Result                                                       Adding Check Boxes In Dialog
Sending Data from One Activity to Other in Android                    Creating Customized Dialogs in Android
Returning Result from Activity                                                   Creating Dialog To Collect User Input
Android : Service                                                                     DatePicker and TimePickerDialog
BroadcastReceiver                                                                   Using TimePickerDialog and DatePickerDialog In android

Menus In Android                                                                ListView:
Creating Option Menu                                                               Populating ListView With DataBase
Creating Context Menu In Android                                              Populating ListView with ArrayList
                                                                                               ListView with Custom Adapter

Toast                                                                                      Working With SMS
Customizing Toast In Android                                                       How to Send SMS in Android
Customizing the Display Time of Toast                                        How To Receive SMS
Customizing Toast At Runtime                                                  Accessing Inbox In Android
Adding Image in Toast
Showing Toast for Longer Time


TelephonyManager                                                            Storage: Storing Data In Android
Using Telephony Manager In Android                                          SharedPreferences In Android
                                                                                              Reading and Writing files to Internal Stoarage

Working With Incoming Calls                                       DataBase :  Introduction of SQLiteDataBase
How To Handle Incoming Calls in Android                                Working With Database in Android
How to Forward an Incoming Call In Android                            Creating Table In Android
CALL States In Android                                                          Inserting, Deleting and Updating Records In Table in Android


Miscellaneous
Notifications In Android
How To Vibrate The Android Phone
Sending Email In Android
Opening a webpage In Browser
How to Access PhoneBook In Android
Prompt User Input with an AlertDialog
How to Hide Title Bar In Android
How to show an Activity in Landscape or Portrait Mode only.
How to Set an Image as Wallpaper.