Thursday, 28 November 2013

hiding keyboard in ios

call below code from event like clicking close button will close keyboard in ios
    [text field name resignFirstResponder];

sharing via option for ios

Using UIActivityViewController you can share anything from app, see the below example code

Import two packages

#import <Social/Social.h>
#import <MobileCoreServices/MobileCoreServices.h>

-(IBAction)shareLink:(NSArray *)link{
    link = @[@""];     //for single object either text ot image or etc
    UIActivityViewController *act = [[UIActivityViewController alloc] initWithActivityItems:link applicationActivities:nil];
    [self presentViewController:act animated:YES completion:nil];

Friday, 22 November 2013

how to use like for multiple values in oracle

we can use or keyword with below  statement

(columns1 like  '%XXXX%' or column1 like '%yyyy%' or column1 like '%zzzz%') is same as 

Wednesday, 20 November 2013

event.returnValue is deprecated. Please use the standard event.preventDefault() instead.

download jquery-1.9.1.js file search for event.returnvalue(***.returnvalue) and replace with event.preventDefault(***.preventDefault) and save this js file and place in supporting file.

$ is not defined

$ is not defined while running jquery script code , replace header file with below links

<link rel="stylesheet" href="" />

<script src="js/jquery-1.9.1.js" type="text/javascript"></script>

<script src="" type="text/javascript"></script>
  <link rel="stylesheet" href="/resources/demos/style.css" />

it will work

Saturday, 16 November 2013

error adding setOnKeyListener in android

myEditText.setOnKeyListener(new OnKeyListener() {
    public boolean onKey(View v, int keyCode, KeyEvent event) {
Above code in android gets compiling error because it uses View's V so 
replace with below code
 myEditText.setOnKeyListener(new View.OnKeyListener() {
  public boolean onKey(View v, int keyCode, KeyEvent event) {

Wednesday, 13 November 2013

window.alert bold text

we cannot change inbuilt window.alert functionality but below code customizes window.alert for example we can get bold text etc.

copy paste the code in your notepad and save with .html and check.

<style type="text/css">
#modalContainer {
#alertBox {
border:1px solid LightGray;
background-position:20px 30px;
#modalContainer > #alertBox {
#alertBox p {
font:0.8em verdana,arial;
#alertBox #closeBtn {
margin:5px auto;
padding:5px 0 8 0;
border:1px solid blue;
font:bold 0.7em verdana,arial;
<script language="javascript">
if(document.getElementById) {
window.alert = function(txt) {
function createCustomAlert(txt) {
d = document;
if(d.getElementById("modalContainer")) return;
mObj = d.getElementsByTagName("body")[0].appendChild(d.createElement("div")); = "modalContainer"; = document.documentElement.scrollHeight + "px";
alertObj = mObj.appendChild(d.createElement("div")); = "alertBox";
if(d.all && !window.opera) = document.documentElement.scrollTop + "px"; = (d.documentElement.scrollWidth - alertObj.offsetWidth)/2 + "px";
msg = alertObj.appendChild(d.createElement("p"));
msg.innerHTML = txt;
btn = alertObj.appendChild(d.createElement("a")); = "closeBtn";
btn.href = "#";
btn.onclick = function() { removeCustomAlert();return false; }
function removeCustomAlert() {
<input type="button" value = "Test the alert" onclick="alert('<b>This</b> is a custom alert dialog that was created by over-riding the window.alert method.');" />

how to get google android developer account without credit card

Follow below steps for getting google android publisher account without credit card by using virtual credit card from entropay.

step 1)
log in to and register

step 2)
wire transfer money from bank account to entropay virtual credit card

note the number generated virtual credit card and cvv number

login to ANDROID developer account and follow the steps and enter virtual credit card number for payment and your account is ready for submit android apps

Monday, 11 November 2013

how to show uiactionsheet from UIwindow in ios

Invoking UIActionSheet from UIWindow other than UIView by using below code in iPhone programming.
[actionSheet showInView:[UIApplication sharedApplication].keyWindow];

Friday, 8 November 2013

html input file accept attribute

For Input file type opening window with particular file type using below code in html

for image files
Example:<input type="file" accept="image/jpeg,image/gif">

for pdf files
Example:<input type="file" accept="application/pdf">

for doc,docx,xls,xlsx

Example:<input type="file" accept=".doc/.docx/.xls/.xlsx">

these accept attributes work for all browsers.

Saturday, 20 July 2013

unable to find phys addr for

unable to find phys addr for XXXX in android using andengine library

i found this issue due to memory of assets that occupied, it cause error only low end android phones so clear the ram and uninstall other andengine projects in your phone and try again.