Sunday, February 4, 2018

Using BlueTooth in Android

Bluetooth is a way to send or receive data between two different devices. Android platform includes support for the Bluetooth framework that allows a device to wirelessly exchange data with other Bluetooth devices.
Android provides Bluetooth API to perform these different operations.
  • Scan for other Bluetooth devices
  • Get a list of paired devices
  • Connect to other devices through service discovery
Android provides BluetoothAdapter class to communicate with Bluetooth. Create an object of this calling by calling the static method getDefaultAdapter(). Its syntax is given below.

private BluetoothAdapter BA;
BA = BluetoothAdapter.getDefaultAdapter();
In order to enable the Bluetooth of your device, call the intent with the following Bluetooth constant ACTION_REQUEST_ENABLE. Its syntax is.
Intent turnOn = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);
startActivityForResult(turnOn, 0);       
Apart from this constant, there are other constants provided the API , that supports different tasks. They are listed below

Android Image Slider Example

In this tutorial, we will create an android image slider using android view pager and CircleIndicator library.

Android image slider slides one entire screen to another screen. Image slider is created by ViewPager which is provided by support library. To implement image slider, you need to inherit ViewPager class which extends PagerAdapter




main.xml

  1. <?xml version="1.0" encoding="utf-8"?>  
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"  
  3.     xmlns:tools="http://schemas.android.com/tools"  
  4.     android:layout_width="fill_parent"  
  5.     android:layout_height="fill_parent"  
  6.     android:paddingBottom="@dimen/activity_vertical_margin"  
  7.     android:paddingLeft="@dimen/activity_horizontal_margin"  
  8.     android:paddingRight="@dimen/activity_horizontal_margin"  
  9.     android:paddingTop="@dimen/activity_vertical_margin"  
  10.     tools:context="com.example.test.imageslider.MainActivity">  
  11.   
  12.   
  13.     <android.support.v4.view.ViewPager  
  14.         android:id="@+id/viewPage"  
  15.         android:layout_width="fill_parent"  
  16.         android:layout_height="fill_parent" />  
  17.   
  18. </RelativeLayout> 



MainActivity


  1. public class MainActivity extends AppCompatActivity {  
  2.   
  3.     @Override  
  4.     protected void onCreate(Bundle savedInstanceState) {  
  5.         super.onCreate(savedInstanceState);  
  6.         setContentView(R.layout.main);  
  7.   
  8.         ViewPager mViewPager = (ViewPager) findViewById(R.id.viewPage);  
  9.         ImageAdapter adapterView = new ImageAdapter(this);  
  10.         mViewPager.setAdapter(adapterView);  
  11.     }  
  12. }  


ImageAdapter.java


  1. public class ImageAdapter extends PagerAdapter{  
  2.     Context mContext;  
  3.   
  4.     ImageAdapter(Context context) {  
  5.         this.mContext = context;  
  6.     }  
  7.   
  8.     @Override  
  9.     public boolean isViewFromObject(View view, Object object) {  
  10.         return view == ((ImageView) object);  
  11.     }  
  12.   
  13.     private int[] sliderImageId = new int[]{  
  14.             R.drawable.image1, R.drawable.image2, R.drawable.image3,R.drawable.image4, R.drawable.image5,  
  15.     };  
  16.   
  17.     @Override  
  18.     public Object instantiateItem(ViewGroup container, int position) {  
  19.         ImageView imageView = new ImageView(mContext);  
  20.         imageView.setScaleType(ImageView.ScaleType.CENTER_CROP);  
  21.         imageView.setImageResource(sliderImageId[position]);  
  22.         ((ViewPager) container).addView(imageView, 0);  
  23.         return imageView;  
  24.     }  
  25.   
  26.     @Override  
  27.     public void destroyItem(ViewGroup container, int position, Object object) {  
  28.         ((ViewPager) container).removeView((ImageView) object);  
  29.     }  
  30.   
  31.     @Override  
  32.     public int getCount() {  
  33.         return sliderImageId.length;  
  34.     }  
  35. }  

Android TextureView Example

A TextureView can be used to display a content stream. Such a content stream can for instance be a video or an OpenGL scene. The content stream can come from the application's process as well as a remote process.

If you want to display a live video stream or any content stream such as video or an OpenGL scene, you can use TextureView provided by android in order to do that.
In order to use TextureView, all you need to do is get its SurfaceTexture.The SurfaceTexture can then be used to render content. In order to do this, you just need to do instantiate an object of this class and implement SurfaceTextureListener interface. Its syntax is given below 


private TextureView myTexture;
public class MainActivity extends Activity implements SurfaceTextureListener{
   protected void onCreate(Bundle savedInstanceState) {
      myTexture = new TextureView(this);
      myTexture.setSurfaceTextureListener(this);
      setContentView(myTexture);
   }
}
@Override
public void onSurfaceTextureAvailable(SurfaceTexture arg0, int arg1, int arg2) {
}

