Friday, 17 May 2013

Google's New features in location and physical moment.


Google is improving a lot for developer's favour by adding lots of flavour in android.
Three new location based API's- 

Fused Location provider- Fused Location provider basically combines all phone sensors that can detect location and in turn greatly reduces battery consumption when an app such as maps requires specific location.So it combines data from a device cellular radio,gps and wifi to provide more uniform location features in app.

Geofenching- It allows to set up geographical area and then it trigger events when user enter or leave it. It has been there in ios 5.1,now google also going to  provide api.

Activity Recognition-It can figure out, whether you are currently travelling on foot, car or bicycle.

Google's Barra also announced that company is launching Google play game services offering many features IOS users have in Game center along with additional features such as ablility to play corss platform between Android Devices and Web-based games.



Monday, 13 May 2013

Tizen-Samsung Future and not Android

As so many OS are releasing and much competition in mobile world, Samsung +Intel association going to hit a stable release which is so called as Tizen. OS family is based on Linux and it uses HTML 5 scripting language. Tizen released version 2.0 called as Magnolia.

Tizen provides application development tools based on JavaScript libraries JQuery and Jquery Mobile.Since version 2.0 native application framework is also available based on Open Services Platform from Beta platform.

SDK allows developers to use HTML 5 and related web technologies to write application that run on supported devices.

Bada an OS for mobile which open services platform forms native application framework of Tizen 2.0 and later.

Corodova implemtation for tizen is JavaScript wrapper library allowing to build and run Corodova based projects on Tizen.

Tizen is a competitor to Android and IOS but it goes further,Tizen wants to be universal and works on

1.Smartphone
2.Tablet
3.Netbook
4.Vehicles
5.TV


From the official website, you can download SDK https://www.tizen.org/

For Developers tutorial, it's available here. https://source.tizen.org/documentation




Wednesday, 20 March 2013

To pass different activity in tablet and phone android

In this, I am  going to discuss about how to use different activity used  in Tablet and phone. I will show you the structure how it will look. You can use it based on your requirement.

in res->values->bool.xml


<?xml version="1.0" encoding="utf-8"?>
<resources>
    <bool name="isTabletDevice">false</bool>
</resources>


Main.java


         boolean tabletDeviceSize = getResources().getBoolean(R.bool.isTabletDevice);
if (tabletDeviceSize) {



Intent intent = new Intent(Main.this,
B.class);
startActivity(intent);

}

else
{

               Intent intent = new Intent(Main.this,
C.class);
                 startActivity(intent);

}
Happy coding..


Thursday, 3 January 2013

Blackberry beginning tutorial

Well If you are familiar with java, then you can create Blackberry programming.

Click here

https://developer.blackberry.com/java/ to download blackberry sdk 7.1

Then you will be redirected to download page,

http://swdownloads.blackberry.com/Downloads/contactFormPreload.do?code=00EC53C4682D36F5C4359F4AE7BD7BA1&dl=FF6622A42D684A5F18B53B8D94C9BE98&check1=A

Download and install it.

Your eclipse will start

Click File->New ->Blackberry Project

Enter Project name and click Finish.

In package explorer, you will find package.Inside the package you will find two class file. MyScreen.java and MyApp.java.You can rename it as your choice.

MyScreen.java is the "Application" screen and MyApp.java is "MainScreen" application class.

Let's proceed in programming..

MyScreen.java:


Import net.rim.device.api.system.ApplicationManager;

Import net.rim.device.api.ui.UiApplication;

Public class MyScreen extends UiApplication
{

Public static void main(String args[])
{

//new Instance of application

Launcher lr=new Launcher();

lr.enterEventDispatcher();

Private Launcher()
{

This.pushScreen(new MyApp() );

}

}


MyApp.java


Import net.rim.device.api.ui.component.LabelField;

Import net.rim.device.api.ui.container.MainScreen;

Public class MyApp extends MainScreen

{

//Inside the constructor,labelfield been used.
Public MyApp()

{

//I am creating a labelfield that will display in screen
LabelField lf=new LabelField();

//set the text that you want in label field.
lf.setText(“Hello world”);

//add the label field in mainscreen
this.add( lf );

}

}

To run the application. run->run project->Blackberry simulator 














Monday, 24 December 2012

List of open source Android game Engine


For creating games in android, there are some supporting open source android game engine which are listed below

1.jMonkey Engine(Java based 3D Game Engine)

http://jmonkeyengine.org/

2.YoghurtGum(Android Game Engine)

https://code.google.com/p/yoghurtgum/

3.Catcake(Android Game Engine)

https://code.google.com/p/catcake/

4.jPCT-AE(Android Game 3D Engine)

http://www.jpct.net/jpct-ae/

5. Dwarf-fw(Android 3D Framework)

https://code.google.com/p/dwarf-fw/

6.Mages(Android Game Engine)

https://code.google.com/p/mages/

7.Angle(Android Game Engine)

https://code.google.com/p/angel-engine/

8.Shiva3d(Android Game Engine)

http://www.stonetrip.com/

9. Unity3d

http://unity3d.com/

10.E3Droid

http://www.e3roid.com/

11.LibGDX

https://code.google.com/p/libgdx/

12.Dxstudio

http://www.dxstudio.com/index.aspx

13.CuttleFishEngine(2D)

http://www.masonmc.com/2012/mkdir-cuttlefish2/

14.Rokon 2D game engine

https://code.google.com/p/rokon/

15. Corona Game Edition

http://www.coronalabs.com/products/corona-sdk/


Friday, 21 December 2012

Android DayDreams

Hi,

This is my First post.Please encourage me to continue this forever.

Well, So my First post is about Android. 


Android used to keep so many attractive sweet names in Alphabetical order that starts from Cupcake(1.5) to JellyBean. Hope next new version of Android on march or may 2013 will be Android 5.0 Key Lime Pie.

Android released Jelly Bean 4.1,However 4.2  updates with minor changes also released. Several new concepts introduced in that. I get attracted on a concept called as Daydreams which I want to share with you.

Daydream is a new interactive screensaver mode for Android devices.It is added in api level 17.



Lifecyle of DreamService:

onAttachedToWindow():

Use this for initial setup, such as calling setContentView().

onDreamingStarted():
Your dream has started, so you should begin animations or other behaviors here.

onDreamingStopped()
Use this to stop the things you started in onDreamingStarted().

onDetachedFromWindow()
Use this to dismantle resources your dream set up. For example, detach from handlers and listeners.

Now Let us look a simple example for DayDreams.

//It extends with DreamService

public class DayEx extends DreamService 
{
//create a textview

TextView t;

//Based on lifecycle of daydreams, u need to use setcontentview in this method.
@Override
public void onAttachedToWindow() 
{

setContentView(R.layout.main);

t=(TextView)findViewById(R.id.textView1);

super.onAttachedToWindow();
 setInteractive(true);
 
      setFullscreen(true);
   
    t.setText("Hello world");

}

@Override
public void onDreamingStarted() {
// TODO Auto-generated method stub
super.onDreamingStarted();
}


}

In Android Manifest.xml declare this.


   <service
     android:name=".DayEx"
     android:exported="true"
     android:label="DayEx >

     <intent-filter>
        <action android:name="android.service.dreams.DreamService" />
        <category android:name="android.intent.category.DEFAULT" />
     </intent-filter>


Start to run the application.

Go to Settings-> Applications->Display->DayEx(The given service label will be displayed in this.You can change any name for the application).





You can display this while  in charging or in docked.You can select your choice in WHEN TO DREAM. Then select start now..



Enjoy..:) :)