193
votes
6answers
129k views

How can I open a URL in Android's web browser from my application?

How to open an URL from code in the built-in web browser rather than within my application? I tried this: Intent myIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(strURL)); ...
162
votes
8answers
80k views

Android: Sending an Intent to Browser to open specific URL

I'm just wondering how to fire up an Intent to the phone's browser to Open an specific URL and display it. Can someone please give a hint? Is there also a way to pass coords directly to google maps ...
141
votes
14answers
114k views

How to send an object from one Android Activity to another using Intents?

How can I pass an object of a custom type from one Activity to another using the putExtra() method of the class Intent?
112
votes
16answers
106k views

How to pass object from one activity to another in Android

I am trying to work on sending an object of my customer class from one Activity and display in another Activity. The code for the customer class: public class Customer { private String ...
111
votes
9answers
184k views

Using Intent in an Android application to show another activity

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: public class ...
108
votes
5answers
100k views

How to get extra data from intent in android?

How can I send data from one activity (intent) to another? I use this code to send data: Intent i=new Intent(context,SendMessage.class); i.putExtra("id", user.getUserAccountId()+""); ...
96
votes
9answers
91k views

Android: Go back to previous activity

I want to do something simple on android app. How is it possible to go back to a previous activity. What code do I need to go back to previous activity
95
votes
8answers
97k views

Get/pick an image from Android's built-in Gallery app programmatically

I am trying to open an image / picture in the Gallery built-in app from inside my application. I have a URI of the picture (the picture is located on the SD card). Do you have any suggestions?
66
votes
2answers
54k views

Android, How to manage start activity for result?

In my activity, i'm calling second activity from main activity by start Activity For Result. In my second activity there are some methods that finish this activity (maybe without result), however, ...
66
votes
4answers
43k views

Android Launch an application from another application

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 ...
63
votes
10answers
70k views

Android ACTION_IMAGE_CAPTURE Intent

We are trying to use the native camera app to let the user take a new picture. It works just fine if we leave out the EXTRA_OUTPUT extra and returns the small Bitmap image. However, if we ...
58
votes
1answer
45k views

Android: Capturing the return of an activity

I have a question regarding launching new activities. It boils down to this. I have 3 tabs on a view A) contains gMap activity B) camera activity C) some random text fields. Requirement is that ...
51
votes
1answer
28k views

Android Respond To URL in Intent

I want my intent to be launched when the user goes to a certain url: for example, the android market does this with http://market.android.com/ urls. so does youtube. I want mine to do that too.
46
votes
4answers
45k views

Unable to start Service Intent

I have a service class. I have exported this class to jar and I have embed the jar in my client app. When needed, I call the service class. When I try to do this, I get the following error: Unable ...
43
votes
3answers
14k views

How to launch the market intent in 'Give Feedback' mode on android

I have just written a game for the Android market and would like to remind my customers to leave feeback on the market for the application (especially the demo version.) Is there any way to launch the ...

1 2 3 4 5 631
15 30 50 per page