What do you want to save?
Add Code snippet
New code examples
-
Other 2022-02-19 13:10:37
how to share multiple images in kotlin
Intent intent = new Intent(); intent.setAction(Intent.ACTION_SEND_MULTIPLE); intent.putExtra(Intent.EXTRA_SUBJECT, "Here are some files."); intent.setType("image/jpeg"); /* This example is sharing jpeg images. */ ArrayList<Uri> ... Add solution -
Other 2022-01-21 23:10:24
how to select a audio from android programmaticly
You can put below codes in your project when you want to select audio. Intent intent_upload = new Intent(); intent_upload.setType("audio/*"); intent_upload.setAction(Intent.ACTION_GET_CONTENT); startActivityForResult(intent_upload,1); And overr... Add solution -
Other 2021-11-12 05:48:08
upload photo to server and view in api android
@Override public void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); if (requestCode == 1) if (resultCode == Activity.RESULT_OK) { Uri selectedImage = dat... Add solution -
Java 2021-11-04 02:27:06
how to get path of captured image in android
protected void onActivityResult(int requestCode, int resultCode, Intent data) { if (requestCode == CAMERA_REQUEST && resultCode == RESULT_OK) { Bitmap photo = (Bitmap) data.getExtras().get("data"); imageView.setIma... Add solution -
Other 2021-10-07 11:25:02
API/Webservices with RestAssured Library?
import static io.restassured.RestAssured.* ; URI uri = new URI(" ... / methods(get, post)”) GET; Response response = given().accept(ContentType.JSON). when().get(URI); response. then().assertThat().statusCode(200). and().assertThat().ContentTyp... Add solution