intent

Which is less performance intensive - passing a bundle via an Intent or using a Content Provider

I would like to pass a considerable sized amount of data (~1500 bytes) between two applications in Android where performance and resource allocation is a priority. The data is basically key-value pairs. The rate at which it needs to be passed from one application to another can vary from a trickle to ~50 packets within a second. I figure...

Android Launch an application from another application

Hi, 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? Thanks ...

How to receive multiple gallery results in onActivityResult

Hey guys, I want to start the gallery via intent and want to get the results in my onActivityResult method. All works fine if i click on one pic. The question ive got now is, how do i get the results, if i choose more than one picture in the gallery? If found hcpl´s code, which does it for one picture: public class BrowsePicture extend...

Android SMS Message delivery report intent

Android isn't firing the delivery intent when sending a text message. I'm testing this on Android 2.2 on the HTC EVO 4G. This is the current code. I'm seeing "SMS sent intent received." in the logs, but not "SMS delivered intent received.". // Constants String SENT_ACTION = "SMS_SENT_ACTION"; String DELIVERED_ACTION = "SMS_DELIVERED_AC...

IntentService getting wedged

I've built an application which uses an IntentService for manipulating the application's database and calling web services. Example: I have an Activity which is a list of items. This list is populated by a CursorAdapter. Each item has a checkbox and the list is ordered by checked (unchecked items on top and checked items on bottom). ...

Add to menu using addIntentOptions providing multiple intents for a single activity

I want to use addIntentOptions to drive my menus when ever possible. This seems the cleanest way to provide them. Rather than explicitly detailing activities, simply ask for a menu listing all the activities which are available for my data item. So I'm trying to put together a context menu for a ListView. It works great. Only problem is...

SpeechToText and running the ACTION_CHECK_TTS_DATA intent

Ok so I've implemented the TextToSpeech integration to the T mentioned in: http://android-developers.blogspot.com/2009/09/introduction-to-text-to-speech-in.html but now it's messing with my other intents. For example: 1. user starts app 2. user invokes load activity 3. user picks a file to load, and activity returns fileanme to load in ...

Android 2.1 Insert contact problem

Hi! I am working on a contact import for Android 2.1. The following snippet is wokring: Intent in=new Intent(Intent.ACTION_INSERT, ContactsContract.Contacts.CONTENT_URI); in.putExtra(Insert.NAME, "Mark Maier"); in.putExtra(Insert.PHONE, "1234567"); in.putExtra(Insert.PHONE_TYPE, CommonDataKinds.Phone.TYPE_FAX_WORK); startActivity(in); ...

All packages that respond to a certain category on Android?

I want to build an Android widget that will update very frequently (5 seconds). This means, I want to only update it when the screen is on and when the home screen is the active Activity. How do I get a list of home apps (or apps that respond to <category android:name="android.intent.category.HOME"/>) In the android API, can I use Int...

Android Intent Activity crash behaviour - app restarts halfway through the app

I have a pretty standard iPhone app that creates a series of around 7 unique Activities initialised by Intents. However if the app crashes on the 7th Activity, the app restarts on the users phone around the 5th activity. The problem then is the info gathered from activities 1-4 is null, meaning the app is useless and the only way to get...

Android notification click, run the main intent?

Hy! public static void addNotification(String sAppname, String sDescription) { NotificationManager notifManager = (NotificationManager) mycontext.getSystemService(NOTIFICATION_SERVICE); Notification note = new Notification(R.drawable.icon, sDescription, System.currentTimeMillis()); Intent i = new Intent (myconte...

Redirect BroadcastReceiver onReceive()

What's the correct way (if any) to redirect a received Intent to another BroadcastReceiver? I have two BroadcastReceivers set to listen to the same intent. It works in development, but in production, only the first one registered in the manifest gets the intent. Can I call the other one's onReceive() method directly, passing the same ...

Problems making a new Activity in my application

Hi i have a button, and i want that when i click on it a new window appear. The class for the new windows is HelloGoogleMaps.java i add the class to manifest, and the class extends MapActivity i make the intent in the main class with this: Intent i = new Intent (this, HelloGoogleMaps.class); but an error appears: The constructor Int...

Android: How to pass ArrayList<customObject> between Activities?

Hi everyone! How can I pass a Object: ArrayList from one Activity to another? Seems that intent cannot hold custom ones except ArrayList. As a kind of hack, I use a static member: staticResultList = new ArrayList<SingleExamResult>(m_examResults); and Get it in the following Activity by: m_examResults = DoExam.staticResultList; I...

How to retrieve image from intent uri in android i.e assigned using content values

Hi friends I am using android inbuilt camera to take picture and then attaching the same picture to email, here in the below code i am using Uri imageUri = null; to take picture but in onActivityResult(int requestCode, int resultCode, Intent data) method i need to retrieve that image how to do it, plz help me.. , public cl...

Launched browser intent for DRM content immediately jumps to background

I have an app that launches a browser with a VIEW intent pointing at a URL containing DRMed content (which the browser should then download into the DrmStore). This works perfectly the first time, but on subsequent attempts to download the same file, the browser opens, pops up a dialog saying the content has previously been downloaded an...

How to pass an int value to another class

Hi, I have been trying to get "getExtra" to work but without success, I have a listview with 4 choices which launch a webpage within a webView class, when the user selects the option lets say option 3 I want to pass the value of 3 to the webView class so that it will load the correct webpage, at the moment all I get is errors, can some...

Using a Intent to call an activity from another program results in Permission Denied

In my very simple app (based on the default Hello World app but with a button added) I try to open one of my phone's (a SE X10 Mini) preinstalled activities, like this: Intent calendarIntent = new Intent(); calendarIntent.setClassName("com.sonyericsson.calendar","com.sonyericsson.calendar.dayview.DayActivity"); startActivity(calendarInt...

Android: How to Invoke skype from WebView?

Hi, I need to invoke skype application and make a call from skype when a 'skype me' link (eg: skype://1866012345) is clicked from a webview. Can someone help how to do this? I tried the following: Downloaded skype application from market (in my driod 2.2). When launching skype, the package invoked is 'skype.android.raider' - as per AD...

How i can pass a parameter to an activity that i am creating from other activity?

Hi i have a main activity that is creating another activity (with googlemap) i have to pass my googlemaps activity a parameter, but i dont know how i created a constructor in my googlemaps activity with the parameter but... how i can call that constructor? i dont know how to do that because i only know one way to call an activity and...