Retrieving image from firebase (Realtime Database)2019 Community Moderator ElectionApp dies with “Sending signal.” but no exception or other infoApp dies with “Sending signal. SIG: 9” while rotatingCreate ArrayList from arrayHow do I call one constructor from another in Java?Lazy load of images in ListViewHow to get an enum value from a string value in Java?Stop EditText from gaining focus at Activity startupbufferedReader for URL throws IOExceptionAndroid ksoap2 webs service returning falseGet children using orderByChild-equalsTo in Firebase-AndroidAdding Social Media Share Logic From Firebase in AndroidUpdated global variables does not reflect inside ValueEventListener's onCancelled method

Is the differential, dp, exact or not?

Why do phishing e-mails use faked e-mail addresses instead of the real one?

If nine coins are tossed, what is the probability that the number of heads is even?

Is it appropriate to ask a former professor to order a library book for me through ILL?

How could it rain oil?

Too soon for a plot twist?

How can I portion out frozen cookie dough?

Why isn't P and P/poly trivially the same?

I am the person who abides by rules but breaks the rules . Who am I

Was this cameo in Captain Marvel computer generated?

Did Amazon pay $0 in taxes last year?

Are small insurances worth it?

What is the orbit and expected lifetime of Crew Dragon trunk?

What is the oldest European royal house?

Cycles on the torus

Should I file my taxes? No income, unemployed, but paid 2k in student loan interest

What does "rhumatis" mean?

What would be the most expensive material to an intergalactic society?

Is there a math expression equivalent to the conditional ternary operator?

Does the US political system, in principle, allow for a no-party system?

In Diabelli's "Duet in D" for piano, what are these brackets on chords that look like vertical slurs?

After Brexit, will the EU recognize British passports that are valid for more than ten years?

Why restrict private health insurance?

How to educate team mate to take screenshots for bugs with out unwanted stuff



Retrieving image from firebase (Realtime Database)



2019 Community Moderator ElectionApp dies with “Sending signal.” but no exception or other infoApp dies with “Sending signal. SIG: 9” while rotatingCreate ArrayList from arrayHow do I call one constructor from another in Java?Lazy load of images in ListViewHow to get an enum value from a string value in Java?Stop EditText from gaining focus at Activity startupbufferedReader for URL throws IOExceptionAndroid ksoap2 webs service returning falseGet children using orderByChild-equalsTo in Firebase-AndroidAdding Social Media Share Logic From Firebase in AndroidUpdated global variables does not reflect inside ValueEventListener's onCancelled method










0















I'm trying to retrieve an image from firebase realtime database, but my app keeps crashing when opening it.



Database Structure:



[https://i.stack.imgur.com/iWOEK.png][1]



Following is my java code:



public class main2 extends AppCompatActivity 
TextView txt, url;
Button btn;
ImageView img;
private FirebaseDatabase firebaseDatabase = FirebaseDatabase.getInstance();
private DatabaseReference reference = firebaseDatabase.getReference();
private DatabaseReference childreference = reference.child("url");

@Override
public void onCreate(Bundle savedInstanceState)
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main2);

url = findViewById(R.id.text);
img = findViewById(R.id.image);

txt = (TextView) findViewById(R.id.mytext);
btn = (Button) findViewById(R.id.mybutton);

btn.setOnClickListener(new View.OnClickListener()
@Override
public void onClick(View v)
btn.setVisibility(View.GONE);
txt.setText("JOINED, Details will be send by notification.");




);




@Override
protected void onStart()
super.onStart();
childreference.addValueEventListener(new ValueEventListener()
@Override
public void onDataChange(@NonNull DataSnapshot dataSnapshot)
String message = dataSnapshot.getValue(String.class);
url.setText(message);
Picasso.get()
.load(message)
.into(img);


@Override
public void onCancelled(@NonNull DatabaseError databaseError)


);




Logcat :



I/Process: Sending signal. PID: 8763 SIG: 9










share|improve this question
























  • If the app crashes, there is a stack trace. Please look that up on logcat, and add it to your question. Please also responde with @AlexMamo

    – Alex Mamo
    2 days ago











  • @AlexMamo Only this page while opening crashes, Else the whole app is working fine.

    – user2294087
    2 days ago











  • Ok, I understand. Please add the error to your question.

    – Alex Mamo
    2 days ago











  • Whats in the logcat/stacktrace?

    – Tarun
    2 days ago












  • @Tarun I/Process: Sending signal. PID: 7910 SIG: 9

    – user2294087
    2 days ago















