Tampilkan postingan dengan label Android. Tampilkan semua postingan
Tampilkan postingan dengan label Android. Tampilkan semua postingan

Simple Gallery Application In Android

Posted by Unknown Sabtu, 15 Februari 2014 0 komentar
Here is simple gallery application.Copy and download the code and try it out.....
 
public class mygalleryactivity extends Activity {

Integer[] imageIDs = {
R.drawable.pic1,
R.drawable.pic2,
R.drawable.pic3,
R.drawable.pic4,
R.drawable.pic5,
R.drawable.pic6,
R.drawable.pic7
};
Gallery gallery;

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

gallery=(Gallery) findViewById(R.id.Gallery01);
gallery.setAdapter(new ImageAdapter(this));
gallery.setOnItemClickListener(new OnItemClickListener()
{

public void onItemClick(AdapterView parent, View v, int position ,long id) {
// TODO Auto-generated method stub
Toast.makeText(getBaseContext(),
"pic" + (position + 1) + "selected",
Toast.LENGTH_SHORT).show();
ImageView imageView =(ImageView) findViewById(R.id.image1);
imageView.setImageResource(imageIDs[position]);
}
}); }

public class ImageAdapter extends BaseAdapter
{
Context context;
int itemBackground;

public ImageAdapter(Context c)
{
context = c;
//---setting the style---
TypedArray a = obtainStyledAttributes(R.styleable.Gallery1);
itemBackground = a.getResourceId(R.styleable.Gallery1_android_galleryItemBackground,0);
a.recycle();
}
//---returns the number of images---
public int getCount()
{
System.out.println(imageIDs.length);
return imageIDs.length;

}
//---returns the item---
public Object getItem(int position)
{
return position;
}
//---returns the ID of an item---
public long getItemId(int position)
{
return position;
}
//---returns an ImageView view---

public View getView(int position, View convertView,ViewGroup parent)
{
ImageView imageView;
if (convertView == null) {
imageView = new ImageView(context);
imageView.setImageResource(imageIDs[position]);
imageView.setScaleType(
ImageView.ScaleType.FIT_XY);
imageView.setLayoutParams(
new Gallery.LayoutParams(150, 120));
} else {
imageView = (ImageView) convertView;
}

imageView.setBackgroundResource(itemBackground);
return imageView;
}}}  
            

Baca Selengkapnya ....

Android Get Current Time and Date

Posted by Unknown Kamis, 13 Februari 2014 0 komentar
For getting current (today) date and time in android application, we used calendar class get the current instance of android phone clock.
After getting calendar class object, we required a formatted object for date and time.
 
Calendar c = Calendar.getInstance();
SimpleDateFormat sdf = new SimpleDateFormat("dd:MMMM:yyyy HH:mm:ss a");
String strDate = sdf.format(c.getTime());
System.out.println("================>>>"+strDate);

Android Time formats table

d single digit date e.g. 5
dd double digit date e.g. 05
M single digit month e.g. 1
MM double digit month e.g. 01
MMM three-letter abbreviation for month e.g. Jan
MMMM month spelled out in full e.g. January
yy double digit year e.g. 13
yyyy four digit year e.g. 2013

Android Time format table

h single digit hours in 12 hour format e.g. 9
hh double digit hours in 12 hour formate e.g. 09
H single digit hours in 24 hour format e.g. 9PM as 21
HH double digit hours in 24 hour format e.g. 9PM as 21
m single digit mints e.g. 9
mm double digit mints e.g.0 9
s single digit seconds e.g. 9
ss double digit seconds e.g. 9
a am/pm marker

Android Date and Time Separators

" . " – Dots or full stops
" - " – Hyphens or dashes
" " – Spaces
: – colon mostly used between time
" / " – Slash

Baca Selengkapnya ....

How to sign an android APK, a simplest way

