2011-01-31 5 views

答えて

2

これらは、私は私のアプリでこれを使用

* No support for placing or receiving actual phone calls. You can simulate phone calls (placed and received) through the emulator console, however. 
* No support for USB connections 
* No support for camera/video capture (input). 
* No support for device-attached headphones 
* No support for determining connected state 
* No support for determining battery charge level and AC charging state 
* No support for determining SD card insert/eject 
* No support for Bluetooth 
0

エミュレータ制限事項エミュレータの制限事項です....

try { 
    File myFile = new File("filepath"); 
    MimeTypeMap mime = MimeTypeMap.getSingleton(); 
    String ext=myFile.getName().substring(myFile.getName().lastIndexOf(".")+1); 
    String type = mime.getMimeTypeFromExtension(ext); 
    Intent sharingIntent = new Intent("android.intent.action.SEND"); 
    sharingIntent.setType(type); 
     sharingIntent.putExtra("android.intent.extra.STREAM",Uri.fromFile(myFile)); 
    startActivity(Intent.createChooser(sharingIntent,"Share using")); 
} 
catch(Exception e){ 
    Toast.makeText(getBaseContext(), e.getMessage(),Toast.LENGTH_SHORT).show(); 
} 
関連する問題