0















I'm trying to retrieve an image from firebase realtime database, but my app keeps crashing when opening it.



Database Structure:



[https://i.stack.imgur.com/iWOEK.png][1]



Following is my java code:



public class main2 extends AppCompatActivity 
TextView txt, url;
Button btn;
ImageView img;
private FirebaseDatabase firebaseDatabase = FirebaseDatabase.getInstance();
private DatabaseReference reference = firebaseDatabase.getReference();
private DatabaseReference childreference = reference.child("url");

@Override
public void onCreate(Bundle savedInstanceState)
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main2);

url = findViewById(R.id.text);
img = findViewById(R.id.image);

txt = (TextView) findViewById(R.id.mytext);
btn = (Button) findViewById(R.id.mybutton);

btn.setOnClickListener(new View.OnClickListener()
@Override
public void onClick(View v)
btn.setVisibility(View.GONE);
txt.setText("JOINED, Details will be send by notification.");




);




@Override
protected void onStart()
super.onStart();
childreference.addValueEventListener(new ValueEventListener()
@Override
public void onDataChange(@NonNull DataSnapshot dataSnapshot)
String message = dataSnapshot.getValue(String.class);
url.setText(message);
Picasso.get()
.load(message)
.into(img);


@Override
public void onCancelled(@NonNull DatabaseError databaseError)


);




Logcat :



I/Process: Sending signal. PID: 8763 SIG: 9










share|improve this question
























  • If the app crashes, there is a stack trace. Please look that up on logcat, and add it to your question. Please also responde with @AlexMamo

    – Alex Mamo
    2 days ago











  • @AlexMamo Only this page while opening crashes, Else the whole app is working fine.

    – user2294087
    2 days ago











  • Ok, I understand. Please add the error to your question.

    – Alex Mamo
    2 days ago











  • Whats in the logcat/stacktrace?

    – Tarun
    2 days ago












  • @Tarun I/Process: Sending signal. PID: 7910 SIG: 9

    – user2294087
    2 days ago













0












0








0








I'm trying to retrieve an image from firebase realtime database, but my app keeps crashing when opening it.



Database Structure:



[https://i.stack.imgur.com/iWOEK.png][1]



Following is my java code:



public class main2 extends AppCompatActivity 
TextView txt, url;
Button btn;
ImageView img;
private FirebaseDatabase firebaseDatabase = FirebaseDatabase.getInstance();
private DatabaseReference reference = firebaseDatabase.getReference();
private DatabaseReference childreference = reference.child("url");

@Override
public void onCreate(Bundle savedInstanceState)
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main2);

url = findViewById(R.id.text);
img = findViewById(R.id.image);

txt = (TextView) findViewById(R.id.mytext);
btn = (Button) findViewById(R.id.mybutton);

btn.setOnClickListener(new View.OnClickListener()
@Override
public void onClick(View v)
btn.setVisibility(View.GONE);
txt.setText("JOINED, Details will be send by notification.");




);




@Override
protected void onStart()
super.onStart();
childreference.addValueEventListener(new ValueEventListener()
@Override
public void onDataChange(@NonNull DataSnapshot dataSnapshot)
String message = dataSnapshot.getValue(String.class);
url.setText(message);
Picasso.get()
.load(message)
.into(img);


@Override
public void onCancelled(@NonNull DatabaseError databaseError)


);




Logcat :



I/Process: Sending signal. PID: 8763 SIG: 9










share|improve this question
















I'm trying to retrieve an image from firebase realtime database, but my app keeps crashing when opening it.



Database Structure:



[https://i.stack.imgur.com/iWOEK.png][1]



Following is my java code:



public class main2 extends AppCompatActivity 
TextView txt, url;
Button btn;
ImageView img;
private FirebaseDatabase firebaseDatabase = FirebaseDatabase.getInstance();
private DatabaseReference reference = firebaseDatabase.getReference();
private DatabaseReference childreference = reference.child("url");

@Override
public void onCreate(Bundle savedInstanceState)
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main2);

url = findViewById(R.id.text);
img = findViewById(R.id.image);

txt = (TextView) findViewById(R.id.mytext);
btn = (Button) findViewById(R.id.mybutton);