Posted by Unknown Rabu, 12 Februari 2014 0 komentar
After completing your Android Project, you have to sign it before you upload it.And here in this post we explain an easy way to sign an apk via eclipse. Double click the Android Manifest file and and clearly provide the package and version code and version name.
Below that there is link called “use the export wizard”. Click on that.

then another window will open, there select your desired project.

click Next, then you will be asked for a keystore, if you have a keystore file then browse and locate the file.
OR
Create a new one.
If you have a keystore file the after locating the file you have to give the password.



Click on Finish and your APK file will be created in the destination directory.
If you are creating a new one then…
Go through these steps by filling in the details that appear in the dialog.



Clicking on Finish will create your signed APK.
Now Give a location for you signed apk file.- Click finish -> Your signed APK is ready for upload to the market.

Baca Selengkapnya ....

Google Sells Motorola to Lenovo

Posted by Unknown Rabu, 29 Januari 2014 0 komentar
Google's decision to sell Motorola Mobility to Lenovo for $2.91 billion is even more surprising than Google's acquisition of Motorola Mobility for $12.5 billion in 2011.


"Lenovo will now acquire world-renowned Motorola Mobility, including the MOTOROLA brand and Motorola Mobility's portfolio of innovative smartphones like the Moto X and Moto G and the DROID™ Ultra series. In addition to current products, Lenovo will take ownership of the future Motorola Mobility product roadmap. Google will maintain ownership of the vast majority of the Motorola Mobility patent portfolio, including current patent applications and invention disclosures."

Motorola's patents weren't that valuable, Google didn't manage to make Motorola profitable, it started to compete with the other Android OEMs and sold Motorola at a loss. Still, why not try harder to make Motorola shine once again? Why admit defeat and show that your strategy was wrong?

I think the answer can be found in Google's licensing agreement with Samsung:

"Samsung Electronics and Google Inc. furthered their long-term cooperative partnership with a global patent cross-license agreement covering a broad range of technologies and business areas. The mutually beneficial agreement covers the two companies existing patents as well as those filed over the next 10 years."

Samsung is the biggest Android OEM and a switch from Android to Tizen would be a very bad news for Google. If Samsung used its dominant position and asked Google to get rid of Motorola, Google didn't have other options.

Motorola is a lost bet, Google showed that the health of the Android ecosystem is more important than owning Motorola.

"Lenovo has the expertise and track record to scale Motorola Mobility into a major player within the Android ecosystem. This move will enable Google to devote our energy to driving innovation across the Android ecosystem, for the benefit of smartphone users everywhere. As a side note, this does not signal a larger shift for our other hardware efforts. The dynamics and maturity of the wearable and home markets, for example, are very different from that of the mobile industry. We're excited by the opportunities to build amazing new products for users within these emerging ecosystems," said Larry Page, Google's CEO.

Apparently, Motorola's Advanced Technology Group will continue to work at Google. "That means the Ara modular smartphone concept, as well as sensors you swallow and passwords you tattoo on your skin. The Advanced Tech team is headed by one-time Defense Advanced Research Projects Agency director Regina Dugan, and has been behind some of the more sci-fi things that Google has demonstrated since acquiring Moto's mobile biz."

{ Thanks, Jérôme and Tolis . }

Baca Selengkapnya ....

Google Works on a Fitness API for Android

Posted by Unknown Kamis, 16 Januari 2014 0 komentar
Wearables are now the next big thing. A lot of companies develop smart watches, smart glasses and head-up displays, smart headphones, smart clothes. They all include low-power sensors that can obtain information about your health, your activities, the things you see.

Android 4.4 supports some new sensors for detecting and counting steps. These sensors are implemented in hardware and are only available on Nexus 5.

Google now works on a Fitness API for Android which will allow applications to view and edit fitness data. They can "view and edit your fitness tracking, health and activities data, including reading and writing raw and transformed data". This might allow Google to store data obtained from multiple sources to your Google account so that other applications can process it, show charts and other useful information.



