HI,
I am trying to trace application level user input via an activity. Let me keep it straight.
1. My Activity should read the file(hopefull android writes somewhere in kernel), which has the log activity on every user input action per application.
2. Then , read the file and trace which application had invoked network activity and at what time.
3. Using these values, draw a graph.
I assume that /dev/input/event* records input events. If this is correct, I tried reading the file, but FileNotFoundException is returned.
Is there any other way I can do this ? Please guide.
Related
I am new to Android development, hence kindly forgive any unintentional mistakes, if made.
I have a native activity rendering using ES2.0. The app needs to start twitter authentication (it uses twitter4j).
I am starting a new activity with twitter auth url. It shows the login page. I give userId, password, the native browser says now it would be redirected to the previous page or something. Then I see a black screen which apparently is the default browser still on top of the application. If I go to home, and background processes, I see my app and the browser as separate activities which makes sense.
Now my question is , how do I code my app to return back to the application once the authentication ends?
Here is the code flow to start the new activity
1. Native code calls JNI function to start authorization
2. The Java function creates an AsyncTask, in doInBackground() it gets the request token using getOAuthRequestToken(URL) where URL = custom url "app1://callback".
3. in onPostExecute() , app starts new intent activity using this code
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(requestToken.getAuthenticationURL()));
BaseGameActivity.startActivity(intent);
Log.debug("authenticate task post ends");
Not really sure where to ask this so if this is the wrong place, please let me know where to go!
Is there a tool somewhere in which you can run an app in an emulator and view the actual code being processed in each interaction? For example, if the user pressing a button causes the code "refresh voicemail list" to fire, then when the button is pressed in the emulator, "refresh voicemail list" will print in a log, ideally also on the screen to watch it real-time.
My purpose in this is to figure out what an app does at certain points (hopefully the intents being sent) so I can attempt to duplicate it through a shell command. More specifically, although this tool would be useful in multiple situations, I'm looking for the intent sent when Google Voice refreshes a voicemail to get the transcript. I'm hoping to force that refresh in the background so the sqlite database updates without needing to manually open the app and refresh it. I use the sqlite database in a Tasker profile to get the transcript as a variable and unless the Google Voice app refreshes after a missed call, the transcript isn't in the database.
Any tips to point me in the right direction in this endeavor?
Hello everyone! This is first post.
My question is: I have to add an android activity that accepts input as large as 200 words or more. After the data is input I need to direct that input to a server. (There is an app called Personality Insights which accepts input and displays personality traits as results.)
After analysing the input, the server has to output some result as personality traits which further I have to show to the user.
The issue is I only want user to input but I don't want user to see the processing. How should I go about it? Also how should I retrieve the results?
Hello
I have been searching for an app, which allows me to send HTTP requests automatically at a specified time once a day. The android device is always on and used to communicate with a robot through REST API. The operator presses HTTP requests shortcuts on the tablet.
Does anybody know of a way to achieve this simply?
Thanks in advance.
I am currently working on my own android app and I do some calculations and method calls there and finally get latitude and longitude of one point where I want to navigate to and have the latitude and longitude from my current location. Now I have some options from here on:
1. I embed existing navigation on Android in my application.
2. I start an extern navigation application via intent.
Both ways are used to help the user to navigate to the location.
When I finally reached the destination then my own app should handle this and send a message to a server. This is easier when my own app is in the foreground on the phone.
Some ideas what way I should use and if one explains me with what. I read something about Grasshopper etc. but I am not confident what to use.
Hopefully someone here can help me or just write down their opinion.