Ejemplo n.º 1
0
 @Override
 protected void onActivityResult(int requestCode, int resultCode, Intent data) {
   // TODO Auto-generated method stub
   if (requestCode == 5) {
     if (resultCode == RESULT_OK) {
       settings = (ImageSetting) data.getSerializableExtra("settings");
       Log.d("HELP-SITE", settings.getSite() + " -----" + settings.getSize());
       startSearch();
       // Toast.makeText(this, settings.getSize(), Toast.LENGTH_SHORT).show();
     }
   }
 }
Ejemplo n.º 2
0
 private String setUrlWithImageSettings() {
   String url = "";
   if (settings.getSize() != null) url += "&imgsz=" + settings.getSize();
   if (settings.getColor() != null) url += "&imgcolor=" + settings.getColor();
   if (settings.getType() != null) url += "&imgtype=" + settings.getType();
   if (settings.getSite() != null) url += "&as_sitesearch=" + settings.getSite();
   return url;
 }