One year ago I developed a sync adapter for Android.
At that time it wasn't possible to show a custom activity or to customize the standard activity to edit a contact.
The result was that, although it was possible to configure the synch adapter in a such a way that the added contacts where editable, to edit a contact was not really feasible, unless the custom contacts were the same as the normal ones.
Is it still like that? Did google fix the problem?
See for a reference:
http://groups.google.com/group/android-developers/msg/86d4d895e88a5ebb
I found this: http://groups.google.com/group/android-developers/msg/85f9304dfcc4e284
but it does not say where to find the documentation
There is a workaround catching an intent to launch your own activity.
you need to modify a bit the following example but it works very well (on 2.3.x and 4.0.X) for me for insertion.
https://stackoverflow.com/a/11153652/1195001
Related
im sending links via sms
like so:
hello, please click on http://example.com/Axcsy
some of the users call back with a problem that they cannot connect,
after inspected i realized that the link has been cut after they pressed on it.
so when they press it they get to http://example.com,
when they copy paste the entire link it works ofc...
is this a known issue or some setting that they changed?
I don't know of any issue that can cause this.
All i can think of is that they didnt click on it and just copy pasted it.
Note: it happened with only a few users (maybe 5 out of thousands), it has nothing to do with model type or android/IOS version (as far as i know, i checked with users that have the same model...)
if anyone has any clue why this is happening please answer,
thanks to anyone who replys
The users are probably using a text messaging app that causes this problem. Many users do not realize that Android can have different text messaging apps - and therefore don't realize they can change them.
Some of your users may have deliberately changed it and can tell you what app they are using, and they could then tell you so you can contact the developer. Even a provider's default app may have been created wrong or has a bug.
I have searched over google and SO for answers before asking.
Things that you should know before answering:
I'm very new to working with android apps and making them.
I'm making an app that has multiple tabs.
All tabs are in the same class (should I make a separate one for each?).
There's a tab for contacts and another for events.
Questions:
1- How do I import contacts from the phone to my app?
I have looked and found topics about this:
- Working With Android Contacts
- SO Question
- TUT:Call contacts
But the problem is that I am unsure as to where (which files i.e package/class) to place the given code.
2- Do I need a database for that?
3- Will I need to put my tabs in different classes first?
4- Is there a way to put the imported contacts in groups from the app itself?
5- Will the same answers apply for the events tab?
Finally, if you're willing to help me more you could give me some contact information where I can reach you.
1.If you want to just view your contacts in your app then there is no need for database. You can just view them as a ListView using cursor.
See here -:http://www.edumobile.org/android/android-programming-tutorials/read-contacts-from-device/
2.You can store them in database as well.But only if you need to use them again in your app somewhere.
3.For working with tabs take a look at ->http://developer.android.com/guide/topics/ui/declaring-layout.html#CommonLayouts
Make different class for each tab as shown in tutorial.
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've implemented a ContentProvider to add custom suggestions to my applications Quick Search Box. It works great within my app. However I also included it into the global search and it works different there. Whenever I start a search in the global search and I select one of my suggestions, this suggestion is saved and presented the next time I open the global search. What I don't like is that my current suggestions are below the ones I clicked before.
Is there a way to disable this behavior?
I am currently thinking of integrating recent suggestions in my ContentProvider to provide both - recent and custom suggestions. Though I am afraid this will result in having the same suggestions twice - first from the global search and then from my ContentProvider...
Any advice?
I think you could try to create a custom SearchRecentSuggestionsProvider as described here.
From in there, simply return an empty cursor or null.
To answer my own question, it is possible by providing the SUGGEST_NEVER_MAKE_SHORTCUT value in the SUGGEST_COLUMN_SHORTCUT_ID column.
As usual this is described in the Android developer documentation here.
I am new to android and have been teaching myself how to create apps through the android developers website. My app itself is like a recipe book. It lets me add my favourite recipes to a database so therefore where ever I am I am able to see what ingredients and the method for creating my favourite dishes. The list is getting rather long now so I was wondering if there was a way to search through a list like you do for contacts in your phone book. This would make things a lot easier for me.
Thanks in advance
You can actually integrate the Android search box (the one that pops up when you hit the "search" hardware key) into your application, so it searches your data. There's a page on Using the Android Search Dialog in the Android Developer Guide.
Also for user convenience and habbits to use search button you can override onSearchRequested method and do anything you want, show additional layout etc...