Android :: Open Another Application From - Intent
May 6, 2010
I know how to update my own programs, and I know how to open programs using the a predefined Uri (for sms or email 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 from when opening MyTracks manually.
View 2 Replies
Aug 20, 2010
I was trying to open an Activity of an other applicatoin by using an implicit Intent. It doesn't work, I thought it is possible to start an Activity of an other Application by using implicit Intent. Or do I missunderstand it?
I added following intent-filter to the AndroidManifest of Application A:
CODE:..............
And called the Intent in Application B by using folloing code:
CODE:.............
All I get ist, the error message that Application A was stoped unexpectedly.
View 5 Replies
View Related
Sep 13, 2010
Forgive me if this is a topic that has already been discussed, but I've searched for hours and can't seem to find the answer I'm looking for. I'm trying to cut my teeth on Android programming with a simple file manager app and currently have most all functions working, but I can't seem to open a selected file with the appropriate app.
Here is my current code:
CODE:..................
View 2 Replies
View Related
Oct 5, 2010
I have a kind of an ApplicationLauncher that has to start the build-in gallery. But I dont want to get any result from that gallery... I just want to start it and want my "Launcher" to close after that.
What ive tried:
CODE:................
But it doestn even work with this flag... as soon as I click on a pic in the gallery, it closes and returns to my "Launcher". Is there any way to achieve what i want to do?
View 3 Replies
View Related
Nov 8, 2010
I don't want to store said file on the sdcard in this case. The file also cannot be storage directly in the apps local files directory. It needs to be in a subdirectory, so it cannot write the file using openFileOutput() and MODE_WORLD_READABLE.
The app may download files small files like pdfs and store them locally in a subdirectory. I would like to be able to have the user open these files if they have an app that can open them.
For example here is an intent for sending a pdf:
CODE:..............
path being something like: /data/data/packagename/files/subdir/example.pdf
That intent will open a pdf viewer, but the viewer is unable to open the file. I assume this is a permissions issue. I tried Mark Murphy's suggestion here: http://groups.google.com/group/android-developers/browse_thread/thread/4e55d869213483a9/b7270078ac1a2744?lnk=raot of using Runtime.getRuntime().exec("chmod 755 " + fileName); but it didn't make any difference. He also suggested a Content Provider but I would like to avoid it if I can because it seems like a lot just to get this file over to another app.
If the content provider is the only option, do I have to save the file to the content provider or can I just use the content provider as a pass through to get it to the other app when I need to?
View 2 Replies
View Related
Nov 9, 2010
Does anyone know of an intent I can use to open a raw mp4 resource in the phone's video player?
I tried this code:
CODE:..............
This threw an ActivityNotFoundException, however this has worked for me when the URI was the sdcard and the video was located there. Does anyone know how I can use the above code with a resource file in my app?
View 1 Replies
View Related
Jun 28, 2010
I've been trying to find out how to create an intent that will open the user's preferred browser without specifying the URL. I know how to open it by giving a specific URL like this:Intent intent = new Intent();intent.setAction(Intent.ACTION_VIEW); intent.setData (android.net.Uri.parse ("http://www.google.com")) ;context.startActivity (intent);I don't want to open the browser to any page in particular, just the set homepage or whatever page the user was on last. I've thought about looking up the homepage set within the app but you can't do it with the default Browser app because it is private. Does anybody know of a way to do this?
View 1 Replies
View Related
Jan 13, 2010
I'm trying from main Activity (MainFile.java) to open a Map as a new intent through a menu. Something like this...
CODE:..............
And I already have set up thing on my manifest.xml with access to...
CODE:........
It worked fine with other File.class, but with the Map.class doesn't seem to be working.
View 1 Replies
View Related
Jun 9, 2010
I have seen the below log message when navigating to the Account & sync settings screen but I am confused as to how to create an Intent to navigate there.I dont seem to have access to the ManageAccountsSettings for development.I just wanted to create an Intent such as below, but I cant call out ManageAccountsSettings.
View 1 Replies
View Related
Aug 17, 2010
I would like to put a notification with an intent. My intent is basically action = DEFAULT and category = LAUNCHER in order to bring the activity that was launched into the front. When the app is not shown, there is no problem, the intent works perfectly and launches the last activity seen but when there is already an activity launched, on New Intent is not called (activity is in single eTop mode). I'm wondering how to relaunch the app from an intent to the last activity seen and call on New Intent when the activity is already launched.
View 1 Replies
View Related
May 25, 2009
I wrote a new application and i want to send an intent to another application.is it not enough if i broadcast that intent from my new app and add an intent filter in the receiving application? The intent seems to be not received in the receiving application. should i add / register the intent somewhere in the framework so that it gets received.can someone help me on this.
View 4 Replies
View Related
Mar 3, 2010
I have a question about an intent...
I try to launch the sms app...code...
so, you can see that I put too much things in my intent, but that's because I don't know how I can do...
View 1 Replies
View Related
Mar 12, 2010
Can anyone say me the main difference between intent and pending intent? And their usage in application with example.
View 2 Replies
View Related
Dec 8, 2009
I created application with name Test, and has a class that extends broadcastreceiver that listen for PACKAGE_RESTARTED. I use Advanced Task Killer, and killed the Test application. But when I kill another application, for example gmail, the Test's broadcastreceiver got the intent (I logged it). Does it means that broadcastreceiver will never died?
View 4 Replies
View Related
Apr 10, 2009
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:
CODE:...........
The second class that should show when the button is clicked, but never does:
CODE:........
How do I create a button that will show the second activity?
View 3 Replies
View Related
Apr 13, 2010
My app offers a "share/tell-a-friend" function. When the "share" button is pressed the following method is being called to open a list of apps, which can perform the action (Eg. Gmail, Twittroid, Facebook...):
CODE:...............
The sharing functionality works basically. But when the sharing app (Facebook, Twitter, ...) tries to return to my app, a force close is thrown.
I guess that my app gets closed in the background during the sharing process... at least that is what the debugger sais...
The problem seems to be that the app closes in the background. Also when I open the browser from my app an try to return to my app with the back key. A force close is thrown.
This is the Log Cat output:
CODE:..................
View 2 Replies
View Related
May 6, 2010
I know how to update my own programs, and I know how to open programs using the a predefined Uri (for sms or email 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 from when opening MyTracks manually.
CODE:..................
View 2 Replies
View Related
Jun 10, 2010
I am interested in activating another application's activity. I know from reading the Android SDK that it's probably better to do this with an implicit intent. However, this activity doesn't reside in an application I own, so I don't know the action and category and data flags on the intent-filter.
How can I examine an Android applications metadata like the activity classes and the intent-filters for those activities (if declared in the manifest)?
View 2 Replies
View Related
Oct 25, 2010
I'm working on a project where I need to run the BroadcastReceiver for a third party library for a specific Intent. I also want to run some of my own code when the Intent is broadcast. If I supply my own BroadcastReceiver for the same Intent, it seems that only, one or the other runs, but not both, depending on which appears first in the AndroidManifest.xml file. Is it possible to register multiple BroadcastReceivers for the same Intent in the same application and have them all run? AndroidManifest.xml snippet
View 4 Replies
View Related
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
Aug 28, 2010
I am facing a problem with a clock widget i made. I want the user to touch the clock and launch the clock app on the phone. this is the code...
I made the above so the when i touch the clock opens the alarm settings. But is not universal.
I found out that on droids with 2.2 does not work. There must be a better solution than creating an if statement for every android phone flavor i the world. Plus i don not know the package names for all.
View 3 Replies
View Related
Aug 11, 2010
I would like to launch the Android Email application with a URI similar to the contacts uri. Is this possible?
View 1 Replies
View Related
Sep 29, 2010
I have a user's twitter handle. Right now I'm opening it through a web page like:
String url = "http://www.twitter.com/" + "example_handle";
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
startActivity(intent);
If the user has the Twitter android app installed, is there a different intent I can use which gives the user the option to view that user's twitter feed in the Twitter app, instead of forcing them directly to a browser? I'm not sure if the author's of the Twitter app have exposed any such intent.
View 2 Replies
View Related
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.
View 1 Replies
View Related
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
Apr 28, 2010
I need to push an intent to default camera application to make it take a photo, save it and return an URI. Is there any way to do this?
View 2 Replies
View Related
Feb 24, 2009
I have one application which is based on OPEN GL in java. Now i want to make same application in android then i just need to port this code to android or i will have to make whole android application from scratch.
View 2 Replies
View Related
Jul 27, 2010
From my application i have to open a another one application.Is there any possibility to open like this?
View 2 Replies
View Related
May 27, 2010
I understand how to use intents and startActivity() when opening another activity within my own app, but how do you start a different app? specifically:
- How do you determine if the user has the needed app installed on their device?
- How do you start that app?
- How do you pass parameters to that app?
- How do you find all this info out for a specific app (say Adobe reader, or google maps)?
View 2 Replies
View Related
Jun 14, 2010
Is there any one know how to open an App when the Android OS start up, I have to do it in an embedded system?
View 4 Replies
View Related