It's not clear if this new API will be available in the next Android release or in Google Play Services.

{ Thanks, Florian. }

Baca Selengkapnya ....

Android and Google's Shifting Priorities

Posted by Unknown Minggu, 22 Desember 2013 0 komentar
I've been reading Fred Vogelstein's book "Dogfight: How Apple and Google Went to War and Started a Revolution" (Amazon, Google Play) and realized that Android wasn't that important for Google until 2009-2010, when Motorola Droid and Nexus One were launched. It was an operating system designed to compete with Microsoft's Windows Mobile that ended up competing with Apple's iOS. Back in 2007 and 2008, Google's partnership with Apple was more important than Android, a project that was understaffed. Android only became important when Google realized that Apple's dominance in the mobile space could spell trouble for Google.


Here are some quotes:

1. "Gundotra was putting the Android team on the spot. “I said, 'Convince me that this [Android] is something we [Google] should believe in,' and I know they had never had anyone ask those questions, and it was tough for them. 'Who are you to ask these questions again?' they wondered.” A former senior member of the Android team echoed this feeling: “In the early days, Google Mobile [the team working with Apple on the iPhone] hated us. I mean, they thought we were the biggest pain in the ass in the world. I know Vic Gundotra [who now runs Google's competitor to Facebook, Google Plus] has come around and been a great advocate of Android, but he really hated it at first. He thought [Android] would be a distraction that would upset his relationship with Steve Jobs. There was a lot of butting of heads and arguments internally about strategy and things like that."

2. "The Jobs meeting was particularly difficult for Rubin, friends say. He was indeed as furious as Jobs described, and he almost quit Google over it. He understood what his bosses were saying intellectually. But Jobs had bullied him in front of his bosses, and they hadn't backed him up. For a while thereafter he had a sign on his office whiteboard that read STEVE JOBS STOLE MY LUNCH MONEY."

3. "Schmidt says today that not only had he and Jobs talked about Android, he'd made it clear to Jobs that in terms of Google priorities, iPhone came first. 'I think maybe Andy [Rubin] understood the importance of Android back then, but certainly the rest of Google did not. We were busy doing other things,' Schmidt said to me in 2011."

4. Eric Schmidt in 2011: "Larry and Sergey and I understood the strategic value of Android, but none of us I think foresaw how strategic it would become. Every once in a while a perfect storm occurs. Your competitors make some mistakes. You end up with the right product at the right time. There are really no other good choices of products. It all sort of happens in a moment. That's what happened with Android."

Baca Selengkapnya ....

Auto Awesome Snow Shake in Google+ for Android

Posted by Unknown Kamis, 12 Desember 2013 0 komentar
This is another fun feature for the holidays, but it's limited to the Google+ app for Android: "Shake your device while viewing one of your photos, and watch the snow fall. Shake it again to save your new snowy photo and share it with family and friends."

It's a way to manually trigger the Auto Awesome Snow effect for any photo.


You need the latest version of the Google+ app (4.2.4), which was released today. Blame staged rollouts if you don't have the new version. You can also manually download the APK file.


This is not the only new feature: "when you +1 posts in the stream, you'll see something lovely" (hearts). There's also a unified search box, a new section for less important notifications and separate "What's Hot" streams for different categories.




Baca Selengkapnya ....

10 New Chromecast Apps

Posted by Unknown Rabu, 11 Desember 2013 0 komentar
The number of apps that support Chromecast has increased: there are 10 new apps and most of them are free. Here's the list:

* VEVO (Android, iOS) - music videos app, available in a few countries: Australia, Brazil, Canada, France, Germany, Ireland, Italy, The Netherlands, New Zealand, Poland, Spain, UK and US.

* Red Bull.TV (Android, iOS) - videos and shows

* Songza (Android) - music streaming, online radio (there's an iOS app, but it doesn't support Chromecast yet)

* PostTV (Android) - news from Washington Post

