Is It possible to add my application in account? - android

I am trying to add my application in account same as Gmail and whatsapp do.I did lots of search but no luck.
I want something like this:

Stackoverflow isn't a place where you just ask how is something done and expect to get an answer. You have to show what you've tried and what isn't working.
As for your question, applications only appear in the account list if the application is performing some sort of data synchronisation between the app and a server. Therefore you would need to create a sync adapter.
Below are two links that show how to do this
Android Dev Guide - Creating a Sync Adapter
Tutorial for creating your own sync adapter
Hope this helps

Related

Integrat Ecwid shopping cart with my android application

My client want to integrate his Ecwid acoount with android application...
i get products information from Ecwid using diffrent available apis,also able to place order but cant able on further procedure for payment...
some one please help me
Ecwid provides Custom Payments API that should be the proper solution in your case. The documentation is here: http://kb.ecwid.com/w/page/49187841/AuthorizeNet%20Emulation#Custompaymentgateways
Hope that helps.

notify user when website has changed using c2dm in android

i want to make app that make a notification when breaking news has arrived to news website
during my search i found two ways to do that
1- using c2dm server & php & database
2- using timer that scan the website automaticly every time period i decide it
can any one help me by give me an example code for each method or a Tutorial for each method
I'm working on GCM as well. The first comment already told you the right way to solve your problem, but I wanna add something more is that This excellent tutorial
Read it, try to understand it. I think it is quite clear. Hope this help :)
C2DM is deprecated. You could use GCM instead. Go through this tutorial how to get started with it.
You can refer this too.

Android Syncadapter not let user choose to sync or not sync

I have read every amount of detail on syncadapters that exists and I understand how it is meant to work, but I cannot find any information on if it is possible to NOT let the user unsync the data.
For example if I use the syncadapter to sync all of my data for my application with the server, obviously I would not want the user to be able to check "Don't sync data" from the accounts screen, so I want to know if there is a way to sync all of this data with the sync adapter either by not having the option to check the box to unsync, or by creating a hidden sync account that the user cannot modify.
If using the sync adapter is the wrong context for this case I would appreciate some examples of better ways to implement what I need or a heading in the right direction. I think using the syncadapter MAY be wrong and I may have to implement my own custom service, I just need a example or something to get me headed in the right direction.
Thank you for your help.
I found the solution, there is a tag you can specify in the xml layout
android:userVisible="false"
this allows the user to not have the option to uncheck syncing. Althought there is still a bug in 2.3.3 that says the service is not syncing, even though it IS syncing. Most likely because the user is not selecting a checkbox.

Integrating application with default in android

I am currently writing an application which performs a search operation requested by the server at a pre-defined server location. Now , i need to integrate this application into the default Search that is provided on the Android Device i.e.. it should appear as an option for the user to perform his search ... like there are options to search the web , android market etc.. So , i should have my app also besides this ...
I am in a fix as to how to do this. Any suggestions, help of any kind , links to tutorials , articles are highly appreciated.
Thank You
You are in need of Suggestion Provider, you can explore this and if i remember correctly, the user needs to explicitly add your app to the search list. (It doesn't happen automatically)
http://developer.android.com/reference/android/content/SearchRecentSuggestionsProvider.html

Android Auto-sync with custom data

Situation: I have an account for my application that I created following the example code at http://developer.android.com/resources/samples/SampleSyncAdapter/index.html. When clicking on the account from the Account & Sync Settings screen, I see a "Sync Contacts" checkbox. When this checkbox is active, my custom sync successfully runs in the background.
Problem: I'm not syncing contacts, I'm syncing the application's custom data. I would like the checkbox to say something like "Sync Historic Data"
Question: Does anyone know where I can find some documentation on how to do this, or what steps I need to take that I can search for documentation for? Any advice or keywords to help broaden/guide my search would be appreciated as well.
Just add a custom android:label attribute to the definition of your content provider in AndroidManifest.xml.
Here is a nice basic tutorial covering the basics on the SyncAdapter.

Categories

Resources