btn.setOnClickListener(new View.OnClickListener()
@Override
public void onClick(View v)
btn.setVisibility(View.GONE);
txt.setText("JOINED, Details will be send by notification.");




);




@Override
protected void onStart()
super.onStart();
childreference.addValueEventListener(new ValueEventListener()
@Override
public void onDataChange(@NonNull DataSnapshot dataSnapshot)
String message = dataSnapshot.getValue(String.class);
url.setText(message);
Picasso.get()
.load(message)
.into(img);


@Override
public void onCancelled(@NonNull DatabaseError databaseError)


);




Logcat :



I/Process: Sending signal. PID: 8763 SIG: 9







java android android-fragments firebase-realtime-database






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited yesterday









Zoe

12.3k74582




12.3k74582










asked 2 days ago









user2294087user2294087

35




35












  • If the app crashes, there is a stack trace. Please look that up on logcat, and add it to your question. Please also responde with @AlexMamo

    – Alex Mamo
    2 days ago











  • @AlexMamo Only this page while opening crashes, Else the whole app is working fine.

    – user2294087
    2 days ago











  • Ok, I understand. Please add the error to your question.

    – Alex Mamo
    2 days ago











  • Whats in the logcat/stacktrace?

    – Tarun
    2 days ago












  • @Tarun I/Process: Sending signal. PID: 7910 SIG: 9

    – user2294087
    2 days ago

















  • If the app crashes, there is a stack trace. Please look that up on logcat, and add it to your question. Please also responde with @AlexMamo

    – Alex Mamo
    2 days ago











  • @AlexMamo Only this page while opening crashes, Else the whole app is working fine.

    – user2294087
    2 days ago











  • Ok, I understand. Please add the error to your question.

    – Alex Mamo
    2 days ago











  • Whats in the logcat/stacktrace?

    – Tarun
    2 days ago












  • @Tarun I/Process: Sending signal. PID: 7910 SIG: 9

    – user2294087
    2 days ago
















If the app crashes, there is a stack trace. Please look that up on logcat, and add it to your question. Please also responde with @AlexMamo

– Alex Mamo
2 days ago





If the app crashes, there is a stack trace. Please look that up on logcat, and add it to your question. Please also responde with @AlexMamo

– Alex Mamo
2 days ago













@AlexMamo Only this page while opening crashes, Else the whole app is working fine.

– user2294087
2 days ago





@AlexMamo Only this page while opening crashes, Else the whole app is working fine.

– user2294087
2 days ago













Ok, I understand. Please add the error to your question.

– Alex Mamo
2 days ago





Ok, I understand. Please add the error to your question.

– Alex Mamo
2 days ago













Whats in the logcat/stacktrace?

– Tarun
2 days ago






Whats in the logcat/stacktrace?

– Tarun
2 days ago














@Tarun I/Process: Sending signal. PID: 7910 SIG: 9

– user2294087
2 days ago





@Tarun I/Process: Sending signal. PID: 7910 SIG: 9

– user2294087
2 days ago












1 Answer
1






active

oldest

votes


















0














Make sure you have given read and write permission to your DataBase rules

"rules":
".read": true,
".write": true

For more information refer this






share|improve this answer

























  • I have already done that.

    – user2294087
    2 days ago











  • What does your logcat say ? @user2294087

    – 5NIP3R Xd
    2 days ago











  • I/Process: Sending signal. PID: 7910 SIG: 9

    – user2294087
    2 days ago











  • Consider these two 1 and 2

    – 5NIP3R Xd
    2 days ago












  • Saw that but not understandable to me.

    – user2294087
    2 days ago










Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55027982%2fretrieving-image-from-firebase-realtime-database%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














Make sure you have given read and write permission to your DataBase rules

"rules":
".read": true,
".write": true

For more information refer this






share|improve this answer

























  • I have already done that.

    – user2294087
    2 days ago











  • What does your logcat say ? @user2294087

    – 5NIP3R Xd
    2 days ago











  • I/Process: Sending signal. PID: 7910 SIG: 9

    – user2294087
    2 days ago











  • Consider these two 1 and 2

    – 5NIP3R Xd
    2 days ago












  • Saw that but not understandable to me.

    – user2294087
    2 days ago















0














Make sure you have given read and write permission to your DataBase rules

"rules":
".read": true,
".write": true

