Android :: Intent Action - Correct Way To Get Back To Application After Call?

Aug 27, 2010

I got one question regarding the intent action "ACTION_CALL". What is the correct way of getting back to the own application/activity after the user ends the call? The only way that came to my mind uses a PhoneStateListener in a background services that waits for the CALL_STATE_IDLE event starting up the application again. But I am not quite sure if that is the correct/intended way of using the intent.

Android :: Intent Action - Correct way to Get back to Application after call?


Android :: Taking Picture By Camera Correct Intent Action

Mar 3, 2009

I am trying to take picture by G1 camera.

I have tried almost everything i was able to find on the net about this topic. It seams there should be intent with action "android.media.action.IMAGE_CAPTURE" which really starts camera application and returns captured image. But captured image is scaled to 0.25 of original size. Another possibility I have found is to pass uri where to save captured image. I went through all available sources of camera application and it should work but does not.

For illustration, I am doing following in my example activity which creates new image, but after returning from camera, image is still empty:

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

I am ready to write my own capturing application, but it is quite hard and I would like to reuse.

Do you know correct intent action name and extra name to pass to capture image?

View 4 Replies View Related

Android :: Intent Call Action

Jan 7, 2010

How to invoke call in android using ntent?...

View 2 Replies View Related

Android :: Catch.intent.action.ACTION UMS CONNECTED Event

Nov 3, 2010

I want to show some notification when android phone is connected to system. I implemented BroadcastReceiver for listening to event android.intent.action.ACTION_UMS_CONNECTED in my application But it is not working. Is it possible to capture this event.

View 3 Replies View Related

Android :: Implicit Intent - Call To Another Activity Doesnt Work If Action Name Is Defined As User Defined Names

Sep 8, 2010

implicit intent with class name as action defined in intentfilter. is not working. Only it it is defined as "android.intent.action." it is picked up ? is it so ?

I have app A with the following in manifest.xml file

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

In app B, i tried to call the activity in A using below code.

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

This code works. But not above line.

View 2 Replies View Related

Android - Back Button From Send-intent Closes Application

Jun 1, 2014

i have a drawer menu, when i press one of its buttons to start a sharing intent as below:

Code:
Intent iFriends = new Intent(Intent.ACTION_SEND);
iFriends.setType("text/plain");
iFriends.putExtra(Intent.EXTRA_TEXT, "http://www.liveplus.mobi");
iFriends.createChooser(iFriends, "Invite Friends");
startActivity(iFriends);

The sharing dialog appears, but if i press the back button, the whole application exits!

View 1 Replies View Related

Android :: Call .apk File Of PDF Viewer Through Intent Of Application?

Mar 13, 2010

I have only .APK file of PDF Viewer and my requirement is to use pdf viewer for reading document called through Web API . Is there any possibility to integrate these two in same package apart from source code?

View 1 Replies View Related

Android :: Intent.action.ANSWER

Feb 2, 2010

I am using android.intent.action.ANSWER for receiving my call (android_OS). below i m giving code segment i used:

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

in activity class i wrote

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

But i did not get any result. see my code and give me a feedback.

View 2 Replies View Related

Android :: OnActivityResult Intent Data Not Correct

Jul 29, 2010

I'm venturing into startActivityForResult for the first time and I'm running into a problem.When a user clicks on a list item of Activity B, it returns "ql_id" to Activity A:Unfortunately, extras.getInt("ql_id") evaluates to "0". Why is this? It should be "1". I am clearly doing something incorrectly.

View 1 Replies View Related

Android :: Intent Not Opening Correct Activity

Aug 22, 2010

I'm having a struggle understanding why my intent is not working. I basically just copied paste from other examples in my code that work perfectly like this. Here it is:

Intent addIntent = new Intent(v.getContext(), thenNnowMode.class);
Bundle w = new Bundle(); String activityName = "addPic";
w.putString("activity", activityName);
w.putParcelable("bitmap", selectedDeviceImage);
//a.putString("id", picId); addIntent.putExtras(w);
startActivity(addIntent); finish();

