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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T23:14:41+00:00 2026-06-14T23:14:41+00:00

How can I solve this types of issue from my android device when I

  • 0

How can I solve this types of issue from my android device when I update application if any one then not updated application from Google Play store, so what I do? Please tell me and solve this issue.

  • 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-14T23:14:42+00:00Added an answer on June 14, 2026 at 11:14 pm

    if I understand you correctly you want to force updates on your users.

    this can be achieved in a pretty simple way if your app is connected to your own server for data transfer.

    all you have to do is send a key to your sever for authentication (in addition to the user and password or whatever is sent).

    private static final String [] myKey = new String [] {"str1", "str2", "str3", "str4"};
    
    public boolean login(String user, String password) {
    
        boolean loginSuccessful ServerModule.sendRequest(user, SHA1(password + TextUtils.join("-", myKey));
        if(loginSuccessful) {
              return true;
        }
        return false;
    }
    

    the SHA1 function is taken from this answer:

    private static String convertToHex(byte[] data) {
        StringBuilder buf = new StringBuilder();
        for (byte b : data) {
            int halfbyte = (b >>> 4) & 0x0F;
            int two_halfs = 0;
            do {
                buf.append((0 <= halfbyte) && (halfbyte <= 9) ? (char) ('0' + halfbyte) : (char) ('a' + (halfbyte - 10)));
                halfbyte = b & 0x0F;
            } while (two_halfs++ < 1);
        }
        return buf.toString();
    }
    
    public static String SHA1(String text) throws NoSuchAlgorithmException, UnsupportedEncodingException {
        MessageDigest md = MessageDigest.getInstance("SHA-1");
        md.update(text.getBytes("iso-8859-1"), 0, text.length());
        byte[] sha1hash = md.digest();
        return convertToHex(sha1hash);
    }
    

    every time you send an update you change the key in the app and in the server and now your users are forced to update.

    you should probably add a UI that prompts if the user has an old key and send them to the app in the Google Play site. You can do this with an intent.

    final String appName = "com.example";
    startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id="+appName)));
    

    (this code was taken from this answer)

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

Sidebar

Related Questions

Can any one please help me solve this. I am resizing some flash object/embed
I can't solve this problem... I'm having some problems with fetched properties (not with
UPDATE: I've filed this as an issue on Microsoft Connect if you can reproduce
How can I solve this problem Cannot Create Forms. No MDI forms are currently
I can't solve this on MS Access SQL. I have a foo table with
http://jsfiddle.net/YaMhn/8/ ^^^^Take a look and see if you can help solve this Ok so
can anybody help me solve this : i got $filename= index 198.php; i use
Can anybody help me to solve this problem. I am working on iphone development.
Can anyone give me tips how to solve this using Graphs in C or
I've been trying to solve this problem for a while now and I can't

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.