Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7536331
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T06:32:43+00:00 2026-05-30T06:32:43+00:00

I made a simple android application in phone gap,jQuery mobile, HTML5 with a simple

  • 0

I made a simple android application in phone gap,jQuery mobile, HTML5 with a simple getJSON data encoding . The application working well in Browser . But not in android .

When googled I found that android cant connect to internet . So that I added the following

<uses-permission android:name="android.permission.INTERNET" />

But Still my application doesn’t getting jSON data .. In browser its working well

my js file looks like

    function getMovies(){


var serviceURL = "http://myserver.com/";


alert("TEST"); // THIS WILL WORK ON BROWSER AND APPLICATION


        $.getJSON(serviceURL + 'movies.php?jsoncallback=?',null, function(data) {


    alert(data.result); // THIS WILLL WORK ON BROWSER

            var movies=data.result;

            $.each(movies, function(index, movie) {

                $('#movielist ul').append(
                    '<li><div class="image"></div><div class="content">'+
    '<div class="moviename">'+movie.movie+'</div>'+
    '<div class="moviedetails">Description</div>'+
    '</div></li>'


                );



            });

        });     




    }

my PHP code in server looks like

 $sql=mysql_query("SELECT * FROM filims");
$result=array();

$i=0;
while($row=mysql_fetch_array($sql)){

$result[$i]['id']=$row['id'];
$result[$i]['movie']=$row['movie'];
//$result[$i]['image']=$row['image'];
$i++;


}


$output=array();

$output['result']=$result;
$output['error']=0;
echo $_GET['jsoncallback'].'('.json_encode($output).')';

my AndroidManifest.xml looks like

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.phonegap.helloworld"
    android:versionCode="1"
    android:versionName="1.0" >


    <supports-screens
android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:resizeable="true"
android:anyDensity="true"
/>
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.RECEIVE_SMS" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
<uses-permission android:name="android.permission.READ_CONTACTS" />
<uses-permission android:name="android.permission.WRITE_CONTACTS" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.BROADCAST_STICKY" />

    <uses-sdk android:minSdkVersion="7" />
    <uses-feature />

    <application
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name" >
        <activity
            android:name=".App"
            android:label="@string/app_name" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity android:name="com.phonegap.DroidGap" android:label="@string/app_name" android:configChanges="orientation|keyboardHidden"> <intent-filter> </intent-filter> </activity> 
    </application>

</manifest>

Plese help me, Thanks in advance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T06:32:45+00:00Added an answer on May 30, 2026 at 6:32 am

    Try adding myserver.com or * to the ExternalHosts option in the PhoneGap.plist

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm making a webapp and I'm using jQuery. I've made a simple android application
We made a simple application and using GoogleAppEngineLauncher (GAEL) ran that locally. Then we
I have made a simple test application for the issue, two winforms each containing
I've made a simple OpenCV application with Visual Studio 2008 and I've built it
I've made a simple application to illustrate my problem. Brief explanation: the app contains
I am trying to write a simple android application to help interpret some lab
I have made a few simple apps on android, and thought it was time
I made a simple beanshell ide in android using an edittext and a button.
I have made a simple application in which i have use some buttons and
I've made a simple Android Activity with an ActionBar to switch between 2 fragments.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.