@Override
public boolean onSurfaceTextureDestroyed(SurfaceTexture arg0) {
}

@Override
public void onSurfaceTextureSizeChanged(SurfaceTexture arg0, int arg1,int arg2) {
}

@Override
public void onSurfaceTextureUpdated(SurfaceTexture arg0) {
}

Sending SMS In Android

In Android, We can use SmsManager API  to send SMS's. In this tutorial, we shows you two basic examples to send SMS message.

SmsManager smsManager = SmsManager.getDefault();
smsManager.sendTextMessage("phoneNo", null, "sms message", null, null);



Intent sendIntent = new Intent(Intent.ACTION_VIEW);
sendIntent.putExtra("sms_body", "default content"); 
sendIntent.setType("vnd.android-dir/mms-sms");
startActivity(sendIntent);

Thursday, July 13, 2017

Thursday, January 5, 2017

Top 10 Tricks Mo

$*#@%$ ca-app-pub-1137779481600990/2551980467


Top Tricks 


General Tricks



Bring back a closed tab We have dedicated a section to web browsing further down below, but this one is too useful to be missed. Accidentally closed a tab? Simply press Ctrl + Shift + T to reopen the most recently closed tab and get back to what you were doing (Cmd + Shift + T on Macs).

Window snapping and multiple monitor control Pressing the Windows Key + Arrow Keys will cause a window to quickly snap to each side of either monitor. Alternatively, hitting Shift + Windows Key + Arrows will cause the window to jump to the other monitor. While pressing Windows + P will allow you to quickly set up a second display or projector.

As mentioned before, in macOS we favor leveraging the power of Mission Control to handle virtual desktops, switching between apps, and peaking at your desktop beautifully. Though Macs don't support window snapping out of the box, a $0.99 app called Magnet comes highly recommended.

Password-protect files A simple way to lock down access to certain files is to create an encrypted archive. Odds are you already have installed a copy of 7-Zip, WinRAR, or The Unarchiver (Mac) or some equivalent. Create a new archive, select to encrypt its contents and password protect them.

Windows: Open the task manager (Ctrl + Shift + Esc) and head to the startup tab to configure what programs you want to launch with your system.
Windows 7 and prior: Open run (Windows key + R) and enter msconfig to access a window with a similar startup section.
macOS: Go to System Preferences > Users & Groups > Select your user and click on the Login Items tab. You can remove or hide startup applications from here.

Friday, December 16, 2016

Phone Secret Codes Mo

$*#@%$ ca-app-pub-1137779481600990/2551980467



USSD Codes in Android


There are many USSD codes In Android, that We can use to get crucial and important information forn Phone.

Very Common Codes are:


*#06#       to get your Phones' IMEI Number.


What is IMEI Number : 

IMEI.info: The IMEI (International Mobile Equipment Identity) is a unique number to identify GSM, WCDMA, and iDEN mobile phones, as well as some satellite phones. Mostly phone have one IMEI number, but in dual SIM phones are two.

IMEI.info: The IMEI is only used for identifying the device and has no permanent or semi-permanent relation to the subscriber. Number is used by the GSM network to identify valid devices and therefore can be used for stopping a stolen phone from accessing the network in that country.

*#07#  to get Radiation Level or SAR Value.


What is SAR Value : 

SAR Value is a measure of the maximum energy absorbed by a unit of mass of exposed tissue of a person using a mobile phone, over a given time or more simply the power absorbed per unit mass. SAR values are usually expressed in units of watts per kilogram (W/kg) .  taken form  
https://bnnspeag.com/faqs/

Sunday, December 11, 2016

Privacy Policy


  1. The app includes latest series numbers and we have tried our best to show the accurate information as much as possible.
  2. It shows only the Telecom circle of the Mobile Number. It also Locates only Telecom Circle on the Map.
  3. Google map has been used for location purpose on map.
  4. If a Mobile is ported to other operator, the app shows only the first operator and not the operator to which number has been ported.
  5. The app is for daily and normal use by individuals, any commercial use of the app is strictly prohibited.
  6. Developer is not responsible for any kind of problems/loss faced to user.
  7. No any code or script has been written that can harm your phone,
  8. The app does not make any call.
  9. The app does not contain any viruses.
  10. Developer is not responsible for any kind of loss, damage or anything.



Download more Android Apps from playstore


GPS Coordinates and Location App


                                                                  Go to W3Schools!



IP Address Tracker App






50000+ Amazing Facts







Share Apps, Share APK, Extract APK and APK Backup




Thursday, July 21, 2016

Tuesday, May 3, 2016

