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

  • Home
  • SEARCH
  • 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 8213535
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T11:09:06+00:00 2026-06-07T11:09:06+00:00

I want to make a native Android application for a website. The first problem

  • 0

I want to make a native Android application for a website.

The first problem is how to login in a website using an Android native app, (without any change on the existent webservice site), the Android app should remain connected until a click on a logout button. I have to ask about this matter and some people suggested Json.

I have downloaded JSON and GSON library and I tried to see some tutorial for login in this website with Android app with no success.

Now the access page of the website has this code

<!DOCTYPE html>
<html lang="it" dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<link rel="shortcut icon" href="templates/images/favicon.ico" />
<link rel='stylesheet' href='templates/css/base.css?1330075048' type='text/css' />
<script type="text/javascript" src="js/jquery-1.6.1.min.js"></script>
<script type="text/javascript" src="js/srte.js"></script>
<script type='text/javascript' src='js/jquery.form.js'></script>


<script type="text/javascript">
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-000000000-1']);
  _gaq.push(['_setDomainName', 'domainname.it']);
  _gaq.push(['_trackPageview']);


</script>

<title>Nomes - Login</title>
</head>

<body class='login' style='background: #fff;'>
<div id="headwrapper" style='height:80px;'>
    <div id="head">
        <div class="logo" dir="ltr"><a href='http://www.domainname.it'><img src='templates/images/image.jpg'/></a></div>
        <div class='banner'><img src='templates/images/banner-head.jpg'/></div>

    </div>
</div>
<div id="theadwrapper">
    <div id="tabhead">
    </div>
</div>

<div id='background_wrapper'>
    <div id="wrapper">
        <div id="messages"></div>



                    <div><h5>Email</h5><input id='email' type='text' name='email' /></div>
                    <div><h5>Password</h5><input id='password' type='password' name='password' /></div>
                </div>
                <div class='rememberme'><input type='checkbox' name='remember' id='remember_me'>Ricordami</div>
                <div class='submit'>
                    <button type='submit' name='post' class='medium green'>Accedi</button><br/>
                    <p>o <a href='register.php'>Iscriviti</a></p>

                </div>
            </form>
            <div id='reset_pass'>Hai dimenticato la password? Clicca <a href='resetpwd.php'>qui</a></div>
            </div>
            <div class='advert'>
                <br/><br/><img src='templates/images/sfumatura-orizzontale.jpg' />
                <div class='circles'></div>
            </div>

        <script>
        $(document).ready(function(){
            $('#login_form').submit(function(e){
                e.preventDefault();
                if ( ($('#login_form #email').val() == "") 
                  || ($('#login_form #password').val() == "") ) return;
                $('#login_form').attr("disabled", "disabled").css({opacity:0.5});
                $(this).ajaxSubmit({
                    dataType: "json",
                    success: function(data) {
                        if (data.isError) {
                            Bore.error(data.errorMessage);
                            $('#login_form').removeAttr("disabled").css({opacity:1});
                        }
                        else {

                                                            window.location.replace(data.data.defaultPage);
                                                        }
                    },
                    error: function() {
                        $('#login_form').removeAttr("disabled").css({opacity:1});
                        console.log('error');
                    }
                });
            });
        });
        </script>
        <div class='circle'></div>
        </div><!-- login_content -->
        <div style='clear:both; padding: 10px;'></div>
    </div><!-- wrapper -->
</div> <!-- bg_rapper -->

  • 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-06-07T11:09:08+00:00Added an answer on June 7, 2026 at 11:09 am

    You should access the server interface with the parameters that your server accepts.

    Access the site parsing the PHP and using the nested function in the PHP code, is a really bad idea.

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

Sidebar

Related Questions

I want to make the communication between native app and web app in android.How
I want to make compass like native compass app has with such calibration view.
I am new android app developer i want make app for tablets and phone
I was writing some native code on Android using NDK(jni). I want to turn
I'm working on an Android application that will send MMS internally without using the
I want to have a mobile-friendly website, in addition to a native app for
I have just started Android Development, I want to make thread in my application
I want make datetimepicker in my project. Using jquery how it is possible? I
I want make interactive application where user launches it and can do various task
I have style sheet with a class name changebackgroundcolor i want make change in

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.