I want to access (add, edit) contacts of Google accounts on an android device. I'm using Android Studio.
I've found couple posts on http://stackoverflow.com:
Android - sync contact add programatically to google account
Xml model for adding contact to google contacts
However, first mentions problem and have no answer, second has only some parts of code and both do not show how to choose account if there are sereral on a device.
I foresee it could be considered broad question, however, if OK, please advice how to do my task with less code and setup (e.g. Maven or jar libraries or else) and with specific code samples - via Google API or some other way?
I think you'll be better off delegating this kind of work to the system, using Intents. You can have a look at how Google recommends to do it here
I hope this helps!
Related
In my app I have seen that users don't really bother to update the app so I want to encourage them through a dialog requesting them to update the app. The best way possible was to tell them about all the benefits of updating the app but I don't know how to retrieve this information from the Google Playstore.
Any help would be deeply appreciated!
It is best to use the Firebase Notification Center.Please follow the following Official documentation to implement in your app..
Firebase Messaging
There isn't an API to do this in Play at the moment. The way most app developers do this is have their own server where they have information about versions which they require to upgrade, and also can put notifications.
If you haven't done much server side work, maybe check out Firebase from Google. It integrates with the Google Play console, and it should be very quick to get something like this running.
Actually i wanted to make a clone of instagram and show user feed in another way and change the language of app for my own country , but there are several problems with standard instagram api
1.you cannot have user feed
2.you should become live to have user data
i guess some of apps use another api which is based on web version and i think this api fetch data from instagram webVersion or maybe official app,
i searched for a private api and i didn't found something suitable for my Task
i hope you guys could help me to find another instagram api for my job
it's better to be based on java or android
Thanks
I am building a webpage that will generate a QR code for consumers and currently it has the ability for the QR code to be stored in Apple Wallet aka passbook, however, the people from Android Pay (Google Wallet) are saying that they don't support that.
has anybody had experience with having a QR code (not the image just the code since I believe it can generate the image) and then store the code in Google Wallet ?
A use case can be something like buying tickets on Fandango for a movie or a show to some event and storing the QR code in your Google wallet to be used when you enter the venue.
thanks
Android Pay (Google Wallet) is just a payment mechanism and doesn't have the same features that Apple Wallet/Passbook has. Like the people from Android Pay have already told you, this isn't something that they support right now.
If you want somewhere to store QR codes and barcodes on your Android phone, maybe google drive or some 3rd party android app can do it for you.
Thanks to a recent update, Google now supports adding things like passports, cards, etc to Google Wallet.
At the time of writing this it doesn't let you add plain QR Codes though, so you will have to request an issuer ID and create a Wallet pass in your backend.
I hope this might change in the future but currently it's how it is.
Read more in the official guide
Generic QR codes are new supported, see generic passes in the API docs.
See this step-by-step codelab for getting started.
how to make invisible my android app to everyone from google play store.
only specific peoples can download it through link given or any other procedure.
mean is everyone can't find app on play store by just search app name.
Or tell me any other solution close to it.
Withing Google play you can use Alpha and Beta testers to restrict the distribution of your app.
You can define a list of users. They will be the only able to get the app. Once done you update your app in google play, wait few hours and then google play will generate a link. You just have to send this link to your users and they can install the app.
This is the summary of the Google documentation ( in better english than mine )
You don't need a production APK to publish an alpha/beta app.
Users need a Google Account (#gmail.com) or a Google Apps account to join a test.
If you're testing an existing app that you've published before, only users in your test group will receive an update for your alpha/beta version. If you're testing a new app that you haven't published before, only users in your test group can find and download your app.
After publishing an alpha/beta APK for the first time, it may take a few hours for your test link to be available to testers. If you publish additional changes, they may take several hours to be available for testers.
You have the full documentation here.
If you dont explicitly need it on the play store, TestFairy is a very powerful tool. I use it to distribute to selected people until I'm ready to share it with the world.
The API is very simple and informative.
You can also build and upload versions directly from Android Studio.
I have developed an Android game that integrates facebook SDK for checking if one has liked and sharing results.
I heard from my mate that he had problem that made him unable to use the like for reward feature on my app, so I decided to install facebook app myself to check out the problem.
For some reason if I am trying to access the fb api reading data from URL "https://api.facebook.com/method/pages.isFan?format=json&access_token=ACCESS_TOKEN&page_id=PAGE_ID" it opens up facebook app on Android which only flashes and then turns off.. How can I avoid this or is there better way to check if one has liked my page in order to give him reward?
I haven't used the Facebook API, but the Facebook app is probably opening because it's listening for broadcast Intents to "api.facebook.com". You could explicitly send the intent to a browser package instead, but this isn't a good solution as there are many browsers.
I would try to do a HTTPS request using a Loader to fetch and parse the json. Have you tried this yet?
I can't paste any code right now, sorry.
From your comment to above Answer , Glad to know that you solved your problem,
Here is the answer for your Question
is there better way to check if one has liked my page
You can surely use FQL - Facebook Query Language to do this, given under the developer documentation in Facebook site.
There are Two different table
1.Page - where you can get all the detail about the page
2.Page_Fan - which you can use to know the fan-id for the page