I want to make an Android Application in Eclipse that accesses the Notes Inbox in Gmail and can edit, create, or delete them. How would I do this? In iOS there is a preinstalled application that does this. Is there an API that I could use to do this in Android?
Hey actually I was looking for the same thing for Node.Js/Javascript and basically found out that you can just access the Gmail account through IMAP and that gives you access to any folder you need. So just use IMAP to access Gmail and then retrieve all the notes from the Notes folder. Just in case, here's the module for Node.Js: https://github.com/mscdex/node-imap
Related
In order to get started with google drive in java I have to
Enable the API in my google drive
create new project there and download client secrets.json file
Use that file in my project folder and do stuff
But applications like WhatsApp are able to upload chatbackups to google drive directly without asking the user to do any of the above steps.
in my application I request the user his/her email address and I have to work with that to access that persons google drive.
How do I go about doing this?
What makes you think that applications like Whatsapp havent done that? The only way to use Google apis its to register your application in Google so that google knows which applications are accessing their api and can shut you down if you start spamming them. So Whatsapp if they can write to google drive have a google client.
You cant use client login anymore with google apis it was shut down in 2015 so requesting email and password from your users isnt going to work. You need to authorize them with Oauth2.
anwser
the project in Google developer console identitfies your application to google you cant use google apis without it.
client secrets is used for hybrid authorization method with Oauth2. The only method that doesnt use a client secret is implisit login which is for client side languages like javascript. you cant avoid that.
Use that file in my project folder and do stuff you dont use that file in your project to do stuff. You use that file in your project to request access of users and identity your application to google.
Your users authorize your application to access their google drive account using Oauth2 you will only be allowed to use it within the (Scopes) of authorization that you have requested of your users. If they dont grant you write access you cant write to their account.
Applications like WhatsApp request permission to the user to access their Google Drive. You can't access the user's Drive without asking their permission.
The secrets.json file is intended to use only in your own application [1].
From the web, the only way to obtain user's permission to access their drive is implementing the Google Sign-in in JavaScript [2], this will prompt the consent screen requesting to the user permission to access their Drive (You could set only-read scopes). For mobiles, you can also implement the Google Sign-in [3].
[1] https://developers.google.com/api-client-library/dotnet/get_started#auth
[2] https://developers.google.com/identity/sign-in/web/sign-in
[3] https://developers.google.com/identity/choose-auth
I have a web base email client that uses a java app to connect to IMAP and POP3 servers to download email. There is an issue that if a user usually logs in form the US that the java app will not have access to collect emails until that user logs in from the same county the java app is running.
I was told to overcome this to use google oAuth in order for the account user to give permission to my app to collect emails. Is this correct? Once this has been accomplished I would also like to the the API to import contacts, but for now authorization/authentication is sufficient.
The problem I am facing is that after trying to make heads a or tails of the google oAuth api documentation im really confused and did not yet manage to make a working example. Documentation often has links to a depreciated API and there is no example with a dowload link to both the API needed and exaple source code, as a result I think im using incorrect libraries for my examples.
Its also not clear to me what/how to accomplish what is needed do I use client authentication via javascript to create a popup whereby the user grants access?
Or do I use installed app client with a token and secret, this is what I tried but the 'command line' example I tried requires Java EE and this is a native app so I dont see why and I dont want to import all Java EE libraries to my small email downloader app.
Where can I find more intuitive documentation and working examples on this?
If you stay away from OpenID 2 and OAuth 1, I think the docs are pretty orderly these days. The best place to start is https://developers.google.com/accounts/docs/OAuth2
I am developing Android Application for Chat between two users as private session.
Android application would be Android 2.0 and above . If any user wants to chat then he can enter any email to chat and session between two users will be private and can able to store in database.
Other user should not be able to watch the private sesion.
if any one answer about android application where it will be connected to web server (php) then good for me to understand .
So if any one known the develpoment flow please suggest here .
Please don't suggest about IRC Chat where all user combined in same open template.
You could use an XMPP server and use for instance asmack library for android.
Tutorials about the android application: http://davanum.wordpress.com/2007/12/31/android-just-use-smack-api-for-xmpp/
There are several different servers out there. For instance OpenFire. http://www.igniterealtime.org/projects/openfire/
If sounds like what you want is an XMPP server with client to client encryption.
Here are a list of XMPP server options: http://xmpp.org/xmpp-software/servers/
Here is a discussion on various XMPP libraries to use with Android: Android and XMPP: Currently available solutions
As for the encryption, it looks like you want to mimic what OTR does (for pidgin). The description of how the protocol works is posted here: http://www.cypherpunks.ca/otr/Protocol-v2-3.1.0.html
You can also grab their source code from here: http://www.cypherpunks.ca/otr/index.php#downloads (warning: code is written in C)
This is link for Chat application for Android for private session and best suitable for users who want to use web with android . where any user can be signup or signin then get friends list with access of database to android and easily send messages to friends in a private session can chat unlimted . this feature more include like sending request and accepting/rejecting request .
You can do this in node.js very easily and if you need already implemented code then you can use this https://github.com/heroic/node-private-chat.
If you find it insufficient then you can easily extend it with very minimal efforts and don't use php for it. It isn't design for these type of work. Node is best suitable for it. Just run above code and connect to it with your android application.
Best
Deepak
I am writing an application for Android devices, Now I want to implement the functionality that if my application is installed on the device than it is restricted to open youtube or facebook.
Because this application is for employees and my client do not want that his emplyees waste their time in youtube or facebook. I tried to find some help on google but received no good source.
thanks
I'm not 100% sure, but you could try creating entries in the /etc/hosts file of the device to redirect the user to another destination. You/your app will need root privileges to edit the file.
Beside the webbrowser(s), don't forget to check if it's possible to use the facebook and youtube apps from the market.
I need to get the contact list from the LDAP Server running on Linux.Is it there any android code or intent to access the ldap contents directly or we should only use the web services to access the ldap?I tried searching on the internet but no proper solution was found in any website.
DanielWeisser already did that. The project is on GIT, you can modify source if you let the credentials.
https://github.com/weisserd/LDAP-Sync
He used the UnboundID LDAP Librairy to make this.
Good luck.
You should try the LDAP client application https://market.android.com/details?id=com.unboundid.android.ldap.client&feature=search_result. It provides the ability to do searches in an LDAP directory and access the results directly (e.g., dial phone numbers, send e-mail, map/navigate to addresses, etc.) as well as add them to your contacts.