Posts Tagged ‘android’

Android Internet Connection Status & Network Change Receiver example

Android Internet Connection Status & Network Change Receiver example
If you are developing an Android app you may already fetching information from internet. While doing so there is a chance that internet connection is not available on users handset. Hence its always a good idea to check the network state before performing any task that requires internet connection.You might also want to check what kind of internet connection is available in handset. For example ...

Android: Activity name must be specified error

Android: Activity name must be specified error
If you are an avid Android developer there is a chance that you might have encountered this error.Activity name must be specifiedThe error popups up when we create a new Android project in Eclipse.You have no idea how to solve this!! You try giving all the values but still the error doesn't go away.Here ...

Android Install/Uninstall Shortcut example

Android Install/Uninstall Shortcut example
Nowadays many android apps installs a shortcut on home screen when you install the app and run it for the first time. This is a nice strategy to engage user by compiling them to use your app. Most of times when a user install an app, the app is deep buried in list of apps making it almost difficult to discover. So its always a ...

Android Preferences Activity example

Android Preferences Activity example
Android application often needs settings that allow users to modify preferences in app. Android provides a powerful framework to manage user preferences. It allows us to define the way we want preferrences and it automatically generates UI for that. All we need to do is to simply use it in our app.Let us see in this tutorial how to integrate Android's Preference framework (PreferenceActivity) ...

Android: Take Emulator Screen Shots in Eclipse

Android: Take Emulator Screen Shots in Eclipse
If you are an Android developer then you are already taking lot of screen shots of your app. For documentation purpose or for putting it in Google Play market. Taking screen shots of Android in phone is easy in today's smart phones like Samsung Galaxy series. But most of the time we would need to grab the screen from Android emulator.Here's a simple but ...

Android: Speech To Text using API

Android: Speech To Text using API
Android has a very cool feature that still many developers dont know. Apps like Any.DO uses speech to text conversion feature quite creatively. In today's world of Siri, voice commands are of utmost importance. Android natively provides feature of Speech to Text so why not to use it in our app!I will show you how to use Android's Speech to Text API in an application.Let's ...

Android: Trigger Media Scanner Programmatically

Android: Trigger Media Scanner Programmatically
While working on an Android App, I had to integrate the Camera API. User can take a photo from App and process it. With Android the Photo that you click cannot be accessed until the media scanner runs and index it. It is possible to triggeer programatically the Media Scanner in Android. Check the below code snippet:import android.content.Intent; import android.net.Uri; import android.os.Environment; ... ... sendBroadcast ( new Intent(Intent.ACTION_MEDIA_MOUNTED, Uri.parse("file://" + Environment.getExternalStorageDirectory())) ); ...Here ...

How To Enable Camera in Android Emulator

How To Enable Camera in Android Emulator
By default when you create an Android Virtual Devices (AVD) in Android, the Camera is disabled. So if your application uses Camera API, it might not work properly in Android Emulator. Also SDCard must be defined in emulator in order to use Camera.To enable Camera in your Android Emulator, just add following highlighted code in your AVD's config.ini file. You can find the config.ini ...

How To Pick Image From Gallery in Android App

How To Pick Image From Gallery in Android App
Since few days I am working on an Android app and learning all the nitty gritty of its APIs. I will share few How-to stuffs that we frequently require in Android.To start with let us see how to integrate Image Gallery with your App. Consider a requirement, you want your app user to select Image from the Gallery and use that image to do some ...