Android :: Start Another Activity With Broadcast Intent

Nov 29, 2009

I'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.

Android :: Start another activity with broadcast intent


Android :: Possible To Start Activity When Received Broadcast?

Dec 8, 2009

I found that the "onReceive" of broadcast intent can't start an activity explicitly. Is there any way to start an activity when I receive a broadcast? eg: I need an interaction UI with user when specific package has been installed in the system.

View 3 Replies View Related

Android : How Can I Start CallLog Activity Via Intent?

Sep 25, 2009

I have the following code in my application...

View 9 Replies View Related

Android :: Exception When Use Android Tabs With Intent To Start Activity

Nov 15, 2010

I have an error when i use intent to start activity when i choose a tab

CODE:...

The erroe is Sorry! The Application has stopped unexpectedly, please try again later

View 2 Replies View Related

Android :: Broadcast Intent For USB Power?

Feb 20, 2010

Is 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.

View 4 Replies View Related

Android :: Way To Broadcast Any Intent As New Email Received?

Jul 28, 2010

Do any one know how to broadcast any intent if new email is received?

View 8 Replies View Related

Android :: Create A New Intent For Another App's Broadcast Receiver?

Jul 23, 2010

In 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:.................

View 1 Replies View Related

Android :: How To Broadcast Intent From Native Code

Nov 2, 2010

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 Related

Android :: Way To Determine Sender Of Broadcast Intent

Sep 20, 2010

I 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?

View 1 Replies View Related

Android :: Sending Broadcast Intent From Runnable

Jul 10, 2010

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.

View 1 Replies View Related

Android :: Sending / Receiving Custom Broadcast Intent

Jul 25, 2009

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);

View 6 Replies View Related

Android :: How Broadcast Receiver And Intent Filter Behaves?

Jul 6, 2010

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 Related

Android :: Run Multiple Broadcast Receivers For Same Intent In Same Application?

Oct 25, 2010

I'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 Related

Android :: Broadcast Intent When Network State Has Changend

Apr 20, 2010

Does 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 Related

Android :: How To Capture Key Events From Intent's / Broadcast Receivers?

Oct 29, 2010

Is 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 Related

Android :: Start TTS From Broadcast Receiver

Jul 9, 2009

I am trying to start TTS from a broadcast receiver and it as document an intent receiver can't bind the service. Is there a work around, I can't figure out how to start the service using startService(Intent, Bundle).

View 4 Replies View Related

Android :: Listen For Entries To Log / Broadcast Intent For When Log Entry Is Appended?

Aug 22, 2010

Is it possible to listen for entries to the log?
Ie is there a broadcast intent for when a log entry is appended?

View 1 Replies View Related

Android :: How To Start SmsSenderactivty In Broadcast Receiver?

Aug 18, 2010

I am recieving SMS ,through Broadcast reciever and poping a toast about sms, thean in other class i had smsSenderActivity ? i have to call that Activity when i click Ok on toast that poped , when sms comes ? How do i call smssender Activity ?

View 1 Replies View Related

Android :: Start And Stop BOOT_COMPLETED In Broadcast Receiver

Jun 22, 2009

Could we, and how start and stop a broadcast receiver receving the android. intent. action. BOOT_COMPLETED?As I want have control on a service awaken by the BOOT_COMPLETED.

View 2 Replies View Related

Android :: Google Maps Broadcast Event For Audible Navigation Instructions / Start And Stop?

Dec 14, 2009

I have an application which is playing audio.I have some customers that use this application while driving and who also use the Google Maps application to get directions to the places where they are driving.They have asked me to change my application to pause my audio while the Google Maps application is giving them audio navigation instructions. I am trying to find out if I can register a Broadcast Receiver to let me know when the Google Maps application is giving audio navigation instructions, or if there is a way to detect when any other application has started or stopped playing audio.It seems that this type of functionality would be beneficial for Google Maps and for any type of application which is playing media, so I am hoping that Google Maps is broadcasting events when it starts and stops giving audio navigation instructions, or that there is a generic way to discover when overlapping audio sources are trying to play.

View 6 Replies View Related

Android :: Exclude Own Activity From Activity.startActivity - Intent

Oct 17, 2010

My app works with pictures. It can take multiple pictures as an input, process them, and send them again to another app.

As a consequence, my main Activity has declared an intent filter on ACTION_SEND_MULTIPLE for image/* mimetypes and can result in issuing a new Intent with the same action and data type using Activity.startActivity(Intent).

Is there a way to exclude my own activity from the list of apps that is displayed to the user after the startActivity() call ?

View 1 Replies View Related

Android :: Broadcast Receiver Without Activity

Feb 12, 2010

A WAP PUSH (Broadcast)receiver basically doesn't need any UI. It is a silence application which handles the Push messages based on actions/ mimetype without needing any intreaction with user, I've tried to test it in a SMS receiver by removing the Activity from the project and it stopped receiving the SMS messages. My question: Does all android applications "MUST" define a activity? Is there a way to hide it?

View 5 Replies View Related

Android :: Broadcast Event / Android Intent Action

Mar 25, 2010

I 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"/>

View 10 Replies View Related

Android :: Android - Difference Between Intent And Broadcast Receiver

Aug 30, 2010

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 Related

Android :: How To Start An Intent To Launch The IM App

Jun 8, 2009

Can you please tell me how can I start an intent to launcher the IM application on android?

View 4 Replies View Related

Android :: An Intent / Notification Of An App Start?

Feb 24, 2009

I would like to know, if i can register for an intent or a notification that i could get every time android starts an application.

View 2 Replies View Related

Android :: Start An Activity And Return Back To Original Activity

Jan 26, 2009

I have an application with contains multiple activities. The main activity will start the others ( use startActivity() ) depends on user event, when an activity close, it calls finish() and return back to main activity. It appears to behavior like that.

However, the "problem" I see is main activity's onCreate function is called every time. I think the the main activity should be placed in the activity stack and simply push to front when others exit, therefore only onResume, onStart are called. Is there some flag I need to set or I misunderstand the activity behaviro?

In child activity, besides calling finish() or startActivity for main activity, what is other way to move main activity to front?

View 2 Replies View Related

Android :: Start Activity When Main Activity Is Running In Background

Jan 10, 2010

I created an application which enables the user to set whether he wants to receive notification while the application runs in background mode. If the notifications are enabled an activity should be started (the dialog should appear on the screen).

I tried to enabled it the following way:

CODE:...........

This is the method from main activity. When onPause() is executed isRunningInBackground is set true.
When I tried to debug it when the main application was running in the background the line

startActivity(intent) had no effect (the activity didn't appear).

Does anyone know how to midify the logic in order to start an activity from the main activity when the main activity is running in the background (after onPause() is called)?

View 1 Replies View Related

Android :: Starting An Activity From Broadcast Receiver

May 28, 2010

I am trying to launch the Main Activity from a broadcast receiver. Can anyone guide me as to how I can do it? I always get "Process is Bad" message.

View 1 Replies View Related

Android :: How To Call Broadcast Receiver From Activity?

Jul 9, 2010

I have a broadcast class that blocks the incoming call. I want to call that broadcast receiver from the activity ? Can any one help me fix this. I appreciate your help. 1. Class A extends activity will call Class B that extends BroadcastReceiver, now I want to block calls , only based on certain requirements, which are checked in Class A, if true then call the Class B (or block the call in short)

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved