save - I need some help on saving pictures to android in a dynamic folder -
this current code: http://pastebin.com/yfav45bd
i want able save "bldg front(before).jpg" in specific folder lets "day1" example name of folder. right scattered in public folder(the .jpg's files)
file picturesdirectory = environment.getexternalstoragepublicdirectory(environment.directory_pictures); ..... ..... private file imagefile; ....... ....... ....... switch (v.getid()) { case r.id.gcpic1: imagefile = new file(picturesdirectory, "bldg front(before).jpg"); intent intent1 = new intent(android.provider.mediastore.action_image_capture); intent1.putextra(mediastore.extra_output, uri.fromfile(imagefile)); startactivityforresult(intent1, 1);break; case r.id.gcpic2:
i want simple "addtional code" this, add have.
if want save there, maybe help: http://developer.android.com/guide/topics/data/data-storage.html directory created there:
file dir = this.getdir("name", context.mode_private);
Comments
Post a Comment