Home Authors Posts by Amalan Dhananjayan

Amalan Dhananjayan

4 POSTS 0 COMMENTS
Passionate Android developer who loves to code Java and C#. Likes to enjoy my leisure time taking photo. Proud Software Engineer to be working with a Google Glass.

Hi guys, this time I’ll write about the new Android Wear, which was announced last week. So what is it all about?

Its a new approach by Google to bring a new concept by creating a new development area with targeting only wearable devices.

It’s not a completely new OS, its the same android but made specifically for wearable device software development.

‘Google Says that the Android Extends to Android Wear. Richer Experience for the Wearable devices’ -


So this time, there are 2 types of designs unlike the galaxy gear and smart watch 1 and 2. You can see a circle one and a traditional square screen. As I have heard the square one is going to be manufactured by LG, which has less spec and smaller price tag, whereas the circle one will be made by Motorola with high specs.

For developers, Android wear SDK developer preview has been released, so you guys can download and try it out. Which will be a great experience in the future when the device is out in the market.

So with the help of the official article I managed to find out that you can do the below shown basic functionality.

functionalities

It does not mean that you have to learn anything new, you also can use the old APIs

‘You can also trigger your notifications contextually using existing Android APIs. For example, use geofences to provide glance able information to your users when they are at home, or use the activity detection APIs to send messages to your users’ wrists while they are bicycling.’

So what are you waiting for, register for developer preview, download the sdk and start developing.

:)

Reference : Android Wear|Path of a Coder.com

Hi Guys, this time I am back with some Android Game Development. I got this idea after, the popular game Flappy Bird. Hope all may have tried that game…!
Ok, so I wanted to develop a game and I did some researches and found out that there are a lot of Game engines out there. Some of them are COCOS2D, AndEngine, libGDX and many others. In this article I’ll guild you using AndEngine which is a bit easier one. In future I’ll write on libGDX.

Assumption : I assume that you guys know how to install eclipse development environment, configure java path and install Android plugin to eclipse. This post does not cover all those basic steps.

Advise : As this is a kind of a crash course, its advisable to create files the same name as I use(But it is not mandatory).

Expected Outcome : You will be able to create some lines using the AndEngine

Step 1
Download the Source(library) for the AndEngine using this link and extract

https://github.com/nicolasgramlich/AndEngine

Step 2
Create a new project and when creating select ‘Android Project from Existing Code’ and in it select the folder that we extracted in the Step1.
existing code

This is a library project. Actually this library is the ANDENGINE.
libraryproject

You can check it by right clicking on the project we created now and going to the Android tab. You can see the ‘Is Library’ check box ticked.

Step 3
Now create a new Android project and un tick the create activity. Because we are going to create AndEngine activity using the library project we created above.
createactivity

Step 4
Now you have a project with empty src folder. Right click on that folder and create a new package when naming the package use the package name available in that project ManifestFile
packagename

In my case package name is ‘”com.batz.andengsample”‘

Step 4
Now in side the empty package Download or copy the code and create LineEample.java activity using this LineExample Source Code.

You will get some errors, but don’t worry we will fix it in the next step.

Step 5
So now in your project, right click and go to Android tab and there in the below section(library section), click on the add button and select the AndEngine project and press ok. And then press Apply.
add library

Now all the errors may have gone. Some times you will have errors on the package name, if you have used your own name. So for that, click on the package name that shows as error, click ctrl key +1 key , which will bring suggestion to create a package name according to yours, and click on it to create it. And hopefully all the bugs will be fixed.

Step 6
Before going for the app launch, we have to do one more important thing, we have to specify the activity we created now in the manifest file as a launcher

So go to the manifest file and add these lines between the application tags

<activity
android:name=”.LineExample”>
<intent-filter>
<action android:name=”android.intent.action.MAIN” />
<category android:name=”android.intent.category.LAUNCHER” />
</intent-filter>
</activity>
manifest

LineExample is the name I gave for the activity we created, so in your one don’t forget to change that

Step 7
Now you are ready to run the app. So while you are in the the activity try running the app. it should bring a screen where you will see lots of random lines.

Step 8(For people getting error saying cannot find andengine.apk)
For some people the AndEngine folder is not getting added as library on the time of building the app. So at that point what you can do is copy the andengine.jar file from the AndEngine project libs folder and copy it into your projects’s libs folder. And right click on the newly added andengine.jar file and click on ‘Add to Build Path’ option. This is how the project structure looks after I added the jar to my project from the AndEngine project in the Step8

projectstructure

AndEngine Resources : http://www.andengine.org/

For people who got more time , for people who needs more detailed instruction on the same project guild please watch this tutorial video
Development Reference : http://www.youtube.com/watch?v=Q0kjiIH6u-M

Thank You
-Batz-

Reference:  – http://pathofacoder.com/2014/03/04/lets-try-android-game-development-with-andengine/

2761

Smart Contact lenses project by Google was started as developing a solution for overcoming the difficulties faced by the diabetes patients when measuring the sugar level in their blood on daily basis. And still it is not intended to work like a Google Glass or a Smart Device. Its basic functionality is to gather sugar level in blood every second to make the patient comfortable.

