intent

Android Respond To URL in Intent

I want my intent to be launched when the user goes to a certain url: for example, the android market does this with http://market.android.com/ urls. so does youtube. I want mine to do that too. If anybody could explain this, thank you very much. Isaac Waller ...

Android Download Intent

Hello, I was wondering what is the intent for downloading URLs? In the browser, it will download stuff with a little notification icon. I was wondering if I can use that intent (and what it is). Thanks, Isaac Waller ...

Android YouTube app Play Video Intent

I have created a app where you can download YouTube videos for android. Now, I want it so that if you play a video in the YouTube native app you can download it too. To do this, I need to know the Intent that the YouTube native app puts out in order to play the YouTube app. I could do this easially if I had the YouTube program on my emul...

Trying to attach a file from SD Card to email

I am trying to launch an Intent to send an email. All of that works, but when I try to actually send the email a couple 'weird' things happen. here is code Intent sendIntent = new Intent(Intent.ACTION_SEND); sendIntent.setType("image/jpeg"); sendIntent.putExtra(Intent.EXTRA_SUBJECT, "Photo"); s...

Android Override Explicit Intent

Hello, My app needs to have a intent-filter that responds to a intent that has it's component set (a explicit intent.) Here is a example. Intent i = new Intent(); i.setClassName("com.compareeverywhere","com.compareeverywhere.ScanActivity"); startActivity(i); Just a simple intent-filter will not do - because the intent is made for a ...

How do I save data from Camera to disk using MediaStore on Android?

For my application, I'd been using my own Camera class for taking images and my own database but soon enough I couldn't really keep up with changes and I decided to use the built in camera application in Android to do the job, but I can't seem to get it to save file. What am I missing here? The application seems to save the file but it's...

Using Intent in an Android application to show another activity

In my Android application, I have two activity classes. I have a button on the first one and I want to show the second when it is clicked, but I get an error. Here are the classes: public class FirstActivity extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); ...

Android: determining the current context to display an alert

I am calling the ZXing scanner from Screen-A using intents. Once the scan is done control of course returns to the code behind Screen-A and I do some other work before calling Screen-B. Problem is the screen is black during this work period and I cannot determine the proper context to use to display a "working..." Toast/msgbox. Any he...

What is the explicit difference between the fortran intents (in,out,inout)?

Hey. After searching for a while in books, here on stackoverflow and on the general web, I have found that it is difficult to find a straightforward explanation to the real differences between the fortran argument intents. The way I have understood it, is this: `intent(in)` -- The actual argument is copied to the dummy argument at ent...

How to add attachment options in Android's sms/mms default app

My question is, is it at all possible to add to the sms attachments options available by any means without rebuilding the source? I currently am trying to add additional attachment options to the bundled SMS app titled 'messaging' in all current Android builds. When you select 'attach' from the menu, a custom dialog is opened with optio...

Android: Intent problem

Hi, Debugging the following piece of code I get "Source not found" notification which probably means some variables are not set: btnEdit.setOnClickListener(new View.OnClickListener(){ @Override public void onClick(View v) { Intent intent = new Intent(v.getContext(), DlgTitleTags.class); intent.putExtra(Client.STORED_TITLE, m...

How to send parameters from a notification-click to an activity?

Hi I can find a way to send parameters to my activity from my notification. I have a service that creates a notification. When the user clicks on the notification i want to open my main activity with some special parameters. E.g an item id, so my activity can load and present a special item detail view. More spesific, im downloading a ...

Change intent bundle data before an activity is re-created after orientation change

I have a notification that starts my activity and passes a messages using the intent's putExtra() function. The message is then displayed to the user in the activity's onCreate function. When the application is restarted due to a orientation change, the message is shown again as it is still in the intent's bundled data. How can I remov...

Android Send Intent attaching photo from sdcard as 0 length file

Hi All, I know a variant of this question was asked before trying-to-attach-a-file-from-sd-card-to-email But the solution offered, i.e. a reboot doesn't seem to do it for me. I have seen a good number of group postings which support this being a problem. I can only assume the OP for the linked to question made some other changes, pos...

How to use an intent to update an activity?

Hi I have a service that is downloading a file. When the download is done, I would like to update my "Downloaded files" list in my Activity, but only if the Activity is running. I do not want the Activity to start if it's not already running. I was hoping I could do this by making a new Intent with some special flag. Anyone have any i...

Android video intent: Control back button?

Hi! I'm working on an android application that plays video, by using an intent: tostart = new Intent(Intent.ACTION_VIEW); tostart.setDataAndType(Uri.parse(movieurl), "video/*"); startActivity(tostart); This works great. However, when you press the back button (on the device), the movieplayer goes back to the beginning of the movie. On...

Android: Why doesn't the activity appear immediately after calling startActivityForResult()?

Hi, The application I'm currently working on consists of several dialogs and there is an issue with one dialog I still haven't found the cause. Running the debugger the execution reaches the following two lines: Intent intent = new Intent(this, DlgLogin.class); startActivityForResult(intent, SHOW_SUBACTIVITY_LOGIN); and then the onC...

Error Receiving Broadcast Intent Problem

Hi, I created a broadcast receiver in the main activity and the background service which is sending broadcast intents. The application crashes each time I try to run it and the Log displays the following error message: 10-04 13:30:43.218: ERROR/AndroidRuntime(695): java.lang.RuntimeException: Error receiving broadcast Intent {...

Incorrect extras received with all intents but the first one

I have a small application which can be used to set reminders for future events. The app uses an AlarmManager to set the time for when the user should be reminded. When the alarm goes off, a BroadcastReceiver registers this and in turn starts a service to notify the user via a toast and a notification in the status bar. In order to disp...

android: problem with Serializable object put into intent

Hi i have problem with a class i want to pass in an intent by putting it into the putExtras() Its serializable and the code looks like this: public abstract class ObjectA extends ArrayList<ObjectA> implements java.io.Serializable{...} public class ObjectB extends ObjectA {...} ... Bundle extras = new Bundle(); extras.putSerializable(...