Reputation: 1556
Is there any standalone ( separate from Eclipse or IDE specific ) tool that can check an AndroidManifest.xml
file for errors?
I had an annoying problem recently where I typed reciever
when it should have been receiver
( i before e except after c...). Nothing to indicate the error other than a failure on run time.
Upvotes: 1
Views: 4595
Reputation: 1
public ArrayList parseJSON(String result) {
ArrayList users = new ArrayList(); try {
JSONArray jArray = new JSONArray(result);
for (int i = 0; i < jArray.length(); i++) {
JSONObject json_data = jArray.getJSONObject(i);
Users user = new Users();
user.setId(json_data.getInt("id"));
user.setName(json_data.getString("name"));
user.setPlace(json_data.getString("place"));
users.add(user);
}
} catch (JSONException e) {
Log.e("log_tag", "Error parsing data " + e.toString());
}
return users;
}
Upvotes: -1
Reputation: 1007296
Android's Lint is available from the command line. Whether it catches that specific error, I can't say.
Upvotes: 2
Reputation: 3255
Well Eclipse doesn't really support XML editing out of the box, and Android doesn't have a syntax checker for XML files. I guess they expect people to use the UI builder.
You'll need to install a third party plugin, none of which, I believe, are specifically catered to aid in Android XML files.
Upvotes: 1