Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting user behavior on the Android Phone (App History, Browse History etc)

Is it possible to get the user behavior on the phone (for example Alpesh has an Android phone and he uses multiple apps, browser YouTube etc). Whatever he is doing on the phone I want to get all those things from behind (which apps he has installed, which app he opens and what he search on the phone, All these data I want to get programmatically so what all can be get in android).

For now I am aware that installed apps list can be get easily but I want to get usage history and what he do all on mobile.

like image 807
Alpesh Avatar asked Feb 25 '16 06:02

Alpesh


1 Answers

This is not a code solution, but an answer to your question, so you can get start some where.

In my opinion your question title are asking about two things.

(part 1) Getting User Behavior on the Android Phone (part 2)(App History, Browse History etc)

1- First part Getting User Behavior on the Android Phone:

There is a concept called context awareness. Short described; it is about gathering different information from the phone, like light sensor, motion sensor, sound, location or even user behavior etc. and depending on your app requirement and the gathered information:

  • You could send these information over cloud data store for statically usage
  • You could make your phone doing (behavior) different things depending on location, motion or what ever.
  • etc.

For context awareness it is an open area for pervasive computing research. And it is not just few lines of code to write, it is typically a complete solution depending on requirement. Example I have built a context awareness application to gather noise collected by phones from different locations for research purpose inspired from this framework, but I am pretty sure you can find other frameworks or even build your own, as I did in my case.

The mentioned framework has some examples.

2- The second part is about App History, Browse History etc.:

This is possible, but you still need to build a peace of software (App) to collect all these information (logs) from the phone. Hereafter you can make phone act on different conditions and/or again send it over a RESTful API over cloud service data store, there is no limit for it.

The problem is, there is no thing out of the box for your requirement. Even if you find frameworks you still need to research it and further work on it.

You can find different examples for your requirement, like to collect browser history, you can find SO question here:
Get browser history and search result in android

Or get list of installed application:
How to get a list of installed android applications and pick one to run

My point here is you need to solve small goals at a time and put your knowledge together at the end.

Both 1 and 2 can also be related to each other, depending on your achievement.

Conclusion

  1. Make a goal to your project.
  2. Define the main requirements and tasks of your project.
  3. Research your options (Technology, Cost, Target Audience, What data I can or I should not collect, what is possible to collect, what is the limits, Privacy issues etc.).
  4. Split your project in small assets and try to solve small problems/goals.
  5. Finally you would be able to put the puzzles together and build your final application
like image 161
Maytham Avatar answered Jan 03 '23 12:01

Maytham