Posts

Using google play voided purchase API in flutter

Image
Google's voided purchase API can be used to find the purchases which are either refunded , cancelled, charged back  by the user and use the same to take action against the purchased item(in-app purchases) in your app. you can get more information about the API here: https://developers.google.com/android-publisher/voided-purchases before using the API you need to set up API access clients: 1) create or use an existing API project in google play console: =>play console=>menu=>settings=>developer account=>API access https://play.google.com/console/api-access 2)  create a service account and grant it necessary permissions ("view financial reports" permission) 3) create credentials for using the API: =>google cloud console =><your project>=>API & services=>credentials=>create credentials=>service account =>ensue to copy the service account credentials in the form: { "private_key_id": ..., "private_key": ...,

Unable to use firebase auth, even after adding sha1 keys [SOLVED]

Image
For using firebase auth in your application ,you need to add sha1 keys via firebase console, but if you have already added them and still its not working, then following the below steps will definitely help you: step1 : Login to firebase console and download the google-services.json file: after opening the file ,you may notice that the sha1 keys are not displayed under the field certificate hash: In the above screenshot ,the sha1 keys are shown along the field named "certificate hash", that's how it should be... but for some reason ,the sha1 keys in the firebase console are not included in the google-service.json file, its probably a bug... step-2: workaround So ,to add the sha1 keys to the project ,you need to add/create credentials via google cloud platform: https://console.cloud.google.com/apis/credentials   =>go to the above link and select your project. =>click on create credentials, and from dropdown box choose "OAuth client id" =>choose your appl

How to convert google play balance to paytm or UPI [2023]

Image
If your google account contains play balance which you might have earned from google competitions,opinion rewards or random gift vouchers, you can convert them to digital cash and receive the amount via paytm or any UPI linked bank account. For converting the play balance you need to follow 3 simple steps : 1) Download QxCredit app from google play store:                                 2) Purchase a token of your choice by entering the payout details :            3) View your purchase in my tokens section and wait for 72 hours for the transaction to be verified and processed. The below video demonstrates the process of purchasing a token of your choice to convert play balance: After purchasing token you will also receive a confirmation mail from QxCredit regarding the purchased token information. You can also view your purchased token on QxCredit website:  https://qx-credit.web.app/ You can refer to the terms and condition and privacy pol

Play Pong with 2 balls

Image
QxCoding Play Reset

What is the difference between a Vector and an Array. Discuss the advantages and disadvantages of both?

Image
Differences between a Vector and an Array - A vector is a dynamic array, whose size can be increased, where as an array size can not be changed. - Reserve space can be given for vector, where as for arrays can not. - A vector is a class where as an array is not. - Vectors can store any type of objects, where as an array can store only homogeneous values. Advantages of Arrays: - Arrays supports efficient random access to the members. - It is easy to sort an array. - They are more appropriate for storing fixed number of elements Disadvantages of Arrays: - Elements can not be deleted - Dynamic creation of arrays is not possible - Multiple data types can not be stored Advantages of Vector: - Size of the vector can be changed - Multiple objects can be stored - Elements can be deleted from a vector Disadvantages of Vector: - A vector is an object, memory consumption is more.   if any doubts or queries please comment 

Demonstration of new data types using structures

Image
What is a structure? A structure is a user defined data type in C/C++. A structure creates a data type that can be used to group items of possibly different types into a single type. How to create a structure? ‘struct’ keyword is used to create a structure. Following is an example. the below example demonstrates the creation of new data type point which can store coordinates : // A variable declaration with structure declaration. struct Point { int x, y; } p1; // The variable p1 is declared with 'Point' for using the above structure we need to use structure_name (.) member access operator followed by a member name of defined structure. int main() { // A valid initialization. member x gets value 0 and y // gets value 1. The order of declaration is followed. struct Point p1 = {0, 1}; cout<<"value of x="<<p1.x<<"value of y="<<p1.y; }   if any doubts or queries please comment 

c++ typing speed tester project using graphics.h header file

Image
INTRODUCTION I have made project “ Typing speed tester “. In this software we can test our speed and efficiency for typing via general keyboard. In this programme we have to type the characters which are displayed on the user screen. Now, coming to technical aspects of this software, all data are maintained in binary files, concepts of function and little bit use of graphical colours. LOGIN   INFORMATION USERNAME:    jatin PASSWORD:    password Header Files Ø iostream.h Ø dos.h Ø stdio.h Ø conio.h Ø time.h Ø string.h Ø stdlib.h Ø "tt.h" SOFTWARE RECQURIMENTS OS:             Windows Platform RAM :           512 MB Processor :   Pentium 3 or Above Compiler :     Turbo C++      or                       Borland C++ 4.5                                                                   OUTPUT                                        SOURCE CODE /* Project Name: Speed Tester