ImageView Bild Speichern

A

android_jack

Neues Mitglied
0
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context=".ShowOverview" >

<ImageView
android:id="@+id/imageView1"
android:layout_width="130dp"
android:layout_height="130dp"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true"
android:layout_alignParentTop="true"
android:layout_marginEnd="84dp"
android:layout_marginRight="84dp"
android:layout_marginTop="47dp"
android:contentDescription="@string/image"
android:src="@android:drawable/ic_menu_gallery" />

<Button
android:id="@+id/button1"
android:layout_width="130dp"
android:layout_height="130dp"
android:layout_alignTop="@+id/imageView1"
android:layout_centerHorizontal="true"
android:alpha="0.0"
android:text="@string/image" />

</RelativeLayout>



public class ShowOverview extends ActionBarActivity implements OnClickListener{

private Button button;
private static Bitmap Image = null;
private ImageView imageView;

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_show_overview);

Bitmap bitmap;
bitmap = BitmapFactory.decodeResource(getResources(), R.drawable.pic3);

imageView = (ImageView) findViewById(R.id.imageView1);
imageView.setImageBitmap(bitmap);
button = (Button) findViewById(R.id.button1);
button.setOnClickListener(this);
}

@Override
public void onClick(View v) {
Intent intent = new Intent();
intent.setAction(android.content.Intent.ACTION_GET_CONTENT);
intent.setType("image/*");
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(intent);

}

}
Hallo zusammen,

ich möchte mit den oben definierten Code ein bild in ImageView Speichern. ich habe schaffe mein Gallerie zu öffnen aber weiß nicht genau wie ich ein bild in ImageView Speichern kann...

viel vieln dankk für eure bemühung.

mfg Jack
 
Zuletzt bearbeitet von einem Moderator:
klingt nach App-Entwicklung - daher hierher verschoben.
 

Ähnliche Themen

B
Antworten
6
Aufrufe
1.051
jogimuc
J
A
Antworten
10
Aufrufe
1.928
swa00
swa00
softwaretk
Antworten
3
Aufrufe
1.205
swa00
swa00
Zurück
Oben Unten