Follow Us On:
FacebookGooglePlusTwitterYoutubeRSS
  •  
  • Archives for June2012Archives AndroidNova.org (81)

Just few days back we saw mind blowing demo of Google Glass presented in Google I/O 2012 and how many of us actually thought, “Woah!!! This thing will replace mobiles soon”. Well hang on, here we present Leap Motion which apparently could be “The Next Big Thing” after invention of mobile phones. So how many of you have watched “Minority Report” or “Iron Man”? If you haven’t then you have missed both great movies and also 3D computer interface shown in the films. Probably you all are confused what are we saying? Check out the video below:-

Blown away aren’t you? It is a new way to interact with your laptops, computers, tablets. No need of mouse or keyboard or even touching screen of your tablet. Leap Motion unveiled its new gesture control technology earlier this week and is already creating wave in digital world.

Forget the Kinect, Leap Motion is cheaper ($70), 200 times more precise (down to 0.01 mm), and much smaller (think an “Ipod”). The outstanding demo for Leap Motion shows how the desktop device can quickly detect hand motion so that a user needs merely wiggle their fingers in front of their computer to intuitively control what happens on the screen. Idea behind it is to create new better and natural way for humans to interact with their gadgets.

Leap Motion Device
Leap Motion Device
Leap Motion Device
Leap Motion Device

What is Leap Motion Technology exactly?

Leap Motion technology is a breakthrough in computer interaction, using a patented mathematical approach to 3D, touch-free motion sensing and motion control software that’s unlike anything that currently exists on the market or in academia. Developed over the past 4 years, Leap Motion moves far beyond the current technologies designed for distant arm waving.”

It is more likely that Leap uses an amazingly compact version of time-of-flight (TOF) technology to map the depth of users’ hands, fingers, and hand-held tools. Time-of-flight cameras rely on knowing the precise amount of time light takes to travel to, and return from, a subject to determine how far away it is. The technique is decade’s old, but early models were very large and expensive. Only recently has the technology been miniaturized to the point where it can fit in the palm of your hand.

Leap operates in three dimensions rather than two. Forget pinch-to-zoom; imagine “push to scroll,” rotating your flattened hand to control the orientation of an object with a full six degrees of freedom, or using both hands at once to control either end of a Bezier surface you’re casually sculpting as part of an object you’ll be sending to your 3D printer. It can see almost any combination of the objects like a pen, fingers (All ten at same time).

Holz and Buckwald, the mastermind of Leap Motion said that, “It’s an optical system that tracks your fingers with infrared LEDs and cameras in a way unlike any other motion control tech”. Using the Leap is easy, simply connect it to your computer via USB and install Leap’s software, wave your hand in the space above the sensor, and it starts tracking any finger pointing at the screen. Because Leap works with any machine that has touch drivers onboard, using it is quite intuitive, and means that the technology is backwards compatible with existing apps. Holz and Buckwald are keen to see developers create custom applications to take full advantage of the technology.

How can it be used? And what is future of it?

Imagine you are cooking in kitchen and looking at recipe on website, just wave your fingers to scroll the webpage on your computer or tablet. You can play games like Fruit Ninja, or shooting game, tennis, star wars and so on. You can draw 3D structure using complicated softwares on your computer like AutoCad. Technically it can have numerous applications in the real world. You just have to imagine how you can use it.

Game Play using Leap Motion
Game Play using Leap Motion
Fruit Ninja using Leap Motion
Fruit Ninja using Leap Motion
Angry birds using Leap Motion
Angry birds using Leap Motion

In future, this device will be much smaller and can be stuffed into devices like smartphones, tablets, laptops or computers. And as all such devices have their own set of sensors; it will eventually create a larger workspace. It is priced mere 3900 INR (70$) and is expected to be launched in coming November or December. Also they are in talks with big manufactures to launch Leap enabled laptops in near future.

Are you curious to know more? Or if you want to Pre-order these awesome gadget then visit their official website.

So what you do think? How can Leap Motion Technology change our lives? Share your views and comments below. Here we leave with one more Leap Motion Demo below :-

Extremetech.com, leapmotion.com, engadget.com

Android App Development – Widget

Categories: App Development, Tutorials
Comments: 4 Comments
Published on: June 30, 2012

Hi nerds, as the Title implies this Tutorial is just a Beginner’s Guide on Creating Widgets (Widget that displays current time) and how do they work on an Android device.

Pre-requisites:

  • Basic Java Knowledge.
  • Already have created basic HelloWorld apps specified here and here.

So, let’s start with the Project shall we …

Development :

Step 1: Open up your Eclipse, click File > New > Other > Android Project
The project name could be given as “HelloWidget”, and then select any Build Target Platform of your choice (Android 2.1/2.2/2.3/4.0 etc.), and then specify a package name.
And then, uncheck the probably already checked Box “Create Activity”. We won’t create an Activity here we just want a simple widget. Just like the below picture :

