This file contains hidden or 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
private void setTaskDescription(){ | |
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { | |
String title = getString(R.string.app_name); | |
Bitmap icon = BitmapFactory.decodeResource(getResources(), R.drawable.ic_launcher); | |
int color = getResources().getColor(R.color.task_background); | |
// The legacy method call | |
// setTaskDescription(new ActivityManager.TaskDescription(title, icon, color)); | |
// The reflected method call |
This file contains hidden or 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
@Override | |
public boolean onCreateOptionsMenu(Menu menu) { | |
MenuInflater inflater = getMenuInflater(); | |
inflater.inflate(R.menu.menu_listoffers, menu); | |
new Handler().post(new Runnable() { | |
@Override | |
public void run() { | |
final View menuItemView = findViewById(R.id.action_search); |
This file contains hidden or 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
<resources> | |
<!-- http://developer.android.com/design/style/metrics-grids.html --> | |
<dimen name="gap_small">4dp</dimen> | |
<dimen name="gap_medium">8dp</dimen> | |
<dimen name="gap_large">16dp</dimen> | |
<dimen name="gap_xlarge">32dp</dimen> | |
<dimen name="gap_xxlarge">64dp</dimen> | |
<!-- http://developer.android.com/design/style/typography.html --> |
This file contains hidden or 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
package net.rocboronat.android.utils; | |
import java.lang.reflect.Method; | |
import java.util.Set; | |
import android.bluetooth.BluetoothAdapter; | |
import android.bluetooth.BluetoothDevice; | |
import android.util.Log; | |
public class BluetoothUtil { |
NewerOlder