* Viki (Android, iOS) - "Korean dramas, Taiwanese, Chinese and Filipino dramas, Telenovelas, Japanese dramas and anime, American cartoons, NBC Universal, History Channel, A&E, E! TV shows, as well as movies from Indonesia, Hong Kong"

* Revision3 (Android, iOS) - shows



* BeyondPod (Android) - podcast manager

* Plex (Android) - media player, Chromecast support only for videos, the app costs $5 (there's an iOS app, but it doesn't support Chromecast yet)

* Avia (Android) - media player, Chromecast support for local videos, music and photos, requires an in-app purchase that costs $3. I tried the app and it works well for local files, but the Google Cast API supports a small number of file formats

* RealPlayer Cloud (Android, iOS) - movie player that stores your videos online, US and Canada only


"There's no need to huddle around small screens when you can share your own photos and videos using your phone, tablet, or laptop," mentions Google.

From what I tried, the most interesting apps seem to be Songza (for playing online music) and Avia (for playing local files).

Baca Selengkapnya ....

Chromecast Button in Google Play Store

Posted by Unknown Rabu, 27 November 2013 0 komentar
Sometimes you have to go back to basics, create something simple that works and constantly improve it. That's how Google Search, Gmail, Chrome and other Google products became successful. Google TV tried to solve too many problems and ended up with complicated remote controls, buggy software, browsers with blocked content, unhappy partners and disappointed users.

Google Cast and Chromecast try to solve fewer problems and are much more limited. Apps live on your phone or tablet, the remote control is your phone or tablet and Chromecast is just a way to play content on your TV.

The number of apps that support Google Cast is still very small, but they're some of the most popular apps in their category: YouTube, Google Play Music, Google Play Movies, Netflix, Pandora, Hulu Plus, HBO Go. This is about to change when Google releases the official Cast SDK and allows any app or site to integrate with Chromecast.

For now, Google continues to promote Chromecast. "For a limited time we're giving you an HD movie rental from Google Play with every purchase of a Chromecast device. It's the perfect treat to add to that special someone's stocking. At just $35 each, why not pick one up for both of you?" suggests Google Play's site. The promotion is actually "valid for any movie rental or other content on Google Play valued at $6 or less".

Sterling Alvarez noticed a Chromecast button in the Google Play Store app (landscape mode). It only lists the apps that support Google Chromecast, but it's interesting to notice that the link is prominently placed in the default Play Store section for apps.



{ Thanks, Sterling. }

Baca Selengkapnya ....

How to align your TabHost at the bottom of the screen

Posted by Unknown Kamis, 14 November 2013 0 komentar
There is a simplest way to align Tabbar at the bottom of the page.
The code is given below copy and download the code and try it...

In the previous example we learned a simple example to add Tabs to our application.Only a small change can give you tabs at the bottom of the page.

In the previous example the xml was like this...
 

<TabHost xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@android:id/tabhost"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
tools:context=".MainActivity" >

<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >

<TabWidget
android:id="@android:id/tabs"
android:layout_width="fill_parent"
android:layout_height="wrap_content" />

<FrameLayout
android:id="@android:id/tabcontent"
android:layout_width="fill_parent"
android:layout_height="fill_parent" />

</LinearLayout>

Instead of using Linear Layout use Relative Layout like below and use "android:layout_alignParentBottom="true"" for Tab Widget.
 
<TabHost xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@android:id/tabhost"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
tools:context=".MainActivity" >

<RelativeLayout
android:layout_height="fill_parent"
android:layout_width="fill_parent">


<TabWidget
android:id="@android:id/tabs"
android:layout_alignParentBottom="true"
android:layout_width="fill_parent"
android:layout_height="wrap_content" />

<FrameLayout
android:id="@android:id/tabcontent"
android:layout_width="fill_parent"
android:layout_height="fill_parent" />
</RelativeLayout>

</TabHost>

Baca Selengkapnya ....

Change Tabbar Text (title) dynamically in Android - a simple example

