Add back button in title bar – android

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.MenuItem;
import android.widget.Button;

public class Transaction extends AppCompatActivity {

    private Button btn_back;
    Intent intent = new Intent();

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_transaction);

        // Set title bar
        getSupportActionBar().setDisplayShowHomeEnabled(true);
        getSupportActionBar().setDisplayHomeAsUpEnabled(true);
    }

    // Back to page method 
    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
        int id = item.getItemId();
        if(id == android.R.id.home){
            intent.setClass(Transaction.this, MainActivity.class);
            startActivity(intent);
            Transaction.this.finish();
            return true;
        }
        return super.onOptionsItemSelected(item);
    }
}

Add-back-button-in-title-bar

249 thoughts on “Add back button in title bar – android

  1. Pingback: viagra prices

  2. Pingback: generic for cialis

  3. Pingback: chloroquine phosphate online

  4. Pingback: levitra

  5. Pingback: cialis

  6. Pingback: coupon for cialis

  7. Pingback: Buy pfizer viagra online

  8. Pingback: viagra

  9. Pingback: pure cbd oil

  10. Pingback: what is cbd oil

  11. Pingback: Rx generic viagra

  12. Pingback: chloroquine phosphate 250mg

  13. Pingback: how to get cialis

  14. Pingback: how much does cialis cost

  15. Pingback: cialis pills

  16. Pingback: cialis over counter walmart

  17. Pingback: cialis 20

  18. Pingback: online cialis

  19. Pingback: cialis coupon walmart

  20. Pingback: viagra 100mg

  21. Pingback: viagra vs cialis

  22. Pingback: viagra 50mg

  23. Pingback: cheap viagra

  24. Pingback: male erection pills

  25. Pingback: ed pills online

  26. Pingback: best otc ed pills

  27. Pingback: side effects of viagra

  28. Pingback: tadalafil online

  29. Pingback: cvs pharmacy

  30. Pingback: rx pharmacy

  31. Pingback: Buy cialis online

  32. Pingback: online viagra

  33. Pingback: levitra price

  34. Pingback: levitra vardenafil

  35. Pingback: vardenafil 10 mg

  36. Pingback: casino online usa

  37. Pingback: online casino with free signup bonus real money usa

  38. Pingback: online viagra

  39. Pingback: real online casino

  40. Pingback: real casino online

  41. Pingback: tadalafil 10mg

  42. Pingback: quick cash loans

  43. Pingback: payday loans

  44. Pingback: no credit check loans

  45. Pingback: viagra 100mg

  46. Pingback: cialis 5 mg

  47. Pingback: cialis internet

  48. Pingback: cialis buy

  49. Pingback: generic for cialis

  50. Pingback: cialis buy

  51. Pingback: viagra for sale

  52. Pingback: cialis generic

  53. Pingback: viagra sildenafil

  54. Pingback: jackpot party casino

  55. Pingback: casino world

  56. Pingback: online casinos real money

  57. Pingback: generic viagra 100mg

  58. Pingback: cialis over the counter

  59. Pingback: best generic viagra

  60. Pingback: viagra pill

  61. Pingback: cialis coupon

  62. Pingback: tadalafil cost

  63. Pingback: cialis generic

  64. Pingback: generic cialis tadalafil

  65. Pingback: online levitra

  66. Pingback: sildenafil 100mg

  67. Pingback: generic cialis tadalafil

  68. Pingback: no prescription viagra

  69. Pingback: interest on payday loans

  70. Pingback: cialis prices

  71. Pingback: online slots for real money

  72. Pingback: online casinos real money

  73. Pingback: sildenafil 100mg price

  74. Pingback: generic sildenafil

  75. Pingback: buy viagra generic

  76. Pingback: cheap viagra

  77. Pingback: generic sildenafil

  78. Pingback: order cialis

  79. Pingback: cheap viagra online without script

  80. Pingback: buy viagra online

  81. Pingback: buy generic drugs without prescription

  82. Pingback: canadian pharmacy storm

  83. Pingback: viagra sans ordonnance en pharmacie

  84. Pingback: cheap tadalafil

  85. Pingback: generic pills for ed

  86. Pingback: viagra

  87. Pingback: order cialis generic

  88. Pingback: buy viagra online

  89. Pingback: comfortis without vet prescription

  90. Pingback: buy viagra generic

  91. Pingback: generic viagra

  92. Pingback: levitra online

  93. Pingback: cbd hemp oil for pain relief

  94. Pingback: cialis for sale

  95. Pingback: erectial disfunction

  96. Pingback: Viagra in usa

  97. Pingback: canada ed drugs

  98. Pingback: buy cheap viagra online

  99. Pingback: where to buy amoxicillin

  100. Pingback: buy cialis usa

  101. Pingback: where can i purchase viagra over the counter

  102. Pingback: cost of 50mg viagra in canada

  103. Pingback: buy levitra 20mg

  104. Pingback: personal loans for bad credit

  105. Pingback: buy sildenafil online cheap

  106. Pingback: sildenafil buy online india

  107. Pingback: buy levitra 20 mg online

  108. Pingback: generic viagra from canada online

  109. Pingback: generic viagra fast delivery

  110. Pingback: viagra 150 mg pills

  111. Pingback: cialis hinta virossa

  112. Pingback: Alternative for viagra

  113. Pingback: sildenafil and women

  114. Pingback: Free viagra samples

  115. Pingback: cialis lethargy

  116. Pingback: help writing grad school essay

  117. Pingback: generic cialis

  118. Pingback: essaywritingservicesjy.com

  119. Pingback: order custom essays

  120. Pingback: doctoral dissertation writing help

  121. Pingback: someone write my paper for me

  122. Pingback: cialis ordering

  123. Pingback: essays writing help

  124. Pingback: buy cheap viagra

  125. Pingback: help write a research paper

  126. Pingback: writing with a thesis

  127. Pingback: thesis statistics help

  128. Pingback: Real viagra pharmacy prescription

  129. Pingback: cheap viagra

  130. Pingback: best online canadian pharmacy

  131. Pingback: generic Zithromax

  132. Pingback: mail order cialis

  133. Pingback: erectyle disfunction

  134. Pingback: canadian pharmacy cialis

  135. Pingback: how to take cialis

  136. Pingback: viagra without dr prescription

  137. Pingback: cialis generic buy

  138. Pingback: women viagra

  139. Pingback: online pharmacy viagra

  140. Pingback: viagra over the counter walmart

  141. Pingback: buy generic 100mg viagra online

  142. Pingback: northwest pharmacy in canada

  143. Pingback: how to get viagra without a doctor

  144. Pingback: zithromax 250 mg

  145. Pingback: generic viagra 100mg

  146. Pingback: generic pills

  147. Pingback: buy erectile dysfunction medications online

  148. Pingback: discount canadian drugs

  149. Pingback: cheap Plaquenil

  150. Pingback: Aldactone

  151. Pingback: Florinef

  152. Pingback: canadian pharmacy

  153. Pingback: canadian pharmacies shipping to usa

  154. Pingback: viagra without a doctor prescription canada

  155. Pingback: generic amoxicillin over the counter

  156. Pingback: antacids and antibiotic interaction

  157. Pingback: benadryl 1462

  158. Pingback: cheapest generic allegra

  159. Pingback: buy viagra online canada

  160. Pingback: viagra from india

  161. Pingback: zithromax 500 mg lowest price pharmacy online

  162. Pingback: amoxicillin buy no prescription

  163. Pingback: generic ed pills

  164. Pingback: cialis 5 mg

  165. Pingback: cheap viagra

  166. Pingback: buying cialis without a prescription

  167. Pingback: whats better cialis viagra or levitra

  168. Pingback: cialis before and after

  169. Pingback: cialis generic

  170. Pingback: best place to buy generic cialis

  171. Pingback: viagra only 0.2$

  172. Pingback: how much does cialis cost without insurance

  173. Pingback: how to buy cialis online uk

  174. Pingback: sildenafil 100 canadian pharmacy

  175. Pingback: buy cialis canadian

  176. Pingback: cheap viagra

  177. Pingback: cialis 20mg for sale

  178. Pingback: cialis online

  179. Pingback: cialis sale 20mg

  180. Pingback: natural remedies for ed

  181. Pingback: eswyhboc

  182. Pingback: erection pills

  183. Pingback: cialis walmart

  184. Pingback: best erection pills

  185. Pingback: buy cialis online viagra

  186. Pingback: cialis without a doctor prescription

  187. Pingback: where can i get viagra

  188. Pingback: waar bestaat viagra uit

  189. Pingback: viagra discount

  190. Pingback: how to get a prescription for azithromycin

  191. Pingback: furosemide 100 mg

  192. Pingback: bactrim for sale

  193. Pingback: tetracycline for sale

  194. Pingback: cefixime capsules

  195. Pingback: cialis price cvs

  196. Pingback: order cleocin online

  197. Pingback: buy cialis 36 hour

  198. Pingback: how often to take 10mg cialis

  199. Pingback: lowest cialis prices

  200. Pingback: ordering cialis online australia

  201. Pingback: nombre generico del viagra

  202. Pingback: online viagra without subscription

  203. Pingback: professional essay writing service

  204. Pingback: writing apa research paper

  205. Pingback: where do i write my name on an essay

  206. Pingback: scholarship will help me essay

  207. Pingback: corporate social responsibility and business ethics essay

  208. Pingback: buy cialis online in canada

  209. Pingback: trusted india online pharmacies

  210. Pingback: buy cialis 36 hour

  211. Pingback: viagra over the counter

  212. Pingback: order augmentin over the counter

  213. Pingback: lasix order

  214. Pingback: buy viagra online canada

  215. Pingback: azithromycin purchase usa

  216. Pingback: online doctor prescription for viagra

  217. Pingback: ivermectin 6mg dosage

  218. Pingback: proair albuterol

  219. Pingback: best place to buy viagra online

  220. Pingback: zithromax cost australia

  221. Pingback: where to buy viagra online

  222. Pingback: doxycycline brand

  223. Pingback: prednisolone side effects

  224. Pingback: clomid online canada

  225. Pingback: does dapoxetine work

  226. Pingback: diflucan third trimester

  227. Pingback: synthroid vs.generic

  228. Pingback: buy custom essay

  229. Pingback: cheap ed pills from canada

  230. Pingback: thesis statistics

  231. Pingback: dissertation writing help

  232. Pingback: zithromax for sale us

  233. Pingback: thesis writing software

  234. Pingback: neurontin generic south africa

  235. Pingback: zithromax antibiotic

  236. Pingback: uk dissertation writing services

  237. Pingback: propecia effectiveness

  238. Pingback: cialis without persriction

  239. Pingback: how many milligrams of cialis can you take in a day ?

  240. Pingback: buy medication online from india

  241. Pingback: neurontin recreational dose

  242. Pingback: invokana metformin

  243. Pingback: paxil tablet

  244. Pingback: plaquenil eye screening

  245. Pingback: buy erectile dysfunction pills online

  246. Pingback: viagra without a doctor prescription usa

  247. Pingback: clomid uk

  248. Pingback: how to get amoxicillin over the counter

  249. Pingback: can i buy metformin over the counter in uk

發表迴響