— First thing you need to do is to start command prompt or CMD. There is two ways: Press F8 when Windows XP start up (before windows xp logo – progress bar for loading) and choose “Save Mode Command prompt” option If you are logged in: click on start -> Run, type “cmd” and press ENTER. — In… Read More »
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), and therefore the… Read More »
The WifiManager can be used to enable and disable wifi. Where ‘enabled’ is a boolean.
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.
Playing a video file is simple in android. This post will help you. Put your video in res/raw folder. If no raw folder present then create a new folder inside res. The main. xml file. Please leave your comments if this post was useful.
The following code helps you to do a drag and drop in ANDROID.
By using the below code snippet you can uninstall an installed application on your ANDROID phone. Create an intent object with an action and data as the package name and start with the ACTION_DELETE.
Call this function to restart your application Note : PLease add this to your app.XML file inorder for the above code to work.
This sample code helps you to load html from a string and from a file into webview in ANDROID.