6 Steps to develop and publish Android Library

By With No comments:

How to develop and publish Android open source library

Topics covered

Android open source library

Github repository

Gradle publish library

Developing an open source Android Library is a great experience. You have the chance to pay back with your work all the times you used an open source library. There are a lot of libraries that we all used and that have simplified our developer life. It is, also, a great opportunity to learn because the source code is public and all other developers can check it and use it and for sure, you will get some feedbacks. You, as a developer, have to be ready to get positive and negative comments, opinions, suggestions, all these help you to get a better developer. You earn, during this exciting developing process, a huge experience listening to other developers opinions, comment. So if you have an idea develop it and make the code open source, you will benefit.
This post summarizes the main steps to follow (or that i followed) when developing an open source Android library.
  • Find the idea
  • Find the repository
  • Create a website
  • Create a community
  • Publish the library
  • Control your repository
How to develop and punish android open source library

Read More..

4 Free Weather Providers API to develop Weather app

By With No comments:

Free weather provider API resources to develop weather based app

Topics covered

Free weather provider

Weather api

Android apps that give weather information are common in play store. Moreover, Weather app and widgets are one of the most downloaded apps.
When it is time to develop weather app, it is necessary to use a weather provider as the source of weather information. These weather providers expose a set of services or, in other words, a set of API that supports RestFul Webservices.
Most of these services accept XML or JSON data. It is important to know the service features before selecting the right provider according to our needs.
Generally speaking, the first point to consider is if the Android app will be free or not. According to this, it is possible to select the right weather provider because some features may be not free. Moreover, there are Weather providers that limits the number of calls to their services if you select a free plan. So consider carefully the right weather provider to use, and usually it is not so easy to change the client code once is developed. In other word, the client is tightly dependent to the weather api, so if you change the API you have to re-implement your client.
To make easier the process of selecting the right Weather provider according to your needs, I compiled, below, a list of weather providers that I used and tested.
This list can be useful if other developers want to develop an Android weather app.

free weather api for apps


Read More..

How to write NFC tag in Android

By With No comments:

Writing data into NFC tag in android tutorial

Topics covered

What is NFC

Write URL into NFC tag

Make a call with NFC tag

Write text data in NFC

This post describes how to use NFC in Android to write smart tags. Android smartphones are capable not only to read NFC tags that contains data like URL, phone numbers and so on but using Android NFC Api is possible to write NFC tags. In this post, we will explore how to use Android Api to write NFC smart tags.



How to write NFC tags using Android


What is NFC technology?

Before digging into the details about how to use NFC in Android it is useful to describe a bit what is NFC technology.
Near Field Technology (NFC) is a technology that enables short range communication between two compatible devices that support this technology. NFC requires that one device behaves as transmitter and other one as receiver. NFC enabled devices can be grouped in two categories:
  • Active
  • Passive
Active NFC devices are capable to send and receive data and can exchange data with passive device. Passive devices can send data to other NFC enabled devices without power source. A typical passive device is NFC tag that can be used as advertising system for example.
NFC technology is available on the newest Android smartphones and NFC tags are used to active advertising, smart payment etc. It is important then to know how to write NFC tags in Android.

Read More..

Internet of things project: Connect Android to Ubidots and Arduino - Part 2

By With No comments:

Build Internet of things project with Arduino and Ubidots and Android: draw charts with data sent by Arduino

Topics covered

Cloud IoT services

Android HTTP client

Android draws chart with MPAndroidChart

This post descries how to connect Android smartphones to Ubidots so that smartphone reads data sent from Arduino. In the previous post we explored how to connect Arduino to Ubidots so that Arduino board with temperature and humidity sensor sends data to Ubidots. In this post, we will develop an Android app that uses Ubidots services to get the information sent by Arduino.
Moreover, Android app not only read data but display it using charts. To this purpose, the app uses MPAndroidChart library, an open source library to create charts in Android.

Internet of things: Connect Android to Arduino using Ubidots


To develop the android app, it is necessary:
  • Handle HTTP connection to make REST requests toward Ubidots server
  • Handle JSON format to read data
  • Use MPAndroidChart to create charts based on the data retrieved

Read More..

Internet of things project: Connect Arduino to Ubidots and Android - Part 1

By With No comments:

Build Internet of things project with Arduino and Ubidots to send data to the cloud

Topics covered

Cloud IoT services

IoT store data

Arduino board with DHT11

This IoT project explores one important aspect in Arduino Internet of things programming: how to connect arduino to internet and store date to IoT cloud platforms using arduino ethernet shield. This aspect is important because it is possible to store data in the cloud and then analyze it. Once the data, like sensor values, is on the cloud is possible to access it using smart phones and control remotely the Arduino board.

IoT Project: store data into the cloud with Ubidots and Arduino


Read More..
Copyright © 2013-2016 Surviving with android | All Rights Reserved. Design By Templateclue

About Me | Contact me | Privacy | Policy | Advertise