On a call android searches your contact list and shows the contact name if available, and if the number is an anonymous caller it just shows the number.
Now I want the call system to check a specific source (an XML file or a database file) after ending up searching in contact list and if the number is found in the source then show the name from the source.
Is it totally possible to add such thing to a built-in android function? If yes, could you please give me a clue to start from?
If you make a custom dialer app, sure. A special way to add it to any existing dialer app, not really.
Hm, I guess you could do similar like 2gis dialer App. They just open custom dialog over the default dialer. See left screen for example
Here another screens:
First, Second, Third
Related
So I am using the Home sample to build an application that creates a second home screen for the user. The idea is to be able to have only one user account yet restrict certain access to chosen applications. I have managed to ensure that all of the applications are invisible in the XML yet I am struggling with how to change this to make certain apps visible.
Is it possible to write a whitelist of accepted apps for instance the preinstalled apps or child friendly apps for children who game using the android device and then put in a Java method to access this white list? This is the only way I can think to make it work.
If anyone knows the correct way can you please help.
Thanks.
Ok so I discovered how to do this.
In the home sample they provide a for loop in the Home.java file that covers all apps and displays them. It take a simple if statement to restrict the apps that can be viewed -
// for loop is here
if (info.activityInfo.applicationInfo.packageName.contains("com.android"))
//then the rest of the home sample is here.
Still very basic but provides me with a good enough UI so that kids cannot see apps I don't want them to.
I need to give a search box in my android app. As the user starts typing in the search text, I need to show him relevant suggestions. (As we see in the google-search widget on the home screen. If we see from the logs, com.android.quicksearchbox/.SearchActivity is started with android.search.action.GLOBAL_SEARCH intent and it searches in following: corpora:[web, apps, com.android.contacts/.activities.PeopleActivity]).
Only thing is I need the suggestions to be displayed from the web & my application DB.
Any idea how to implement this ? Do I need to implement my own SuggestionsProvider or can I directly use the native implementation? If so, how?
I think i figure it out myself.
Went through Searchable Dictionary code & QuickSearchBox code in android source.
Need two start 2 activities in a background thread. One will search for the search-term in my DB & other will search the same in Google. All the results will be seen in the suggestion list.
Google Suggest API provides suggestions as the user enters the text.
I wrote a Contacts app (with better searching) for android. Now I want to make my app open (given option to choose native contacts or mine) when users click "Contacts" in home screen or in app drawer. I know that I need to add some intent-filter to achieve this. Please tell me which code should I add in XML.
In my android application I want to create a custom type of IM that should be editable via standard contacts editing application. There are several built-it IMs that user can select from: Aim, Windows Live, Yahoo, etc. I want to add "My Very Best IM" to the list, so that user can pick it quickly without the need to enter the "custom" text and value by hand. Any ideas on how to do this?
You cannot add this functionality to the inbuilt contacts app.
In other words, you cannot tell that this app should show up in that list.
I would like to access the word lists used on android phones for spell checking (not including the user-defined-dictionary).
I am writing an app which i would like to be able to check if a word exists in the current phone users language. I imagine their is some API call or service i can use to access the build in word lists?
Any help would be great, thanks!
From what i know, each IME has its own dictionary and they probably implement their own method of reading from it. I have multiple keyboards installed on my phone, and if I add a word to the standard android keyboard, it still shows up as a miss-spelling if I switch to another keyboard.