[android-developers] License for Google Volley
I caught the steaming video for Google Volley yesterday. Seems impressive. Forgive the silly question, but what are the Terms of Service / licensed used for Volley? -- http://www.opgenorth.net -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] open street maps with native android apps
Give OSMDroid - https://code.google.com/p/osmdroid/. I've had luck with it in the past. On Tue, Apr 30, 2013 at 12:28 PM, Gink Labrev gink.lab...@gmail.com wrote: How to use open street maps with native android apps ? There are a lot of applications in this link, but any information about used components. http://wiki.openstreetmap.org/wiki/Android Regards, Gink -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- http://www.opgenorth.net -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Distributing google-play-services.jar
Hi all, My Google-fu is failing me at the moment. I'm wondering what the license is surrounding the google-play-services.jar. I can't seem to find a link to the license anywhere. What I'm wondering is: Can a 3rd party distribute this JAR file to users? Would a 3rd party have to acquire a license from Google to distribute this JAR? -- http://www.opgenorth.net -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Distributing google-play-services.jar
Thanks a bunch - section 3.3 seems to answer my question (i.e. a 3rd party can't distribute the JAR file). On Mon, Jan 14, 2013 at 8:56 AM, Mark Murphy mmur...@commonsware.com wrote: You will need to delete the Google Play Services entry in your SDK Manager and reinstall it to see the license agreement. On a quick scan, it appears to be the same as what you now have to agree to in order to download the SDK in the first place. On Mon, Jan 14, 2013 at 10:49 AM, Tom Opgenorth t...@opgenorth.net wrote: Hi all, My Google-fu is failing me at the moment. I'm wondering what the license is surrounding the google-play-services.jar. I can't seem to find a link to the license anywhere. What I'm wondering is: Can a 3rd party distribute this JAR file to users? Would a 3rd party have to acquire a license from Google to distribute this JAR? -- http://www.opgenorth.net -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Localized Android Question-and-Answer Sites: http://www.andglobe.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- http://www.opgenorth.net -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Declaring fragments in XML
Hello all, When adding a fragment to an XML layout file, it seems that one can use either the class attribute or the android:name attribute to declare the fragment class, i.e. both : fragment class=my.awesome.fragment / or fragment android:name=my.awesome.fragment / seem to work. Is there any difference between the two? Which attribute should a fellow prefer: class or android:name? -- http://www.opgenorth.net -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Localization Question
Hi all, I think I have a misunderstanding on my part about localization/resource location that I'm hoping someone can clarify for me. So I have a simple layout, which will has an ImageView (will display just a flag). I have the following folders/files in my res folder: drawable/flag.png (the flag of the United Nations) drawable-de/flag.png (the Bundesdienstflagge of Germany) drawable-en-rCA/flag.png (the Maple Leaf of Canada) drawable-fr/flag.png (the French Tricolor). Here is the layout for my ImageView: ImageView android:id=@+id/flagImage android:layout_width=wrap_content android:layout_height=wrap_content android:src=@drawable/flag200 / Now, I run the app in the emulator. The first time it runs, the locale is set to en-US, and I see the flag of the United Nations. This is what I would expecte as this is the default resource. Now I change the locale (via the Default Locale) app in the emulator, and change the locale to de. I see the German flag. This is also expected. Now here is where I'm confused. I change the locale to just en, and now my app shows the Canadian flag. Should my app not be displaying the UN Flag? i.e. is not the localization path/chain as follows for a locale of en: 1. Look for drawable/en folder (not found) 2. Use the default resources in drawable TIA for any help. -- http://www.opgenorth.net -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] AndRoid Application
Checkout Xamarin's Mono for Android: http://android.xamarin.com/ On Sat, Sep 10, 2011 at 02:47, abc xyz axabc9...@gmail.com wrote: can any one tall me how to develop Android Applications in DotNet -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- http://www.opgenorth.net -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Mono for Android
There is only one book that I'm aware of, and I don't know if it got published / will be published or not. Your best bet: http://android.xamarin.com/Community On Fri, Aug 26, 2011 at 22:11, Mousam Kumar m.ku...@covenantsystems.com wrote: Hello Friends, I am new to android based application. I want to use Mono for Android to create these apps. Would you please suggest me some sites books which will be helpful for a begginer like me. Thanks Mousam -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- http://www.opgenorth.net -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: how to show JSON data into list view
+1 to this - it is exactly the path I took. It had the advantage too, that when I added in an offline cache, I could reuse the ArrayAdapter to display data from either JSON or SQLite. Plus it makes the code a whole lot more readable. On Sun, Feb 27, 2011 at 09:09, Rishi Kumar reeesh...@gmail.com wrote: Can I suggest that you separate the JSON parsing and the List View display into separate components of your code? I'd recommend that you do a translation between JSON and your domain model (Java beans) and then use those objects to interact with your Array Adapter. That way you can separate the implementation details of data sourcing and display into separate concerns. This will also shield you from changes in the source JSON structure as well. If you go down this path, you can then write your own ArrayAdapter that works off your business objects. e.g. public class MyArrayAdapter extends ArrayAdapterMyBusinessObject In this object, you can store a private member points to the list of business objects. private ListMyBusinessObject list; Then its just a matter of pulling out the right object when the view is called and then mapping that to the fields that are in your list view. Hope that helps. -rishi -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- http://www.opgenorth.net -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Dotnet developer can develop Android apps
Check out MonoDroid: http://monodroid.net/ On Mon, Feb 7, 2011 at 13:50, Vijay vijay.vijay...@gmail.com wrote: Hi I am Vijay working as dotnet developer.. I am interested to work on Android... really I flat for the OS.. So how can I develop Android applications using dotnet.. please let me know.. My questions.. 1. To develop Android applications, is Java knowledge must? 2. Can I develop Android apps on Windows OS using dotnet or Visual Studio? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- http://www.opgenorth.net -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Boardroom Projectors
This is probably not the best place to ask this question, but thought I would try anyway. I'm looking to do an introductory presentation to a local user group on Android programming. I was wondering if there was a way to attach or hook-up an ADP1/HTC Dream to projector or something, so that people could actually see an application running on a real device, rather than the emulator? Also, if anybody has some presentations they'd like to share, that would be great too. Thanks. -- http://www.opgenorth.net -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Boardroom Projectors
Cool, thanks a bunch for the info. dr...@screen / DroidEx look like exactly what I'm interested in. On Tue, Apr 27, 2010 at 12:40, Mark Murphy mmur...@commonsware.com wrote: Tom Opgenorth wrote: This is probably not the best place to ask this question, but thought I would try anyway. I'm looking to do an introductory presentation to a local user group on Android programming. I was wondering if there was a way to attach or hook-up an ADP1/HTC Dream to projector or something, so that people could actually see an application running on a real device, rather than the emulator? For a software projector, you can use dr...@screen: http://blog.ribomation.com/2010/01/21/droidscreen/ or the earlier DroidEx: http://github.com/commonsguy/droidex If you need to show the full device (case, hand holding it, etc.), you'll need a dedicated projector, like an ELMO (no relation to the Sesame Street character). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.0 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- http://www.opgenorth.net -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Managing Google apiKeys
I'm looking to automate my build. But I'm a .NET guy by day, so am not 100% familiar with all the Java tools yet. I've heard of Hudson (highly regarded amongst my peers), so I will definitely check this out. On Sat, Apr 10, 2010 at 02:49, Hugo Visser botte...@gmail.com wrote: Another way to approach this is to build your releases in an automated way. So you run all your dev stuff from Eclipse, and when it's time to release you build it automated. I'm using hudson for this and I've written a post on the hudson ci blog about it here: http://blog.hudson-ci.org/content/getting-started-building-android-apps-hudson I use this method to replace the maps key with the release one and to disable the debugging attribute that I might have left in the AndroidManifest.xml. After building Hudson automatically deploys my app to different emulators to check if my app installs on all versions of Android that I like to support. Hope that helps. Hugo On Apr 10, 3:12 am, Mark Murphy mmur...@commonsware.com wrote: Tom Opgenorth wrote: I'm developing on my laptop. I have a colleague developing on his. We both have different debug.store files, which implies a different apiKey for each of us, and different from the production apiKey. So does this mean that we'd have to have three copies of the layout file: one for my debug key, one for my colleagues debug key, and then one for production? Or perhaps you sync your debug.store files. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy Android Training...At Your Office:http://commonsware.com/training -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe, reply using remove me as the subject. -- http://www.opgenorth.net -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Managing Google apiKeys
On Fri, Apr 9, 2010 at 19:12, Mark Murphy mmur...@commonsware.com wrote: Or perhaps you sync your debug.store files. That too would work! Is there a way to, on a project by project basis, specify which debug.store file to use? i.e. does it always have to be ~/.android/debug.store? -- http://www.opgenorth.net -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe, reply using remove me as the subject.
[android-developers] Managing Google apiKeys
Hi all, Perhaps I'm missing the boat here on something, so any advice/feedback would be appreciated. I have a simple app that uses a Google MapView. Now in the layout file for my map activity, I created an apiKey for the debug keystore and use that. However when I want to deploy my app, I need a seperate apiKey for production (based on when I sign my application), correct? What I'm wondering is how do people manage these two apiKeys. When developing I want to use the emulator and the debug apiKey, but when I'm deploying / doing some integration testing with my phone, I want to use the production apiKey. To me, it seems that I need to remember before compiling for production, to swap out the apiKeys in my layout file. A very error prone process given my bad memory. Is there a better way to manage this? -- http://www.opgenorth.net -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe, reply using remove me as the subject.
Re: [android-developers] Managing Google apiKeys
Putting the apiKey in a settings file, as Wayne King suggests, seem to be the simplest idea. On Fri, Apr 9, 2010 at 16:53, Mark Murphy mmur...@commonsware.com wrote: Another related option would be to have two copies of the layout containing the MapView, one with the debug key and one with the production key, and use isDebug() to choose which one to load. Hmmm, interesting idea. Now, let's expand this scenario: I'm developing on my laptop. I have a colleague developing on his. We both have different debug.store files, which implies a different apiKey for each of us, and different from the production apiKey. So does this mean that we'd have to have three copies of the layout file: one for my debug key, one for my colleagues debug key, and then one for production? -- http://www.opgenorth.net -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe, reply using remove me as the subject.
Re: [android-developers] How to update G1 firmware version to 2.0?
Thanks for the reply all. I was more curious than anything. On Wed, Dec 9, 2009 at 14:53, Ryan Beesley ryan.bees...@swypeinc.com wrote: I don't think we're waiting on Google. Seems like the issue is more likely with HTC since we don't have an ADP release yet and the 2.0 source has been released. Even once ADP devices have been updated, then the next step is with T-Moble. It's not just a question of when, but also if. If you need 2.0 for testing purposes, you can run hobbled versions built on AOSP, but they need updated drivers to function fully. /Ryan -- http://www.opgenorth.net -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to update G1 firmware version to 2.0?
On Fri, Nov 27, 2009 at 18:35, Mark Murphy mmur...@commonsware.com wrote: Android 2.0 has not been officially released for the T-Mobile G1. Have we had any word of when Android 2.0 will be release for the T-Mobile G1? -- http://www.opgenorth.net -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Where are the HTC dev phone 1 image package links?
It seems that you can download the 1.6 images from here: http://developer.htc.com/google-io-device.html#s3 On Thu, Dec 3, 2009 at 22:25, Chris Sokol adse...@slbsoftware.com wrote: The instructions for setting up the ADP1 direct me to the HTC Developer Center to download system images. That page, at http://developer.htc.com/adp.html, does not have any links to system images - it says it does, but it does not. Does anyone know where I can find them? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- http://www.opgenorth.net -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Where are the HTC dev phone 1 image package links?
Woops, my bad. Those aren't for the ADP1, but for the Magic. Does anybody know where a guy can get the 1.6 images for the Dream? The links on HTC's page are still dead. On Tue, Dec 8, 2009 at 18:04, Tom Opgenorth opgeno...@gmail.com wrote: It seems that you can download the 1.6 images from here: http://developer.htc.com/google-io-device.html#s3 On Thu, Dec 3, 2009 at 22:25, Chris Sokol adse...@slbsoftware.com wrote: The instructions for setting up the ADP1 direct me to the HTC Developer Center to download system images. That page, at http://developer.htc.com/adp.html, does not have any links to system images - it says it does, but it does not. Does anyone know where I can find them? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- http://www.opgenorth.net -- http://www.opgenorth.net -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Buying a anroid Dev in Canada?
Yup - it is a crazy fee, depending on the exchange rate it's about half the cost of the phone. When I got my ADP1 I had it shipped to my in-laws in the U.S. I brought it home with me on a visit. If you're gone from Canada more than a week you get a $750.00 duty free allowance so you're okay there. But it's probably a moot point right now as it seems that the ADP1 is out of stock. On Fri, Jul 24, 2009 at 19:41, Tahnoktah...@gmail.com wrote: Hello I have been looking into purchasing a dev phone and I saw some posts here about a ridiculous shipping fee to Canada. Is that still the case? I'm hesitant to get a subscription to the marketplace just to see the price. -- http://www.opgenorth.net --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: A $400.00 learning experience...
Actually, you can activate the device without a SIM card. I documented what I did, perhaps it will be of value to you: http://www.opgenorth.net/getting-starting-with-my-adp1.aspx. On Sun, May 24, 2009 at 00:52, Kent Loobey k...@uoregon.edu wrote: Because I wanted to develop an android application that ran on a G1 device I bought an Android Dev 1 Phone. I thought that having the actual device in hand would help me get a better feel for the device as I worked on the application. I don't personally use a phone that much and don't have any need for a cel phone. So now I have the device but can't use it without opening an account with T- Mobile. It seems that Google requires the G1 have a SIM installed to activate the device. I am really disappointed in the lack of honesty in this matter. The G1 device isn't really unlocked and how open is it if you have to have an account with a specific provider. -- http://www.opgenorth.net --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] startActivityForResult/onActivityResult question
Hello all, I'm new to Android development, and am a bit confused here. I'm hoping someone can help me out. Please forgive me as I cross post this to android-developers - I tried on android-begginers last week but got no response. Anyway, I've got a very simple Activity with one EditText and one Button. Lets call it MyActivity. Now, when I click on the button on MyActivity, I want to take a picture using the camera. For the sake of this e-mail, lets call the activity that gets spawned when I click on the button CameraActivity. Here is how I've setup my button: Button takePictureButton = (Button) this.findViewById(R.id.receipt_take_picture_button); takePictureButton.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { ContentValues values = new ContentValues(); values.put(Media.TITLE, IMAGE); values.put(Media.DESCRIPTION, Image Captured by Camera); Uri uri = getContentResolver().insert(Media.EXTERNAL_CONTENT_URI, values); Intent i = new Intent(android.media.action.IMAGE_CAPTURE); i.putExtra(output, uri); startActivityForResult(i, ACTIVITY_TAKE_PICTURE_WITH_INTENT); } }); As I understand it, click the button will cause MyActivity to start up CameraActivity, which is just the default camera application, to take a picture. Because I've used startActivityForResult, when CameraActivity finishes, MyActivity should be notified via it's onActivityResult. Below is how I've coded it up: I've defined my onActivityResult as follows: @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); switch (requestCode) { case (ACTIVITY_TAKE_PICTURE_WITH_INTENT): Log.d(TAG, WOW!); default: break; } } So, what has me confused is this: I would expect onActivityResult to be called AFTER I take a picture, i.e. when I click on the picture button. Instead, it seems to get called immediately: I click on the takeAPictureButton, the camera activity starts up at about the same time the code in onActivityResult gets fired. Am I missing something here? TIA -- http://www.opgenorth.net --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---