The 500 (internal server error) means something went wrong on the server’s side. It could be several things, but I would start by verifying that the URL and parameters are correct. Also, make sure that whatever handles the request is expecting the request as a …
Use UIView as UIButton…..
Give UIControl class to UIView then we can access that as UIButton.Add event like Touch Up Inside, touchDown… etc.
What is RecyclerView? And how to use it?
With the advent of Android Lollipop, the RecyclerView made its way officially. The RecyclerView is much more powerful, flexible and a major enhancement over ListView. below is detailed insight into it. 1) ViewHolder Pattern In a ListView, it was recommended to use the ViewHolder pattern but …
Endless listview
In some of cases, we need to repeat same data in listview for endless or we can say infinate listview. So, this code may be helpful in that case. You can use this adapter. public class CircularListAdapter extends BaseAdapter { // Debug static final boolean …
Access Shared preference data from one application to another application
Create Shared preferece data in first application set its mode to MODE_WORLD_READABLE. Here is a following snippet you can find how to create shared preference and store data into it. mSharedPrefs = getSharedPreferences(“Prefs_First”, MODE_WORLD_READABLE); SharedPreferences.Editor editor = mSharedPrefs.edit(); editor.putString(“name”, etName.getEditableText().toString()); editor.putString(“password”, etPassword.getEditableText().toString()); editor.commit(); In another …
jquery does not executed issue
I think you might have written jquery.min.js and jquery.mobile-1.4.5.min.js after your .js file. example: <script type=”text/javascript” src=”js/yourfile.js”></script> <script src=”js/jquery.mobile-1.4.5.min.js”></script> <script src=”js/jquery.min.js”></script> above code is worng code, you must write jquery.min.js and jquery.mobile-1.4.5.min.js before your .js file. correct code is: <script src=”js/jquery.mobile-1.4.5.min.js”></script> <script src=”js/jquery.min.js”></script> <script type=”text/javascript” …
ChangePage jquery issue
You need to integrate jquery.mobile.flatui.css in your .html file. You just need to write below line of code your .html file <link rel=”stylesheet” type=”text/css” href=”css/jquery.mobile.flatui.css”/> jquery-mobile-flatui
Restrict access to phpMyAdmin by IP
Under an Ubuntu system phpMyAdmin adds an Apache vhost that makes it publically available at http://yoursite.com/phpmyadmin . By accessing http://yoursite.com/phpmyadmin have maximum chances to get hacked your database. Under Ubuntu, the phpMyAdmin apache conf file is located at: /etc/apache2/conf-available/phpmyadmin.conf Simply add the following order, allow, deny directives …
AutoCompleteTextView: Remove soft keyboard on back press instead of suggestions
We can achieve that by override-ing onKeyPreIme in your custom AutoCompleteTextView. public class CustomAutoCompleteTextView extends AutoCompleteTextView { public CustomAutoCompleteTextView(Context context) { super(context); } public CustomAutoCompleteTextView(Context context, AttributeSet attrs) { super(context, attrs); } public CustomAutoCompleteTextView(Context context, AttributeSet attrs, int defStyleAttr) { super(context, attrs, defStyleAttr); } @Override …
Common memory leaks and how to fix them
1. Fix your contexts: Try using the appropriate context: For example since a Toast can be seen in many activities instead of in just one, use getApplicationContext() for toasts, and since services can keep running even though an activity has ended start a service with: …