Integrating application with default in android - 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

Related

Which way is better efficient to log user's activites(history) in android?

I develop the app which is provide some information to general user. it is not only showing info but also curating and recommending further detail info depending on users history;what the users clicked, searched and acted on the app. (like a google targeting AD).
For this, I have to accumulate user's activites on apps. (which button was clicked, when did they turn on the app and so on...)
For this, I have two ideas.
1. let the app to leave their log text file in local device then append lines in it whenever user act, and upload it when they turn off the app on server DB.[like a batch]
-OR-
2. let the app, update db everytime when user acts something on app by http-post.[like a realtime]
Which way is common tactics(or popular ways) on real field? or can you suggest another way?
thanks for reading.

Control default contact list and messages app

Is there a way I can control what contact list and messages show? I want to make an app that if enabled will hide certain contacts or messages from certain people. I am not sure of this is doable
Please let me know if this can be done programmatically. Please note that I am referring to the default contact/messages APP that comes with android and I want to be able to control what it shows from my app
Thank you
Please note that I am referring to the default contact/messages APP that comes with android and I want to be able to control what it shows from my app
Fortunately, this is not possible, except by modifying the actual data, as noted in a comment on your question. You cannot hack into other apps like some script kiddie.
Note that, due to synchronization, deleting contacts may wind up deleting them from an upstream data source. The user may not appreciate this.
You are welcome to build your own contact app that maintains its own filtered list of contacts.

iOS/android hybrid app distribution/architecture model help or advice please

I am pretty new to the mobile end of development so forgive my naivety.
I would like to know if it's possible to have a structure/distribution model like the following:
Master App (has many "middle-man" instances)
!
!
Middle-man ( can customize data, look & feel, via web app and redistribute)
(has many end user viewers)
!
!
!
End User viewers( can download and install middle-man abc's app with middle-man's custom info)
Is this possible? I have searched around for quite a bit but perhaps I am searching the wrong terms?
I was thinking perhaps a couple options, let me know if it's sounds wrong.
Option 1 - Middle-man provides a special key code and end user types it in after installing the app to unlock it thereby storing the unique middle-man ID and displaying only their custom info. User only needs to enter code once. relation is stored in mysql perhaps??
Option 2 - create a build of the master template for each middle-man and provide the binary/install link along with a customized ini file to load correct ID? Or something to that effect.
Any better options out there? Something that allows for upgrades/new features to be passed down to all the instances easily.
Will this type of thing have any problems with the apple store if multiple middle men decide they want it on the app store?
Maybe I'm making it more complex than needed and could just use a simple "require login" for each end-user and the end user is tied to that middle man some how?
\The app could also be android app depending on middle-man requirements
Thanks in advance for any advice or links to helpful info.
If i had understood your question right, its a straight forward mobile app tied up with the backend.
User credentials for the middleman which shall associate with your
special key code.
Associate your actors(users) with roles and permission over accessing
content in the backend.
Your mobile app will pull the content only associated for the logged
in user.
Apart from this, you can store the content for offline etc.. Take phonegap approach and it pretty much does what you wanted to do.

Can I restric user access to the default browser in Android?

I am planning to develop an app that will help the users to protect their Android phones from unauthorized usage. So the user can set to restrict others from using the browser, make calls to a set of numbers, send sms/mms etc...is it possible to all these...i have seen blogs saying that it is possible and not possible. I am confused..
Please guide me..
http://blog.wangling.me/2009/08/why-it-is-impossible-to-intercept-incoming-calls-on-android/
Happy Coding
"Can I restric user access to the default browser in Android?" Well,if you really want to restrict user to use the default browser then answer is yes.You can do that.To do that your application will have to run a service that will check running processes periodically.Then from the process name you can find out the package name.For default browser it is com.browser or may be android.com.browser.And you can kill any process by using killBackgroundProcess(pkgName).Check whether browser is in foreground.If it is then send it to the background and apply the method.This you can do in extreme case if you want.But it is really not a good idea and not recommended at all.

May I remove a phone/email call/sent/recieve histories from android app

I'm a android app developer.
I wanna remove a specific phone/email history.
Android 2.2
My friend has a secret girlfriend.
he wanna remove phone/mail history from her automatically.
I'd like to develop history remover for him.
If you really want to be a good friend, don't write your friend a history remover Android app. Give him a kick in the butt and tell him to make up his mind.
You need to work with the CallLog.Calls class wich contains the recent calls.
More info in http://developer.android.com/reference/android/provider/CallLog.Calls.html

Categories

Resources