For more information refer this






share|improve this answer

























  • I have already done that.

    – user2294087
    2 days ago











  • What does your logcat say ? @user2294087

    – 5NIP3R Xd
    2 days ago











  • I/Process: Sending signal. PID: 7910 SIG: 9

    – user2294087
    2 days ago











  • Consider these two 1 and 2

    – 5NIP3R Xd
    2 days ago












  • Saw that but not understandable to me.

    – user2294087
    2 days ago













0












0








0







Make sure you have given read and write permission to your DataBase rules

"rules":
".read": true,
".write": true

For more information refer this






share|improve this answer















Make sure you have given read and write permission to your DataBase rules

"rules":
".read": true,
".write": true

For more information refer this







share|improve this answer














share|improve this answer



share|improve this answer








edited 2 days ago

























answered 2 days ago









5NIP3R Xd5NIP3R Xd

1410




1410












  • I have already done that.

    – user2294087
    2 days ago











  • What does your logcat say ? @user2294087

    – 5NIP3R Xd
    2 days ago











  • I/Process: Sending signal. PID: 7910 SIG: 9

    – user2294087
    2 days ago











  • Consider these two 1 and 2

    – 5NIP3R Xd
    2 days ago












  • Saw that but not understandable to me.

    – user2294087
    2 days ago

















  • I have already done that.

    – user2294087
    2 days ago











  • What does your logcat say ? @user2294087

    – 5NIP3R Xd
    2 days ago











  • I/Process: Sending signal. PID: 7910 SIG: 9

    – user2294087
    2 days ago











  • Consider these two 1 and 2

    – 5NIP3R Xd
    2 days ago












  • Saw that but not understandable to me.

    – user2294087
    2 days ago
















I have already done that.

– user2294087
2 days ago





I have already done that.

– user2294087
2 days ago













What does your logcat say ? @user2294087

– 5NIP3R Xd
2 days ago





What does your logcat say ? @user2294087

– 5NIP3R Xd
2 days ago













I/Process: Sending signal. PID: 7910 SIG: 9

– user2294087
2 days ago





I/Process: Sending signal. PID: 7910 SIG: 9

– user2294087
2 days ago













Consider these two 1 and 2

– 5NIP3R Xd
2 days ago






Consider these two 1 and 2

– 5NIP3R Xd
2 days ago














Saw that but not understandable to me.

– user2294087
2 days ago





Saw that but not understandable to me.

– user2294087
2 days ago



















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55027982%2fretrieving-image-from-firebase-realtime-database%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Identity Server 4 is not redirecting to Angular app after login2019 Community Moderator ElectionIdentity Server 4 and dockerIdentityserver implicit flow unauthorized_clientIdentityServer Hybrid Flow - Access Token is null after user successful loginIdentity Server to MVC client : Page Redirect After loginLogin with Steam OpenId(oidc-client-js)Identity Server 4+.NET Core 2.0 + IdentityIdentityServer4 post-login redirect not working in Edge browserCall to IdentityServer4 generates System.NullReferenceException: Object reference not set to an instance of an objectIdentityServer4 without HTTPS not workingHow to get Authorization code from identity server without login form

2005 Ahvaz unrest Contents Background Causes Casualties Aftermath See also References Navigation menue"At Least 10 Are Killed by Bombs in Iran""Iran"Archived"Arab-Iranians in Iran to make April 15 'Day of Fury'"State of Mind, State of Order: Reactions to Ethnic Unrest in the Islamic Republic of Iran.10.1111/j.1754-9469.2008.00028.x"Iran hangs Arab separatists"Iran Overview from ArchivedConstitution of the Islamic Republic of Iran"Tehran puzzled by forged 'riots' letter""Iran and its minorities: Down in the second class""Iran: Handling Of Ahvaz Unrest Could End With Televised Confessions""Bombings Rock Iran Ahead of Election""Five die in Iran ethnic clashes""Iran: Need for restraint as anniversary of unrest in Khuzestan approaches"Archived"Iranian Sunni protesters killed in clashes with security forces"Archived

Can't initialize raids on a new ASUS Prime B360M-A motherboard2019 Community Moderator ElectionSimilar to RAID config yet more like mirroring solution?Can't get motherboard serial numberWhy does the BIOS entry point start with a WBINVD instruction?UEFI performance Asus Maximus V Extreme