I have couple of questions.....in android and android fragments -
how gmail confirmation whenever send mail service in android app programmatically(in ios possible )?
i have tried confirmation android app
private void sendviaemail() { seek { final intent emailintent = new intent(android.content.intent.action_send); emailintent.settype("text/plain"); emailintent.putextra(intent.extra_email, new string[]{""}); emailintent.setclassname("com.google.android.gm", "com.google.android.gm.composeactivitygmail"); emailintent.putextra(intent.extra_subject, issue.gettext()); emailintent.putextra(intent.extra_text, description.gettext()); startactivityforresult(emailintent,2); // saveinfotodatabase(); } grab (exception e) { toast.maketext(getapplicationcontext(), "email faild, please seek 1 time again later!", toast.length_long).show(); e.printstacktrace(); } }
the above method navigating our app gmail composer page. here dont know whether sent or not? there posiblity
i worked on fragments in android, , when navigating 1 fragment fragment using replace(),addtobackstack(null). if utilize replace() without addtobackstack(null), next fragment ui overlapped current fragment ui. why happened? gone through plenty of stack overflow questions failed reason why happened.i have written next code
accountsettingsbtn.setonclicklistener(new view.onclicklistener() { @override public void onclick(view v) { fragment fragment = new accountsettingsfragment(); fragmentmanager fragmentmanager = getactivity().getsupportfragmentmanager(); fragmenttransaction fragmenttransaction = fragmentmanager.begintransaction(); // ((homescreenactivity)getactivity()).addfragmenttolist(fragment); fragmenttransaction.replace(r.id.home_frame, fragment); fragmenttransaction.addtobackstack(null); fragmenttransaction.commit(); } });
android android-fragments
No comments:
Post a Comment