I was wondering if there was a way to modify the call log? I would like to edit date on the call.
If for example I received a call today I would like to edit the log and change the date to yesterday.
Anyone have any ideas?
That seems like a really weird thing to do, but...
The provider for call log data (CallLog.Calls) only publicly documents methods to query the data, not modify it. You could go into the Android source to see if there is an undocumented method.
Related
I have a lot of output in my logcat (Android Monitor) which in which I would like to find a specific part. This part starts with a keyword, which is followed by several logs with information I want to check.
I know there is the possibilty to filter the logcat by the Log level and searching for expressions. When I type the keyword in the UI only the logs are filtered by the keyword.
I am interessted in the lines/logs which are followed by the keyword. Is there a search option, where no information is filtered and the results are shown in the complete log?
Commands proposed in this answer like Ctrl+s do not work.
a while ago I had the same problem and created a Logger helper class which help me by tagging the android logs automatically with the line_number, ClassName and Method name via reflection, this had helped me a lot, for example when I just want to filter the output of a method I write the name of the method in the logcat filter and it just gives me all logs inside that method, same with line numbers and Classes, try it out I have made a gist with it.
To use it is easy just do Logger.getLogger and assign to some easy name like log then log like normally just log.d("string") without the tag and it automatically takes the line method and class, It has good documentation on it so you might be able to tweak it if you want, hope it helps.
I am doing an android app which has to display the current server/network operator time since the device time can be changed by the user. I don't want to change/set the device time. I tried few source codes but they didn't work well. I'm able to get device date and time but I need date and time from server or network provider itself. please help me
It seems that you need to interface with the Network Time Protocol (NTP).
There are similar questions here on SO use of ntp service, get datetime from network provider (as noted by Gheo) suggesting to:
use android.net.SntpClient.java source code and javadocs
read through this Google Groups thread
As noted in the comments of these posts, as of Honeycomb you cannot do any network operations in the main activity thread (suggestion: use a service instead).
Update:
A further search led me to find Dominik Schürmann's ntp-sync repository on GitHub. He provides different examples of how you can use his library which you can compile and run on your emulator/device.
I had found a solution but forgot to post it. In case somebody finds it helpful, here is what worked for me.
Get the server time using an API or network call wherein the response will have the timestamp from the server. Use the data as per your convenience.
You can modify the existing API itself, if any.
I am working on an android project. I would like to ask how to modify the last call log (phone number). I am using an incoming broadcast receiver so I know when incoming calls arrive. Need some advice. Appreciate
Your question seems like a duplicate of Delete call from call log after call end.
There is a content provider you can use to search for certain calls and delete them. Look at the question that I linked.
How do i see a log of all the queries that have been executed in my app? im using classic eclipse. in the logcat i cant see any queries that have occurred while my app has been running.
Where do i see this? ive looked at the log and i do not see any queries or anything in there...
Any help would be greatly appreciated.
Queries are not logged automatically. You will need to manually log them with calls to Log.d() etc.
I'm not sure if there is a way to see queries performed by your application automatically, but it would probably be a good idea to use the Log class and write debug log entries when you perform a query, so that they get registered there, with a tag defined by you which you can use to easily filter these messages in the log cat console.
Hey, I want to access the Android call list, so I can see the contact name, the hour of the calling, the duration, the hour of the calling and the date. Where is it, and how can I access it?
Thanks.
I believe you're looking for the CallLog class, which is part of android.provider.
See more info at http://developer.android.com/reference/android/provider/CallLog.html
You should be able to call it using the constructor listed there. Hope that helps!
EDIT: This may actually be more helpful to you: http://developer.android.com/reference/android/provider/CallLog.Calls.html