Petrol Meter or my first experience writing an android application

    Hello.

    I want to tell my development experience for android.

    It all started with the fact that I got an old car and I was wondering how much it eats gasoline and, accordingly, how much I spend gasoline from point A to point B, and at the end of the summer I got an Android phone. My interest in Android and my interest in realizing the idea of ​​calculating consumption motivated me to write a simple application.

    The essence of the application is quite simple, indicated consumption per 100km and that's it.
    Next, we begin our journey, and the program receives the coordinates from GPS and considers the speed, distance traveled and flow.

    It turned out this:

    imagePetrol Meter


    image
    image

    And now with those problems that I encountered.

    The first thing that was not clear - Where to start?
    In general, in principle, where to start?

    The answer is pretty simple google and customizable. Everything was simple with that.
    The problem was with the emulator setting. The fact is that the Windows username is written in Russian, and the emulator is created in the user folder. But his Russian characters are problematic. As a result, the emulator created the standard master in the eclipse, but did not start it.

    I had to google again and eventually do it myself, now hello world compiled and ran on the emulator.
    The joy was when I threw it on the phone and it worked there!

    The second
    thing I ran into. How to design a UI. The
    answer is not obvious as it seems the first time.
    The fact is that the basic editor in the eclipse was not incomprehensible to me and I couldn’t do anything there, I had to design everything with my hands at first, but it's tin.

    It's good that I found DroidDraw with examples and, lo and behold , I made the interface in 5 minutes. It is simple, elementary, but it is also necessary for a start.

    So thanks to this thing, I solved this problem.

    The following were problematic
    How to make a transition between windows, how to save and how to work with GPS
    I wrote by trial and error, so at first the program often fell out, so I got acquainted with Log'ing and understood the work of Activity and learned how to make transitions. It was with Activity that I had problems, because I did not quite understand the call of events in different situations, but it seemed to be solved.

    Since my program saved “mileage”, I had to learn how to save and receive data. Thus, I became acquainted with the procedure for saving application data.

    It’s very bad that there are still few forums on the Internet and few active topics where one could meet and chat with people, but I think this is temporary.

    I really liked the work of the android site directory.
    Literally 30 minutes after uploading to the market, the program appeared on other sites.
    I don’t know what gain of instals they give, but the speed itself just hit me.

    Summarizing my story, I want to say the following:
    It's very cool when you can realize and use your idea in everyday life, now I know what fuel consumption is from home to the store :)
    I felt the android, I liked it, maybe I'll do something else.

    I want to say the following in advance. The program considers it very average, you can tell whether the program considers if I stand in a traffic jam or warm up, I will say: - no. will not. The program was written for the sake of interest and personal benefit. It does not pretend to be accurate.

    Here is a story.

    You can download from the market following. QR:


    Thank you all.


    Also popular now: