Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash application #40

Open
Hamamelis opened this issue Apr 7, 2014 · 1 comment
Open

Crash application #40

Hamamelis opened this issue Apr 7, 2014 · 1 comment

Comments

@Hamamelis
Copy link

I am trying to display a image from a URL in a ImageView, and I tried this method based on your java class it doesn't seem to work... I've crash application...

pics.xml


<com.loopj.android.image.SmartImageView android:id="@+id/my_image" />

Pics.java
import com.loopj.android.image.SmartImageView;
import android.app.Activity;
import android.os.Bundle;
public class Pics extends Activity {
@OverRide
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.pics);

    SmartImageView myImage = (SmartImageView) this.findViewById(R.id.my_image);
    myImage.setImageUrl("http://www.remoteServer.com/img/disconnect.png");
}

}

In AndroidManifest

    <activity
        android:name=".Pics"
        android:label="test" >
    </activity>
@wisdomitsol
Copy link

Are you providing width, height and internet permission

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants