Android :: Listen For Entries To Log / Broadcast Intent For When Log Entry Is Appended?
Aug 22, 2010Is it possible to listen for entries to the log?
Ie is there a broadcast intent for when a log entry is appended?
Is it possible to listen for entries to the log?
Ie is there a broadcast intent for when a log entry is appended?
The calendar widget is frustrating me. I enter details about an upcoming meeting, hit save and the event appears. About 20 seconds later it disappears without me doing anything. I figured I would try to delete the app and reinstall it but when I go to settings/app/manage app and try to delete it, the "delete" function is grayed out. Any suggestions?
View 3 Replies View RelatedIs there a Broadcast Intent that gets sent out when the device is plugged in for power? I want to create a BroadcastReceiver to detect the device's plugged in state.
I've looked everywhere in the Developer's resources and reference, but I can't find anything that resembles what I'm trying to do.
Do any one know how to broadcast any intent if new email is received?
View 8 Replies View RelatedI'm trying to start an activity out of a widget so I can't use the startActivity() function. So I'm trying to create the correct intent but I don't find what I'm missing.
View 2 Replies View RelatedIn the examples, they create Intent as:
Intent intent = new Intent(this, AlarmReceiver.class);
But suppose my AlarmReceiver class is in another app, how do I create this intent?
I've tried with
new Intent("com.app.AlarmReceiver")
but nothing happens.. It was not called..
--Broadcast definition added using the manifest editor on Eclipse:
CODE:.................
Is it possible to broadcast an Intent from native code? If so, is there documentation and/or sample code pertaining to the relevant APIs?
View 1 Replies View RelatedI have an application that is at the same time a broadcast sender and receiver of standard action android.intent.action.SET_WALLPAPER. I want to do some stuff only in a case when another application broadcasted this intent.
Is there any way to determine who initiated a broadcast in onReceive method of a BroadcastReceiver?
I want to send a broadcast from a new thread is start.
This is what i tried:
CODE:............
But ofcourse i need context..this won't work. How can i handle this.
I'm building a service that sends a broadcast intent when some value changes. The service sends the broadcast like this:
Intent broadcastIntent = new Intent(); broadcastIntent.setAction("nl.vu.contextframework.NEWREADING"); broadcastIntent.setData(Uri.parse("context://"+cer.getKey())); broadcastIntent.putExtra("reading",cer); broadcastIntent.addCategory("nl.vu.contextframework.CONTEXT"); sendBroadcast(broadcastIntent);
In some Activity (in a different process), I'm tryint to receive this broadcast as follows:
IntentFilter intentFilter = new IntentFilter();
intentFilter.addDataScheme("context");
intentFilter.addCategory(CATEGORY_CONTEXT);
registerReceiver(new BroadcastReceiver() {
public void onReceive(Context context, Intent intent) {
Log.d(TAG,"Received intent "+intent); }
}, intentFilter);
I am new to android platform.please help me out how the Broadcast Receiver and Intent Filter behaves in android.please explain in simple line or with example.
View 1 Replies View RelatedI'm working on a project where I need to run the BroadcastReceiver for a third party library for a specific Intent. I also want to run some of my own code when the Intent is broadcast. If I supply my own BroadcastReceiver for the same Intent, it seems that only, one or the other runs, but not both, depending on which appears first in the AndroidManifest.xml file. Is it possible to register multiple BroadcastReceivers for the same Intent in the same application and have them all run? AndroidManifest.xml snippet
View 4 Replies View RelatedDoes Android broadcast an intent when the network state has changend, i.e. from GSM to Wifi? And if so what permission do I need and what is the intent action called?
View 3 Replies View RelatedIs there a way to capture a key event from the Menu button using an Intent or Broadcast Receiver? Basically I want my app's Service to be activated when the Menu key is pressed.
View 1 Replies View RelatedI added broadcast listener "BATTERY_CHANGED" to Android Manifest file so that when the status changed I should get informed. I am adding to Android Manifest file as I want it active through my application life time. But the problem is that I am not getting the broad cast event from the system when battery status changes.
My code is here :-
<receiver android:name=".MyBroadcastReceiver" android:enabled="true"
android:permission="android.permission.BROADCAST_STICKY">
<intent-filter>
<action android:name="android.intent.action.BATTERY_CHANGED" />
</intent-filter> </receiver>
<uses-permission android:name="android.permission.BATTERY_STATS"/>
<uses-permission android:name="android.permission.BROADCAST_STICKY"/>
I am new to android. I what to know the difference between Intent and Broadcast Receiver. I am more confused with Broadcast receiver then Intent. Simple codes will be helpful.
View 1 Replies View RelatedI can not encrypt when setting l2tp on my HTC cell phone, and can not connect to Internet after psk key appended, do you ever encounter such situation?
View 2 Replies View Relatedwhen i am composing a text message, sometimes the box of the entry goes larger and goes back smaller, is there a way to increase the text entry box size, say, double tap on it to bring up a whole screen text entry area?
View 2 Replies View RelatedI'm trying to figure out if a system event broadcast is broadcasted using ordered broadcast or normal.The event is EVENT_REMINDER and in the source for the calendarprovider i noticed it sets up a alarmmanager to sent the broadcast. I can't find how the alarmmanager sends it. My guess would be as a normal broadcast , But while i was trying some things i noticed i could delay the system's notification (tried up to 10 sec) by building a sleep in my broadcastreceiver. This would indicate that they are handled ordered , and the systems receiver is only called when mine has finished. But can i be sure of this behavour?? (in all 1.5> sdk versions) the docs state that in some cases normal broadcasts are also handled ordered..due to spare of resources.
View 1 Replies View Relatedtrying to create a broadcast receiver which responds to system events and change system settings. I don't need any interaction from the user so I don't need an activity and have been trying to do everything through the manifest file. I've put a log event into my onReceive method but it never logs anything so I'm presuming my method is never called. I've tried this with both the 1.5 and 1.6 SDKs. I was hoping somebody could have a look at my code please and let me know if there are any problems.
View 2 Replies View RelatedI am developing an application which is communicating with the server. Tha application can perform log-in and get different parameters from server.
The application consists of a RESTful client (custom class for making requests), Communication Service (the service which runs in the background) and the main activity.
For now I created multiple broadcast messages and multiple broadcast receivers in the main activity so when the application performs login operation a receiver (loginBroadcastReceiver) in the main activity receives a message and when another parameter is received from the server different message is broadcasted and another receiver handles the message.
This way however the application performance is poor but I am not sure whether it is due to multiple broadcast receivers.
Does anyone know what is the best way to exchange data between service and main activity - is it better to create a single broadcast receiver and retrieve all parameters from message or is it better to initialize multiple broadcast receivers for multiple parameters?
When I long press the search key, I get a list of apps to choose from. Is there a way to remove some of the entries from this list? I know I can assign one as a default, but I don't want to do that. I want to leave a couple of the options, but I don't need Handcent and Dialer One to show up there.
View 5 Replies View RelatedI have 2 friends with the same name (lets say John Doe)Android has a habit of merging them, and I can't figure out how to stop this, it seems to happen whenever I turn sync on.
View 7 Replies View RelatedI would like to create a table to store device settings. The table has three rows: id, parameter_name and parameter_value. The table was created by executing the following query statement: DATABASE_CREATE = "create table DATABASE_TABLE (KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT, KEY_NAME INTEGER not null, VALUE TEXT not null); and then the rows are stored by executing the following method:
private long insertRow(int rowParameter, String rowValue, SQLiteDatabase db){
long res = -1;
ContentValues settingsParameterValues = new ContentValues();
settingsParameterValues.put(KEY_NAME, rowParameter);
settingsParameterValues.put(VALUE, rowValue);...................
The problem with method insertRow() however is that it can't prevent duplicating the entries. Does anyone know how to prevent duplicate entries in this case?
Upgrade time. Moving from a Nokia 6220 to a Legend or Desire. How do I transfer my calendar entries? The calendar contains everything i.e. birthdays, holidays etc. Also my contacts ( 200+ ) entries? I have html files also.
View 3 Replies View RelatedTwo Android phones in the house, me and my son. In my Gmail calendar online, I can see my and his calendars and can add entries to either. Is there any way to view his calendar on my phone in the built-in calendar app? Is there a way to add entries to his calendar, or to invite him to appointments I create in my calendar?
View 3 Replies View RelatedThere are occasions where I create a new entry in my calendar on the phone and I end up with 2 entries for the same date and time. This is something I cannot seem to replicate intentionally. How can I set the refresh interval for syncing my phone with Google online? I know I can go through settings, google and press menu > sync now, but how can I decide how often the phone does this automatically?
View 2 Replies View RelatedWhat is up with multiple "categories" in the phone book. By categories I mean:
Google
Exchange
Phone
etc
I have double and triple contacts in my phone now. I've knocked out Google altogether as I never used it before my Droid (HTC Eris). I sync with my personal laptop and it is running Outlook. I also setup an exchange point for my work info and I get all of the *SAME* contacts with that. Is there anyway to delete the contacts off the phone without losing them in my exchange connection? Also, when I add a contact via the phone, I cannot figure out how to get it to sync into exchange.The current sync map I want to move to is:Exchange (work) --> Plaxo.com
Outlook (personal machine) --> Plaxo.com
Eris Droid --> Exchange only That is, if I can figure out how to sync manual entries on my phone to exchange!
Does android use a color look up table ? if yes I wanted to see the entries in color lookup table and access them.
View 3 Replies View RelatedI think I've seen somewhere that it's still not possible to read Google Calendar entries? I tried to search the forum, but didn't find any relevant threads. They mostly contain questions on java.util.Calendar.
Can I read entries? I understand that it might be fragile if it still isn't in the public API, but I don't mind updating my code when the API becomes public. (I don't need to modify or create new entries).