The intent is opening a different class called thenNnow.class instead of thenNnowMode.class and I have no idea why this is happening. I've tried sending the intent to open other activities other than thenNnowMode but it always opens thenNnow. Am I missing some silly syntax mistake? It's so strange, its the same code. I am not sure if it's relevant but the thenNnowMode class uses the device camera

View 23 Replies View Related

Android :: Intent.action.TIME TICK

Apr 1, 2009

I'm trying to get an application / reciever / anything that can perform a task once every minute. I'm trying to use the intent-filter "android.intent.action.TIME_TICK" which, in theory, sends an Intent message every minute.

Does anyone have any code that uses the android.intent.action.TIME_TICK intent? I can't seem to get it to send the intent to my application and I can't find anything much on the internet. Has anyone used it successfully?

I have a manifest.xml as below.

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

View 2 Replies View Related

Android :: Creating Intent With Action / Any Way To Filter Results

Jul 20, 2010

When creating an intent with action send to send some data, is there a way to filter the results that are included in the activity chooser that is created using Intent.createChooser? I have not seen a way to do this other than setting the mime type, but it is not flexible enough.

For example, there is a situation when I want e-mail apps to be the only results in the activity chooser dialog. Setting the type to "text/ html" successfully filters this down to email apps, except when bluetooth is enabled. Bluetooth appears in the list as well, but this is not desirable. Surely there is a way to have a little more control over the results?

View 3 Replies View Related

Android :: Catch .intent.action. Media Mounted

Oct 28, 2010

How to cath android.intent.action.MEDIA_MOUNTED event I implemented an broadcast receiver to invoke when sdcard is mounted. But it is not invoked

My source code is as follows:

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

View 3 Replies View Related

Android :: Intent.action.NOTIFICATION REMOVE Not Available On All Devices

Nov 12, 2010

I've got a receiver set up in my android application to catch android.intent.action.NOTIFICATION_REMOVE intents. On my Evo, it works fine - when a notification is cleared from the notification bar, I catch that event and can run some code. I tried running this on a Samsung Moment though, and it is never caught. So now I'm trying to figure out why, and I can't seem to find anything on Google about this intent action - and I set this code up a few months ago, so I don't remember where I even found this action, it doesn't seem to be in the API.

The evo is running 2.2, and the moment is running 2.1-update1, so I'm guessing that it's undocumented, and only available in 2.2. Is there any other way to catch an event that a notification has been cleared? Note that I'm not trying to cancel a notification that I put up, or trying to cancel another app's notification, just catch an event when a notification has been cleared.

Here's my receiver in AndroidManafest.xml:

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

View 3 Replies View Related

Android :: Register .intent.action.SEND In Service

Apr 26, 2010

I want to receive Intent "android.intent.action.SEND" in a Service. Is it possilbe to register for this Intent via registerReceiver() and get the Intent in Broadcast receiver in the Service?

Or is there any restrictions that "android.intent.action.SEND" can only be registered via Manifest.xml of an Activity and not in a Service?

View 2 Replies View Related

Android :: What Is Intent Action Name To Launch Native Map Appl?

Apr 20, 2009

what is intent action name(e.g. action name "android.media.action.IMAGE_CAPTURE" for launching camera appl) to launch the native map appl Is there intent available(documented or undocumented since above intent of capturing image is undocumented ) for launching maps appl?

I know one for launching maps for driving direction "this.startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://maps.google.com/maps? f=d&saddr=37.4,-121.9"+ "&daddr=Bellevue, WA&hl=en")));" but this goes to driving direction page of maps appl.

is there any way to launch maps appl which will open maps home page?

View 3 Replies View Related

Android :: Catching An Action Without Setting An Intent Filter?

Jan 11, 2010

