Android :: SMS Broadcasts And Logs
May 16, 2009
I want to know whenever someone is called, calls, smsed or smses. I figured for the calls I'd use the phone state change to trigger when I should check the CallLog provider again. I couldn't see any direct way of getting broadcasts from the CallLog. Did I miss it?
For SMSes I'm having more trouble. I'd like to know whenever and SMS is sent or received. Being able to receive STATUS_ON_SIM_READ and STATUS_ON_SIM_SENT would be great, but from what I've read in the Sms Manager that would depend on the sending application. I can't seem to find any evidence of a default one that android places when it sends. I also couldn't find an sms log provider or anything similar.
View 2 Replies
Jul 5, 2010
App A has this Broadcast Receiver in its manifest (within <application>): Code...
View 1 Replies
View Related
Jul 17, 2009
How can I catch SCREEN_ON/SCREEN_OFF broadcasts? I have tried for hours, but failed.
View 10 Replies
View Related
Jul 3, 2009
I am trying to get the intent "android.intent.action.BOOT_COMPLETED" sent only to the receiver "com.android.mms.transaction.MmsSystemEventReceiver" as this triggers the sms notification to be updated and removed if there is no longer any unread sms's. The issue I have is I need to make sure the broadcast is only sent to the class above. If it goes to other receivers the phone could end up in an unknown state or something strange. The code below does not seem to work.
Intent intent = new Intent(); intent.setAction("android.intent.action.BOOT_COMPLETED");
intent.setClassName("com.android.mms", ".transaction.MmsSystemEventReceiver");
activity.sendBroadcast(intent);
This code does work but since it goes to all receivers I have noticed some errors starting to show up in logs etc.
Intent intent = new Intent();
intent.setAction("android.intent.action.BOOT_COMPLETED");
activity.sendBroadcast(intent);
View 7 Replies
View Related
Aug 10, 2009
I have started developing a tool, which should react on an outgoing call or sms and also to be started at boot time. The start at boot time does work properly, but I'm not able to receive the broadcasts for the outgoing calls.
Who can tell me, what is wrong with my code? For this, I added two receivers in my manifest and implemented the broadcast receivers:
manifest.xml: <receiver android:enabled="true" android:name=".BootUpReceiver"
android:permission="android.permission.RECEIVE_BOOT_COMPLETED">
<intent-filter> <action android:name="android.intent.action.BOOT_COMPLETED" />
<category android:name="android.intent.category.DEFAULT" /> </intent-filter> </receiver>
<receiver android:name=".TelephoneViewer" android:enabled="true" android:exported="true"
android:permission=""> <intent-filter> <action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
<action android:name="android.provider.Telephony.SMS_RECEIVED" />
<action android:name="android.intent.action.PHONE_STATE" />
<action android:name="android.intent.action.NEW_OUTGOING_CALL" />
</intent-filter> </receiver>
TelephoneViewer.java: public class TelephoneViewer extends BroadcastReceiver {
@Override public void onReceive(Context context, Intent intent) {
Log.d(this.getClass().getSimpleName(), "Telephoneviewer.onReceive()");
Toast.makeText(context,"TelephoneViewer.onReceive()", Toast.LENGTH_SHORT).show(); }
View 4 Replies
View Related
Sep 15, 2010
I have two applications, one of which (B) implements a broadcast receiver. The application (A) which sends the broadcast, binds a permission to it which the receiver (B) shall possess. The problem is now: If I install the receiver (B) first and the sender (A) afterwards, the receiver will never receive the broadcast. I assume this happens because the installation of the receiver somewhere fails when it comes to the "uses permission" part of the manifest (because this permission is not yet registered/defined).
However, this issue should be resolved as soon as the sender (which defines the permission in the manifest) is installed, but unfortunately isn't. It does not even help to re-install the receiver. The only way to resolve the issue is to completely uninstall the receiver application and do a fresh install. Is this behaviour intended ("not a bug, a feature")?
View 3 Replies
View Related
Feb 11, 2009
Does the Alarm Clock broadcast any intents? I would like to be able to have my application automatically launch after a person's alarm clock goes off, and they press "dismiss" (rather than "sleep"). I assume that would require a receiver looking for a broadcast of some kind.
View 2 Replies
View Related
Oct 20, 2009
I am trying to register a Broadcast Receiver to receive broadcast events for the package events. Following is the code and my receiver in the manifest file. The log statment never happens, but I can clearly see the same broadcast firing for "HomeLoaders" (the Launcher) debug statements.
public class IntentListener extends BroadcastReceiver {
@Override public void onReceive(Context context, Intent intent) {
// TODO Auto-generated method stub
Log.i("INTENT LISTNER:", intent.getAction()); } }
<receiver android:name="IntentListener" android:enabled="true" android:exported="true">
<intent-filter> <data android:scheme="package"></data>
<action android:name="android.intent.action.PACKAGE_ADDED"></action>
<action android:name="android.intent.action.PACKAGE_ADDED"></action>
<action android:name="android.intent.action.PACKAGE_CHANGED"></action>
</intent-filter> </receiver>
View 1 Replies
View Related
Jul 19, 2010
I have the following broadcast receiver:
public class MyRingModeReceiver extends BroadcastReceiver {
@Override public void onReceive(Context context, Intent intent) {
Logger.iLog("In my Receiver"); } }
I then have a service that onCreate does the following:
IntentFilter filter = new IntentFilter();
filter.addAction("android.media.RINGER_MODE_CHANGED");
registerReceiver(new MyRingModeReceiver() , filter);
When I place a call to the emulator and use the volume keys to modify (silence) the ringer
nothing happens.
View 1 Replies
View Related
Apr 2, 2010
We are designing a system with a PC base station and 100 Android mobiles communicating over WiFi. They will use XLM-RPC as the method of mobile to base station communication. However, sometimes the base station needs to broadcast a message to all mobiles. Should we use "http server push" for this, i.e., have the base station leave the connections open to all the mobiles? Is there a better way? Publish-subscribe is possible, but doesn't seem mature on Android yet.
View 1 Replies
View Related
Apr 15, 2009
I have custom view and once some action occur in it (say touch/key event) I'd like to call some code in my activity. My question is if broadcasts (intent filters/broadcast receivers) are good communication mechanism for such thing? If not, what is normal/android preferred way to do it?
View 5 Replies
View Related
May 15, 2010
I have two BroadcastReceiver registered. When the app is closed they both fire at the appropriate times and do the appropriate things. If the app is closed then killed (say with an AppKiller), the receivers never receive their broadcasts, and nothing happens. Presumably the same thing happens if the parent app is killed due to low memory, so how do I ensure those broadcasts are fired/received. The API states that even if the app is killed it should fire, does anyone else have experience with this situation? If it helps my manifest is:
<!-- receivers for AlarmManager -->
<receiver android:exported="true" android:label="Shift roster updating calendar."
android:name="com.skooter.shiftroster.backend.service.UpdateCalendar" >
</receiver> <receiver android:exported="true" android:label="Shift roster checking alarm."
android:name="com.skooter.shiftroster.backend.service.SetWakeup" >
</receiver>
and nothing esoteric is going on in the AlarmManager/BroadcastReceivers
View 1 Replies
View Related
Sep 4, 2010
I have an app that is not in the market place (signed with a debug certificate), but would like to get crash log data, whenever my application crashes. Where can I find a log of why my app crashed?
View 3 Replies
View Related
Mar 2, 2009
I want to make an update to my app, but I seem to have lost or mis- entered the first time (more likely) the key password. Is there any way I can make my users do a safe update of my app or do I have to re- publish? What do I do in this situation? Any way I can access Windows CMD logs?
View 2 Replies
View Related
Oct 16, 2009
I want to redirect the Logs into an file. How should i proceed ....?
View 2 Replies
View Related
Aug 3, 2009
Is there a way to access the default logs on the phone for purposes of uploading for debugging purposes? I'd like to be able to provide an "Upload Logs" button that allows the users of my app to upload their logs if they are encountering issues with the app. I know I can write my logs to my own file and provide an upload for that, but I like the context provided by the system logs interspersed with my log entries to understand what else is going on on the device when my app has issues.
View 3 Replies
View Related
Feb 26, 2010
Would anyone please try to explain to me why
public void addView(View child) {
child.setDrawingCacheEnabled(true);
child.setWillNotCacheDrawing(false);
child.setWillNotDraw(false);
child.buildDrawingCache();
if(child.getDrawingCache() == null) { //TODO Make this work!
Log.w("View", "View child's drawing cache is null");
}
setImageBitmap(child.getDrawingCache()); //TODO MAKE THIS WORK!!!
}
ALWAYS logs that the drawing cache is null, and sets the bitmap to null? Do I have to actually draw the view before the cache is set?
View 1 Replies
View Related
Apr 29, 2010
Is there an app that anyone knows of that allows you to restore your call logs from a WindowsMobile format, or is there a format that I can transfer them into to be able to restore them on Android?I searched and searched and could not find anything on this.I have many cases where there are SMS threads going back several years, some containing invoicing information, and I would like to not lose them.Same with the call logs the history may be important.I've transferred them from several WinMo phones in the past, so have built up quite a history.Don't worry about size or having to put them into a format, I can worry about that, but how can I load them into the Android?Is there maybe a forum or thread that has the file formats for Android? An application that "merges" the data into Android?
View 1 Replies
View Related
Jul 2, 2010
Is it by anyway possible to write to call logs database?? I mean i want to add selected numbers to the call history. I tried searching the tutorial on net but couldn't find any. Though 1 thing is for sure, IT CAN BE DONE. coz i have seen lots of applications online, which restore call logs, so i guess we can modify the call history database somehow(but how exactly is not clear with me).i already read this post but it happens to be posted a long time back.
View 1 Replies
View Related
Jul 16, 2009
Usually happens after a force close. Instead of showing the usual 30 lines or so of logs + scrollable history, it only shows a single line or a couple of lines. The only fix that I can find is to restart DDMS.
View 4 Replies
View Related
Feb 3, 2010
Is there a programmatic way to read the system logs? i know they are stored in /dev/log.
View 4 Replies
View Related
Jul 19, 2010
To facilitate diagnostics while the app has been deployed, does Android provide any API to facilitate runtime logging? It would be ideal if the app could retrieve all the messages it wrote to the Logging System via the Log API functions.
View 6 Replies
View Related
May 15, 2009
I need to display all Logcats Log on console of my emulator, as do it the simple program "Hello World".
View 12 Replies
View Related
Aug 12, 2010
I'm testing an android application with a long running service. I'm using Eclipse and have the usb cord hooked up with the phone sitting next to me. Since it's a long ongoing service, I do some other work while it runs and check the logcat logs every once in a while to make sure everything is going as expected.
A few minutes ago I noticed the phone rebooting. I think it's done this before as it would explain some weird application behavior. I quickly switched over to Eclipse to see what happened and found that the logcat log was (it seems) cleared during the reboot. So there's no log of whether my app crashed (and took down the phone?!) or if there was some other problem that took down the phone and my app.
Is there anyway I can find out what happened? This is a development phone, so I don't know if it reboots/crashes often on its own, or only while my app is running. It's a Motorola Droid running Firmware version 2.1-update1.
View 3 Replies
View Related
Mar 29, 2010
I have a simple app that I am building to get the hang of android's development environment - and things like click events, etc..
The app loads, and I am able to change the text in a textfield using a button handler. However, when I import the location class, and try to do a simple GPS call, the application crashes.
The problem is, everything looks good in Eclipse (error console) - and I'm not seeing any exceptions in the android emulator (DevTools). I have the logcat window open, but I haven't done anything in eclipse/code to send logcat anything (do I need to?)
Is there a better way to troubleshoot?
CODE:........................
View 2 Replies
View Related
Feb 22, 2014
Ok, so I wonder how to troubleshoot Android phone crashes, freezes, reboots, etc.
Maybe there are ways to troubleshoot these kind of events by looking at loggings to pinpoint the problem (like does a particular app cause this, or a hardware event, etc).
I see my HTC notices it recovered from an abnormal reset for instance, and asks to send logging to HTC HQ, so there seems to be ways that could tell more what is causing trouble?
View 1 Replies
View Related
Jun 23, 2009
I want to let the users send me the logs from the device i wonder how do i extract the logs in to a file on the device ?
View 2 Replies
View Related
Jun 24, 2010
Is it possible to clean DDMS logs clean up though ant script pl.
View 4 Replies
View Related
Oct 30, 2010
While debugging, Log.d() or Log.e() methods come to LogCat, but how do I capture the runtime error or trace log on the Android device when it is not connected to the development environment ?
View 1 Replies
View Related
Aug 12, 2010
In Android is there a way to disable logs/stacktrace being printed when the application is code signed and is in release mode. Is there any direct way to do it?
In Iphone i heard the logs will not be printed in release mode by default.
View 1 Replies
View Related