Posted by Unknown Senin, 11 November 2013 0 komentar
Changing title of tabbar is bit easier in android
Copy and download the code below and try it....

Basic tabbar tutorials see here...
 
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.TabHost;
import android.widget.TabHost.TabSpec;
import android.widget.TabWidget;
import android.widget.TextView;
import android.app.TabActivity;
import android.content.Intent;


public class MainActivity extends TabActivity {

TabWidget tw;
TabHost tabHost;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);

/** TabHost will have Tabs */
tabHost = (TabHost)findViewById(android.R.id.tabhost);

TabSpec firstTabSpec = tabHost.newTabSpec("tab_id1");
TabSpec secondTabSpec = tabHost.newTabSpec("tab_id2");
TabSpec thirdTabSpec = tabHost.newTabSpec("tab_id3");

firstTabSpec.setIndicator("First").setContent(new Intent(this,Tab1.class));
secondTabSpec.setIndicator("Second ").setContent(new Intent(this,Tab2.class));
thirdTabSpec.setIndicator("Third").setContent(new Intent(this,Tab3.class));


tabHost.addTab(firstTabSpec);
tabHost.addTab(secondTabSpec);
tabHost.addTab(thirdTabSpec);

tw = getTabWidget();
View tab1View = tw.getChildAt(0);
tab1View.setId(1);

View tab2View = tw.getChildAt(1);
tab2View.setId(2);

View tab3View = tw.getChildAt(2);
tab3View.setId(3);

tab1View.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
((TextView)tabHost.getTabWidget().getChildAt(v.getId()-1).findViewById(android.R.id.title)).setText("my Tab " + v.getId());
}
});

tab2View.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
((TextView)tabHost.getTabWidget().getChildAt(v.getId()-1).findViewById(android.R.id.title)).setText("my Tab " + v.getId());
}
});

tab3View.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
((TextView)tabHost.getTabWidget().getChildAt(v.getId()-1).findViewById(android.R.id.title)).setText("my Tab " + v.getId());
}
});

} }



Baca Selengkapnya ....

Using TabHost to create a simple Tabbar application - An Android Example

Posted by Unknown Minggu, 10 November 2013 0 komentar
For creating a tabbar application first create a tabhost object to create tabs
In activity_main.xml we create TabHost and specify a layout where we are going to insert the tabs.
Copy and download the code and try it yourself....

Now we are going to create three tabs.
Lets us now first make the xml for it

activity_main.xml :
TabHost provided flexibility of managing data in different views by providing tabbed interface(compared to TabLayout). TabHost basically a container, where you need to put tab widget, which will host tabbed interface and FrameLayout, within which the different views are presented.
  • TabHost ( main container of tab view )
  • TabWidget ( used to navigate between tabs )
  • FrameLayout ( for tab content )
 
<TabHost xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@android:id/tabhost"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
tools:context=".MainActivity" >

<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >

<TabWidget
android:id="@android:id/tabs"
android:layout_width="fill_parent"
android:layout_height="wrap_content" />

<FrameLayout
android:id="@android:id/tabcontent"
android:layout_width="fill_parent"
android:layout_height="fill_parent" />

</LinearLayout>

tab1.xml :
 
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">

<TextView android:text="TAB1 DATA"
android:padding="15dip"
android:textSize="18dip"
android:layout_width="fill_parent"
android:layout_height="wrap_content"/>
</LinearLayout>
tab2.xml :
 
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">

<TextView android:text="TAB2 DATA"
android:padding="15dip"
android:textSize="18dip"
android:layout_width="fill_parent"
android:layout_height="wrap_content"/>
</LinearLayout>
tab3.xml :
 
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">

<TextView android:text="TAB3 DATA"
android:padding="15dip"
android:textSize="18dip"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
</LinearLayout>
Now create three java class for each of the tabs..

Tab1.java :
 
import android.app.Activity;
import android.os.Bundle;

