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

Can't find variable: document ReactNative Js2019 Community Moderator ElectionReactNative: how to center text?Can't find variable: navigate - ReactNative navigationReact Native error: “Can't find variable: TouchableHighlight”How to use Expo.DocumentPicker.getDocumentAsync properly. [Expo] [ReactNative]Can't find variable: regeneratorRuntime (ReactNative)Reactnative Expo It is advisable for a StartUp?Can't find variable : Self / Can't install firebaseNPM Install Error in installing ReactNative CLIContacts Displaying in App using ReactnativeFacebook login error: can't find variable: Alert

Thal And Out Agency railway station See also References External links Navigation menuOfficial Web Site of Pakistan RailwaysArchivedOfficial Web Site of Pakistan Railwayseeexpanding ite

Posting a File and Associated Data to a RESTful WebService preferably as JSON2019 Community Moderator ElectionREST URI convention - Singular or plural name of resource while creating itUploading both data and files in one form using Ajax?How do I upload a file with metadata using a REST web service?REST API - file (ie images) processing - best practicesSpring: JSON data and file in the same requestREST API Put large dataPosting a file and JSON data to Spring rest serviceRESTful Web Service Upload/Download Large Data With JSONREST API Design sending JSON data and a file to the api in same requestPost JSONArray to REST servicePUT vs. POST in RESTParsing values from a JSON file?JavaScript/jQuery to download file via POST with JSON dataHow do I upload a file with metadata using a REST web service?How to POST JSON data with Curl from Terminal/Commandline to Test Spring REST?Separate REST JSON API server and client?what's the correct way to send a file from REST web service to client?How do I write JSON data to a file?What is “406-Not Acceptable Response” in HTTP?REST API - file (ie images) processing - best practices