can't view pictures (camera Unhandled exception )

by zeeshan » Thu, 05 Mar 2009 21:06:29 GMT


Sponsored Links
 Hi,
i am having the camera unhandled exception (stoped unexpectedly) when
i try to view any image in the Pictures directory.

i actually want to use crop funtion like

Intent i = new Intent("com.android.camera.action.CROP");
i.setClassName("com.android.camera","com.android.camera.CropImage");

which is giving me the same error as it is related to the above
problem.
someone in the post said this is a bug in sdk-r2

is this right or do we have any other solution?


--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. How to add and remove rows in a SimpleAdapter?

Hi,
I'm using a SimpleAdapter to display two strings on each row of a
ListView and want to be able to remove rows. The ListView initially
displays correctly but when I click a row to remove it a null pointer
error is thrown. Can't seem to find any documentation or examples
anywhere. Can anybody advise on the best way to do this?

public class add_pal extends Activity {
    Button doneButton;
    private ArrayAdapter<String> palAdapter;
    List<Map<String, String>> pal_list;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.add_pal);

        pal_list = new ArrayList<Map<String, String>>();
        for (Pal p: hello_listview.arPals)
{                                                   // arPals has
already been filled
            Map<String, String> map = new HashMap<String, String>();
            map.put("Name", p.name);
            map.put("Title", p.title);
            pal_list.add(map);
        }
        String[] from = {"Name", "Title"};
        int[] to = {R.id.listItemName, R.id.listItemTitle};

        SimpleAdapter palAdapter = new
SimpleAdapter(this.getApplicationContext(),
                                                                                
                        pal_list,
                                                                                
                        R.layout.listitem,
                                                                                
                        from,
                                                                                
                        to);

        ListView listView = (ListView) findViewById(R.id.addPalList);
        listView.setAdapter(palAdapter);
        registerForContextMenu(listView);
        listView.setOnItemClickListener(listView_clicked);

    } // End of OnCreate

    AdapterView.OnItemClickListener listView_clicked = new
AdapterView.OnItemClickListener() {
        @Override
        public void onItemClick(AdapterView parent, View v, int
position, long id) {
            palAdapter.remove(palAdapter.getItem(position));
 
PalAdapter.notifyDataSetChanged();                                              
    //
This section here is the bit not working
        }
    };


} // End of class

-- 

2. how to run adb shell on windows as super user

Root your phone, perhaps? I'm only guessing; I haven't rooted a device
yet.

If com.lam.recipedisplay is your own app, you could probably add code
to copy the database to/from an alternate location such as /sdcard.

If it's not your app, well... this is why you're not given a root
shell by default ;)




-- 

3. Animation fillAfter(true) and click locations

4. new android service

5. Using services synchronously

6. Apps2sd terminal

7. Ask Jualan