My phone was stolen recently, and I'm trying to use my wife's old S2 as a temporary replacement. She had a password screenlock, and she can't remember what it was. When I put in my new SIM, the screenlock is still there. Is there a way to get around it?
vendredi 27 mars 2015
Android BLE does not receive any beacon after it start for a period of time
Android BLE device does not receive any beacon after it starts for a period of time, My app have initialized BLE at the beginning. even I restart my app, it still doesn't work,I have to restart Bluetooth. I don't know why it happened. This is my code below:
public void initBLE() {
// Use this check to determine whether BLE is supported on the device.
// Then you can
// selectively disable BLE-related features.
if (!mActivity.getPackageManager().hasSystemFeature(
PackageManager.FEATURE_BLUETOOTH_LE)) {
if (CommonUtils.isDebug) {
Log.d(TAG,
mActivity.getResources().getString(
R.string.ble_not_supported));
}
return;
}
// Initializes a Bluetooth adapter. For API level 18 and above, get a
// reference to
// BluetoothAdapter through BluetoothManager.
final BluetoothManager bluetoothManager = (BluetoothManager) mActivity
.getSystemService(Context.BLUETOOTH_SERVICE);
mBluetoothAdapter = bluetoothManager.getAdapter();
// Checks if Bluetooth is supported on the device.
if (mBluetoothAdapter == null) {
if (CommonUtils.isDebug) {
Log.e(TAG,
mActivity.getResources().getString(
R.string.error_bluetooth_not_supported));
}
return;
}
mBluetoothAdapter.enable();
}
/** * Device scan callback. */
private BluetoothAdapter.LeScanCallback mLeScanCallback = new BluetoothAdapter.LeScanCallback() {
@Override
public void onLeScan(final BluetoothDevice device, int rssi,
byte[] scanRecord) {
final DevIBeacon ibeacon = BLEDevice.getDevicefromScanData(device,
rssi, scanRecord);
if (ibeacon == null) {
return;
}
synchronized (mBLEList) {
mBLEList.add(ibeacon);
}
}
};
private void scanLeDevice(final boolean enable) {
if (enable) {
isScanning = true;
mBluetoothAdapter.startLeScan(mLeScanCallback);
} else {
isScanning = false;
mBluetoothAdapter.stopLeScan(mLeScanCallback);
}
}
LeScanCallback does not receive any beacon..
Controller problem withmy denver tablet
So i connected my controller to my tablet using a usb to mni usb cable and the analogs ork fine but the buttons don't work at all. I know what is the problem (i am not using a x360 controller; i am usinga smartbox controller that is made both for pc and ps3). So i'm wondering if there is any way to emulate the controller so that it could be recognized as a 360 controller or if you can set the buttons.
BTW i have tryed it on almost all the apps that have controller support and there was the same problem.
TABLET MODEL:DENVER TAD-70042 (rooted and has android 4.0.4)
Android Studio - google maps points of interest
So far I have managed to implement a simple google maps in my android app. What I would like to do now is to make my app buzz everytime the person is near a park (let the radius be 1/4 miles). Is there a way I can do that? How can my app detect depending on the position if the person is near a point of interest? Any ideas?
my moto g is not turn on after updating to 4.4.4
I was root and unlocking boot loader in my phone g after that i update it to 4.4.4 now it is not going to power on. fast boot mode not turn on too I do not tried anything
how do i remove other peoples google accounts from my device,, i r
My friend used my phone to check his email but forgot to clear his account on my device, now his mails and notication come to my device, how do i remove his gmail account and remain with only my account on my device
Speaker click in silent mode
I've observed in 2 or 3 android phones that when you set the volume to zero, you still can hear a very gentle click noise when you receive some notification that would cause a sound notification. My question is why is necessary to program it to activate and deactivate the speaker in that case, causing the click, instead of just keeping it off. Maybe it is a question for electronics.stackexchange.com?