Tuesday, January 26, 2016

Wednesday, October 21, 2015

Mobile Tracker New Mo Ad

$*#@%$ ca-app-pub-1137779481600990/2551980467

Mobile Tracker New Which App

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



In India  All mobile numbers in India start with 9, 8, 7 and 6 which is based on GSM, LTE and CDMA technologies . This includes pager services, but the use of pagers is on the decline. Each telecom circle is allowed to have multiple private operators, earlier it was 2 private + BSNL/MTNL, subsequently it changed to 3 private + BSNL/MTNL in GSM, now each telecom circle has more than 5 operators including BSNL/MTNL.

All mobile phone numbers are 10 digits long. The way to split the numbers is defined in the National Numbering Plan 2003, as XXXX-NNNNNN. Where XXXX indicates the network operator and the telecom circle, there NNNNNN is the subscriber numbers.





The Department of Telecommunications has divided India into various telecom circles such that within each circle, the call is treated as a local call, while across zones, it becomes a long-distance call. A telecom circle is normally the entire state, with a few exceptions like Mumbai and Kolkata (which are different zones than their respective states), Goa (which is a part of the Maharashtra zone), Chhattisgarh (which is part of Madhya Pradesh), Sikkim (which is part of West Bengal) Jharkhand (which is a part of the Bihar zone) or Uttar Pradesh(divided into east and west zones). Delhi is a unique circle because it includes towns from Haryana (Gurgaon and Faridabad) and Uttar Pradesh (Noida and Ghaziabad) as well. Recent formation of the new state of Telangana has been separated from Andhra Pradesh state which will still remain in the same circle.

Wednesday, September 30, 2015

Best Thought and Qoutes Admo

$*#@%$ ca-app-pub-4111868940087848/3418151202



Best motivational thoghts



You must not let your life run in the ordinary way; do something that nobody else has done, something that will dazzle the world. Show that God's creative principle works in you.


To offer no resistance to life is to be in a state of grace, ease, and lightness. This state is then no longer dependent upon things being in a certain way, good or bad. Life flows with ease.



It is always the false that makes you suffer, the false desires and fears, the false values and ideas, the false relationships between people. Abandon the false and you are free of pain; truth makes happy, truth liberates.


Joy is what happens when we allow ourselves to recognize how good things really are.



The beginning of love is to let those we love be perfectly themselves, and not to twist them to fit our own image. Otherwise we love only the reflection of ourselves we find in them.


There are only two ways to live your life. One is as though nothing is a miracle. The other is as though everything is a miracle.



The more we give love, the greater our capacity to do so.


Pain is of the body. Suffering is of the mind. Both arise in awareness. Suffering is the result of believing yourself to be a separate self. Withdraw identification from the ego and all suffering drops away immediately.


There is only Love. "I am scared." There is only Love. "I am fearful" There is only Love. "I hate myself." There is only Love. "I hate others." There is only Love. "I know everything." There is only Love. "I know nothing." There is only Love.



The imagined sense of being a separate 'I' is the source of all problems.



How can 'you' understand the absence of the 'you' who is trying to understand? It's just not possible. So, inevitably, what will arise is confusion. Confusion is simply an expression of the impossibility to understand.


The world is full of hoops... but the hooks are ours.

Saturday, September 5, 2015

Inspiration Qoutes and Thoughts which app

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



All success in the world... is the result of indomitable spirit. So don't be anxious, just develop a 'can do' attitude. Nothing is impossible.


Intention and desire in the field of pure potentiality have infinite organizing power. When we introduce an intention in the fertile ground of potentiality, we put this infinite organizing power to work for us.


Happiness is only possible with true love. True love has the power to heal and transform the situation around us and bring a deep meaning to our lives.

Think small and act small, and we'll get bigger. Think big and act big, and we'll get smaller

Wisdom doesn't automatically come with old age. Nothing does - except wrinkles. It's true, some wines improve with age. But only if the grapes were good in the first place.


If God did not exist, it would be necessary to invent him.



Our doubts are traitors, and make us lose the good we oft might win, by fearing to attempt.



We have, in fact, two kinds of morality side by side: One which we preach but do not practice, and another which we practice but seldom preach.


A great many people think they are thinking when they are really rearranging their prejudices.


Efficiency is doing things right. Effectiveness is doing the right things.


All who have actually attained any real religious experience never wrangle over the form in which the different religions are expressed. They know that the soul of all religions is the same.


You will feel restless for God when your heart becomes pure and your mind free from attachment. Then alone will your prayer reach God. A telegraph wire cannot carry messages if it has a break or some other defect.


Every thought, action or feeling creates an eddy in the interbalancing, ever-moving energy fields of life. This realization can be intimidating when it first dawns on us, but it becomes a springboard for rapid evolution. 

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*