tag:blogger.com,1999:blog-31265982993555379582024-02-20T02:55:29.118-08:00unknown solutionsThis blog gives answers to unknown solutions.Anonymoushttp://www.blogger.com/profile/05062242015423336272noreply@blogger.comBlogger11125tag:blogger.com,1999:blog-3126598299355537958.post-14094642786598206182013-11-28T01:22:00.001-08:002013-11-28T01:22:44.029-08:00hiding keyboard in ios<div dir="ltr" style="text-align: left;" trbidi="on">
call below code from event like clicking close button will close keyboard in ios<br />
-(void)close:(id)sender{<br />
[text field name resignFirstResponder];<br />
}<br />
<br /></div>
Anonymoushttp://www.blogger.com/profile/05062242015423336272noreply@blogger.com0tag:blogger.com,1999:blog-3126598299355537958.post-4659926617571322882013-11-28T00:58:00.003-08:002013-11-28T01:18:35.893-08:00sharing via option for ios<div dir="ltr" style="text-align: left;" trbidi="on">
Using UIActivityViewController you can share anything from app, see the below example code<br />
<br />
Import two packages<br />
<br />
#import <Social/Social.h><br />
#import <MobileCoreServices/MobileCoreServices.h><br />
<br />
-(IBAction)shareLink:(NSArray *)link{<br />
link = @[@""]; //for single object either text ot image or etc<br />
UIActivityViewController *act = [[UIActivityViewController alloc] initWithActivityItems:link applicationActivities:nil];<br />
[self presentViewController:act animated:YES completion:nil];<br />
}</div>
Anonymoushttp://www.blogger.com/profile/05062242015423336272noreply@blogger.com0tag:blogger.com,1999:blog-3126598299355537958.post-65124786498870695502013-11-22T01:23:00.003-08:002013-11-22T01:23:56.876-08:00how to use like for multiple values in oracle<div dir="ltr" style="text-align: left;" trbidi="on">
we can use or keyword with below statement<br />
<br />
(columns1 like '%XXXX%' or column1 like '%yyyy%' or column1 like '%zzzz%') is same as </div>
Anonymoushttp://www.blogger.com/profile/05062242015423336272noreply@blogger.com0tag:blogger.com,1999:blog-3126598299355537958.post-28083011643797749622013-11-20T21:53:00.000-08:002013-11-20T21:53:45.264-08:00event.returnValue is deprecated. Please use the standard event.preventDefault() instead.<div dir="ltr" style="text-align: left;" trbidi="on">
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.</div>
Anonymoushttp://www.blogger.com/profile/05062242015423336272noreply@blogger.com0tag:blogger.com,1999:blog-3126598299355537958.post-19495777005859597042013-11-20T21:47:00.000-08:002013-11-20T21:47:45.455-08:00$ is not defined<div dir="ltr" style="text-align: left;" trbidi="on">
$ is not defined while running jquery script code , replace header file with below links<br />
<br />
<link rel="stylesheet" href="https://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" /><br />
<br />
<script src="js/jquery-1.9.1.js" type="text/javascript"></script><br />
<br />
<script src="https://code.jquery.com/ui/1.10.3/jquery-ui.js" type="text/javascript"></script><br />
<link rel="stylesheet" href="/resources/demos/style.css" /><br />
<br />
it will work</div>
Anonymoushttp://www.blogger.com/profile/05062242015423336272noreply@blogger.com0tag:blogger.com,1999:blog-3126598299355537958.post-39893111232860927722013-11-16T22:49:00.000-08:002013-11-16T22:49:28.921-08:00error adding setOnKeyListener in android<div dir="ltr" style="text-align: left;" trbidi="on">
<pre class="lang-java prettyprint prettyprinted" style="background-color: #eeeeee; border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; font-size: 14px; line-height: 18px; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto; word-wrap: normal;"><code style="border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; margin: 0px; padding: 0px; vertical-align: baseline;"><span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">myEditText</span><span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">.</span><span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">setOnKeyListener</span><span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">(</span><span class="kwd" style="background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;">new</span><span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> </span><span class="typ" style="background-color: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;">OnKeyListener</span><span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">()</span><span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> </span><span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">{</span><span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</span><span class="kwd" style="background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;">public</span><span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> </span><span class="kwd" style="background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;">boolean</span><span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> onKey</span><span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">(</span><span class="typ" style="background-color: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;">View</span><span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> v</span><span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">,</span><span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> </span><span class="kwd" style="background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;">int</span><span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> keyCode</span><span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">,</span><span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> </span><span class="typ" style="background-color: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;">KeyEvent</span><span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> event</span><span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">)</span><span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> </span><span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">{</span></code></pre>
<pre class="lang-java prettyprint prettyprinted" style="background-color: #eeeeee; border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; font-size: 14px; line-height: 18px; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto; word-wrap: normal;"><code style="border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; margin: 0px; padding: 0px; vertical-align: baseline;"><span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Above code in android gets compiling error because it uses View's V so </span></code></pre>
<pre class="lang-java prettyprint prettyprinted" style="background-color: #eeeeee; border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; font-size: 14px; line-height: 18px; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto; word-wrap: normal;"><code style="border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; margin: 0px; padding: 0px; vertical-align: baseline;"><span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">replace with below code</span></code></pre>
<pre class="lang-java prettyprint prettyprinted" style="background-color: #eeeeee; border: 0px; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto; word-wrap: normal;"><span style="background-color: transparent; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; font-size: 14px; line-height: 18px;"> </span><span style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; font-size: 14px; line-height: 18px;">myEditText</span><span style="background-color: transparent; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; font-size: 14px; line-height: 18px;">.setOnKeyListener(new View.OnKeyListener() {</span>
<span style="background-color: transparent; font-size: 14px; line-height: 18px;"><span style="font-family: Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, serif;"> public boolean onKey(View v, int keyCode, KeyEvent event) {</span></span></pre>
<br />
<pre class="lang-java prettyprint prettyprinted" style="background-color: #eeeeee; border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; font-size: 14px; line-height: 18px; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto; word-wrap: normal;"><code style="border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; margin: 0px; padding: 0px; vertical-align: baseline;"><span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</span></code></pre>
</div>
Anonymoushttp://www.blogger.com/profile/05062242015423336272noreply@blogger.com0tag:blogger.com,1999:blog-3126598299355537958.post-31820545761885657952013-11-13T05:12:00.000-08:002013-11-15T05:18:02.886-08:00window.alert bold text<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<i>we cannot change inbuilt window.alert functionality but below code customizes window.alert for example we can get bold text etc.</i><br />
<i><br /></i>
<i>copy paste the code in your notepad and save with .html and check.</i><br />
<br />
<html><br />
<style type="text/css"><br />
#modalContainer {<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>position:absolute;<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>width:100%;<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>height:100%;<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>top:0px;<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>left:0px;<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>z-index:10000;<br />
}<br />
#alertBox {<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>position:relative;<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>width:350px;<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>min-height:150px;<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>margin-top:0px;<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>border:1px solid LightGray;<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>background-repeat:no-repeat;<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>background-position:20px 30px;<br />
}<br />
#modalContainer > #alertBox {<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>position:fixed;<br />
}<br />
#alertBox p {<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>font:0.8em verdana,arial;<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>height:50px;<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>padding-left:5px;<br />
}<br />
#alertBox #closeBtn {<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>display:block;<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>position:relative;<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>left:125px;<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>top:30px;<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>margin:5px auto;<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>padding:5px 0 8 0;<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>border:1px solid blue;<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>width:70px;<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>font:bold 0.7em verdana,arial;<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>text-decoration:none;<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>text-align:center;<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>color:black;<br />
}<br />
</style><br />
<script language="javascript"><br />
if(document.getElementById) {<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>window.alert = function(txt) {<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>createCustomAlert(txt);<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>}<br />
}<br />
function createCustomAlert(txt) {<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>d = document;<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>if(d.getElementById("modalContainer")) return;<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>mObj = d.getElementsByTagName("body")[0].appendChild(d.createElement("div"));<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>mObj.id = "modalContainer";<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>mObj.style.height = document.documentElement.scrollHeight + "px";<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>alertObj = mObj.appendChild(d.createElement("div"));<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>alertObj.id = "alertBox";<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>if(d.all && !window.opera) alertObj.style.top = document.documentElement.scrollTop + "px";<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>alertObj.style.left = (d.documentElement.scrollWidth - alertObj.offsetWidth)/2 + "px";<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>msg = alertObj.appendChild(d.createElement("p"));<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>msg.innerHTML = txt;<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>btn = alertObj.appendChild(d.createElement("a"));<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>btn.id = "closeBtn";<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>btn.appendChild(d.createTextNode("OK"));<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>btn.href = "#";<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>btn.onclick = function() { removeCustomAlert();return false; }<br />
}<br />
function removeCustomAlert() {<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>document.getElementsByTagName("body")[0].removeChild(document.getElementById("modalContainer"));<br />
}<br />
</script><br />
<body><br />
<span class="Apple-tab-span" style="white-space: pre;"> </span><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.');" /><br />
</body><br />
</html></div>
Anonymoushttp://www.blogger.com/profile/05062242015423336272noreply@blogger.com0tag:blogger.com,1999:blog-3126598299355537958.post-40361087675975431512013-11-13T04:41:00.002-08:002013-11-15T05:19:17.371-08:00how to get google android developer account without credit card<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
Follow below steps for getting google android publisher account without credit card by using virtual credit card from entropay.<br />
<br />
step 1)<br />
log in to https://www.entropay.com/ and register<br />
<br />
step 2)<br />
wire transfer money from bank account to entropay virtual credit card<br />
<br />
step3)<br />
note the number generated virtual credit card and cvv number<br />
<br />
step4)<br />
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</div>
Anonymoushttp://www.blogger.com/profile/05062242015423336272noreply@blogger.com0tag:blogger.com,1999:blog-3126598299355537958.post-29739021976839582722013-11-11T03:41:00.001-08:002013-11-15T05:20:56.820-08:00how to show uiactionsheet from UIwindow in ios<div dir="ltr" style="text-align: left;" trbidi="on">
Invoking UIActionSheet from UIWindow other than UIView by using below code in iPhone programming.<br />
<b>[actionSheet showInView:[UIApplication sharedApplication].keyWindow];</b></div>
Anonymoushttp://www.blogger.com/profile/05062242015423336272noreply@blogger.com0tag:blogger.com,1999:blog-3126598299355537958.post-79072730859066108782013-11-08T03:37:00.000-08:002013-11-15T05:23:19.825-08:00html input file accept attribute<div dir="ltr" style="text-align: left;" trbidi="on">
For Input file type opening window with particular file type using below code in html<br />
<br />
for image files<br />
Example:<input type="file" <b>accept="image/jpeg,image/gif"</b>><br />
<br />
for pdf files<br />
Example:<input type="file" <b>accept="application/pdf"</b>><br />
<br />
for doc,docx,xls,xlsx<br />
<br />
Example:<input type="file" <b>accept=".doc/.docx/.xls/.xlsx"</b>><br />
<br />
these accept attributes work for all browsers.<br />
<br />
<br /></div>
Anonymoushttp://www.blogger.com/profile/05062242015423336272noreply@blogger.com0tag:blogger.com,1999:blog-3126598299355537958.post-30746862013134642192013-07-20T22:35:00.002-07:002013-07-20T22:35:59.454-07:00unable to find phys addr for<div dir="ltr" style="text-align: left;" trbidi="on">
unable to find phys addr for XXXX in android using andengine library<br />
<br />
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.</div>
Anonymoushttp://www.blogger.com/profile/05062242015423336272noreply@blogger.com0