Android application integration with Fitbit ( Fitbit Tracker ) - java

I have an Android Application and I want to integrate my android application with
Fitbit Tracker(fitbit). And I want to count the number of steps moved by the user by using that Fitbit Tracker and want back the number of step taken by the particular user in my application, so I can calculate the amount of calories burn during the walking activity.
Any help will be appreciable.

If you want to connect your android app to fitbit tracker then you should call fitbit apis for accessing fitness data related to user. First do authentication process and then you can access users data from fitbit server. You can get more information here.

Its late but can be helpful.
Fitbit don't allow 3rd party app to get the data from the device. It is synchronized with the fitbit application on the phone and is available through the Fitbit API.
During registration of application, if you dont have callback url, you can use your fitbit profile as the url & you can use your own name as organization name.
You can check this out for implementation.

Related

How Can I use Google OR Microsoft Push Notification for 2 factor authentication in my JAVA based web app

I want to enable two factor authentication (with Push Notification) in my JAVA based web application.
I searched and found I can use Google & Microsoft authenticator app and can enable two factor authentication, I have successfully done POC for this and it works well with random code generated in Authenticator app and on my web app server and can verify the code. https://medium.com/#ihorsokolyk/two-factor-authentication-with-java-and-google-authenticator-9d7ea15ffee6
Now I want to enable Push notification in a same way, whenever user login to my webApp,after user name & password verification, I want to send push notification to user's registered mobile number OR in user's Google/Microsoft authenticator app, with YES, NO options. user will then select YES or NO and based on that response, user should be able to login in my web app.
I searched but not find any such API of Google or Microsoft which I can use in my web App to support push notification. Appreciate your help if any one can provide links to such API docs or have any other suggestion to achieve this requirement.
Thanks

How to connect android users to my database / web application?

I have wrote a simple web application with few tables. It has it's administration area where you can manage it's table. Basic CRUD operations.
However, I need to develop an Android application which will retrieve information from this web application trough API. So I am going to write a simple API methods for fetching data. Also there will be sometimes when Android user will save some of its data to database.
Android application needs to be able to list items stored in database and bookmark some of those items over HTTP.
To me problem is how to implement SingIn / SignOut operations using Android's Google account. For example, application GMail is always signed in (at least on my device) and I want my application to be always signed in.
Then, how can I manage what items user bookmarked? Should I create a table android_bookmarked_items (android_user_id, item_id)? But then what should be android_user_id? Do I need to use OAuth?
I am doing this kind off sign in for the first time and I am really confused how to connect this web application with android user and manage bookmarked items per user...
You can make use of Android AccountManager. Check out How to get the Android device's primary e-mail address
I think i have found solution by using Google Sign-In for Android. I get idToken for currently login user before each POST request and verify it on server side. Also from the token I get property sub which is user id and store this in my database...
Auth with a backend server
However, I am pretty new to this stuff, tokens and authentication using google, I would like for someone more experinced to confirm that my solution is fine and secure...

How to tell if first Facebook log in - Android

I am attempting to integrate onboarding screens into my Android application that allows users to register through Email/Password, or through Logging in with Facebook.
Is there any way of programmatically knowing when the user logs in through Facebook whether it is the first time of doing so?
I only want the Onboarding Activity to launch the first time the user logs in through Facebook (after accepting the permissions request), not every time they log in.
Any help with this issue would be hugely appreciated.
use facebook API's to authenticate the users.Login to the facebook developer console to register your application and get the key hashes that will uniquely define your application.
Use facebook Api by this link https://developers.facebook.com/ register your app.
and follow the instruction as mentioned.Then you can integrate facebook logging in your App

What are the best ways to integrate centralized login through Facebook app? on various platform

Currently I am creating a product which extends across various platforms like Android, IOS, Windows 8 and Web(Future release)
I was struggling to create a way to create a centralized login to facebook across various platforms .
For Ex :
If I have authorized my appA from my Facebook account on my Android Phone , then when i pick up my iPad I donot want to authorize the app again . It should know that the same FB account has been authorized once and should directly allow the app to fetch the required informations from Facebook - which i guess is not possible if we use the facebook sdk for IOS and android seperately
Now Incase I handle all facebook requests through a server which is hosted a lets say http://zbcdef.com and all my clients request this server to fetch the facebook related transactions.In such case how can my app fetch the information of the user logged in the facebook app on the device by default when the users log-in the the app (for ex like quora does it ) and how does it affect the mobile marketing campaigns analytics

How to create friends and status updates using App engine

Hi guys i posted a question earlier related to this topic but i believe the question was to broad. So this time i will try to be more specific.
I would like to use Google's AppEngine to create a social networking environment for my app.
For example, it will allow a user to log in, see friends status, and their will be an activity where the user can see friends list and click a friends to load the users profile.
So basically i would like to know what should the implementation for this look like?
Such as using App Engine, Amazon S3 services, etc
So here are my main two questions:
how would i load a users friends list when they click the "Friends" activity?
how would i load the users current friends latest statuses?
Create an API for your site on App Engine.
You then consume that API in your Android app.
For logins, ask users their email/username or password. You send that to your API and have it return a token associated to the user. Use that token to query the API for the user's friends status, list, etc.
Save the token in the SharedPreferences of your Android app. You check the SharedPreferences to know if the user is logged in or not.

Categories

Resources