How to set ringtone in android programmatically?
This code will set your ringtone for ANDROID. To set a ringtone you have to add it to the database. otherwise it will not be set also gives no error also. Insert it into the database
This code will set your ringtone for ANDROID. To set a ringtone you have to add it to the database. otherwise it will not be set also gives no error also. Insert it into the database
XSLT uses XPath to find information in an XML document. XPath is used to navigate through elements and attributes in XML documents.
This code snippet captures audio from a given source and saves it to a file with android.media.MediaRecorder.
CSS = Style Sheets for HTML HTML uses predefined tags, and the meaning of each tag is well understood. The table tag in HTML defines a table – and a browser knows how to display it. XSL = Style Sheets for XML XML does not use predefined tags (we can use any tag-names we like),… Read More »
The WifiManager can be used to enable and disable wifi. Where ‘enabled’ is a boolean.
E4X = JavaScript for XML E4X means “ECMAScript For XML”. It is a standard extension to ECMAScript. So in real life E4X means “JavaScript for XML”.
First, just show an image inside a toast: This method just displays a text toast: And this method displays a Toast that contains both an image and text:
Get all the available network connections One important thing is that don’t forget to add the following lines in the manifest file
Gets the phone number the app is running on. It needs a permission so add the line uses-permission android:name=”android.permission.READ_PHONE_STATE” to the manifest.xml
This snippet starts an Application automatically after the android-os booted up. in AndroidManifest.xml (application-part):
Converting a bitmap to drawable is really easy in ANDORID. It has a class called BitmapDrawable which takes a bitmap as the parameter and convert it into a drawable object.