backstage with variable actionid, which is used to determine executive action. according to the value of actionid read xml file in the
seeking detailed answers , online .
------ Solution ------------------------------------ --------
different action it jumps to an action processing inside ?
As for reading xml, change it according to
public Map<String, String> getProvinceMap() {
Map<String, String> proMap = new HashMap<String, String>();
try {
InputStream in = DBHelper.getDBHelper().getContext().getResources()
.getAssets().open("province.xml");
InputStream is = IOHelper.fromInputStreamToInputStreamInCharset(in,"utf-8");
SAXReader sr = new SAXReader();
Document document = sr.read(is);
Element root = document.getRootElement();
List<?> elementlist = root.elements("city");
for (Object obj : elementlist) {
Element row = (Element) obj;
String quName = row.attribute("quName").getText();
String pyName = row.attribute("pyName").getText();
proMap.put(quName, pyName);
}
} catch (Exception e) {
Log.e("tag", "read configure error");
}
return proMap;
}
------ For reference only ----------------------------------- ----
- ----- For reference only ---------------------------------------
Reply to the second floor :
useless you this , in addition to login and exit the screen useless to other users, passwords are out of action with a blocker , there is in my interceptor method to obtain executive action name. But your methods or a reference value, thank you.
没有评论:
发表评论