0
I’m developing a mobile app Android in the Android Studio version 3.0.1 and I’m standing by Sansung Galaxy grand duos version 4.2.2, the program runs normal but when I put the imageview
the application neither opens on mobile and already error and closes.....
I did the following I started a new app containing only the imageview
is continues the error, the strange that I put the imageview
just like color and it opens normal (the app so "crash" only with photo) I tried format as bitmap 16 bit, jpeg, png, icon and the error continues...
What can it be?
Code below:
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.example.delta.myapplication.MainActivity">
<RelativeLayout
android:id="@+id/relativeLayout"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_marginBottom="8dp"
android:layout_marginEnd="8dp"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<ImageView
android:id="@+id/imageView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_marginEnd="139dp"
android:layout_marginRight="139dp"
app:srcCompat="@drawable/vaidecerto1" />
</RelativeLayout>
</android.support.constraint.ConstraintLayout>
ps: tried image with 38KB 640x640 to 1.7M high resolution and did not work tbm, minimum required of this application Android 4.1
Place the error.
– Pablo Almeida
In android studio not even an error appears, but on mobile when I run appears my application stopped responding, ok grip and the application closes.
– gabriel
When this appears on mobile, should appear an error in the Android Studio log. See the tabs downstairs until you find.
– Pablo Almeida
problem solved... I managed to form svg and imported as Asset to drawlable folder and worked perfectly the application.. thank you so much for your help
– gabriel