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
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
add a comment |
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
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
add a comment |
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
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
java android android-fragments firebase-realtime-database
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
add a comment |
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
add a comment |
1 Answer
1
active
oldest
votes
Make sure you have given read and write permission to your DataBase rules
For more information refer this
"rules":
".read": true,
".write": true
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
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Make sure you have given read and write permission to your DataBase rules
For more information refer this
"rules":
".read": true,
".write": true
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
add a comment |
Make sure you have given read and write permission to your DataBase rules
For more information refer this
"rules":
".read": true,
".write": true
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
add a comment |
Make sure you have given read and write permission to your DataBase rules
For more information refer this
"rules":
".read": true,
".write": true
Make sure you have given read and write permission to your DataBase rules
For more information refer this
"rules":
".read": true,
".write": true
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
add a comment |
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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