1. #1
    Sencha User
    Join Date
    Sep 2013
    Location
    india
    Posts
    4
    Vote Rating
    0
    rd1o1 is on a distinguished road

      0  

    Default Answered: sencha touch android app not able to connect to internet on android 4.x

    Answered: sencha touch android app not able to connect to internet on android 4.x


    I have built a android app with sencha touch 2.3 , cmd 4 and phonegap 3.1 . this app working fine on android 2 device , but on android 4.x devices jsonp request failed.


    jsonp request code


    Code:
     Ext.data.JsonP.request({            url: 'http://www.riteyouth.com/mobile/app2/php2/check.php',
               // method: 'post',
                callbackKey: 'callback',
                params: {
                    user: username,
                    pwd: password
                },
                success: function (response,request) {
                    console.log(response);
                                  
                    var loginResponse = response;
    
    
                    if (loginResponse.success === "true") {
                       me.sessionToken = loginResponse.sessionToken;
                           
    
    
                        myname11=loginResponse.uname;
                        me.load_userdata(me)
                        me.signInSuccess(myname11);
    
    
                        console.log('this must be');
    
    
    
    
                     // me.load_userdata();
    
    
                      }
                    else {
                        me.signInFailure("Something Went Wrong,Please try again");
                     }
                },
                failure: function (response) {
                    me.sessionToken = null;
                    me.signInFailure('Login failed. Please try again later.');
                }
            });
    
        },





    my config.xml file

    Code:
    <?xml version='1.0' encoding='utf-8'?><widget id="rd.yadav.riteyouth" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0">
        <name>riteyouth</name>
        <description>
            Hello World sample application that responds to the deviceready event.
        </description>
        <author email="support@phonegap.com" href="http://phonegap.com">
            PhoneGap Team
        </author>
        <feature name="http://api.phonegap.com/1.0/device" />
        <preference name="permissions" value="none" />
        <preference name="orientation" value="default" />
        <preference name="target-device" value="universal" />
        <preference name="fullscreen" value="true" />
        <preference name="webviewbounce" value="true" />
        <preference name="prerendered-icon" value="true" />
        <preference name="stay-in-webview" value="false" />
        <preference name="ios-statusbarstyle" value="black-opaque" />
        <preference name="detect-data-types" value="true" />
        <preference name="exit-on-suspend" value="false" />
        <preference name="show-splash-screen-spinner" value="true" />
        <preference name="auto-hide-splash-screen" value="true" />
        <preference name="disable-cursor" value="false" />
        <preference name="android-minSdkVersion" value="7" />
    	<preference name="android-targetSdkVersion" value="19" />
        <preference name="android-installLocation" value="auto" />
        <icon src="icon.png" />
        <icon gap:density="ldpi" gap:platform="android" src="res/icon/android/icon-36-ldpi.png" />
        <icon gap:density="mdpi" gap:platform="android" src="res/icon/android/icon-48-mdpi.png" />
        <icon gap:density="hdpi" gap:platform="android" src="res/icon/android/icon-72-hdpi.png" />
        <icon gap:density="xhdpi" gap:platform="android" src="res/icon/android/icon-96-xhdpi.png" />
        <icon gap:platform="blackberry" src="res/icon/blackberry/icon-80.png" />
        <icon gap:platform="blackberry" gap:state="hover" src="res/icon/blackberry/icon-80.png" />
        <icon gap:platform="ios" height="57" src="res/icon/ios/icon-57.png" width="57" />
        <icon gap:platform="ios" height="72" src="res/icon/ios/icon-72.png" width="72" />
        <icon gap:platform="ios" height="114" src="res/icon/ios/icon-57-2x.png" width="114" />
        <icon gap:platform="ios" height="144" src="res/icon/ios/icon-72-2x.png" width="144" />
        <icon gap:platform="webos" src="res/icon/webos/icon-64.png" />
        <icon gap:platform="winphone" src="res/icon/windows-phone/icon-48.png" />
        <icon gap:platform="winphone" gap:role="background" src="res/icon/windows-phone/icon-173.png" />
        <gap:splash gap:density="ldpi" gap:platform="android" src="res/screen/android/screen-ldpi-portrait.png" />
        <gap:splash gap:density="mdpi" gap:platform="android" src="res/screen/android/screen-mdpi-portrait.png" />
        <gap:splash gap:density="hdpi" gap:platform="android" src="res/screen/android/screen-hdpi-portrait.png" />
        <gap:splash gap:density="xhdpi" gap:platform="android" src="res/screen/android/screen-xhdpi-portrait.png" />
        <gap:splash gap:platform="blackberry" src="res/screen/blackberry/screen-225.png" />
        <gap:splash gap:platform="ios" height="480" src="res/screen/ios/screen-iphone-portrait.png" width="320" />
        <gap:splash gap:platform="ios" height="960" src="res/screen/ios/screen-iphone-portrait-2x.png" width="640" />
        <gap:splash gap:platform="ios" height="1024" src="res/screen/ios/screen-ipad-portrait.png" width="768" />
        <gap:splash gap:platform="ios" height="768" src="res/screen/ios/screen-ipad-landscape.png" width="1024" />
        <gap:splash gap:platform="winphone" src="res/screen/windows-phone/screen-portrait.jpg" />
        <access origin="http://127.0.0.1*" />
    </widget>





  2. #2
    Sencha - Support Team
    Join Date
    Oct 2011
    Posts
    3,923
    Answers
    328
    Vote Rating
    129
    fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all

      0  

    Default


    What debugging have you done so far? What error message are you receiving?
    What version of Android 4.x have you tested on?
    Get more personalized support via a support subscription.

    Want to learn Sencha Touch 2? Check out
    Sencha training
    Sencha Touch in Action

    Need more help with your app? Hire Sencha Services services@sencha.com

    When posting code, please use BBCode's CODE tags.

    Need to include a test case use:
    The official Sencha Fiddle

  3. #3
    Sencha - Support Team
    Join Date
    Oct 2011
    Posts
    3,923
    Answers
    328
    Vote Rating
    129
    fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all

      1  
    Get more personalized support via a support subscription.

    Want to learn Sencha Touch 2? Check out
    Sencha training
    Sencha Touch in Action

    Need more help with your app? Hire Sencha Services services@sencha.com

    When posting code, please use BBCode's CODE tags.

    Need to include a test case use:
    The official Sencha Fiddle

  4. #4
    Sencha User
    Join Date
    Sep 2013
    Location
    india
    Posts
    4
    Vote Rating
    0
    rd1o1 is on a distinguished road

      0  

    Default


    thanks @fmoseley , it solve my problem

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi