Get Current Date in Readable format from currentTimeMillis

Here is the simple code to get Current Date from the System in readable format. In xml design write a code for button or just drag and drop Button from the Design tab. Set the listener for the button. Inside the Button listener  First of all get the time value from the System. Using System.currentTimeMillis() method, which will give time in milliseconds.  Second, use SimpleDateFormat class to get date value …

Get Current Date in Readable format from currentTimeMillis Read More »

How to copy text to clipboard in android

Here is the example to copy and paste text to and from android app. Using ClipBoardManager class  ( Note:  use android.content.ClipboardManager to provide support for SDK > 11 and use android.text.ClipboardManager for SDK < 11. But it is now deprecated. There are no any special permission are required to copy and paste content. You can copy content from your …

How to copy text to clipboard in android Read More »