¡@

Home 

2014/10/16 ¤W¤È 08:16:16

android Programming Glossary: intents

How do you pass a string from one activity to another? [duplicate]

http://stackoverflow.com/questions/15859445/how-do-you-pass-a-string-from-one-activity-to-another

activity share improve this question Pass values using intents. In your first activity Intent i new Intent com.example.secondActivity.. i.putExtra key mystring for explicit intents Intent i new Intent ActivityName.this SecondActivity.class parameter..

handle textview link click in my android app

http://stackoverflow.com/questions/1697084/handle-textview-link-click-in-my-android-app

I simply let my target activity listen to ACTION_VIEW intents and specifically those with the scheme com.package.name intent..

How to register some URL namespace (myapp://app.start/) for accessing your program by calling a URL in browser in Android OS?

http://stackoverflow.com/questions/2430045/how-to-register-some-url-namespace-myapp-app-start-for-accessing-your-progr

to describe an in your manifest for the kinds of intents you are going to handle with a particular component especially.. feature in the platform which allows you to direct link intents to only your app so that other applications can not intercept.. handle them. In summary read the regular documentation on intents and intent filters such as the NotePad tutorial though you won't..

How to implement my very own URI scheme on Android

http://stackoverflow.com/questions/2448213/how-to-implement-my-very-own-uri-scheme-on-android

host path intent filter activity As per how implicit intents work you need to define at least one action and one category.. the DEFAULT category as this is required for all implicit intents . Also notice how I added the category BROWSABLE this is not..

Open another application from your own (intent)

http://stackoverflow.com/questions/2780102/open-another-application-from-your-own-intent

MyTracks or any other application that I don't know what intents they listen to. I got this info from DDMS but I havn't been..

Android, Detect when other apps are launched

http://stackoverflow.com/questions/3290936/android-detect-when-other-apps-are-launched

to start or should I be reading the system log for new intents or doing something in native code Any pointers would help even..

Choose File Dialog [closed]

http://stackoverflow.com/questions/3592717/choose-file-dialog

other options seem to being using OI FileManger's open intents but that requires the user already having the file manager installed...

Android Launch an application from another application

http://stackoverflow.com/questions/3872063/android-launch-an-application-from-another-application

my Android application. I assume that it is possible using intents but I didn't find a way of doing it. Does anyone have a link..

Get referrer after installing app from Android Market

http://stackoverflow.com/questions/4093150/get-referrer-after-installing-app-from-android-market

Receiver that catches com.android.vending.INSTALL_REFERRER intents launched by Android after an app is installed from the Market...

Android - SMS Broadcast receiver

http://stackoverflow.com/questions/4117701/android-sms-broadcast-receiver

seems to be received by the emulator but looks like the no intents are firing. What am I doing wrong here After installing do I..

Using the Android Application class to persist data

http://stackoverflow.com/questions/4208886/using-the-android-application-class-to-persist-data

class does not have the same life cycle i.e. it is for all intents and purposes always instantiated . Does it make sense to store..

Android - What's the best way to share data between activities?

http://stackoverflow.com/questions/4878159/android-whats-the-best-way-to-share-data-between-activities

of how and why to implement each approach Send data inside intents Intent intent new Intent FirstActivity.this SecondActivity.class..

Android Left to Right slide animation

http://stackoverflow.com/questions/5151591/android-left-to-right-slide-animation

why this is happening its because I am always sending new intents. But now I need to change the animation of sliding left to right...

install / uninstall APKs programmatically (PackageManager vs Intents)

http://stackoverflow.com/questions/6813322/install-uninstall-apks-programmatically-packagemanager-vs-intents

observer int flags Differences When using intents the local package manager is not made aware of which application.. Is it possible to specify package installer name using intents Maybe the name of the installer package can be added as an extra..

twitter integration on android app

http://stackoverflow.com/questions/1782743/twitter-integration-on-android-app

addition to d.'s solid choices you could Use ACTION_SEND Intents with createChooser and if the user has a Twitter application..

How do I pass data between activities in Android?

http://stackoverflow.com/questions/2091465/how-do-i-pass-data-between-activities-in-android

sessionId startActivity intent The docs for Intents has more information look at the section titled Extras . share..

How to send an object from one Android Activity to another using Intents?

http://stackoverflow.com/questions/2139134/how-to-send-an-object-from-one-android-activity-to-another-using-intents

send an object from one Android Activity to another using Intents How can I pass an object of a custom type from one Activity.. Parcelable it's just a matter of putting them into your Intents with putExtra Intent i new Intent i.putExtra name_of_extra myParcelableObject..

How to have Android Service communicate with Activity

http://stackoverflow.com/questions/2463175/how-to-have-android-service-communicate-with-activity

are three obvious ways to communicate with services Using Intents Using AIDL Using the service object itself as singleton In your..

More efficient way of updating UI from Service than intents?

http://stackoverflow.com/questions/2621395/more-efficient-way-of-updating-ui-from-service-than-intents

call it will show a dialling screen. At the minute I use Intents to let the Activity know what state it should display. An example.. works however it seems like it is not very efficient the Intents will get broadcast system wide and Intents having to fire for.. efficient the Intents will get broadcast system wide and Intents having to fire for different states seems like it could become..

android: how do i open another app from my app?

http://stackoverflow.com/questions/2923265/android-how-do-i-open-another-app-from-my-app

an application or know its capabilities List of Available Intents for Google Applications List of Intents by 3rd parties @ OpenIntents..

Android keeps caching my intents Extras, how to declare a pending intent that keeps fresh extras?

http://stackoverflow.com/questions/3140072/android-keeps-caching-my-intents-extras-how-to-declare-a-pending-intent-that-ke

Although I got clear answer that I have to customize the Intents based on some unique ID eg. setAction still have some problems... share improve this question If only one of your PendingIntents for this contact will be outstanding at any point in time or..

Android, Detect when other apps are launched

http://stackoverflow.com/questions/3290936/android-detect-when-other-apps-are-launched

is puzzling me and after many days reading up on Broadcast Intents etc and trying to listen for android.intent.action.MAIN etc..

Android Share Via Dialog

http://stackoverflow.com/questions/3553017/android-share-via-dialog

share improve this question This is indeed done with Intents. For sharing an image like in the example picture it would be..

Get referrer after installing app from Android Market

http://stackoverflow.com/questions/4093150/get-referrer-after-installing-app-from-android-market

wrong somewhere or is the Market no longer launching these Intents when an app is installed android install google play referrer..

Allow user to select camera or gallery for image

http://stackoverflow.com/questions/4455558/allow-user-to-select-camera-or-gallery-for-image

original intents and create the final list of possible Intents with one new Intent for each retrieved activity like this List.. for each retrieved activity like this List Intent yourIntentsList new ArrayList Intent List ResolveInfo listCam packageManager.queryIntentActivities.. res.activityInfo.packageName res.activityInfo.name yourIntentsList.add finalIntent List ResolveInfo listGall packageManager.queryIntentActivities..

install / uninstall APKs programmatically (PackageManager vs Intents)

http://stackoverflow.com/questions/6813322/install-uninstall-apks-programmatically-packagemanager-vs-intents

uninstall APKs programmatically PackageManager vs Intents My application installs other applications and it needs to..

how to use LocalBroadcastManager?

http://stackoverflow.com/questions/8802157/how-to-use-localbroadcastmanager

We are registering an observer mMessageReceiver to receive Intents with actions named custom event name . LocalBroadcastManager.getInstance.. IntentFilter custom event name Our handler for received Intents. This will be called whenever an Intent with an action named..

How do you pass a string from one activity to another? [duplicate]

http://stackoverflow.com/questions/15859445/how-do-you-pass-a-string-from-one-activity-to-another

how to use it. Any suggestions Thanks java android string activity share improve this question Pass values using intents. In your first activity Intent i new Intent com.example.secondActivity i.putExtra key mystring for explicit intents Intent.. intents. In your first activity Intent i new Intent com.example.secondActivity i.putExtra key mystring for explicit intents Intent i new Intent ActivityName.this SecondActivity.class parameter 1 is the key parameter 2 is the value your value startActiivty..

handle textview link click in my android app

http://stackoverflow.com/questions/1697084/handle-textview-link-click-in-my-android-app

that is a bit simpler. Besides the default intent filter I simply let my target activity listen to ACTION_VIEW intents and specifically those with the scheme com.package.name intent filter category android name android.intent.category.DEFAULT..

How to register some URL namespace (myapp://app.start/) for accessing your program by calling a URL in browser in Android OS?

http://stackoverflow.com/questions/2430045/how-to-register-some-url-namespace-myapp-app-start-for-accessing-your-progr

int So the way to do this is to use the normal facilities to describe an in your manifest for the kinds of intents you are going to handle with a particular component especially defining an action name in your own namespace com.mycompany.myapp.action.DO_SOMETHING.. Intent.html#setPackage java.lang.String This is a newer feature in the platform which allows you to direct link intents to only your app so that other applications can not intercept and handle them. In summary read the regular documentation.. your app so that other applications can not intercept and handle them. In summary read the regular documentation on intents and intent filters such as the NotePad tutorial though you won't be using content URIs here probably just custom actions..

How to implement my very own URI scheme on Android

http://stackoverflow.com/questions/2448213/how-to-implement-my-very-own-uri-scheme-on-android

data android scheme myapp android host path intent filter activity As per how implicit intents work you need to define at least one action and one category as well here I picked VIEW as the action though it could be.. the action though it could be anything and made sure to add the DEFAULT category as this is required for all implicit intents . Also notice how I added the category BROWSABLE this is not necessary but it will allow your URIs to be openable from the..

Open another application from your own (intent)

http://stackoverflow.com/questions/2780102/open-another-application-from-your-own-intent

for example I need to know how I can create an Intent to open MyTracks or any other application that I don't know what intents they listen to. I got this info from DDMS but I havn't been succesful in turning this to an Intent I can use. This is taken..

Android, Detect when other apps are launched

http://stackoverflow.com/questions/3290936/android-detect-when-other-apps-are-launched

it the right way in looking for new apps broadcasting an intent to start or should I be reading the system log for new intents or doing something in native code Any pointers would help even if you can't answer it fully I'll be able to do some more..

Choose File Dialog [closed]

http://stackoverflow.com/questions/3592717/choose-file-dialog

enough to implement easily into on of my projects. The only other options seem to being using OI FileManger's open intents but that requires the user already having the file manager installed. I would be extremely grateful if someone could point..

Android Launch an application from another application

http://stackoverflow.com/questions/3872063/android-launch-an-application-from-another-application

application I want to launch an installed package from my Android application. I assume that it is possible using intents but I didn't find a way of doing it. Does anyone have a link where to find the information android android intent share..

Get referrer after installing app from Android Market

http://stackoverflow.com/questions/4093150/get-referrer-after-installing-app-from-android-market

from Android Market I am trying to register a Broadcast Receiver that catches com.android.vending.INSTALL_REFERRER intents launched by Android after an app is installed from the Market. I am following the details here http code.google.com mobile..

Android - SMS Broadcast receiver

http://stackoverflow.com/questions/4117701/android-sms-broadcast-receiver

freed 926 objects 44840 bytes in 73ms So the SMS seems to be received by the emulator but looks like the no intents are firing. What am I doing wrong here After installing do I have to somehow 'start' this receiver Because when I install..

Using the Android Application class to persist data

http://stackoverflow.com/questions/4208886/using-the-android-application-class-to-persist-data

of the activity. Based on my findings the Application class does not have the same life cycle i.e. it is for all intents and purposes always instantiated . Does it make sense to store the state information inside of the application class and..

Android - What's the best way to share data between activities?

http://stackoverflow.com/questions/4878159/android-whats-the-best-way-to-share-data-between-activities

and access them from the launched activity. Some examples of how and why to implement each approach Send data inside intents Intent intent new Intent FirstActivity.this SecondActivity.class intent.putExtra some_key value intent.putExtra some_other_key..

Android Left to Right slide animation

http://stackoverflow.com/questions/5151591/android-left-to-right-slide-animation

right I get the transition of swiping right to left. I know why this is happening its because I am always sending new intents. But now I need to change the animation of sliding left to right. I know there is a method named overridingTransitionPending..

install / uninstall APKs programmatically (PackageManager vs Intents)

http://stackoverflow.com/questions/6813322/install-uninstall-apks-programmatically-packagemanager-vs-intents

public abstract void deletePackage String packageName IPackageDeleteObserver observer int flags Differences When using intents the local package manager is not made aware of which application the installation originated from. Specifically getInstallerPackageName.. and is most likely capable of setting this value. Question Is it possible to specify package installer name using intents Maybe the name of the installer package can be added as an extra to the installation intent Tip If you want to download..

twitter integration on android app

http://stackoverflow.com/questions/1782743/twitter-integration-on-android-app

Twitter. android twitter share improve this question In addition to d.'s solid choices you could Use ACTION_SEND Intents with createChooser and if the user has a Twitter application installed Twidroid they can use it to update their status Use..

How do I pass data between activities in Android?

http://stackoverflow.com/questions/2091465/how-do-i-pass-data-between-activities-in-android

How to send an object from one Android Activity to another using Intents?

http://stackoverflow.com/questions/2139134/how-to-send-an-object-from-one-android-activity-to-another-using-intents

to send an object from one Android Activity to another using Intents How can I pass an object of a custom type from one Activity to another using the putExtra method of the class Intent android.. is in a FIFO approach . Once you have your objects implement Parcelable it's just a matter of putting them into your Intents with putExtra Intent i new Intent i.putExtra name_of_extra myParcelableObject Then you can pull them back out with getParcelableExtra..

How to have Android Service communicate with Activity

http://stackoverflow.com/questions/2463175/how-to-have-android-service-communicate-with-activity

android share improve this question There are three obvious ways to communicate with services Using Intents Using AIDL Using the service object itself as singleton In your case I'd go with option 3. Make a static reference to the..

More efficient way of updating UI from Service than intents?

http://stackoverflow.com/questions/2621395/more-efficient-way-of-updating-ui-from-service-than-intents

incoming call it will display Answer or Reject or an outgoing call it will show a dialling screen. At the minute I use Intents to let the Activity know what state it should display. An example is as follows Intent i new Intent i.setAction SIPEngine.SIP_TRYING_INTENT.. registerReceiver SipCallListener filter This works however it seems like it is not very efficient the Intents will get broadcast system wide and Intents having to fire for different states seems like it could become inefficient the.. filter This works however it seems like it is not very efficient the Intents will get broadcast system wide and Intents having to fire for different states seems like it could become inefficient the more I have to include as well as adding..

android: how do i open another app from my app?

http://stackoverflow.com/questions/2923265/android-how-do-i-open-another-app-from-my-app

Android keeps caching my intents Extras, how to declare a pending intent that keeps fresh extras?

http://stackoverflow.com/questions/3140072/android-keeps-caching-my-intents-extras-how-to-declare-a-pending-intent-that-ke

struggling to find a way to use custom intents for my alarms. Although I got clear answer that I have to customize the Intents based on some unique ID eg. setAction still have some problems. I define a PendingIntent this way Intent intent new Intent.. per contact and per action android android intent extras share improve this question If only one of your PendingIntents for this contact will be outstanding at any point in time or if you always want to use the latest set of extras use FLAG_UPDATE_CURRENT..

Android, Detect when other apps are launched

http://stackoverflow.com/questions/3290936/android-detect-when-other-apps-are-launched

Email app on top I'm ok doing the rest of it just part 2 is puzzling me and after many days reading up on Broadcast Intents etc and trying to listen for android.intent.action.MAIN etc in my trial projects I can't seem to detect when an app other..

Android Share Via Dialog

http://stackoverflow.com/questions/3553017/android-share-via-dialog

me in the right direction Is this done with intents android share improve this question This is indeed done with Intents. For sharing an image like in the example picture it would be something like this Intent share new Intent Intent.ACTION_SEND..

Get referrer after installing app from Android Market

http://stackoverflow.com/questions/4093150/get-referrer-after-installing-app-from-android-market

is even broadcast and I get no logging output. Am I going wrong somewhere or is the Market no longer launching these Intents when an app is installed android install google play referrer share improve this question I would try to help who like..

Allow user to select camera or gallery for image

http://stackoverflow.com/questions/4455558/allow-user-to-select-camera-or-gallery-for-image

with PackageManager.queryIntentActivities for both original intents and create the final list of possible Intents with one new Intent for each retrieved activity like this List Intent yourIntentsList new ArrayList Intent List ResolveInfo.. create the final list of possible Intents with one new Intent for each retrieved activity like this List Intent yourIntentsList new ArrayList Intent List ResolveInfo listCam packageManager.queryIntentActivities camIntent 0 for ResolveInfo res listCam.. new Intent camIntent finalIntent.setComponent new ComponentName res.activityInfo.packageName res.activityInfo.name yourIntentsList.add finalIntent List ResolveInfo listGall packageManager.queryIntentActivities gallIntent 0 for ResolveInfo res listGall..

install / uninstall APKs programmatically (PackageManager vs Intents)

http://stackoverflow.com/questions/6813322/install-uninstall-apks-programmatically-packagemanager-vs-intents

uninstall APKs programmatically PackageManager vs Intents My application installs other applications and it needs to keep track of what applications it has installed. Of course..

how to use LocalBroadcastManager?

http://stackoverflow.com/questions/8802157/how-to-use-localbroadcastmanager

Bundle savedInstanceState ... Register to receive messages. We are registering an observer mMessageReceiver to receive Intents with actions named custom event name . LocalBroadcastManager.getInstance this .registerReceiver mMessageReceiver new IntentFilter.. this .registerReceiver mMessageReceiver new IntentFilter custom event name Our handler for received Intents. This will be called whenever an Intent with an action named custom event name is broadcasted. private BroadcastReceiver..