public class Tab1 extends Activity {

@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
setContentView(R.layout.tab1);
}
}
Tab2.java :
 
import android.app.Activity;
import android.os.Bundle;

public class Tab2 extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
setContentView(R.layout.tab2);
}

}
Tab3.java :
 
import android.app.Activity;
import android.os.Bundle;

public class Tab3 extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
setContentView(R.layout.tab3);
}

}
Donot forget to introduce the newly created java class to the android manifest file...

AndroidManifest.xml
 



Mainactivity.java
  • TabSpec used to create a new tab.
  • By using TabSpec only we can able to setContent to the tab.
  • By using TabSpec setIndicator() we can set name to tab.
 
import android.os.Bundle;
import android.widget.TabHost;
import android.widget.TabHost.TabSpec;
import android.app.TabActivity;
import android.content.Intent;


public class MainActivity extends TabActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);

/** TabHost will have Tabs */
TabHost tabHost = (TabHost)findViewById(android.R.id.tabhost);

TabSpec firstTabSpec = tabHost.newTabSpec("tab_id1");
TabSpec secondTabSpec = tabHost.newTabSpec("tab_id2");
TabSpec thirdTabSpec = tabHost.newTabSpec("tab_id3");

firstTabSpec.setIndicator("First").setContent(new Intent(this,Tab1.class));
secondTabSpec.setIndicator("Second ").setContent(new Intent(this,Tab2.class));
thirdTabSpec.setIndicator("Third").setContent(new Intent(this,Tab3.class));

tabHost.addTab(firstTabSpec);
tabHost.addTab(secondTabSpec);
tabHost.addTab(thirdTabSpec);

} }


Baca Selengkapnya ....

Google Search App, the Android KitKat Launcher

Posted by Unknown Rabu, 06 November 2013 0 komentar
Ron Amadeo from Ars Technica noticed last week that Google's KitKat launcher is actually an extension of the Google Search app. "While developing KitKat, Google made a very interesting decision: rather than graft a few new search UI pieces onto the home screen, Google threw the existing home app in the trash and turned all home screen functionality over to the Google Search app."

It turns out that the launcher is powered by the Google Search app and it doesn't work if you disable the app. This is not unexpected: two of the standard features of the Nexus home screen are added by the Google Search app: the Google search bar and the swipe up gesture for Google Now. KitKat brings support for the "OK Google" hotword, so you can trigger Google Voice Search without pressing a button, and adds a new gesture for Google Now: swipe right.

I installed the updated Google Search app and the launcher on an old Galaxy S2 using the instructions from Phandroid.com. I must say that the experience is completely different from Jelly Bean: the app launcher no longer includes widgets and it looks more crowded, the entire launcher can be managed from the Google Search app.



The full-screen Now widget can only be removed if you disable Google Now in the settings or if you install a different launcher.


You can no longer disable and customize cards from the settings. Google opted for a simplified customization feature:



You can now add as many shortcuts and widgets as you want because the number of screens is unlimited. The screens are added and removed dynamically, just like in iOS. You add a new one by dropping a shortcut or a widget and you remove it by deleting all the shortcuts and widgets or dragging them to other screens.




The home screen includes a search box, a Voice Search button, hotword support for Voice Search and a Google Now screen. These are the main features of the Google Search app, so you'll use it without opening it. Removing friction and making the experience more seamless will encourage more people to use Google Now.

Baca Selengkapnya ....

Android KitKat

Posted by Unknown Kamis, 31 Oktober 2013 0 komentar
Android KitKat is the first new major Android release since Jelly Bean 4.1. There are so many changes and new features that it's hard to list all of them. It's a release focused on optimizations, immersive interfaces and support for new hardware. There's also a new device that showcases the new features: Nexus 5.


