Sms Gratis Indosat

Phone Numbers
0 -
Example : 83832867987 Without 0

Type your Messages

Question: + =

Start facbook app by startActivity(intent)

To start official Facebook for Android specifically, we can startActivity with intent, with PackageName of "com.facebook.katana", and ClassName of "com.facebook.katana.LoginActivity".

Start facbook app by startActivity(intent)


It's assumed Facebook app have been already installed.

package com.example.androidstartfacebook;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class MainActivity extends Activity {

Button btnStartFacebook;

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
btnStartFacebook = (Button)findViewById(R.id.btnstartfacebook);

btnStartFacebook.setOnClickListener(btnStartFacebookOnClickListener);
}

OnClickListener btnStartFacebookOnClickListener
= new OnClickListener(){

@Override
public void onClick(View v) {
Intent intent = new Intent("android.intent.category.LAUNCHER");
String facebookPackageName = "com.facebook.katana";
String facebookClassName = "com.facebook.katana.LoginActivity";
intent.setClassName(facebookPackageName, facebookClassName);
startActivity(intent);
}};

}


<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity"
android:orientation="vertical">

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/hello_world" />
<Button
android:id="@+id/btnstartfacebook"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Start facebook app" />

</LinearLayout>



Next:
- Check and request to install Facebook App
- Launch Facebook app from a specified page, using intent with ACTION_VIEW.


New Google Now: the perfect travel companion for the holidays

Now Dasher! Now Dancer! Now, Prancer and Vixen! On, Comet! On, Cupid! On, Donner and Blitzen! For Santa’s holiday travel this season, Google Now is just the prescription.

As you head off this holiday season, the latest update to Google Now makes it even more useful for traveling. Before you even leave your house, Google Now will tell you what the weather will be like at your destination (just in time to make sure you remember to pack those mittens). At the airport, your boarding pass is automatically pulled up, helping you breeze through to the gate (launching shortly for United Airlines, with more to come). And once you've arrived at your destination, Google Now can help you uncover some great activities, by showing you events happening around you, suggesting websites for you to explore as you research things to do, or allowing you to learn more about specific pieces while you’re at a museum (using Google Goggles).



All of this builds on top of some of the other cards designed for travel, like the currency conversion, translation, and flight status cards -- hopefully taking a little bit of the stress out of holiday travel so you can focus on family and fun.

We're also making Voice Search even more powerful: you can find out the name of the song that’s playing (“What’s this song?”), quickly find product info (“Scan this barcode”) and post updates to Google+ simply by using just your voice.



These goodies are waiting for you in the updated Google Search app, available on Google Play for devices running Android 4.1, Jelly Bean, or higher.

Posted by Baris Gultekin, Product Management Director

BMW 750 iL L7 Individual by Karl Lagerfeld

V12 / 5.379 cc / 326 PS / 360 lb/ft @ 3.900 / 0 - 62 mph: 7,4 s / Vmax: 155 mph

(click images for a larger view)















 
Copyright © 2015. About - Web Version - Mobile Version Sitemap - Contact - Privacy