Following is the explanation Google published in their official blog:

You’ve probably heard that diabetes is a huge and growing problem—affecting one in every 19 people on the planet. But you may not be familiar with the daily struggle that many people with diabetes face as they try to keep their blood sugar levels under control. Uncontrolled blood sugar puts people at risk for a range of dangerous complications, some short-term and others longer term, including damage to the eyes, kidneys and heart. A friend of ours told us, she worries about her mom, who once passed out from low blood sugar and drove her car off the road.

Many people I’ve talked to say managing their diabetes is like having a part-time job.

Glucose levels change frequently with normal activity like exercising or eating or even sweating. Sudden spikes or precipitous drops are dangerous and not uncommon, requiring round-the-clock monitoring. Although some people wear glucose monitors with a glucose sensor embedded under their skin, all people with diabetes must still prick their finger and test drops of blood throughout the day. It’s disruptive, and it’s painful. And, as a result, many people with diabetes check their blood glucose less often than they should.

Over the years, many scientists have investigated various body fluids—such as tears—in the hopes of finding an easier way for people to track their glucose levels. But as you can imagine, tears are hard to collect and study. At Google[x], we wondered if miniaturized electronics—think: chips and sensors so small they look like bits of glitter, and an antenna thinner than a human hair—might be a way to crack the mystery of tear glucose and measure it with greater accuracy.

Untitled-1

We’re now testing a smart contact lens that’s built to measure glucose levels in tears using a tiny wireless chip and miniaturized glucose sensor that are embedded between two layers of soft contact lens material. We’re testing prototypes that can generate a reading once per second. We’re also investigating the potential for this to serve as an early warning for the wearer, so we’re exploring integrating tiny LED lights that could light up to indicate that glucose levels have crossed above or below certain thresholds.

It’s still early days for this technology, but we’ve completed multiple clinical research studies which are helping to refine our prototype.

We hope this could someday lead to a new way for people with diabetes to manage their disease.

We’re in discussions with the FDA, but there’s still a lot more work to do to turn this technology into a system that people can use. We’re not going to do this alone: we plan to look for partners who are experts in bringing products like this to market. These partners will use our technology for a smart contact lens and develop apps that would make the measurements available to the wearer and their doctor. We’ve always said that we’d seek out projects that seem a bit speculative or strange, and at a time when the International Diabetes Federation (PDF) is declaring that the world is “losing the battle” against diabetes, we thought this project was worth a shot.

Resource – Posted by Brian Otis and Babak Parviz, project co-founders in Google’s Official Blog

6449

Ingress is a real life location based augmented reality game, developed by NianticLabs@Google.

Recently the Ingress activity has seen some momentum in Sri Lanka, specially in Colombo suburbs and in Kandy. There are many activities detected all over the country.

The gameplay consists of establishing “portals” at places of public art, landmarks, cenotaphs, etc., and linking them to create virtual triangular fields over geographic areas. Progress in the game is measured by the number of Mind Units, i.e. people, nominally controlled by each faction (as illustrated on the Intel Map). The necessary links between portals may range from meters to kilometers, or to hundreds of kilometers in operations of considerable logistical complexity. International links and fields are not uncommon, as Ingress has attracted an enthusiastic following in cities worldwide amongst both young and old, to the extent that the gameplay is itself a lifestyle for some, including tattoos.

Ingress in Sri Lanka

Ingress in Sri Lanka

A possible portal looks like this:

Portal

So there are two teams known as Resistance(Blue) and Enlightened(Green). And they fight over capturing and establishing their strong hold around the cities.

Players actually need to go to the real location marked on the map to interact with a portal. So it really is a time consuming and tiresome game, but a good game if you are traveling in vehicle and you often get caught in traffic.

So each player has a user level, which increases with the activities you do in Ingress. So people destroy portals and capture an enemy portal and do all those other stuff to gain point and to level up. The higher level player gets the liberty of using more powerful weapons and items.

Also there is a real time COMM chat system, helping each faction to communicate with each others and to get real time update on what is happening around them in Ingress.

Resistance Meetup near Word Trade Centre. Photo credit - Thilanka Niroshana

Resistance Meetup near Word Trade Centre. Photo credit – Thilanka Niroshana

Also people become friends with same faction and they do get together often not only to meet but also to engage  in larger missions and fun stuffs. Going on trips to unveil hidden and unknown portals and create control fields to show their power are really fun.

Here is some of major Ingress operations that went over the country to capture large area of land by both factions.

Operation – From North with Love
Faction – Resistance
Reference - https://plus.google.com/+GaveenPrabhasara/posts/9LE8KwPHaNh
000000

Operation – Coast2Coast
Faction – Enlightened
Reference – https://plus.google.com/118118346515377811509/posts/PCEbg4EKqF1

map-final

✮ Top Game of 2013 at Google Play Player’s Choice Awards.
✮ Best Android Strategy Game Runner-up at Android Central Best of 2013 Awards
✮ One of the Best Android Apps of 2013 – Gizmag

Resource : Ingress Sri Lanka G+ Community , Ingress Official Site

Google Play Store : Download the Game Here