RAM is always an important issue when it comes to mobile devices, especially if they run Android. High-end phones and tablets now have 2GB or 3GB of RAM, but many low-end devices only have 512MB of RAM and they still need to provide a decent experience. One of the main KitKat goals is to run well on devices with 512 MB of RAM. "Changes across the system improve memory management and reduce memory footprint. Core system processes are trimmed to use less heap, and they now more aggressively protect system memory from apps consuming large amounts of RAM."

Most US carriers block Google Wallet and Google wanted to address this. "Android 4.4 introduces new platform support for secure NFC-based transactions through Host Card Emulation (HCE), for payments, loyalty programs, card access, transit passes, and other custom services. With HCE, any app on an Android device can emulate an NFC smart card, letting users tap to initiate transactions with an app of their choice - no provisioned secure element (SE) in the device is needed." If this works properly, Google Wallet's adoption problems could be solved.

Android 4.4 introduces native support for printing. "Android apps can now print any type of content over Wi-Fi or cloud-hosted services such as Google Cloud Print. In print-enabled apps, users can discover available printers, change paper sizes, choose specific pages to print, and print almost any kind of document, image, or file."

There's also an API that does for file pickers what the sharing buttons do for sending data. When you want to select a file to open it in your favorite app, Android 4.4 can show an interface that lets you pick a file from both local sources and cloud storage services. "A new storage access framework makes it simple for users to browse and open documents, images, and other files across all of their their preferred document storage providers. A standard, easy-to-use UI lets users browse files and access recents in a consistent way across apps and providers."


Android KitKat focuses a lot on improving battery life. "With sensor batching, Android works with the device hardware to collect and deliver sensor events efficiently in batches, rather than individually as they are detected. This lets the device's application processor remain in a low-power idle state until batches are delivered." You can also listen to more music. "Audio tunneling can dramatically improve battery life for use-cases such as listening to music over a headset with the screen off. For example, with audio tunneling, Nexus 5 offers a total off-network audio playback time of up to 60 hours, an increase of over 50% over non-tunneled audio."

There's a completely new phone app that shows the people you call often. "You can also search for nearby places and businesses, your contacts, or people in your Google Apps domain. Whenever you get a call from a phone number not in your contacts, your phone will look for matches from businesses with a local listing on Google Maps."


The features of the Messages app have been added to the Hangouts app, which now allows you to send SMS and MMS, while also displaying the messages you receive. The main goal of Hangouts was to provide a unified communication service and it's almost there. Google Voice integration will probably have to wait until next year.


Immersive mode, fullscreen apps. You can call them however you like. For those who found Chrome's fullscreen mode useful, they're in for a treat: there's an upgraded version in Android KitKat. "The book you're reading, the game you're playing, or the movie you're watching — now all of these take center stage with the new immersive mode, which automatically hides everything except what you really want to see. Just swipe the edge of the screen to bring back your status bar and navigation buttons."


Android has a new animation framework for transitions, which was inspired by Apple's Keynote app. For an almost-immersive experience, apps can use new window styles to request translucent system bars. Android's icons from the system bars are white, they're no longer blue.


When you're playing music, Android shows full-screen album art on the lockscreen. You can also say "ok Google" to use Google Voice Search directly from the lockscreen. Google Now cards are one swipe away from the homescreen: just swipe to the right.

The Chrome engine powers the embedded WebViews used by apps, there's a screen recording utility and there's native support for DASH (adaptive streaming).

Android 4.4 brings support for IR blasters and two new Bluetooth profiles. "Bluetooth HID over GATT (HOGP) gives apps a low-latency link with low-power peripheral devices such as mice, joysticks, and keyboards. Bluetooth MAP lets your apps exchange messages with a nearby device, for example an automotive terminal for handsfree use or another mobile device." There's also support for composite sensors: step detector and step counter.

