Android :: Application Chrashes After Share Intent
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
Sep 14, 2010
I'm creating an app for posting pictures to a particular proprietary social site. I have it working with the camera and the IMAGE_CAPTURE intent. I want to add the ability to do this from pictures in the Gallery. I seem to have everything wired up, but I'm scratching my head how to get the image from the intent when my activity is lauched from the Gallery's share menu. In onCreate, the code getIntent().getDataType() returns "image/jpeg", as expected, but how to I get the picture from the Gallery into my ImageView?
The code at http://stackoverflow.com/questions/2206397/android-intent-action-send... suggests how the Gallery app is adding the picture by means of emailIntent.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(png)); but on my end, it's not clear to me at all how to get that Uri from the intent.
View 5 Replies
View Related
May 22, 2010
I read here ( http://androidlittle.blogspot.com/2009/08/intent-filter-for-share-link.html ) what intent-filter is required to handle the "share link" intent that the android web browser sends.Can anyone tell me what I'm doing wrong? My main (launcher) activity works fine, so I assume there is no issue with installation on the emulator.
View 1 Replies
View Related
Mar 8, 2010
i made news applicaion in android using RSS feed and now i want to share some news ie i want to upload links from my app to facebook, twitter etc.Is it possible?
View 2 Replies
View Related
Aug 6, 2010
Here is my issue :
I have 2 phones and I don't want to pay twice for an application on the market. Is there a way to share an application I have downloaded and payed for, once, onto the other phone?
View 1 Replies
View Related
Sep 3, 2010
I plan the weekend trip. My friend ask me to share the photo while trip. I can take the picture with my smartphone, and 3G internet connection is available on my phone. Is there a photo sharing application?
View 4 Replies
View Related
Jun 22, 2009
I want user to take picture using camera application. Then send the image to my application through "share". Does anyone knows how to do that?
View 2 Replies
View Related
Mar 16, 2010
I would like to share a cache file across activities, which are running in different processes but in a same application.So, is there any way to make it thread safe (probably not "thread safe", should we call it "activities safe" or "process safe" ?
View 2 Replies
View Related
Oct 2, 2009
I have an application for which I am planning to release both a free and a paid version. I found that this will require the two versions of the application to each have different package names.
When a user upgrades from the free version to the paid version, the paid version needs to be able to access the database built by the free version. I am trying to understand the best way to make sure that upgrade does not disrupt the user's data.
I have read that the AndroidManifest file setting for shared user id should allow both applications to access the same data. I don't need the applications to both be running simultaneously, as I expect the user will uninstall the free version after upgrading to the paid version. However I need to make sure that if possible the user's data is not lost and is still accessible and usable by the paid version of the application.
I have read about a problem with the shared user id where uninstalling one application will cause the other shared application to stop working because its permissions get deleted, (see details at http://code.google.com/p/android/issues/detail?id=2773 ) Apparently this issue is fixed in doughnut, but since all the currently deployed android phones do not have doughnut yet, this still seems like a significant problem.
In addition to the database information, I would also like to preserve the user's default shared preferences settings after the upgrade. However the default shared preference settings are not as critical as the data in the database.
View 12 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 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
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
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
Jan 5, 2010
I am just wondering if anyone would like to share pics of how you have you 7 screens setup.
View 49 Replies
View Related
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
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
May 2, 2010
im trying to find the code to launch the camera app and I cant figure it out.
View 3 Replies
View Related
Mar 25, 2010
I am creating an application that checks the installation of a package and exits after launching the market-place with its id.
When I try to launch market place with id of an application say com.mybrowser.android by throwing an intent android.intent.action.VIEW with url: market://details?id=com.mybrowser.android, the market place application does launches but crashes after launch.
The application com.mybrowser.android doesn't exist on the market- place.
MyApplication is my application.
CODE:....................
However, when I try to launch the market place for a package that exists in the market place say com.opera.mini.android, everything works. Here is the log of this case:
CODE:.....................
View 6 Replies
View Related