Tuesday, February 19, 2013

Setup Android app to be Movable in SD Card

Open your Android app In eclipse.

And Open menifest.xml file in edit mode.
add below code in manifest tag:

android:installLocation="preferExternal"

Ex.
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.forfilmreview.app"     android:installLocation="preferExternal"
    android:versionCode="1"
    android:versionName="1.0" >

Wednesday, February 13, 2013

Disable Page Scroll on jQueryMobile Popup opens

when JQM popup open, and you dont want to scroll page then try this code.

Disable scroll.
$( ".popup").live({
                      popupbeforeposition: function(event, ui) {
                        $("body").on("touchmove", false);
                      }
});

After close popup release scroll.
$( ".popup" ).live({
                      popupafterclose: function(event, ui) {
                        $("body").unbind("touchmove");
                      }
});