I'm trying to catch an action like ACTION_HEADSET_PLUG. But I think it might be too much to set this action on the manifest file.

How could I register a listener for this action? I only need to care about it when my application is running not all the time as I think it would happen when registering it under the manifest file...

View 4 Replies View Related

Android : How To Get Correct Month For A Call From Call Log History?

Jun 11, 2010

I am trying to extract information from the call log of the android. I am getting the call date that is one month back from the actual time of call. I mean to say that the information extracted by my code for the date of call is one mont back than the actual call date.

View 1 Replies View Related

Android :: Correct Intent To Launch Gallery / Video Camera

Jul 28, 2009

My application has buttons to launch gallery and video camera apps but the below code only seems to work on phones with the standard Cupcake build:
// For Gallery Intent intent = new Intent(); intent.setClassName("com.android.camera", "com.android.camera.GalleryPicker");
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); mContext.startActivity(intent);
// For Video Camera Intent intent = new Intent(); intent.setClassName("com.android.camera", "com.android.camera.VideoCamera"); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); mContext.startActivity(intent);

On rooted / non-cupcake phones, I get this error:
android.content.ActivityNotFoundException: Unable to find explicit activity class {com.android.camera/com.android.camera.VideoCamera};
have you declared this activity in your AndroidManifest.xml? at android.app.Instrumentation.checkStartActivityResult (Instrumentation.java:1480) at android.app.Instrumentation.execStartActivity(Instrumentation.java: 1454) at android.app.Activity.startActivityForResult(Activity.java:2656) at android.app.Activity.startActivity(Activity.java:2700)

View 3 Replies View Related

Android :: Unable To Launch An Activity Using Implicit Intent Specifying Only Action

Mar 5, 2010

I am trying to launch an activity by specifying only its action(custom) defined in its intent filter from an activity in other application. The activity to be launched is the main activity of its application thus have android.intent.action.MAIN & android.intent.category.LAUNCHER set as action and category in its intent filter. Now according to android doc on Intent and Intent Filter, i do not need to specify DEFAULT category at all in this case. But doing the same i am i am unable to launch the activity.

LogCat says, Activity could not be found...

Am i misinterpreting the text or is there something else missing...?

Code, used for calling the activity

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

Definition of Activity being called in the manifest file

COE:....................

View 1 Replies View Related

Android :: Implicit Intent - Same Action For Mutiple Component How It Works

Sep 7, 2010

I couldnt figure out the exact understanding of implicit intents.

When i was going through the tutorial i read about it.

Here are some important points to remember: 1 - Implicit Intents do not specify a target component 2 - Components willing to receive implicit intents have to declare their ability to handle a specific intent by declaring intent filters 3 - A component can declare any number of Intent Filters 4 - There can be more than one component that declares the same Intent Filters and hence can respond to the same implicit intent. In that case the user is presented both the component options and he can choose which one he wants to continue with 5- You can set priorities for the intent filters to ensure the order of responses.

I read this about Implicit Intents.

I couldnt get visualisation of 4th point. So wanted to try it out by writing some examples.

I tested this like below. Wrote two apps.

I had written two activities in one app, CallingActivity & anotherActivity.

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

One more app,which has two activities like below.

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

I ran the first app in emulator and pressed home screen, it mean it runs in the background.(Not exited ) Then i opened the second app and clicked a button in frirst activity(testmain) and tried to call setAction "com.android.localguide.GET_RESULT"

i.setAction("com.android.localguide.GET_RESULT");

But it is opening the activity "results".. It dint showed a options to choose which components( i expected first app ) activity i need to use ?

Am i right in executing in the right context to understand that point no 4 ?

View 3 Replies View Related

Android :: Intent Set Action Activity's / Get Free Online Tutorial?

Nov 12, 2010

Can any one suggest some helpful links so that I can get free online tutorial?

View 1 Replies View Related

Android :: Service Intent Filter Action String Resource

Sep 13, 2010

