Getting the last known location of the Android device

By Using the Google play services API, you can access the last known location of you device. Most of the time you are interested in user’s current location which is equivalent to device’s last known location. Continue reading “Getting the last known location of the Android device”

Saving data in External storage

Every Android-compatible device supports a shared “external storage” that you can use to save files. This can be a removable storage media (such as an SD card) or an internal (non-removable) storage. Files saved to the external storage are world-readable and can be modified by the user when they enable USB mass storage to transfer files on a computer.

Continue reading “Saving data in External storage”

Saving Data in Internal Storage

You can save data in device’s internal storage as well. Data stored in Internal storage will be considered as a private data for your application and will not be accessible by other applications. Also, once your app gets uninstalled, this data automatically gets removed.

Continue reading “Saving Data in Internal Storage”

Android Intent

An Android  Intent is an abstract description of an operation to be performed. Your code can send them to the Android system defining the components you are targeting. It can be used with  startActivity to launch an Activity,  broadcastIntent to send it to any interested BroadcastReceiver components, and  startService(Intent) or bindService(Intent, ServiceConnection, int) to communicate with a background Service. Continue reading “Android Intent”