これは私のコードです。item を押すと強制終了エラーが発生します。このプログラムで立ち往生。適切な解決策が見つかりませんでした
myList = (ListView)findViewById(R.id.myList);
Adapter = new MobileArrayAdapter(FileShare.this, MOBILE_OS);
myList.setAdapter(Adapter);
myList.setOnItemClickListener(new OnItemClickListener()
{
public void onItemClick(AdapterView<?> parent, View view, int position, long id)
{
// Toast.makeText(getApplicationContext(), "Your message here", Toast.LENGTH_SHORT).show();
Intent i = new Intent(FileShare.this, sharedView.class);
Intent pickFileIntent = new Intent();
pickFileIntent.setAction(Intent.ACTION_GET_CONTENT);
pickFileIntent.addCategory(Intent.CATEGORY_OPENABLE);
pickFileIntent.setType("*/*");
Intent chooserIntent = Intent.createChooser(pickFileIntent, getText(R.string.choosefile_title));
startActivityForResult(chooserIntent, PICK_FILE_REQUEST);
startActivity(i);
}
});