Wednesday, April 29, 2020

How to change json to string in Android App + Java

GetData is a retrofit configuration

UpdateUserProfile is model
getUser is getter of another model
Personame is an edit box
 
GetData service = RetrofitClient.getClient().create(GetData.class);
Call<UpdateUserProfile> callProfile= service.fetchUserData();
callProfile.enqueue(new Callback<UpdateUserProfile>() 
{    @Override    public void onResponse(Call<UpdateUserProfile> call,  
Response<UpdateUserProfile> response) {       
 String updateUserProfile= response.body().getUser().get(0).getId();     
         personName.setText(response.body().getUser().get(0).getName());         
     personDOB.setText(response.body().getUser().get(0).getDob());           
   personEmail.setText(response.body().getUser().get(0).getEmail());        
      personMobile.setText(response.body().getUser().get(0).getMobile_no());       
Picasso.with(ProfileActivity.this)
.load(response.body().getUser().get(0).getImage()).into();
    }


Tuesday, January 7, 2020

Search Engine Optimization


             
What is SEO / Search Engine Optimization?
SEO Stands for Search Engine Optimization which is a component of Search Engine Marketing, Search Engine Optimization is essentially the practice of increasing the quality and quantity of visitors to a website through the Organic Search Results.
How SEO Works?
You may think of a Search Engine like Google of a website where you search magically for answers to your homework problem or to find a local service pro.

That’s 100% true, but there is a lot more put into this magical search, and that’s exactly what we’re going to talk about here.
Google, for example (or any other search engine), crawls the sites across the internet. Once content across the internet is crawled by the Google search engine, it results in an index. This index is then put into an “Algorithm” Since Google is the largest and most used search engine on the internet, the algorithm is much much more competitive due to the amount of creators or websites being indexed.
MOZ has a phenomenal image that will help you understand the search engine aspect of Search Engine Optimization, a group of experts grouped the factors this way:
What is the Google Algorithm?
If you want to stay on top of the trends, you need to understand the concept of algorithms and how Google changed them over the years.
By definition, an algorithm is a set of rules designed to solve a problem in a finite number of steps. The definition applies to every algorithm, including Google’s, which basically means that the platform uses a highly specific formula to identify the most appropriate search results for each query.
Given that Google typically changes its algorithm 500 to 600 times a year, it is essential to track progress and react promptly. It’s impossible to explain the entire history of Google algorithms in one post, but we can point out the most important updates:

  • Google Panda: Google released the Panda update in 2011 to reduce the influence of low-quality websites and boost the ranking of pages serving top-notch content. The point was to undermine sites with lots of duplicate content, low value, ads, and so on.
  • Google Penguin: Google released the Penguin update in 2012 to focus on sites with a huge number of irrelevant inbound links. From this point on, it was much more difficult to boost ranking by buying backlinks or generating them artificially.
  • Google Hummingbird: Google released the Hummingbird update in 2013 and it turned out to be the most influential change of all. Namely, the new algorithm has been designed to accurately interpret user intent and the true meaning behind search phrases, thus enabling Google to find better results and improving ranking results.
  • Google Pigeon: Google released the Pigeon update in 2014 with a highly specific goal in mind and that was to improve location-based search results. The algorithm takes into account maps and local directories to give more precise location-specific information.
  • Google Fred: Google released the Fred update in 2017 but refused to make any comments about it.

  • You can learn more about the google algorithm here.

    Also Provide

    GST billing software

    Stock Management software

    Mobile application development

    Payment Gateway Integration(core PHP, Laravel and Python)

    Monday, October 14, 2019

    Patterns Program in C language type 2

    Patterns Programs in C language


    /*C program to print following Pyramid:
    *****
    ****
    ***
    **
    *
    */
    
    #include<stdio.h>
    
    #define LIMIT 5
    
    int main()
    {
     int i,j;
    
     for(i=LIMIT; i>=0; i--)
     {
      for(j=0;j<=i;j++)
      {
       printf("*");
      }
      printf("\n");
     }
        return 0;
    }


    Also Provide

    GST billing software

    Stock Management software

    Mobile application development

    Payment Gateway Integration(core PHP, Laravel and Python)

    Prime Programmer


        8795202855

    Prime Programmer

    How will you print pyramid

    /*C program to print below Pyramid: */
     
    #include<stdio.h>
     
    #define LIMIT 5

    int main()
    {
        int i,j;

        for(i=0; i< LIMIT; i++)
        {
            for(j=0;j<=i;j++)
            {
                printf("*");
            }
            printf("\n");
        }
        return 0;
     
    }

    Also Provide

    GST billing software

    Stock Management software

    Mobile application development

    Payment Gateway Integration(core PHP, Laravel and Python)

    Prime Programmer


        8795202855

    Prime Programmer


    Tuesday, October 1, 2019

    Eazypay ICICI bank payment gateway Integration (Core PHP)

    Eazypay ICICI bank payment gateway Integration (Core PHP)




    Eazypay ICICI bank payment gateway Integration (Core PHP)

    Steps To Integrate Eazypay Payment Gateway in PHP


    Required Parameter

    1.    Merchant Id (Mandatory)

    3.    Encryption key (AES Key)(Mandatory)

    4.    Merchant reference number(optional)

    5.    Return URL(optional)

    6.  DEFAULT_BASE_URL = 'https://eazypay.icicibank.com/EazyPG?'; // Default URL  from icici bank


    Process for Integration

    1. Make class for Eazypay (ICICI Bank)payment gateway integration


    <?php

    class Eazypay
    {

    }


    ?>


    2. Generate Payment URL


    <?php


    function generatePaymentUrl($mandatoryField, $optionalField, $amount, $reference_no)
    {


    }


    ?>

    3. Generate Encrypted value


    <?php

    protected function getEncryptValue($str) // Encryption method {


    }
    ?>


    4. Submit the html form



    Resoponse From Server side

    <html>
    <body>
    <?php if(payment_success_exec()): ?>
    <?php 
    include "thank-you.php"; // Insert any content into the file you
    // wish to display to the user when the payment is successful
    ?>
    <?php else: ?>
    <?php 
    $response = response_code($_POST['Response_Code']);
    echo "<div style='text-align:center; width: 100%;font-size:20px;'><p>Transaction
          failed due to some reason. Please check with your bank if amount has been deducted.</p> 
            <p>Sorry for the inconvenience caused.</p>";
    echo "<p>Your bank has returned the following error message: <b>".$response."
          </b></p>";
    echo "<p> Click <a href='https://example.com/'>here</a> to return to the home
          page</p></div>";
    ?>
    <?php endif; ?>
    </body>
    

    </html>

    Save above code in a file and pass the required value, Like amount reference number etc.


    Before Encryption EX.
    
    <?php
    
       echo "https://eazypay.icicibank.com/EazyPG?merchantid=100011&
             mandatory fields=8061|1234|80| 90002450001
             &optional fields=20|20|20|20
             &returnurl= http://website.com/cbc/action.php&Reference No=8001
             &submerchantid=1234&transaction amount=80&paymode=9"
    
      ?>
    
        After Encryption EX.
    
    <?php
    
      echo "https://eazypay.icicibank.com/EazyPG?merchantid=100011
            &mandatory fields=u65A+ywICIypfrJVQp9ED2VlkBzkIimiHhLXPyo2P14=
            &optional fields=faJ6BJUlOqjoV/AEbw5X4g==
            &returnurl=6WvzNalyXvqOX+aY9ee5oKm8FT+YUF5sz940o6QZvx0=
            &ReferenceNo=X7VX+1ZnKq+o6K2QWCTERQ==
            &submerchantid=QVZkBomDLSbitS4C9lGaUA==
            &transactionamount=aTRTaIdS0sLyzGCxL3Y5dQ==
            &paymode=nFRjDWSCg0m80aUYivDlqw=="
    
    ?>
    

    After encryption payment page is showing




     In case you have any questions, do let me know.
    Also offer

    GST billing software

    Stock Management software

    Mobile application development

    Payment Gateway Integration(core PHP, Laravel and Python)

    Prime Programmer


        8795202855

    Prime Programmer




    Wednesday, February 20, 2019

    Tools For Website

    Every Business man needs some kind of magic to generate link. , and they also move for quick action.

    Here we discuss about some tools to grow business.

    1. Website

    2. Digital Marketing(Bulksms, Facebook Marketing, Twitter, Google Adwords. etc)

    For startup and small business man we have a plan for website.

    By using this tool every business achieve success.

    Also Provide

    GST billing software

    Stock Management software

    Mobile application development

    Payment Gateway Integration(core PHP, Laravel and Python)

    Prime Programmer


        8795202855

    Prime Programmer




    Outlook Email Configuration Service – Get Seamless Email Setup!

      Outlook Email Configuration Service – Get Seamless Email Setup! Setting up business emails (IMAP, POP3, SMTP) Troubleshooting email send...

    Clock