我正在使用Wowonder脚本社交网络,我想在我的个人资料设置中添加未指定的性别,但它在我的页面上显示错误。
<?php
$gender = ucfirst(strtolower($wo['user_profile']['gender'])); echo ($gender == 'Male') ? $wo['lang']['male'] : $wo['lang']['female'] : $wo['lang']['unspecified'];
?>
谢谢
答案 0 :(得分:2)
我在这里发布答案:
class performBackgroundtask extends AsyncTask<Void, Void, Void> {
// @Override
public void onPreExecute()
{
connectionProgressDialog = new ProgressDialog(ProcessReportsUploadActivity.this);
connectionProgressDialog.setCancelable(false);
connectionProgressDialog.setCanceledOnTouchOutside(false);
connectionProgressDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);
connectionProgressDialog.setMessage("Uploading data...");
connectionProgressDialog.show();
}
// @Override
public Void doInBackground(Void... params)
{
try
{
StartUpload();
}
catch (Exception e)
{
e.printStackTrace();
}
return null;
}
// @Override
public void onPostExecute(Void result)
{
connectionProgressDialog.dismiss();
connectionProgressDialog.cancel();
}
}