The first Android device that runs KitKat is Nexus 5, a 5-inch phone manufactured by LG. It's lighter and thinner than Nexus 4, even though it has a bigger Full HD display. With a powerful SoC (Snapdragon 800), an improved 8MP camera with optical image stabilization, dual-band WiFI a/b/g/n/ac, LTE and a new look and feel inspired by the new Nexus 7, Google's new phone is one of the best devices you can buy. "Nexus 5 is available today, unlocked and without a contract, on Google Play in the U.S., Canada, U.K., Australia, France, Germany, Spain, Italy, Japan and Korea (and coming soon to India), starting at $349," informs Google. You can choose between 4 versions: 16GB/32GB, white/black. The 32GB versions cost $399.


Here's a hands-on video:


Android 4.4 updates for Nexus 4, 7, 10 will be available in the coming weeks. Galaxy Nexus won't get the update because it "falls outside of the 18-month update window when Google and others traditionally update devices."

Baca Selengkapnya ....

New Features in Google+ for Android

Posted by Unknown Rabu, 30 Oktober 2013 0 komentar
Mobile apps for social services are strange. Until now, the Google+ mobile app didn't allow you to copy the text of a post. You had to get the URL of the post, open the browser and copy the text there. I thought this must be a bug until I checked the Facebook app and noticed that you can't copy text.

The latest version of the Google+ app for Android lets you copy the text of a post, copy comments, quickly reply to comments, translate posts and comments.




While the new features are useful, I don't see why you can't select some of the text and copy it. The Google+ app still doesn't support sharing intents. I assume that apps like Google+ and Facebook want to force users to stick to their own sharing features.

The Google+ app actually supports sharing intents, but only for your photos. The sharing interface looks different and it includes Google+ options. Google+ Photos has a new icon, it's now called "Photos", it includes photos and videos stored on your device, an Auto-Awesome section and is poised to replace the standard Android Gallery.


There's also an updated notification sidebar that shows the notifications you've read in a new section: "previously read". The interface is cleaner, but it's more difficult to hide the sidebar.

If you can't update to the new Google+ version, blame staged rollouts and download the APK file from here.

Baca Selengkapnya ....

What is the difference between Services, Thread and an AsyncTask in Android?

Posted by Unknown Senin, 21 Oktober 2013 0 komentar
Thread Example n ANDROID -- Timer Thread Example
Non Runnable States in Multithreading - Different states while thread is in runnable states
What is a thread in java ?
How to write interfaces in java or Android?
More on Android ?

Service is like an Activity but has no interface. Probably if you want to fetch the weather for example you won’t create a blank activity for it, for this you will use a Service.

A Thread is a Thread, probably you already know it from other part. You need to know that you cannot update UI from a Thread. You need to use a Handler for this, but read further.

An AsyncTask is an intelligent Thread that is advised to be used. Intelligent as it can help with it’s methods, and there are two methods that run on UI thread, which is good to update UI components.

Baca Selengkapnya ....

Google Music's Feeling Lucky

Posted by Unknown Sabtu, 19 Oktober 2013 0 komentar
Google Play Music has a new feature called "I'm Feeling Lucky" that creates a radio based on your listening history. If you subscribe to All Access, Google includes a lot of songs that aren't in your library, otherwise the feature is a fancy name for "shuffle".

Here are some screenshots from the Android app:


There's a "dice" animation while the playlist is generated:


You can reorder the songs, remove some of them or add all the songs to a playlist by tapping "save queue".


You can find a similar feature in the desktop interface: go to "Listen Now" and click "I'm Feeling Lucky Radio".


You get a different "Feeling Lucky" playlist every time you roll the dice and the songs from the playlist are usually related. Here's an example of Eurovision-related playlist:


Click "Refresh station" and you'll get a completely new playlist:


For the old-fashioned shuffle feature restricted to your library, go to "My Library" and click "Shuffle My Library". In the Android app, go to the "Songs" tab from the "My Library" section and tap "shuffle all".

{ Thanks, Zachary. }

Baca Selengkapnya ....
Trik SEO Terbaru support Online Shop Baju Wanita - Original design by Bamz | Copyright of android populer.