We can easy to extract the timezone from current system time using javascript by the following code.
Example Program:- (Editor)

Editor is Loading...
Advertisement
Example Program:- (Editor)
Editor is Loading...
Advertisement
11:50
Muhammad Kaif
String html = "<html><body>This is the test webview</body></html>";
String mime = "text/html";
String encoding = "utf-8";
WebView myWebView = (WebView)this.findViewById(R.id.myWebView);
myWebView.getSettings().setJavaScriptEnabled(true);
myWebView.loadDataWithBaseURL(null, html, mime, encoding, null);
13:48
Muhammad Kaif
<Button
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:background="@drawable/btnhome_new" />
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/btnblue"
android:state_pressed="true" />
<item android:drawable="@drawable/btnrose"
android:state_focused="true" />
<item android:drawable="@drawable/btnred" />
</selector>
Paste the copied images to drawable directory.
A dialog box will ask for confirmation, just press ok. Now the images are placed into drawable folder, and you can see the above error was removed.
Note : Image name should not contain capital letters.
04:05
Muhammad Kaif
var img = document.createElement("img");
img.src = "http://www.google.com/intl/en_com/images/logo_plain.png";
var src = document.getElementById("elementid");
src.appendChild(img);
10:11
Muhammad Kaif
<WebView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/webview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
/>
<uses-permission android:name="android.permission.INTERNET" />
import android.webkit.WebView;
import android.webkit.WebViewClient;
WebView myWebView = (WebView) findViewById(R.id.webview);
myWebView.setWebViewClient(new WebViewClient());
myWebView.loadUrl("http://www.google.com");
00:37
Muhammad Kaif
13:57
Muhammad Kaif
sdk.dir=D\:\\Program Files\\Android Studio\\SDK
ndk.dir=C\:\\android-ndk-r12b-windows-x86\\android-ndk-r12b
01:48
Muhammad Kaif
SET IDENTITY_INSERT Table_Name ON
INSERT Table_Name(IdentityColumnName, Col1,Col2) VALUES (54,value1,value2)
SET IDENTITY_INSERT Table_Name OFF
01:45
Muhammad Kaif
<asp:Button ID="dmypbbtn" runat="server" OnClick="dmycall" style="display:none;" /> javascript code
document.getElementById("<%=dmypbbtn.ClientID%>").click(); jQuery Code
$("#<%=dmypbbtn.ClientID%>").trigger('Click');
22:58
Muhammad Kaif
<asp:Button id="bid" CommandArgument="456" runat="server" OnClick="passvalue" />
protected void passvalue(object sender, EventArgs e)
{
LinkButton btn = (LinkButton)(sender);
String testval = btn.CommandArgument; //Returns 456
}
22:55
Muhammad Kaif
<asp:Button id="bid" CommandArgument="456,Rajesh" runat="server" OnClick="passvalue" />
protected void passvalues(object sender, EventArgs e)
{
LinkButton btn = (LinkButton)(sender);
String fullvalue = btn.CommandArgument; //"456,Rajesh"
String[] args= fullvalue.Split(new char[] { ',' });
int mark = Convert.ToInt32(args[0]); //Returns 456
string name = args[1]; //Returns "Rajesh"
}
21:42
Muhammad Kaif
00:40
Muhammad Kaif
<asp:RadioButtonList ID="Rbtn_ModeSetBy" runat="server">
<asp:ListItem Value="0">All Employees</asp:ListItem>
<asp:ListItem Value="1">Grade</asp:ListItem>
<asp:ListItem Value="2">Job Title</asp:ListItem>
<asp:ListItem Value="3">Employment Status</asp:ListItem>
</asp:RadioButtonList>
var val =$('[id*="<%=Rbtn_ModeSetBy.ClientID%>"]').find('input:checked').val();
05:30
Muhammad Kaif
RSS Feed
Twitter