I have a problem, and I am aware is not fully supported by Android.
I am looking for a way to open specific Gmail labels directly from another Android application.
So, in the Android app I want to be able to get the email count for a Gmail label.
However, based on research, I have observed that accessing custom (user-defined) labels is not so straight forward. Any help will be much appreciated.
Summary Question: How can I directly access (open) user-defined Gmail labels from an Android application and determine the number of unread emails in that label.
Might there be something available that is similar to the Gmail Label notifier application?
Newer versions of Gmail support a ContentProvider which, I think, gives you what you want. You can read more on the Android Gmail developer site.
Note, again, that this will only work on newer versions of Gmail. You might consider using PackageManager to confirm the existence of the ContentProvider in question on any given device.
Related
Is it possible to have a control in a standard webpage that prompts a user on a mobile device to select a contact? I have a simple SPA that I would like users to be able to invite their friends to use. Rather than having them type in the names/numbers manually I'd like them to be able to select them from their contacts list directly. I don't need access to the whole list, just whichever ones the user selects, so it doesn't seem like there should be a security issues.
Edit: In that other question someone suggested using an API called BridgeIt, but that API has been discontinued. Someone suggested that the functionality of that API was available in HTML5 now, but didn’t explain further. Does anyone know if this is possible with HTML5 or if there is an alternative to BridgeIt available?
I am trying to interact with a website from an android application. More specifically I am trying to login to my online depot and retrieve different data like balances, profit/loss on current day and so on because I don't want to log on to the webpage manually every time I want to see how my stocks are doing. Unfortunately my bank does not have an android app for those purposes.
What I want is an app that automatically retrieves the information from the website and shows it as an notification. So I need to open the website, login with username, password and cookie and then find specific elements (e.g. by css selector).
So far I only achieved something similar with selenium webdriver on windows. Since selenium does not run on android I have to find another solution.
What I have look into so far:
HTMLUnit (not running on android)
HttpURLConnection + JSoup (not sure if this allows me to simulate clicks on specific buttons...)
Robotium (can it only be used for testing apps or also for my purposes?)
Are there alternatives? Can this be achieved with one of the listed tools?
Any ideas are appreciated. Cheers!
I wanted to know if an app can interact with and change behavior of other apps ? Like, if someone has my app installed and opens whatsapp, I would pre-fill the input with a default text, for example.
It doesn't matter if the phone needs to be rooted. I didn't find any way to do this so just wanted your input !
Thanks !
The other app needs to be using a ContentProvider (I don't know if WhatsApp has one). See the reference doc. Other apps can interact with the ContentProvider app by using ContentResolver. This only works for apps that open up their content in this way. Otherwise, your app can't access the other app without employing other more hacky means (like taking over keyboard/input method, etc.).
I have tried via <a href="market://search?q=pname:com.google.zxing.client.android"</a>
but it is not working.
I have also checked in Google Android T-mobile G1 but it does not show me link.
How can i embed link of android market application link in sms?
Use the alternative Market URI format:
http://market.android.com/search?q=pname:com.google.zxing.client.android
That will be picked up by the SMS application and become clickable, assuming you don't apply any HTML formatting, as danilo mentioned.
You can't use HTML in a SMS. A simple market://-Link would be handled by Android, but apparently the default SMS application doesn't support linking it.
For your own phone, you could try installing an alternative sms app, but for other phones it will be difficult to get this working without additional software.
Best option would probably be to file an issue in the Android bug tracker and to ask the developers to fix this issue: http://code.google.com/p/android/issues/list
I would like to do two things within my Android app :
Check if the Google Finance app is installed on the device. Should be pretty straighforward, isn't it ?
If yes, launch an intent to Open up Google Finance, displaying a graph on a particular Stock. So I also need to pass the stock ticker to Google Finance in some way... but is this even possible ?
Any other alternative I could use to display Stock Charts (let's say a 5 days intraday chart) on any stock ?
Thanks for your help.
I am not aware of there being any publicly-documented packages or Intents to achieve your aim, let alone an Intent that would meet your specific open-a-graph-on-a-stock request.
Since I am assuming you are looking for something that is free, I would look into launching the Browser (or perhaps using the WebView widget) on some existing Web-based finance site.
Unfortunately, very few intents with parameters are published and documented.
OpenIntents tries to collect some of them http://www.openintents.org/
Another way of finding available intents is to look at the AndroidManifest.xml of the deployed application (usually only compressed, not encrypted). Of course, this method discovers intents that may not be public and will change over time.
Recently came across ManifestExplorer https://www.isecpartners.com/manifest_explorer.html which I have built into an .apk at http://dl.dropbox.com/u/4379928/android/ManifestExplorer.apk
It allows you to see the AndroidManifest.xml of all installed applications.
The manfiest of com.google.android.apps.finance doesn't include any relevant intents.
However, it is interesting that it contains a data scheme for http://finance.google.com so that if you use the browser to navigate to this page it asks if you want to open it in the finance app instead.
Best way would probably be to follow the advice from CommonsWare