我是Android的新手。如何实现图像的地理标签?我自己尝试过,但没有得到预期的结果。我的代码是这样的:
@Override
protected Dialog onCreateDialog(int id) {
jpgDialog = null;;
switch(id){
case ID_JPGDIALOG:
Context mContext = this;
jpgDialog = new Dialog(mContext);
jpgDialog.setContentView(R.layout.jpgdialog);
exifText = (TextView) jpgDialog.findViewById(R.id.text);
geoText = (TextView)jpgDialog.findViewById(R.id.geotext);
bmImage = (ImageView)jpgDialog.findViewById(R.id.image);
bmOptions = new BitmapFactory.Options();
bmOptions.inSampleSize = 2;
Button okDialogButton = (Button)jpgDialog.findViewById(R.id.okdialogbutton);
okDialogButton.setOnClickListener(okDialogButtonOnClickListener);
mapviewButton = (Button)jpgDialog.findViewById(R.id.mapviewbutton);
mapviewButton.setOnClickListener(mapviewButtonOnClickListener);
break;
default:
break;
}
return jpgDialog;
}
请帮助我如何进行?