Code example for URISyntaxException

Methods: printStackTrace

0
        try { 
            handleIntent(intent);
        } catch (final IOException e) {
            e.printStackTrace();
        } catch (final URISyntaxException e) {
            e.printStackTrace();
        } catch (final JSONException e) {
            e.printStackTrace();
        } 
        initGridView(); 
    } 
 
    private void handleIntent(Intent intent) throws IOException, URISyntaxException, JSONException {
        if (Intent.ACTION_SEARCH.equals(intent.getAction())) {
            query = intent.getStringExtra(SearchManager.QUERY);
        } else { 
            query = intent.getStringExtra("query");
        } 
 
        if (query == null || query.isEmpty()) {
            query = DEFAULT_QUERY;