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 8688063
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T23:16:00+00:00 2026-06-12T23:16:00+00:00

I am new for android, I have done one android application using phonegap, but

  • 0

I am new for android, I have done one android application using phonegap, but in this application I am going to implement a new concept. That is nothing but this application want to open automatically when an sms receiving with particular port.
So how to implement this concept? Actually after login the app form that username sent to backend and reply via the same port. If entered username is correct, the reply message is true otherwise false will return.

In our apps when receiving that particular message take the response and check if it is true, redirect to the home form else displaying the login form again with error message. This is the concept.

Now my Activity class is as follows, but I don’t know how to change my activity class for getting this concept.

So any body help me how to implements this concept…thanks in advance.

 import android.os.Bundle;
 import org.apache.cordova.*;
 import android.view.Menu;

 public class SMSActivity extends DroidGap
 {

    @Override
    public void onCreate(Bundle savedInstanceState) 
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_sms);
        //super.setIntegerProperty("splashscreen", R.drawable.logo);
        super.loadUrl("file:///android_asset/www/index.html");
    }
    @Override
    public boolean onCreateOptionsMenu(Menu menu) 
    {
        getMenuInflater().inflate(R.menu.activity_sms, menu);
        return true;
    }
  }
  • 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-12T23:16:01+00:00Added an answer on June 12, 2026 at 11:16 pm

    You can use BroadcastReceiver for SMS_RECEIVED. Please refer this tutorial this may help you.

    1) SMS messaging
    2) React on incoming message

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

Sidebar

Related Questions

I have done one program in android using xml parsing but there is an
i am creating a new android application.i am using the table layout. I have
I am a bit new with android but I have some java experience. So
Ok, im fairly new to android but i have managed to teach myself the
I am new to Android. I have tried an sample application for status bar
I have implemented one application in android which uses epublib to view .epub files.
I am creating a PhoneGap application for iOS and Android. I have gotten Android
my android application is formed by several activity, one service (that communicate with a
I have an Android application (java) that was working fine when compiled with the
I'm very new to Java and the Android SDK but I'm almost done with

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.