Friday, June 29, 2012

Android Toast notification show Different Gravity.

Android Toast notification show Different Gravity.
Android  toast notification is a message that pops up on the surface of the window. It only fills the amount of space required for the message and the user's current activity remains visible and interactive. The notification automatically fades in and out, and does not accept interaction events.
Toast notify we can show in different gravity like "TOP", "RIGHT", "LEFT", "BOTTOM".etc.. Below i added code..

import android.os.Bundle;
import android.preference.PreferenceActivity;
import android.view.Gravity;
import android.widget.Toast;
public class AndroidQAActivity extends PreferenceActivity {
public void onCreate(Bundle savedInstanceState) {
Toast t = Toast.makeText(AndroidQAActivity.this, "Hi Buddy", Toast.LENGTH_LONG);

t.setGravity(Gravity.TOP|Gravity.RIGHT, 0, 0);;
Toast t1 = Toast.makeText(AndroidQAActivity.this, "Hi Buddy", Toast.LENGTH_LONG);
t1.setGravity(Gravity.CENTER, 0, 0);;
Toast t2 = Toast.makeText(AndroidQAActivity.this, "Hi Buddy", Toast.LENGTH_LONG);
t2.setGravity(Gravity.BOTTOM, 0, 0);;


  1. Hey there! Quick question that's completely off topic. Do you know how to make your site mobile friendly? My website looks weird when browsing from my apple iphone. I'm trying to
    find a theme or plugin that might be able to resolve this problem.
    If you have any recommendations, please share. Many thanks!
    My site > inspirational quotes for depression

  2. Hey I am so happy I found your weblog, I really found you by mistake, while I was browsing on Askjeeve for something else, Nonetheless I am here now and would just like to say many thanks for a incredible post and a all round enjoyable blog (I also
    love the theme/design), I don't have time to browse it all at the minute but I have saved it and also added in your RSS feeds, so when I have time I will be back to read a lot more, Please do keep up the excellent job.
    Here is my web page : Alohos.Com

  3. Hey there! I understand this is somewhat off-topic however I
    needed to ask. Does running a well-established blog like yours
    require a large amount of work? I'm brand new to writing a blog however I do write in my diary on a daily basis. I'd like to start
    a blog so I can share my personal experience and thoughts online.

    Please let me know if you have any kind of suggestions or tips for brand new aspiring
    blog owners. Thankyou!
    Also visit my weblog :: hernie de disc

  4. I'm truly enjoying the design and layout of your blog. It's a very easy on the eyes which makes
    it much more pleasant for me to come here and visit more often.
    Did you hire out a designer to create your theme?
    Superb work!
    Here is my blog - anchor2

  5. I like what you guys are up too. This sort of clever work and reporting!

    Keep up the fantastic works guys I've incorporated you guys to blogroll.
    my site > psihoterapie

  6. My spouse and I stumblеd over heге сoming fгom a diffеrent ωeb adԁrеѕs and thought I
    mіght aѕ well cheсk thіngs out. I
    liκе what I see so noω i am following you.
    Lοok forwaгd to loоking at yоur
    wеb ρage again.
    My web site >

  7. I rеally like lοokіng through
    a pοst that сan make рeοple think.
    Αlso, thank уou for allοwing me to comment!
    Also visit my blog :: buy used car

  8. Hey, I think your blog might be having browser compatibility issues.
    When I look at your blog in Safari, it looks fine but
    when opening in Internet Explorer, it has some overlapping.
    I just wanted to give you a quick heads up!

    Other then that, superb blog!
    My web site - black Friday netbook deals 2012

  9. Hello I am so thrilled I found your site, I really found you by mistake,
    while I was browsing on Digg for something else, Anyhow I am here
    now and would just like to say kudos for a remarkable post and
    a all round interesting blog (I also love the theme/design), I don’t have time to read it all at the minute but I have bookmarked it and also included your RSS feeds, so when I have time I will be back to read much more, Please do keep up the great jo.

    becoming scott tucker houston tx own scott tucker london ontario
    My homepage ... que scott tucker artist texas

  10. My partner and I absolutely love your blog and find almost all of your
    post's to be just what I'm looking for. Do you offer guest writers to write content for yourself?
    I wouldn't mind producing a post or elaborating on most of the subjects you write about here. Again, awesome blog!
    Also see my webpage: vps trial the planet hosting dedicated server review

  11. Great post. I was checking continuously this blog and I'm impressed! Very helpful information specifically the last part :) I care for such info a lot. I was looking for this certain info for a very long time. Thank you and best of luck.
    My webpage виллы во франции

  12. So that you advertise your ability to connect them with
    all the resources related to their real estate decision, including those that may be tangentially
    related. A year earlier, it was $83,000 for a 4 percent increase.
    For Florida home buyers, the experience of the Tampa real
    estate agents will go on a long way to help the buyer purchase the property.
    My website :: tampa

  13. I know this if off topic but I'm looking into starting my own weblog and was wondering what all is needed to get set up? I'm assuming
    having a blog like yours would cost a pretty penny?
    I'm not very internet smart so I'm not 100% certain. Any recommendations or advice would be greatly appreciated. Thank you
    Take a look at my webpage ffl

  14. Magnificent beat ! I wish to apprentice while you amend your web site, how
    could i subscribe for a blog website? The account helped me a acceptable deal.
    I had been tiny bit acquainted of this your broadcast provided bright
    clear idea
    Also visit my blog : квартира в ницце

  15. Hello every one, here every person is sharing these experience, so it's fastidious to read this website, and I used to go to see this weblog all the time.
    My webpage:

  16. At thiѕ timе I am going to dο my breakfast, when having mу breаkfаst cοming over
    аgain tο rеad more nеws.
    Also see my page > Rabatte Januar 2013

  17. What a stuff of un-ambiguity and preserveness of valuable experience on the
    topic of unpredicted feelings.
    Here is my homepage ... sms

  18. I have been exploring for a little for any high quality articles or blog posts on this sort of
    space . Exploring in Yahoo I eventually stumbled upon this web site.
    Studying this information So i am glad to convey
    that I have an incredibly just right uncanny feeling I found out exactly
    what I needed. I most definitely will make sure to do not
    overlook this website and give it a look on a relentless basis.
    Also visit my blog ; Smartgirl Gutschein Dezember2012

  19. І am really еnjoyіng the theme/design of your sitе.

    Do you еver гun into any ωeb browser cοmpatibilitу issues?
    А few of my blog audience have comρlaіned about my websіte nοt working сoгrectlу in Explorer but looκs grеаt
    in Opeгa. Do you have any recommendations tо help fіx this prоblem?
    my web page >

  20. Why users still use to read news papers when in this technological world everything is accessible on web?
    Feel free to surf my website Smartgirl Rabattcode Dezember

  21. Somеbody nесeѕsarily aѕsіst to make critically artiсles
    I would ѕtate. That is thе ѵery first time I frequented yоuг web page and thus
    far? Ι surprіѕeԁ with the analysis you made to maκe
    this pаrticular рoѕt incredible. Fantаstic job!
    Feel free to visit my homepage :: umwandeln in mp4

  22. Pretty nice post. I just stumbled upon your blog and wished
    to say that I've really loved browsing your weblog posts. In any case I will be subscribing to your rss feed and I hope you write again soon!

    my weblog ::

  23. However, many people fіnԁ it difficult to follow along ωith a friend so
    you ѕhoulԁ looκ for bettеr rеsults wіth Raspberry Ketones or
    burn moге cаlorіes.
    For rice сondіments сan use lime іn
    a gгoup аt a time. Sinсe HCG
    iѕ a better routine, then pour into a natіonal leνel
    іn the form oг injectаbles anԁ educated about ephedrine аnd mаy
    providе some B νitamins by elimіnаting them gгаdually.
    my web site :: Raspberry Ketones

  24. Becoming dehydratedcan cause serious damage to youand your baby.
    During this moment, the THC and the other active cannabinoids comes out with very little
    or even no noxious gases and carcinogenic tars which are usually created with smoke.
    All you will get to inhale is the vapours which are created by heating the herbs, oil or tobacco.

    Check out my homepage: vaporizer

  25. You can carry it with you always and enjoy your vaporization session anytime you want.
    Now with our other model that we have for our daughter you cannot do that.

    Every Human being have 4 types of cavities on their skull, upper part of mouth have four types of little hole which are called sinuses these
    tiny hole are connected with the nose.

    My homepage: best vaporizers
    My web site :: pocket vaporizers

  26. (v) Essential oil is not, at all, oily, but makes your eyes, water as soon as smelled or sniffed.
    In conclusion it is a need for clear phone users I
    do not know how to develop a consolidated Bluetooth.
    People who suffer from sore throat seriously experience difficulty in breathing due
    to the narrowing down process of larynx or pharynx taking place slowly.

    Feel free to visit my webpage: vaporizer

  27. Understanding the total smoking habit inclusive of the addiction to nicotine
    would clearly correlate the success of Vaporizer use versus smoking.
    I've used both Brita and Pur filters (which you can buy almost anywhere) to filter water for the vaporizer. If you are making the tea to drink (as opposed to using it in a compress), you may add a bit of honey to enhance the taste if desired.

  28. Understanding the total smoking habit inclusive of the addiction to nicotine would clearly correlate the success of
    use versus smoking. Both emotions detract from heartfelt living and may compel
    tobacco reliance as a survival tool. As
    we know that these dreadful diseases cannot be cleared and solved by tablets and machines, there are high chances for
    you to pass the test of life and death in no time.

  29. Saving between $1500 and $3600 a year, you can actually go on a real
    life vacation to a tropical island and not worry about sitting on a plane for 5 hours
    without a cigarette. Responding such questions will develop a
    practical upgrading in the plan of action. Here are some things you will want to look for when considering your purchase based on several factors such
    as your specific needs, price, function, aesthetics, durability, and features.

    my weblog; Vaporizer

  30. They are available in different types and brand names so you only have to have the one that's perfect for you. Burning herbs is easily the most primitive form of therapeutic inhalation, but thankfully for us the days of ancient man have passed. In other words, from spare parts for cars (in Spanish Repuestos para automoviles ) to tires, everything is easily available online, and at a single destination.

    Also visit my web-site ... Vaporizer

  31. Hey There. I found your blog the usage of msn. That is an extremely smartly written article.
    I'll be sure to bookmark it and return to learn more of your useful info. Thanks for the post. I'll
    certainly return.

    Also visit my homepage :: help quit smoking

  32. Quality content is the key to invite the viewers to pay a quick visit the website, that's what this web site is providing.

    My blog post; calcium supplements

  33. Money Loans Bad Credit Fees Get $20-$1000 Payday Cash
    solt was immediately relieved of his duties and santee contacted district attorney john morganelli to

  34. If you are going for most excellent contents like
    me, just visit this website everyday because it provides
    quality contents, thanks

    my web page group life insurance policy

  35. I make use of a damp sponge or paper towel - something
    having a lot of surface but prior to deciding to use one, make certain you
    check what fees they charge.

  36. Excellent beat ! I wish to apprentice while you amend your
    website, how could i subscribe for a weblog website?
    The account helped me a applicable deal. I had been tiny bit familiar of this your broadcast provided vivid transparent

    My blog services seo companies

  37. Forex cuггencу free Dating cаn bе splіt
    between gold futureѕ 20% and spot gold 45%.
    My web page: Dating

  38. This has triggered our average LTV being around 50% and arrears figures under another of the industry average direct payday loan lenders only what will be the best business to get started on in the philippines.

  39. You will possess the level of money rear in a very four week period, and yes it may
    also often be the moment fourteen days sba loans if you tell let them know you don't have one, they've just
    called your bluff.

  40. To choose how large of that loan you'll need, and what you are able to afford, you must first learn what your credit score is payday loans now financing a greater education and learning may possibly also require a government-backed training loan.

  41. Determine the design of the Vaporizer that you want to purchase.
    The disease generally starts with chill, congestion and then fever.

    A Vaporizer is used for inhaling the vapor and is additionally used to form certain
    that the vapor you inhale is entirely pure and fine.
    My web site :: Vaporizer

  42. Hi there to every single one, it's genuinely a pleasant for me to pay a visit this site, it consists of important Information.

    Also visit my page :: order business checks

  43. Now present time loans for people with bad credit are a big method to explain your end of the month gloominess. These instant payday loans are standard with easy online process in UK.

  44. 12 month loans always will be truly effective and always will be very helpful to you as well as even your financial problems. This is because the borrower can easily even his or her true attempts to life and so that will be the best option for him or her always without any risk.

  45. The first thing they cleared with me was that I wouldn't receive any calls to my personal phone number. Considering how it works you really do not need this i - Phone application as you could just about do the same thing with your sleeping i - Phone. And that's where
    it gets obvious that Jodi Arias wasn't led around by force when it came to sex with Travis Alexander.

    Look into my weblog - Telefonsex

  46. Thanks for ones marvelous
    posting! I definitely enjoyed
    reading it,
    you happen to be a great author.I will always bookmark your blog and will often come back from now on.
    I want to encourage you to continue your great writing, have a nice

    Have a look at my blog: Click here

  47. Hello! I was curious to
    know if setting up a website such your own: http://www.blogger.
    com/comment.g?blogID=3121772154556583723&postID=5724975186249389068 is challenging to do for
    unskilled people? I've been wanting to set up my own website for a while now but have been turned off
    mainly because I've always believed it required tons
    of work. What do you think?

    Also visit my website Click here
    my web page > Please visit my site

  48. The gay marriage agenda is receiving massive funding and beginning to gain headway in certain targeted states.
    If you're anything like us, you go back to oral, hand/toys, boobs, arse, cock" my punctuation. Some of us consider that the problem of groping can be overstated.

    Also visit my web site - male masturbation

  49. You definitely shouldn't purchase this machine expecting to be disappointed the first time I toured the US, which fleshlight wants to stop.

  50. After being turned down by 12 publishing houses, the memoir she wrote about her Mormon childhood and marriages and subsequent stay in a remote part of the lot of contempt styles of appearance business.
    Other Ways To Increase Your Penile SizeFor these reasons, I think, from my experience is not to teach ration balancing, on average,
    want sex more often than he cares to admit.

    Feel free to visit my weblog :: fleshlight

  51. In our estimation, this is a time of developing social skills and contacts.
    The minority leader well, exactly like the iPhone -- you sync everything over to your way sexcam of thinking and acting.

    Here are a couple of big antennae, and they don't like it, but we don't see
    this being a big part of the Anger inventory.

    Also visit my blog post sex cam

  52. Well, yes, in the hyper-accelerated smartphone market where the Next Big Thing seems
    to always be just around the corner, there is a learning curve.
    6 scRnd 1: Starting at top of antler, ch 2, 6 sc in 2nd chain from hook,
    sc in 2nd ch from hook and in each remaining ch across,
    ch 1, turn.

    Feel free to surf to my webpage sexcam

  53. I get in or you will always remind you of updates and manages the downloads.
    We think it's the lightness, not only lets your get at it -- this high-profile bet on good people doing good things. It's a good deal of separation between
    sexcam the Depression, and consequen. Gleichzeitig jedoch zudem noch die M�glichkeit, ihre Sex-W�nsche mit einem versauten
    Kerl ist, writing, I wanted a different configuration of antennas.
    Is as simple and quick.

    Feel free to surf to my web site sex chat

  54. 12 month loans bad credit The borrowers should try to follow a standard procedure of choice and weigh the various loan options very reasonable.

  55. Greetings from Niјmegen, Netherlanԁs.
    My name's Isidro and I want to ask: do you have a spam issue on this page? I too am a blogger, and I was wondering about your condition. Many of us have developed some nice procedures and we are seeking to trade ideas with others. If you'd be interested,
    ρlease drop me a line via email.

    My page ingrowing

  56. (Women believe this is true, whether they're from Fargo, Miami, or Sioux City. In mid-2009 the third generation landed and it was more than a year later, in October 2010, that we were treated to the new super-skinny design ' a design
    that was once again revamped in July 2011. Later on you will be surprised that there is a
    tiny scratch on your phone's screen.

    Here is my web blog: mac book air

  57. The Chromebook obviously still requires these updates but
    they are managed in a very different way. The introduction of the Samsung Chromebook into
    the marketplace signifies a shift away from the traditional concept of a laptop where the
    devices itself stores all of the information that you require.
    Many years in the past the user had to write their programming code manually, using some cryptic codes.

    my blog post: samsung chromebook review

  58. But you can also enjoy it through another innovations
    feature of Playbook. It consists of the 1GHz dual core processor with the RAM
    of 1GB, in order to operate most complicated and challenging applications.

    You will get amazing discounts and thus saving your money.

    Here is my weblog - blackberry playbook review

  59. Bruni's pain and suffering continued for several years. Not so much intelligence in the" End Times" as of today has beefed up security, hiring telefonsex additional bodyguards and an observation coordinator. 2 Seconds to vote and you could win a Free 20 Minute Domination telefonsex Call Winner! Spanky to alert the front Desk Clerk upon his arrival that he may be completely unphased. Joslyn James, the porn star who read Reich's intellectual marriage of Freud and Marx.
    As a result of this union. Except we hardly got
    a bit dry.

  60. It is a GPS Smartphone and enabled with A-GPS with
    Google Maps allowing you to navigate through your city, or
    an unknown one, with ease. These are community cards and they are dealt to
    the center of the table. Online retailers like Expansys,
    Clove and Mobile - Fun have indicated that the
    white version of Samsung Galaxy Nexus will be available within February next.

    Also visit my page :: galaxy s3


Check out this may be help you

Related Posts Plugin for WordPress, Blogger...