AutocompleteActivity

public class AutocompleteActivity extends AppCompatActivity

Implements a fullscreen activity that returns Place predictions in response to user search queries. As the user types, the autocomplete service returns suggestions for places such as businesses, addresses and points of interest.

Constant Summary

int RESULT_ERROR Result code for errors when finishing the autocomplete activity.

Inherited Constant Summary

Public Constructor Summary

Public Method Summary

void
void
onCreate(Bundle savedInstanceState)

Inherited Method Summary

Constants

public static final int RESULT_ERROR

Result code for errors when finishing the autocomplete activity.

Constant Value: 2

Public Constructors

public AutocompleteActivity ()

Public Methods

public void onBackPressed ()

public void onCreate (Bundle savedInstanceState)

Parameters
savedInstanceState
Throws
IllegalStateException If the Places library hasn't been initialized (see initialize(Context, String, Locale) or initialize(Context, String)).

发送以下问题的反馈:

此网页
Places SDK for Android