Step 2 : So now as you have created your Project, lets start with the Layout and design of our widget. Open up main.xml (Path:- HelloWidget > res > layout > main.xml) and modify it like as shown in the below picture :

We have a simple linear layout with a TextView for your message to display. At this point, you will get an Error saying ERROR Error: No resource found that matches the given name (at ‘background’ with value ‘@drawable/widget_bg_normal’) That’s because you don’t have the widget_bg_normal resource at this point. I have attached that picture (Look in Attached Images), you can put that picture or find your own .9.png image. Put that image (Path:- HelloWidget > res > layout > drawable > widget_bg_normal.9.png). If you don’t find a folder named drawable, just create one in that path

You’ll also encounter another error suggesting that @string/widget_text can’t be found. To correct that open up strings.xml (Path:- HelloWidget > res > values > strings.xml) and modify it as shown in the below picture :

Step 3 [Slightly big Step, don't get bored] : So, we just have finished our design part. Now we have to tell Android that we are going to have a widget. Open up AndroidManifest.xml (Path:- HelloWidget > AndroidManifest.xml) and modify it as shown in the below picture :

NOTE: minSdkVersion=”15″ denotes that my Build target is Android 4.0.3 (API Level 15) and if you are building on Android 2.2/2.3 just leave it as default and don’t edit it to 15.

Explanations : We declare our Broadcast Receiver which will be “HelloWidget”. Don’t forget the dot before HelloWidget, this will create the full qualified path name with the declared package at the top of the file. The Label of our application was already set by the project wizard and is located in our strings.xml.

From the Documentation, The <intent-filter> element must include an <action> element with the android:name attribute. This attribute specifies that the AppWidgetProvider accepts the ACTION_APPWIDGET_UPDATE broadcast. This is the only broadcast that you must explicitly declare. The AppWidgetManager automatically sends all other App Widget broadcasts to the AppWidgetProvider as necessary.

The meta-data tag tells android about your widget provider. In this case, the widget provider is located at HelloWidget > res > xml > hello_widget_provider.xml Create folder xml under res. Create a new XML file inside that xml folder and name it as “hello_widget_provider.xml”. Create like shown in the below picture :

Now, after all these, the only thing that is missing to run our widget is the Class that extends the AppWidgetProvider which we declared in AndroidManifest.xml at the receiver-tag.

Right-Click your Project (HelloWidget) > New > Class
And create the class as shown in the below picture :

So, your new Class will look like this :

Step 4 : So, we have created a blank widget that actually does nothing. We’ll just see for ourselves how does it looks like. Run your Application (HelloWidget > Run As > 1 Android Application) and your AVD is powered up. And , you should see the output as something like this as shown in the below picture :

Step 5 : Now, open up the HelloWidget.java (Path:- HelloWidget > src > com.coolsandie.android.widget > HelloWidget.java) file, and modify it as shown in the below code(In order to display the Time inside the Widget, apart from displaying a default text)

Code:
package com.coolsandie.android.widget;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
import java.util.Timer;
import java.util.TimerTask;

import android.appwidget.AppWidgetManager;
import android.appwidget.AppWidgetProvider;
import android.content.ComponentName;
import android.content.Context;
import android.widget.RemoteViews;

public class HelloWidget extends AppWidgetProvider {

	@Override
	public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) {

		Timer timer = new Timer();
		timer.scheduleAtFixedRate(new MyTime(context, appWidgetManager), 1, 1000);
	}

	private class MyTime extends TimerTask {
		RemoteViews remoteViews;
		AppWidgetManager appWidgetManager;
		ComponentName thisWidget;
		DateFormat format = SimpleDateFormat.getTimeInstance(SimpleDateFormat.MEDIUM, Locale.getDefault());

	public MyTime(Context context, AppWidgetManager appWidgetManager) {
		this.appWidgetManager = appWidgetManager;
		remoteViews = new RemoteViews(context.getPackageName(), R.layout.main);
		thisWidget = new ComponentName(context, HelloWidget.class);
	}

	@Override
	public void run() {
		remoteViews.setTextViewText(R.id.widget_textview, "TIME = " +format.format(new Date()));
		appWidgetManager.updateAppWidget(thisWidget, remoteViews);
	}

	}
}

Step 6 : So guys, we have finished it. The completely working widget should be ready by now. Run your Application (HelloWidget > Run As > 1 Android Application) and your application is synced. Add the HelloWidget on your home Screen by touching your home screen for sometime and select widget,  and it will show the output just like as shown in the below picture :

Finally, we have made it. It only took 6 steps for a completely working Widget.
And I hope you enjoyed this Tutorial. Its made as simple as possible, so surely anyone could give it a try.

 

