Anyone get Camera#takePicture() to work on DROID?

by Mark Murphy » Sat, 28 Nov 2009 09:18:55 GMT


Sponsored Links
 


No, because I wasn't sure how I'd tell Camera#takePicture() from
launching the camera Intent.


Well, taking a picture didn't blow up. It must be there's some parameter
I need to set for the DROID that causes the SIGSEGV if I don't set it.
I'll have to poke around.

Thanks!

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com  |  http://twitter.com/commonsguy 

_Android Programming Tutorials_ Version 1.0 Available!

--



Other Threads

1. getNetworkOperator() in airplane mode always crashes

Hello World,

I'm writing an app, that should get network info on startup. I've
written the following code, however if the phone is in airplane mode,
it keeps crashing allthough I use a try/catch-statement:



public class HelloAndroid extends Activity {
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        TelephonyManager tel = (TelephonyManager)
getSystemService(Context.TELEPHONY_SERVICE);
            String imsi = "000000000000000";
            String networkOperator = "00000";

                try {
                            imsi = tel.getSubscriberId();
                            networkOperator = tel.getNetworkOperator();
                } catch (Exception e) {
                        alert("Exception",e+"");
                }

    }

                private void alert(String alerttitle, String alertmessage) {
                AlertDialog alertDialog = new
AlertDialog.Builder(this).create();
                alertDialog.setTitle(alerttitle);
                alertDialog.setMessage(alertmessage);
                    alertDialog.setButton("OK", new
DialogInterface.OnClickListener() {
                          public void onClick(DialogInterface dialog, int 
which) {
                            return;
                          } });
                    alertDialog.show();
                }
    }



I have also tried isNetworkAvailable method described at
http://www.androidsnippets.org/snippets/78/ but it crashes in airplane
mode, too.

Any hints on how to solve this?

Thanks for any help in advance!

-- 

2. Update Activity from BroadcastReceiver

Hi,

Does anyone know how I might go about accessing an Activity in an
application from a BroadcastReceiver (in the same application)?

(I have some state information in the Activity I'd like to update)

I'm not sure if there is a best practice for it.

Thanks for any help.

-- 

3. Suhu SA langsung memberikan tips n trics

4. flow of control in CTS

5. Multi-APN support on Android Eclair

6. How to install fresh Android OS in my HTC MAGIC?

7. INDOSAT Selenggarakan Bursa Ponsel Android Pertama dan Terlengkap di INDONESIA