Skip to main content

Android Development | Part 1

Update: Android app already created and available via this link

In this post series I will be describing my experience in learning Android development using Java. Me and my friend recently decided to develop some basic android application sort of TO-DO list/scheduler that will manage your cleaning work at home. The sample window of this app may look like this image bellow:
So, how to begin? What I should learn first? That's kind of questions I am still asking myself :)

Android Studio

The most famous IDE fo Android development, however it is known to have some bugs. Android application consists of two parts: code and xmls. XML works as HTML for a web app, containing texts, buttons, image objects etc and located in res folder. The main notion in Android is Activity which as an atomic element of an app. Along with Activity android creates XML related to it. In order to relate objects on this XML layout use findViewById(R.id.some_id_fromXML), where some_id_fromXML is ID of an object on your XML file. Thus, you can address every object on XML programmatically, control them by setting listeners (e.g. onClickListener()), deleting, creating them or changing its appearance(font, size, shape etc).

Comments

Popular posts from this blog

Machine Learning. Part II.

Non-residential building occupancy modeling. Part II. Occupancy classification So dataset was taken from this place . The dataset comprised of different sources: surveys, data logging from sensors, weather, environment variables. Total feature list consist of 118 features and can be grouped as general (occupancy, time), environment (indoor, outdoor), personal characteristics (age, office type, accepted sensation range etc), comfort/productivity/satisfaction, behavior (clothing, window, interaction with thermostat etc ), personal values (choices on different set points). It contains data on 24 occupants whether it private office or joint one, the first task is to implement binary classification of each occupant using some input data from sensors and time. For rapid protoyping I will use python Tensor Flow wrapper Keras along Anaconda framework. First, loading all required libraries from keras.models import Sequential from keras.layers import Dense import numpy ...

Machine Learning

Machine Learning. Non-residential building occupancy modeling. Part I. Idea : providing occupancy driven energy efficiency model. Since about 40% of building energy goes to HVAC(heating, ventilation and air conditioning) it is quite good idea to use these equipment when it is really required,e.g. switch on the air conditioner or ventilation when people in a room The study discusses approaches towards optimizing energy consumption of commercial buildings. Such task is considered to be a part of more broad topics, e.g. smart buildings, green buildings. During the past years, the number of papers dedicated to energy efficiency optimization in buildings has been growing which confirms societal concern about finding the most efficient methods of improving energy usage by buildings. To maximize building’s energy efficiency various methods are known and can be split into re-organizational advances and strengthening currently employed management systems [1], [2]. This methods incl...

Machine Learning. Part III

Non-residential building occupancy modeling. Part III. Defining occupancy patterns. Recalling from the last part II we have got building occupancy data-set. In this part I will apply k-means cluster algorithm in order to identify typical occupancy patterns with daily resolution. To better visualize input data we have, see the following table below: Month Day Weekday Minutes Temperature Relative humidity Air Velocity Occupancy out of 24 7 31 3 779 23 89 1.3411 0 8 1 4 823 24 88 3.578 2 ... ... ... ... ... ... ... ... So I changed initial data by transforming Matlab absolute time readings into month, day, weekday(where 1 - Sunday,2 - Monday etc.), day time in minutes (with 15 min time step); temperature,velocity and humidity is general outdoor data; and finally total building occupancy. Original...