Is it a bird?? Is it a plane?? No its the new Nexus 7 tablet by Google. Yes. With the dramatic unveiling of the Nexus 7 tablet, Google has dived headfirst into the field of consumer electronics and also shaken up the Apple-Amazon tablet wars.

Google announced the release of its first tablet, the Nexus 7 at San Francisco Google I/O developers conference this week on 28th. Nexus 7 is more than just another tablet, it puts Google’ s aims right into the horizon to reinvent itself, manufacturing its own hardware to compete with the likes of Apple and Amazon. It is a totally new direction for Google and it certainly heats up the Tablet wars. (more…)

Android Jelly Bean : The beans are spilling

Categories: Latest News
Comments: 1 Comment
Published on: June 30, 2012

 

Just three days back at the Google I/O, Google unveiled the successor to IceCream Sandwich, the Android Jelly Bean(Android 4.1).

The vanilla device, the Galaxy Nexus, got an almost instant upgrade to the new OS and surprisingly, the 2-year old Nexus S is confirmed to get an update from Google. Now that’s godspeed upgradation!

This is some fast service by Google for its Nexus devices, while the OEMs will turn up with the Jelly Beans at a time when Google will announce its next OS, the Key Lime Pie.

Google side-by-side with the announcement, also uploaded the Jelly Bean SDK for developers. Developers, being the backbone of Android, have through their amazing skills, have ported the 4.1 for many devices. While the ports have many things not working, but still the main integral part of the devices works. So, if you are willing to have a ride of the new OS, check out the respective threads at XDA :

Samsung Galaxy S III : http://forum.xda-developers.com/showthread.php?t=1737449

CDMA Galaxy Nexus :

http://forum.xda-developers.com/showthread.php?t=1738018 (Verizon)

http://forum.xda-developers.com/showthread.php?t=1737745 (Sprint)

HTC One X : http://forum.xda-developers.com/showthread.php?t=1737736

Samsung Galaxy S II : http://forum.xda-developers.com/showthread.php?t=1739763

Categories: Apps, Future Next, Latest News
Comments: No Comments
Published on: June 29, 2012

 

What fun it would be to play your favorite android games on your PC !

Well, all that is now possible,  thanks to ‘Bluestacks app player’.

 

BlueStacks App Player lets you run your Android apps fast and full screen on Windows PCs and tablets

~ bluestacks.com

 

BlueStacks app player is currently in beta testing phase.

The beta comes packed with pre-installed apps like Crackle, Evernote, Google Sky Map, Pandora, Pulse, Talking Tom 2 Free and a few others.

To install additional apps, simply search for the desired game or tool in the search box which will present a list of results.

The best part is that, you can Sync Android Apps from your phone or tablet to BlueStacks using their Cloud Connect mobile app.

Just recently, BlueStack launched their app player for Mac ( alpha ) too.

So to get you started, here is the link to download the bluestacks app player (beta). Njoi :-)

Download app player

 

Categories: Tutorials
Comments: No Comments
Published on: June 29, 2012

Google on Thursday announced improvements to its Chrome browser, improvements to Google Docs, and Chrome and Google Drive for iPhone and iPad, among other things on Day Two of the Google I/O developer conference in San Francisco.

Google Drive Improvements

While Thursday’s announcements paled in comparison to those rolled out in Wednesdays keynote big show, a few of them will certainly be of interest to us.

Most important announcement was about Google Drive, substantial updations have been added to Google drive.

One cool improvement to the product lets you work on word documents when you are not connected to the internet. The capability is available immediately for word documents, and later on for spreadsheets and presentations.

Google has been working to allow us to sync our Drive documents between different kinds of devices, and to work on documents with our friends or workmates regardless of the type of devices being used.

The company also announced that Google Drive will now be available for use on the iPhone and the iPad. You can now add people to collaborate with.

Developers can now design their apps to send faxes, and send and receive documents, using Drive.you from within Drive; while collaborating you can see your document updating in real time on whatever tablet or phone you may be using.Google says that more than 10 million people began using Google Drive “in just over 10 weeks” after its release.

Chrome Browser Improvements

chrome browser usage statistics
chrome browser usage statistics

Google says more than 310 million people worldwide now use the Chrome browser.Google Chrome browser product manager Brian Rakowski was on stage to announce some new capabilities for developers.

He also demonstrated how developers will now be able to easily build voice recognition into their Chrome apps. That will allow users to give commands to their apps without touching touchscreens or typing.

The biggest announcment around Chrome, however, is the news that a version of the Chrome browser for the iPhone and the iPad will become available today.

Chromebooks performance is SuperFast

The Chromebooks that Google introduced last year were not well received, mainly because of their connection and storage limitations, and because of sluggish performance. But the Google laptops have survived, and Google says the the new Chromebooks are three times faster than the original chromebooks.

