This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Widget extends AppWidgetProvider { | |
@Override | |
public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) { | |
super.onUpdate(context, appWidgetManager, appWidgetIds); | |
final int countWidgets = appWidgetIds.length; | |
for (int i = 0; i < countWidgets; i++) { | |
int appwidgetId = appWidgetIds[i]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class PickPhoneNumberActivity extends ActionBarActivity { | |
final int PICK_CONTACT_REQUEST = 1; | |
//some code | |
..... | |
private void pickContact() { | |
Intent pickContact = new Intent(Intent.ACTION_PICK, ContactsContract.CommonDataKinds.Phone.CONTENT_URI); |
NewerOlder