I have a Service defined in the manifest with an intent filter that refuses to match when specified as a String resource but works when the literal action is entered in the manifest. Is there any reason I should not be able to use a String resource with an action in an intent filter?

View 3 Replies View Related

Android :: How To Change Default Intent Action To Select Native - My App

Jun 26, 2009

I am customizing native phonebook application as a third party application which can be launched by the same intent as the native application. I have installed that application in my G1 phone. When I have clicked on Contacts icon in launcher menu it a menu pops out and asks me to select which app to lauch i.e., native contacts or my customized contact application. I have selected my application and I have also selected to use this selection as my default choice. After that system never put a pop-up and whenever I clicked on contacts it launches my customized application.

Now my problem is, I do not know how do I change this setting i.e., tell the phone to put the pop-up again so that I can select native app or my app?

Does anyone has any idea?

View 3 Replies View Related

How To Get Table Of Action And Data Of Intent

Nov 18, 2013

I have got a problem with Intent in Android..I coded an example about Intent

Ex :Intent.ACTION_DIAL,URI.parse(phonenumber.getText( ).toString())
phonenumber is a String from EditText

But when the Emulator runned .Then, a dialog occur with message : "TestCall has stopped".TestCall is my project..I also want to get a table of ACTION and DATA of Intent.

View 2 Replies View Related

Android :: Correct Intent Filter Configuration To Associate File Type?

Nov 10, 2010

This question has been asked [numerous times] before, but I have not seen any definitive answers, or examples of code that actually works. I would like to associate an Activity with a particular file type. For discussion, assume that I want my Activity to be associated with PDFs. Here is what I currently have. I have experimented with many different values and combinations of values in the intent-filter, but I have yet to get my Activity to start when a PDF is selected.

<activity name="com.mycompany.MyActivity">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="file" />
<data android:mimeType="application/pdf" />
<data android:pathPattern="*.pdf" />
<data android:host="*" />
</intent-filter> </activity>

View 1 Replies View Related

Android :: Bluetooth.a2dp.intent.­action.SINK STATE CHANGED

Jan 10, 2010

im currently looking for the way that my app knows when the phone has being paired and connected to a bluetooth headset device.

I read something about this intent, but not on the Reference documentation of http://developer.android.com

android.bluetooth.a2dp.intent.action.SINK_STATE_CHANGED

Is this actually working, is it officially supported.

I mean, can we just register a broadcastreceiver to handle this intent , check for the EXTRA_STATE string extra to see if it equals STATE_CONNECTED and be sure that the phone is now connected with a bluetooth headset device ?

What about this BluetoothA2dpService class? There is no official documentation about this, everything i found i from code snippets of the android OS source code.

View 9 Replies View Related

Android :: Date Changed - Seems .intent.action.DATE_CHANGED Works Not Properly

Nov 7, 2009

One of my application need to know a new day is coming, that is, if the clock of phone changed from 23:59 to 00:00, my application will do some logic. I tried to use android.intent.action.DATE_CHANGED, but based on my test, this event only occured when i change the date mannually, I could not get this action when clock changed from 23:59 to 00:00.

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

View 4 Replies View Related

Android :: Determine When Application Icon Is Clicked To Launch App / Do I Get Call-back For This?

May 7, 2010

Is there any way to determine when the user clicked the app icon to launch the app ? I mean say a user was using my app. Then he presses the home key as a result of which the app goes to the background. After sometime he clicks the app icon again. My question is do I get a call-back for this?

View 3 Replies View Related

Android :: Use Intent Make Outgoing Call - How To Detect The Call State

Jan 19, 2009

I can use this code make outgoing call.

Intent dial = new Intent(Intent.ACTION_CALL); dial.setData(Uri.parse("tel:5556") );

context.startActivity(dial);

But how to detect call pick up the call or refuses to answer?

I tried PhoneStateListener but not working.

View 2 Replies View Related







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