intents

Where is a list of available intents in Android?

Hi all, I'm starting to learn how to develop apps for Android, and I'm having some issues with intents--it just doesn't seem like they're documented at all. All I want to do is send the user to the video recorder, where they record a video, and the video information is returned to my app. I know this is possible, as I've seen it in othe...

Simple Problem With Intent Extras

Posted: Mon Nov 30, 2009 5:08 pm Post subject: Simple Problem With Intent Extras Hello, I'm working on an app widget for the home screen. I'm trying to make it so when a user taps on the widget it changes the data being displayed in the widget. However, I'm also allowing multiple instances of widgets open with different data. So in...

Android: startActivityForResult always gets a resultCode of 0?

For some reason, when I use the call, the result is always returned as 0. All I am doing is popup the selection box and then once the selection is made, the user hits the back button. Does anyone know what mistake I could be doing? CALLING ACTIVITY: Intent i = new Intent(this, Selection.class); Log.d("Front-End", "Launching Activity");...

Android: How to get location information from intent bundle extras when using LocationManager.requestLocationUpdates()

I am trying to use Android's LocationManager requestLocationUpdates. Everything is working until I try to extract the actual location object that in my broadcast receiver. Do I need to specifically define the "extras" to my custom intent so that the Android LocationManager before I pass it to requestLocationUpdates so it knows how to a...

How can i find the orientation of a picture taken with Intent MediaStore.ACTION_IMAGE_CAPTURE?

When I take a picture with Androids camera app, it detects the phone's orientation and saves the pic accordingly. So if i take a picture of a building, the roof will be on the topside, whether I hold the phone in landscape position or portrait. However, when i use Intent imageCaptureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTU...

getting googlemaps to accept a local KML file?

Hi all. I am trying to get googlemaps to accept a local KML file. final Intent myIntent = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse("geo:0,0?q=file://" + Environment.getExternalStorageDirectory() + "/locate.kml")); startActivity(myIntent); The file is on the SD card, and is a valid kml file. Googlemaps loads up, but sa...

Question about passing data using intents

Hi everyone, I'm trying to modify the Notepad tutorial (the Notepadv3 solution) to take in a value into the NoteEdit class, given to by the Notepadv3 class. I've successfully used .putExtra in the OnListItemClick method to place the value into the NoteEdit class, but I'm struggling to do this for the createNote method; I'm getting a for...

Is there a definitive list of uri patterns for use in android apps made by google?

Apart from http://developer.android.com/guide/appendix/g-app-intents.html (which is quite good but fairly limited in the number of apps/uri's it covers) I've been unable to find a decent reference source for looking up URI's to use when integrating with google apps. I'm currently working on triggering the "add new contact" UI, and have ...

startActivityForResult and Intents Extras, it seams extras are not pushed back

I have this code: Intent intent = new Intent(); intent.setAction(Intent.ACTION_PICK); intent.setData(ContactsContract.Contacts.CONTENT_URI); intent.putExtra(EXTRA_ONLINE_ID, (String) v.getTag()); startActivityForResult(intent, PICK_CONTACT); Then on response: public void onActivityResult(int reqCode, i...

Can someone please explain to me the basic function of Intents in the Android OS?

I'm new to programming applications for the Android OS. As far as general architecture of the OS goes, I understand that processes are implemented as Linux processes and that each one is sandboxed. However, I'm utterly confused on the IPCs and syscalls (if any) used. I know that the IBinder is a form of this; parcels are sent back and f...

android pending intent notification problem

Hi all! I have a alarm thing going on in my app and it launches a notification that then when pressed launched an activity. The problem is that when I create more than one alarm then the activity launched from the notification gets the same extras as the first one. I think the problem is either with the intent i put in the pending intent...

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

A few days ago I was 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(this, viewContactQuick.class); intent.setAction("newmessage"+...

Can I pass data through a new Activity?

In my Android app, I start a new activity with startActivityForResult(). I get the result in onActivityResult() perfectly. My problem is that there is a small bit of data that I know before I start the activity and I need that value to be available in onActivityResult(), too. I tried attaching it to my intent as an extra, but it wasn't a...

Android Calling Intent from another class

I am calling intents alot in my program and I thought that I could write a public class that would have all of my intents so I can just call something like intents.testIntent(params) and then have it fire off the intent. I tried it out but am getting a force close with a null pointer exception. This is my whole class. I know it is prob...

ANDROID Intents Problem Launching Application

My problem is thus; I am new to programming on the ANDROID platform and have a 'working' application that piggy-backs on the API-Docs example. I wish it to launch three tabs one containing a list of reports, one a form to file a report and the last to show the geo-located reports. It doesn't appear as a separate application, it instead a...

Android Intent.FLAG_ACTIVITY_SINGLE_TOP AND Intent.FLAG_ACTIVITY_CLEAR_TOP

I have an app that I have running a media player and I want to resume the activity from my apps home activity. I can successfully do this by adding the following flags to the startActivity Call: myIntent.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP | Intent.FLAG_ACTIVITY_CLEAR_TOP); I am worried that this is not an ideal way to do things...

Getting list of installed app's: Easy... But How to launch one of them?

Hello everybody! My first application will just be a kind of launcher that I would like to improve. This launcher will launch a custom Home that the user has installed. That's like the application "Home Switcher, but I would like to do that myself. So my first goal is to get all "Home" applications list: that's really easy and the cod...

List View selection to start a new Activity

So I'm working with a list view trying to get specific activities to open when a certain item is selected. This is the code that I'm working with right now. I know its wrong but am not sure what I need to change it make it work. I think I need an intent and tried a few ideas but did not come up with much. Thanks. package table.periodic;...

Launching activity through intents

Hi, I am implementing a simple app. I need to start an activity based on the state of the Activity. Lets take i am using a button to start the activity. 1. If the activity is not started, I need to start XYZ activity. 2. If the XYZ activity is on focus, then i need to close the activity on the button press. 3. If the XY...

Change content of tab on button click

I have been reading a lot of comments on how it is more lightweight to use views instead of intents in setContent when using tabs. Since I will be creating an app with tabs, I am trying to implement this instead of having intents inside setContent. However, I am having a difficult time looking for examples or straightforward tutorials o...