They will also become easier to purchase. Chromebooks will soon go on sale in selected Best Buys and other retail outlets across the United States. Google also says it’s working with a series of computer makers to release more Chromebooks by the Christmas season.

The Cloud is Spreading Far

Google says that its cloud infrastructure is now so powerful and scalable that developers can run their apps entirely in the cloud to as many users as they want “for a reasonable price.”

This was demonstrated by showing the Google I/O kenote audience an entirely cloud-based gamed called Bulletstorm on a giant screen. The game ran very smoothly in the demo, and the graphics looked great; it looked a lot like a game running on a gaming console.

BulletStorm cloud based FPS game being played
BulletStorm cloud based FPS game being played

Very Developer-Oriented Keynote

Day 2 was very much developer oriented, as compared to day 1 which was maximum consumer oriented.so many consumers were seen yawning in day 2.However, the developers in the crowd were treated to a reprise of the skydiving act from yesterday, in which the divers all wore the Google Glass glasses and filmed their descent from the air.

Hello nerds, This tutorial is mainly intended for looking into some other concepts like GUI of Android development. The concept of “Toast” would be actually covered.

First you have to create HelloWorld App. After you’ve created your first HelloWorld app, its time for some additional tasks! (Make sure you’ve set your AVD already).

If some of you guys are wondering what a Toast is, well here’s the answer: Click!

Development :

Step 1: The first thing we are going to accomplish is changing the strings.xml (Path:- AppName > res > values > strings.xml) file to add another node under app_name. We will do this by copying the node above it and pasting the copied material directly under the last </string> element. Then we will change the name of the string to press and in between we will write Press Me!. Next we will alter the hello node and change the text to say Enter Your Name Here: instead of Hello Android, Hello World!.

Step 2: Next step, is to design the GUI (Graphical User Interface). To do this navigate to main.xml (Path:- AppName > res > layout > main.xml) and we are going to go over what everything does up to this point. Set your main.xml file as shown in the below picture.

Make sure you’ve set the Orientation as vertical, otherwise ie, if its horizontal maybe the GUI controls won’t be shown when the app is run.(in an HVGA Emulator, or maybe its me) Anyways you are free to toggle between vertical/horizontal and see what happens.

Note : Next step needs basic knowledge of java.

Step 3: Now this is a tricky step, and it includes Java code modifications. I suggest you to google to know exactly what all these codes means be it functions, classes, methods, objects or imports. You can refer the Wiki or the Oracle docs if you want to learn more about Java. Anyways for keeping this Tutorial simple, just modify the Java file (Path:- AppName > src > com.example.helloworld > HelloWorldActivity.java)  as shown below:

Code:

package com.example.HelloWorld;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;

public class HelloWorldActivity extends Activity {
    private Button b;
    private EditText disp;
    private String getText;;

    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        b = (Button) findViewById(R.id.go);
        // To perform click operation on "Press me" Button
        b.setOnClickListener(new View.OnClickListener() {
            public void onClick(View v) {
                // TODO Auto-generated method stub
                disp = (EditText) findViewById(R.id.helloName);
                getText = disp.getText().toString();
                // to display toast
                Toast toast = Toast.makeText(getApplicationContext(), "Hello "
                        + getText + "!", Toast.LENGTH_SHORT);
                toast.show();
            }
        });

    }
}

don’t just copy-paste the respective code. If you run into massive errors or problems only, do that. Its better to type the codes by yourself and see what all AutoFill options/suggestions are given by Eclipse. Anyways try to correct the errors by yourself, it maybe only a spelling-mistake, but you have to identify it where.

Step 4: After doing all these above mentioned tasks, its time for the output. Be sure to click “Save All” (Ctrl+Shift+S) button in the Eclipse. Also make sure your Project is free from errors, otherwise it would not run. You can also clean your Project (Some errors maybe automatically fixed) by navigating to Project > Clean…

Right Click your Project > Run As > 1 Android Application
Your Emulator would start, and you’ll see in the Eclipse as apk installing, running etc..
If your Project is a Success, you’ll get the output as shown in the below picture:

And that’s it
I hope you enjoyed this tutorial. Its made as simple as possible and omitted some theories from the Original source. You can get to it, and see the xml parts explained.

 

page 1 of 12»
Stay Updated via your Android
Welcome to AndroidNova.org

Welcome to the AndroidNova Universe where everyone is updated with the latest happenings in the Android World. Right from the latest news to the newest devices, apps, games, AndroidNova amasses its visitors with the knowledge and expertise that no other Android blog can provide. We Welcome everyone for a Delightful journey in the Android Galaxy. Join us and we guarantee a thrilling yet Wonderful journey in the universe of Android.

Find Us on Facebook
Advertisement
.