2012-01-16 38 views

回答

0

我已經找到了解決辦法:

public class Etiqueta extends Activity { 
private CharSequence frase; 
private EditText texto; 


/** Called when the activity is first created. */ 
@Override 
public void onCreate(Bundle savedInstanceState) { 
    super.onCreate(savedInstanceState); 
    setContentView(R.layout.main); 
    texto = (EditText) findViewById(R.id.editText1); 
    Uri data = getIntent().getData(); 
    if (data==null) { } else { 
    String datos=data.toString(); 
    texto.setText(datos); 
    } 
} 


} 
相關問題