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: …
EditText – Limit with ALL CAPITALS with NOSPACES
How to restrict EditText with all character capital with no space between? Below is customize InputFiler use for this: public static class NoSpaceWithAllCaps implements InputFilter { public CharSequence filter(CharSequence source, int start, int end, Spanned dest, int dstart, int dend) { for (int i = …
Video height issue when set src from local storage
Hi, When you set video src from local storage, then please don’t load again that video tag. see below example for reference. $(‘#my-video’).html(”); var srcPath = cordova.file.documentsDirectory + FileName; $(‘#my-video’).html(‘<source src=’+srcPath+’ type=”video/mp4″></source>’ ); $(‘#my-video’).load(); so you need to remove last line, then your code would …
CLLocationManager not getting City name
Issue Description : I have not getting city name when select some of location. To overcome this issue use below snippet code. – (void) getReverseGeocode { CLGeocoder *geocoder = [[CLGeocoder alloc] init]; if(currentLatLong.count > 0) { CLLocationCoordinate2D myCoOrdinate; myCoOrdinate.latitude = LatValue; myCoOrdinate.longitude = LangValue; CLLocation …
Is Sender ID Private in GCM push notification?
It is fine to expose sender id because it has no meaning without serverkey.
Decompile .JAR extension files
Here are following steps decompile .JAR file Download and install JD-GUI software from http://jd.benow.ca/ as per your OS. Open .Jar file in JD-GUI software. Go to file and click on “Save as” to set destination path. You will find decompiled file in your corresponding destination …
How do I format a double into a string (with only two decimal places)?
double d1 = 123456.78; double d2 = 567890; Locale fmtLocale = Locale.getDefault(Category.FORMAT); NumberFormat formatter = NumberFormat.getInstance(fmtLocale); formatter.setMaximumFractionDigits(2); formatter.setMinimumFractionDigits(2); System.out.println(formatter.format(d1)); System.out.println(formatter.format(d2)); System.out.println(fmtLocale.toLanguageTag());